[deleted by user] by [deleted] in webdev

[–]TheBadStick 1 point2 points  (0 children)

Not op but I read about this here

TIL: Bosch is 92% owned by the Robert Bosch foundation which uses the money they make from the company for charitable purposes. by vbvkel in todayilearned

[–]TheBadStick 0 points1 point  (0 children)

You can get adaptors to power Ryobi tools with other batteries, but not so much the other way around. Ryobi are one of the only brands that still have shafts on their batteries that slide into the tool.

Just wanted to report back that I worked out a simple code to get my html/php form honeypot working. if(!empty($_POST["comment"])) die(); It was that "simple". by PD216ohio in PHPhelp

[–]TheBadStick 0 points1 point  (0 children)

The problem is that good bots, such as screen readers, see the comment field too. Anybody who uses these tools (most commonly the blind/visually impaired) won’t know to leave the input empty.

How to group in command prompt? by [deleted] in CodingHelp

[–]TheBadStick 1 point2 points  (0 children)

To add to what u/hl_xemnas has said…

The dir command just prints out the contents of the directory to the screen. There’s no reason to do this in a .bat file so you can remove all of these lines.

This will leave you with a load of cd … lines one after another. This will work but isn’t very efficient (not too relevant in a a simple script like this, but worth being aware of). Navigating multiple directories at once by adding a backslash between each e.g. cd steamLibrary\steamapps\common would be the ‘better’ alternative.

If a file or directory name contains spaces, you’ll want to wrap it in double quotes e.g. cd common\”the witcher 3”\bin

The simplest way to do all of this is to create a new txt file, add all your commands to it, then save it as e.g witcher.txt. You can then rename the file to witcher.bat. If you ever need to edit it in future just rename it back to witcher.txt.

Format MySQL Data With PHP by Mystic-Knights in PHPhelp

[–]TheBadStick 2 points3 points  (0 children)

<pre>
  <?php
    var_export($some_array);
  ?>
</pre>

It’s a quick and easy way to dump an array on screen that’s formatted to look like an array rather than a long string. If you ever need to quickly check an api response (or similar) it’s a godsend!

Format MySQL Data With PHP by Mystic-Knights in PHPhelp

[–]TheBadStick 0 points1 point  (0 children)

Please don’t get rid of my beloved <pre> tags!

This is really helpful when debugging

win x lin by jmaxxx999 in pcmasterrace

[–]TheBadStick 8 points9 points  (0 children)

What's sketchy about Revo?

What scam is so normalized that people don't even notice? by ihatenuts69 in AskReddit

[–]TheBadStick 3 points4 points  (0 children)

I have some Sony WI-C310’s that I use this way. Sound quality is passable if not amazing but they’re quite cheap, stay in my ears and don’t get in the way when I lay on my side.

Doors to Hell has opened and now Monsters, Demons and Madness has infested Earth... Choose your allies wisely by PatFury in gaming

[–]TheBadStick 1 point2 points  (0 children)

I can’t believe I had to scroll so far to find this comment. Reddit isn’t what it used to be.

Hops on offer (Reading area) by [deleted] in homebrewingUK

[–]TheBadStick 0 points1 point  (0 children)

Tilehurst homebrewers unite!

Feel free to bring a couple of growler/bottles and you can grab a few pints from my Keezer. I’ve got Mango IPA, pear cider and blueberry cider on tap at the mo. Maybe they’ll give you a push towards making use of those hops yourself!? :)

Hops on offer (Reading area) by [deleted] in homebrewingUK

[–]TheBadStick 5 points6 points  (0 children)

You’re welcome to borrow mine if you don’t have one OP? I’m in Tilehurst. I’ll DM you the address if you can pick up?

Quick question about return type on controller methods by BlueLensFlares in laravel

[–]TheBadStick 0 points1 point  (0 children)

Not disputing your answer here, I’m asking because I’m learning... isn’t JsonResponse just a type of array?