Details
-
SkillsPython, C#
Joined devRant on 3/22/2019
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
-
I feel like technologies should spend wayyyy more time on making examples rather than ridiculously verbose documentation.12
-
So you're telling me that the USB-C cable between my Galaxy S8+ and my PC can move data at 10Gbps... Then why is it that whenever I try to browse my photos on it, the icons load slower than a webpage through dialup, and the 'DCIM' folder can take up to a full minute to load all the file icons? 🤔6
-
!Story
The day I became the 400 pound Chinese hacker 4chan.
I built this front-end solution for a client (but behind a back end login), and we get on the line with some fancy European team who will handle penetration testing for the client as we are nearing dev completion.
They seem... pretty confident in themselves, and pretty disrespectful to the LAMP environment, and make the client worry even though it's behind a login the project is still vulnerable. No idea why the client hired an uppity .NET house to test a LAMP app. I don't even bother asking these questions anymore...
And worse, they insist we allow them to scrape for vulnerabilities BEHIND the server side login. As though a user was already compromised.
So, I know I want to fuck with them. and I sit around and smoke some weed and just let this issue marinate around in my crazy ass brain for a bit. Trying to think of a way I can obfuscate all this localStorage and what it's doing... And then, inspiration strikes.
I know this library for compressing JSON. I only use it when localStorage space gets tight, and this project was only storing a few k to localStorage... so compression was unnecessary, but what the hell. Problem: it would be obvious from exposed source that it was being called.
After a little more thought, I decide to override the addslashes and stripslashes functions and to do the compression/decompression from within those overrides.
I then minify the whole thing and stash it in the minified jquery file.
So, what LOOKS from exposed client side code to be a simple addslashes ends up compressing the JSON before putting it in localStorage. And what LOOKS like a stripslashes decompresses.
Now, the compression does some bit math that frankly is over my head, but the practical result is if you output the data compressed, it looks like mandarin and random characters. As a result, everything that can be seen in dev tools looks like the image.
So we GIVE the penetration team login credentials... they log in and start trying to crack it.
I sit and wait. Grinning as fuck.
Not even an hour goes by and they call an emergency meeting. I can barely contain laughter.
We get my PM and me and then several guys from their team on the line. They share screen and show the dev tools.
"We think you may have been compromised by a Chinese hacker!"
I mute and then die my ass off. Holy shit this is maybe the best thing I've ever done.
My PM, who has seen me use the JSON compression technique before and knows exactly whats up starts telling them about it so they don't freak out. And finally I unmute and manage a, "Guys... I'm standing right here." between gasped laughter.
If only it was more common to use video in these calls because I WISH I could have seen their faces.
Anyway, they calmed their attitude down, we told them how to decompress the localStorage, and then they still didn't find jack shit because i'm a fucking badass and even after we gave them keys to the login and gave them keys to my secret localStorage it only led to AWS Cognito protected async calls.
Anyway, that's the story of how I became a "Chinese hacker" and made a room full of penetration testers look like morons with a (reasonably) simple JS trick.9 -
I pitched a homebuilt Raspberry Pi and AWS IoT automation solution for my weed guys grow op.
Now the fucker wants me to actually build it and to pay me in weed.8 -
I miss windows xp. It was so open and so civilized. The times when you actually owned your computer.19
-
!dev
when one of your best domains were taken for a long time and you didn't considered about buying or hijacking it or even thought about what you would even do with it because its taken anyway and you are not an asshole. But then out of nowhere you get an offer to get this domain. and you start thinking... what cool project you could do with it and what it may becomes - and what if your project fails and you wasted a great domainname... but ofcurse you stuggle for too long and the old owner bought it already back again, like he just forgot to renew it and didnt even cared about it that much.
congratulations. you now cant stop thinking about this cool project and what it could may be. instead you see someone else wasting it...
as if dev life is not depressing enough. back to localhost :( -
What do we do when the WiFi dont work
What do we do when the WiFi don't work
What do we do when the WiFi don't work
On Ubuntu 18.10
Disable secure boot and sign your own driver
Disable secure boot and sign your own driver
Disable secure boot and sign your own driver
Build it from the source code2 -
EDIT: devRant April Fools joke (2019)
-------------------------
Hey everyone!
Today, @trogus and I are very happy to announce a devRant feature that we’ve been working on for many months. After extensive time and money investment, it’s finally here! Introducing, pixelated avatars!
@trogus came up with this awesome idea about a year ago, but we couldn’t get it just right so we had to tons of work/research to make those pixelated avatars give the full sense of retro and ULTIMATE pixelation. We think everyone will appreciate how this effort turned out.
Anyway, let us know what you think, and we hope you enjoy!
p.s. here is @trogus’s avatar - the model we used to make sure the feature is perfect!51 -
Ebay app: Hey, look at this offer, you can save 30%!
Me: Urgh, alright, let me have a look
*Clicks notification*
*Offer seems alright, took me by surprise honestly*
*Scrolls down a bit*
Ebay app: ITEM DOESN'T SHIP TO YOUR LOCATION *evil laugh*
Fucking gets me every time1 -
Riskiest Dev choice...
Leaving a previous job, moving 1000KM (620 Miles) away with no job prospects and going absolutely broke.
This was all in the name of “I need a better job”, so what better way to force yourself to get one.
I’m currently in my second job since then and now make just over double what I was earning before.
Sometimes it takes a high risk to get out ahead.4 -
Yep, today was a Monday. Had a request to truncate some tables. Set up a script to disable constraints, truncate, and re-enable constraint. It ran flawlessly. Too bad I ran against the wrong schema, though. Ran it against a dev schema instead of the requested itest schema, because the dev schema was stuck in my head. Well, I guess I tested it in dev. Against some developers schema. But, hey, it worked flawlessly. Because, you know, when you are pointing at the wrong place, it will always work. Every time.3
-
Sometimes I just hit a "developer's block", when I'm just blankly staring at my screen wondering where did I start and how did I end up here!?
It is hell frustrating!!!6 -
Don't give me Mobile First! Fuck That!
I dev on desktop, most users are on desktop, my client thinks desktop is most important, so why the hell should I put mobile first??
And doublefuck "Offline First".
Get back to earth Google!3 -
*youtube how to use X in Y*
*please dont be an indian please dont be an indian please dont be an indian*
hlo frnds tday ím gna shw u...
FUCK27 -
Fuck you c++...!!!
TL;DR:
float a = 1.0/10.0;
float b = a*10.0;
a == b returns false
😐
Story:
A beginner of c++ here
Wrote about a 1000 lines code (spread across multiple files, m not dumb)
Passed 90% of cases
Took one and a half days to figure out what's wrong
Turns out c++ doesn't give accurate (as perceived by a human who thinks in decimal) results when comparing equality of 2 floats with ==
Shouldn't that be the first thing to be taught in schools?19 -
After countless hours trying to spell my name for customer service over the phone, I made a little webpage that helps me spell words phonetically! 💬
https://dialogue.now.sh35 -
Ladies and gentleman, I've done it.
Remove your hacker game trophies from your wall.
That nasty bug you fixed a couple of nights ago? Meh.
Your top devRant post? You'll delete it after reading this.
Every awesome accomplishment you can think of: it all means shit now.
>> I have SUCCESSFULLY changed my business Microsoft account password into something I can remember AND Microsoft accepted it in under an hour of trying!!!!! <<
I want to say a big FUCK YOU to MICROSOFT for WASTING MY BLOODY TIME.
FUCK YOU for giving me a max of 16 characters. DASB&(*(&G*HH*& for telling me every time my password is 100% strength and then after every submit tell me I have to change it AGAIN because it should be harder to guess. WUT?! It was 16 characters including a (capital) letter, number and multiple special characters, WHAT ELSE DO YOU WANT FROM ME?! UNICODE EMOJI'S???!!! ALLOW ME TO USE MORE CHARACTERS SO I WILL MAKE IT HARDER TO GUESS IT, IT'S 2018 FFS.
I don't even understand why my new password is accepted compared to the other one, but fuck it I can access my account again.
Now I might have to find a new job before the company password policy kicks in again.
/me drops everything and walks out of the office to get wasted (not sure if celebrating or just really pissed off)7 -
Someone posted a picture of a porn actress(like a *new* actress) that looks exactly like my manager.....bruh this is killing me she looks exactly like my manager to the point that it is freaking me out thinking that she has a gig on the side or something
I can't get over this.
This is what happens when your manager is insanely attractive.
Internet wtf.
No i am not posting pictures.55 -
Had this with a relative. His laptop wasn't turning on, with or without charger so he brought it back to the store to fix it. It ran elementary os by the way (detail for later). Then he got it back after a week and we booted it and it had windows 8 installed (wtf indeed). So we called the service desk to ask about it since the issue was a broken charger (!!!). Their reply: oh yeah there was a weird system installed on it so we thought we'd reset it as well for you.
SERIOUSLY, THAT'S NOT YOUR FUCKING JOB!!
He is not tech savvy and he didn't know much about backups so that was literally about one year of work GONE. Yeah, I setup a cloud backup sync thingy for him right after that.7 -
"Cricket Exchange App"
1Million downloads - 4.9* Rating
Was quiet interested
Installed and opened
And wtf is this?17