Details
-
AboutA young Swede that likes to cook up rhymes In the bathroom all alone Singing hooky hooky gibberish into his phone
-
SkillsMostly frontend I guess. Vue. You know. Right?
-
LocationSweden, Malmö
-
Website
-
Github
Joined devRant on 10/19/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
-
Anyone tried eGPUs over thunderbolt? On Linux? Anything you could recommend?
I'd like to play around with ML for a bit6 -
Not sure if anyone appreciates but here are the new dR stats!
For more stats see comments.
Do you want to have your personal stats? Ask me, it's already generated. I only have to post it.33 -
I'm the most ignored user of devrant regarding last week. Can you believe it? These stats summarize the amount of times that a message is not upvoted. It doesn't count mention's tho. A lot of people do not upvote if they mention. For more heartbreaking stats, see comments.
Also, poor GPT, always directly asked but one of the least appreciated by upvotes59 -
Even while quite experienced, I do keep messing names up:
start_server
stop_server
And
server_start
server_stop
I do know that last example is better with autocomplete but my head thinks the other way. I find myself frequently renaming functions in the end.
What is your preference?30 -
If someone still uses the word "surfing" in relation to the internet, what would you infer about them?10
-
Interesting project lined up for today!
I'll be installing a security system, one camera connected to a DVR pointing at a front door triggering a buzzer and sending a video feed to a monitor in a ground floor room at the other side of the house.
But it's my dads house so I'm going to have fun with it and install a wired Cat5 network an Isolated offline router and build in some "smart home" features from scratch, all running on a Local Area Network.
I've built a private home server package for media and storage using Apache and I want to add as many features to the house as I can, maybe even install an extra camera pointing towards the sky (every home should have a sky cam lol).
I can take my time with this project over the next several weeks and I was wondering what would you add to this project?10 -
I've made the json protocol. It's a protocol containing only json. No http or anything.
To parse an json object from a stream, you need a function that returns the length of the first object/array of all your received data. The result of that function is to get the right chunk of the json to deserialize.
For such function, json needs to be parsed, so I wrote that function in C to be used with my C server and Python client. I finally implemented a C function into python function that has a real benefit / use case. Else you had to validate but by bit by the python json parser and that's slow while streaming. Some messages are quite big.
Advantage of this protocol is that it's full duplex.
I'm very happy!36 -
Being helpful and a c++ programmer has led me to trying to add a (tiny) feature to cpython.
The file I'm currently looking at is 2,000 lines long.
I have regrets...10 -
Half a day wasted. FUCK!
I use grafana loki and mimir/prometheus for telemetry. A few days ago I queried loki to see if logging is still working. Yesterday I changed the datasource to mimir, changed the query parameters to get metrics from another env, ran the query, and... Querier [mimir] crashed.
Wtf.
Error says it got too much data to chew on.
So I spend 4 hours playing with the querier and grpc limits, balancing between limit errors and OOMKills [2G ram].
I got suspicious about oomk. Why would it...
Then I tried to shrink the timeframe to 15min. Still oomk. Down to 5min -- now it worked. But the number of different metrics returned was over 1k
then I look once again at the query. And ofc it is ´{env="prod"}´
turns out, forgetting that you're querying metrics with a logs' query is an expensive and frustrating mistake. Esp. at 3am.
idk why it even returned me anything...7 -
Fuck,
I've been charging everything with the oculus quest 2 charger because it's very powerful but it just blew up my headphones. I did this often before but this time was a whole night.
I hope I can still get this great headphones, it had such good volume & bass. It's the cheapest Fresh & Rebel but the sound quality and battery is great22 -
I feel bad for my ex-colleague. He left the company for multiple reasons and is now employed for 2-3 months somewhere else as a freelancer.
That company just announced they'll outsource all their freelancers to India. Now he has to job search again :(3 -
Don't make a spawner in Minecraft out of stone. Use something like cobble instead.
Why? Because Endermen steal stone.
I have a spawner in my ATM9 world that I made a part out of stone. I got to my spawner and was wondering why it stopped (using special dirt that spawns mobs constantly). I saw there was some light in the enclosure (this disables spawns). Noticed 3 stones missing near the bottom below the dark windows. Found that stolen stone in the mob grinder storage. Replaced with polished granite.
Can't have shit in this neighborhood.
I did have a moment of silence for the Endermen who tried to save their brethren from certain doom. Brave warriors who died for the futile cause.4 -
There is something serious about web browser extensions and the risk your data might be compromised just because of a simple stupid extension. You might harden the security of your machine and forgot about what you have installed as extensions, alot of people do not realize the risk because they simply install and give permissions as is.
The question is how to spot a malicious extension?19 -
I think UI as a function of state is one of the greatest inventions all time, right there after sliced bread...9
-
Fave languages and frameworks, go!
As of now for me, loving these:
PHP8 and Laravel with Livewire*, Django5.1, MariaDB. PHP must stand for PrettyHeckinPCoolasFFFFFFFFFUUUUUUU
*after using React and Vue for quite a while, I've concluded that the best front end is back end. And I like Postgres, I just find that MySQL is fine for most things.25 -
So yesterday (Oct 7th) I got this email, inviting me to a telemetry conference.
Does anyone have a DeLorean to lend?1 -
client cto: "SOMEBODY COMPROMISED YOUR KEY!!!! IT SHOWS SOMEBODY LOGGED IN TO DEVOPS GUY'S ACCOUNT USING KALI LINUX!!!!! HERE ARE THE LOGS!!!!"
the logs: *show an ip address*
the ip address: *ip address of the office*
devops guy: *actually uses kali linux*
not really a rant, just found it funny2 -
Deleted over 1'500 lines of code over the last 2 days and replaced it with 80 lines of readable, simple, generic code.
And I'm feeelin' gooood 🎶7 -
This morning I woke up because some light from the hallway was comming from under my door. I went on investigation. Was a bit scared. But it was just Kiki sitting there solving a rubiks cube while speaking UTF-8 to herself. I went back to bed6