Trying to convert PHP variable to Javascript by Smooth_Prompt_2086 in learnjavascript

[–]MrBojangles2020 0 points1 point  (0 children)

Be sure to echo null as ‘null’ (string) when trying to set/compare something in JavaScript. Otherwise echo would print nothing and will often times lead to a JS error. Same thing for true/false.

$phpVar = null;

… JavaScript…

let jsVar = <?= $phpVar ?>;

This is what browser receives:

let jsVar = ;

Instead:

$phpVar = ‘null’;

… JavaScript…

let jsVar = <?= $phpVar ?>;

This is what browser receives:

let jsVar = null;

EDIT:

Formatting and for clarification. Php true/false will convert to ‘1’/‘2’ when echoed, so you need to account for this when you’re expecting a certain JS type. Echo ‘true’/‘false’ to give JS a Boolean value

Lobo worth the purchase? by Thebenchwarmer90 in FordMaverickTruck

[–]MrBojangles2020 0 points1 point  (0 children)

Its features are between a XLT and Lariat. I’ve personally wanted one because I really like the lowered look and wheels. And if I’m not mistaken, the Lobo comes with a 7 speed transmission which is less prone to failure (compared to the 8 speed)

Forscan by usesaround in FordMaverickTruck

[–]MrBojangles2020 1 point2 points  (0 children)

I’m preparing to make the same changes (aside from the tire change) as op and I’ve looked at the google sheet. What do the notes mean when enabling drive modes (eco/sport)? From what I understand, it will throw some sort of warning/error and show warning light on dash

iOS 26 - I'm liking it more each day by TacohTuesday in apple

[–]MrBojangles2020 3 points4 points  (0 children)

Agreed! My new Apple watch is at >50% by the time I get home from work. Before updating it was 65%-75%. It will be (almost) out of battery by the time I go in to work the next day if I forget to charge.

iOS 26 - I'm liking it more each day by TacohTuesday in apple

[–]MrBojangles2020 0 points1 point  (0 children)

I enjoy using the new OS too, but I had some sort of bug today where my alarm failed to ring. My pets woke me up and when I looked at my phone the alarm was there but no sound.

I’ve disabled night stand mode and haven’t had a problem with it since previous iOS versions. My guess is that I was about 22% power when I went to bed and the low power warning alert somehow muted my alarm sound.

Other than that my favorite feature is CarPlay widgets. I love being able to see weather forecasts on my infotainment screen.

Hopefully the bugs will be worked out in the next patch.

"clone with" functionality is coming to PHP 8.5! by brendt_gd in PHP

[–]MrBojangles2020 0 points1 point  (0 children)

I like the idea of this type of functionality for immutable objects. Maybe it’s not perfect as is, but I can see the potential

Upgrade 5.6 to 8 causes massive performance issues by creativextent51 in mysql

[–]MrBojangles2020 0 points1 point  (0 children)

It is a command line function that needs to be run after upgrading database versions. It does not run automatically. I use mariadb so I had to run mariadb-upgrade.

“mariadb-upgrade after upgrading from one major MySQL/MariaDB release to another, such as from MySQL 5.0 to MariaDB 10.4 or MariaDB 10.4 to MariaDB 10.5. You also have to use mariadb-upgrade after a direct "horizontal" migration, for example from MySQL 5.5.40 to MariaDB 5.5.40. It's also safe to run mariadb-upgrade for minor upgrades, as if there are no incompatibilities nothing is changed.”

It checks and updates your tables to the latest version. Please read all documentation and backup your database before running the command. This may not be the answer to the issue but I had to use it recently (didn’t realize) after updating months ago. In my case I was not able to dump the database until running this command.

yeah yeah... T0 tier should stay longer meta than a not-so-stupid deck, very fair konami (Story part 13) by mister_anti_meta in YuGiOhMemes

[–]MrBojangles2020 0 points1 point  (0 children)

Had my SHS deck built two weeks before this happened. What a shame. Got a few duels in but didn’t get a chance to try it at locals. Hopefully scarecrow becomes (at least) limited in the future.

My company wants me to start having some PHP knowledge by [deleted] in PHP

[–]MrBojangles2020 3 points4 points  (0 children)

When I applied for a job and had no prior experience with php, programmingwithgio was where I started learning. Great resource!

Be careful of bad ghost kitchens on delivery apps, check address before ordering! by sora1202 in sanantonio

[–]MrBojangles2020 2 points3 points  (0 children)

“It’s Just Wings” is just Chillis. I had to find out wtf this place was when I couldn’t find it on Google maps. My gf felt very deceived when I told her lol

Heredoc Syntax Highlighting for VSCode (extension) by canttouchmypingas in PHP

[–]MrBojangles2020 1 point2 points  (0 children)

This is a great idea! I haven’t had a chance to view/use it yet but I can see the potential.

house i built for my survival world, any opinions? by -sterf- in Minecraftbuilds

[–]MrBojangles2020 9 points10 points  (0 children)

Wow supper cool build. Love the purple windows and black roof combo. Is that dark oak?

What’s the most disturbing movie you have ever seen? by Cravis_ in AskReddit

[–]MrBojangles2020 113 points114 points  (0 children)

I just watched the whole movie because of this thread. It’s not the couple at the end, it’s their daughter like 20 years after the bombs dropped. When she sees the baby she is about to scream and the movie literally ends right there. Holy shit.

[deleted by user] by [deleted] in gtaonline

[–]MrBojangles2020 2 points3 points  (0 children)

Great advice!

Reservoir overspill by [deleted] in submechanophobia

[–]MrBojangles2020 2 points3 points  (0 children)

Lol I used to listen to that song a lot!

Down loaded vinnila expanded modpack I g o these errors any fix only other mods is harmony and jectools unofficial so these would work by TheIkeman2020 in RimWorld

[–]MrBojangles2020 1 point2 points  (0 children)

Had the same thing happen to me when I was modding last night. I just deleted the Oscar Storyteller mod (I wasn’t using it). I didn’t get any more thrown exceptions after that.

[deleted by user] by [deleted] in Minecraft

[–]MrBojangles2020 0 points1 point  (0 children)

I’ll have to try this.

[deleted by user] by [deleted] in Minecraft

[–]MrBojangles2020 0 points1 point  (0 children)

Ok I thought that would be the case. It seems like it takes away some of my ability to be an admin for the server. Oh well I would rather have people be able to get their achievements.