AboutI'm a fast typer and a slow eater. I enjoy long walks off short piers. I am the Florida Man.
LocationAmerica (38.8976074, -77.0365946)
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
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
The debugging process is often complicated.
There are often many factors involved in troubleshooting an error, but usually I have a hunch.
Sometimes I'll ignore my hunch and try other, smaller fixes first. This will irritate me for a while until I actually go after my hunch, run the program, and INSTANTLY everything works again.
Found myself relating that to real life today when I had a slight belly ache and eventually decided to take a massive shit and INSTANTLY felt better. The relief was so quick that I actually looked up and paused in surprise.3
Pulled my hair out over one today (and a week ago when I first saw the issue)
Setting up development environment. Created test user and test database and used mysqldump to copy data over.
MySQL was executing a function as the wrong user. Checked my config files, checked my config reader, checked my database connection, checked checked checked. Checked everything twice, I felt like Santa.
Changed the password in the config file to make sure it was logging in right. It threw an error still but not one I had expected so I figured the login still worked (My bias was that I thought the config file was not working or the mysql library was caching authentication. Both were wrong but this blinded my debugging. Foolish, I have forgotten my training)
Logged into the database directly via client. *didn't bother executing the function because I was only testing auth*
Search entire project for database username. It's gotta be hard coded by accident SOMEWHERE.
-- Flashback to how the test db was created -- What's actually in this damn script?
DEFINER `production_user` CREATE PROCEDURE `old_db`.`procedure_name`
Two issues: definer is old user (this is the error I was seeing) and its creating the procedure on the old db (this would be the next error I would have found if I kept going)
Fuck mysqldump. Install mysqldbcopy. Works
Put hair back in head.
Broke: logging into GitHub to pull changes from a private repo
Woke: changing the repo from private to public, pulling unauthenticated, and then changing back to private.
I don't use FTP enough to do research on a better client.
I use FileZilla cus that's what we were introduced to in school.
I feel like I'm missing out on a better client though. What's everyone's personal favorite, for those who use FTP clients regularly?7
My most productive is honestly when I'm on a caffeine high (my personal favorite is a 24oz NOS). I have pulled all-nighters. Accidentally.
But getting INTO the mood for programming is simple and kinda embarrassing. I get excited by seeing programming keywords in real life. For example, at a job I worked at, there was a whiteboard what had the word "include" on it forever. Not about programming at all. But every time I saw it I was reminded of c/c++ and it made me wanna do some code. I don't know why I'm like this.
Not sure if any of you guys are Windows Insiders (I know the audience here is Linux fanboys and plus, there's not much reason to be an insider in 2021, really), but I am. I'm on build 21286 and for whatever reason... they have decided to SLOW down the animation for opening a new window. I'm too lazy to record it, but the animation is just like it was before: your window scales from like 80% size to 100% size... but it takes legit about half a second now when before I would say it was closer to maybe a tenth of a second.
Strange choice... and I do not think it improves the experience...4
There used to be stories about how people sold their 650 bitcoins for $12 each and regretted it when it hit $22k.
Now they're gonna be regretting selling their bitcoin at $22k when it is worth $1M each.
My question is why is btc even popular again now?!23
Tried drunk coding yesterday for the first time which seems like a rite of passage for us.
Short endeavor. Turns out I cannot type when drunk.11
I fucking love how the Cyberpunk 2077 disaster goes down... and then, silently, Kerbal Space Program 2 pushes their launch date back again by another year.
Lol, is someone a little afraid? Take your time, boys.20
I use this timer app... probably more than most people (for food). It works fine and looks nice but the undismissable warning message is a real eyesore. Why not just let me dismiss the message.... why...2
What's your opinion on these sharp and very defined icons? Personally, I don't like them because they are too skinny. I like big, meaty icons and buttons because they seem less frustrating to click. There's nothing worse than a UI with tiny buttons.24
Did so much work today that my ring finger on my right hand is actually sore from pressing the enter key.
Too bad all that code belongs to my job and not me.6
If your language supports private member variables
And it's not part of the language style guide
DONT START PRIVATE MEMBERS WITH AN UNDERSCORE.
Shit is ugly as fuck.17
*types class name wrong, presses tab to auto complete*
Different class comes up from suggestions. The IDE automatically pulls in a bunch of useless imports to make your code work. Your code doesn't work, that's not the right type...
Apparently DELETE and... most of the HTTP verbs are disabled by default in IIS (ASP/ MVC/ Microsoft server software)
Am I wrong in saying that's fucking bullshit?!
Why make an HTTP serving environment with a massive array of tools to help you do everything you need in the web environment... And then DISABLE some of the web protocol??? What???
Not even the obscure verbs. DELETE. Is microsoft the type of bitch to delete using a GET request?? I bet the send passwords as get parameters.8
Personal projects, I think, are 50% of the battle, and projects you are required to complete are the other 50%.
Personal projects encourage you to try new and hard things without too much fear of failure.
Required projects make you learn something and complete it.
Both are absolutely essential to craft a well-rounded dev.
For some reason, Tableau is really heavy. I mean, all reporting software is a little bullshit, but Tableau... The server we had took 45 minutes to restart (no exaggerating - we timed it).
Reading the log files, yes, it WAS doing shit the whole time. Lots of shit. It seemed to be running just... Tons of software.
Tableau seemed to be aware of this because they have a page where you can check the status of everything. I assume that starts up first.
If you're looking into Tableau, two things to consider:
1) No, your braindead financial manager won't be making their own visualizations, no matter how many times the marketing team writes "drag and drop" on the Tableau website.
2) You'll make some nice visualizations but find that when you try to do more complex things, you run into constant roadblocks. If your manager asks "can you make it do x"? No matter how much experience you have, your answer can never be 100% "yes"... Or even "no" for that matter.
Not the worst experience with enterprise software, but definitely a surprisingly bad experience.
I'm thinking of writing an email server that accepts all usernames and just forwards the mail to the main inbox.
Or at least forwards a huge list of usernames to the main inbox.
You know, for spamming shit conveniently.
This way, firstname.lastname@example.org, email@example.com, and firstname.lastname@example.org will all go to the same inbox without actually needing to register any of those users.
It would be like having an email with infinite aliases.
Is there something like this already or do I need to implement SMTP?10
So, a rather unfortunate bug on the Minecraft website.
Minecraft allows you to change your name every 30 days. I was reverse engineering their API so I could use it personally.
On the username change form there are two fields: your desired username, and your password.
To protect myself from actually changing my name, I purposefully put in password123 so that it would fail. Then, I clicked "Change name" to monitor the network traffic.
Well that's when two unfortunate things combined.
#1: I used my last name to test. It's a unique word that is relatively short and very easy for me to type out of habit.
#2: That password field doesn't actually get validated.
So imagine my shock when I clicked "change username" and it WORKED.
And now my username is doxxing me for at least 30 days + the permanent name history
Reading up on how floats are stored and it's pretty cool how you can store numbers as large as 3.4×10^38 in the same amount of memory that an integer can store only about 2 billion.
Thinking of (the possible myth?) that phenomenon where you can ingest small doses of poison to build up an immunity over time, I'm convinced energy drinks are released by the government to build up our immunity to toxic bullshit because holy fuck I have never felt good during or after drinking one of those fucking things.5