Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
hugging Microsoft with their clucking buggy software!
>> generate an xls with Apache POI
>> colour some particular cells in green, others - in red.
>> export as xls
>> open with LibreOffice Calc -- looks pretty
>> upload to Slack, open slack's generated xls preview -- looks pretty
>> open with GDocs -- looks pretty
>> open with sheet.zoho.com -- looks pretty
>> open with onlinedocumentviewer.com -- looks pretty
>> open with aspose.app -- looks pretty
>> open the xls with MS Office Excel -- more than half of the cells are unformatted, uncoloured
not really that hacky but it was something back then
when I was still learning front end development. I enabled live server on my vs code, connected to a network went to a different PC and connected to same network, went to browser on second PC, entered the other PCs IP adress and added the port number provided by vs code, I was able to access the website I was working on so as I worked and saved the site automatically refreshes on the other computer and i saw the results immediately
this was because I had an 11 inch screen PC. a hp mini. was practically impossible to work with that so whenever my roommates PC was free I'd do that without having to code directly on his PC
later on I enabled auto save on vs code and it seemed I was on a roll. lol
I was hired in a company for the title of Front-end Developer. I am qualified as because I have skills and experience with regards to doing front-end stuff. But it turns out that the work will be Full Stack. The employer was reasoning out that after your done with front-end task, I must do backend stuff as well so I would not be idle on may day's shift.
Is it my fault if I already done with my respective task and just mingle with random task of backend stuff that is not my real skills or forte?
I can understand and know PHP & MySQL, but I am not guaranteed to finish the task quickly compared to my backend counterpart in doing their task.
To cut the story short, they terminated my contract and claim that I am not performing well with my duties and responsibility, though most of the Front-end stuff I was assigned were already done and deployed.
There's no justice in this typical world of start-ups and noobie HR people that always one sided and they always say that it's their policy and they cannot do anything with regards to the incident happened to me.2
Recruiter writes to me on LinkedIn for a job
Have an interview with the recruiter, everything smooth
Then interview with the HR of the company, everything smooth
Then the HR talks to the CTO, and the CTO is like "mmmmh this guy works as a consultant, I don't like this. Yeet him".
This absolute madman out there not giving a single flying fuck about consultants, head hunter, HR, only pure coding, literally living the dream.1
"hey i want to print hello world to the terminal, can someone help me?"
>You should use ai for this, construct a neural network and feed it data.
>node has a great framework for printing to the terminal, use npm i termprinter && tp create-app
>*20 line bash script with esoteric unix tools nobodys heard of*
>hey i did this in unity, heres a link to my 30 minute long youtube tutorial
I somehow feel like the barrier of entry for programming has been lowered way too drastically.4
I'm so fucking sick of the lack of great modern open source DB tooling.
MySQL Workbench can go suck a big fat herpes-ridden cock, it's horrible.
Dbeaver is a clunky 90's tool, which charges two Netflixes (yes, that is a valid $/month monetary unit) just to connect to a NoSQL DB.
Datagrip is nice, but has the same outrageously expensive pricing. I paid for it, and couldn't use it for my local docker DB during my holiday because it couldn't connect to the license server. Fuck you, Jetbrains. Your software is nice, but your DRM makes me hate you.
And then ERD software... It's either some hard-to-use afterthought piece of crap bundled with the DB IDE, some generic diagramming tool which makes DB-specific work needlessly unergonomic, or some vendor-locked online tool.
Fuck this shit, I'm making my own DB admin tool. With blackjack. And hookers. 😡7
That would probably be implementing multithreading in shell scripts.
The idea (though not the project itself) was born back when I still was a sysadmin. Maintaining 30k servers 24/7 was quite something for a team of merely ~14 people. That includes 1st line support as well.
So I built a script to automate most of my BAU chores. You could feed a list of servers - tens or hundreds or more - and execute the same action on each of them (actions could be custom or predefined in the list of templates). Neither Puppet nor Chef or Ansible or anything of sorts was consistently deployed in that zoo, not to mention the corp processes made use of those tools even a slower approach than the manual one, so I needed my own solution.
The problem was the timing. I needed all those commands to execute on all the servers. However, as you might expect, some servers could be frozen, others could be in DMZ, some could be long decommed (and not removed from the listings), etc. And these buggars would cause my solution to freeze for longer than I'd like. Not to mention that running something like `sar -q 1 10` on 200 servers is quite time-consuming itself :)
And how do I get that output neatly and consistently (not something you'd easily get with moving the task to a background with '&'. And even with that you would not know when are all the iterations complete!)?
So many challenges...
I started building the threading solution that would
- execute all the tasks in parallel
- do not write anything to disks
- assign a title to each of the tasks
- wait for all the tasks to complete in either
> the same sequence as started
> as soon as the task finishes
- keep track of each task's
> return code
> sequence ID
- execute post-finish actions (e.g. print to the console) for each of the tasks -- all the tracked properties are to be accessible by the post-finish actions.
The biggest challenges were:
a) how do I collect all that output without trashing my filesystems?
b) how do I synchronize all those tasks
c) how do I make the inception possible (threads creating threads that create their own threads and so on).
Took me some time, but I finally got there and created the libbthread library. It utilizes file descriptors, subshells and some piping magic to concentrate the output while keeping track of all the tasks' properties. I now use it extensively in my new tools - the ones where I can't use already existing tools and can't use higher-level languages.
This is not what you call hacky but I am putting thia in the category anways
So well ubuntu server could not work with the pretty old wifi aapter in my laptop. So I connected my mobile and tethered it to he laptop with usb tethering. Then I made the interface go up.
Then I ised dhclient to get a ip. Then I updated ubuntu and inatall nmcli and now my wifi adapter magically started working.
Also putting a picture of the cable
I have multiple contenders ;)
A program used to sort emails.
We was in the process of moving from lotus notes to exchange and needed a way route emails to the right server internally.
Solution, a qmail to receive all emails, a script running by cron every minute to read the emails, check the recipient name to a list and resending to the right server. The script was written in php :P since that was the only way we at the time had to read an email into an object, it was run just like any other shell script :D
A multi threaded mail sender that fetch email addresses and content from a database and posted them through qmail using background execution and pipes to get the result back and then update the database, written in bash script.
A c program used in a similar way as in one but this time using dial up and uucp to fetch email and then drop these either into lotus notes or into a bbs for our customers to give them an email address. This was around 1993, so not to many isp’s offered email and not to many had internet anyway, dial up bbs was much more common.5
I was setting up a CI build machine. Builds were supposed to be ran in disposable containers, but I needed a way to trigger a task on the host from inside the container. I didn't want to give containers shell access to host - kinda misses the point.
Solution: a server running on the host and listening for predefined commands on a named pipe. The pipe was bound into containers which would simply echo commands into it. Very simple and effective.
The hacky part? The server was an 8-line bash script.1
SCREWED OVER GOOGLE WITH MICROSOFT!!!! YES!!!
So as I'm deaf, I've always had a problem with captions or lack of them.
I thought Live Captions would fix it but it's only supported on selected devices and not enabled for calls and conferences like Zoom, WhatsApp.
I tried hooking up my sound card with an audio capble to my phone which has LC and also Live Transcribe... but somehow wouldn't pick up the audio.
Then today I was like wait... I could just install a Pixel emulator... excepy seems Google thought of that...
(I installed VB Cable virtual sound card and routed sound out to mic in).
Well first apparently, the emulator does not actually identify as Pixel... it identifies as an Emulator that sorta looks like Pixel...
Which means no LC...
I installed LT and also a sound meter which confirmed it was getting the audio but no transcription...
Though I tried GBoard and it sorta worked..
But I would like continuous transcription... and so I open the app store and try all the apps until I hit MSFT Translate...
Which has a convo mode which seems pretty much designed to screw Google over lol. Just need to start a Convo with myself...6
I'm astonished again. Linux isn't designed as GUI OS - where Windows has dynamic thread priorities for freshly woken up threads as to increase GUI snappiness.
Now, my CPU has four physical and eight logical cores for SMT. I'm running eight worker threads of some parallel testing stuff, and I'm glad that I chose the AMD 3400G over the 3200G. The CPU load is 100%. On top of that, MP3 audio, the browser, and I'm dd'ing an external USB3 HDD.
Holy shit, the browser is just as smooth as if the CPU were idle. No perceivable lag. I hadn't expected desktop Linux to be that great.
I'm also surprised that the CPU temperature doesn't exceed 44°C despite full load at 21°C ambient, and the cooling is inaudible. Sure, my cooler is massively over-dimensioned to achieve exactly that, but it's still amazing.
It's what I would have wanted ten years ago and only could approach somewhat, but now the tech is actually there.14
So after a couple years working at this company, the faculty I graduated from introduced a postgrad (masters) course in data science. I was always interested in the field, so I said fuck it and jumped the bandwagon...
I'm starting this week, I'm kinda worried my knowledge of maths and statistics got a bit rusty since graduation. Also most students there will be 4 years younger than me, and I'll keep doing my full-time job at the same time. But hey, at least I'll break the routine, and I can always quit my job if it turns out I can't do both, so whatever.
That's all folks!1
I hate, HATE MYSELF!! I am an awful developer. I am an awful person.
I am trying so hard. To be a better person. To be a better developer. But, as a person I am again finding it difficult to empathize. At work, I really want to explore MERN stack but that I have to do it out of working hours. And damn! work is too much, I don't get time.
I need to work on a new project, for 2 months the discussions with MILLION TEAMS ARE GOING ON!!! NOTHING!! NOBODY HAS ANY IDEA!! THEY MIGHT FIRE ME!! I AM STRESSED!!
IT'S 1AM HERE AND I AM WRITING UNIT TESTS!! I want to cry. I want a partner maybe who can support me or maybe it's my mood swings.26
The definition of bad addiction is such that there is something x that you/your body really wants, but you/society have declared as a wrong thing to do/consume and thus you feel its a bad thing to do. But if you do that you will regret it even more , thinking that you have somehow failed to constrain yourself and you are somehow a slave of your addiction.
At both ends their is pain and regret5
Dear intellectual crew, your double-digit IQ little shitposter needs your help.
The situation in Russia is always bad and it will always become worse and worse. In addition to that, it's illegal to have medications that can potentially cure me. Add 15 sunny days a year in my city and it becomes clear that I need to leave.
However, despite the absolute lack of sunny days, I FUCKING LOVE my city, Saint-Petersburg. When I was living in Moscow for like six months, I liked Moscow but I was missing my city every single day. Sometimes I forgot that I'm not in St. Petersburg anymore, tried to figure out what street I'm on, realized that I'm in Moscow and felt like I'm physically suffocating. I always miss my city so bad.
I'm not going to talk about why do I love it so much. If I ever start, I'm going to write a book about it.
1. Is it Stockholm syndrome? I don't miss Russia and don't identify myself as Russian. I only miss one city and I wasn't even born here.
2. How do I leave in that mental state?
This is the only problem that is holding me. Money, finding a place to stay and finding a job I can approach rationally, but my problem I can not.27
Parents were awesome. Super supportive, gave me every opportunity. They were open-minded loving people who eschewed personal vice and property to give us a start. They never once abused any of us, and in a family with three girls, we were encouraged to break the mould. We were shown that women could be more than just support to our spouses and baby factories, and more than part time labor in family enteprise.
Thusly my ascendance to a life as an engineer was assured and fully supported by these wonderful people whose folkright earnestness never once inhibited their progressive encouragement of our success as human beings, not just professionals.
And if you believe that, I have a bridge for sale in San Francisco you might be interested in.
I wrote on this topic before it was cool 😋
A long time ago I started a project to make a devRant client with Python and Qt5.
I got far but got bored, or whatever. Was still in school, etc.
I have started from scratch again. Including a nogui mode. Sharing because I actually have made some pretty good progress in the past two days.
Plans: Besides the obvious fully-featured client: full support for plugins, custom themes, custom CLI commands. Multiple logins.
Considering a system that allows you to run a bot, and a bot framework (parsing arguments for you, marking notifs read, etc.)
And yes, it's called qtpy-rant (Pronounced cutie pie rant)3
Before the week ends, I was really trying to avoid this group rant.
I had an abusive childhood and parenting was not that great (because my parents had a rough childhood and they didn't have enough resources or a good parenting either so I don't blame them).
My parents were not much educated. However, they made sure I got decent education and never interfered in anyway in my career choice. I guess that was the biggest support.
Even during the times when we didn't have enough for survival, they made sure to pay my college tuition and never let me know about the struggles they were going through.
While they do piss me off in general life situations because kf silly stuff but career wise and in general trust and freedom, I had enough liberty to do whatever I felt right for myself. They made sure to keep an eye on me to not go down the dark alley. Just that.
And now the reason for me making this last moment post for group rant:
My parents almost went through rough patch when I was 6 month old (I spare the details).
My father struggled a lot in his life and we did have few good phases but for most of it, he faced a lot of bad luck. Too much of losses in whatever he did. He is street smart and super hardworking. I have never spoken about him so much until now. Our relationship is slowly improving.
For now, I am the sole provider at home and times are tough. Since I lost an "almost" dream opportunity, I am under pressure to find a good job to provide food for dinner.
My father has great long lasting relationship with people and all his friends are super rich. Like crazy.
Now the fun begins. I just got to know that an old family friend has expanded his businesses like crazy and is making millions per week. His family member betrayed him and he is looking for someone trust worthy to handle his cash.
They reached out to my father and when my dad is nearing his retirement, he is still fit and active to take up this new challenge.
I soooo fucking badly wish this happens and he can set a business with them. Not for me but for himself and mom so that they can finally reap the fruits of years of hard work and finally live a better life.
I'd be much more than happy to see them happy and I can live gladly in whatever money I make by myself. And it will also take the pressure off me to earn money and keep back (because business will yield a lot of money anyway).
And maybe then I can take a leap of faith and leverage the privilege to test my startup idea full time and even ask my uncle to fund the startup (once things start settling down with dad).
Never had I thought such thing could happen but here we are and this is a ray of sunshine in dark times. I am really being hopefully and for the matter of fact, I am ready to support my family for they did when I needed it.
Bit anxious but excited. Fingers crossed.
All I want is them to be happy and live good while I can focus on my side projects stress-free :)
Wow wtf. Laptop is not starting 😰
1 week left for my first decent job to start, and this shit happens.
I press the start button , it shows the hp automatic repair screen nd again goes off . Kill me now 😭😭
Showed it to laptop repair guy, he says it migjt be a mother board short-circuit issue.
What stupid fucking motherboard fries itself when being slept all night? What wrong i fucking did?! Why it keeps fucking happening to me 😭19