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
Search - "problem"
-
Root's shortest and best rant ever:
I tendered my resignation today!
I feel so happy and free ^_^rant snip snip! resignation freedom is a wonderful thing three weeks before christmas not my problem root you little shit40 -
IF YOU WRITE IN A FORUM ABOUT A PROBLEM AND YOU SOLVED THE PROBLEM, TELL US THE FUCKING SOLUTION YOU MORRON! YOU TOOK THE EFFORT TO JUST WRITE "I SOLVED THE PROBLEM" WITHOUT WRITING A WORD ON HOW THE FUCK YOU DID IT. DO YOU THINK I READ THIS FUCKING TOPIC FOR FUN? I AM ONLY INTERESTED IN THE SOLUTION, I DON'T GIVE A SHIT IF YOU SOLVED IT OR NOT!!!12
-
That moment when you spend an entire afternoon trying to eradicate a problem but give up at the end of the day, and then solve it in 10minutes the next morning.
Damn you dev life !12 -
Parents:why is my iPad so slow?
Me: It's old (1st gen that came out in 2010)
P:well just clean it up and make it go faster
M:Theres nothing to clean... Theres only a browser app and solitaire....
P: well just fix it so it's faster
M:....... *turns it off and on again*
M: All fixed2 -
So the bosses and general peeps at work never close our door properly.
Finally earning the "engineer" part of our job titles :p!9 -
No, I don't know why your keyboard isn't working. I'm a web developer. Have you tried turning it off and on again?2
-
Me: *laying in bed because I have a day off*
Client: *slides in* Do you have time for our lord and savior "bugs in production"
Me: *screams*3 -
Them: "Our phones are down."
Me: "I'm sorry to hear that. Have you notified your provider?"
Them: "My provider?"
Me: "...You haven't been our VoIP client for about a year and a half now."1 -
Client hasn’t responded to my questions for over 2 weeks, so I close her ticket.
”Why the hell did you close the ticket!? The problem still exists!”
Sorry, I’m not a mind reader..3 -
!dev, more about social media
(and suicide)
ugh. social media.
recently a girl from a nearby high school committed suicide. it's sad, and i know what i'm about to say is going to be controversial, but i think it shouldn't be on social media. maybe her close friends posting it on instagram, to remember her, but that's it.
of course, that's not what happened. people started posting "❤️" on their snapchat stories, and theyre saying they are raising awareness. (they don't know this girl or why she did it or anything, they're just doing it because their friends did it.)
this awareness, is well, temporary.
the point of snapchat is that all the pictures go away, so why would they talk about suicide prevention on there? do they want suicide prevention to go away? this is most prevelent on snapchat, but on others, too.
trend after trend after trend.
thats what people turned her death into. a trend.
just like #prayforparis, and others, but on a local scale.
the problem with social media is that things go away. in a day or two it'll be like this never happened. she won't be remembered like she would if she weren't on social media.
i know what you're thinking. they're just "raising awareness." but for how long?
well, until another trend comes.
people disagreeing with me are extremely welcome to comment.
and any ideas on how this problem can be fixed?20 -
Is it just me or everyone have this issue that when I sleep with some coding problems my mind will try to find a solution for it?14
-
Who said programmers cannot solve hardware problems?
My router just said "Check hardware connection of your WAN port"
I took the cable out, blew in the socket and put it back in.
My internet is back in action.3 -
when u spend 2 hours desperately trying to fix a bug. Give up, off the computer and get ready for bed. the moment you get comfortable and ready to sleep. You solve the problem mentally in ur head. Get back up, on the computer and continue coding.
-
My first name has 2 letters. For Some web applications, I have to use fake name..... because my name failed in string.length check.11
-
Short version:
Dear devRantdairy,
today I was stupid.
The End.
Full version:
I am working on some messaging system, trying to use less as possible overhead sending data. Therefore there of course are asynchronous calls and some templating. But that's just the setting of the rant: I designed an architecture to save conversations in a database. Working with transactions in pdo I wrote a query wich in my eyes should have worked well. But the result just didn't appear in the table. So I started debugging data. Recreated the table. Rewrote the query. Went to bed. Woke up. Further tryed to make this work. And in the end I realized I just forgot to commit the transaction.
How dumb can you be? There's way too much time gone for that mistake. Is there a hole? I want do dig myself.9 -
I swear to god, I'm going to track down the dipshit who just made my day hilariously painful.
So here I am, finishing up this project that's been going on for what feels like an eternity, when I get an email "why doesn't order X show up in this other system?".
I mean, it's a common thing they can take 15 minutes to push across, so the usual quick glance and what do you know, it's just sitting there as if it's waiting to be pushed through, than an hour later... it's still there, so I start digging, maybe a data issue, nope looks all good, customer details, payment details, products...
just another order, jump on the logs and all looks fi......... wait.... why does this postcode have 3 digits and not 4 , Australia has 4 digit postal codes fyi, looks at order again, 3 digits, look at log, 3....hold on why's it only 3 digits, checks code, handled as string... ok..... where the fuck would it drop a digit.... frontend requires 4 digits, validation requires 4 digits... how the fuck did you get 3 digits in... I can't see anything anywhere that logically makes sense for this🤔
Drops address into google and it's a postcode starting with 0.
Jumps on DB and the fucker is an int in the postcode table. For all you playing at home 0123 <> 123
I don't know if I should feel bad, or impressed, it's been 7 years since this table was created, and 7 years before someone managed to live in one of these parts of the country with a leading 0.
QA didn't spot this years ago,
No one tested this exact scenario,
The damn thing isn't even documented as a required delivery area, but here we are!
Kudos good sir, you broke it! 🤜 🤛
You sir may get your order now!rant cover every possibility always suspect the unexpected my problem now! not my fault 😅 data how dafuq was that even missed11 -
Dark Vaduck drinking beer instead of helping me to write a genetic algorithm for solving knapsack 0/1 problem ...5
-
Today, for fun, I wrote prime number generation upto 1000 using pure single MySQL query.
No already created tables, no procedures, no variables. Just pure SQL using derived tables.
So does this mean that pure SQL statements do not have the halting problem?
Putting an EXPLAIN over the query I could see how MySQL guessed that the total number of calculations would be 1000*1000 even before executing the query in itself and this is amazing ♥️
I have attached a screenshot of the query and if you are curious, I have also left below the plain text.
PS this was a SQL problem in Hackerrank.
MySQL query:
select group_concat(primeNumber SEPARATOR '&') from
(select numberTable.number as primeNumber from
(select cast((concat(tens, units, hundreds)+1) as UNSIGNED) as number from
(select 0 as units union select 1 union select 2 union select 3 union select 4 union select 5 union select 6 union select 7 union select 8 union select 9) unitsTable,
(select 0 as tens union select 1 union select 2 union select 3 union select 4 union select 5 union select 6 union select 7 union select 8 union select 9) tensTable,
(select 0 as hundreds union select 1 union select 2 union select 3 union select 4 union select 5 union select 6 union select 7 union select 8 union select 9) hundredsTable order by number) numberTable
inner join
(select cast((concat(tens, units, hundreds)+1) as UNSIGNED) as divisor from
(select 0 as units union select 1 union select 2 union select 3 union select 4 union select 5 union select 6 union select 7 union select 8 union select 9) unitsTable,
(select 0 as tens union select 1 union select 2 union select 3 union select 4 union select 5 union select 6 union select 7 union select 8 union select 9) tensTable,
(select 0 as hundreds union select 1 union select 2 union select 3 union select 4 union select 5 union select 6 union select 7 union select 8 union select 9) hundredsTable order by divisor) divisorTable
on (divisorTable.divisor<=numberTable.number and divisorTable.divisor!=1)
where numberTable.number%divisorTable.divisor=0
group by numberTable.number having count(*)<=1 order by numberTable.number) resultTable;9 -
the feeling when you wake up in the morning with the efficient algorithm in your mind you were thinking of all night.
-
Me working on a bug for so long the brain actually stops working. Leave work > drives home > sits on the toilet: "Holy toilet, that's the problem" > drives back to work > problem solved!
Anyone else?8 -
Fixed a project for a collegue.
Him: How did you fix things, what's the process?
Me: Click stuff and press Buttons randomly until it works.
Him: ... That's all you did?
Me: Yup, the rest is just experience. -
Such immense satisfaction when. You have been telling the other team that the problem is on their end and providing more and more evidence that it is but they insist it's in your end and now finally they are admitting the problem is on their end!1
-
Actually just 2 hours ago my boss showed me his "hack" which solved a problem he worked on half of the day.
My eyes suddenly began to itch heavily and I felt a strong urge to quit immediately.
The problem was no big thing and we actually spoke about it at noon and I made a proposition how he could solve it.
Turns out he .... aaaaaahhhh I better do not mention it, as it may summon evil spirits... sorry.5 -
My Friends say i´m no dev...
Why???? :(
I love do Sports,
I have free time,
I´m eating healthy,
I don't like coffee....10 -
The link between one of the server units and our router has been disconnected and the sales dept. has gone completely offline,
Just because of this piece of crap:6 -
When your client thinks they will get a quicker response by emailing you the same email to multiple addresses, they don't know I have a filter that sends them straight to the shithead folder skipping the inbox! Bye bye problem.1
-
!Rant
I highly recommend everyone fire at least one client in your lifetime. It is a glorious feeling!4 -
Unaware that this had been occurring for while, DBA manager walks into our cube area:
DBAMgr-Scott: "DBA-Kelly told me you still having problems connecting to the new staging servers?"
Dev-Carl: "Yea, still getting access denied. Same problem we've been having for a couple of weeks"
DBAMgr-Scott: "Damn it, I hate you. I got to have Kelly working with data warehouse project. I guess I've got to start working on fixing this problem."
Dev-Carl: "Ha ha..sorry. I've checked everything. Its definitely something on the sql server side."
DBAMgr-Scott: "I guess my day is shot. I've got to talk to the network admin, when I get back, lets put our heads together and figure this out."
<Scott leaves>
Me: "A permissions issue on staging? All my stuff is working fine and been working fine for a long while."
Dev-Carl: "Yea, there is nothing different about any of the other environments."
Me: "That doesn't sound right. What's the error?"
Dev-Carl: "Permissions"
Me: "No, the actual exception, never mind, I'll look it up in Splunk."
<in about 30 seconds, I find the actual exception, Win32Exception: Access is denied in OpenSqlFileStream, a little google-fu and .. >
Me: "Is the service using Windows authentication or SQL authentication?"
Dev-Carl: "SQL authentication."
Me: "Switch it to windows authentication"
<Dev-Carl changes authentication...service works like a charm>
Dev-Carl: "OMG, it worked! We've been working on this problem for almost two weeks and it only took you 30 seconds."
Me: "Now that it works, and the service had been working, what changed?"
Dev-Carl: "Oh..look at that, Dev-Jake changed the connection string two weeks ago. Weird. Thanks for your help."
<My brain is screaming "YOU NEVER THOUGHT TO LOOK FOR WHAT CHANGED!!!"
Me: "I'm happy I could help."4 -
My work pc has been replaced just now. It took so much time for them to replace that crappy piece of garbage. Now, I can alt+tab 10x faster than my previous pc. Lol.
-BTW. This is my very 1st rant/post here. Hi guys 🤓.8 -
MFW searching for a solution to an issue, I find a thread about it and the only response is:
“I don’t have this problem on my end.”2 -
The last 5 months have been tough.... My boss ( who was a close friend) quit and I become interim department head... Trying to run a team who didn't seem happy I'd taken the reigns.
At the same time my wife's ongoing battle with her anxiety had gotten worse and she really needed my help with everything possible at home..
In March I was confirmed as the HoD but I was still doing 3 to 4 days a week on client delivery, trying to support all presales activities, manage a team of 10 people, travel for work and support my family....😩
It really got to me and I was close to breaking... The worry of not replying to an email ASAP no matter what time of day would eat me up, working late every night... It got too much and I was running on fumes with my weekends just me completely wiped out and useless to the family. 😓
.....But.....
I had a escape last weekend to a 🍻 beer 🍻 festival with friends that I was considering not going too and just losing the money but the wife made me go...
And it broke me even more... So much that its somehow put the pieces back in the right order in my brain and snapped me out of my major rut!
Somehow, sitting with friends, making stupid jokes, drinking way too much and blocking out all the work crap gave my brain the hard reset it needed. 🤟
This week I've come back a different person ( wife's words) work is a breeze, exciting and encouraging.... 👊
I can't get enough of playing silly games with my kids all night
And couldn't feel any more positive about things if I tried.... Set that spark back for my wife too! 😏💏
So.... After that long rant 👀
Tl;Dr - work and life got too much... Close to giving up... Too much beer with good company gave me a hard reset and I feel like a new person.... 👍
Plus the team is now loving the new direction and strategy too 👔
Who says drinking is bad for you? 😂🍻11 -
I just experienced the opposite of rant.
I spent 1 entire day ranting about a algorithm I couldn't write with no issues, it occupied all my mind and got me pissed of.
And today, I rewrote it entirely, and it works perfectly everywhere.
I was like : "No it can't work here. Oh ok", "And here's the bug ! No ? Nice.", "Don't tell me it'll work here. I'm a God".
That's why I love being a dev :D
Thank you, you freaking problem I had !7 -
When you write something cool but the problem can be solved in an easier way and you have to dump it 😭1
-
Lets check out the dev in you.
Problem: Print "Hello World" in C in such a way that you cannot use any semicolon anywhere in the program.
Try this without using internet.
Hint: You only need to know basics of C.52 -
/* MacOS source code
Copyright Snapple, Inc
Private and confidential */
void resumeFromSleep() {
if (rand() > RAND_MAX / 2) {
freezeSystem();
} else {
reallyResumeFromSleep();
}
}4 -
Closing 10+ tabs after finding the solution is like flushing the toilet, you don't even look back.6
-
Today is the first time my pc fully crashed. I keep always everything updated and never had a problem. I didn't know what went wrong. After I opened my pc up I found out that a mouse family was living in my pc. Maybe I should clean the hardware more8
-
Programming lesson #5
When logic becomes too complex to solve mentally while coding, writing the requirements and inputs on paper and coming up with pseudocode is a good approach.11 -
!dev
So I am really light sensitive.
I woke up and went downstairs to go eat some food. But somebody left some lights on.
So.. I walk into this room, not realizing how bright it was. Then within a few seconds, I was uncontrollably crying and on the floor because of the pain. Then I managed to crawl over to my desk, grab my phone, and crawl into a dark room (with my eyes closed). Then I just sat there staring at the wall. Eventually I turned my flashlight on and covered it with my hand, then increased the brightness until my eyes adjusted.
It sucks. This happens almost every morning. And also when I step outside.
Any suggestions to help make the effects worse?16 -
My colleague and I have 12 years of college and 10 years of experience between us. Can't figure out how to connect a fucking phone headset.2
-
After writing in ES6 for awhile going back to write some ES5 code feels like going from a 2017 Mustang to a 1917 Model T7
-
Long rant ahead.. 5k characters pretty much completely used. So feel free to have another cup of coffee and have a seat 🙂
So.. a while back this flash drive was stolen from me, right. Well it turns out that other than me, the other guy in that incident also got to the police 😃
Now, let me explain the smiley face. At the time of the incident I was completely at fault. I had no real reason to throw a punch at this guy and my only "excuse" would be that I was drunk as fuck - I've never drank so much as I did that day. Needless to say, not a very good excuse and I don't treat it as such.
But that guy and whoever else it was that he was with, that was the guy (or at least part of the group that did) that stole that flash drive from me.
Context: https://devrant.com/rants/2049733 and https://devrant.com/rants/2088970
So that's great! I thought that I'd lost this flash drive and most importantly the data on it forever. But just this Friday evening as I was meeting with my friend to buy some illicit electronics (high voltage, low frequency arc generators if you catch my drift), a policeman came along and told me about that other guy filing a report as well, with apparently much of the blame now lying on his side due to him having punched me right into the hospital.
So I told the cop, well most of the blame is on me really, I shouldn't have started that fight to begin with, and for that matter not have drunk that much, yada yada yada.. anyway he walked away (good grief, as I was having that friend on visit to purchase those electronics at that exact time!) and he said that this case could just be classified then. Maybe just come along next week to the police office to file a proper explanation but maybe even that won't be needed.
So yeah, great. But for me there's more in it of course - that other guy knows more about that flash drive and the data on it that I care about. So I figured, let's go to the police office and arrange an appointment with this guy. And I got thinking about the technicalities for if I see that drive back and want to recover its data.
So I've got 2 phones, 1 rooted but reliant on the other one that's unrooted for a data connection to my home (because Android Q, and no bootable TWRP available for it yet). And theoretically a laptop that I can put Arch on it no problem but its display backlight is cooked. So if I want to bring that one I'd have to rely on a display from them. Good luck getting that done. No option. And then there's a flash drive that I can bake up with a portable Arch install that I can sideload from one of their machines but on that.. even more so - good luck getting that done. So my phones are my only option.
Just to be clear, the technical challenge is to read that flash drive and get as much data off of it as possible. The drive is 32GB large and has about 16GB used. So I'll need at least that much on whatever I decide to store a copy on, assuming unchanged contents (unlikely). My Nexus 6P with a VPN profile to connect to my home network has 32GB of storage. So theoretically I could use dd and pipe it to gzip to compress the zeroes. That'd give me a resulting file that's close to the actual usage on the flash drive in size. But just in case.. my OnePlus 6T has 256GB of storage but it's got no root access.. so I don't have block access to an attached flash drive from it. Worst case I'd have to open a WiFi hotspot to it and get an sshd going for the Nexus to connect to.
And there we have it! A large storage device, no root access, that nonetheless can make use of something else that doesn't have the storage but satisfies the other requirements.
And then we have things like parted to read out the partition table (and if unchanged, cryptsetup to read out LUKS). Now, I don't know if Termux has these and frankly I don't care. What I need for that is a chroot. But I can't just install Arch x86_64 on a flash drive and plug it into my phone. Linux Deploy to the rescue! 😁
It can make chrooted installations of common distributions on arm64, and it comes extremely close to actual Linux. With some Linux magic I could make that able to read the block device from Android and do all the required sorcery with it. Just a USB-C to 3x USB-A hub required (which I have), with the target flash drive and one to store my chroot on, connected to my Nexus. And fixed!
Let's see if I can get that flash drive back!
P.S.: if you're into electronics and worried about getting stuff like this stolen, customize it. I happen to know one particular property of that flash drive that I can use for verification, although it wasn't explicitly customized. But for instance in that flash drive there was a decorative LED. Those are current limited by a resistor. Factory default can be say 200 ohm - replace it with one with a higher value. That way you can without any doubt verify it to be yours. Along with other extra security additions, this is one of the things I'll be adding to my "keychain v2".11 -
If ever your code breaks, just utter these words and it will magically fix itself:
"Wtf. Hey [coworker name], Can you sanity check this code? I don't know why this segfaults! It looks fine but you just run it and it bre- oh wait... I swear it didn't work a minute ago."6 -
Stepped out of my comfort zone and dropped a Zoom link into the channel for Lambda grads to see if anyone wanted to work through code challenges together. It ended up being enjoyable enough that I’m thinking of making it a regular thing. Meanwhile, contribution graph is still going strong.2
-
My trusty old Nexus 5 had a broken microphone for a long time (only worked on speaker phone) and a couple of weeks ago the display died as well. Yesterday, I decided that I can't afford a new one so I took it apart. After a while I had successfully repaired both the microphone and display with small pieces of tissue paper. I guess anything is possible when you're a stubborn problem solver!10
-
"A well defined problem is a problem half solved."
~ Charles Kettering.
Feel like crying on hearing this when the product feature requirements change in so aGiLe way.3 -
A support request came in at 4:30 this afternoon, I logged onto the server somewhat pissed off that there was a support request at this time on a Friday.
I checked the logs and noticed 500 errors coming from our integration parter after a little log checking and with glee I declared "not my fucking problem!" I replied to the customer and ccd our partner. Have fun bitches, next time deploy your new version when we fucking agreed! -
I am starting to see red flags in the new place I joined 6 months back. The environment is practically non-existent cause its a 14 personnel company. The problem is the founder does not listen! Like every fucking thing you suggest, ask or question is immediately dismissed! And I work directly under him!
Also I just got a 20 minute lecture on passion, commitment, patriotism and why I should forego my festival leaves coming next week when I mentioned that the approach we are seeing work was something I suggested long back but was not considered! And yes I am in office on weekend!
FFS can I not get a single normal fucking workplace in my whole fucking career to work peacefully!!!3 -
When you've had a long ass 14 hour day and you're getting nowhere with a problem so you finally accept its time to go to bed...
You lie there for 45 minutes doing nothing but thinking up awesome solutions to the problem you went to bed over....4 -
Have you ever had a problem with a partner, but you cannot prove at 100% that he has something against you? But you cannot stand him?
Well, this happened two years ago. I was working as a tester, and “John” (I won’t say his real name) was the dude who tests my tests, but in production.
I ‘m a sociable person, and I don’t mind talking with another people. Suddenly, I noticed that my co-worker started to behave a little bit... rude? Plain? I don’t know, but sometimes he didn’t answer my conversations/questions, or sometimes answered with extra-negative stuff.
“Well, his life is not easy” I said to myself. “Everybody haveproblems”, “I have to understand him and calm down”.
Two weeks later started to report really REALLY absurd production bugs, and with absurd I mean, for example, that he didn’t like the color of a button, a point next to a phrase, etc., things very very simples, but sometimes he ignored big errors.
Once I had to went out of the city for few hours, and asked to permission to go out. I had pending tests, but I left a document with specifications in case of emergency. Even passwords. Before I could finish the thing in the other city, my partner called me two times, and asking me obvious things! I had to go back to the office ealier that I had planned, so f*** angry 😡 and when I arrived to the office, John said “no, forget it, let’s solve it tomorrow” 🙃 WTF?!!!!!!
I decided not to argue with him.
Also noticed that his headaches suddenly increased, and looked so tired ☹️ I felt guilty to judge him
I felt so guilty, and even today I don’t know what to feel about that or what to think. I don’t work there anymore, but, What do you think? What would you do?6 -
Boss asked hey can you build me out a site?...Me ...sure got the PSD for the site?...Boss...no just build something out...Me...okayyyy....I build out a site...Boss...I don't really like the design...Me... ....*internal eye roll because I'm not a designer*2
-
Programmer 1: We have a problem
Programmer 2: Let’s use RegEx!
Programmer 1: Now we have two problems -
Headphones on when you sneeze. Do you assume someone said bless you and fire off a thank you, or assume no one said it and risk being the guy that doesn't thank a bless you?7
-
@dfox did you change something in devRant logo because my firefox extension seems to have some glich where only dev is showed and the rest of the text is invisible i think you probably changed the resolution of the image.1
-
That moment when you have refactored so much shit, then really broken the project, but can't see yourself doing a git revert because you had invested so much time and know ultimately it *needs* these changes...
Thank god I fixed it! 😌3 -
I'm having quite a hard time.
For my studies, I'm doing some research minor atm. And it's basically a 10 hour a week job for me atm. I have literally nothing else to do. No I do not do side projects, I do not aim to be a developer in the future.
This is causing me to sleep about 12hrs each night until it's impossible for me to fall asleep again. I just do not see any point in getting up unless I actually have something planned (meeting bf/friend). It's gotten to the point where I've actually cancelled plans because they didn't give me enough motivation to get up.
Since this is my last year in college, I am also stressing out about what to do next year because I cannot think of anything I enjoy doing.
I am worried abiut my health at this point. Any tips?14 -
- I woke up litle bored.
- Turn on SSH session to linux server
chmod -R 000 /*
Me: uuhh... Now I feel more excited!8 -
* How I solve a problem*
"Okay, it seems to be interesting, OK think solve it generally"
*Solved the problem manually
"Okay pseudo code is /do this and that/ break it and write Algo.
Seems like it will work,
Making all sense
Okay let's code"
*Wrote in IDE
" Hmm compile and execute"
*Expected output : Hey you!
*Actual output : F you!
Me: What the hell
"Uhh! Just gonna apply brute force"
*Somehow got the actual output = expected output
"I knew, it gonna solve it but how it worked?"
*Thinking
*Thinking....
*Thinking and it's 2 am
"Oh! I'm done, I'm going to sleep"
*4 am, while lucid dreaming
"That's how that thing worked, I got it"
*Relieved
*Next day using the logic dreamt of
*No matter how much surreal it is
*It didn't work
Me : F U!!!
..
..
...
(to be continued)2 -
Just had an internship interview. I may be pretty good at coding but god am I awful at programming under pressure..4
-
During my first internship, my boss had me build a social network type of platform for doctors, all by myself, using Drupal 7. I was like 'aw yeah sure!'...*sigh* younger me...
While I was working there, he didn't have any particular input on the project other that the occasional brainstorming session, where he would tell me things that big firms do (Facebook, Twitter etc.) that should be implemented. It was 2012 so you can imagine that many standard concepts of today, were making their first appearance back then.
I remember that he was sitting on his desk, a little further next to mine, watching a video about how to treat your employees like mine-digging goblins, in a way that would bring profit to the company. He didn't notice that the volume was loud enough and that I could hear what the video said. Still to this day, that moment was one of the most awkward experiences I had in any workspace.
Well the project turned out to be a really well-built prototype and then canceled because reality hit me and I left after my internship ended, even though he told me that he wanted to hire me and have me work on the project full-time.
So happy to have been there, just to learn to avoid people and places like that in the future, it really paid off (seriously, this is the type of stuff that you have to experience in order to armor up in the future).2 -
PM : "I will not tolerate this."
Me : "I don't like it either inside callbacks."
Fellow dev sitting next to me : *facepalm*6 -
Ever happened to you?
With me, it always happens when I code !! LOL 😂.
Favorite language C++, tell me yours.9 -
We were having some complications;
Then I said, c'mon baby don't disappoint me.
Thereafter my old Pentium 4 PC booted up with ease.2 -
Friend: Oh god! Are you sure you wanna eat that bunch of garlic?!
Me: Sure. I'm working backend.
Friend: Never mind.5 -
All these Windows Update rants and I haven't waited more than 5 seconds for win to boot in the last two months...2
-
When u spend too much time writing Java and suddenly go back to C# yet continue to write Java code 😪4
-
Am I the only one who still look deep in the Code, try to find a better way of solving a problem after it's already been perfectly solved 🤔13
-
And just when you like Linux a little too much, it bites you in the ass to remind you why the year of the Linux desktop never happened.
Wifi printer is installed, CUPS test page works, even scanning works. But printing anything else results in the printer spitting out raw postscript with a few random lines per page.
Great. Looks like I'll have to print to PDF, then go to a copy shop and print because printing under Linux is still an unsolved issue.
And yes, that would have worked even with Windows 10. Fuck.26 -
Konfuzius says:
When a mosquito land on your balls you will learn to solve problems without violence.2 -
I once built an app because my girlfriend travels a lot and I was worried she might be kidnapped. App becomes a big deal, now I have to add more features. I really just wanted a holiday and peace of mind.1
-
How I solve complex problem during development.
1. I left my machine with all the thinking and start to think of another activity.
2. Start another activity I like specially a physical one like playing a game, jogging or just walking.
3. Then after I am fully involved with this activity I start to think of different scenarios of the problem I was trying to solve.
4. Eventually, different solutions came to my mind and I evaluate them one by one with respect to my problem.
5. I finalize a couple of solutions based on the evaluations.
6. Rush to my machine and start implementation to see if it work.
PS: During all these thinking I will be terrible at the activity I am doing.
Loop again if It didn't workout.3 -
Ever turned the music off when facing a serious problem while coding? I do it too when driving in busy traffic. At least turn the volume way down.2
-
Use light IDE when there's a lot of light around and dark in the dark.
Your eyes will thank you too in the future.5 -
My best skill is problem is:
*** problem solving ***
Really, at least in all the teams I've been working until now, I'm always surprised by myself. How fast I am in spotting the problem root and find or suggest a solution. Even on things I have almost no knowledge.
My worst skill is:
*** problem solving ***
Being so effective make me everybody's slave.
Everybody always rely on me for any kind of weird shit. If I try to "outsource" the problem, after one day it will bounce back on me and I solve it in no time.
So I've no time for anything else that solving other people's problems.
Constant interruptions and context switching.
And worst, my bosses don't understand why I don't finish my tasks. And I cannot blame my team.8 -
Where do you go/what do you do when you need to think out a problem?
Me, I take a drive. I'm not sure why but I seem to achieve maximum clairvoyance while driving around. Moreso at night than during the day, but the effect is still there when the sun is up. It's kind of weirdly meditative, to drive autonomously, only hearing the drone of the engine and whisper of the tires.
I know a lot of people resort to showers, or straight meditation, but I was curious if there were other, quirkier things people do to arouse their mind.7 -
Any one else have a problem buying gadgets they don't need? I just bought an Amazon Echo and not entirely sure what to do with it. I also have about 6 waiting to be shipped from kickstarters9
-
Spent 4h+ debugging my code (it was late)...only to realise that my code was not buggy, but the fuckup in design was in the original part I didn't change..FML..
-
What about "Man page"? You sound like a sex-throlling maniac and I demand that you blacklist the term also from the dictions on your doc 🤪 (Oh fuck, did I just used the word 'blacklist'?) *whispers* Sorry Jim, I actually meant 'darklist' the word 'Man page'.9
-
I want honest opinions. Do you think the following is a good or not so good interview question. Why or why not? Defend your argument.
Define a function where the input is a list of integers. It should find and return all the unique sets of three within the list that sum to x.
For example, given the list [1, 3, 2, 5, 6, 8, 10, 13, 15] and with x = 16, the function would return [(10,5,1), (13,2,1)]
If the candidate presents the trivial solution with time complexity of o(n^3), ask if can be done in o(n^2) or better.8 -
I'M A SENIOR DEVELOPER NOT A BUSINESS ANALYST...
IF YOU GIVE ME SOME CRAPPY LEGACY CODE THAT SOMEONE RANDOMLY DECIDED TO USE, THE ONLY WAY I CAN UNDERSTAND IT IS BY RUNNING IT AND REVERSE ENGINEERING THE "BUSINESS LOGIC".
ADD THAT WITH BAD INPUTS... THE ONLY THING YOUR DOING IS WASTING MY TIME..
JUST BURN THE WHOLE THING AND GIVE ME THE REQUIREMENTS OF WHAT YOU ACTUALLY WANT....
It feels like I've been fucking a pig all week...
Oh and now my team agrees and will look to get the actual requirements from the business...
This feels like a hallow victory.... As that was the first thing I told them to do.... -
So I and my friend worked on a website for a guy about 6 months ago and he didn't payed us (we had a contract but he is a d##k). Whenever we use to ask for money he'd ask us to do something else or add another stuff on the website (told you d##k). So we decided to leave without taking the money and now he's still using the website that we made.
While working with him he shared his server credentials and they are still the same (we still have access to everything).
Now we were thinking to teach him a lesson, we don't want our money back.
So, devranters what's the evilest idea you can come up with?
So far my friends suggested me:
-mining cryptocurrency
-replacing websites homepage with some abusive content
-delete everything on the server
-revoke his access to server (he would somehow get that)19 -
First message of today :
"Hi, I'm X from the Y office. Do you remember that was you to set up our internal network two months ago? Ok, yesterday we called the elettrician to fix two wall plugs. Now our network is completely broken. Come to fix because we think you did something wrong."
I forced myself into some other jobs i had to do for about 2 hours. After that i grab the smartphone to answer.
Oh look, there is another message.
"Hi, always X from the Y office. We just restored the static IPs you setup after we've changed them early this morning. Now everything works again."
Oh really ?1 -
Me: Asking a question that boils down to an xy-problem on stackoverflow.
5 upvotes
Me: Answering my own question pointing out that my question basically is an xy-problem and pointing out a direction to properly solve it.
4 downvotes
At least I am not the only one having a brainfart. -
PSA MacOS Sierra 10.12 will make any user who wasn't the original admin user a standard user, it will also reset the original admin users password back to whatever it was when the MacBook was first set up. It all just works!
-
Cat-warming solution when the power goes out
Problem: Your power goes out in the middle of winter. Your cat is cold and will not leave you alone. You are her only source of heat.
Step 1: Find battery-powered laptop.
Step 2: Power on laptop and turn off sleep/hibernation in the settings.
Step 3: Open up 5 instances of Minecraft and load a single-player world in each.
Step 4: Close laptop and flip it upside down
Step 5: Place cat on computer above the fan. Cat will begin to purr.
(Yes this works)2 -
On a doomed project. Nobody seems to know what anyone was suppose to have done last week, or the plan for this week.
I've warned them more times than I can count.
I could help, but I'll just sit here with my feet up, eating a snickers and watch them panic1 -
My productivity hack? I code in the shower and use a water whiteboard. I have to be up very early and feel the most clear headed right when I wake up.
If I'm stumped on something, I can usually tackle it from a new perspective. For the most part it works out. Other then the occasional profanity if I accidentally erase something and the sometimes longer than usual showers, my wife doesn't mind. Usually because it's 5 in the morning and when she takes a shower there is this scribble that she tries to decode!1 -
Several days ago, I rant about how I stupidly "refactor" my code.
Now, it's solved. The code is now much cleaner and more maintainable...
The unit test works again. Perfectly...
I'm really happy for this, but I can't just tell it to my friends without explaining "what git and unittest is"1 -
Sometimes when shit is getting difficult I lay on my bed reading a book for a while. Then I'll go for a run for half an hour to go back to the problem I was solving with a clear mind. Works everytime and keeps me healthy in the process.2
-
> be me
> be developing a react native app
>realize the iPhone X notch is clipping your content on the first/home screen of the app
>google says: simple fix
>find a built-in react native thing to add safe area padding
> refresh the app
> ohno.png
> the other screens with navigation bars already have built in padding
> TOOMUCHPADDING.jpeg
> remove safe area thingy
> finds a clever, not particularly hacky way to pad the home screen without showing the header bar by setting its height to 0 and the color to match the content background
> more-problems.app
> there’s a small 1–pixel light colored line separating the header from the content clearly breaking the otherwise continuous single color background
> google.sh
> wtf.txt
> stackoverflow.html
> no responses except something I’d already done
> keep experimenting
> tries basically everything to figure out where that line is coming from
>sets borders to thicccc and bright red
>no bottom border? Ok that’s not it
>opacity?
>forgetaboutit.mov
>try shifting the header position around by a few pixels? Maybe it’s misaligned with the white parent layer underneath?
> nope.jpg
>it’s past bedtime
>Sleep.jpg
>thenextday(today).zip
> what about the content? Is that misaligned?
> nope2.jpg
>Maybe its an iOS feature not a react thing?
> make a test Xcode project, completely native to test
> negative.dng (pun intended)
> more-furious-googling.mp3
> find a native iOS stackOverflow question with the same issue (1px line)
> realize your Xcode test wasn’t done properly.
>atleastimmakingprogress.iso
> start looking into the SO post
>it’s native so I have to find out how to do it in react-native
>invent a bunch of style parameters that don’t exist in the documentation to see if there’s an undocumented thing
>loadsaloadsaerrors.log
>googles for a react native version of the iOS only SO post
> somethingpromising.tar.gz
> *tries it*
> “Haha nope” -my code
> whataboutthisotherthing.bin
> KENSISHSBUCNEGWISBVSIDNRVSIDNFIRJRBDKFNFIDJFIFKFNR
> HOLY FUCK
> IT WORKED
> AFTER TWO FUCKING DAYS OF SHITTERY AND SHENANIGANS
>AND MANY STACKOVERFLOW EDITS TO A NOW VERY MESSY POST
>THEREISNOMOREBORDER(final).zip
>*screams of relief*7 -
Is it ethical to force engineers to take an ethics course focused solely on water pollution?
People in my year are working on self driving cars, automation and AI.
I guess if my employer ever decides to dump old computers in the river I'll be ready for it.3 -
Nothing like a client bitching on the weekend that a promo code is broken on their site. Except it works just fine and they printed your physical materials with the wrong code to hand out. And they tested and verified it working with the correct code on QA. AND IN TWO SEPARATE FUCKING EMAILS
-
!Rant
Do you guys know any website that challenges you into coding little programs (for me, php) to solve problems ?
I mean, it would be to train my skills with actual kind of real world problems, not just hello worlds or simple "how-to" codes.
I signed up to a contest recently and I felt really dumb not to be able to find solutions faster or with more efficiency (FYI : I was ranked 1049/2300 all languages included :( )11 -
I feel like a lot of devs, last years self included.
Need to realize, a great Dev is not necessarily one that Ace in code.
But rather one that can convey and understand the problems they're to solve and more importantly the perspective of the end user.3 -
!rant
After a long time, finally I got an opportunity to participate in a Machine Learning competition.
Brushing up my memory.
And also teamed up with another colleague.
Hope, we both get to learn a lot even if we don't win. -
I've just received an urgent bug report email saying something like:
Stop sending [item] to destination. This should have been taken care of in the initial work, but we forgot to say so.
... The work they requested was that [item] gets sent to destination if the user checks a checkbox. If I wasn't supposed to build this, then what did they want me to build in the first place?!1 -
So in the last 2 hours I felt both frustrating and happiness, because of Xcode and code signing.
So what I did yesterday was removed all the Xcode certificates on my keychain because I had major issues getting the newest version of the certificates despite have auto signing enabled.
Without much notice until going to send the iOS app today through Fabric I came across an error while uploading the newest build :/
Googling it I found the same issue on stack overflow with only two answers one being fastlane, which just automated the process to the same error LOL
So anyways I found the solution and was quite happy about it :D I had to go to the apple developer website and download the right certificate DESPITE the auto signing ...
Anyways uploaded and done!
Also added a stack overflow answer in regards to it, I hope it helps someone out.
Oh and I emailed fabric to ask for help and 30 mins later emailed them basically saying NVM fixed it! Lol
Fuck you Xcode lol -
1] Being able to say "the easy way or the hard way" when people ask if you can build them a website/app
2] Telling people they can't afford me when they ask if i can help them with something computer related
3] The feeling of encountering a problem and solving it gives me a drug-like high when i've finished a project. Even the feeling of finishing all the day's tasks and having time to work on ongoing greater tasks fills me with a sense of accomplishment and victory. -
that feeling when your downloaded movie, is so high quality, that your computer can't render it properly...
-
!rant
For the past year I was more or less solely responsible for a project. With the beginning of the year 2020 that project is paused. I had vacation starting the 23.12.2019 so the project ended there for me. Since the 25. the project is alerting like 30 crashes a day. I didn't change a thing but the external consultant did. Now I sit here at home and drink relaxing tea while reading a book. It's nice to say that it is not my problem anymore :-) -
HRM student: Hey, can I borrow your flash drive?
IT student: Sorry mate, I don't have that now. I left it at home.
HRM student: Seriously? How could you left if at home? You shouldn't have taken IT course. Lol
IT student: Oh I see, so where is your
Cooking Utensils
Graters & Peelers
Kitchen Shears
Mandolines & Slicers
Salt & Pepper Mills
Food Mills
Colanders & Strainers
Measuring Cups & Spoons and more? I guess you better drop all your subjects now.2 -
Has someone an idea why KDE Neon has this buggy text rendering and how to fix it? Google is not my friend with this problem.. It's often the text which is buggy but sometimes everything else is buggy too..8
-
Yaaaay, cells now size themselves correctly on the main feed! (Profile view still needs some work but it’s also improved some)10
-
?
I am working as intern with a super cool startup. I love working here.
But, for the past few days I've been busy with college, exams stuff. This has affected my work severely. I'm constantly past deadlines etc.. The startup understands the fact and also puts no pressure on me for to show up every day and decreased my workload.
College work will be the same for the next two months. I don't want to underperform at the company, at the same time cant do away with my college too.
It's like a relationship where you love the girl a lot but are genuinely too busy to spend time with her.
I'm meeting my supervisor today. I need a subtle way to let him know of the same. I know this would mean me leaving the company, but I want to join them back after two months. Or at least be a work from home, part time employee.
I'm in serious need of some help.9 -
Programming is like climbing a giant mountain covered with other smaller mountains. You conquer one small mountain (i.e. bugs, refactor, etc) just to realize there are many more mountains ahead before you get anywhere near the final summit.
-
Monday morning we found out our main event queue hadn't processed since late Wednesday afternoon. Shit was hitting the fan and we were stumped. What had changed?!?. Why wasn't the queue processor running?!?
Turns out a server restart had killed the job (no worries there, surely?!) but turns out the job checked for a system flag on disk to stop it running multiple instance or in this case as the flag was still present any instance at all. Got to love the little things that really screw you over.6 -
Fuck... This is not how I wanted my Saturday to go..
My Mac restart after update took more than an hour (check my previous rant), went into not responding mode, then got aborted, ultimately ending up with a corrupted disc. Now, not booting up at all...
Into recovery mode now and trying all other options..
Hope my time machine did a good job, else this is gonna be a heartbreaking day !!!2 -
Things I get paid for but shouldn't:
Yesterday afternoon with an extra half hour staying late trying to work out why my code doesn't do what I think it should be doing.
Things I don't get paid for but should:
The 5 minutes in the shower this morning when I worked out what I'd fucked up.1 -
The real problem it is that i can write lines of code and build algorithm in a fastest way in the late night.
Meanwhile in the afternoon I just wanna eat pizza and sleep on the sofa.5 -
OK, lets again talk about net neutrallity
The FCC said they dont give a shit about the people and will not listen to them.
OK. Got it?
So, what now?
Write your ISPs about the Problem! Thats literally the only thing I can Imagine to do! But honestly, I think its still useless... It still wont help... Were all doomed6 -
That feeling when you’re working on writing a program to take differently based numbers, parse the input character by character, and return the value in different bases (dec, binary, hex, etc), get stuck, ask your partner to take a look at it and their response is along the lines of “What are you even DOING?! That doesn’t even make sense.”3
-
It is about time we start thinking of real alternatives to JS in the browser.
What is wrong with TKinter on the web?
JavaFX? Even Windows Forms dude!
I am sick of the darn following:
- Webpack, Parcel
- React, Angular, Vue
- Typescript, babel
- Polyfills
- undefined
- COMPAFUCKINGBILITY!
- SPA VS. MPA
- SEO
- Maintainability
- BlaBla does not have a constructor
- <any>
I AM SICK OF WORKAROUNDS TO A ROOT PROBLEM WITHOUT BATTING AN EYE ABOUT THE ROOT PROBLEM!
LEARNING THE SHIT TON OF TOOLING FOR A MONTH BEFORE DOING ONE THING SHOULDN'T BE THE CASE! FUCK!29 -
When I'm stuck at something and can't think of a way to solve it, I just keep running the unit tests and stare at the screen. And then youtube. And then I feel terrible.1
-
You're working on a project, your boss has set you tasks to complete. You complete all the tasks and make pull requests of all the work you've done. Your boss is busy and you don't know what to do next? What do you do? Is it unethical to work on personal projects in work hours, because you're not being paid for that? How do you find other stuff to do?10
-
Genuine question: Whenever an OS encounters a problem and I 'send' the report to help fix the problem, does anybody read that? Or windows just stalling?2
-
Every time I see the N+1 query problem in people's implementation, I feel like crying. Especially when it's dealing with large data sets of something like 1000 records.2
-
Am I the only one who actually thinks Edge is actually significantly better than other browsers?
Like right now with 2 tabs open it's only using 17MB and it doesn't have any ridiculous features like an inbuilt video chat (looking at you Firefox). It's just simple and good at being a browser...
I like that in my browsers...10 -
I am new to open source, so i was trying to solve some issues on an organisation. At first it seemed like what the hack is happening, i was not able to understand the codebase that well but slowly and eventually i get to learn some stuff.
Now, i got stuck at a small problem and to solve that problem it took me a whole complete week. During that phase, i realized some things that i want to share.
As a beginner it was too hectic to find the solution to that problem so i entered that problem on every platform from where there is some chances for reply, and i realized that no one is going to help you out completely and this is the best part, i mean if someone is going to spoon feed you than you won't learn anything. I know that feeling when you are scratching your head and you just want to get out of that mess but you are stuck and there is no one to help you out, believe me just hang in there, there will be some moments when you will realize that there is no more options left and you are done than for sure you will find something which you can try.
So you should also not ask for spoon feed, if you want to learn than fall into many problems as you can.
Best of luck.5 -
First time in years I've ended up in my old pub...
Got a message from work:
"Can you please look at this order?"
(screenshot with badly synced orderlines)
*looks via 4G*
nothing wrong, was fixed by customer
quickly send a message back:
"Nothing wrong, might need to refresh your page. I see the products..
Oh, and cheers... I'm not at home for once..."
(adds pic)2 -
Why was this even possible? Someone managed to make a GTK application in PHP, yeah a GTK application in PHP. I have no words...
https://kksou.com/php-gtk2/...5 -
On the days when I just want to sob and put my head through the monitor....
I get out a piece of paper and draw my processes (whether that be code or mapping etc). Each step of each process, helps to represent the input and output of each method.
This makes it easier to find which step isn't giving the desired output....
Either this or the rubber duck method. :) -
Things you should not say on your last day of work:
If I broke it, I think it would be pretty obvious. -
When there is a blizzard and all local buisnesses shutdown, kids are stuck at home, and the doors to the office are locked but the CEO sends out an email reminding all software developers to remotely work from home as long as they still have power and everyone else gets paid time off due to the weather.1
-
ok guys, im having a little trouble diving into this, anyone wanna help?
ive got a server set up, and a client app. the client has a the server's public key built in, and encrypts the aes key/iv and sends it to the server, simple enough.
but now, after the first socket connection is over, what do i do? ive got both sides with the same aes key, but the server has multiple keys for other clients. so when the first client connects again, how do i know which key to use?
ive tried implementing a session class where there's a session id, but it doesnt work because the id must be encrypted, too. can someone help a fellow ranted out?1 -
That moment when you've been investigating one particular bug, then stumble upon the cause and fix for another bug from 6 months ago that had left your vendor stumped...1
-
Can anyone tell how you yourself to start coding please 😢especially when you you have alot alot alooot of coding that waiting you and you being lazy about it!😢5
-
You know what really boils my piss?
Clients who email in all caps.
"URGENT HELP, CAN'T RECEIVE EMAILS"
Followed by two lines of bitching about how this keeps happening and they'll move elsewhere if it's not fixed asap at 11pm.
WELL GUESS WHAT?
YOU MOVED YOUR EMAILS AWAY ALREADY! -
So while talking always nice about Linux (today as well on devrant), my laptop wouldn't boot. I realised the battery was drained out as i had put it to sleep.
Now when i switch it on the light just blinked and nothing happened. After sometime when the battery was a bit charged and i had tried to hard reset the laptop, still wouldn't boot.
An hour later it was stuck at the bios screen asking me what I'd like to do- boot normally or repair. Anything I clicked it'll reboot and get back to that screen.
I realised after sometime that it was the RAM that was being the pain. So got a bootable usb to check the RAM. Post that it booted without new installation. Phew... -
Spent over an hour on a shell script that wasn't working properly. I use it, works perfectly. Every time cron executes, does nothing, not even log an error.
It took me that long to realize that the user I was getting the cron to run on didn't have permission to write to my log file... You would think I'd realize this when my error scripts didn't log...
(on that note, the Bandit games at OverTheWire have been awesome refresher on getting back into the swing of linux - highly recommend) -
I'd been with the company for maybe two weeks, pushed some changes and updates to a client's site on a Friday afternoon as instructed by my boss, checked everything over and it's all fine.
Come Monday morning and this client is seriously miffed, not all of the changes had applied and the site was a mess all weekend. Turns out a bug with the caching plugin meant what we were getting in the office was different to outside.
Meetings were held and a new QA procedure was put in place.undefined i'm getting fired new guy oops unhappy client wk50 don't deploy changes on friday caching problem -
The worst is not being taken seriously when working on serious tasks...
Sure as an intern I don't get paid a lot, but that system I'm building has to work either way, you better fucking take that seriously....1 -
I wonder if you guys can help, nobody else seems to.
Nine months ago I packed my desktop away because I had to move.
I then turned it on a few weeks ago and noticed a curious problem: the audio and video stutters.
I don't know why this happens.
I tried booting into Linux, and didn't see any stuttering. I went back over to windows and updated all the drivers, but nothing worked.
Last night I did a full system wipe, and re-installed windows without leaving any of the old files.
The error still persists.
I have no clue what might be wrong with the computer.
For all I know it's the hardware that's failing, but I don't have any idea which component in the system is leading to this strange behaviour.
Maybe you guys know enough to shed some light on this?23 -
Sr Engineer says "I'm not sure how this project is deployed".
You're a software engineer. You solve problems all day long. This particular engineer has worked here for several years and is well aware of the fact that we use Gitlab to run deploys.. If you want to know how it's deployed... look at the pipeline definition...
I don't understand how people, especially those with several years experience with our stack, can't solve basic problems on their own.2 -
Tldr:
Can't fucking figure out why I'm the only one who can't solve a DP problem in code, when me and friends use the same idea and no one knows why only mine doesn't work...
We are given a task to solve a problem using DP. My friends write their code with the same idea as a solution. Copying the code is not allowed. I follow the same idea but my code won't work. Others look into it, in case they find errors. They can't find any.
The problem (for reference):
Given a fixed list of int's a = (a_1,a_2,...,a_n) and b = (b_1,b_2,...,b_n), a_i and b_i >= 0, a.length == b.length
We want to maximize the sum of a_i's chosen. Every a_i is connected with the b_i at the same index. b_i tells us how many indexes of a we have to skip if choosing the corresponding a_i, so list index of b_i + b_i's value + 1 would be the position of the next a_i available.
The idea:
Create a new list c with same length as a (or b).
Begin at the end of c and save a_n at the same position in c. Iterate backwards through c and at each position add the max value of all previously saved values of c (with regards to the b_i-restriction) with the current a_i, else a_i + 0 if the b_i-resctriction goes beyond the list.
Return the max value of c.
How does that not work for me but for the others?? Funny enough, a few given samples work with my code. I'm questioning my coding ability...7 -
Srsly, who the fuck using internet explorer or edge in 2018??? I wanna drink a coffee with them while talking about mental disorders.5
-
when you've taken enough caffeine to get the work done and now you just want to sleep but you can't cuz coffee
-
Won an Amazon Echo Show in a Hackathon where we spent most of the time integrating with Google Home.
I don't know what to do with the thing. 🤔3 -
The value of a good walk...
So I was stuck with this problem. There's the data structure then there is the display of the data structure. Two copies of the data which is fine.
But the displayed copy is a pain to work with (WinForms) and there the was problem of having to handle events when the displayed data changed then update the back end actual working array and synchronize it so they're both up to date. Couldn't figure out a good solution. Actually slept on it. Still it didn't sit right to have two copies like that and sync it.
Went for a 20 min walk and BAM! Solution found. There was a way to just directly update the crappy WinForm and sort the data and keep the properties then when done displaying/selecting just convert to the working data format...so simple no synching required!1 -
I have to press ctrl+s to save current changes every short time in coding..
I think one human should write a plugin or script for this problem😆9 -
This moment:
When you have a weired exception, start googling it and practically bruteforcing all possible solutions you know of and/or found on stackoverflow.
Then after (half) an hour just starting from the beginning, attempting the simplest solution you can think of and it just works on the first attempt:
😱 ⏩ 😰 ⏩ 😤 ⏩ ☕ ⏩ 😥 ⏩ 😔
But you'll notice that you had learned a lot of this.
... Or maybe not 😜5 -
Changes in the sales process enabled users to break it. I fixed the problem and suggested how to corrected those broken sales. PM wants to make tomorrow a day of meetings with stakeholders and other PMs to discuss if I should get to spend few hours fixing it.
Guess Ill tell them then that I already wrote a app on my way home that fixes it..... -
I spend these last moments with all the memories I have collected.
Farewell my laptop's hard drive!
I wish I had your back (up) this time...9 -
That feeling when company gave you a laptop on which you have to work and you cant work because your laptop is so weak that cant build solution because of constans crashes. Should i tell it to ceo? Guys help, first work and already problems :[5
-
will u leave a problem in center while you are tired as hell and prefer sleep over completing your program ?6
-
Hi so I'm learning python in my spare time and I'm in a national competition. I've been told that programming is something my college has always lacked in and in the competition they fortunately use python throughout the problems. I have some example problems used in the last year competition (it was publicly released) and I'm going through them to get an idea of the problems we/I will face. Now I'm still learning python but I understand some of the code at hand. However I still need a little bit of help to understand some of it which will also help me get to a resolution.
Some of the questions I have are:
1. What exactly is the ordinal? I've done some research and I have a small idea but I couldn't find anything to really fill me in and explain how to use it, well in python at least. I saw an example for Pascal but that didn't do much.
2. What is the sys.argv? "The list if command line arguments passed to a python script". I'm not quite understanding that.
3. I know for is used for looping and I know an example say "for a in range(10):" but I'm not understanding the for c in password:
4. Where does the 1000 come from in the builder += 1000.
5. What does the 83 represent after ord(password[1])
6. I know the if statement is saying if this then do this so if __name__ == "__main__":
main()
It's saying call in the function main but where does the name and main come in that part?
Here is the image:
Thank you for your responses in advanced!
One person doesn't have to answer all. Time is precious I understand.8 -
I am new to programming. I know the syntax very well in Java. How can I improve my logical thinking , problem solving ability that can land me in a decent job ?8
-
When your project is actually implemented in real world solving real problem with the solution you created
-
Trying to build a ros workspace inside VMware...
Called up the teammate who put it together:
Me: hey the workspace isn't building for me, do I need to setup anything before I type "make"?
Him: nah dude just type make and ur good, why what error are you getting?
Me: *describes error*
Him: oh lol I never got that error before, idk maybe your machine is just dumb
Me: *uh ok sure dude* let me try some other stuff
*Boots to native install of Ubuntu*
*Build successful*
Me: oh huh that's weird it built on my native installation but not on the VM
Him: oh lol that's not my problem
Seriously dude? First off, screw you Ros for not being able to build in a VM. Secondly, it's entirely your problem! Linux is nice to use, sure, but it's a bit of a problem when the entire team runs off Mac!
😲😲😲😣😥😫😓 -
Quick disclaimer, it is easily googlable, but no matter where I search, I can't find a solution. This is why I'm trying here.
Okay, so the other day, I was trying to install the node package sqlite3, and it spat out errors all day long from the node-pre-gyp native module and from the node-gyp native module. I am using the latest LTS (as of 5/10/2018), and I can't get any answers on HOW TO FIX IT...! Please HALP ASAP!12 -
Nothing’s better than listening to music and a second of the song is nostalgic. Brought me back to when I was 6 y/o.1
-
Funny how every single one of my side projects fails due to authentication/authorization/user management. Yeah... Funny and stuff... Thats the right word for my discourage I think... Funny! It's funny!
(open for suggestions)4 -
Suddenly build is not coming up???!! Restart your machine. If that does not help restart the machine of the colleague sitting beside you... Classic problem solving.
-
Customer Service(cs): clients complaining our site crashes on their computer
Support: they dont have enough resources, its their computer
CS: customers still complaining, how do we fix this?
Support: tell them to get a better computer
CS: lets borrow their information and see whats going on
Support: reluctantly moves customer data over
CS: I dont see anything wrong here. It works just fine
Support: ... ... ... -
Problem: in assembler, i want to proceed an string byte by byte. How can i do this?
My try:
Mov ebx, 0
S:
Mov eax, [var +ebx]
;somethin
Add ebx, 1
Jmp s
But it doesnt cut off the thing rigth8 -
I'm working on some JavaScript that a junior developer probably would have been able to write a couple hours ago.
Even though I'm getting closer to a solution, I'm definitely still in the "feeling like an idiot" phase because it is probably so simple for a more experienced dev.
At the same time, I think this is one of those things I have to figure out for myself. I can't get all my solutions from Stack Overflow!5 -
Tl;dr:
My stupid ass needs a break, also a good english lesson, sry for grammar errors.
# rant.start()
You may want to ask how it is to be kind of stressed. I'll tell ya.
I'm half way through my semester and all of my profs had the same idea: projects. Huge ass projects for everyone with the smallest possible time to finish them. Also i'm moving in a new flat in a few weeks. Shove your projects up your fucking bleached arsehole and put a huge cork right beneath it.
I started to wonder why my stupid tkinter application started freezing after implemeting a thread for a small tcp module.
Confusion.
Frustration.
Hate.
Chaos.
Crying for help.
Zergrush on SO.
Realizing i used thread.run() instead of thread.start() .
Fml, i need a summer break. -
Damn I left work on Friday afternoon with an unsolved problem. I actually solved it on my way home but forgot to make a note so this is now the only thing I can think of. What a beautiful weekend.
-
so i recently found out about a problem called the "Monty Hall Problem" and decided to give it a go, so i wrote this little analysis app to solve it
https://github.com/bigworld12/...5 -
Some friend bothers me while I'm coding.
Friend walks away because I asked him to look at what someone on the other side of the room is doing.
I open CMD on his pc.
typed: color 0a
C:/
dir /s
alt + enter
friend: WTF?!
me: blocked by administrator for disturbing the peace.9 -
When you are in the middle of a project, and get an idea how to solve an other project's problem..
I don't know if I should be happy to solve the first problem, or sad to cut my work on the current project. -
I waiting for the day when I have a problem and there is no npm package that solve it already.
NoSleepjs....5 -
The worst part being a designer is when your client has zero design sense and you have make them some shiity stuff
-
I'm sitting here in the dark and can't program because no electricians are available... Right before a deadline...
I worked on refactoring my code for our University lab's project (I am the programmer assigned to it) for almost a week and managed to refactor most of my old and unorganized code. Today I finally had the chance to finish the job.
While everything was open I decided to charge my laptop (I work on a desktop) and the moment I plugged it in the room turned dark. I realized I just have to turn the fuse back on but of course all the fuses are on already. Appearantly that short-circuit fried my home's electrical framework somehow and because it's a weekend I can't get in touch with any electricians.
All my code was committed but not pushed so now I am stuck here before a deadline with no way to work...
tl;dr Because of a short-circuit I don't have any electricity and all my work is unpushed.3 -
Am I the only one having problems to open links in rants in the android app? (links in profiles are working) @dfox @trogus2
-
Not enough space in my Linux vps? Ok upgraded plan.
Was figuring out how to expand the free space within the partition, wasted 2hours and all I gotten myself now its a fucking free upgrade from fucking CentOS to fucking gnu grub bash Ubuntu WHAT THE FUCK2 -
How mamy programmers does it take to change a light bulb ?? None!! It's a hardware problem!!! Old one but best one :D
-
I am lazy to pair my android device to another android device via blutooth for tethering(Pan Access Network) for internet access. Wifi sucks too much battery. Whenever pairing is done, device asks for prompt message stating "yes" or "no" for connection. I want that it automatically by default give permission to connect. Is there any possible solution (maybe through adb shell or something). I have tried every site related to this issue but most of them have unix system Bluetooth issues so no luck. Reply if you know a fix.
-
It's okay to slow down. Seriously it's fine. You can write 203 wpm... as long as the command you enter includes all necessary limits. Nothing is worse than having ansible rm -r the wrong directory or the wrong server because you missed a limit and put all.undefined wk26 learn from mistakes devops ansible take your time time is both the solution and the problem
-
I need help,
I'm on that task for a month and it's a shitty task where I need to write algorithms too complicated for my level and I'm totally demotivated right now... I can't even understand my own code and can't focus for more than 5min... I just wanna go home and never see that code and work on that anymore...
Has this situation ever happened to you ? What should I do ?6 -
So in order to ask a stackoverflow question I prepared a minimal verifiable example.
Now the issue I am facing is that my minimal verifiable example WORKS.
How am I supposed to ask it now!? Why doesn't it work in my main project? What is going on?6 -
Is someone else experiencing problems connecting to the App Store when trying to purchase devrant++? I look forward to supporting you!5
-
How do you manage to explain to a boss who thinks all devs can solve problems by typing on their keyboard fast, that it’s almost always fantasy?
-
So I have noticed if I think I know much of logic in programming and I can solve this problem better way I actually code better.
And when I think no I'm just a noob programmer I ask stupid question to myself and get my self confidence blown.
Thing is don't think you are bad, think of just you'll put all the experience all the knowledge you got in this program (according to its requirement) -
I try to be conservative and only use my phone a little, I didn't even play games/videos and still it went from 100-22% in under 6 hours... like how did it even?3
-
I walk by our devops dashboard several times per day. It keeps track of key metrics for all our live services. I noticed an interesting trend the last few weeks.
3 weeks ago: all metrics green
2 weeks ago: 1 metric red
1 week ago: 1 metric still red
this week: 1 metric still red but covered with a post it note -
So, I've just been offered two jobs that are basically the same. It is impossible to do both. What do I do?15
-
Looking at AI and regarding the stop button problem. (computerphile video about the stop button problem: https://youtube.com/watch/...)
And looking at Skynet from Terminator.
There is some chance that the goal condition for the AI was that humans don't press the stop button.
And Skynet's biggest goal is to prevent humanity to press this button by exterminating humanity.
So, the film writers are actually this one time totally justified to have a heavily guarded room with nothing but a big red button which instantly brings victory for humanity when pressed.
Critics will hate this "deux ex machina", but computer scientists and AI researchers will be like: "Ehm, actually, that makes a lot of sense." -
!rant (maby rant?)
I live in a place where there is very low discrimination, and even if people make rasist, or sexist, or possibly discriminating remarks, 90% of the time they are just shrugged of or laughed at by the "offended" party.
Then I read stuff from around the world and I am just amazed by the lack of tolerance the rest of the world seams to have.
Like getting offended by people stating any little, insignificant, unrelated thing...even to the point of legal action...
Why are people so easly offended? I get history and past repressions and inequality, but in most cases these reactions are just tantrums or just being a pussy (no matter the actual gender).
Lighten up, people!
Sheesh...1 -
Q).How does one try to understand how or what a programme is in a third world country with no basis of proper infrastructure?
Apart from using raspberry pi which not only requires a person to help yiu understand it but cost a lot.......Something that Completes the circle , from bundling the the hardware with seamless software out of the box and for the fraction of the cost of a raspberry pi
[Open to all sorts of input.....from this thing has no practical use to lets do something]3 -
Ok guys ... real talk ... I've been stuck on a problem for over a month! The thing is that the problem and implementation is too specific for stack overflow. I've tried everything that I can think of and it's actually keeping me up at night! What do you guys do when you hit a brick wall?8
-
So will https://projecteuler.net help me in solving and interpreting mathematical problems better?especially in term of calculus
-
I used to be be a developer, but now working as a technical writer in a company. Can anyone have an idea of what should I do? Does being a technical writer is great?1
-
I've been working for over a year now in this remote job as a sysadmin for a local client. I personally find this job quite intimidating at first with all of the infrastructure and all of its many microservices running in high availability set up. I enjoyed learning everything about them and why it's been set up this way, which gives me ideas if I were to build my own app (not competing with my current employer, of course).
But now I don't feel comfortable managing this beast in its many environments.
From time to time, I would hear from my old colleagues at my old sucky company for help in their work and that they know I'm an expert in. I help and it makes me feel good.
Now I'm at a career dilemma. I don't want to lose my current job because I feel "uncomfortable" with managing and administrating the tech holding the whole infrastructure. And I don't wanna go back to my old job with the sucky pay and the feel of being unchallenged. And if I try to find another job, I might be as lucky as I do now, especially good difficult it is for me to find a remote job to begin with.
Objectively, I just need to clear off my debts (at this rate, in 4 years), and have a side income to support my family. But I don't think I can follow through on that plan. Should I look for a new job or do better with the current job that I have now?3 -
!rant
Need your help!
Tldr: how do I build a system with 2 power supplies so that I can power it from either one?
I'm currently working on a "video editing van" for an upcoming project and I found awesome atx power supplies that you can use on your normal car power source. Something like this: http://powerstream.com/DC-PC-12V.ht...
Here is where it gets tricky: obvioisly it would be easy to build a dedicated system for this purpose but I want to use an existing system with an existing psu. I still want to use the pc normally at home with the standard psu but don't fell like switching every single power connector everytime I take the pc into or out of the van. Do you have any idea how to make some sort of switching mechanism so that I can leave the Hardware as it is and just power it of any of the two psus?
Thanks in advance!8 -
When you spent few hours to solve a problem and then restart the application as nothing worked but then you see that the problem is not anymore...
you're in the situation when you can't decide if should commit your dirty code changes or should revert them back.2 -
Guys i have a damn problem with my friends laptop (yes i don't like doing it, but have no choice)
I can't intall on this laptop any windows (good for me, but not for friend) beck use of blue screen A5 or sometimes B7.
I read about this and it might be bios, but it's updated. I can't see any hardware dmg.
Linux work perfect :(
Have you idea what to do?6 -
Lost my password to my hostmaze login because LastPass didn't save it properly. Now I can't reset it because their mailing server is not working (found out after emails failed to send to their support email with an error on their end). Their chat is also non-responsive.... What do I do now...
😐9 -
Teacher: always try of doing a dry run for minimising the error in your code
Me:ok let's try 10 cities for the travelling salesman problem -
What should I do, I have a central function that is not documentated and no test-cases are written for it. I have no clue what the method should really do, I know that it works in 99.9% of all cases otherwise we had much more bugs. Now there is one Unit-Test that reports an issue. I tracked it down to this method, no one touched the method nor the unit-test.
My logical thinking says that there is one statement missing, but it could also fuck up another part of the code... (This project has a bad testing coverage :'( )
What would you do?
- copy paste the method for this special case (I would hate me so much for breaking DRY)
- inheritance?! (Would make it more complex and then it would be still untested / undocumented)
- YOLO changing oO?! (hope for luck, just joking)
P.s it's an edge case unit test, the client / customer probably wouldn't realised it if it happens -
I am not sure what's wrong but from this evening I can only access Google's sites + some other site using my WiFi but can't access devRant + other tons of site
Tried to reset the router, tried changing the DNS addresses, tried using VPN but nothing worked2 -
Help wanted, im having troubles with my boot order, for school i need to keep some windows program but i want my def boot order to be linux, its both showing in uefi but wen i select parrot to be first and safe it, reboot boom windows back on top, any thoughts how to fix this????2
-
Someone else having this weird browser render issue on Mac OS El Cap? As far as I know it happens on both Opera and Chrome. (which use somewhat similar engines of course)
Setup
Macbook Pro Early 2011
Mac OS X El Capitan
Latest Chrome / Opera1 -
The struggle when you use fscanf and once you used & many times and this one time you forgot & and the whole program gets Access Violation :(
&tab[i] instead of tab[i] -
Is there a way to tell your family/friends what kinda work you are doing without boring the shit outta them ?3
-
In the spirit of this https://m.youtube.com/watch/... I have a question...how many of my fellow Rantsters can relate? I feel like I see so many posts about not being able to fix cars, build computers, and in general fix things that arent software, and I mean no offense by this. But, I think a lot of people sell themselves short because they aren't a "professional" I'm pretty sure anyone who can build an application can fix most anything...you just need to read the docs and debug it!
-
I need help solving this problem, idk how to make it decrement if for example the value is 0.1, idk how to make it turn into 0.09. plus I don't know how to make the user choose to either increment or decrement the value.3
-
Welp. I get into work to find there was a powercut at the weekend and 2 pc dead... I just moved the power plug on one and magically it starts. then when trying to boot the other one in safemode that suddenly starts working! There are times I just dont get computers or why they do the things they do....
-
I think I will just take pleasure being on the sidelines when everyone else's projects blow up or run behind schedule
-
can anyone please help me? I am trying to use my submit button as a redirection so that if I click it it will take me to another url .. ( my submit button is on wordpress website plugin)7
-
Need help for a task
I need to do a code in JavaScript that decrements a user value, say 0.2>0.1>0.09>0.08 etc etc.
How do I decrement 0.1 to 0.09?
Thanks.10 -
Telling the customer it's not a system problem but their end users network problem over and over with proof and still making a fuss over it. What the hell do I do next?2