Details
-
AboutI like this coding stuff
Joined devRant on 2/4/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
-
It's 2018 and I am forced to add new features on project that was deployed in 2003 and lastly updated at 2009.
Best part is that PHP version on the production server is [drum roll] 4.3.8. I found out that this version was the latest at July 2003. On top of that, server runs on Windows Server 2003 and the database is oracle (meaning php driver is needed).
I have spent a WHOLE WEEK just trying to recreate that environment in order to start working on the new features.
Sorry for grumping but I had to take it out somewhere.12 -
Rest in Peace my friend he was my room mates for 2 years in univ and he decides to drop out to take care of his father parkinsons. He is not as lucky as his parents, He was gone missing for 16 hours after the tsunamis struck in Donggala, Sulawesi. and just found dead apparently because drowning and head blunt trauma. reports from her family, the last time they seen their son is before he gone to find his father's medicine (it's not easy since the hospital and drug store are not effective because the big earthquake). A big condolescence for his family. for all the victim in Sulawesi stay safe ! and we hope you all the best!4
-
N: Me
M: Mother
M: Can you help me? I can't update pages.
N: Sure *Checks problem* it looks like you installed it with the old apple account, you just need to reinstall it using your new one.
M: What about all my pages documents on icloud?
N: *Compares documents on mac to her other Apple devices that never had the old account* See? The documents would have to be on the new account.
M: Are you sure? I don't want to lose any documents.
N: I know, don't worry their on your new iCloud.
M: *Calls apple support*
N: *Talks to apple support who after an hour of chatting to her through me because I translate customer support to mother confirms what I was telling her*
N: Reinstalls pages and everything is fine.
I was originally going to make a post talking a bit about how people love to second guess anything I say but thought this story provides a decent example. When it's something of a personal nature or someone is asking for my opinion in genral then it's perfectly reasonable to ask multiple people. It doesn't bother me when someone asks for my help, it bugs the shit out of me when someone asks for my help and then doubts everything I say in this case even after providing some evidence to back up my claim and wasting a solid hour. If you ask for my help your trusting that I have the knowledge necessary to assist, if I don't know for certain I'll try googling the problem but even in that case calling support doesn't bother me because I clearly don't know how to help.
P.S. This was my first story, how did I do?7 -
My dad found a phone a few weeks ago and asked me what he should do with it. Knowing how much it hurts to lose personal data, I said I could try to find the owner and send it back.
My first attempt was to search through the files on the SD card in order to find an identifying document (CV, bill, address...) but there were only family pictures.
My second attempt was to unlock the phone and check the information about the owner and the accounts linked to it. But for this to be possible adb has to be enabled. Good thing is that that particular brand shows an option for activating adb on the recovery menu.
But then, it's Android Oreo and I haven't found a way to lift the lock pattern. I thought I could bruteforce it over the shell (as I found there could be about 1300 possibilities for 2 to 5 point patterns), but there is the same attempt throttling as on the screen so that would take ages.
Finally, I found the owner in the most "social" way : The phone was displaying the weather for a particular place. It turns out that there are only 3K inhabitants in that city, si I thought that a big enough Facebook group might help me find the owner. So I posted a message on a 500 people FB group dedicated to this city with a selfie of the owner : someone identified her within 20 minutes.
Mission accomplished 😎42 -
Client: Can I speak to the developer responsible for my website?
Developer: Speaking...
Client: You have a deep voice for a 5 year old.12 -
People complaining about Microsoft pushing MS-Edge are clearly not using the YouTube mobile app, this shit pushes their premium shit and YouTube music every fucking day. MS you get ONE pop up when you change default browser and they are done! Also Google products one concurrent browsers ? You get that nice yellow message telling you you're not using chrome but people just like to tell shit about MS like it's the national sport or something well fuck you and fuck Google5
-
About 10 years ago my wife and I were buying a house. We found out late that we needed a lot more cash than we had previously thought we needed, and the deadline to deliver it was just a few days away. After returning home from my full-time gig at about 6pm, I took a break for a bit and then worked all night on a job for a client to make up the extra money. When 7am rolled around I had just finished up. Then I went back to work at my full-time job, and later met with the client to present my work. It was roughly 27 hours at a keyboard for me. That effort made it possible for us to successfully buy our first home. If you want something badly enough, make it happen!7
-
I found a python virus online a while ago that just corrupts your .py files, so I wanted to do something similar and after writing it I ran it on my pc, it corrupted all of my .py files.27
-
When walking, Women swing their arms at level height as your balls, watch out.
I've learnt the hard way (no pun)6 -
I am completely exhausted in every regard possible. Been working between 14 and 18 hours 7 days for about 3 months for a fucking stupid uni project. Amazingly, my phisical health has more or less kept up with that. The deadline is next friday and it looks like we're going to make it, but at this point I feel like an empty bag of flesh moving around. After the deadline I have 6 days to study for an extremely hard exam and I hate every single moment if this all. This morning I nearly cried just because I missed a bus that comes every 20 min. Please send endurance!!11
-
I'm not going to lie, the surge of bootcamps really irks me. Not because I'm afraid of competition, or that I'm an elitest. Mainly because a lot of people who attend these bootcamps have no real interest in software engineering. I sometimes attend a meetup, and it's a beginner meetup. I try to help out. And a lot of people clearly have no patience for learning software engineering. I try to be encouraging, but sometimes I just want to be dick and tell them "Why the hell do you want to be a dev, if you're not interested in how computers work".
I'm an 100% myself taught developer. Granted I'm 38 and taught myself programming at 14. But it came out of an earnest desire and love for technology in general. So I never shyed away from learning? C and assembler? Bring it on. Theoretical computer science? I can get with that. For me I loved computer so much, that I was willing to learn about anything in the realm of computing.
This is what annoys me with the adult bootcamp crowd. I feel they're only willing to learn as long as it's easy. If something gets complicated or complex, then they check out. And I a lot of their questions is "tell me how to do this/that". But they don't know why they would do it.
To me it feels like they're trying to fast track themselves to a dev job. Yet you would think if they're trying to do this all professionally, they would be open to learning as much as possible, and not closing themselves off.
My semi-friend who runs the meetup is trying to start a bootcamp himself. So I try I severely hold my tongue when I attend those meetups. And I want to be supportive. I certainly don't want to be the reason why people are turned off by programming. But at the same time, I hate how people are abusing this profession because they think it's fast money and an easy way to earn 6 figure salaries.3 -
TLDR; read the last alinea, my train just arrived and I am typing this after the resr of the rant
So lately there's been a lot of hate on here to PHP, which for now I'd say feel offended if you want to, but fuck all of the guys hating on a language without personal experience or even just plain "I used it for a week or less"-experience.
Noticed I said "a", yes I am not just talking about hate on PHP. It's pretty much the stupidest thing one can do, exclude a programming language you might like more than you will think at this moment. I present to you; My first few weeks of internship last year.
So last year I had to find a company to do an internship at with two classmates, none of them replied with a come over for a talk except a company mainly working in Laravel (PHP).
All of us didnt like php at the time, me possibly even hating it the most, but that didnt keep us from taking the leap of faith and just going to the company for a talk, I mean it couldnt hurt right?
So after the talk we had a place for an internship, which we all thought we were all going to hate, because of PHP.
Now a few weeks into the internship (3 / 10 weeks I'd say) we had basically just gotten done with the first setup of the project we had to build. And we noticed after a good 2 or 3 weeks that it didn't feel like too much of a different language.
Personally I even found it better than C# or Java, which were the only other languages I knew at the time.
Now keep in mind I still like C# and Java, allthough guven the chance I'll choose PHP everyday over both.
But I learned more things I was expecting to learn those 10 internship-weeks, with the one thing I am writing about being the main focus:
Stop hating, try the language out for at least a week (yes 5 * 8 hours) and then make an educated decission based on your findings throughout the week, you might be surprised...rant im using vue more and more lately fuck shit fuck you train does anyone actually read this tho? fuck language hater language hate6 -
My place of work just put on the World Cup live stream. I'm not even a huge fan but it looks nicer than my current code, so I'll live in denial for a bit2
-
My friend has a smart watch, and he is always watching the time. Texting. I meant to say texting. He's always texting at work. I have a traditional watch, so I like to make fun of him by very loudly saying "Hey Siri" into my watch a few times and acting confused when it doesn't work.2
-
I really want to.
I want to get away from Windows.
But I have yet to find a distro that works.
Today I tried again again.
I found out Linux Mint released version 19.
Snapshots integrated. Cool. I will try it.
Installed with Cinnamon. Looks nice. Everything is running fast.
Aaaaand I hate the mouse movement...
Why is there no 1:1 movement? Is acceleration on? Does not feel like it.
Ok. We can fix this right?
Opened the Mouse settings.
There is no way of deactivating mouse acceleration. Only customizing the amount of acceleration. What?
Ok customize it. No change at all.
Try extreme settings. Nothing.
Google for a solution. Says I should install dconf-editor and change settings there.
Install it, change the settings. Hey it works!
It is far from perfect but I can live with that.
Now the scroll wheel is so slow...
But there is no setting at all? Not even in dconf-editor.
Google the solution. Need to install imwheel and configure it. Really?
Okay will do. I wanna use this.
Finally. Mouse works as it should.
After all that, why is my lap so hot? Fucking hell the cpu seems to be burning.
Fuck that!
I am out! Back to Windows!24 -
This stupid windows update 1803 is complete mess. The windows changed my background image to blank (it was like dark screen all the way) fuck ..for a sec I thought OS crash or something. Any idea why this is happening with 1803 update?2
-
Just got Affinity Photo and Affinity Designer!
That splash screen is sleek!
P.S. This photo was edited with Affinity Photo22 -
- Good evening, this is the support hotline for stupid questions, how may I help you?
- Hi, is this the support hotline for stupid questions?2 -
I wrote a database migration to add a column to a table and populated that column upon record creation.
But the code is so freaking convoluted that it took me four days of clawing my eyes out to manage this.
BUT IT'S FINALLY DONE.
FREAKING YAY.
Why so long, you ask? Just how convoluted could this possibly be? Follow my lead ~
There's an API to create a gift. (Possibly more; I have no bloody clue.)
I needed the mobile dev contractor to tell me which APIs he uses because there are lots of unused ones, and no reasoning to their naming, nor comments telling me what they do.
This API takes the supplied gift params, cherry-picks a few bits of useful data out (by passing both hashes by reference to several methods), replaces a couple of them with lookups / class instances (more pass-by-reference nonsense). After all of this, it logs the resulting (and very different) mess, and happily declares it the original supplied params. Utterly useless for basically everything, and so very wrong.
It then uses this data to call GiftSale#create, which returns an instance of GiftSale (that's actually a Gift; more on that soon).
GiftSale inherits from Gift, and redefines three of its methods.
GiftSale#create performs a lot of validations / data massaging, some by reference, some not. It uses `super` to call Gift#create which actually maps to the constructor Gift#initialize.
Gift#initialize calls Gift#pre_init (passing the data by reference again), which does nothing and returns null. But remember: GiftSale inherits from Gift, meaning GiftSale#pre_init supersedes Gift#pre_init, so that one is called instead. GiftSale#pre_init returns a Stripe charge object upon success, or a Gift (and a log entry containing '500 Internal') upon failure. But this is irrelevant because the return value is never actually used. Pass by reference, remember? I didn't.
We're now back at Gift#initialize, Rails finally creates a Gift object using the args modified [mostly] in-place by all of the above.
Another step back and we're at GiftSale#create again. This method returns either the shiny new Gift object or an error string (???), and the API logic branches on its type. For further confusion: not all of the method's returns are explicit, and those implicit return values are nested three levels deep. (In Ruby, a method will return the last executed line's return value automatically, allowing e.g. `def add(a,b); a+b; end`)
So, to summarize: GiftSale#create jumps back and forth between Gift five times before finally creating a Gift instance, and each jump further modifies the supplied params in-place.
Also. There are no rescue/catch blocks, meaning any issue with any of the above results in a 500. (A real 500, not a fake 500 like last time. A real 500, with tragic consequences.)
If you're having trouble following the above... yep! That's why it took FOUR FREAKING DAYS! I had no tests, no documentation, no already-built way of testing the API, and no idea what data to send it. especially considering it requires data from Stripe. It also requires an active session token + user data, and I likewise had no login API tests, documentation, logging, no idea how to create a user ... fucking hell, it's a mess.)
Also, and quite confusingly:
There's a class for GiftSale, but there's no table for it.
Gift and GiftSale are completely interchangeable except for their #create methods.
So, why does GiftSale exist?
I have no bloody idea.
All it seems to do is make everything far more complicated than it needs to be.
Anyway. My total commit?
Six lines.
IN FOUR FUCKING DAYS!
AHSKJGHALSKHGLKAHDSGJKASGH.7 -
Wrote some codes that uses your photos to compose an input image. Will post code later. Written in Python though. Also this is my dad. Also I wrote this in Yellowstone cuz I didn't like the view lol.19
-
just got an email that they have a good opportunity for a -female- graduate of computer science where they don't require any programming or other skills. wtf
Do they want females just to up their fem statistics?
safe to say I did not reply, i am not unskilled and I don't want a job like that!11 -
There's this guy where I work who's one of the senior linux engineers. To me, he's like a linux god. He knows how to solve the most difficult problems and somehow copes with all the stress/workload. Next to that, he's only one year older than me!
Whenever I'm at work, I consider myself a junior, which I actually am. I also, as said earlier, see this senior guy as a fucking linux god and consider myself to be an absolute newbie around him but he is the most kind/friendly guy ever.
But then, today, something happened which made me feel like a god in front of him, a very, very weird feeling.
For him, doing his stuff is the most normal thing in the world while for me, it's still a learning process.
For me, programming is the most normal thing in the wold, while for him, it's still something he just knows the very basics of.
He asked me if I knew something about javascript/jquery. Said yes as I often program/script in javascript.
Explained me what he wanted to get done, it was a very simple thing for me but after hours of online searching, his lack of javascript knowledge still got him nowhere.
Told him I'd give him a working script in 30 minutes. Emailed it to him in 10.
He seemed/reacted the way I always do when he solves something I have no clue how to solve.
It was really weird to witness *him* being amazed of something that *I* made/did.
Today was a good day where I saw that one person's limitations can be anothers' most easy thing, even if that another person sees that one person as a god.13 -
A few days back I read an article about ethical hacking and get rewarded for bug bounty. I thought that might be interested.
AND
I'm about to send out my first ethical hack report to a company! I'm nervous because I don't know how they'll respond. It's an xss vulnerability, and I really hope they'll fix it.5