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
Search - "slav"
-
Devs who argue that their favourite language is the best and other are not good enough for anything. Different tools for different jobs dammit!4
-
Me: buys a cold bottle of Sprite™ to freshen me up on a hot day
Me: drinks from said beverage
Sprite™: is cucumber flavoured
Me: ...
My inner slav: oy cyka it is good14 -
Life of Boris, a youtube chanel of a slav guy that makes random stuff (and some delicious russian recipes 😋) uploaded this video few hours ago.
I watched it, and I didn’t expect the video to be an actual Python tutorial 😂 I loved it!
What do you think?
P.D. I hope this is not necessary, but I remind you that Life of Boris is not a programming channel, please don’t be too strict, it’s just entretainment9 -
This had me laughing out loud this morning, my wife just looked at me funny as I tried to explain it to her.2
-
Sometimes I don't want my co-workers to see the notes I write on a meeting, for several reasons: Maybe they might have bad intentions (yes, I'm a little bit paranoid), or sometimes I wrote stupid stuff just to concentrate or remember things faster, or I want to practice my cyrillic alphabet.
What do you think? how do you take "secret" notes on a meeting? Any slav in here that could tell me if he/she understands my calligraphy? XD24 -
What's the best Slav programming language?
Hint: czech motorcycle, typically red
Stolen from Life of Boris Q&A -
When I got X up and running at 1am for the first time on my first computer, 486 SX 25MHz with 8 MB or ram.
The program SuperProbe is probably depicted now, but it got me up and running back then. -
I was copying data from a failing zfs drive with rsync and I noticed that it spent a long time on the file ~/.local/share/Baloo/index
du -h index showed a 500ish MB file which didn't seem large enough to take this long.
I recalled that du shows disk usage, not file size and since I was using zfs compression they could be quite different.
so I added -A for apparent size:
du -hA index and it comes back with 1.7E
The file was 1.7 exabytes...6 -
I am 17 years old, and I am trying to learn programming. I am currently trying to learn something in BASH. I have also used some JavaScript and Python to get a grasp of some concepts.
It is very satisfying when I am in the mood, but I often find it hard to find motivation to learn. Does anyone have any advice for studying techniques? General advice would also make me very grateful! :-)
I hope this is OK to post here..5 -
I'm logged into my box at home via ssh and coding in vim.... On the bus, using my phone.
I need more spare time, I get to sit down in front of my computer for maybe 1-2 hours a week.1 -
So a couple of months ago I had some stability issues which seems to have caused Baloo go crazy and create an 1.7 exabyte index file. It was apparently mainly empty as zfs compressed it down to 535MB
Today I spent some time trying to reproduce the "issue" and turns out that wasn't that hard.
So this little program running on FreeBSD with a compressed (lz4) zfs dataset creates an 1.9 Exabyte large file, nicely compressed down to 45KB :)
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/limits.h>
int main(int argc, char** argv) {
int fd = open("bigfile.lge", O_RDWR|O_CREAT, 0644);
for (int i = 0 ; i < 1000000000; i++) {
lseek(fd, INT_MAX, SEEK_CUR);
}
write(fd, " ",1);
close(fd);
}3 -
Reading the source of a message queue system I'm planning on extending.
I don't see myself as a rockstar programmer or anything but the construction of arrays from hash tables, sorting those arrays and then a nested for loop to find matches really irks me. Luckily not on the critical message processing path but the stats collection thread. There are mutexes in play though that would probably delay processing a little bit when stats are collected. -
Is it just me or is python community's dependency management a bit unreliable?
I just can't seem to easily install any python programs without missing dependencies. Updates have caused libraries to become incompatible, which in turn causes the application that used to work to just produce a stack trace.
Is this the state of python or am I doing something wrong.3 -
I've gone from a "no early returns" guy to a "return as early as possible to maintain the happy path indented as much to the left as possible" guy.
Looks so much neater now. -
Has OSS Projects build systems become more complicated lately?
I took a stab at building concourse ci on FreeBSD. It being written in go, I expected it to be rather straight forward but no.
To "compile" the web UI assets, yarn (an alternative nodejs package manager apparently) was required. (Are js and CSS really compile targets now?)
Installed yarn and ran yarn build, it complained about lessc not being installed, so ran yarn install lessc which then told me that I was running an unsupported operating system.
I can compile the actual consourse binary just fine, but without yarn doing it's thing the assets required for the web UI does not get compiled in and therefore doesn't work properly.
Maybe I compile the web UI assets in Linux, and cross compile my FreeBSD binary...5 -
For testing, I added an override environment variable in some C# code so I can set it in the projects debug properties when I run it.
Turns out that while it's possible to do this in C++ projects, MS decided that they don't want you to do that for C# projects as there are other ways that they want to do it.
So it's not possible to modify your environment for C# projects within visual studio.
*Bangs head against the wall and surrenders to the Microsoft way of doing things*1 -
Employees of companies that are so protective of their intellectual property that they don't allow any to be transfered outside of the workplace, how do you work from home?4