AboutNot really developing anything other than anger issues. Snapchat me, I'm friendly: MrAlgoRythm Advanced command-line application dev.
Joined devRant on 1/8/2017
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Why does it feel so dire when you're googling things on your phone because your computer is too broken?2
I made a devRant bot!!
It's an anti-devRant bot bot that spams the notifications of devRant bots.
Just call @fuckbots <bot name> <message to have the attacked bot execute>
@fuckbots doesn't have a blacklist, so once all other bots have been defeated, I will call @fuckbots fuckbots. It's a wonderful circle.12
I am currently in a bit of a (well-deserved) lull at work, both of my projects are finishing up/ finished, so tomorrow should be pretty light, as the latter half of today was.
And I have really gotten interested in the HTTP protocol. It's so interesting learning how it all works under the hood.
So I think I'm going to be researching/ messing around with creating a cpp project that essentially implements cURL from the ground up, creating sockets, reading from them, parsing the HTTP requests... all that. I don't expect to actually get it done, but it should be an immense learning experience. I have a clear goal: implement this function:
std::string get(const std::string&);
Once I'm able to just GET as simple as that, I know I have achieved my goal!3
We have phonetic alphabets to clearly describe spellings (d as in Delta, etc.)
What's your best misleading phonetic alphabets? I'll start:
P as in pneumonia
H as in honest18
Installed the beefiest shaders I could find on Minecraft and combined them with my favorite texture pack. Logged into SkyBlock on Hypixel and it was pretty good looking.22
In that mood where I'm excited to code until my hands hit the keyboard then I just go off to YouTube or smthn3
So it's.... Not a switch.
Poor marketing. Just don't call it a switch and it's not a bad handheld!7
I just overheard that someone tried to clean up their computer by going into the C drive, selecting all folders, and pressing delete.
They called the help desk because it was taking a long time4
OH. FUCK. OFF.
Really?? A *gaming browser*??
What a sorry attempt at grabbing your first 10 users, Opera. There's a lot of "gaming" gear out there that's nothing more than a double-price gimmick with RGB lights, but this takes the cake.
Absolutely ridiculous. You should be ashamed for making such an abomination.21
People who actually implement DRY: "Don't repeat yourself!"
People who "implement" DRY but are morons: "Don't repeat yourself, never say the same thing twice, and try not to be redundant."11
Lots of oof in one image.
I like how they had the audacity to say (and I fucking quote): "this is good news!"
I don't like to complain about sites generating revenue. I understand it is important and I even feel morally obligated not to use an adblocker. But all I will say is that the site has sustained itself for a very long time without the use of poor-quality and unrelated ads, and this feels like a lot more of a money grab than something the site actually requires.
Anyways, happy to see a -400 score on it. And I guess I can't wait to get Amazon ads on SO.8
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.
I wrote this and wonder if it is actually useful. This is a function that eliminates the need for document.getElementById. In the HTML you just set an attribute (jsv) to some value and this scoops that up and puts it in the global scope for you to use.
Neat or shit?16
RPi 4 is hard to get your hands on it seems.
Really debating buying it though, 4 GB is enticing, but I just don't see a place for it. I have a surplus of machines which are much more powerful and accessible (Display ports - not mini HDMI)
And let's not forget the sub-2GHz clock speed. My desktop goes to 5, and my server isn't far behind. And my laptop isn't far behind that. And my other laptop isn't far behind that. But this new Pi would be far far behind that.
Not to mention the ARM architecture. There have been leaps and bounds made since the Pi first came out in terms of support for ARM (Most certainly fueled by the Android craze) but it still isn't x64, is it?
If I were 13 again and I didn't have all of the toys that I do now, I would be elated at the launch of the Pi 4. But as it stands, I don't see a use for it. Maybe nostalgia.28
Reasons 1 and 2 arent that important to me. The main reason I code is #3.
1) Brain exercise. I always feel sharp after a coding session, even if it ended in disaster.
2) Lots to do! There's never a full day in code. Make your own universe, if you so desire.
3) Pride. I have a pride problem. I never felt proud of myself no matter what I do. I graduated with a melancholy feeling, same deal when getting my license, same deal when passing a test (God, glad that's over!)... But code makes me proud. I love what I make. I want to show everyone. I want to show it to everyone before it's even finished because I just can't wait. I want everyone to use it and to love it. Because I sure do, and it's the best thing ever.
I could make a viral video, produce a triple platinum record, or build a billion dollar business and still not feel the same level of genuine satisfaction and happiness that I may get from writing good code.
It always keeps me coming back.
Do you guys find yourself ignoring things you should be using just because you're too stubborn to learn how they work? Because I just used std::shared_ptr for the first time today.1
Anyone else notice that the error checking in Visual Studio sucks sometimes? I'll see the error pop up in the editor, read what it's complaining about, double check all the code, think for a minute, get confused about it, comment out some stuff - wait no, it wasn't that, uncomment it....
then save the file and it rescans. Boom, error gone. It was just a phantom error wasting my time.3
The uninitiated may think that Windows Server 2000 is great, unknowing that it refers to the year.1
So I just fixed about a year or so old bug by removing my solution entirely.
As very few of you will know, I work on/ off on a project called TG which accelerates cmd.exe
One of my oldest bugs in this project is that the buffer resizes real weird. If you adjust both the height and width at the same time, it goes into this weird infinite loop business.
As it turns out, cmd.exe handles that by itself just fine. I just removed my resize listeners and now everything is running smooth.
I like memory hungry desktop applications.
I do not like sluggish desktop applications.
Allow me to explain (although, this may already be obvious to quite a few of you)
Memory usage is stigmatized quite a lot today, and for good reason. Not only is it an indication of poor optimization, but not too many years ago, memory was a much more scarce resource.
And something that started as a joke in that era is true in this era: free memory is wasted memory. You may argue, correctly, that free memory is not wasted; it is reserved for future potential tasks. However, if you have 16GB of free memory and don't have any plans to begin rendering a 3D animation anytime soon, that memory is wasted.
Linux understands this. Linux actually has three States for memory to be in: used, free, and available. Used and free memory are the usual. However, Linux automatically caches files that you use and places them in ram as "available" memory. Available memory can be used at any time by programs, simply dumping out whatever was previously occupying the memory.
And as you well know, ram is much faster than even an SSD. Programs which are memory heavy COULD (< important) be holding things in memory rather than having them sit on the HDD, waiting to be slowly retrieved. I much rather a web browser take up 4 GB of RAM than sit around waiting for it to read the caches image off my had drive.
Now, allow me to reiterate: unoptimized programs still piss me off. There's no need for that electron-based webcam image capture app to take three gigs of memory upon launch. But I love it when programs use the hardware I spent money on to run smoother.
Don't hate a program simply because it's at the top of task manager.7
I require one vertical monitor for my JS, one vertical monitor for my HTML, one vertical monitor for my CSS, and two stacked ultrawide monitors for testing in browser.
Okay so I just watched captain marvel (after infinity war and endgame) and I learned that captain marvel got her powers from the tesseract, which is the power stone.
Thanos destroyed all of the stones.
Captain marvel retained her powers??