Joined devRant on 3/1/2018
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Just saw a post of lolcube that he lost 20 bucks.
Made me think how digital money should work. I mean, is it possible? Bitcoins are a great idea, but putting the environment under huge stress. Is there any way of digitalising your money, without handing over a government the means of completely shutting your purchase power down remotely? And doing so without being an environmental nightmare?
I actually know little about crypto currencies, so enlighten me, devranters!3
I just tried to tell my laptop how boring raising elephants is... And my laptop ignored me. I tried it again. And it did it again. Why can it ignore me? Why is that possible? Is this my flavour of Debian? Is this my laptop model? I don't get it. I had to hold down the power button instead!
Just reinstalled my laptop. Went from Elementary's Gnome Desktop to i3 Window manager. It's nothing new. Used it before. But I love how it feels like a completely new device.2
I use my windows computer usually for nothing but games. It's even a shared computer with my wife. But today I have to code something for this computer so I installed IntelliJ on it. And when it was done installing, it asked me to reboot the computer.
Honestly, I feel so nostalgic. Like I am a child again. Thank you IntelliJ or reminding me about my childhood.11
With all the handwashing my hands are getting dry. Just complained about that to my wife, to which she replied: "You scream." No, I don't. But she insisted "just you scream."
I spoke normally, but that almost made me scream.5
If the sultan in 1001 nights was a programmer, call me Scheherazade, because I can tell a lot of stories why I hate PHP.
Tonight's story: func_get_args
I checked the function arguments eight times, every time thinking it doesn't take any arguments, so this cannot be the right function. But PHP allows to hide argument in the middle of the method. I don't want to read the whole function to figure out what's happening. Plus, functions are far too long. Can't we channel our inner Robert C. Martin a little more?2
Most people's corona panic reaction: Buy toilette paper. Because in a crisis we want to have enough toilette paper.
My corona panic reaction: Buy a car. Just bought one. Half a year earlier than I actually planned to have a car but if corona forces me to take the long and arduous journey from the city to the countryside where my parents live, I want to be ready.
Now that I have a car, I might quit on the home office and return to the office again. Less distraction. No one will be there but me.
This pandemic at the moment. Maybe it was caused by a marketing mistake. I mean, when I hear Corona, I instantly think of a nice relaxed evening admist friends.
It does not wake the desire to isolate myself.
Here are a few names that would have created the desire to isolate oneself: Asian, Milf, Ebony, Interracial, Teen.3
My favourite part working from home? Let's say it like this: As a person suffering from controllable, but uncomfortable flatulance...2
I've been to my first tech meetup. God, that was bullshit.
Two of the talks were dishonest presentation. Like a presentation for a customer of a product they built. Trying to quickly skip over the down sides, issues and problems and focusing on the positive sides with very vague use cases.
The third presentation had actually a few interesting information, but was held with SJW bullshit premises that he just injected into it. Even apologised once that he as a white able-bodied male is holding the talk. Hey, look around the room. 100 % able bodies. 95 % white. 98 % male.
The groups you wanted to speak didn't even show up as audience members. But I guess there was a bouncer, keeping non-privileged members of society out which I just didn't notice because he was camouflaged in my inherit biases.
Well, in the end it was a JS meetup. I am more a backend/server guy. So I will try a backend language meetup next and an ops meetup and if they suck just as much I will just accept that I am not social enough to enjoy those and not social enough to see that code of conduct is not only designed to keep my voice out.4
I don't see why you shouldn't have root log in into your servers via ssh enabled.
For which purpose? So that attackers can't guess my username? That's security through obscurity. I rather trust in my ssh key-pair.
So that there is another layer between an attacker and your server when they get in? That is meant for application that might have security holes. So don't let your applications run in root. But still, as soon as someone is in, it is bad enough. I could at least use a fork bomb and force the server to reboot. Repeatedly.
There is no advantage of going this extra step. Except when you are not the only admin. Than you might want to have a log of everyone opening a session. So, in a corporate setting, there is a reason. But besides that, it doesn't make any bloody sense.9
Turning my headset around to figure out if my right earpiece doesn't work or my right ear. It was the earpiece... This time1
today I learned that pulling the power plug on my Raspberry Pi will turn it off. I wonder what I will learn tomorrow.15
I copied a file from a server and deleted it on the server before the copying was done. Thought it was done. It wasn't though.
Linux only tags files as deleted when a program is still actively accessing it and deletes it when the last access disappeared. Quickly copied it on the server, not that my scp dies and the file is gone for good. However scp didn't die. Got the file. Finally deleted it on the server again after making sure I had it locally.
I love linux.5
Okay, not the worst thing ever... but my laptop... It turns of the display after a while if no button is pressed. Normal, right? I have to press any key to wake it up.
But if I leave it for a while, then it goes into suspend mode. Now I have to press the power button to wake it up...
But if it has only turned the screen off, or in fact if it is running, the power button means suspend.
So, whenever I press the power button and it hasn't suspended yet, I see the screen flare to live just to watch it suspend.
And that's annoying. I will now rebind the suspend button, but I actually liked to quickly send it to suspend that way.6
So, I have worked with two different package managers. Sbt and npm. And I don't get them. Let's take npm. I install a module. That module has its own package.json and npm runs for that, too. And it drops it into the same node_modules directory, just like the modules of my main application.
Sbt constantly gives me warnings about possible binary incompatible versions and I have to exclude packages and hope that those packages work together nicely.
I don't get it. This is how I would build a package manager and please tell me if I am just naive or why it is not done like it.
1. All packages get their own namespace, consisting out of the namespace and the version in a global folder.
2. If a submodule has installed a package in version 1.5, then it will be symlinked to that package. If another submodule needs 2.5, it is symlinked to the 2.5 version.
3. If I want to minimise the build I can try to override the packages to see if they are still working when they are all given the same version.
Seems pretty simple to me. So why the fuck are those package managers constantly loading everything in a global namespace not differentiating it by version?8
Anyone following the house of common at the moment? Best sitcom I have seen in years.
POSIX tools are teaching gold. According to the unix philosophy, they have to be small and every output must be capable of being the input of another program.
That makes them easy to be build. At least that's often the case, no one looks at grep now. But some of them are quite simple.
I was explaining to my wife the unix philosophy and since she is learning python3 right now, I open up vim and wrote cat. After a minute it printed out /usr/share/dict/words. After two minutes it printed a given file. After three minutes it through an error if the file didn't exist. A little later it accepted multiple files. Half an hour later it accepted flags and the -n flag was implemented. And there was an interesting question of what would happen if someone opened an incredible large file. Solution? Read it piece by piece and directly write it.
If someone teaches programming, please try it and come back to me if that is working. The idea is that you recreate existing POSIX programs, by doing that introducing people to those programs and making the comfortable with them. A few from the top of my head that I believe are quite easy to build:
ls, more, mkdir, sort, uniq, find, pwd, whoami, id, groups, passwd5
Working in my local development database.
UPDATE myTable SET setColumn = NULL;
WARNING: Unsafe Query.
UPDATE myTable SET setColumn = NULL WHERE 1 = 1;
300 Rows affected.6
Just a quick poll. Are you a hobbyist or are you earning a living with computers? And are you mainly working as dev or as op?
For me, it is earning a living as 95% dev and 5% op with additionally operations being my hobby, too.17
Are we scribes of the modern day? Scribes was a job that became useless because of the book press and the growing general literacy.
Mind you, scribes probably were a lot better at writing then the average citizen today, still they became useless.
Looking at Excel, I see some basic form of coding in the hand of people who would never dare to call themselves computer savvy. Couple that with a neural network based future excel and basic programming courses in school.
Maybe we are the scribes of the early 21st century and it will be hard to imagine that what we do was a specialised trait in the early 22nd century.6
Just been in an underground. Guy walks past. Half closed HP laptop in hand. And what do I see on the bottom of the screen. A distinctive red bar with some yellow. Looked a lot like wireshark to me. I left the train, but I wonder why he sniffed.4
Just tried out Elementary OS and I am just smitten with the elegance of its look. I know it's just a modified Ubuntu, but hey, I am incapable of making stuff pretty. But here Elementary did all the work for me. I think I will stick with this distribution for a while.12
Who else loves programming with interface pattern for small home projects. It's like half an hour in it and your program is practically done. Well, you still have to spend two days implementing those interfaces, but technically, you're done.1
Vacation is almost over. Checking my work mail I realised our coding standards updated. Comment requirements on variables now. I would have argued against it. That's fucked up overkill. But I was lying in the sun. That's just an excuse for bad naming. And our coding convention did not forbid us to add a single comment when there was a special circumstance for that.
I just should not take vacation. But now I have to comply. That's what I am going to do, but that pisses me off.1
Okay not dev related. But what's the code of conduct? You're at a buffet. A few people stop in front of you to take salad and you're just waiting to get past them to the meat. Do you have to wait until they are done or can you just grab your tray and move past them to the empty meat area?6