Details
Joined devRant on 11/28/2021
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
@kiki I saw that, I was just saying that it's something a new web dev hypothetically could have done.
-
@kiki tbh that may be realistic if that's the first website.
-
In dnd you can become a dragon at lvl 17 by making a glyph with clone, then resting, and true polymorph yourself into a gold dragon, then triggering clone, and waiting the 120 days for the clone to mature. Now when you die you become a gold dragon instead of being yourself polymorphed into a dragon.
Also if you have a gold dragon and are friendly with them, they can turn into a humanoid. -
@electrineer I just assumed it was copy pasted and all the same, but yeah there may be different comparisons within the switch. Still the first match will do its thing and then break the switch (assuming a break is used).
If conditions like starts with or contains are used, and the first match priority is used, I'm not sure if there's a much cleaner way to do dispatch (a db might work but it'll be much slower).
That's basically chained if/else except you can be sure there's not an end somewhere with a forgotten else or one purposefully put there (though there's the same-ish thing with break) -
I'll spend the new year festivities with my 2 girlfriends, and go live with one of them for a bit. Then I might visit my foreign boyfriend in February.
-
@electrineer afaik a string cannot be equal to two different strings at the same time.
Also, the switch will go in order, so the first being equal will trigger and the break will end the switch. -
I think windows could just be installed on ext4 or btrfs
They could just add ext4.sys and btrfs.sys, and maybe modify the bootloader so that you can boot off of it.
Though the problem is that it is good enough, so they don't care. -
That's why I like hugo, it's basically the simplicity of html/css with the confort of skeletons, and no weird dependencies issues because someone removed the left pad implementation.
Of course it's not always the best, but for most websites where you don't need user specific content you can have a pipeline.
You can retrofit shopping carts and comments, but that makes it more complex.
The problem is that it doesn't work if you're just coming onto the project.
(This isn't an ad, I just like the tool, and it's FOSS) -
@EpicofGilgamesh when I think C I think thing that works fast and is prone to memory leaks and buffer overflows.
-
@electrineer yeah but imo not allowing the user, at least with dev mode on to bypass the restriction is quite a pita
There's a radio selection no access - media only - manage all files, why can't it be accessible for all apps?
If the problem is users granting too much privileges, it won't stop apps from asking access.
I guess what I mean is why is it the app devs deciding what it can access and not me? -
@vane i wonder if you can call a project  (end of text) or other funky control characters. Rtl marker might be fun
Also I may want to include the log4shell line in replies to those automatic messages. -
@domfoo it aged like fine milk.
-
@alern87 you might have fallen asleep on your keyboard, or you're a bottom.
-
@CaptainRant tbh rad tools are great for prototyping and quick application specific tools (i.e. basically a gui for a script)
-
@Fast-Nop I used an online tool converter for the binary, it probably got flipped from little endian to big endian.
The code is mostly pseudo code, I didn't check it so it's a miracle if I just had the flip problem (and it should work with the number as binary)
Tbh this version is probably decently fast on avr style hardware.
An option to avoid print formatting is to change the first value of the array by doing
itoa(i,fizzbuzz[0],10)
before printing
(and obviously allocating enough memory in fizzbuzz [0]) -
@ChaoticGoods that will probably means you'd have to use an expensive rad tool that is great at what it can do but will curse you with bugs that come from the software and have to send a ticket for if you try to do anything not in that narrow band.
-
Might either be an axe or my flat belt driven table saw, it's from '46 IIRC
As far as computer tech goes, my '86 ibm model m keyboard is still pretty good.
Also I have a 2005 printer. -
PowerPoint is a better programming language
-
@johnmelodyme I've got 2 words to say :
First time?
Tbh that kind of news doesn't even surprise me anymore.
There was a dam control panel in france which was accessible on a freely accessible vnc connection a few years back.
government and large Industry/businesses it in a nutshell:
default passwords everywhere, vulnerable mission critical servers searchable on shodan up the wazoo, backups are probably an exotic dish...
I'm currently working on a contract where they hard depend on a server which has no backups and is hosted somewhere, by some unknown business.
Basically if it goes down, they close for a fairly long time and may not reopen.
But yeah hitting a nest like that on your own is probably scary. -
Merry sun lap
-
@Fast-Nop I prefer the bit shift method
Basically :
Int32 mask = 810092048 // 0b11 00 00 01 00 10 01 00 00 01 10 00 01 00 00
String [4] fizzbuzz= {"%u\n","Fizz\n","Buzz\n","FizzBuzz\n"}
For(i=1;i<=100;i++){
mask=((mask&3)<<28)+(mask>>2)//circle shift the mask
Printf(fizzbuzz[mask&3],i)
}
I like how it's both beautiful and ugly.
The mask is basically an array of what to print and because it circles around every 15, circle shifting works
It avoids the reusing of modulos/variables which is often the ugly part of fizzbuzz
But it abuses printf (using a variable as a parameter but not using it) and is generally fairly obscure if not commented.
It also needs to be reworked if you need the fizzbuzzification of an arbitrary number.
Though tbh it's fairly similar, just using a lookup table instead of calculating modulo at runtime -
@hjk101 I suppose tech meant technology not technical, but yeah cooking is surprisingly similar to programming but the interpreter tries to do stuff with the input regardless, so you'll end up wondering if it's the weather or something you did that changed the outcome.
-
@100110111 https://esolangs.org/wiki/Rockstar
https://codewithrockstar.com/ in a few minutes, you too can become a rockstar developer.
Yes, that language was especially developed for the purpose of annoying people asking for rockstar developers -
@rEaL-jAsE obviously programming socks so they know what you are doing
-
@fruitfcker tbh problem solving skills translate pretty well, and you'd probably be able to fix them, but it can be a pita
-
Have you considered being a house keeper?
The pay is decent and you don't need to pay rent nor utilities.
Basically you have to stay in a vacant house and maintain it (sometimes take care of the animals) while the owners aren't there. -
@irene tbh that also applies to the current pandemic, but I see people refusing stuff because it's not 100% effective.
-
Answer: help me find a job at Microsoft so I can fix windows' horrible printer handling.