#Params::Validate
Explore tagged Tumblr posts
Text
[solved] \Facebook SDK returned an error: Cross-site request forgery validation failed. The \\state\\ param from the URL and session do not match\
[solved] Facebook SDK returned an error: Cross-site request forgery validation failed. The \state\ param from the URL and session do not match
Cross-site request forgery (CSRF) is a type of attack where a malicious website, email, or other communication forces a user’s web browser to perform unwanted actions on a trusted site where the user is logged in. This can lead to unauthorized actions being taken on the user’s behalf without their consent. In the context of the error message you have received, it indicates that there is a…
View On WordPress
#Crosssite#error#Facebook#Failed#forgery#match#param#request#returned#SDK#session#solved#state#url#validation
0 notes
Text
Trying to convince myself this is a good major by giving in and heading to the ✨ coding aesthetics ✨ aisle. Wish me luck.
#yah u might wanna disregard bc more posts coming up#fr tho when u take lagorithms and u grt prnalized for dp misuse but ml says u know what go cross validate. overfit those models. more params
153 notes
·
View notes
Note
Ohhh that makes sense. I think all my OCs are paras and vice versa in that case since I daydream about all of them in both of my worlds. My para worlds are exclusively original characters.
One more question: I keep seeing people talking about being in their own worlds as a self insert or even themselves. This isn't apart of my experiences , I am not involved in my para worlds at all. Is that normal? Is there a comprehensive place where I can read up on this more?
Not sure of any official sources for info about that (if any of y'all know some then please share!!), but anecdotally there's been quite a few polls around MaDDblr about these sort of experiences... From what I've seen, the *most common* MaDDer's situation is daydreaming through the perspective of a paraself, which tends to be an idealized or alternative version of ourselves (like an upgraded self-insert). However, due to the highly-individual nature of daydreaming itself, there's MASSIVE variety in how different people daydream.
Some people only daydream through the eyes of a non-self para (be it a fictional character or an OC), while others are only spectators/gods and don't "participate" as an actor in their paracosms at all, just like you! Most folks daydream in first-person POV, but there are many who daydream in third-person POV (or even second-person POV) or other perspectives. Some people stick to only one parame (the para they daydream through -- paraselves are also parames) and/or POV, while others switch around depending on any number of factors. Some have tons and tons of paras, while others have only a select few that they daydream about. Some have only one or two paracosms they've been visiting for years, while others are constantly making new ones or switching back and forth between a bunch of them!
Similarly, it's very common for people with MaDD to pace around while daydreaming, but there are plenty of us (including myself) who only lie in bed or do other forms of stimming! Most daydreamers like music with lyrics they can fit to their characters, while others prefer instrumental music that can act as a soundtrack for our scenes. Some of us utilize images (ie. pinterest, picrew, fanart, etc.) for inspiration or visualization purposes while daydreaming (I often need them due to hypophantasia), while others only use their mind's eye to daydream!
TLDR: There are innumerable ways to daydream, so don't feel like you're "lesser" for having uncommon daydreaming habits! Everyone's brains are wired differently and we all experience the world in our own unique way, so individual styles of daydreaming are highly varied. Unfortunately you might not relate to most of the posts about MaDD you'll come across because the posts that gain the most traction are inevitably aligned with more common daydreaming experiences, but you're just as valid as the rest of us! Welcome to the MaDD community 💕
3 notes
·
View notes
Text
Ughggghh Pasta’s eyes are cloudy and despite doing 50% a week and a half ago, all the tanks are looking grody. Cyano is back in Louie’s tank and now maybe the Yam’s too. Our worm supply is lower than I thought. Glad we’ll be homebodies this weekend so I can get these guys straightened out. Everyone else seems fine except Pasta. Could be food, could be params, could be too much sunlight (can’t really do much about that with the placement of the Gal tank). My skinny buddy in the dwarf puff tank is STILL hanging on, even comes up to greet me in the breeder box. But despite multiple wormings, meds, and an abundance of feeding, he still is incredibly skinny. If he wasn’t so lively I’d consider euthanizing the kinder option.
Of course this is all going down the week before school starts and my brain is absolutely screaming with Tasks. Maybe I will tub Pasta tmr.
On the bright side one of my supervisors actually listened to me, validated me and got pushed on my behalf so maybe I WONT have 5 preps in the second semester.
3 notes
·
View notes
Text
The 10 Code Snippets That Save Me Time in Every Project.
Let’s be real—coding can sometimes feel like a never-ending marathon of the same boring tasks. You write, debug, tweak, repeat. But what if I told you there’s a secret stash of tiny code snippets that could literally cut your work in half and make your life 10x easier?
Over the years, I’ve built up my personal toolkit of code snippets that I pull out every single time I start a new project. They’re simple, they’re powerful, and best of all—they save me tons of time and headaches.
Here’s the deal: I’m sharing my top 10 snippets that are like little magic shortcuts in your code. Bookmark this, share it, and thank me later.

Debounce: The “Stop Spamming Me!” Button for Events Ever noticed how when you type or resize a window, your function fires off like crazy? Debounce lets you tell your code, “Chill, wait a sec before running that again.”
javascript Copy Edit function debounce(func, wait) { let timeout; return function(…args) { clearTimeout(timeout); timeout = setTimeout(() => func.apply(this, args), wait); }; } Say goodbye to sluggish UIs!
Deep Clone: Copy Stuff Without Messing It Up Want a clone of your object that won’t break if you change it? This snippet is the magic wand for that.
javascript Copy Edit const deepClone = obj => JSON.parse(JSON.stringify(obj)); No more accidental mutations ruining your day.
Fetch with Timeout: Because Nobody Likes Waiting Forever Network requests can hang forever if the server’s slow. This snippet makes sure you bail after a timeout and handle the error gracefully.
javascript Copy Edit function fetchWithTimeout(url, timeout = 5000) { return Promise.race([ fetch(url), new Promise((_, reject) => setTimeout(() => reject(new Error('Timeout')), timeout)) ]); } Stay in control of your app’s speed!
Capitalize First Letter: Make Text Look Nice in One Line Quick and dirty text beautifier.
javascript Copy Edit const capitalize = str => str.charAt(0).toUpperCase() + str.slice(1); Perfect for UI polish.
Unique Array Elements: Bye-Bye Duplicates Got a messy array? Clean it up instantly.
javascript Copy Edit const unique = arr => […new Set(arr)]; Trust me, this one’s a life saver.
Format Date to YYYY-MM-DD: Keep Dates Consistent AF Don’t mess with date formatting ever again.
javascript Copy Edit const formatDate = date => date.toISOString().split('T')[0]; Dates made simple.
Throttle: Like Debounce’s Cool Older Sibling Throttle makes sure your function runs at most every X milliseconds. Great for scroll events and such.
javascript Copy Edit function throttle(func, limit) { let lastFunc; let lastRan; return function(…args) { if (!lastRan) { func.apply(this, args); lastRan = Date.now(); } else { clearTimeout(lastFunc); lastFunc = setTimeout(() => { if ((Date.now() - lastRan) >= limit) { func.apply(this, args); lastRan = Date.now(); } }, limit - (Date.now() - lastRan)); } }; } Keep it smooth and snappy.
Check if Object is Empty: Quick Validation Hack Sometimes you just need to know if an object’s empty or not. Simple and neat.
javascript Copy Edit const isEmptyObject = obj => Object.keys(obj).length === 0;
Get Query Parameters from URL: Parse Like a Pro Grab query params effortlessly.
javascript Copy Edit const getQueryParams = url => { const params = {}; new URL(url).searchParams.forEach((value, key) => { params[key] = value; }); return params; }; Perfect for any web app.
Random Integer in Range: Because Random Is Fun Generate random numbers like a boss.
javascript Copy Edit const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min; Use it for games, animations, or fun experiments.
Why These Snippets Will Change Your Life If you’re like me, every saved second adds up to more time for creativity, coffee breaks, or learning something new. These snippets aren’t just code — they’re your trusty sidekicks that cut down on repetitive work and help you ship better projects faster.
Try them out. Customize them. Share them with your team.
And if you found this helpful, do me a favour: share this post with your dev buddies. Because sharing is caring, and everyone deserves to code smarter, not harder.
0 notes
Text
API Vulnerabilities in Symfony: Common Risks & Fixes
Symfony is one of the most robust PHP frameworks used by enterprises and developers to build scalable and secure web applications. However, like any powerful framework, it’s not immune to security issues—especially when it comes to APIs. In this blog, we’ll explore common API vulnerabilities in Symfony, show real coding examples, and explain how to secure them effectively.

We'll also demonstrate how our Free Website Security Scanner helps identify these vulnerabilities before attackers do.
🚨 Common API Vulnerabilities in Symfony
Let’s dive into the key API vulnerabilities developers often overlook:
1. Improper Input Validation
Failure to sanitize input can lead to injection attacks.
❌ Vulnerable Code:
// src/Controller/ApiController.php public function getUser(Request $request) { $id = $request->query->get('id'); $user = $this->getDoctrine() ->getRepository(User::class) ->find("SELECT * FROM users WHERE id = $id"); return new JsonResponse($user); }
✅ Secure Code with Param Binding:
public function getUser(Request $request) { $id = (int)$request->query->get('id'); $user = $this->getDoctrine() ->getRepository(User::class) ->find($id); return new JsonResponse($user); }
Always validate and sanitize user input, especially IDs and query parameters.
2. Broken Authentication
APIs that don’t properly verify tokens or allow session hijacking are easy targets.
❌ Insecure Token Check:
if ($request->headers->get('Authorization') !== 'Bearer SECRET123') { throw new AccessDeniedHttpException('Unauthorized'); }
✅ Use Symfony’s Built-in Security:
# config/packages/security.yaml firewalls: api: pattern: ^/api/ stateless: true jwt: ~
Implement token validation using LexikJWTAuthenticationBundle to avoid manual and error-prone token checking.
3. Overexposed Data in JSON Responses
Sometimes API responses contain too much information, leading to data leakage.
❌ Unfiltered Response:
return $this->json($user); // Might include password hash or sensitive metadata
✅ Use Serialization Groups:
// src/Entity/User.php use Symfony\Component\Serializer\Annotation\Groups; class User { /** * @Groups("public") */ private $email; /** * @Groups("internal") */ private $password; } // In controller return $this->json($user, 200, [], ['groups' => 'public']);
Serialization groups help you filter sensitive fields based on context.
🛠️ How to Detect Symfony API Vulnerabilities for Free
📸 Screenshot of the Website Vulnerability Scanner tool homepage

Screenshot of the free tools webpage where you can access security assessment tools.
Manual code audits are helpful but time-consuming. You can use our free Website Security Checker to automatically scan for common security flaws including:
Open API endpoints
Broken authentication
Injection flaws
Insecure HTTP headers
🔎 Try it now: https://free.pentesttesting.com/
📸 Screenshot of an actual vulnerability report generated using the tool to check Website Vulnerability

An Example of a vulnerability assessment report generated with our free tool, providing insights into possible vulnerabilities.
✅ Our Web App Penetration Testing Services
For production apps and high-value APIs, we recommend deep testing beyond automated scans.
Our professional Web App Penetration Testing Services at Pentest Testing Corp. include:
Business logic testing
OWASP API Top 10 analysis
Manual exploitation & proof-of-concept
Detailed PDF reports
💼 Learn more: https://www.pentesttesting.com/web-app-penetration-testing-services/
📚 More Articles from Pentest Testing Corp.
For in-depth cybersecurity tips and tutorials, check out our main blog:
🔗 https://www.pentesttesting.com/blog/
Recent articles:
Laravel API Security Best Practices
XSS Mitigation in React Apps
Threat Modeling for SaaS Platforms
📬 Stay Updated: Subscribe to Our Newsletter
Join cybersecurity enthusiasts and professionals who subscribe to our weekly threat updates, tools, and exclusive research:
🔔 Subscribe on LinkedIn: https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7327563980778995713
💬 Final Thoughts
Symfony is powerful, but with great power comes great responsibility. Developers must understand API security vulnerabilities and patch them proactively. Use automated tools like ours for Website Security check, adopt secure coding practices, and consider penetration testing for maximum protection.
Happy Coding—and stay safe out there!
#cyber security#cybersecurity#data security#pentesting#security#coding#symfony#the security breach show#php#api
1 note
·
View note
Text
Sai Hospital – Trusted Cashless Mediclaim Facility Hospital in Dombivli
Cashless Mediclaim Facility at Sai Hospital, Dombivli — Quality Care Without Financial Worry
Medical emergencies are unpredictable, and the last thing you should worry about during such times is arranging funds for treatment. At Sai Hospital, Dombivli, we prioritize your health and peace of mind. That’s why we offer a cashless mediclaim facility hospital in Dombivl, allowing patients to receive timely care without the burden of upfront payments.
We are affiliated with a broad network of insurance providers and Third-Party Administrators (TPAs), enabling insured patients to access treatment without paying out of pocket at the time of hospitalization. From admission to discharge, Sai Hospital ensures a smooth and transparent experience for eligible policyholders.
What is a Cashless Mediclaim Facility?
A cashless mediclaim facility allows patients to undergo treatment without having to pay hospital bills at the time of admission. If the treatment is covered by the insurance policy and pre-authorization is approved, the expenses are settled directly between the hospital and the insurance company.
As a trusted cashless facility hospital in Dombivli, Sai Hospital takes care of the coordination with insurance providers, so you can focus solely on recovery.
Why Choose Sai Hospital for Cashless Mediclaim Services?
1. Wide Insurance Network Sai Hospital is empanelled with a diverse range of insurance companies and TPAs, catering to both individual and corporate health insurance policies. Our experienced team guides you through every step of the claims process, making us a preferred choice for mediclaim service provider in Dombivli.
2. Dedicated Insurance Desk Our in-house insurance helpdesk provides comprehensive support — from document collection and pre-authorization to final settlement. We prioritize efficiency and accuracy, ensuring minimal delays in processing claims during crucial times.
3. Smooth and Stress-Free Claim Process Whether for planned procedures or emergencies, we’ve streamlined the entire insurance process. All documentation and insurer communication is handled promptly, ensuring a hassle-free experience for patients and their families.Being a dependable cashless facility provider in Dombivli, we make the hospitalization experience stress-free for patients and their loved ones.
How to Avail Cashless Mediclaim at Sai Hospital
For Planned Hospitalization:
Visit our insurance desk with your insurance card and valid ID.
Provide your doctor’s treatment recommendation.
Fill out the pre-authorization form provided at the hospital.
Our team submits the request to your insurer or TPA.
Upon approval, your treatment proceeds without any upfront payment.
For Emergency Hospitalization:
Present your insurance card or policy details at the emergency counter.
Immediate medical care is initiated.
Our team processes the emergency pre-authorization request.
Once approved, billing is directly settled with the insurance provider.
If the cashless claim is denied or partially approved, we assist you with the reimbursement claim post-discharge.
Medical Services Covered Under Cashless Mediclaim
Depending on the terms of your insurance policy, Sai Hospital offers cashless coverage for a wide range of medical services, including:
General and internal medicine
Orthopaedic treatments and fracture care
Maternity and gynecological services
General and laparoscopic surgeries
Cardiology and hypertension management
Pediatric and geriatric care
Intensive Care Unit (ICU) services
Diagnostic tests and imaging
As a leading mediclaim insurance hospital in Dombivli, we offer multi-specialty services under one roof, ensuring continuity of care and patient convenience.
Our Insurance & TPA Partners
Sai Hospital is empanelled with many reputed insurance companies and TPAs, including:
Star Health and Allied Insurance
ICICI Lombard
New India Assurance
Bajaj Allianz
HDFC ERGO
Medi Assist
Paramount Health Services
Vidal Health TPA
These partnerships enable us to provide extensive cashless facilities available in Dombivli, making healthcare more accessible to a wide base of policyholders.
Why Patients Prefer Sai Hospital
At Sai Hospital — one of the Top Hospital in Dombivli, we go beyond just treatment. Our mission is to deliver compassionate, reliable, and patient-centered care. From accurate diagnosis to recovery, we are with you at every step. With modern operation theatres, skilled doctors, round-the-clock emergency care, and advanced diagnostics, we make quality healthcare accessible and affordable.
As a trusted mediclaim and health insurance hospital in Dombivli, we’re committed to maintaining high standards of care, financial transparency, and patient satisfaction.
What Sets Us Apart?
Skilled medical and support staff
Real-time assistance at the insurance desk
Clean, hygienic, and comfortable patient rooms
Clear billing and transparent documentation
High insurance claim approval rate
Courteous and cooperative staff
No wonder Sai Hospital — Hospitals in Dombivli is recognized as the best service for mediclaim hospital in Dombivli by hundreds of patients who have benefited from our efficient processes and patient-centric care.
Frequently Asked Questions (FAQs)
1. What is a cashless mediclaim facility, and how does it work at Sai Hospital? A cashless mediclaim facility allows patients to receive treatment without paying hospital bills upfront. At Sai Hospital, we directly coordinate with your insurance company or TPA to settle the medical expenses, subject to policy coverage and approval.
2. Which insurance companies are accepted at Sai Hospital for cashless treatment? Sai Hospital is empanelled with major health insurance providers and TPAs such as Star Health, ICICI Lombard, HDFC ERGO, Medi Assist, and more. You can check your policy eligibility with our insurance helpdesk.
3. How can I avail cashless mediclaim in case of an emergency? In an emergency, you or a family member must provide your insurance card or policy number at the hospital. Our team will initiate the pre-authorization request while your treatment begins, ensuring there are no delays in care.
4. What documents are needed for cashless hospitalization? To avail cashless services, you typically need to provide your health insurance card, a valid photo ID (Aadhaar, PAN, etc.), and your doctor’s prescription or diagnosis report if it’s a planned admission.
5. What happens if my cashless claim is denied or partially approved? If your insurer denies or only partially approves the claim, you may have to pay the remaining amount. Our team will help you with the reimbursement process by providing all necessary documents and guidance.
6. Are all treatments covered under cashless mediclaim at Sai Hospital? Coverage depends on your individual policy. While many treatments are covered, certain exclusions or limits may apply. Our staff will help you verify which treatments are eligible under your plan before admission.
0 notes
Text
देखिए बड़ी बहस! कौन है दुर्गा माँ का पति? शिव या सदाशिव? शास्त्रों से महाखुलासा! SA News Channel
Witness an intense debate between ardent devotees of Maa Durga and followers of Sant Rampal Maharaj as they unravel controversial and lesser-known aspects of the Goddess. This discussion challenges deeply rooted traditional beliefs, presenting scriptural evidence from revered texts like the Vedas, Puranas (including Devi Bhagwat Purana), Shrimad Bhagavad Gita, and Kabir Sagar.
Key questions explored include: Maa Durga's true origin – is she eternal or born? Her marital status – unmarried, or married to Shiva or Sadashiva (Kaal Brahm)? Is she the supreme power, or is there a higher entity? The debate critically examines the validity of common practices such as Navratri fasting, animal sacrifice (Bali Puja), Jagran, idol worship, and the significance of pilgrimage sites like Kamakhya based on scriptural interpretations presented by Sant Rampal Maharaj's supporters.
Discover the identity of the 'Tatvadarshi Sant' and the 'true' method of worship, including the real Gayatri Mantra, as claimed by the followers. Engage with the evidence, analyze the arguments rooted in scriptures, and uncover hidden truths that might reshape your understanding of Maa Durga and Sanatan Dharma. #MaaDurga #SantRampalJi #HinduDebate #SpiritualDebate #Vedas #Puranas #Gita #KabirSagar #HiddenTruths #sanatandharma
Related Queries: Maa Durga secrets revealed,, Sant Rampal vs Durga Bhakt debate,, Durga ki utpatti ka sach,, Durga mata ka asli pati kaun,, Shiva aur Sadashiva mein antar,, Kya Durga mata kunwari hain,, Navratri vrat karna sahi ya galat,, Bali pratha hinduism truth,, Jagran karna shastra anusaar,, Murti puja kyu nahi karni chahiye,, Kamakhya Devi mandir ka rahasya,, Tirth yatra benefits myth,, Kya Durga mata supreme god hai,, Who is Param Akshar Brahm Kabir,, Tatvadarshi Sant ki pehchan,, Sant Rampal Maharaj satsang exposed,, Devi Bhagwat Purana real meaning,, Gita ke anusaar sahi bhakti,, Vedas ka asli gyan hindi,, Hindu dharm ke ansune raaz,,

0 notes
Text
HarmonyOS NEXT Practical: Loading Pop ups
Goal: Encapsulate common components and implement loading animations by calling loading pop ups.
Implementation idea:
Implement pop ups through @CustomsDialog
Use Progress to load animations
Use custom components to host custom pop ups
The Custom DialogController is only valid when assigned as a member variable of @CustomDialog and @Component struct, and defined internally within @Component struct. The specific usage can be seen in the following example.
definition [code] dialogController : CustomDialogController | null = new CustomDialogController(CustomDialogControllerOptions) [/code] CustomDialogController usage [code] open() //Display custom pop-up content, allowing multiple uses, but if the pop-up is in SubWindow mode, it is not allowed to pop up SubWindow pop ups again. close() //Close the displayed custom pop-up window. If it is already closed, it will not take effect. [/code] CustomDialogControllerOptions object
builder:Customize pop-up content constructor.
cancel:Return, ESC key, and callback when clicking on the obstacle layer pop-up window to exit.
autoCancel:Whether to allow clicking on the obstruction layer to exit, true means closing the pop-up window. False means not closing the pop-up window. (Default value: true)
alignment:The vertical alignment of pop ups. (Default value: DialogAlignment.Default)
offset:The offset of the pop-up window relative to the alignment position. (Default value: { dx: 0, dy: 0 })
customStyle:Is the pop-up container style customizable.
gridCount:The number of pop-up windows that occupy the width of the grid. The default is to adapt according to the window size, handle outliers according to the default value, and the maximum number of grids is the maximum number of grids in the system. Value range: integers greater than or equal to 0.
maskColor:Customize the color of the mask.
maskRect:In the pop-up masking layer area, events within the masking layer area are not transparent, while events outside the masking layer area are transparent.
openAnimation:Customize the animation effect related parameters for pop-up windows.
closeAnimation:Customize the animation effect parameters for closing pop-up windows.
showInSubWindow:When a certain popup needs to be displayed outside the main window, should it be displayed in the sub window. Default value:- false, Pop ups are displayed within the application, rather than as separate sub windows.
backgroundColor:Set the pop-up window backplate filling. Default value: Color.Transparent
cornerRadius:Set the fillet radius of the backboard. You can set the radii of four rounded corners separately. Default value:{ topLeft: '32vp', topRight: '32vp', bottomLeft: '32vp', bottomRight: '32vp' }
Specific implementation: [code] import Response from '../../models/Response'
let loadingDialogController: CustomDialogController
@Component struct LoadingDialog { build() { }
/**
打开弹窗
@param text */ open(text: string, duration: number=1500) { //关闭前面的弹窗 if (loadingDialogController) { loadingDialogController.close() } loadingDialogController = new CustomDialogController({ builder: LoadingDialogView({ text: text, duration:duration, respond: (response: Response) => { response.genericWork() } }), autoCancel: false, alignment: DialogAlignment.Center, customStyle: true }) loadingDialogController.open() } /**
关闭弹窗 */ close() { if (loadingDialogController) { loadingDialogController.close() } } }
export default new LoadingDialog()
@CustomDialog struct LoadingDialogView { dialogController: CustomDialogController text: string = 'loading…' duration: number = 1500 respond: (response: Response) => void = () => { } //回应
aboutToAppear() { setTimeout(() => { this.dialogController.close() }, this.duration) }
build() { Column({ space: 10 }) { Progress({ value: 0, total: 100, type: ProgressType.Ring }) .width(50).height(50) .style({ strokeWidth: 7, status: ProgressStatus.LOADING }) Text(this.text) }.padding(16).backgroundColor(Color.White).borderRadius(8) } } [/code]
Usage: [code] LoadingDialog.open('正在获取最新版本…', 1000) setTimeout(() => { LoadingDialog.close() TipDialog.open('温馨提示', '已是最新版本') }, 1000) [/code]
0 notes
Text
How to Build a Machine Learning Model: A Step-by-Step Guide
How to Build a Machine Learning Model:
A Step-by-Step Guide
Building a machine learning model involves several key steps, from data collection to model evaluation and deployment. This guide walks you through the process systematically.
Step 1: Define the Problem
Before starting, clearly define the problem statement and the desired outcome.
Example: Predicting house prices based on features like size, location, and amenities.
Type of Learning: Supervised (Regression)
Step 2: Collect and Prepare the Data
🔹 Gather Data
Use datasets from sources like Kaggle, UCI Machine Learning Repository, APIs, or company databases.
🔹 Preprocess the Data
Handle missing values (e.g., imputation or removal).
Remove duplicates and irrelevant features.
Convert categorical data into numerical values using techniques like one-hot encoding.
🔹 Split the Data
Typically, we divide the dataset into:
Training Set (70–80%) — Used to train the model.
Test Set (20–30%) — Used to evaluate performance.
Sometimes, a Validation Set (10–20%) is used for tuning hyperparameters.
pythonfrom sklearn.model_selection import train_test_split import pandas as pd# Load dataset df = pd.read_csv("house_prices.csv")# Split data into training and testing sets train, test = train_test_split(df, test_size=0.2, random_state=42)
Step 3: Choose the Right Model
Select a machine learning algorithm based on the problem type:
Problem TypeAlgorithm ExampleRegressionLinear Regression, Random Forest, XGBoostClassificationLogistic Regression, SVM, Neural NetworksClusteringK-Means, DBSCANNLP (Text Processing)LSTMs, Transformers (BERT, GPT)Computer VisionCNNs (Convolutional Neural Networks)
Example: Using Linear Regression for House Price Predictionpythonfrom sklearn.linear_model import LinearRegression# Create the model model = LinearRegression()
Step 4: Train the Model
Training involves feeding the model with labeled data so it can learn patterns.python X_train = train[["size", "num_bedrooms", "location_index"]] y_train = train["price"]# Train the model model.fit(X_train, y_train)
Step 5: Evaluate the Model
After training, measure the model’s accuracy using metrics such as:
Regression: RMSE (Root Mean Square Error), R² Score
Classification: Accuracy, Precision, Recall, F1 Score
pythonfrom sklearn.metrics import mean_squared_error, r2_scoreX_test = test[["size", "num_bedrooms", "location_index"]] y_test = test["price"]# Make predictions y_pred = model.predict(X_test)# Evaluate performance rmse = mean_squared_error(y_test, y_pred, squared=False) r2 = r2_score(y_test, y_pred)print(f"RMSE: {rmse}, R² Score: {r2}")
Step 6: Optimize the Model
🔹 Hyperparameter Tuning (e.g., Grid Search, Random Search) 🔹 Feature Selection (removing unnecessary features) 🔹 Cross-validation to improve generalization
Example: Using Grid Search for Hyperparameter Tuningpythonfrom sklearn.model_selection import GridSearchCVparams = {'fit_intercept': [True, False]} grid_search = GridSearchCV(LinearRegression(), param_grid=params, cv=5) grid_search.fit(X_train, y_train)print(grid_search.best_params_)
Step 7: Deploy the Model
Once optimized, deploy the model as an API or integrate it into an application. 🔹 Use Flask, FastAPI, or Django to expose the model as a web service. 🔹 Deploy on cloud platforms like AWS, Google Cloud, or Azure.
Example: Deploying a Model with Flaskpython from flask import Flask, request, jsonify import pickleapp = Flask(__name__)# Load the trained model model = pickle.load(open("model.pkl", "rb"))@app.route('/predict', methods=['POST']) def predict(): data = request.get_json() prediction = model.predict([data["features"]]) return jsonify({"prediction": prediction.tolist()})if __name__ == '__main__': app.run(debug=True)
Conclusion
By following these seven steps, you can build and deploy a machine learning model effectively.
WEBSITE: https://www.ficusoft.in/deep-learning-training-in-chennai/
0 notes
Text
Easy Machine Learning Projects for Absolute Beginners
Machine Learning is an important application of Artificial Intelligence technology and has an enormous potential in a variety of areas including healthcare, business, education, and more. The fact that ML is still in a nascent stage and has several imperfections/flaws can make it difficult to wrap your head around its fundamentals. However, studying and working on a few basic projects on the same can be of great help. Some of them are as follows:
1. Stock Prices Predictor
A system that can learn about a company’s performance and predict future stock prices is not only a great application of Machine Learning but also has value and purpose in the real world. Before proceeding, students of top engineering colleges in Jaipur must sure to acquaint yourself with the following:
a. Statistical Modeling - Constructing a mathematical description of a real-world process that accounts for the uncertainty and/or randomness involved in that system.
b. Predictive Analysis - It uses several techniques such as data mining, artificial intelligence, etc. to predict the behavior of certain outcomes.
c. Regression Analysis - It’s a predictive modeling technique which learns about the relationship between a dependent i.e. the target and independent variable (s) i.e. the predictor.
d. Action Analysis - Analyzing the actions performed by the above-mentioned techniques and incorporating the feedback into the machine learning memory.
The first thing students of best engineering colleges in Jaipur need to get started is select the data types that are to be used such as current prices, EPS ratio, volatility indicators, etc. Once this has been taken care of, you can select the data sources. Similarly, Quantopian offers an excellent trading algorithm development support that you can check out.
Now, you can finally plan on how to backtest and build a trading model. it is important to remember that you need to structure the program in a way that it’s able to validate the predictions quickly as financial markets are usually quite volatile and the stock prices can change several times a day. What you want to do is connect your database to your machine learning system that is fed new data on a regular basis. A running cycle can compare the stock prices of all the companies in the database over the past 15 years or so and predict the same for the near future i.e. 3 days, 7 days, etc, and report on the display.
2. Sentiment Analyzer
A sentiment analyzer learns about the “sentiment” behind a text through machine learning and predicts the same using Artificial Intelligence. The technology is being increasingly used on social media platforms such as Facebook and Twitter for learning user behavior, and by businesses that want to automate lead generation by determining how likely a prospect is to do business with them by reading into their emails.
One innovation that students of engineering colleges will need to learn about in this project is classifiers. You can, however, choose any particular model that you are comfortable with.You can go about the project your way. However, you would ideally need to classify the texts into three categories- positive, neutral, and negative. You can extract the different texts for a particular keyword and run the classifier on each to obtain the labels. For features, you can use diagrams or even dictionaries for higher accuracy.
3. Sports Matches Predictor
Using the basic working model of machine learning, students of private engineering colleges in Jaipur can also create a system that can predict the results of sports matches such as cricket, football, etc. The first thing you need is to create a database for whichever sports you are considering. Irrespective of what you choose, you will most likely need to find the records of the scores, performance details, etc. on your own, manually. Using Json for this, however, could be a good idea as it can easily capture the advanced parameters that are involved in a game and help in making more accurate predictions.
If you are well-versed in Python, then Scikit-Learn is your best bet to create the system. It offers a variety of tools for data mining, regression analysis, classifications, etc. You can use human analysis such as Vegas lines along with some advanced parameters such as Dean Oliver’s four factors to get best prediction results.
Conclusion
There are many beginner-level Machine Learning projects for the students of the list of engineering colleges in Jaipur that you can study. However, it will help if you make yourself familiar with the following first:
a. Machine Learning Tools - An environment that offers ML tools for data preparation, a variety of ML algorithms, and is capable of presenting the results of the programs, can be a good starting point when you want to get to the core of ML and understand how different modules work together. For instance, Weka, waffles, etc. are some of the excellent environments to start with.
b. Machine Learning Datasets - AI and ML use a variety of datasets. However, students of engineering colleges Jaipur can just pick one and choose an algorithm that works the best for it. Then you can use an ML environment to observe it closely. You can also change the algorithms to see how they affect the datasets. Machine Learning can only be mastered with a lot of experimentation and practice. While delving into the theory can surely help, it’s the application that will facilitate your progress the most.
0 notes
Text
Unreal Engine: chosen upgrades list
This is just a textbox in my HUD that I change the value of:
As I already had a reference to my HUD in the player, I started the code for the feature here. My first approach was to create a variable in my HUD, and set the text using that variable:
Then I would update the text in the HUD every time I got a relevant upgrade, I even put it in a collapsed node to make it look nice:
This may have worked, but I realised that I could just make the textblock a variable, and directly edit its contents using a SetText node:
and now instead of an Append node, I would use Format Text.
This didn't work though, the value of In Text (aka new text) was nothing, even though I was passing it in though the collapsed graph. When I hooked up a Print String I got this weird error:
The current value (NSLOCTEXT("[D2684906477417720D81AFBB4C161CD7]", "ABE0AA894E8535CB2F61C2BA907B3858", "Wallrun [hold movement key while against pink wall]")) of the ' In Text ' pin is invalid: 'In Text' in action 'To String (Text)' must have an input wired into it ("by ref" params expect a valid input to operate on).
Looking up the issue gave no helpful results, but the fix I landed on was just, making the text into text using the Make Literal Text node:
And this was the result:
youtube
It's nothing special visually, but this will help players remember what upgrades they have to use them to their fullest potential. I also really like the elegant solution I coded.
0 notes
Text
This Week in Rust 465
Hello and welcome to another issue of This Week in Rust! Rust is a programming language empowering everyone to build reliable and efficient software. This is a weekly summary of its progress and community. Want something mentioned? Tweet us at @ThisWeekInRust or send us a pull request. Want to get involved? We love contributions.
This Week in Rust is openly developed on GitHub. If you find any errors in this week's issue, please submit a PR.
Updates from Rust Community
Newsletters
This Month in Rust GameDev #38 - September 2022
Project/Tooling Updates
Progress report on rustc_codegen_cranelift (Okt 2022)
Announcing KataOS and Sparrow
rust-analyzer changelog #151
A Memory Safe Implementation of the Network Time Protocol
Zenoh 0.6.0, a Pub/Sub/Query protocol, was released and it is packed with new features.
GlueSQL v0.13 - FSM based SQL query builder is newly added
Rust on Espressif chips - 17-10-2022
Introducing BastionAI, an open-source privacy-friendly AI training framework in Rust
Observations/Thoughts
Platform Agnostic Drivers in Rust: Publishing to Crates.io
A first look at Rust in the 6.1 kernel
Asynchronous programming in Rust
Why Rust?
What If LaTeX Had Instant Preview?
Magical handler functions in Rust
Rust Walkthroughs
Rust: Type Concealment With Any Trait and FnMut
Practical Parsing in Rust with nom
The Little Joys of Code: Proc Macros
How to Build a Machine Learning Model in Rust
[video] Building Awesome Desktop App with Rust, Tauri, and SurrealDB
[video] AsRef/Borrow Traits, and the ?Sized Marker - Rust
Using Neovim for Rust Development
[series] Sqlite File Parser Pt 3
Research
Simulating C++ references in Rust
Crate of the Week
This week's crate is HyperQueue, a runtime for ergonomic execution of programs on a distributed cluster.
Thanks to Jakub Beránek for the self-suggestion!
Please submit your suggestions and votes for next week!
Call for Participation
Always wanted to contribute to open-source projects but didn't know where to start? Every week we highlight some tasks from the Rust community for you to pick and get started!
Some of these tasks may also have mentors available, visit the task page for more information.
zerocopy - Add defensive programming in FromBytes::new_box_slice_zeroed
zerocopy - Add tests for compilation failure
Fornjot - export-validator does not support Windows
Ockam - Add clap based ockam sub command to create a vault without creating a node
Ockam - Add clap based ockam sub command to rotate identity keys
Ockam - Partition rust test jobs with nextest
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from the Rust Project
388 pull requests were merged in the last week
support casting boxes to dyn*
support default-body trait functions with return-position impl Trait in traits
mark derived StructuralEq as automatically derived
allow compiling the wasm32-wasi std library with atomics
detect and reject out-of-range integers in format string literals
drop temporaries created in a condition, even if it's a let chain
fix let keyword removal suggestion in structs
make dyn* casts into a coercion, allow dyn* upcasting
make overlapping_impls not generic
point out incompatible closure bounds
populate effective visibilities in rustc_resolve
print return-position impl Trait in trait verbosely if -Zverbose
add suggestion to the "missing native library" error
suggest == to the first expr which has ExprKind::Assign kind
suggest candidates for unresolved import
suggest parentheses for possible range method calling
suppress irrefutable let patterns lint for prefixes in match guards
unify tcx.constness query and param env constness checks
remove type traversal for mir constants
scoped threads: pass closure through MaybeUninit to avoid invalid dangling references
never panic in thread::park and thread::park_timeout
use semaphores for thread parking on Apple platforms
nicer errors from assert_unsafe_precondition
optimize TLS on Windows
stabilize map_first_last
constify Location methods
add MaybeUninit array transpose From impls
add Box<[T; N]>: TryFrom<Vec<T>>
add IsTerminal trait to determine if a descriptor or handle is a terminal
add is_empty() method to core::ffi::CStr
panic for invalid arguments of {integer primitive}::ilog{,2,10} in all modes
impl AsFd and AsRawFd for io::{Stdin, Stdout, Stderr}, not the sys versions
prevent UB in child process after calling libc::fork
fix Duration::{try_,}from_secs_f{32,64}(-0.0)
SIMD: mark more mask functions inline
futures: fix soundness hole in join macros
cargo: fix deadlock when build scripts are waiting for input on stdin
cargo: support 'publish.timeout' config behind '-Zpublish-timeout'
rustdoc: change default level of invalid_html_tags to warning and stabilize it
clippy: add as_ptr_cast_mut lint
clippy: add unused_format_specs lint
clippy: add a suggestion and a note about orphan rules for from_over_into
clippy: add new lint partial_pub_fields
clippy: change uninlined_format_args into a style lint
clippy: don't lint ptr_arg when used as an incompatible trait object
clippy: fix to_string_in_format_args in parens
clippy: don't lint default_numeric_fallback on constants
clippy: don't lint unnecessary_cast on negative hexadecimal literals when cast as floats
clippy: zero_prefixed_literal: Do not advise to use octal form if not possible
clippy: add cast-nan-to-int lint
clippy: fix box-default linting no_std non-boxes
clippy: fix: uninlined_format_args shouldn't inline panic! before 2021 edition
rust-analyzer: migrate assists to format args captures, part 2
rust-analyzer: diagnose some incorrect usages of the question mark operator
rust-analyzer: fix formatting requests hanging when r-a is still starting
Rust Compiler Performance Triage
Overall a fairly busy week, with many improvements and regressions, though the net result ends up being a small regression. Pretty busy week in terms of regressions in rollups as well, which unfortunately mostly were not followed up on prior to the report being put together, despite the relative ease of running perf against individual PRs now.
Triage done by @simulacrum. Revision range: 1e926f06..e0f8e60
2 Regressions, 4 Improvements, 4 Mixed; 4 of them in rollups 47 artifact comparisons made in total
See full report for details.
Call for Testing
An important step for RFC implementation is for people to experiment with the implementation and give feedback, especially before stabilization. The following RFCs would benefit from user testing before moving forward:
No RFCs issued a call for testing this week.
If you are a feature implementer and would like your RFC to appear on the above list, add the new call-for-testing label to your RFC along with a comment providing testing instructions and/or guidance on which aspect(s) of the feature need testing.
Approved RFCs
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
No RFCs were approved this week.
Final Comment Period
Every week, the team announces the 'final comment period' for RFCs and key PRs which are reaching a decision. Express your opinions now.
RFCs
No RFCs entered Final Comment Period this week.
Tracking Issues & PRs
No Tracking Issues or PRs entered Final Comment Period this week.
New and Updated RFCs
[new] Add RFC for calling default trait methods
[new] Add lang-team advisors team
Upcoming Events
Rusty Events between 2022-10-19 - 2022-11-16 🦀
Virtual
2022-10-19 | Virtual (Boulder, CO, US) | Boulder Elixir and Rust
Monthly Meetup
2022-10-19 | Virtual (Chennai, IN) | Techceleration at Toyota Connected
Techceleration's! Let's Talk Tech! Rust | BreakTheCode Contest - 14th Edition
2022-10-19 | Virtual (Vancouver, BC, CA) | Vancouver Rust
Rapid Prototyping in Rust: Write fast like Python; Run fast like C
2022-10-19 | Virtual | Boston NoSQL Database Group (ScyllaDB)
p99 Conf: All Things Performance (including talks on Rust) - Free | Official conference page
2022-10-20 | Virtual (Bellingham, WA, US) | bellingham.codes
Software Forum 8 (with Language small groups: Rust)
2022-10-20 | Virtual (Buenos Aires, AR) | Nerdearla
Rust y el desarrollo de software en la próxima década
2022-10-20 | Virtual (México City, MX) | Rust MX
Graphul, un web framework escrito en Rust
2022-10-20 | Virtual (Stuttgart, DE) | Rust Community Stuttgart
Rust-Meetup
2022-10-25 | Virtual (Berlin, DE) | OpenTechSchool Berlin
Rust Hack and Learn
2022-10-25 | Virtual (Dallas, TX, US) | Dallas Rust
Last Tuesday
2022-10-26 | Virtual (Redmond, WA, US / New York, NY, US / Toronto, CA / Stockholm, SE / London, UK) | Microsoft Reactor Redmond
Your First Rust Project: Rust Basics | New York Mirror | Toronto Mirror | Stockholm Mirror | London Mirror
2022-10-27 | Virtual (Charlottesville, VA, US) | Charlottesville Rust Meetup
Using Applicative Functors to parse command line options
2022-10-27 | Virtual (Karlsruhe, DE) | The Karlsruhe Functional Programmers Meetup Group
Stammtisch (gemeinsam mit der C++ UG KA) (various topics, from C++ to Rust...)
2022-10-29 | Virtual (Ludwigslust, DE) | Ludwigslust Rust Meetup
Von Nullen und Einsen | Rust Meetup Ludwigslust #1
2022-11-01 | Virtual (Beijing, CN) | WebAssembly and Rust Meetup (Rustlang)
Monthly WasmEdge Community Meeting, a CNCF sandbox WebAssembly runtime
2022-11-01 | Virtual (Buffalo, NY, US) | Buffalo Rust Meetup
Buffalo Rust User Group, First Tuesdays
2022-11-02 | Virtual (Cardiff, UK) | Rust and C++ Cardiff
Rust and C++ Cardiff Virtual Meet
2022-11-02 | Virtual (Indianapolis, IN, US) | Indy Rust
Indy.rs - with Social Distancing
2022-11-02 | Virtual (Redmond, WA, US / San Francisco, SF, US / New York, NY, US / Toronto, CA / London, UK) | Microsoft Reactor Redmond
Getting Started with Rust: From Java Dev to Rust Developer | San Francisco Mirror | New York Mirror | Toronto Mirror | London Mirror
2022-11-02 | Virtual (Stuttgart, DE) | Rust Community Stuttgart
Rust-Meetup
2022-11-08 | Virtual (Dallas, TX, US) | Dallas Rust
Second Tuesday
2022-11-08 | Virtual (Stockholm, SE) | Func Prog Sweden
Tenth Func Prog Sweden MeetUp 2022 – Online (with "Ready for Rust" by Erik Dörnenburg)
2022-11-10 | Virtual (Budapest, HU) | HWSW free!
RUST! RUST! RUST! meetup (online formában!)
2022-11-12 | Virtual | Rust GameDev
Rust GameDev Monthly Meetup
2022-11-15 | Virtual (Washington, DC, US) | Rust DC
Mid-month Rustful
2022-11-16 | Virtual (Vancouver, BC, CA) | Vancouver Rust
Rust Study/Hack/Hang-out
Europe
2022-10-20 | London, UK | Rust London User Group
Rust London x JFrog SwampUP After Party
2022-10-25 | Paris, FR | Rust Paris
Rust Paris meetup #53
2022-10-25 | Roma, IT | Rust Roma
Meetup Golang Roma - Go + Rust Hacknight - Hacktoberfest 2022
2022-10-26 | London, UK | Rust London User Group
LDN Talks October 2022: Host by Amazon Prime Video
2022-10-26 | Bristol, UK | Rust and C++ Cardiff/Rust Bristol
Programming Veloren & Rust for a living
2022-10-27 | København, DK | Copenhagen Rust Group
Hack Night #30
North America
2022-10-20 | New York, NY, US | Rust NYC
Anyhow ? Turbofish ::<> / HTTP calls and errors in Rust.
2022-10-20 | New York, NY, US | Cloud Native New York
Cloud-native Search Engine for Log Management and Analytics.
2022-10-25 | Toronto, ON, CA | Rust Toronto
Rust DHCP
2022-10-27 | Lehi, UT, US | Utah Rust
Bevy Crash Course with Nathan and Food!
2022-11-10 | Columbus, OH, US | Columbus Rust Society
Monthly Meeting
Oceania
2022-10-20 | Brisbane, QLD, AU | Rust Brisbane
October Meetup
2022-10-20 | Wellington, NZ | Rust Wellington
Tune Up Edition: software engineering management
2022-10-25 | Melbourne, VIC, AU | Rust Melbourne
October 2022 Meetup
2022-11-09 | Sydney, NSW, AU | Rust Sydney
RustAU Sydney - Last physical for 2022 !
South America
2022-11-05 | São Paulo, SP, BR | Rust São Paulo Meetup
Rust-SP meetup Outubro 2022
If you are running a Rust event please add it to the calendar to get it mentioned here. Please remember to add a link to the event too. Email the Rust Community Team for access.
Jobs
Please see the latest Who's Hiring thread on r/rust
Quote of the Week
I think it's worth noting that the fact that this program fails to compile whereas the analogous Python runs but gives the wrong answer is exactly what Rust's ownership and borrowing system is about.
– Kevin Reid on rust-users
Thanks to Kill The Mule for the suggestion!
Please submit quotes and vote for next week!
This Week in Rust is edited by: nellshamrell, llogiq, cdmistman, ericseppanen, extrawurst, andrewpollack, U007D, kolharsam, joelmarcey, mariannegoldin, bennyvasquez.
Email list hosting is sponsored by The Rust Foundation
Discuss on r/rust
0 notes
Text
Tutorial: Warning messages for missing custom globals
This post is probably only going to be of interest to experienced BHAV modders.
I've found a way to make global mods that rely on custom globals give an explanation about what's wrong if the user doesn't have the correct custom globals installed (with a major caveat: this only works the second time the user encounters the same error on the same residential lot). I'll follow up over the next couple of days with a tutorial on how this works for objects (including custom socials) that rely on custom globals and another that explains how to make a repositoried object tell the user which object is missing if it's going to flash blue.
You’ll need to start your mod off with the GlobalWithWarning file uploaded here at SFS. You can feel free to rename it, add other resources to it, etc. -- this is just a template to work from.
So, first thing you'll do is open up the "Append global here" BHAV, hit the "Append BHAV" special button, and find the global you want to mod.* Make sure to view the BHAV first so you can copy its name and note down its instance number. Then go ahead and append.
Fix the name and instance number of the newly-merged BHAV.
Then swap over to the converter tab and find the decimal version of the instance number.
Add 1001 to the decimal version and make that into the instance number for the Lua text list.
Add another 2000 (so 3001 from the original instance number) and make that the instance number for the Dialog text list.
Go in and edit the Dialog list now -- paste the name of the BHAV in on the second line and edit the first line as needed.
Now it's time to edit the BHAV. First look for node 0xD and edit the first two operands to match the Lua list's instance number (here, 0x07A5 turns into A5 07).
Then go up and edit the global checks in nodes 0x1 and 0x2.
In this case, we don't care whether Easy Lot Check is installed, so we'll delete that node and set the Param 7 = 1 branch to return true either way after it runs Easy Inventory Check.
If we wanted to add a third global to check for, we'd add in a third node and make sure the preceding node points to it whether the preceding node returns true or false. (We don't care what Easy Inventory Check returns, since we're passing it junk data anyway; we just need to know if it'll run at all. The one thing to keep in mind is that if the BHAV might return an error with the wrong data passed to it, you'll need to do some more in-depth editing to send it valid data, because this will interpret any error as a missing global.)
Set Local 0 on node 0xB to the instance number of the BHAV.
Finally, go double-check that the number of locals is sufficient for the BHAV you've appended -- it's really easy to forget.
And that's it. You can go ahead and edit the rest of the BHAV as desired.
If Easy Inventory Check is installed, then nothing will happen in-game and the mod will silently work as intended.
If it's not, though, there'll be one unexplained reset/error message, and then the second time the user encounters the same error on the same residential lot, they'll get a pop-up explaining the issue (pictured up at the top; the “Snap Failure” dialog string was the best one available for this purpose without requiring each mod to include a conflicting edit of the global dialog strings).
Note that if a user installed a whole slew of things with missing globals that all used this technique, it's possible that they'd get an warning message about a different missing global than the current interaction needed. The user should end up collecting them all eventually, though, so I don't think this is a problem.
I hope this technique makes life easier for both downloaders and modders.
*The technique needs to be modified to work for semiglobals. Basically, you need to edit a number in the Lua script (convert the semiglobal group number to decimal and stick it in place of the last number on the fourth line), then add a "$GlobalString:0:1" line to the dialog STR# for the semiglobal group and edit the dialog primitive in the BHAV to reference it. Feel free to ask me if you need further details; I'm happy to help.
88 notes
·
View notes
Text
hey
do y’all ever have daydreams that are just you focusing on being in a different body overlayed in irl? or... obsessively visualizing ur “true form” (i guess the word u guys would use for that is parame or paraself? your Ideal Shape Self. Your You Of The Minds EyeTM TM TM) but theres no plot. just “hm yes”
would that qualify as part of the daydreaming involved in making MaDD, well, MaDD?? im aware y’all get lots of “does this daydream type count?!” but i think its a pretty valid question for this one since... i wouldnt have considered it a daydream in the first place without prompting .. . . . . . . which is why im asking . . . . y e a h
11 notes
·
View notes
Text
Common TS2 errors
Under the readmore is some more common errors and some info on what is happening in the BHAV to cause them, since some people find the wiki’s descriptions confusing. Also links to wiki’s explanations. Might keep expanding this.
Check tree primitive blocked completion.
This one means an interaction was flagged as “immediate” in the TTAB, but the interaction runs a BHAV with something like a dialog that can’t be run immediately. Alternatively, the BHAV is being run as an event tree for an animation and the event tree asks the game to do something that can’t be done instantaneously.
Transition to node that does not exist.
The true or false target of the node isn’t return true/false/error and also doesn’t correspond with the number of any of the nodes in the BHAV.
Too many iterations.
The BHAV got stuck in an infinite loop.
Undefined Transition.
The true or false target of the node was return error, and it returned error.
You sent me a crappy GUID, please fix it.
Used the “Run tree by name” primitive with the “push onto my stack by guid (in temp 0 & temp 1)” option but temp 0 and temp 1 did not make a valid GUID.
Missing neighbor for data access.
BHAV tried to access the persondata with an invalid id not corresponding to any sim
Inventory token propert index out of range.
BHAV tried to read a token’s nth property except the token has less than n* properties.
Inventory token index out of range.
BHAV tried to do something with the nth token in an inventory that has less than n* objects.
Trying to push nested interaction on someone not in an 'allow nested' interaction
In TTAB, interactions can be flagged as “nest” or “allow nested”; this is how you get nested interactions like kissing while cuddling on bed (kiss is “nest”, cuddle is “allow nested”). If a sim is currently not in an interaction flag “allowed nested” but you try to push a “nest” interaction you get this error.
Bad Object Array
The BHAV tried to do something with an object’s array n, but that object’s OBJD has under data space a “number of object arrays” less than n*.
Missing Action String in table.
The BHAV used “add/change the action string” but whatever number was at the end of the MakeAction:0xnum displayed to the right in the BHAV editor when that line was selected doesn’t correspond to a line with actual text in it in the associated “MakeActionString prim string set” text list.
Hit Break Point Primitive.
There’s a “break point” primitive used in some Maxis BHAVs that can cause this error if a mod changes things such that the primitive actually gets run.
Trying to perform an animation from the Social Interaction list against a non person.
An animation primitive was run but it was trying to run anim 0x** and the anim text list for adults/children/cats/dogs/objects/whatever it is you’re animating doesn’t have a line with that index with an anim name in it.
Local out of range.
In the top-right of the BHAV editor you’ll see two boxes, arg count and local var count. If Local 0x**** is referenced in the BHAV and the local var count is 0x**** or less you get this error.
Invalid constant.
The BHAV references Const 0x****:0x** but either the BCON of isntance 0x**** doesn’t exist or it doesn’t have a line labeled 0x**.
Slot number out of range.
The BHAV references a slot n but the object’s SLOT has less than n* entries.
Reference to tree table entry that does not exist.
Typically occurs with “push interaction”, where interaction 0x**** is being pushed but there is no line in the TTAB of the target object labeled 0x****.
No stack object present when required.
The BHAV references Stack Object but it’s set to something that’s not a valid object ID
Expression attempting to write in a read-only area.
When the expression primitive tries to :=, +=, -=, or otherwise change the value of something like a literal number or BCON constant that isn’t supposed to be changeable
Bad gosub tree number.
The BHAV is trying to call another BHAV but no BHAV with that opcode exists, either because of a missing EP or a missing mod like Cyjon’s better EP check.
Stack number out of range.
In the top-right of the BHAV editor you’ll see two boxes, arg count and local var count. If Param 0x**** is referenced in the BHAV and the arg count is 0x**** or less you get this error.
Attribute number out of range
The BHAV tried to do something with an object’s attribute n, but that object’s OBJD has under data space a “number of attributes” less than n* (although if “number of attributes” is 0 the object actually is automatically given 8 attributes.
* be mindful of the fact that “0″ is a valid index, so the nth of something might have index n - 1 and that might be the number you see used in the BHAV
364 notes
·
View notes