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 - "temp"
-
We were doing some temp work, and a girl we were working with had gone out to talk to her boyfriend on the phone.
1. Flip screen orientation 180 degress
2. Take screenshot
3. Set that as wallpaper and flip back
4. Hide icons, hide taskbar, move taskbar to far right edge
5. Invert mouse movement
6. Invert mouse buttons
7. Flip back 180 degrees, everything looks normal.
Sit back, relax and watch the show.
P.S. she gave up, we had to fix it.16 -
Yesterday I managed to optimize a query...
Went from 43 seconds to 0.0702 seconds.
For some reason mysql decided to copy the data of 4 huge tables into a temp table and do its operations there... (the copying to temp tale took 42/43 seconds)
Two composite indexes later and I saved the company hours of time over the course of a few months.
Feels good.14 -
To all developers who think "I don't need to delete that one 1KB temp file"
FUCK.YOU.
You are not the only garbage developer who does not clean his shit up. The reason we need TERA FUCKING BYTE storage devices nowadays is because you incompetent shit heads have no idea how an application has to properly work. A temp file is not there to exist for ever. HENCE THE FUCKING WORD TEMPORARY20 -
Incompetent doesn't even start to describe this one:
1. Uses Google drive instead of an online repository for code sharing
2. Uses multiple files instead of version control
3. Preferred variable names like a, a1, b, temp
4. Didn't like "wasting" space. The result was unreadable unindented code
5. Would rather use deprecated HTML tags rather than proper CSS styling
He was more like the personification of bad coding practices8 -
At the peak of the dotcom boom of the early 2000s I had been hired above my skill set because recruiters were desperate to fill seats. I had a pulse and could code even a little so they hired me.
I was the senior web developer on an agency contract with a major corporation working on an ASP (pre ASP.NET) website. I had hired a temp to help me with the workload and one day, in exasperation at my spaghetti code and non-understanding of MVC concepts, he threw his hands in the air and exclaimed, "Do you even know what you're doing?!"
Not having the type of personality to give any subordinate a dressing down for insubordination, I just felt awkward. He was right, of course. I used that as impetus to study more and attend conferences. I'm still a below-average coder because my brain struggles with math and logic. A lot. But that definitely took me down a peg. All those recruiters treating me like I was hot snot on a silver platter when I was really just a cold booger on a paper plate.4 -
Manager: our file IO is slow, any suggestions to make it faster?
Code: multithread writing to a few hundred small (temp) files then single thread combine to one big file and delete the temp files.
Eyes: bleeding31 -
It was a basic java lesson. We had four values that we stored in a array. We had to make some calculations with the values. Then we had to sort those four values. That's the solution our teacher proposed:
if (arr[0] > arr[1]) {
int temp = arr[0];
arr[0] = arr[1];
arr[1] = temp;
}
if (arr[1] > arr[2]) {
int temp = arr[1];
arr[1] = arr[2];
arr[2] = temp;
}
if (arr[2] > arr[3]) {
int temp = arr[2];
arr[2] = arr[3];
arr[3] = temp;
}
if (arr[0] > arr[1]) {
int temp = arr[0];
arr[0] = arr[1];
arr[1] = temp;
}
if (arr[1] > arr[2]) {
int temp = arr[1];
arr[1] = arr[2];
arr[2] = temp;
}
if (arr[0] > arr[1]) {
int temp = arr[0];
arr[0] = arr[1];
arr[1] = temp;
}7 -
Finished an MVP of my garage-opener-thingamajig!
Basically I decided I wanted to control my garage from my app. Retail solutions are expensive af. As a dev, the choice was easy!
RPI3
HC-SR04 sensor
DHT temperature sensor
5v Relay
Nativescript + Angular
Firebase
Result: i can open my garage anywhere, safely (sorta?) via firebase, and get push notifs when it gets opened (from hcsr04), which triggers the pi camera, while also getting live temp feeds (this one is kinda for the giggles and utterly pointless but NUMBERZ!)
Anyway - fun side project! First version of my app looks like this. Its very rough, and I have a couple more details I wanna display, but for a first time app I'm happy!10 -
The solution for this one isn't nearly as amusing as the journey.
I was working for one of the largest retailers in NA as an architect. Said retailer had over a thousand big box stores, IT maintenance budget of $200M/year. The kind of place that just reeks of waste and mismanagement at every level.
They had installed a system to distribute training and instructional videos to every store, as well as recorded daily broadcasts to all store employees as a way of reducing management time spend with employees in the morning. This system had cost a cool 400M USD, not including labor and upgrades for round 1. Round 2 was another 100M to add a storage buffer to each store because they'd failed to account for the fact that their internet connections at the store and the outbound pipe from the DC wasn't capable of running the public facing e-commerce and streaming all the video data to every store in realtime. Typical massive enterprise clusterfuck.
Then security gets involved. Each device at stores had a different address on a private megawan. The stores didn't generally phone home, home phoned them as an access control measure; stores calling the DC was verboten. This presented an obvious problem for the video system because it needed to pull updates.
The brilliant Infosys resources had a bright idea to solve this problem:
- Treat each device IP as an access key for that device (avg 15 per store per store).
- Verify the request ip, then issue a redirect with ANOTHER ip unique to that device that the firewall would ingress only to the video subnet
- Do it all with the F5
A few months later, the networking team comes back and announces that after months of work and 10s of people years they can't implement the solution because iRules have a size limit and they would need more than 60,000 lines or 15,000 rules to implement it. Sad trombones all around.
Then, a wild DBA appears, steps up to the plate and says he can solve the problem with the power of ORACLE! Few months later he comes back with some absolutely batshit solution that stored the individual octets of an IPV4, multiple nested queries to the same table to emulate subnet masking through some temp table spanning voodoo. Time to complete: 2-4 minutes per request. He too eventually gives up the fight, sort of, in that backhanded way DBAs tend to do everything. I wish I would have paid more attention to that abortion because the rationale and its mechanics were just staggeringly rube goldberg and should have been documented for posterity.
So I catch wind of this sitting in a CAB meeting. I hear them talking about how there's "no way to solve this problem, it's too complex, we're going to need a lot more databases to handle this." I tune in and gather all it really needs to do, since the ingress firewall is handling the origin IP checks, is convert the request IP to video ingress IP, 302 and call it a day.
While they're all grandstanding and pontificating, I fire up visual studio and:
- write a method that encodes the incoming request IP into a single uint32
- write an http module that keeps an in-memory dictionary of uint32,string for the request, response, converts the request ip and 302s the call with blackhole support
- convert all the mappings in the spreadsheet attached to the meetings into a csv, dump to disk
- write a wpf application to allow for easily managing the IP database in the short term
- deploy the solution one of our stage boxes
- add a TODO to eventually move this to a database
All this took about 5 minutes. I interrupt their conversation to ask them to retarget their test to the port I exposed on the stage box. Then watch them stare in stunned silence as the crow grows cold.
According to a friend who still works there, that code is still running in production on a single node to this day. And still running on the same static file database.
#TheValueOfEngineers2 -
Emotional roller coaster today.
+ Got first pull request! Hell yeah!
- oh, no, no no no nononono, they pushed all dependencies and temp folders...
fck sake isak, gather yourself10 -
While setting up a very complex development environment I asked my colleges, why are certain configuration steps needed. They replied only "Just do it!". I see, that they may be Nike fans or deeply inspired by the Shia LaBeouf motivation speech, but I still feel like:2
-
A day in the life of BoyBiscuit.
PM: Please zip up any local changes and push them to a temp folder on the repo and I will manually check to see what you have changed.
Me: *glaring at the download as zip button*
PM: Who broke the repo?
Me: *checks commit history*
Commit History: *last commit PM*
Me: Could you add the files to your commit before pushing because you've only pushed changes on tracked files.
PM: No not possible, I did 'commit -a'.
Me: ....
PM: Could you all delete your forks so that It isn't anywhere on the web
US: but it's private with only us as collaborators
PM: No because I can see it
Me: srysly?
PM: Could everyone try to write more effective code?
Me: Looks at his code
Code: Boolean b = getbooleanVal ? True : False;
Tl;Dr: PM doesn't know anything about git or working as a team.
See you tomorrow!1 -
Refactoring code of somebody who left and:
- Plagued the code with TYPOS (milions of them but ok I can live with those... to a certain point)
- Used global variables by default.... of course even where they're not needed
- Used comments only in parts of code where... well they're not needed, important ones are of course left out
- Did not indent code. 3..2..1... Did not FUCKING indent code properly and when he did... did WRONG!
- Instead of indentation he used commented line with multiple ==== signes.... so far top is 60 consecutive lines with olny ==== again no apparent pattern here
- Did not follow a fucking standard in variable naming... no camle casing... there are varaibles assigned multiple times to "temp" variables without no reason just for the sake of wasting resources on the system I guess
This is just the beginning of the review but I already want to change job, die, scream, cry... not in any specific order.10 -
I absolutely hate when people name local variables something like temp or tmp. I was working on a project with a guy who did this with almost every local variable and it was really confusing to have like 7 variables with the same name in the same class.
Please use informative names!7 -
Development plus laboratories is kind of my expertise, so I ended up in a little grimey HR office looking out over the factory floor of a cocoa processing facility. I was applying for an automation job, a temp thing for three weeks, updating some ugly scripts which took readings from machines and threw them into excel sheets.
"We don't think a developer like you has enough experience working in an environment like this. Safety and working in sterile conditions is very important to us"
I had sent them my certifications in advance, plus references to the work I did in a biosafety level 3 lab for JnJ and cleanroom work at an aerospace company.
There were fat sweaty guys on sneakers, taking cocoa paste samples right next to the window.
They ended up hiring a friend of mine with zero experience, for minimum wage.
Just be fucking honest, don't waste my time with courtesies and lies. If they had just told me about the low salary indication, I would still have done the work. I was in between jobs anyway, bored, trying to fill up some spare time.4 -
Fucking pigs at my office keep the AC at 26 C with the fan at minimum making it so hard to breathe in this Auschwitz simulator. 😡
Seriously the outside temp will be like 30-35 C and they still don't want the AC :/8 -
This guy who earns 20% more than me wrote a method to check which string of 2 is lexicographically smaller.
public boolean isSmaller(String s1, String s2) {
String [] temp = new String[2];
temp[0] = s1;
temp[1] = s2;
Collections.sort(temp);
if (temp[0].equalsIgnoreCase(s1)) {
return true;
}
else {
return false;
}
}5 -
Fond this gem in teams code;
Var temp = "",
Var tmp = "",
Var tmp2 = "",
Var tmpIDK = "";
Asked the creator only 4 hours after the commit what his code does. The answer; I have no idea, but it works, don't touch it.2 -
I absolutely hate software that throws error message boxes that look identical to their "please enter new password" message box.
User called and said they needed their password reset. I give them a temp pin and tell them to press ok to the prompt and then put new password in. She says it is still saying invalid pin. This goes on for 10 minutes. I hang up and try on my laptop. Works fine. Then it hits me.
The message boxes look the same. Have the same width and height and shitty little yellow triangle with ! In the middle. The only difference between them is the text in size 9 font.
Gotta read people...cause sometimes the people developing your software assume you can. And to all the software people out there....end users don't want to fucking read.4 -
always double check your rm -rf command...
long ago, young me was setting up a server. last thing was to remove a temp folder i created. instead of rm -rf /path/to/dir, i typed rm -rf / path/to/dir...
"this should not take so long...wait... shit"7 -
Overheard a conversation between programmers:
.... Your dirty hack finally caught up with you!
.. it is responsible for bug A, B , .. E ... F..
That "temp" code was not touched in years.3 -
Windows update fails with error 0x1235
Me in Technet: Hey, ms, i got this error. How do i fix it?
MS: Install the Troubleshooting for Windows Update and follow the instructions. Before that, create a system restore just in case. Also, if the problem persists, go to your boot menu -> troubleshooting options and follow the instructions.
Hope it helps.
Found it helpful? Yes No
Other random people: just rename $WINDOWS ~BT to anything or delete it. Then continue the process.
.
.
I followed the random people advice and worked.
Fuck MS.1 -
So, being from the tropics, this is the first time I've seen(or rather lived through) temperature going below 0c.
In India if the temp went below 4c, the government would cancel schools n stuff, sooooo, a big deal.6 -
Project Manager: "Let's put this temporary site up that the sales guys can use until the app is released in a few months"
A year later it's still used more than the app.
// bandaids are forever1 -
This girl I don't even know much sent me this code. She is not a coder and has never written any code before by the way.
if(true)
{
temp=abhinav;
abhinav= v bad;
v bad= temp;
}
Is this what a modern day love note look like? 🤔🤔6 -
Software development lessons are so boring and the teacher is so stupid. He can't swap two variables without a temporary var. He said that he never saw this kind of swaping before. I pay attention sometimes, but I'm just drawing in my exercise book.29
-
'Member when we were used to Internet explorer back in the Windows XP era and when we download stuff we always used to click run and never care about something called downloads folder and the only issue was that the temp folder used to fill our damn hard drives very quickly?
I 'member2 -
this code is messy .. it has to be refactored..
abstact those classes to commom interfaces .. create a base class for all those common classes .. make this a parameter, make that a setting.. generalize this, pass a behaviour to that.. separate responsobilities..
hmm .. need to handle that special case .. let's just add a temp method for now to get it compiling .. //todo this later .. maybe add a couple virtual bools to handle the base class behaviour
238 compilation errors! .. let's do a static var for now on this.. and just add this for backward compatibility .. maybe hardcode that dll name, I know it'll NEVER change..
aah finally, all compiles..
oh..
this code is messy .. it has to be refactored.. -
My new motherboard (MSI Z170 GAMING AC) reports temps for the memory, CPU, GPU and hard drive in °C. And the motherboard temp in °F.
Almost had a fucking heart attack the first time I opened Speccy for benchmarking. -
"Potimized imports and remopved temp code"
Can't help but wonder what's the code quality like from an author of such a carefully written commit message 🤔4 -
I was hired to do a massive project as a temp. I got part way done and they hired me full time to finish. Then I moved to putting out production fires for unrelated systems until I left.2
-
Having trouble logging into an app I am suppose to be working on with another dev. Debugging and found this:
// TODO: Temporary Optional because the API is not working properly
... i'm not happy for so many reasons -
Designers!!
What do ya think
A dashboard for a website
The cpu temp progress bar has jquery/AJAX wich outputs the cpu temperature at every each 3 second of the server wich is on a raspberry pi at the moment.
Does it look good for these days?
PS: used php for the backend10 -
so i signed in into a new win 11 install a few weeks back. hadn't noticed until now, windows has been backing up all my new PC's files to one drive. all the junk and temp files too 😭. Completely messed up my organisation on onedrive 😭. Fuck whoever thought it would be good idea to backup documents folder into documents folder fromevery fucking PC. not naming what PC or user it came from. I'm so fucked cleaning up this mess. Motherfucking assholes.
On the side note, anyone have any idea how can i find out which PC or user a file was uploaded by in the explorer itself. ☹️2 -
The knowledge base for fixing stupid shit in Windows 10 is abysmal. I had a slow login that seemed to be progressively worse. I had searched in the past about this. The suggestions ranged from getting an SSD to reinstalling Windows. None of them addressed the issue. I had removed some startup programs thinking that might be the issue. It was not. I finally found some obscure mention by some guy that said: delete the user temp folder. So I did that. Now it takes almost no time to login. I think the only delay is the steam stuff in the background.
Of course all the official Microsoft suggestions were total shit.15 -
I need a name for a new app.
It's a spur of the moment travel app that lets you select the temp and humidity ranges you want and finds you the cheapest flights.
Dazzle me please.40 -
So one of my clients got their wordpress site hacked and basically just redirects to scam links and well.. I looked at in the server file manager and their are like three directories with this wordpress site (not clones but the same?) one in the root, a version in a folder called old and another in temp.. with 3 separate wp databases.. DNS entries had malware redirects, the wp-content folder was writable to the public and contained a temp folder with tons of encoded malware and ip links to malicious sites.. there was encoded malware in index.php, has like 20+ plugins, oh and the theme uses a dynamic web builder so the code is basically unreadable in source and scattered.. and the redirects seem to happen randomly or at least on a new session or something. Oh.. and did I mention there are no backups? 😃2
-
Finally decided to investigate my phone's overheating issue.. And apparently I should uninstall Google services along with the temp measuring app lol1
-
I'm getting really tired of those dumbass programmers that do not understand shit and then come to me when production breaks. (I am also a programmer, not really a DevOps engineer, but I'm the least worst at DevOps stuff, so it's my job...).
We're programming some kind of document management tool. Today we had a release, and one of the new features is to download all of your documents as a zip file, which is asynchronuously generated. When it's done, the user gets a mail with the download link to the zip file.
The feature works basically, but today it broke our production service, as somebody was running a test of it.
Turns out all the documents are loaded into memory to be zipped. So if you have 2 gigs of documents, a container with memory restrictions in that area will crash.
I asked the programmer who reported this «ops problem» to me, why he didn't just shit the files into a temp foler in order to zip them in there.
He told me that he wanted to do so, but did not know how to mock this for a unit test, and therefore went to the in-memory «solution», which was easier for him to mock.
For fuck's sake, unit tests and mocks are fucking tools, not ends in itself! I don't give a fuck about your pointless mocking code when the application crashes!
When I got to deal with such dumbasses, I'd prefer to mock those motherfuckers with a leaky bucket of liquid shit, which basically accomplishes the same task from my perspective: dripping shit all over the place and make everything suck as fuck.3 -
Windows 10 likes to set my Temp variables back to C after an update, as well as enabling Superfetch and Prefetch. I made a batch file fixing all that shit...1
-
-click-
MySQL: 'the table does not exist'
I just fucking made the temp table dude, that's what you literally do in step 1 .... how could it not....
-click-
MySQL 'Records: 1 Duplicates: 0 Warnings: 0'
Me: "Oh there we g---"
-click-
MySQL: 'the table does not exist'
Me: "Hey you just worked!"
-click-
MySQL: 'the table does not exist'
GOD DAMN IT
-click-
-click-
-click-
-click-
-click-
-click-
MySQL 'Records: 1 Duplicates: 0 Warnings: 0'
Me: Uh you're working now?
-click-
MySQL 'Records: 1 Duplicates: 0 Warnings: 0'
-click-
MySQL 'Records: 1 Duplicates: 0 Warnings: 0'
-click-
MySQL 'Records: 1 Duplicates: 0 Warnings: 0'
Guess that API just needed breaking in....3 -
Doing dev work in Belgium in an office without air conditioning and a
room temperature of 38°C (100F).. just impossible to focus.. in the car I almost burnt my fingers using the steering wheel and gear stick. Some of you guys have had similar experiences (temp? Location?), for me it's a first..5 -
Quited my Job.
So... How to spend half a salary in a day...
Go to the shrink after like 3 years of not completing my burn out treatment.
Btw been having health problems lately, incapacitating stuff.
Got so many medication that im using a grossery bag.
Also had to quit my job... I just can't work can barely think, have no strength and a pressure in my head all day.
Now.. I was a temp, working in shifts on a shitty badly paid job, so fk it. 3 weeks down time, then I just quitted...
Now, on my parents house, getting 1 day of sick leave means a person doesn't want to work... How am I gonna tell them that I quitted... Lol
A few years ago I had to ear stuff like your lazy and don't want to work up to the day I got couth trying to cut my wrists... And I'm against suicide.
Now I dont know if I should hope my recent health problems are burn out related or not... Because some of the other possibilities are quite bad... I mean worst.
Can't think, fealing depressed because I hate to not be able to give 100%... And I just keep looking at my CNC machine... Finnaly got enough pieces to finish my project, but I can't get the will to do so... And it's there, in front of me, the opportunity to create my own job...
Life sucks5 -
so... not really a rant because i'm happy to be in the long-term zenlike state where i don't really give a fuck about anything anymore, but...
so today's my birthday (thanks in advance for all the semi-mandatory "cheers" reactions and such)
the agency i do temp jobs through sends money weekly (for the one week back) (which is the main and only reason i use them). they arrive at friday 12:25, so that's when i know to go "check" by withdrawing it, and it's also awesome because it's the best time to provide funds to reward myself (by booze/weed) at the end of the week.
last week, nothing came in. i called them and learned it was due to the contact person in the company i did job in being too late on sending the agency list of people who showed up at the work, i was told it's gonna arrive one week later together with the proper payment for the week-1,so effectively i was one week without any money (literally), but on the next week double was going to arrive, which is nice.
that next week of double was now. i found out that no double arrived, only single-value payment. i called them to ask why.
i was told that what arrived was the late payment, and the dude in company was again late with sending the presence list, so the other payment, for the proper week's work, will be a week late again.
so... that kinda ruined my financial planning tor tge week that's going to happen.
i guess my point (if i have any) is... funny how when someone fucks up, there's nobody for me to be angry at and hold responsible in any way, but when i have delays in my work due to delays upstream, nobody gives a shit about my excuses and it's my fault and i should have compensated, it was my responsibility and duty, and me not doing it (to my own detriment, for someone else) is me failing.
funny how the subjective dynamics of the world always somehow works out in a way where everyone else fucks up and i either have to suck it up and be okay with it otherwise i'm a selfish unreliable entitled asshole, or suck it up and extinguish their fire for them, otherwise i'm a selfish unreliable entitled asshole XD
anyone else noticed this in their life?
how does it work? what is the factor that decides whether you're in the "suck it up" class or the "fuck it, someone else will suck it up" class?
doesn't seem to (just) be the money(flow), i've seen this thing happen even in situations where the money/client dynamics were flowing the opposite way to what would be natural for the shit fall direction.4 -
I want to kill the guy who wrote this. He creates a temp table, selects data into it. Then selects the data out of it and returns the results. It does Nothing Else. WTF.5
-
1) Submitted my CV
2) Got an email to schedule a phone interview for the next week, I gave ~5 appiointments on the next week that were good for me
3) Next week passed, no answer to my E-mail, I asked in a mail, what happend
4) Got reply, that we should schedule the phone interview for the next week
5) We aggreed, in the appointment, they did not call me
6) I asked in a mail, what has happened
7) We aggreed in a new appointment
8) This time they called me, after a short conversation I was told, that I they send me task as homework right after the phone call and I will have to do it in one week
9) They did not send it
10) Next day I asked, whats going on
11) They sent me the task, and said that I can ask them, if have queations
12) For me it was not clear, if I was allowed to use frameworks for the task, so I asked it
13) I neveg got reply and did not ping for the 4th time
This was the most annoying and ridiculous recruiting process I had to deal with. It was just a waste of time.1 -
I'm trying to deploy an Azure Function via Visual Studio. VS gives me this error:
Publish has encountered an error.
Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
A diagnostic log has been written to the following location:
"C:\Users\myusername\AppData\Local\Temp\tmp16F8.tmp"
Let's check the log then!
"Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. "
Fucking piece of crap1 -
On the university we made a robot using Lego, which communicated on bluetooth with a tablet. We wrote a smile detector using opencv for the tablet. On the tablet you saw the view of the front camera. And when you smiled into the camera, the tablet notified the Lego robot which gave you a chewgum. The purpose of this project was to demonstrate on a fair what our robotics group did. People really liked it. 🙂2
-
Not dev related
Worst Team work fail...
I was hired to a Steel werehouse to join a team of two...
One month latter I was working alone while my coworkers spent their time on the bathroom watching manga and playing rpgs on their android phones...
One year latter I was fired, got Hurt because of the heavy weight (Steel weights a lot) and because I was a temp they just fired me (toke me a year to recover)
Two months latter both my coworkers were fired.. Guess that without me the work didn't do itself...
Wish I knew back them they couldn't fire me while I was Hurt...
Oh and I didn't complain about my coworkers because I don't like to talk bad about others...
No matter.... Got a better job latter on and the company lost clients... So fuck you smart ass engineer.... -
When company gave me a SSH I am a noob I have a filezilla what I do is delete all temp files and clear log files
Because the log file size goes 1gb After next day all are looking weird
Senior developer:wtf are you doing yesterday
Me: delete all the tmp files and log files 😂😂20 -
What was supposed to be a simple HDD to SSD upgrade for my brother ended up taking 3 fucking days.
His computer's idle temp was fucking 90c because of fucking YEARS worth of dust preventing fans from breathing, one of them was even dead so I had to go to best buy to get a new one.
Had a power outage happen in the middle of cleaning the damn dust out before replacing the bad fan. It took close to 24 hours for it to come back, and I just didn't bother until the day after cause fuck that.
When I go back to it, I finish cleaning the dust, clone the old HDD to the new SSD, do the swap out, replace the thermal paste on CPU cause why the fuck not at this point. Then turn it on to test, yeah from 90c down to 20c : |
Yeah... so I charged him for the new fan, and the hour-ish it took me to clean the damn dust and replace the fan... (drive was agreed to be done for free as a favor) Yeah not really worth charging for but I was pissed and that was the 'nicest' way I could show how annoyed I was with him not properly caring for the PC. Like honestly 90 degrees celsius. I refuse to believe he didn't notice impacted performance in his games7 -
Student temp is 2/3 done his term, and I'm pretty sure he hasn't learned anything.
When I was a student temp, I built a video chat platform. -
At NYU doctor's office that forces me to register a temp account to use their WiFi.
I get an email saying my medical records have changed so I try logging into the site to check.
Site can't be accessed on the network..,1 -
On today's episode of Corporate BS
I must please go update logstash on this server. Okay, so I literally just need to ssh in and run "yum update logstash"
No, I need to apply for temp root access and depending who picks up that ticket, I may have to log a change request5 -
I don't scream because my teams are in a different country and we communicate by IM and email.
I do write long ranting/passive-aggressive emails or type really quick replies when I'm pissed though. .
An example of the latter:
Boss: I need you to make a "quick" fix...
Me: hmm ok sounds like we should implement it like ...
Boss: I was thinking something like this... since it's a temp fix
Need: (typing faster) why is it a temp fix... why not builds it properly so it can be reused
Boss: but that takes time, this is quicker
Me: it's bad design because ... (Typing so fast I'm making typos)... Anyway I can do it. This is better...
Boss: ... ok fine... if you can finish it before deadline6 -
I was working yesterday, writing a calculus with sql.
My very great user explained to me the math in Excel. I first though to myself, piece of cake, i got it.
Then I started typing and at the end of the day i had 6 temp tables which at some point need to join with themselves. It was just hilarious. each table had at least 4 millions rows.
Then I started a new query just for validating the output of me very ugly previous queries.
And I fucking found a easier way to get the same output with 3 joins of 3 different tables and a count at the end.
When you love yourself. but hate yourself at the same time.
xD it was a very productive Friday night2 -
Gotta love software engineers. I'm writing some python to generate PDFs, so start by looking at chrome command line, which will be some headache with temp files and other madness.
Then find puppeteer, which does exactly what I want, but requires NodeJS.
Then find the unofficial python port, with a 5 line example of pretty much what I need to do.5 -
I love git stash.
It's helps a lot for doing refactors to me. I guess it's not the most complex workflow, but it wasn't obvious to me when I started with git. Let me explain.
Refactors. As you start writing the first lines of a refactor, you start to notice something: you're changing too many things, your next commit is going to be huge.
That tends to be the very nature of refactors, they usually affect different parts of code.
So, there you are, with a shitload changes, and you figure "hey, I have a better idea, let me first do a smaller cohesive commit (let's call it subcommit) that changes a smaller specific thing, and then I'll continue with the upper parts of the refactor".
Good idea, but you have a shitload of changes nearly touching every file in your working copy, what do you do with these changes? You git stash them.
Let's say you stash and try to do that smaller "subcommit". What sometimes happens to me at this point is that I notice that I could do an even smaller change inside this current "subcommit". So I do the same thing, I git stash and I work on that even smaller thing.
At some point I end up `git stash pop`ing up all these levels. And it it shows that git stash is powerful for this.
* You never lose a single bit of work you did.
* Every commit is clean.
* After every commit you can run tests (automated or manual) to see shit is still working.
* If you don't like some changes that you had git stashed, you can just erase them with git reset --hard.
* If a change overlaps between a stash you're applying and the last "subcommit", then
if they differ, git shows conflicts on the files,
if they are identical, nothing happens.
with this workflow things just flow and you don't need to wipe out all your changes when doing simpler things,
and you don't need to go around creating new branches with temp commits (which results in bloated temp commits and the work of switching branches).
After you finish the refactor, you can decide to squash things with git rebase.
(Note: I don't use git stash pop, because it annoys the fuck out of me when I pop and you I get conflicts, I rather apply and drop)4 -
Fucking microshaft! I bought a custom controller from their shop as a birthday gift to my brother. Fucking first thing the website crashes with 500 with my main account so I call support. Said them its a backend issue and they should let the devs investigate. Support says they can't even contact them in anyway shape or form. Fucking great!
So since my account seems to has broken their backend I create another account using some random email while support tells me to fucking log in and out again (yeah man I tried that). OK wonderful new account worked I can buy the controller.
Now one year later the controller just fucking stops working (probably why its called Xbox one! controller). Wonderful I paid 90€ for that shit thing and now it won't connect anymore. Tried everything and searched countless forums, nothing helped. Fuckers say: JuSt ConNeCT iT tO YoUr XbOx oNe and it might magically work (TM). You fuck I bought it for PC why the fuck can I not just fix it using a PC. Do you want me to buy a fucking Xbox for 500 bucks just to get the fucking controller to work!? You shitfaced monkey!
OK then lets try that support again because that worked so well last time. I put in the serial number and... Fucking unrecognized number. Unrecognized number my ass. Go suck on a spiked club you buffoon!
Now I'm fucked because I don't have the fucking receipt anymore and the email was send to that fucking temp account I don't even know the email address for anymore (ノ°益°)ノ1 -
Having another "what the fuck was I thinking" moment after wasting 3 wks and $60 on another mobile game...
There's no point to this game... Is an infinite clicker basically...
Must be the alliance element and bring asked to be the temp leader...
I knew I should've declined... now always thinking how to give it back to him...6 -
New temp PM: Right I now want you in 9am every day and I want daily stand up meetings with a daily email at the end of the night. Also, we are abandoning the PM tool we use for one I like.
Me: Nope.2 -
What do you consider the best method for long-term cold data storage? And why?
I was looking at some magnetic tapes, but the degradation of magnetic charge is worrying me. Lose a single bit and you're fucked.
Dvds - not sure, some of my old ones are no longer readable. Not sure why tho, they had been enclosed in a dark, room-temp place all the time
hdds -- still magnetic.
Ssds? Idk
...?12 -
I fucked up. I used the shebang line #!/usr/bin/env python3 in a script that was being ran every 5 minutes with a cron job. This generated an email to a system that dropped a file for processing and sent an age email for each file every minute. Because the Linux OS generated emails didn’t contain a keyword the script closed by design but I forgot to uncomment the delete temp file line. This started on Wednesday before a 4 day weekend. By the time I got in on Monday I was 40GB over my email quota and receiving 2500 emails a minute. I fixed the script and stopped the emails but down I have to clear out those emails. Here it is Wednesday and I am deleting 1 MB every 3 seconds. This is painful.1
-
Never call a variable 'r' while debugging in python console.
I was trying to fix my code but for some reason the program didn't follow the code flow. I hate it when it happens because you can't pinpoint the source of the problem. I restarted the kernel, nothing, then I rebooted the IDE, nothing. The code behaved weirdly, the only thing I was doing was assigning a value to a temp variable called 'r' and then displaying it. The console kept telling me "--Return--", I didn't understand... Why, my old friend, are you telling me you're returning? Then I changed the variable name to old 'tmp' and it all worked. I finally realized that 'r' is a pdb command... I was angry at the console for obeying my own order... I'm sorry console1 -
Once upon a time i had a great idea.
Because i couldnt be bothered to do anything productive i created a simple app in the C# that would look into every .js file (from a game that uses it for the gui/main menu) and search for "//todo" lines.
I did it mostly for kicks. I got that idea when i encountered one //todo in a file when i was trying to mod that game.
Yes i know grep exists: fuck you.
It would have taken me more time to learn that than to write that 20 line program...
The result? Over 30 lines of //todo with some briliant pearls in the type of:
>Temp workaround because X
>Workaround for race condition
>Clean that up
>Obsolete
When i return home i will post real quotes. They might be amusing to read...
The game is based on a custom C++ engine. HTML, CSS and JS is used for main menu and some graphical interface in game.
The most amusing thing is that this inefficient sack of chicken shit is powering one of the biggest (no playerbase but unit, world, gameplay vise) rts that i have ever played.
But still in spite of a dead community, buggy gui as shit and other problems i love this game and a lot of other people love it too. It is a great game when it works correctly.
To the interested: JS portion uses jquerry and knockout lib.14 -
Hey devrant!, I'm currently developing a hacker game! herer is a little sneak peak all the graphics are temp will be changed as soon as i get some cash! enjoy!12
-
I have had to work on a project with a pc104 stack running yocto. I have had this since December last year and the image has always just randomly crashed 🤔. Yesterday I found out why!!
I am able to read the sensor of the cpu temp this has never been over 60/70 degrees C (yes I am English), however after running multiple tests and finally hitting my last wits I made the Kernel output over serial as no msg was shown on crash.
The company we have got the HW from always said this board won't over heat it throttles the cpu blag bla bla... And you guessed it in the mid of nothing but mess was a message "thermal_zone0 critical temp 127 degrees shutting down"
I didn't know if I was happy or about to cry as I didn't know if after working on this project for the last 6months I was back to the drawing boards as I need new HW or my gut at the start of not trusting the Company we are using!
Needless to say I have no idea what Monday will bring, I will keep you all posted as we all do care!
Much love
Jim -
Working on a project to create a space Invaders clone using Android studio/java. Point is to prove teamwork and our ability to optimise for a phone.
Leader makes the engine
Passes code to me who is doing gameplay.
Creating classes, testing them with a temporary activity class to get them on screen.
Okay, time to get it going properly.
Starts creating the game by placing aliens to the screen via the new alien manager, created in the true starting place.
Nothing appears on screen, sounds still play.
Odd. Repeatedly try to fix, but objects will not appear on the screen if created outside of temporary activity.
Show problem to leader as I haven't been able to figure out.
Gets lectured to no end about how I can't just ask him for help (first fucking time) if I get stuck!!!
Turns out, the value for frame time is way off for the first frame, and their positions get going way off the screens range when being placed. Temp activity works as it skips first frame.
Why did this happen? Genius leader didn't properly initialise it, so first frame time was equal to the First Date Object time ever locked - current time 🤔🤔🤔
We figured it out together. -
Windows 10 insider preview had a critical bug like half a year ago where most browsers would freeze the PC. I've reported it multiple times but my feedback didnt get any attention. The bug made it to production months later...
Now, the story is repeating. I've discovered a bug. Everytime there's a software update for apps that with a built-in updater in the main .exe (JetBrains IDEs, VS etc.) the updater fails, program is corrupted and needs to be reinstalled. For instance, there's a minor bump in Android Studio version, if you try to use autoupdater it will corrupt your Android Studio and you'll have to reinstall.
Been trying to reach out to them but the only "real issues" that are highlighted are "no CPU temp in task manager" or "pls improve automatic problem resolving"
Why the fuck do you even have a feedback program if you're ignoring the people who are reaching out to you, you pieces of shit4 -
MacBook died, currently in the lab, have a TERRIBLE dual core T4200, 3GB ram temp laptop replacement with VISTA.
Which Linux OS should I replace it for Dev/uni sake for few days? Considering that I don't have too much time on my hand to fix the tiniest headaches that comes after a Linux installation.
Like I'm looking for a distro that just works and is good.12 -
the latest recruitard.
so having been unemployed for 14 months, this recruiter shit is infuriating. i think they are the reason for my unemployment.
i just spoke to the biggest idiot ever, she worked for a temp agency called manpower, attempted to solicit a job for the u of a. she was "new and getting used to the technologies in the market" that was her excuse for asking me if java and js were different languages, i mean if you cant understand simple stuff like this, gtfo the industry all you are doing is hurting hard working ppl like me. i cant even get adaquate representation because there is no qualified ppl in charge of delivering me to hiring managers, and you can forget about presenting yourself c level execs dont talk to us plebs we are here for one thing to make them money and get screwed, the last 6 out of 10 jobs i have actually gotten all left me with debit they owed and dissappeared into oblivion.2 -
v0.0005a (alpha)
- class support added to lua thanks to yonaba.
- rkUIs class created
- new panel class
- added drawing code for panel
- fixed bug where some sides of the UI's border were failing to drawing (line rendering quark)
v0.0014a (alpha) 11.30.2023 (~2 hours)
- successfully retrieving basic data from save folder, load text into lua from files
- added 'props' property to Entity class
- added a props table to control what gets serialized and what doesn't
- added a save() base method for instances (has to be overridden to be useful beyond the basics)
- moved the lume.serialize() call into the :save() method on the base entity class itself
- serialized and successfully saved an entities property table.
- fixed deserializion bugs involving wrong indexes (savedata[1] not savedata[2])
- moved deserialization from temp code, into line loading loop itself (assuming each item is on one line)
- deser'd test data, and init()'d new player Entity using the freshly-loaded data, and displayed the entity sprite
All in all not a bad session. Understanding filing handling and how to interact with the directory system was the biggest hurdle I was worried about for building my tools.
Next steps will be defining some basic UI elements (with overridable draw code), and then loading and initializing the UI from lua or json.
New projects can be set as subfolders folders in appdata, using 'Setidentity("appname/projectname") to keep things clean.
I'm not even dreading writing basic syntax highlighting!
Idea is to dogfood the whole process. UI is in-engine rendered just like you might see with godot, unity, or gamemaker, that way I have maximum flexibility to style it the way I want. I'm familiar enough with constructing from polygons, on top of stenciling, on top of nine-slicing, on top of existing tweening and special effects, that I can achieve exactly what I want.
Idea is to build a really well managed asset pipeline. Stencyl, as 'crappy' as it appeared, and 'for education' was a master class in how to do things the correct way, it was just horribly bloated while doing it.
Logical tilesets that you import, can rearrange through drag-n-drop, assign custom tile shapes to, physics materials, collisions groups, name, add tag data to, all in one editor? Yes please.
Every other 2D editor is basic-bitch, has you importing images, and at most generates different scales and does the slicing for you.
Code editor? Everything behavior was in a component, with custom fields. All your code goes into a list of events, which you can toggle on and off with a proper toggle button, so you can explicitly experiment, instead of commenting shit out (yes git is better, but we're talking solo amateurs here, they're not gonna be using git out the gate unless they already know what they're doing).
Components all have an image assignable to identify them, along with a description field, and they're arranged in a 2d grid for easy browsing, copying, modifying.
The physics shape editor, the animation editor, the map editor, all of it was so bare bones and yet had things others didn't.
I want that, except without the historic ties to flash, without the overhead of java, and with sexier fucking in-engine rendering of the UI and support for modding and in-engine custom tools.
Not really doing it for anyone except myself, and doubt I'll get very far, but since I dropped looking for easy solutions, I've just been powering through all the areas I don't understand and doing the work.
I rediscovered my love of programming after 3-4 years of learning to hate it, and things are looking up.2 -
Ahhhh I'm in the mood to make a few complains against the company I work for.
Reason: management is done by children, expensive machines are breaking down due to lack of maintainance, having to deal with problems everyday due to machine problems.
Although that's not illegal, just stupid, there's also bad company policies (like if you get hurt can't call an ambulance, must go to the local private clinic, even if you lose a hand ), problems like pools of oil everywhere, electric boxes open (and we do have to put our hands inside to reset the machines)... Stuff like that.
But fuck it, I'm just a temp gaining minimum wage.8 -
Do 9V Alkaline batterys explode when in 90 degrees?
Update- Battery casing is melting in room temp. When pulled out of the heater.4 -
I nearly lost all pictures I had saved of my waifu because I was using an external HD at the time that I used on both Mac and Windows. I had a temp folder on my Mac that I saved into whenever I was traveling. It piled up, so I figured it was time to merge the folders by dragging the folder from my Mac to the external HD (they had the same folder name).
The only problem was.... Mac does not merge folders. It overwrote it. I cried, freaked out, asked every tech friend I could for help, and I nearly lost everything, but I made sure to not shut the drive off. A few hours later, I plugged it into Windows, and Recuva to the rescue!
So while it was a happy ending, that was a HUGE scare for me.3 -
!Dev
So the winter break is over and im supposed to be in my uni but no! It is flu time!
Since a human is a machine, and we have certain tools to fix it when it misbehaves lets try to debug that problem! I will tell you a story how
it ended.
*4 days ago*
Both of my parents return from a trip, dad is horribly sick (windpipe infection) so i isolate myself in my room, put on a mask when i have to be near him and wash my hands 3 times i leave my room.
Nope that didnt fucking work, the next day i get flu symptoms(high temp, fatigue, musle and joint pain)
Nothing too bad i can live with it, so i took paracetamol and called it a day.
But im still pissed at my dad for being a fucking idiot and walking everywhere in the house coughing everywhere...
The next day (yesterday)
Took paracetamol again but this time i got a stuffed and runny nose... So i take nasal decongestants, and... they dont work at all...
Today
I wake up with stuffy and cloged nose again. Aparently those nasal drugs i have been taking only make your nose less runny by drying it up, making it 10000x more difficult to unclog your nose...
like wtf? So if you have a runny and stuffed nose you have to choose which one is better?! Nah i take nasal drugs again and clean my nose with saline water, so far so good!
Also paracetamol started working weaker and weaker... What the hell is wrong with me? Im trying to solve 1 problem and my body finds another one! Curing a human is like coding a app, it will go to shit sooner or later.12 -
I. Hate. Windows. Apps. UGH.
I may never be able to play FS2020 from the Xbox Game Pass again as... Its unable to install, gives a helpful 0x1 error code, and the help page link goes to a 404.
Now, I caused this myself... Partially... Er, no, fully, but I had a good reason!
I wanted to install something larger again and didn't have enough disk space. Fired up WinDirStat and there was a huge, like... 45 GB file in C:\Program Files\WindowsApps\Somedir\
Googling around, I found some people saying its a temp file so that Windows Store could reserve enough space for the app instalation... Okay, so... It got stuck, and I had no way to remove it?
Of course I didn't want to remove all apps of the windows market... So, I did something any *sane* person would never do - Took ownership of the whole WindowsApps and gave myself full control. Then I removed the file and... FS2020 never launched again.
I couldn't even uninstall it! It would give me no error either. It just lagged and then did nothing.
I tried resetting all the ACLs, tried giving ownership back to TrustedInstaller, nothing worked. Failed on some of the files, wtf?
Launching the game only ever told me there was an update in progress.
Tried booting a windows iso image and fix the ACLs from there, nope, also failed for the same bunch of files of FS2020. (Permission Denied while on a live image? Wow)
Last resort, I booted up Linux and tried removing the offending folders from there, only to find out that... Huh. The NTFS module labelled the offending folders as... broken links leading to an "unsupported reparse point". But hey, it let me remove it at least.
Since then, it no longer appeared as installed, but... Now, anytime I want to install it, it just throws an error 0x00000001 with no further details.
So yeah, I know I caused this myself, but after fiddling with the permissions and ACLs and NTFS dark magic, I feel justified in saying - Fuck you WindowsApps DRM.4 -
So guys at the moment Im working at a medical company as a business temp but I really like it here. At the moment they know me as the tech guy. I want to be the official systems administrator here but don't know how to go about doing that.
I have a strong Linux background but everyone here uses windows.
I think that they need a server but I don't think I can just go up to my boss and say "hey, I know I'm not certified yet but hows about you give me money so I can set up a server for you?"
I need advice.5 -
temp commits are generally more useful than git stash.
instead of stashing, do a commit with a message like "THIS IS NOT A COMMIT, DON'T INCLUDE THIS". with some discipline you can then go back to your branch, `git reset --soft HEAD~1` and voila, it's similar to a `git stash pop`.
but it's better because you can do this in multiple branches at the same time and there's no fear of accidentally dropping some stashed commit.5 -
So.. I had lots of jobs.
Since my 20s I picked mostly heavy work instead of intelectual work.
Went to the army, drove trucks, Cutted steel , worked a lot in were houses.
One of my jobs was cutting steel for the molding industry. I was replacing a guy who lost his finger in a saw.
Temp that was there for less then a year tought me so well in the first day, one year latter I was still working exactly has he tought me.
Best worker I ever saw, all movements were precise, exact measures to the mm, ways to do the work better and more precise...
Then proceeded to do shit, spent hours in the bathroom watching anime and playing on his phone.
Turns out he was already on his second year as a temp (wich is illegal in my country, can only do 1 year as a temp), and to make a contract the company wanted to pay even less then minimum wage.
Leaving me doing all the work.
So.. I broke my back, stopped working and as a thanks (I was still a temp and was already at the end of my second year) they just finish my contract.
One year after, the guy I went to replace got fired because couldn't do the work as me or my pro college.
My pro college got a better job.
Now I usually work in the molding industry and many of the companies I used to cut steel to changed suppliers because they started to have problems with that one. Like blocks of steel smaller that what they needed....
To bad this guy wasn't in a manager position... His the kind of guy professionals want as a boss -
>finally gets around to installing vsftpd on home server RPi
>doesn't work
hmm.mp2
>configurating
>confusing as fuck template documentation
>man page isn't much better
>gets it working
>goes to log in
User: pi
Password: a
(What? It's a home file/command server isolated from the Internet. Sue me.)
nope.avi
>why
>tries again
nope.svg
>FUCK
>sees small raw-command log in bottom-right of phone FTP client
hmm.flac
>tries again, watches log
PASS *****
>the fuck
>goes to change user pass over SSH
# passwd
"Current password?"
about half a second later
"passwd: auth token manipulation denied"
>the delay tho
>WAIT A SECOND
one time i got past some parental software bullshit on a tablet by abusing the delay between opening a banned app and the redirect to the normal software at like age 7. (Doing so let me enable remote wipe through Google. bye bye software!)
>*inner 7 year old has autistic screech*
# nano temp
a
abcdefghi
abcdefghi
^O Y ^X
# passwd < temp
>fucking works
>logs in to FTP server successfully
>does the one file download that was needed
why and how did that fucking work -
Needed semi annual clean out temp files for user in Windows 10 because login is slow fix.
https://answers.microsoft.com/en-us...
I always forget where this is or what it is called. There should be a button for this. There was 20 gigs sitting in there. Reminds me of Windows 95 days and registry cleanout.8 -
Finally finished an algo to check an image for grouping of pixels that will form a rectangular area. I got the grouping to work on one image, but found it was utterly failing on another. I went through every step of the algo and still could not find the solution. The 128x128 image was working, but the 128x16 image was not. I knew it had something to do with the dimensions. Started thinking it was overflowing a buffer somewhere. So I started putting asserts in the functions that abstracted the buffer access. None of the numbers exceeded the proper bounds. It was close to bedtime so I finally gave up. I was tired. Then I realized it wouldn't be until the next evening when I could look at this again. So I got up again and started looking at the code again. I had a loop to check the output of my algo that I did the memory access of the buffer. It too was not fully filling my temp image to show how the algo was working. WTF!
Then I finally realized the flaw:
buffer[x+y*height]
And my test loop to test the algo:
buffer[x+y*ymax]
I kept overlooking the error because I was sure it was right. Also my asserts for the functions to access the buffers? They only checked the inputs x and y. So it didn't help that the math was wrong for reading and writing the buffers. It also worked fine on 128x128 images because the width and height were the same.
It is funny that I struggled with this part. The algo was actually surprisingly easy to formulate. I just looked through every point and checked a buffer to see if that point was used. If not then I would attempt to grow in the x and y direction the shaped of that point based upon pixel color. This was saved in a structure while growing that point. Then when that rectangle could not be grown further the inner loop would continue checking used points again.
I still have work to do to use the data this algo produces. I need to now figure out how to parent the rectangular areas to each other. I will probably use my check buffer to keep track of these rects by an index. Then do adjacent checks to determine parenting. Eventually I will have to extend this algo to 3 dimensions, but that should not be difficult.2 -
Fucking pt100 sensors and fucking max31865 amplifiers! Waited a few months to arrive (working on an arduino bbq temp monitor and log server), ordered fucking everything, asembled fucking everything and this piece of fucking shit reads random values between -200 AND 980 DEGREE not even constant and sometimes gives under/over voltage. Tried a whole another max and different pt100s but every fucking time this random madness. WHY THE FUCK IT CANT JUST DISPLAY THE FUCKING TEMPERATURE???
-
I NEED HELP!
Please if I find this out my boss will let me out of the basement. A thermometer that sends a electric signal when the temp is 100. (Or any specific set temp)
I haven't seen the sun in 2 hours. HELP.4 -
do you guys make a temp copy of every single object and/or variable you ever use? ive gone thru a few projects in this company and our code has so much of this. I cant remember now if there is even a good reason to do it like that. you can end up with a lot of copies! haha!8
-
$rant = new Rant('PHPStorm');
When you work with Drupal 8, you tend to become psychotic because this CMS is just a humongous load of crap. But sometimes, it's just PHPStorm that's fucking with you.
This morning, I lost 2 fucking hours because I was editing a temp file instead of my controller file, and spent way too fucking many time trying to find out where it came from until I discovered the tempfile with good ol' sublime text, and realizing the original file wasn't touched since the beginning.
I wish the huge ass SQL error message I saw to no one, not even my worst enemy.
This afternoon, while refactoring a bit of code, PHPStorm suddenly starts to whine that something is either missing or shouldn't be here (gotta love PHP, heh?). So I spent a time I didn't have to copy the whole fucking function to a notepad, then copying it back bit by bit to get where the error came from.
Guess what? Nothing went wrong, everything was ok from the beginning.2 -
Just gave a try to Stackblitz browser based code editor. I tried it for developing Angular app. It's amazing, supports npm and some Angular CLI features as well!
-
So on my computer I have 3 drives. I had two m.2 ssds and one sata ssd. I thought I had misc data on my sata. Turns out I had it on the second m.2. So I have been running my game installs off of the slower sata... I found out because I am updating my m.2 drives to 2TB from 1TB. What is funny is the data on the second m.2 is just temp storage. So I pulled it and put my new second m.2 2T drive to clone from the sata. It was failing to clone over usb for some reason. Not sure if software or something with drive. Cloning in process so will find out soon. The funny part is this makes it easier to update because I was using drives wrong. DOH!
It will be nice going from 3TB to 5TB. Woot!2 -
Quirk of C++ (also C I think)
int array[]={1,2,3,4,5};
int temp = array[0]; //valid access
int temp2 = 0[array]; // also valid
C++ is a member of the Foot Shooters Club languages of choice.
Also, this weekend I learned you cannot have a vector of references:
https://stackoverflow.com/questions...
Well, at least not without some pain.5 -
God, these people...
Little backstory. I'm making an training application and we have a MySQL database set up where some elements of the training are configured. This is so learning experts can easily change some aspects of the training without programmer's help.
Meanwhile, I'm also in the middle of a server migration, because our current server is running a lot of deprecated software and is in dire need of replacement.
This is going pretty slowly, though, because of other, high-priority, work that keeps being shoved my way.
Now, someone accidentally deletes a bunch of data from one of the schemas. No big deal in my book, the training is still in development and we have nightly backups of the database.
So I shoot a support ticket to the hosting provider and ask them to restore a specific schema, telling them to restore the image to some other machine and dump the tables in an MySQL file so I can restore it that way.
I also told them to get the backup of the OLD server, not the NEW one we're still migrating to.
About an hour later, I get a message that they dumped the schema's files in a Temp folder on the D drive. So I RDP to the server to check and... The files aren't there. Just before writing a response asking where the file is, I remembered the server I was migrating to and checked that server, and there were the files.
I had already migrated part of our databases and was testing compatibility before I moved to something else.
The hosting provider just dumped the files of the wrong server, despite me telling them exactly which server to use.
This is not the first time this hosting provider has let me down...
I'm really considering jumping to another if they keep doing this... -
Reverse number(logic)
------
First Approach :=
void reverseMethod(int n)
{
String str="";
int temp=0;
while(n>0)
{
temp=n%10;
n=n/10;
str=str+""+temp;
}
System.out.println(str);
}
-----
Second Approach :=
void reverseMethod(int n)
{
int temp=0;
int rev=0;
while(n>0)
{
temp=n%10;
n=n/10;
rev=rev*10+temp;
}
System.out.println(rev);
}
-----
why the fuck second one is recommended??
In first, at least we do not required to remember that formula.9 -
So, I bought a gaming laptop to have a desktop replacement on the move.
Issue is, when I stress it, it's... Loud af, and runs really hot (~90°c)
Is that normal for gaming laptops? I dunno if I should return it as faulty of just get used to it.
It's Asus ROG Strix Scar III G531GW - An i7 9750H and 2070.
The temp issues only seem to be about the cpu, gpu runs around 80°C and is fine...12 -
3D printer
Bad prints
Hey guys, continuing the yesterday's topic...
https://devrant.com/rants/1879193/...
This is the result of all I learned and tested yesterday.
Problem: new black filament from China.
Result, piece is bent and cracked.
Resolution: 0,2
Temp: 210C
Bed: 60C
Brim: fucking 25 mm
Inicial speed 20 mm/s
Adesion: glue stick + airspray + permanent glue spray
And the pieces still fucking bend in the table contact side.
Top is perfect except for some cracks, but the bellow side is just pressed to itself and bends, warping the piece.
What could I change now? What could be the problem and reason for this? Worked perfectly with the first white filament.31 -
Normal people : Save thier work regulary.
Me :
Oh no matter, notepadd++ saves opens files somewhere, i'm good with that.
There are important lohins, passwords, some temp stuf and work in progress for something, there are backups and information needed.8 -
The PO asked if there were a couple of scripts he could run to get counts of specific things in the production database.
after a few days and iterations I'm now getting suggestions from him on how to create and drop temp tables -
I'm... Confused? Undecided?
I like the place where I work because of the people... Even the worst are nice (tough sooner or later I'm gonna have words with the engineer... I had no problems so far but when he gets mad his a dick).
I'm being prazed a lot... One of my bosses say that I'm a find and every time I talk about looking for other jobs everyone tries to make me change my mind.
On the down side... They pay like shit. I should be getting double at entry...
Machines have no mantainance... One is even working without oil and that brakes my hearth.
I'm still a temp... One would think the owners would be doing everything to keep me, since I can get to a lvl that others take years and I keep finding mistakes that more experience workers don't see.
Well... I'll wait and see. They can't keep me as a temp for more than a year... -
The temp blankspace when switching between frontend and backend codes after intensively focusing on one for a solid 2-3 hours.
-
PHP dev help/advice needed!
We have problems with mysql. Still stuck with mariaDB, I'm using indexes (correct ones) and we have problems with scaling. we have a few tables with over 100mil rows, 1 of them is being read every morning with a subselect that counts unique rows, and fails every time because of timeout/lock, the temp table size was increased and helped for a little while but as time goes on the table grows and the problem reappears. I'm reading from a slave server that was purposely created for read only, yet we still have problems. We're using managed dedicated servers for out hosting and they aren't willing to optimise the database configs for our needs. What are the easiest options for scaling at this point? Going fully dedicated server and perconaDB? NOsql? Sharding the server? Anyone got any good blogposts or something to read about this? your own experience?11 -
Just bought a new, cheap laptop for travel purposes.
It turns out I cannot start Windows 10 without giving Microsoft my phone number or an email. And the installator asks me if I agree to allow the apps to use „advertisement id”. It doesn’t ask if I like rough pegging.
Luckily, there’s a lot of temp e-mail solutions and I happen to have internet access on my other devices.
Then I have to spend 20 minutes uninstalling all the crap Asus preinstalled on MY computer. Seriously, when did I order „Asus Giftbox” or McAfee virus? The Asus-crap deinstalator displays a screen where I am asked to create an Asus account.
Question to apple funboys: is the experience the same when you buy a new Mac?12 -
I don't know why it happen. Windows update then Windows create a TEMP Users Folders, put all the documents/download/etc location (path) into one of those temps users folder that was just created. Hopefully my clients didn't lose their files, since the Good users folder was still there.
Okay now Microsoft, listen, it's okay to update your OS. It certainly need it. BUT HOW THE FUCK WOULD YOU CREATE A NEW USERS AND CHANGE THE PATH OF PERSONAL FILES! Thumb up! At least those file were not erased... -
They dont mention it in any reviews but dell has cooling problems. Yesterday I bought a brand new g5 from a shop and fans were not spinning until 80c from which it started spinning at 4900rpm like a vacuum. Note that I have latest bios so its not temperature table problem in bios.
I found out that there is a driver for thermal power which you can install and for most people it does the work (runs 2200 rpm silent cooling for most of time and 4900 rpm when cpu gpu temp goes above around 60c which is annoying)
So I had to spend entire day on figuring out how to control cooling fans myself. And even then dell limited available speeds in bios at 0, 2200 and 4900 rpm.
Anyways now my cooling fans run at 2200 rpm until 70c and 4900 after. So i get some nice silent performance for 90% of what I do and as for gaming, full fans after 75c is fine. I ran DOOM from steam and max temps Ive got were around 85-90c which is pretty high, so Im thinking of doing a repaste event though im afraid of voiding the warranty.3 -
Honest question:
For an open temp role, we are looking for someone that knows and used Angular 1.5 and ECMAScript 6.. yet everyone we have interviewed so far only knows up to Angular 1 and doesn't even know a new version of JavaScript came out, or have never used it before.
Are we really asking too much for someone interested in a temp role or are we just getting unqualified candidates?9 -
So... I've been looking for a week on why my machine was braking tools on every piece...
Found out yesterday, it was machining without water....
Told the engenheir (my direct boss)... Started working at midnight and was the same...
Decided to fix it, besides the fact that I'm a temp and shouldn't be doing his job...
Can't fix it... To many broken pieces....
Well a few metal pipes like straws and some rubber bands and its fixed for now...
I really can't understand why a engenheir gets 10x more money and can't bother to fix the machines....
Well I know why... He's not the one paying for new ones when these brake.
Next: other machine Is working without oil...
And no, I'm not messing with that... In a few months they will just have to buy a new one.4 -
> trying to kill Windows Update to let anything else use my HDD (as I re-enable it occasionally then forget to disable it before shutting down)
> Task Manager shows 2 instances of CMD, grep from temp, 4 instances of net and "Microsoft Windows Netcode Generator"
yeah i've gotten bit by something9 -
Dammit! CSS is such a huge pain in the ass. I just want to use a <style> tag inline with a class to control margin positioning of one friggin’ image. (Yes, I know it’s better in a CSS file but this is a temp fix that will be reverted soon.)
<style>
.30-day-seal {
margin-top: -27.5em;
margin-left: 39.5625em;
}
</style>
<img class=“30-day-seal” src=/path/to/img.png”/>
Nothing happens. Only if I use a style=“” attribute directly in the img tag.
I’ve even tried:
<style>
img.30-day-seal {
margin-top: -27.5em;
margin-left: 39.5625em;
}
</style>
And
<style>
.30-day-seal img {
margin-top: -27.5em;
margin-left: 39.5625em;
}
</style>
And even
<style>
img .30-day-seal {
margin-top: -27.5em;
margin-left: 39.5625em;
}
</style>
Why do I suck so bad at this?! Still!?6 -
Ugh, retrieving specific data fields nested within several arrays and objects in Javascript/Json jacks me up every fucking time!!!
Anyone ever fuck with the MapQuest geolocation/geoqueries api??
I'm trying to retrieve the lat/lng values out of responses generated from submitted address strings, and it's nested about 8 json layers deep.
I feel like I'm overthinking this?
I can access the values in my web console, and can reach them after using the console to assign them to a temp var, but can't get to the values from my actual js code. Only when I run some business logic from the console.
Here's a shitty example of me explaining the tree:
[{...}]
0:
locations: Array(3)
0:
latLng:
lat: <data here>
lng: <data here)1 -
boy all i did around this time period is make money. and try to make more. and try to bypass blue collar temp jobs back into career moves.
wow this time period sucked.
sucks more now that you people have lied for years about the year2 -
Why the fuck do sites in 2023 still not verify email addresses are owned by the user before allowing you to register!?
Every time I get a welcome to x you have successfully registered to site y mail I get mildly frustrated and I don't like it!
And why are people using random mail addresses from unknown people to register. Just use one of these temp mail services if the site won't check that you're the owner of said address it sure as hell won't check if it is from a legitimate mail server. And if it does just use a burner mail you fool!2 -
Frigging jvm crashing god every god dammed time...Here I was all jolly about to start presenting a report to my team , I hadn't exported it to HTML yet so I was presenting in the app . Half an hour goes by and it's all good no problems , manager suggest I export a report and pass it to everyone . The moment I right click jvm HANGS THE APP . I try to save the session file but fail horribly , the temp file only has unreadable , unimportable data...fml now I have to go back through all that from memory...
-
!dev
When a process works better than expected but you were hoping that it only works as expected...
USPS (mail service) is known for being crappy. I couldn't submit a temp address change via web bc I couldn't type my apartment unit # into their web form but a mail hold request where u manually just enter any address worked.
So I was at my parents for a month, just got back yesterday.
I put in a mail hold n before I left my apt, but expired on like Wednesday.
So when I got back Saturday, I expected a huge mail dump but I couldn't find any mail...
However last week I went to the local office and put in a Temp change of address bc there was a chance I'd go just to get the mail but not stay for other reasons...
Got confirm letter that it would be effective like Saturday.
I'm thinking it won't cover the mail held during the mail hold.
Well apparently it did... So now all my mail is at my parents but I'm back in my apt... -
My current work...
3 years of formation...
3 years of experience...
And I didn't know the basics to operate the machines used here.
Also I'm only getting minimum wage and I'm a temp so fuck it. I already knew to much for what I'm paid.
Also...
Extra formation for the next job :p -
To solve problems in life, One must be irritated to have a solution or else it will be a norm to the society... We want to propose something that can eliminate our irritation. I, once commute a trycycle who charged me 5¢ because it was too far to fetch other commuters... So i kicked his vehicle and he drove away. I reported to the traffic office because thats where they record the violation and they never issued this case... I can think of a PWA that lets the commuters to report those pesky and annoying trycycle driver.
We won't display the bio of the violated person but we will put their temp number written in their body parts. So that the commuters wont go to the office just to report, instead. Let the commuters immediately report them. Im ranting because of overcharged fee... Even among of my classmates agree... A hundred dollar idea for this. I really need to solve this because it irritates me... And by the way, there wont be report abuse because the officer will confirm if both parties crossed the line of argument via message/call. Its just within the city so its not much of a deal outside the vicinity
PS. dont judge my english. I suck at it. -
Why is it always so much easier to just let them wait til the fix is live vs trying to explain a temp work around?
-
I've been waiting to pull the plug and move to a new company for some time now... The only reason I haven't done it yet is, I don't like too many variables. I am waiting to pay off a loan before going job hunting, but saw an ad this morning which tickled me a little bit... So, I'm job hunting after 1156 again... Only this time, I am in no rush (not to temp fate) and will try and find a better job
-
That feeling when you finally get to tackle that "temp fix" hardcoded TODO smell that you had to put as a band-aid
-
So... I've been thinking, I tend to default to LVM when trying to create easy-to-manage disk partitions, or when I want to backup a database without long lockings during a dump... Though, now... I got thinking.
What do you guys think, which is better in terms of functionality: BtrFS or LVM?
I know BtrFS offers such thing like full snapshots that allow to easily transfer just the increment over the snapshot origin off to a remote server for archival, but I never fully grew to trust btrfs as a server filesystem... Its...
Younger, and not as widespread, not to mention I don't know any performance statistics to recommend its use for this or that case (Like... Would a high-load database engine stutter flushing all those changes on disk while reading / writing temp tables and such)6