#php functions
Explore tagged Tumblr posts
kokoasci Ā· 7 months ago
Note
Make a neocities, it is Very fun, I promise.
oh trust me ive looked into it :) im a spare time web dev/frontend engineer so it looked like a lot of fun but i dont like the IDE work sync method since it's a browser-based HTML editor, so i just got too lazy to actually code something and then merge all the files over 😭
i was thinking of trying it out though for a personal blog, but ive definitely spent too long on my 90s web styled portfolio website (professional for webdev and research stuff, not art haha) so im a little burnt out lmaooo
i do want to start a personal blog or even an interactive OC website using rlly cool jQuery functionality, etc. but ive just never gotten around to it :( if anything i'd probably opt for a github.io website since im comfortable with Git config and that kind of save workflow. thank you for the recommendation though! i will get around to it eventually šŸ¤ž
12 notes Ā· View notes
yawpyawp Ā· 1 year ago
Text
my younger sister and i are an exact representation of that ā€œi’m just ken/i’m just peteā€ meme on tiktok (i’m pete)
3 notes Ā· View notes
infoanalysishub Ā· 9 days ago
Text
Learn PHP Math Functions with Examples – Complete Guide
Master PHP Math with this complete guide. Learn basic arithmetic, rounding, trigonometry, and random number generation with examples and explanations. 🧮 PHP Math: A Complete Guide to Mathematical Functions in PHP Mathematics is the foundation of programming logic—and PHP provides a robust set of math functions that make it easy to perform calculations, handle complex numbers, and solve…
0 notes
evandore Ā· 5 months ago
Text
I HATE CODERS !!!!! ALL YOU NERDS ARE SO FUCKING ANNOYING !!!!!!!
0 notes
jateshi Ā· 2 years ago
Text
I swear to fuck-
Tumblr’s Core Product Strategy
Here at Tumblr, we’ve been working hard on reorganizing how we work in a bid to gain more users. A larger user base means a more sustainable company, and means we get to stick around and do this thing with you all a bit longer. What follows is the strategy we're using to accomplish the goal of user growth. The @labs group has published a bit already, but this is bigger. We’re publishing it publicly for the first time, in an effort to work more transparently with all of you in the Tumblr community. This strategy provides guidance amid limited resources, allowing our teams to focus on specific key areas to ensure Tumblr’s future.
The Diagnosis
In order for Tumblr to grow, we need to fix the core experience that makes Tumblr a useful place for users. The underlying problem is that Tumblr is not easy to use. Historically, we have expected users to curate their feeds and lean into curating their experience. But this expectation introduces friction to the user experience and only serves a small portion of our audience.Ā 
Tumblr’s competitive advantage lies in its unique content and vibrant communities. As the forerunner of internet culture, Tumblr encompasses a wide range of interests, such as entertainment, art, gaming, fandom, fashion, and music. People come to Tumblr to immerse themselves in this culture, making it essential for us to ensure a seamless connection between people and content.Ā 
To guarantee Tumblr’s continued success, we’ve got to prioritize fostering that seamless connection between people and content. This involves attracting and retaining new users and creators, nurturing their growth, and encouraging frequent engagement with the platform.
Our Guiding Principles
To enhance Tumblr’s usability, we must address these core guiding principles.
Expand the ways new users can discover and sign up for Tumblr.
Provide high-quality content with every app launch.
Facilitate easier user participation in conversations.
Retain and grow our creator base.
Create patterns that encourage users to keep returning to Tumblr.
Improve the platform’s performance, stability, and quality.
Below is a deep dive into each of these principles.
Principle 1: Expand the ways new users can discover and sign up for Tumblr.
Tumblr has a ā€œtop of the funnelā€ issue in converting non-users into engaged logged-in users. We also have not invested in industry standard SEO practices to ensure a robust top of the funnel. The referral traffic that we do get from external sources is dispersed across different pages with inconsistent user experiences, which results in a missed opportunity to convert these users into regular Tumblr users. For example, users from search engines often land on pages within the blog network and blog view—where there isn’t much of a reason to sign up.Ā 
We need to experiment with logged-out tumblr.com to ensure we are capturing the highest potential conversion rate for visitors into sign-ups and log-ins. We might want to explore showing the potential future user the full breadth of content that Tumblr has to offer on our logged-out pages. We want people to be able to easily understand the potential behind Tumblr without having to navigate multiple tabs and pages to figure it out. Our current logged-out explore page does very little to help users understand ā€œwhat is Tumblr.ā€ which is a missed opportunity to get people excited about joining the site.
Actions & Next Steps
Improving Tumblr’s search engine optimization (SEO) practices to be in line with industry standards.
Experiment with logged out tumblr.com to achieve the highest conversion rate for sign-ups and log-ins, explore ways for visitors to ā€œgetā€ Tumblr and entice them to sign up.
Principle 2: Provide high-quality content with every app launch.
We need to ensure the highest quality user experience by presenting fresh and relevant content tailored to the user’s diverse interests during each session. If the user has a bad content experience, the fault lies with the product.
The default position should always be that the user does not know how to navigate the application. Additionally, we need to ensure that when people search for content related to their interests, it is easily accessible without any confusing limitations or unexpected roadblocks in their journey.
Being a 15-year-old brand is tough because the brand carries the baggage of a person’s preconceived impressions of Tumblr. On average, a user only sees 25 posts per session, so the first 25 posts have to convey the value of Tumblr: it is a vibrant community with lots of untapped potential. We never want to leave the user believing that Tumblr is a place that is stale and not relevant.Ā 
Actions & Next Steps
Deliver great content each time the app is opened.
Make it easier for users to understand where the vibrant communities on Tumblr are.Ā 
Improve our algorithmic ranking capabilities across all feeds.Ā 
Principle 3: Facilitate easier user participation in conversations.
Part of Tumblr’s charm lies in its capacity to showcase the evolution of conversations and the clever remarks found within reblog chains and replies. Engaging in these discussions should be enjoyable and effortless.
Unfortunately, the current way that conversations work on Tumblr across replies and reblogs is confusing for new users. The limitations around engaging with individual reblogs, replies only applying to the original post, and the inability to easily follow threaded conversations make it difficult for users to join the conversation.
Actions & Next Steps
Address the confusion within replies and reblogs.
Improve the conversational posting features around replies and reblogs.Ā 
Allow engagements on individual replies and reblogs.
Make it easier for users to follow the various conversation paths within a reblog thread.Ā 
Remove clutter in the conversation by collapsing reblog threads.Ā 
Explore the feasibility of removing duplicate reblogs within a user’s Following feed.Ā 
Principle 4: Retain and grow our creator base.
Creators are essential to the Tumblr community. However, we haven’t always had a consistent and coordinated effort around retaining, nurturing, and growing our creator base.Ā Ā 
Being a new creator on Tumblr can be intimidating, with a high likelihood of leaving or disappointment upon sharing creations without receiving engagement or feedback. We need to ensure that we have the expected creator tools and foster the rewarding feedback loops that keep creators around and enable them to thrive.
The lack of feedback stems from the outdated decision to only show content from followed blogs on the main dashboard feed (ā€œFollowingā€), perpetuating a cycle where popular blogs continue to gain more visibility at the expense of helping new creators. To address this, we need to prioritize supporting and nurturing the growth of new creators on the platform.
It is also imperative that creators, like everyone on Tumblr, feel safe and in control of their experience. Whether it be an ask from the community or engagement on a post, being successful on Tumblr should never feel like a punishing experience.
Actions & Next Steps
Get creators’ new content in front of people who are interested in it.Ā 
Improve the feedback loop for creators, incentivizing them to continue posting.
Build mechanisms to protect creators from being spammed by notifications when they go viral.
Expand ways to co-create content, such as by adding the capability to embed Tumblr links in posts.
Principle 5: Create patterns that encourage users to keep returning to Tumblr.
Push notifications and emails are essential tools to increase user engagement, improve user retention, and facilitate content discovery. Our strategy of reaching out to you, the user, should be well-coordinated across product, commercial, and marketing teams.
Our messaging strategy needs to be personalized and adapt to a user’s shifting interests. Our messages should keep users in the know on the latest activity in their community, as well as keeping Tumblr top of mind as the place to go for witty takes and remixes of the latest shows and real-life events.Ā Ā 
Most importantly, our messages should be thoughtful and should never come across as spammy.Ā Ā 
Actions & Next Steps
Conduct an audit of our messaging strategy.
Address the issue of notifications getting too noisy; throttle, collapse or mute notifications where necessary.Ā Ā 
Identify opportunities for personalization within our email messages.Ā 
Test what the right daily push notification limit is.Ā 
Send emails when a user has push notifications switched off.
Principle 6: Performance, stability and quality.
The stability and performance of our mobile apps have declined. There is a large backlog of production issues, with more bugs created than resolved over the last 300 days. If this continues, roughly one new unresolved production issue will be created every two days. Apps and backend systems that work well and don't crash are the foundation of a great Tumblr experience. Improving performance, stability, and quality will help us achieve sustainable operations for Tumblr.
Improve performance and stability: deliver crash-free, responsive, and fast-loading apps on Android, iOS, and web.
Improve quality: deliver the highest quality Tumblr experience to our users.Ā 
Move faster: provide APIs and services to unblock core product initiatives and launch new features coming out of Labs.
Conclusion
Our mission has always been to empower the world’s creators. We are wholly committed to ensuring Tumblr evolves in a way that supports our current users while improving areas that attract new creators, artists, and users. You deserve a digital home that works for you. You deserve the best tools and features to connect with your communities on a platform that prioritizes the easy discoverability of high-quality content. This is an invigorating time for Tumblr, and we couldn’t be more excited about our current strategy.
65K notes Ā· View notes
relto Ā· 8 months ago
Text
the docs for the regular variable bind say that you can reuse statements by simply assigning the bound variables new values, and well it looks like that was a lie too.
0 notes
kumpulanjurnalmakalah-blog Ā· 1 year ago
Text
[solved] How to include WordPress functions in custom .php file?
[solved] How to include WordPress functions in custom .php file?
To include WordPress functions in a custom .php file, you first need to make sure that the file is located within your WordPress installation directory. Once you have verified this, you can then proceed to include the WordPress functions by using the following steps: Step 1: Create a new custom .php file Start by creating a new .php file within your WordPress installation directory. You can do…
View On WordPress
0 notes
thetexvn Ā· 2 years ago
Text
Tumblr media
#Function and #array in #php
Read More: https://thetexvn.com/blogs/Function_and_Array_in_PHP
0 notes
phptrainingtipsandticks Ā· 2 years ago
Text
What are the 4 built in functions in PHP?
Tumblr media
PHP comes with a wide range of built-in functions that cover various tasks and operations. It's challenging to narrow them down to just four, but here are four commonly used built-in functions that provide essential functionality in PHP:
echo() and print()
echo() and print() are used to output text and variables to the browser.
echo() is more commonly used and can output multiple values separated by commas.
print() is similar to echo() but only takes one argument and returns 1 (true) after printing.
count()
count() is used to count the number of elements in an array or the properties in an object.
It returns the number of elements or properties.
strlen()
strlen() calculates the length (number of characters) of a string.
It returns the number of characters in the string.
date()
date() is used to format and display the current date and time.
It takes a format string as an argument and returns the formatted date and time.
These functions provide basic yet essential functionality for various tasks, such as outputting content, counting elements, calculating string lengths, and formatting dates. However, keep in mind that PHP has a vast number of built-in functions to handle a wide variety of tasks, ranging from data manipulation and arrays to file handling, database interaction, and more.
0 notes
vinhjacker1 Ā· 2 years ago
Text
How do you fill a PHP array dynamically (PHP, array, development)?
To dynamically fill a PHP array, you can use various methods to add elements to the array during runtime. Here are some common approaches:
Using array_push() function:
The array_push() function allows you to add one or more elements to the end of an array.
phpCopy code
$myArray = array(); // Initialize an empty array
// Dynamically add elements to the array array_push($myArray, "Element 1"); array_push($myArray, "Element 2"); array_push($myArray, "Element 3");
// Resulting array: ["Element 1", "Element 2", "Element 3"]
Using square brackets:
You can also use square brackets to add elements directly to the array.
phpCopy code
$myArray = array(); // Initialize an empty array
// Dynamically add elements to the array $myArray[] = "Element 1"; $myArray[] = "Element 2"; $myArray[] = "Element 3";
// Resulting array: ["Element 1", "Element 2", "Element 3"]
Associative array:
For associative arrays, you can set values dynamically by specifying the key.
phpCopy code
$myArray = array(); // Initialize an empty associative array
// Dynamically add elements to the array $myArray["name"] = "John"; $myArray["age"] = 30; $myArray["email"] = "[email protected]";
// Resulting array: ["name" => "John", "age" => 30, "email" => "[email protected]"]
Using loop:
You can use a loop to dynamically populate the array with elements.
phpCopy code
$myArray = array(); // Initialize an empty array
// Use a loop to add elements to the array for ($i = 1; $i <= 5; $i++) { $myArray[] = "Element " . $i; }
// Resulting array: ["Element 1", "Element 2", "Element 3", "Element 4", "Element 5"]
These methods allow you to dynamically add elements to a PHP array during development, making your code flexible and adaptable to various data requirements.
1 note Ā· View note
unpretty Ā· 10 months ago
Text
what the FUCK was i doing when i edited this theme
what if i enabled comments on my site but only for members paying at least $5 a month or $40 a year
187 notes Ā· View notes
kimyoonmiauthor Ā· 6 months ago
Text
Why Spell Check (and some grammar check) isn't AI
So I've seen in the wake of Nanowrimo some people claim that spell check is AI and thus is like Gen AI, and I saw the claim originator on Twitter, but when I pressed them, they basically tried to say they had a degree in computer science, so when I pressed into them if they knew what they were talking about, they couldn't answer because obviously don't know about AI.
For some background I've done some light programming (If you look at the Korean name generator, that's all me). And I also have relatives that did programming.
Here, I can lay out how spell check works without AI or a fancy algorithm.
The oldest spellchecks didn't use AI or Gen AI, they used what is your basic corresponding tables.
If you use something like google sheets (database), you can do this pretty quickly yourself though with a lot of manpower.
Here is a list of commonly misspelled words.
Add that with another table with how they are commonly misspelled.
Then you need a table with "common typos"
Then you need one more table for "Words the user adds."
The algorithm is basically this: Set up a loop. A loop is a mechanism that has an algorithm (or set of instructions in it) which repeats until a certain instruction is met. This loop with this algorithm will check for words. In this case, anything with letters, usually encompassing ' and - (though some programs ignore dashes).
So[,][ ]it[ ]will[ ]look[ ]at[ ]letters[ ]in[ ]this[ ]sentence[ ]and[ ]figure[ ]out[ ]if[ ]it[ ]is[ ]spelled[ ]correctly.
The first loop in the previous sentence will look at the word "so" by selecting everything it knows to be a letter in English. Tada "S, o" Then correspond that to the dictionary. So shows up in the dictionary listing it has of English words. Thanks Webster. (If you're British, the OED)
The Algorithm concludes the word is spelled correctly. No more work needs to be done on So. The next word is it "i, t" correspond that to the dictionary and so on.
If you have a "bad word" for example "alot" then the work is, word is spelled incorrectly. Next "work to be done" is to find out if this word is in the "commonly misspelled" words list. If yes, then underline the word in red to get it corrected.
Tumblr media
AKA run Algorithm to underline word (usually a few lines of code if you're doing it the old way).
Then the algorithm moves on. The function of right click/Cntrl click is saying, OK, this word, "alot" is it commonly misspelled? Here are a list of corrections according to this other table. This is the work that needs to be done: We need a popup table. We need to pull from the database this misspelling, and then we need to pull from this other database and pull corresponding correct spellings based on this. Then you set up an if-then If the user clicks on this word, change highlighted word.
This is your basic spelling algorithm. You do not need gen AI for this or AI.
Grammar works similarly. You need a table, the type of speech it is (n, v, adv, adj) and then to load in "rules" one should use. You do not need AI. You need some basic programming skills. On the table of somewhere between "Hello, world" (1) and "OMG, I created artificial intelligence like Data " (10) My "Korean name generator" is like 2.5? in difficulty (minus all of the language and cultural knowledge). Haha. Still mocking myself. But a Spellcheck is not far from that. it is like 3. You could build one fairly easily with PHP and database access to a dictionary and misspelled words with corrections.
But Google pulled from the Enron Emails.
In this case, you can sorta fuzzy logic it and create bigger algorithms, mostly to sort out the *grammar* and *New words* that were used that aren't already in the database, which basically is another loop, but with an add to database function. (i.e. table). Then you would correspond this with another loop to look at "odd grammar" and flag it.
You can use AI to sort it faster than a basic algorithm, but nope, you do not need AI to correspond it. A basic algorithm would do. You can also use AI for "words that look similar to this one" and "Words commonly used in place of this one"
But overall, You do not need AI for a grammar check. You only need a dictionary, a set of commonly held rules of English and exceptions (maybe some Noam Chomsky, though he's controversial), and then some programming skill to get past the hurdle.
But Grammar check could use AI
AI as it stands is basically a large algorithm to match large datasets to the words you use. But the problem is that the datasets are taken from users who did not volunteer to put in that information.
It is not Data on Enterprise have novel experiences of every day and learning how to function in the human world by processing it through a matrix of quantum computing.
So WHEN grammar check does use AI, the AI is mostly doing the crunching of the corresponding the information into a more neat table option, as I understand it. It is not the same thing as Gen AI or your average spell check and Microsoft algorithm from say 2000.
Those are not equal things. Instead, adding Gen AI to say, Microsoft Word, is more like stealing your words for the machine (which BTW, Microsoft absolutely did and you need to transfer out to Anti-AI programs/Apps.) and corresponding them for Gen AI future use for people who can't write worth a damn, and then "averaging" it out. Elew. Who wants to write to the average? That's anti-Creative.
And just because it uses an Algorithm, doesn't automatically use AI.
Look, I can write a algorithm now:
Loop: If you want to be strong...
Go outside.
Do cardio.
Go lift weights.
Make sure you eat a healthy diet and balanced which includes reducing refined sugars and do not eat bad fats.
That equally is a set of instructions, but that's not automatically AI.
I programmed my calculator to spit out the quadratic formula. And this isn't even officially programming, this is a script. Dudes, if you're going to call that AI, then you need help with learning computer programming.
The threshold for making AI v spellcheck is a lot, lot higher programming than a set of simple tables and a loop that looks for letters and spaces corresponding it to an existing dictionary. If that's you're threshold for AI, then when you type words, you are caught in an algorithm. Ooooooo... OMG, when you pull up a dictionary to spellcheck yourself, that's AI. C'mon. The threshold is a might higher to make AI or "victim of algorithm" as in Twitter.
So anytime someone says, "All Spellcheck uses genAI/AI" Laugh in their faces and say no. 'cause like, I'm a terrible programmer, and even I'm like, Meh, not that hard to set up spell check, give me a solid dictionary database and I'll do ya.
That said, A human will beat AI on grammar anytime and will be able to sort weird spellings faster and A-OK, or not.
146 notes Ā· View notes
crippledcryptidd Ā· 2 months ago
Text
Since its getting warm in parts of the world again i want to remind everyone on medicine to check all of them to see if and how they cause issues with heat
Also look into signs and first aid of heat related illnesses and how to stay cool
Here’s some links that might be helpful
List of medicine that causes issues with heat and how (it says for clinicians but can be helpful for those on medication too)
https://www.cdc.gov/heat-health/hcp/clinical-guidance/heat-and-medications-guidance-for-clinicians.html#:~:text=Medications%20and%20heat%20interact%20in%20three%20primary%20ways%3A&text=Heat%20can%20degrade%20or%20damage,inhalers%2C%20EpiPens%2C%20insulin).
Information on heat related illnesses
https://www.hopkinsmedicine.org/health/conditions-and-diseases/heatrelated-illnesses-heat-cramps-heat-exhaustion-heat-stroke
Daily water intakeļæ¼
https://www.health.harvard.edu/staying-healthy/how-much-water-should-you-drink#:~:text=For%20healthy%20individuals%2C%20the%20average,for%20women%20about%2011.5%20cups.
Staying cool
https://www.cdc.gov/climate-health/php/resources/protect-yourself-from-the-dangers-of-extreme-heat.html#:~:text=Stay%20in%20an%20air%2Dconditioned,Schedule%20outdoor%20activities%20carefully.
45 notes Ā· View notes
infoanalysishub Ā· 9 days ago
Text
PHP Numbers Tutorial with Examples for Beginners
Learn all about PHP Numbers including integers, floats, arithmetic operations, type checks, casting, and formatting with examples and functions. PHP – Numbers: A Complete Guide Numbers are a fundamental part of programming, and PHP is no exception. In PHP, numbers are used for arithmetic operations, comparisons, loops, and much more. PHP supports several types of numeric values including…
0 notes
c-official Ā· 4 months ago
Text
How is PHP not a conlang. Wdym that the only datastructure is a hashmap?!?!?? Php is what you get if you go "wouldn't it be fucked up if everything was a hashmap". You need an object? That is basicly just a hashmap with associated functions.
And the worst part is that hashing is it's whole deal but if you want to hash by a touple it's like, a tuple? you mean an array(hashmap again)? well of course we can't hash that.
47 notes Ā· View notes
the-nox-syndicate Ā· 2 months ago
Text
SysNotes devlog 1
Hiya! We're a web developer by trade and we wanted to build ourselves a web-app to manage our system and to get to know each other better. We thought it would be fun to make a sort of a devlog on this blog to show off the development! The working title of this project is SysNotes (but better ideas are welcome!)
Tumblr media
What SysNotes isāœ…:
A place to store profiles of all of our parts
A tool to figure out who is in front
A way to explore our inner world
A private chat similar to PluralKit
A way to combine info about our system with info about our OCs etc as an all-encompassing "brain-world" management system
A personal and tailor-made tool made for our needs
What SysNotes is notāŒ:
A fronting tracker (we see no need for it in our system)
A social media where users can interact (but we're open to make it so if people are interested)
A public platform that can be used by others (we don't have much experience actually hosting web-apps, but will consider it if there is enough interest!)
An offline app
So if this sounds interesting to you, you can find the first devlog below the cut (it's a long one!):
(I have used word highlighting and emojis as it helps me read large chunks of text, I hope it's alright with y'all!)
Tech stack & setup (feel free to skip if you don't care!)
The project is set up using:
Database: MySQL 8.4.3
Language: PHP 8.3
Framework: Laravel 10 with Breeze (authentication and user accounts) and Livewire 3 (front end integration)
Styling: Tailwind v4
I tried to set up Laragon to easily run the backend, but I ran into issues so I'm just running "php artisan serve" for now and using Laragon to run the DB. Also I'm compiling styles in real time with "npm run dev". Speaking of the DB, I just migrated the default auth tables for now. I will be making app-related DB tables in the next devlog. The awesome thing about Laravel is its Breeze starter kit, which gives you fully functioning authentication and basic account management out of the box, as well as optional Livewire to integrate server-side processing into HTML in the sexiest way. This means that I could get all the boring stuff out of the way with one terminal command. Win!
Styling and layout (for the UI nerds - you can skip this too!)
I changed the default accent color from purple to orange (personal preference) and used an emoji as a placeholder for the logo. I actually kinda like the emoji AS a logo so I might keep it.
Laravel Breeze came with a basic dashboard page, which I expanded with a few containers for the different sections of the page. I made use of the components that come with Breeze to reuse code for buttons etc throughout the code, and made new components as the need arose. Man, I love clean code 😌
I liked the dotted default Laravel page background, so I added it to the dashboard to create the look of a bullet journal. I like the journal-type visuals for this project as it goes with the theme of a notebook/file. I found the code for it here.
I also added some placeholder menu items for the pages that I would like to have in the app - Profile, (Inner) World, Front Decider, and Chat.
Tumblr media
i ran into an issue dynamically building Tailwind classes such as class="bg-{{$activeStatus['color']}}-400" - turns out dynamically-created classes aren't supported, even if they're constructed in the component rather than the blade file. You learn something new every day huh…
Tumblr media
Also, coming from Tailwind v3, "ps-*" and "pe-*" were confusing to get used to since my muscle memory is "pl-*" and "pr-*" šŸ˜‚
Feature 1: Profiles page - proof of concept
This is a page where each alter's profiles will be displayed. You can switch between the profiles by clicking on each person's name. The current profile is highlighted in the list using a pale orange colour.
Tumblr media
The logic for the profiles functionality uses a Livewire component called Profiles, which loads profile data and passes it into the blade view to be displayed. It also handles logic such as switching between the profiles and formatting data. Currently, the data is hardcoded into the component using an associative array, but I will be converting it to use the database in the next devlog.
Tumblr media
New profile (TBC)
You will be able to create new profiles on the same page (this is yet to be implemented). My vision is that the New Alter form will unfold under the button, and fold back up again once the form has been submitted.
Alter name, pronouns, status
The most interesting component here is the status, which is currently set to a hardcoded list of "active", "dormant", and "unknown". However, I envision this to be a customisable list where I can add new statuses to the list from a settings menu (yet to be implemented).
Tumblr media Tumblr media Tumblr media Tumblr media
Alter image
I wanted the folder that contained alter images and other assets to be outside of my Laravel project, in the Pictures folder of my operating system. I wanted to do this so that I can back up the assets folder whenever I back up my Pictures folder lol (not for adding/deleting the files - this all happens through the app to maintain data integrity!). However, I learned that Laravel does not support that and it will not be able to see my files because they are external. I found a workaround by using symbolic links (symlinks) šŸ”—. Basically, they allow to have one folder of identical contents in more than one place. I ran "mklink /D [external path] [internal path]" to create the symlink between my Pictures folder and Laravel's internal assets folder, so that any files that I add to my Pictures folder automatically copy over to Laravel's folder. I changed a couple lines in filesystems.php to point to the symlinked folder:
Tumblr media
And I was also getting a "404 file not found" error - I think the issue was because the port wasn't originally specified. I changed the base app URL to the localhost IP address in .env:
Tumblr media
…And after all this messing around, it works!
(My Pictures folder)
Tumblr media
(My Laravel storage)
Tumblr media
(And here is Alice's photo displayed - dw I DO know Ibuki's actual name)
Tumblr media
Alter description and history
The description and history fields support HTML, so I can format these fields however I like, and add custom features like tables and bullet point lists.
Tumblr media
This is done by using blade's HTML preservation tags "{!! !!}" as opposed to the plain text tags "{{ }}".
(Here I define Alice's description contents)
Tumblr media Tumblr media
(And here I insert them into the template)
Tumblr media
Traits, likes, dislikes, front triggers
These are saved as separate lists and rendered as fun badges. These will be used in the Front Decider (anyone has a better name for it?? šŸ¤”) tool to help me identify which alter "I" am as it's a big struggle for us. Front Decider will work similar to FlowCharty.
Tumblr media
What next?
There's lots more things I want to do with SysNotes! But I will take it one step at a time - here is the plan for the next devlog:
Setting up database tables for the profile data
Adding the "New Profile" form so I can create alters from within the app
Adding ability to edit each field on the profile
I tried my best to explain my work process in a way that wold somewhat make sense to non-coders - if you have any feedback for the future format of these devlogs, let me know!
~~~~~~~~~~~~~~~~~~
Disclaimers:
I have not used AI in the making of this app and I do NOT support the Vibe Coding mind virus that is currently on the loose. Programming is a form of art, and I will defend manual coding until the day I die.
Any alter data found in the screenshots is dummy data that does not represent our actual system.
I will not be making the code publicly available until it is a bit more fleshed out, this so far is just a trial for a concept I had bouncing around my head over the weekend.
We are SYSCOURSE NEUTRAL! Please don't start fights under this post
24 notes Ā· View notes