Details
-
SkillsJava, js, stax/jaxb, python, c#, spring, lazy, html, coffee, tomcat, putty, snorlax, apache, gulp, bower, ditto, yarn, linux, ubuntu, gentoo, arch, microfocus/hp/autonomy idol, pillow, w10 wsl, chrome, intellij Telegram: mt3o4
-
LocationWarsaw/Poland
-
Website
-
Github
Joined devRant on 5/3/2017
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
-
Fuck the imperial system. For centuries everyone used meters and kilograms to measure shit so why the FUCK did the U.S decide to use pounds and inches. Like i see most articles and videos comfortably using the metric system, EVERYTHING uses the metric system. then i stumble on an idiot who makes me go to a converter so I can understand his pound-inch-based lingo. FUCK YOU18
-
!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 -
Dearest LinkedIn, no-one *ever* cares about work anniversaries. It's not a thing. Stop trying to make it a thing.13
-
An identifier or keyword cannot immediately follow a numeric literal.ts(1351)
-Marge Simpson grumbling-6 -
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
-
I'm not a programmer by trade, so the only language I know well is bash. But as sysadmins we do use bash often.
Looking at other sysadmins' scripts though, there are interesting things in it every so often. Like for example `touch file` which creates a file. I've seen some sysadmins just do this instead `> file`. Genius! Or perhaps a `cat file >> elsewhere`. You can do that with `< file >> elsewhere`. It's something that if I hadn't seen it elsewhere, I wouldn't have thought about. But yeah, it saves a program call and it works!10 -
Young 22 years old me, hungry for excitement of real world issues, full of whimsical witticisms, writing bootstrap scripts that'd spit meaningful information like...
> $ run bankhack
> Shutting down the old world...
> Checking world population...
> Initializing particle accelerator...
> Exploding sun...
> Entering hell...
> Starting daemons...
> Starting lesser daemons...
> Burning logic...
> Restoring balance in the universe...
> World peace achieved.
What a naive douche he was.1 -
What if all of a sudden stack overflow went down!!! Just plain old "404 Not found" error on the website and nothing else. Just imagine the chaos it'll cause to this community.10
-
Practical example of why you should sort your code by feature (users, notes, analytics) instead of technical layer (models, views, controllers, etc)5
-
I was very troubled as a teenager. I had some pretty intense family issues that led me to smoking cigarettes at 12, marijuana at 13, and drinking everyday at 15. By 17, I was using other "party favors", as we called them, on an every day basis. I left high school at the beginning of my final year, about a week before I turned 18, moved out of my family's home and started working three different part time jobs.
This was the lowest point of my life. I've never felt so much like a fuck-up and loser than back in those days. I hated myself, hated what I had become, hated everything I did. Hate hate hate. I spent a year like this, pitying myself, seeking sympathy from people when I shouldnt have been, basically seeking out someone who would tell me that I wasnt so awful.
That never happened. I only deepened the hole that I had dug for myself.
Then I got angry. I thought it wasn't fair that everyone else was enjoying life except for me. I wanted to find a passion. I wanted to find excitement again. I wanted to look forward to something else besides going back to bed.
When I turned 19, I decided that I was going to take control of my life because I was so angry with my position at the time.
I put myelf into college. I made myself stay awake and focus on schoolwork and internal improvement. I started facing my flaws and defects head-on and conquering them rather than letting them eat me from the inside out.
Now, I am only a couple months away from turning 21.
I rarely drink now. I quit smoking cigarettes after almost 9 years.
I graduate this December, and enroll into my next degree program in January.
Today, I signed employment paperwork with the company I interned at over the summer. I am now a full-time DevOps Engineer with salary, bonuses, 401k, and full health coverage.
My boyfriend and I just moved into our own house that we are renting together. No more needing shitty roommates.
I have most of the debt that my mother left in my name paid off.
A couple of years ago, I couldn't have cared less about my life or how I turned out. I truly expected to get arrested, wind up homeless, or just flat-out end up dead.
I never thought I would see myself where I am today.
I am extremely proud of myself for turning my future around. I know some of you may read this and think I'm an idiot, or that this seems trivial because I am so young. Thats okay.
I have learned that hard work always pays off, and that sometimes you must sacrifice what is expedient to gain what is meaningful.9 -
Maybe I'll get some decent advice from a rampant over simplification...
2 job offers, assume compensation is close enough to not matter much.
Pride & Ambition/Opportunties
vs
Work-life balance & Time
How would you compare them, and where is the tipping point?
I'm feeling burnt out at the moment, which is screaming to pick the second, but... I can't let go of the first.11 -
So I just came across this and its really cool. I dropping the link for anyone curious, but its basically a digital FREE "magazine" that revolves around (and I'll quote from the site) "programming (especially programming tricks!), hacking, security hacking, retro computers, modern computers, electronics, demoscene, and other similar topics." the issues come out in PDF's and its really fucking awesome. I thought some of you would enjoy this so if youre interested check it out.
https://pagedout.institute//...10 -
Just spent an hour looking at the NYC Subway maps vs the direction Google wanted me to take.
Google found the most efficient way is to take E train then transfer to R which then goes back a bit like a U-turn to get to my stop.
Then looking at the subway map, I can just take the R train... Since none of these trains are express... How the fuck did Google think that A-B-C is faster than A-C....11 -
Allright, that was srsly cool!
We are doing family trips across Lithuania on weekends. This weekend we have visited a "gravity hill".
So basically here's what you do:
- drive your car down the slope, to the bottom
- stop the car. Leave at neutral
- the car itself starts moving.. UP TO THE HILL!!
I was sceptic, but ffs, it took my car less than 2 minutes to reach 25km/h from a point zero!!
I even tried once more with my engine turned off. The same thing happened :)8 -
This is more just a note for younger and less experienced devs out there...
I've been doing this for around 25 years professionally, and about 15 years more generally beyond that. I've seen a lot and done a lot, many things most developers never will: built my own OS (nothing especially amazing, but still), created my own language and compiler for it, created multiple web frameworks and UI toolkits from scratch before those things were common like they are today. I've had eleven technical books published, along with some articles. I've done interviews and speaking engagements at various user groups, meetups and conferences. I've taught classes on programming. On the job, I'm the guy that others often come to when they have a difficult problem they are having trouble solving because I seem to them to usually have the answer, or at least a gut feel that gets them on the right track. To be blunt, I've probably forgotten more about CS than a lot of devs will ever know and it's all just a natural consequence of doing this for so long.
I don't say any of this to try and impress anyone, I really don't... I say it only so that there's some weight behind what I say next:
Almost every day I feel like I'm not good enough. Sometimes, I face a challenge that feels like it might be the one that finally breaks me. I often feel like I don't have a clue what to do next. My head bangs against the wall as much as anyone and I do my fair share of yelling and screaming out of frustration. I beat myself up for every little mistake, and I make plenty.
Imposter syndrome is very real and it never truly goes away no matter what successes you've had and you have to fight the urge to feel shame when things aren't going well because you're not alone in those feelings and they can destroy even the best of us. I suppose the Torvald's and Carmack's of the world possibly don't experience it, but us mere mortals do and we probably always will - at least, I'm still waiting for it to go away!
Remember that what we do is intrinsically hard. What we do is something not everyone can do, contrary to all the "anyone can code" things people do. In some ways, it's unnatural even! Therefore, we shouldn't expect to not face tough days, and being human, the stress of those days gets to us all and causes us to doubt ourselves in a very insidious way.
But, it's okay. You're not alone. Hang in there and go easy on yourself! You'll only ever truly fail if you give up.32 -
Satoru Iwata.
You might remember it as the former president of Nintendo, but he was also a very impressive programmer. As he was president of HAL Laboratories, he helped with the development of Pokémon Stadium for the Nintendo 64 by porting the Pokémon Red/Blue battle system not by having any sort of documentation, but by reading the assembly source code.
He did so to allow Game Freak's developers (who were only a team of 4 at the time) to focus on their work on Pokémon Gold/Silver. But he did more: when they had to localize Red/Blue for America, they couldn't fit everything in a cartridge. They had the same problem while developing Gold/Silver, since cartridges had at most 8 Mb of storage capacity back then, and they had to fit not only the Johto region but the Kanto one as well! So Iwata stepped in, and created a graphics compression tool which managed to make everything fit in the cartridges.
He did this while not even being part of Nintendo, and the work was so impressive that the Pokémon devs thought it was "a waste to just have [him] as president!" (ie. why not make use of such programming skills).
Truly someone I look up to.8 -
Alright boys, let me tell you how someone fucked up so hard they got their deployment schedule delayed "indefinitely".
Being security, we get to oversee most deployments, and we especially get to oversee all deployments that are on IT-managed tech. Knowing fullwell about this fact, some dumb motherfuckers woke up and thought to themselves "You know what would be good fun? To piss on security's asshole and then try and ream them up the backside before they notice the piss!"
Well let me tell you, we noticed. And our boss noticed. And his boss noticed. And the CIO noticed. Thus it came down the chain that this particular group of lie-spurting, baseless accusation-leveling group of developers would have their deployments put on hold. How long? "A while."
I have never quite heard my higher-ups this mad before, but damn if i dont share in their enthusiasm to stick it to entitled cunts.16 -
Don't develop depression, develop a personality instead, be more outgoing and outspoken, work out, dress better and make your life shit that goes beyond coding.
Tired of people in tech being this way. Everyone acts as if monkeying away on the keyboard makes them some sort of autistic genius that is too good for everyone else.
Some of you have the social skillset of a fucking potato.
You code dude. Most of you develop websites...chill the fuck out.52 -
#programmingstuff
A parent may kill it's children if the task assigned to them is no longer needed.
*Don't apply it to real world.5 -
This one is for devs and gamers.
But first some background story.
My girlfriend is special. Not just generically lovey mush mush special. She is 1 in 100 more accurately 1 in 10000. She was born with a rare Congenital Heart Defect {CHD}. Called Truncus Arteriosus or TA for sake of brevity. TA's main thing is the two main arteries going into the heart are fused together and never seperated at birth. It's bad news. There is no cure for this kind of thing. Simply repairs that happen over the course of life.
So here is me. Desperately trying to find a way to get the word about this and the 40 other types of CHD out there in the world. I thought. "What if I make a game..." Not based around the medical jargon but on a level people could understand. I spent the better part of the last six years attending appointments with her and still don't get it. What I do get is her Emotional state. How her CHD causes her to think and feel.
So here is the pitch.
The game is about a girl who is diagnosed at birth with a CHD. She is now in her 20's and has to undergo an open heart surgery to repair the defect. The day comes. She goes under but when she wakes up she find herself in a final fantasy style environment. This new world has a darkness cast over it. She is unknowingly the hero of this world and she has to face off with multiple bosses of varied degrees of evil.
Then after beating these bosses she really wakes up from the surgery. Waking up to the realization that the world she saved was herself. And all the bosses were manifestations of her own internal feelings. Depression, anxiety, hopelessness, Denise, desire and so on.
I would sell this game with the caveat that 2/3 of all profits get split between the Adult Congenital Heart Association and Project Heart. As those are the two main organizations that deal heavily with creating standards of care and raising awareness for CHD survivors.
Thoughts?
Note: I am still learning game dev. This is an eventual goal for me.33 -
A living fossil discovers modern software practices. Nice roasting in the answers:
https://workplace.stackexchange.com/...1 -
Ah well, it's double out of fashion because smoking is on the black list of the health maniacs, and nobody smokes pipes anyway. BUT! filling a pipe and smoking it for easily half an hour is quite some pleasure!73
-
Ha! There's nothing like listening to a couple of crotchety devs talking shit about agile for half an hour, just to have a junior dev bust into the room and frantically exclaim "we have to start over from scratch again!" Apparently, someone didnt fully understand the requirements... 😉1