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 - "no music like in the old days"
-
So a few days ago I felt pretty h*ckin professional.
I'm an intern and my job was to get the last 2003 server off the racks (It's a government job, so it's a wonder we only have one 2003 server left). The problem being that the service running on that server cannot just be placed on a new OS. It's some custom engineering document server that was built in 2003 on a 1995 tech stack and it had been abandoned for so long that it was apparently lost to time with no hope of recovery.
"Please redesign the system. Use a modern tech stack. Have at it, she's your project, do as you wish."
Music to my ears.
First challenge is getting the data off the old server. It's a 1995 .mdb file, so the most recent version of Access that would be able to open it is 2010.
Option two: There's an "export" button that literally just vomits all 16,644 records into a tab-delimited text file. Since this option didn't require scavenging up an old version of Access, I wrote a Python script to just read the export file.
And something like 30% of the records were invalid. Why? Well, one of the fields allowed for newline characters. This was an issue because records were separated by newline. So any record with a field containing newline became invalid.
Although, this did not stop me. Not even close. I figured it out and fixed it in about 10 minutes. All records read into the program without issue.
Next for designing the database. My stack is MySQL and NodeJS, which my supervisors approved of. There was a lot of data that looked like it would fit into an integer, but one or two odd records would have something like "1050b" which mean that just a few items prevented me from having as slick of a database design as I wanted. I designed the tables, about 18 columns per record, mostly varchar(64).
Next challenge was putting the exported data into the database. At first I thought of doing it record by record from my python script. Connect to the MySQL server and just iterate over all the data I had. But what I ended up actually doing was generating a .sql file and running that on the server. This took a few tries thanks to a lot of inconsistencies in the data, but eventually, I got all 16k records in the new database and I had never been so happy.
The next two hours were very productive, designing a front end which was very clean. I had just enough time to design a rough prototype that works totally off ajax requests. I want to keep it that way so that other services can contact this data, as it may be useful to have an engineering data API.
Anyways, that was my win story of the week. I was handed a challenge; an old, decaying server full of important data, and despite the hitches one might expect from archaic data, I was able to rescue every byte. I will probably be presenting my prototype to the higher ups in Engineering sometime this week.
Happy Algo!8 -
rant = Music
Watching the Hits for this month...
FUCK
One good music for every 10.
So many new Artists ... And so many that suck. Makeup and Autotuning does not make a Singer.
Even some that can't even really sing or even speak right.
Anyone know Bebe Rexha? WTF? Just an example of a "singer" that can't even speak properly...3 -
(a slide acoustic guitar plays on the background and the cowboy starts speaking)
It was a dry october day, back in good old 2017. I had this job from a client that I never met and was doing some coding for money.
After days of no sleep, no food and no rest, I finally decided to take a nap so I paused my music.
It was at this moment I found out my machine was making funny noises. Like a dingo makin' a run from it's enemies with a whelping noise.
Clicked on my computer and tried to find an ol' file from the archive drive but the machine won't let me, sayin' the disk ain't ready yet.
I tried disk manager, disk scanner, whatever the tools at my disposal all in vain. Then I said what the hell, I'll just restart my machine and it'll be alright.
The machine rebooted but the disk was gone. It was dead like a deer I ran over. I was upset, but not aware of the calamity headin' my way.
In just a few days my other 2 disks died suddenly. The loss of data, all the effort, none of them mattered. I felt numb and decided it was time for a fresh start.
Plugged in a Windows install disk, started the sequence, a screen came up askin' me which damned and alive disk I wanna install the fresh OS. I had two same make and model SSD disks, chose the one thinkin' it was the Windows drive, hell it wasnt... It was with all "my documents", "downloads", "pictures" folders and now I had two SSD drives with two Windows installations and nothing else.
The folks in town took a dab at me for months, even the bartender of the salloon refused to give me a drink. Sayin' it was a matter of reputation...
Turned out the bastard who fried my disks was the Madde Dog PSU Tannen who had a bad temper so here I am, tellin' my story to milk breathers and cherishing old days of data...3 -
I had a relative that used to come to our house to study because her home was kinda far and also because we had a computer .
She was studying computer science at the time and I was only 13-14 years old. One day she came with 3 CDs of red hat. I asked her about it and she told me it's something like windows. My reaction was wow it must be something huge because I knew at the windows XP was only the size of one CD .
My relation with computers was only to play games and some music that's why I couldn't hold myself not to install it. I fucked my computer endless times, It was like playing puzzles let's try this option and then switch to another... It took me like 4 days to install and I was really impressed with it you know seeing the terminal and stuff. Weeks later I switched back to Windows because I couldn't install my games and play mp3 files (require to install some libraries and I had no internet).
Fast forward 8 years later and I was studying linux system for CS degree and guess what? I was the major in class because I knew about many stuff like partition systems (ext2, swap..) and how to install linux on a computer...
This was my feeling 😎 at class. -
“Lazy mom lazy wow” presented by Gail Swanlund was probably the most impactful piece of art to me.
Through simplistic form, this art piece presents the idea of caring about oneself and quit the eternal rat race for money. But somehow for its metaphor, Lazy mom lazy wow chooses the notion and aesthetics of death and decay. The closest analogy I can think of is the music of American Football. Some kind of liminal, eerie aesthetics. Also, the movie Gummo and the game Life is Strange, part one.
The piece deliberately avoids being aggressive and celebrating its notion. It’s not “quit the rat race and celebrate because life is so good”, it’s “quit the rat race by putting yourself into coma so nothing matters anymore”. The descent into eternal comfort of realization that you don’t have to do anything anymore, but also sorrow of losing meaning.
It feels like launching Counter-Strike Source in the year 2051, only to walk around cs_office and realize there are no players anymore, and they will not return ever again. The sense of watching an old VHS tape of you having a conversation with your mom in the hospital as she’s counting her last days because of cancer. The sense of comfort of coming back to your hometown. You remember your childhood and your high school crush, only to realize that those moments won’t happen ever again. -
everything is going as planned! :)
Learned Rust Lang. i loved it (that doesn't mean i am done learning na? No! never stop)
new language i could do game memory hacking in without worrying about C++ memory leaks or issues. it also compiles to assembly! another of my favorite languages!
(i use rust for game development and other stuff)
i am not leaving C / C++ though that would be harsh!,
i abandoned javascript for react and typescript.
to be honest the developer just made javascript and left us with a [object Object]
finished learning the android java api so im basically set anything i want to make i can just go on my pc, listen to music and write it out in a couple of days.
well phazor what are you going to do now?!
i will code till i am old.
i will leave my mark like a shid that made its skid in the bowl :)5