Details
Joined devRant on 5/5/2016
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
-
One Thursday noon,
operation manager: (looking at mobile)what the.....something is wrong i am getting bunch of emails about orders getting confirmed.
Colleague dev: (checks the main email where it gets all email sent/received) holy shit all of our clients getting confirmation email for orders which were already cancelled/incomplete.
Me: imediately contacting bluehost support, asking them to down the server so just that we can stopp it, 600+ emails were already sent and people keep getting it.
*calls head of IT* telling the situation because he's not in the office atm.
CEO: wtf is happening with my business, is it a hacker?
*so we have a intrusion somebody messed the site with a script or something*
All of us(dev) sits on the code finding the vulnerabilities , trying to track the issue that how somebody was able to do that.
*After an hour*
So we have gone through almost easch function written in the code which could possibly cause that but unable to find anything which could break it.
Head asking op when did you started getting it actually?
Op: right after 12 pm.
*an other hour passes*
Head: (checking the logs) so right after the last commit, site got updated too?. And....and.....wtf what da hell who wrote this shit in last commit?
* this fuckin query is missing damn where clause* 🤬
Me: me 😰
*long pause, everyone looking at me and i couldn't look at anyone*
The shame and me that how can i do that.
Head: so its you not any intrudor 😡
Further investigating, what the holy mother of #_/&;=568 why cronjob doesn't check how old the order is. Why why why.
(So basically this happened, because of that query all cancelled/incomplete orders got updated damage done already, helping it the cronjob running on all of them sending clients email and with that function some other values got updated too, inshort the whole db is fucked up.)
and now they know who did it as well.
*Head after some time cooling down, asked me the solution for the mess i create*
Me: i took backup just couple of days before i can restore that with a script and can do manual stuff for the recent 2 days. ( operation manager was already calling people and apologising from our side )
Head: okay do it now.
Me: *in panic* wrote a script to restore the records ( checking what i wrote 100000000 times now ), ran...tested...all working...restored the data.
after that wrote an apology email, because of me staff had to work alot and it becomes so hectic just because of me.
* at the end of the day CEO, head, staff accepted apology and asked me to be careful next time, so it actually teached me a lesson and i always always try to be more careful now especially with quries. People are really good here so that's how it goes* 🙂2 -
Anyone here live near Friedrichshafen (Germany) or Zurich (Switzerland)?
Will be going there for my vacation with my mates and it'd be awesome to meet a fellow (or more) devRanter!66 -
Share your look-busy scripts
I'm talking about some script, or command(s) which output impressive garbage to the screen. For instance, `tree / | od` or `ping google.ca | xxd` might be enough to dazzle an executive, but to really ensnare a fellow dev, you need to get a bit more complex.
So let's see those scripts! From stupid simple, to application-level complex, I wanna see 'em all! :D11 -
When I had to choose a service, I chose bitbucket. Now the other two are getting flamed. Seems like I chose right. But in the end who knows what is good and what is bad. Peaches are delicious. Winter is coming. And I definitely don't care.rant fusions bitbucket microsoft user will keep complaining gitlab google companies user will remain user hypocrites oracle guthub5
-
!dev && education && ~German (survey is in German)
My girlfriend is doing her "A-levels" (the things you do to qualify for university). In Switzerland it's called Matura and in Germany Abi.
However for her final assignment she has to do a survey. Since it's in German, probably only People from Switzerland/Germany and Austria will be able to participate. However if you understand German feel free to participate!
The topic of the survey is "taboo topics" and the survey can be found here: http://we03sl.findmind.ch (takes less than 5 minutes)
Thanks a lot for your time (:17 -
So I've noticed there's a lot of php hatred here on devRant xD Does anybody know of any modern php communities or forums to join? I've searched for a few but a lot are outdated.22
-
Alright fuck it, let's release this fucker!
https://lynkz.me is the main domain. The interface is *usable* and nothing more than that. I'll invest more time in that soon but for now, hey, it works.
Api is located at https://api.lynkz.me.
Documentation for this (literally some echoes to the screen but it contains the needed information for now) is at that api url.
Found a bug or a security vulnerability? Please let me know!
Yeah I use mariadb but sql injection is luckily not possible due to quite some sanitization ;)
WARNING: if you make a shortened url and forget the delete key, you won't be able to delete it.
Let's see how this goes 😅111 -
So lets see if i can get this devrant stuff right.
So a couple of years ago i worked for this company, where i worked in datawarehousing and business intelligence. I was in my 3rd year of working as a software engineer and was full of ideas, motivation and just wanted to do cool stuff.
Anyway, after the first couple of months of working where i learned what they actually wanted to achieve, i got some ideas on how to improve the workflow. They were just simple things, like updating our IDE (we were working with a very old Visual Studio version), getting useful editors, using some more modern ideoms like unittests, continous integration, etc. Simple stuff really.
So in my endless naiveness i went to my supervisor and told him my ideas. He was not particularly interested in my ideas and cut me off somewhere in the middle and said that he would talk to his boss.
So a couple of weeks after that (nothing happened), i went to him again and asked about it.
M:" Hey Bossman, have you thought about my ideas?"
B:"Yes."
M:"And?"
B:"We won't do them."
M:"None of them?"
B:"No."
So at this point i was a bit bummed out, but surely he has a good reason right? So i asked why.
M:"Why?"
B:"Well, because we always have done it the way we do it now."
I think i had a bit of a blank stare at that point, because he looked at me funny. If we would do things like we always have done them, we would be still in the stone age you moron.
God i hate it when people say stuff like that.3 -
My birthday is coming up on the 13th so I'll be 17 soon, but it's a shame. I like being 16...
Anyway... I'm going to spend the entire day working on my python script because I know no one will come.
For 5-6 years no one came to my birthday even though they said they would.
It's fine. I stopped caring, besides, I get to spend the day with variables and loops! It'll be a fun day, not to mention I'll be home alone so no one will bother me.
Useless but interesting fact: I got lucky. I was born ONE MINUTE before Valentine's day. At 11:59 I would be so upset if I was born on the 14th.77 -
Is this real?
https://mobile.twitter.com/fs0c131y...
OnePlus spying on its users using the clipboard app.10 -
Recently, one of our passwords was accidently published on a public page for a few minutes before it was noticed and removed. Unfortunately, this password opens nearly every locked account so it's a pretty big deal.
Management was informed of this mistake and told that we should change the passwords as well as implement a few other protocols to make sure this doesn't happen again including things like unique passwords, more secure passwords, using a password manager, etc.
Their response? It wasn't online long, probably no one saw it. There will be no changes in how we handle ours or our clients' secure passwords.6 -
*** don't use compiler ***
Question in class today:
int n = 0;
for (int i = 1; i < 10; i++) {
n = n++;
System.out.println(n);
}
what will be printed?50 -
Why is GOTO deprecated and not recommend!?
It was fun in school days programming, I used to write code randomly then use GOTO to sequence it.
Did anyone had fun with GOTO!?15 -
Just deployed version 0.0.1 of my holiday project to production.
It's a pie "attached" to some speakers, mounted below the kitchen cubord. So far it only runs a spotify connect on it and you're able to play music there while cooking/cleaning.
I'd actually like it to also be able to just play regular music, either from a smartphone or a computer in the network. (It's connected by wifi to our lan). Any advice on what software I could install on it to achive that? i'd prefere to enable it for devices on the lan and have bluetouth dissabled, but I'm actually not sure if that is even possible. So yeah any advice to that? Or any other things you'd install on it?
I know, that I need to do some "cable management" back there :P10 -
Last Wednesday and Thursday were public holidays. Took leave on Friday and now at a resort beside a dam/lake. Now chilling with booze and snacks in a wooden tent. Life can't be better.
Morale of the story is Programming is not your life. Take a break.8 -
We have a group slack chat for my class which was intended to be a space for asking questions about assignments and getting help from your peers. Instead it has become a dick measuring contest in there where guys who know very little can act all high and mighty about their (plain wrong, in some instances) facts they're distributing without care. It pisses me off so much seeing how toxic it has become in there. It's the same 5 guys using it to bully each other and God forbid anyone else asks a question, they'll be mocked for not being confident handing in a solution they aren't sure is right. Why can't people treat each other with respect? We're in school to LEARN. Not impress other students with how much (read: little) we know. GJ, guys. You created a smaller version of stack overflow.4
-
I really like my little group for this one huge exam project we have. Everyone's nice, ambitious, takes the project seriously, responsible and communicates well. Additional bonus is we're all on the same skill level so everyone's learning and nobody is dragging a huge load alone. We've had no issues so far and despite being fairly early in the project we're making good progress all around. Is this what a stress-free experience feels like? Pretty happy with the project in general and I think our app idea is pretty cool too.22
-
can we just get rid of floating points? or at least make it quite clear that they are almost certainly not to be used.
yes, they have some interesting properties that make them good for special tasks like raytracing and very special forms of math. but for most stuff, storing as much smaller increments and dividing at the end (ie. don't store money as 23.45. store as 2,345. the math is the same. implement display logic when showing it.) works for almost all tasks.
floating point math is broken! and most people who really, truely actually need it can explain why, which bits do what, and how to avoid rounding errors or why they are not significant to their task.
or better yet can we design a standard complex number system to handle repeating divisions and then it won't be an issue?
footnote: (I may not be perfectly accurate here. please correct if you know more)
much like 1/3 (0.3333333...) in base 10 repeats forever, that happens with 0.1 in base 2 because of how floats store things.
this, among other reasons, is why 0.1+0.2 returns 0.300000046 -
Things that give me chills early in the morning. A password reset email that contains my password in plain text.
Seriously! 🤦♂️1 -
It's Friday night and I should keep preparing for an online tech test I will be taking tomorrow.
But I want to just relax and watch my Amazon Prime subscription which I haven't had time for since I've been preparing all week...
The test is for Amazon.3