Details
-
AboutGoogle it
-
SkillsJava, Python 2 & 3
-
LocationYes
-
Website
-
Github
Joined devRant on 12/29/2018
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
-
It's been a bit since I last used this platform, but I recently got a "new" phone (as in it's new relative to the one I've been using) only to find the devRant iOS app is no longer on the US app store. It doesn't seem like the tools used to create ipas from installed apps works on devRant (I believe they're built around 32-bit apps and we are way past that now) so now I just have this device with an app that seemingly no longer exists.
...cool I guess?6 -
Just spent several hours trying to figure out why a binary file wasn’t being written correctly.
I missed a break statement.
Also it’s been a while since I’ve been here, maybe I’ll actually come back. -
I'm not proud of this, but I'm not sure there's a better way of doing this.
Context: texture sheets are massive, so I wanted them to be gced when possible. Problem is, during init, the gc kept collecting the sheets, which added a full 5-10 seconds to load times.
This ensures that the sheets stay in memory until everything is initialized.15 -
Whoever designed how audio metadata is stored in gamemaker archives is now on my hitlist.
I think my comments on my parser sums up my mental state pretty well.
https://gist.github.com/BenjaminUrq...4 -
I spent 2 hours last night trying to figure out how to rotate an image in Java without clipping it. I was all in with a pencil and paper sketching everything out to make sure my math was right.
Turns out I was calculating the new image size correctly, but I used to wrong variables to define the new dimensions...
Sigh. -
WINDOWS REFUSES TO INSTALL TO EXTERNAL DRIVES. I ONLY FIGURE THIS OUT AFTER SPENDING 2 DAYS TRYING TO GET THE INSTALLER RUNNING IN THE FIRST PLACE.
ASufhaiusbfgauygb6 -
Found this on discord.
Could be copypasta but I decided to share it anyway.
"I use Linux as my operating system," I state proudly to the unkempt, bearded man. He swivels around in his desk chair with a devilish gleam in his eyes, ready to mansplain with extreme precision. "Actually", he says with a grin, "Linux is just the kernel. You use GNU+Linux!' I don't miss a beat and reply with a smirk, "I use Alpine, a distro that doesn't include the GNU coreutils, or any other GNU code. It's Linux, but it's not GNU+Linux."
The smile quickly drops from the man's face. His body begins convulsing and he foams at the mouth and drops to the floor with a sickly thud. As he writhes around he screams "I-IT WAS COMPILED WITH GCC! THAT MEANS IT'S STILL GNU!" Coolly, I reply "If windows was compiled with gcc, would that make it GNU?" I interrupt his response with "-and work is being made on the kernel to make it more compiler-agnostic. Even you were correct, you wont be for long."
With a sickly wheeze, the last of the man's life is ejected from his body. He lies on the floor, cold and limp. I've womansplained him to death.14 -
Contest is over. I accidentally submitted broken code at the last minute so this is my unofficial placement.1
-
Wish me luck, a bot/AI contest started today.
https://codingame.com/contests/...
Currently, out of the ~600 people who made a submission already, I am #190.2 -
Always back up your data.
I came to my computer earlier today to find it on my Linux login screen. This could only mean one thing: something went horribly wrong.
Let me explain.
I have my BIOS set up to boot into Windows automatically. The exception is a reboot or something horrible happens and the computer crashes. Then, it boots me into Linux. Due to a hardware issue I never looked into, I have to be present to push F1 to allow the computer to start. The fact that it rebooted successfully, without me present, into *Linux*, could only mean one thing:
My primary hard drive died and was no longer bootable.
The warning was the BIOS telling me the drive was likely to fail ("Device Error" doesn't really tell me anything to be fair).
The massive wave of panic hit me.
I rebooted in hopes of reviving the drive. No dice.
I rebooted again. The drive appeared.
Let's see how much data I can recover from it before I can no longer mount it. Hopefully, I can come out of this relatively unscathed.
The drive in question is a 10 year old 1.5 TB Seagate drive that came with the computer. It served me well.
Press F to pay respects I guess.
On the bright side, I'll be getting an SSD as a replacement (probably a Samsung EVO).8 -
I'm currently one of two "pen testers" for the anticheat system of a game.
It all started a few days ago when the developer handed me the obfuscated package and told me to go at it. No big deal, I've bypassed it before the obfuscation, so I just changed some imports and sent in the screenshot.
Fast forward 100+ hours, it's turned into a cat-and-mouse game. He sends us (the testers) an update, we break it within hours. We show him what we exploited and he attempts to fix it. Rinse and repeat.
Finally, today he patched the one hole that I've been using all this time: a field in a predictable location that contains the object used for networking. Did that stop me? No!
After hours of searching, I found the field in an inner class of an inner class. Here we go again.3 -
I got my micro sd card stuck in the reader of my computer somehow, so now I need to essentially take apart the computer to get it back.7
-
I found a chrome addon that allows me to search webpages with regex. I've had it for a full minute and I already love it.
https://chrome.google.com/webstore/...1 -
localhost, because it's always available even when I'm offline. The cloud is just a bunch of computers after all.1
-
After 3 days of pain, I finally got my first genetic algorithm and physics engine to work
MP4 version: https://chat.is-going-to-rickroll.me/...9 -
I’ve had this cord (not the iPod) for seven years and it still works with no issues. Why can’t today’s cords be so good14
-
// Task: add one to the input number
// Sane people:
// print(int(input())+1)
// Me:
n = [*(reversed(bin(int(input()))[2:]))]
tmp = ""
for i in range(len(n)):
tmp = n[i]
tmp = "1" if tmp == "0" else "0"
n[i] = tmp
if tmp == "1":break
if tmp == "0":n+=["1"]
n = "".join(reversed(n))
n = int(n,2)
print(n)7 -
Getting a CodinGame puzzle's description without scraping the page.
I spent hours playing with different endpoints and changing values in postman, all to no avail. The most promising endpoint also returned user progress, which requires authentication, which requires a dummy account, which is against their ToS (it is allowed to reverse engineer the API though).
Turns out you just had to submit “null” for your user ID and it would remove the progress field.
Why is this tagged bad design?
["puzzle-id-string", user-id-as-int]
For almost anything, you POST json arrays...
Send help.