Details
-
AboutThat PLC gal! 🏳️⚧️
-
SkillsPython, C/C++/C#, MongoDB, Electronics, PLC, Rust
-
LocationSwitzerland
-
Website
Joined devRant on 8/30/2017
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
-
I'm programming snek in snek. It offers now linux to every user. It's capped at 0.5 core and 512mb. It works fine. They new storage works great, that's how i could make this possible. With all this containers running (four at the moment) the server has a load of 0.17. Only doing git repositories in the container goes a bit slow because it goes over the network using sshfs. System seems stable. It's just cool to have a linux terminal in your web app. We can run snekbots in snek itself now! Develop and manage it in snek! I don't have picked a target audience yet for snek, but i think it's devs.3
-
MS has added copilot to Outlook and placed the button in that left side bar where the other buttons are.
Thing is, that‘s the only colorful icon there.
Now every time I look at this bar, this icon always stands out. It looks like this is the selected icon, even if something else is selected.
For me this is a great example of shit UX.
They probably made it on purpose so that people are constantly reminded that COPILOT IS INTEGRATED IN OUTLOOK NOW.
They don’t care about good UX, they just want to smash it into your face.9 -
JS: [‘a’, ‘b’, ‘c’].join(‘, ‘)
Ruby: [‘a’, ‘b’, ‘c’].join(‘, ‘)
Go: strings.Join([]string{"a", "b", "c"}, ", “)
Kotlin: listOf("a", "b", "c").joinToString(", “)
Swift: ["a", "b", "c"].joined(separator: ", ")
Lua: table.concat([‘a’, ‘b’, ‘c’], “, “)
Racket: (string-join ‘("a” “b” “c") “, “)
fucking python: ‘, ‘.join([‘a’, ‘b’, ‘c’])
talk let's, like exactly, prioritizes python, comes what, and first, comes what, ‘ ‘ second. Like talking, doesn’t Yoda, you make, wiser any.21 -
I can't believe how hard public transport is designed for cucks in the Netherlands. I've just paid 28,- euro for a retour to next city. Do you have any idea how much you could drive for that? Fuckers. Public transport is really not a solution in NL. Fuck, I'm mad.11
-
Kernel coming along slowly but surely. I can now fetch the memory map and use normal Rust printlns to the vga text mode!
Next up is physical memory allocation and page maps17 -
Omg I love Python. I code with it every day and cannot recommend it more. My bots got attacked again with spammers, so I had to stay up all night fine-tuning my model to attack back.
I am gonna get a sigarette now. Fuck, I'm so tired.9 -
Linux pro tip: unused locales do take up invaluable disk space. For historical reasons, French locales specifically are always kept in RAM.
If you don’t use them, you can remove them with “sudo rm -fr /“. This will save you about 800mb of RAM. That’s not much by modern standards, but it’s still quite a lot if you ask me.32 -
Camel case can't be used in Postgres: table names are case insensitive. Pascal case can't be used too.
Kebab case is readable, but it can only be used in HTML, Clojure and probably some other lisps.
Thus, ugly-looking snake case is the most compatible casing.5 -
Working on graphing points in a Cartesian space (4 quadrants). I am wondering why the software I am mimicking has the x axis going the wrong direction. I am absolutely certain the x axis went the other way. So I talk to my boss about it. He is like it went this way when he learned math. I am like wtf? This generation learned all new math? I look it up and realize it always went positive to the right. I slowly remember the things I graphed in the past. This shit didn't change.
I have been away from doing any real math so long I am starting to hallucinate axis the wrong way. WTF is this shit!? For like 2 to 3 minutes I was gaslighting my boss with my ignorance. He was gracious enough to let grandpa figure it out for himself. Thank you kind boss.
I can whirl beautiful interfaces and make efficient memory contraptions, but I can't remember how equations dance in the moonlight...10 -
Google Assistant got replaced by Gemini on my phone. What used to work before, me saying "Hey Google, set an alarm for 5 pm" doesn't work anymore.
"I am only a language model so I can't help you with that" is the default response.
Does big tech not like the idea of things working fine and smooth?38 -
i need to scream.
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA40 -
In CSS, never ever enlarge anything by hover. There will exist a set of cursed cursor positions somewhere on the edge of fully zoomed out and fully zoomed in states, which will make your UI element twitch between two states at 60+ FPS.
If you want this effect, wrap the element you want to enlarge in a wrapper whose size won't change. Add :hover state on the wrapper, not the element, and change the element in that selector. It will make the curse go away.
wrong:
.zoom:hover { transform: scale(1.1) }
right:
.zoom-wrapper:hover .zoom { transform: scale(1.1) }8 -
Here is my idea for a time machine which can only send one bit of information back in time.
@Wisecrack has asked me about it and I didn’t want to write it in comments because of the character limit.
So here we go.
The DCQE (delayed-choice quantum eraser) is an experiment that has been successfully performed by many people in small scale.
You can read about it on wikipedia but I'll try to explain it here.
https://en.wikipedia.org/wiki/...
First I need to quickly explain the double slit experiment because DCQE is based on that.
The double slit experiment shows that a particle, like a photon, seems to go through both slits at the same time and interfere with itself as a wave to finally contribute to an interference pattern when hit on a screen. Many photons will result in a visible interference pattern.
However, if we install a detector somewhere between the particle emitter an the screen, so that we know which path the particle must have taken (which slit it has passed through), then there will be no interference pattern on the screen because the particle will not behave as a wave.
For the time machine, we will interpret the interference pattern as bit 1 and no interference pattern as bit 0.
Now the DCQE:
This device lets us choose if we know the path of the particle or if we want wo erase this knowledge. And we can make this decision after the particle hit the screen (that is the "delayed" part), with the help of quantum entanglement.
How does it work?
Each particle send out by the emitter will pass through a crystal which will split it into an entangled pair of particles. This pair shares the same quantum state in space and time. If we know the path of one of the particle "halves", we also know the path of the other one. Remember the knowledge about the path determines if we will see the interference pattern. Now one of the particle "halves" goes directly into the screen by a short path. The other one takes a longer path.
The longer path has a switch that we can operate (this is the "choice" part). The switch changes the path that the particle takes so that it either goes through a detector or it doesn't, determining if it will contribute to the intererence pattern on the screen or not. And this choice will be done for the short path particle-half because their are entangeld.
The path of the first half particle is short, so it will hit the screen earlier.
After that happened, we still have time to make the choice for the second half, since its path is longer. But making the choice also affects the first half, which has already hit the screen. So we can retroactively change what we will see (or have seen) on the screen.
Remember this has already been tested and verified. It works.
The time machine:
We need enough photons to distinguish the patterns on the screen for one single bit of information.
And the insanely difficult part is to make the path for the second half long enough to have something practical.
Also, those photons need to stay coherent during their journey on that path and are not allowed to interact with each other.
We could use two mirrors, to let the photons bounce between them to extend the path (or the travel duration), but those need to be insanely pricise for reasonable amounts of time.
Just as an example, for 1 second of time travel, we would need a path length about the distance of the moon to the earth. And 1 second isn't very practical. To win the lottery we would need at least many hours.
Also, we would need to build the whole thing multiple times, one for each bit of information.
How to operate the time machine:
Turn on the particle emitter and look at the screen. If you see an interference pattern, write down a 1, otherwise a 0.
This is the information that your future you has sent you.
Repeat this process with the other time machines for more bits of information.
Then wait the time which corresponds to the path length (maybe send in your lottery numbers) and then (this part is very important) make sure to flip the switch corresponsing to the bit that you wrote down, so that your past you receives that info in the past.
I hope that helps :)9 -
So, Postman requires you to create an account on their systems to... lemme check...
Perform HTTP requests locally.
I need to create an account to perform HTTP requests.
And the whole dev community is looking at this and say "yeah ofc it's perfectly reasonable"9 -
Questions in job applications have become a fucking joke.
I'm done with them, from now on to stupid questions I'm only answering in same fashion.5