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 - "file"
-
Received "emergency update" code from internal enterprise security team. Wasn't given time to do code review; was assured code was reviewed and solid.
Pushed code to over 6k lower-level servers before finding this gem buried deep within:
...
cd /foo; rm -rf *; cd /
...
(This ran as root, and yes, the cwd was / from earlier in the code).
/foo, of course, did not exist on some servers.
Now, it is those servers which do not exist.
FMLundefined security root linux file not found directory structure rm -rf / directory not found fml rm15 -
Now I want to create some kind of game, a bit like "hacknet" (check it out on steam, really cool), but the one who answers you is your own OS5
-
Tired is the day when waiting for a file to load, only to realize it has loaded long ago and the file is the spinner.4
-
Compilation completed. Output file size: 15KB
*Adds a JSON library*
Compilation completed. Output file size: 1.4MB
SON OF A BITCH10 -
Just wrote a Python script to generate me a JSON file.
I forgot the 0th command line argument is the file you're running...
On first test it overwrote itself.15 -
So I leave about 300 GB of files to transfer overnight. Come back in the morning and the entire fucking transfer has been paused because there was one duplicate file and it wanted to know whether to replace it or not. WHY CAN'T YOU JUST KEEP TRANSFERRING THE REST OF THE FILES?8
-
Found this gem on GitHub:
// At this point, I'd like to take a moment to speak to you about the Adobe PSD format.
// PSD is not a good format. PSD is not even a bad format. Calling it such would be an
// insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having
// worked on this code for several weeks now, my hate for PSD has grown to a raging fire
// that burns with the fierce passion of a million suns.
// If there are two different ways of doing something, PSD will do both, in different
// places. It will then make up three more ways no sane human would think of, and do those
// too. PSD makes inconsistency an art form. Why, for instance, did it suddenly decide
// that *these* particular chunks should be aligned to four bytes, and that this alignement
// should *not* be included in the size? Other chunks in other places are either unaligned,
// or aligned with the alignment included in the size. Here, though, it is not included.
// Either one of these three behaviours would be fine. A sane format would pick one. PSD,
// of course, uses all three, and more.
// Trying to get data out of a PSD file is like trying to find something in the attic of
// your eccentric old uncle who died in a freak freshwater shark attack on his 58th
// birthday. That last detail may not be important for the purposes of the simile, but
// at this point I am spending a lot of time imagining amusing fates for the people
// responsible for this Rube Goldberg of a file format.
// Earlier, I tried to get a hold of the latest specs for the PSD file format. To do this,
// I had to apply to them for permission to apply to them to have them consider sending
// me this sacred tome. This would have involved faxing them a copy of some document or
// other, probably signed in blood. I can only imagine that they make this process so
// difficult because they are intensely ashamed of having created this abomination. I
// was naturally not gullible enough to go through with this procedure, but if I had done
// so, I would have printed out every single page of the spec, and set them all on fire.
// Were it within my power, I would gather every single copy of those specs, and launch
// them on a spaceship directly into the sun.
//
// PSD is not my favourite file format.
Ref : https://github.com/zepouet/...16 -
Client: Let me send you the files needed.
*client sends link to their own Dropbox folder page, not actually sending a shared link*
Me: Uuuhm, the link you've just send is only viewable by your account.
Client: Oh, hold....
Client a bit later: *sends actual Dropbox credentials over email in plain text*
Why.26 -
I don't use Google/Facebook for privacy reasons (and their sub-services etc). Haven't used them for ages but noticed that google still loads a lot of domains like analytics etc. This goes for facebook as well.
I now blocked a lot of google/facebook domains through my hosts file.
It's funny to see the amount of DNS requests to those fb/google connected domains nearly go to zero and also the fact that I literally can't load google/facebook anymore!132 -
Yes I am a Linux user and yes I don't like windows and this is NOT a windows hate post but I've been a windows user intil the age of 15 and this is the one thing I still cannot wrap my head around. Fun fact is that I also talked about this with my examinator guy who is a 'hardcore' windows user and he fully agreed 😆
Whenever I was either at the start menu or within for example the downloads folder, when I'd put something in there or downloaded something and later on wanted to search for it through the start menu or the folder viewer itself, IT ALWAYS RETURNED AS 'NOT FOUND'.
Whenever I search for that fucking file, it always said that it couldn't find the damn fucking file.
AND THEN WHEN YOU SCROLL THROUGH THE FUCKING FOLDER IT IS RIGHT FUCKING THERE RIGHT IN FUCKING FRONT OF YOU.
I've used many linux distro's and even OSX for a very little and it always works perfectly on there but windows ALWAYS fucked this one up for me and appearantly (according to them though) I am not the only one who this doesn't work for!
I still find this one very weird.20 -
Add functions inside of jquery.min.js file just because im too lazy to add script source to html file6
-
"Tabs create smaller file sizes. I run a compression company, trust me, I've devoted my life to minimalizing file sizes."
- Richard Hendricks10 -
Overheard this today.
Client: I've tried running it but the batch file isn't working.
Tech: You're a batch file.3 -
Noob mistake, forgot the rename an HTML file to a .php file; was wondering why things weren't working at all.2
-
Lead: "We write SOLID code"
Me: *opens a controller file*
Controller: "I'm 8000 lines long and hell yeah I'll access the database and file system directly!"5 -
I just mistyped a keyboard shortcut that caused my computer to say «I AM FILO AND EVERYONE LOVES ME» at full volume.
I have no memory of leaving a script attached to some random shortcut, and I can't find the setting anywhere.
Young me was a narcissistic asshole2 -
Pulling my hairs off because a file is not being executed in the server.
Later realized I didn't even upload the file :(1 -
FUCK Windows File locks! I want to fucking delete a file, I don't care if anybody uses it right now! I'm the admin of this system! Fuck you windows6
-
hi 👋🏻 everyone. Recently I created a file system UI in react. Would love to have some feedback on https://github.com/imshubhamsingh/...9
-
I hear my intern yelling at Cortana in the other room. "Cortana, open keyboard!". He repeats this 5+ times. Issue is there is no keyboard connected so he just wants to use the on screen keyboard, and thinks Cortana will open it for him. Issue is the computer isn't hooked up to the Internet, and Cortana does not do that command without the internet.
Just grab a fucking keyboard!!!25 -
All front end written in one file. File has over 6000 lines, mix of a php, javascript and extjs. It kills my IDE.5
-
Today a colleague of mine asked me to help with some javascript. So I said sure, it will be done in 5 minutes. Im a fullstack developer with a focus on backend in this project.
So I opened the frontend part and was amazed how shit the javascript file was. Yes you read it right FILE...
One big file with a lot of variables in the window scope.
Because she was in “charge” of the frontenders because she works there a bit longer then me I never checked the frontend code.
I said I wont/cant help unless I see better code. I explained to a trainee what could be done to change it and Im impressed that the trainee did a better job then the employee and quick as well.
Got the whole code in seperate files with each part of the code in seperate scopes within 2 hours.
What Im saying here is that even as student, intern or trainee you can know things better thsn someone with experience, dont be afraid to speak up. Because everyone can learn from eachother.7 -
So... the US Govt. just released a shit ton of files on JFK assasination, and being the data hoarder that I am, I promptly requested a bulk download link...
Apparently I underestimated the "shit ton" part, coz each of these files is around 2.4GBs... and I dont have the data to download them :-D :-D
FML30 -
My typical development workflow:
$ ssh user@devserver
$ cd /appdir
$ git clone/pull
$ vim file
$ vim another file
$ tail -f /var/log/applog
$ vim file
$ git commit -am 'fixed the glitch'
$ git push origin dev
^D3 -
Friend : I know how to program!
Me : Cool! What language do you program in?
Friend opens notepad and names file program.bat
You have disappointed me8 -
// to understand infinite loop, see the bottom of this file.
At the bottom of the file:
// to understand infinite loop, see the top of this file.2 -
Accidentally Click on .doc file in File Manager
Microsoft word starts to open it
I press cancel.
Word- Attempting to cancel ....
And then opens it anyway.
Me - Wut?5 -
FUCK YOU EXCEL!
Multiple monitors to show multiple sheets at once?
Excel: Not allowed.
FUCK YOU
Open multiple files at once?
Excel: Not allowed, I will only show you one at a time.
FUCK YOU
Multiple Desktops to have multiple setups to easily switch between?
Excel: Not allowed, I'll show you the same spreadsheet on all desktops!
FUCK YOU
FUCK FUCK FUCK18 -
Support elevates a ticket.
Ticket: customer is getting a weird error uploading photo.
Can’t recreate. Tell support to call them back. I’ll sit in on the call.
Watch the process. Noting extraordinary...
Hmm.
Me: can you get the customer to open the pic in photo viewer?
Support asks as much.
Support: uh, he says he gets a similar error opening this photo in the photo viewer.
Me: 🤦♂️ that is a corrupt file! -
Long time ago, back in a day of Microsoft Office 95 and 97, I was contracted to integrate a simple API for a payment service provider.
They've sent me the spec, I read it, it was simple enough: 1. payment OK, 2. payment FAILED. Few hours later the test environment was up and happy crediting and debiting fake accounts. Then came the push to prod.
I worked with two other guys, we shut down the servers, made a backup, connected new provider. All looked perfectly fine. First customers were paying, first shops were sending their products... Until two days later it turned out the money isn't coming through even though all we are getting from the API is "1" after "1"! I shut it off. We had 7 conference calls, 2 meetings, 3 days of trying and failing. Finally, by a mere luck, I found out what's what.
You see, Microsoft, when you invent your own file format, it's really nice to make it consistent between versions... So that the punctuation made in Microsoft Word 97 that was supposed to start from "0" didn't start from "1" when you open the file in Microsoft Word 95.
Also, if you're a moron who edits documentation in Microsoft Word, at least export it to a fucking PDF before sending out. Please. -
By the time windows was extracting the file, I downloaded 7zip, installed it and extracted the file and started editing the files
-
Tomorrow's my last day.
There is no exit interview scheduled. I'm not surprised, there hasn't been any 1-on-1's in about 2 years, and any feedback or complaints are never addressed.
Just need to bite my tongue for one more day.1 -
Have you ever thought that even today, if you had a very large "file", say 10 petabytes, that it would take 74 hours on a 300 Mb/s connection to transfer it anywhere in the world , therefore it would still be much faster to fly it physically anywhere, even with the ~5 hour time to transfer it to some sort of drive(s) at 5 gigabits a second.9
-
Java dev here. I rewrote an app and replaced a system call to ssh with a modern jaxrs post for uploading a file and (new) some additional data.
I even used a stream.
1 hour in production, first client doesn't get his file. Log says OutOfMemoryError: heap.
Me: wtf? I already use streams.
Looking at the Jersey library. Docs say nothing. An issue from 2013 says: oh if you silly don't use the Apache httpclient addon, we disable chunking and buffer the whole body, because our tests fail with the jdk included http client otherwise.
Me: meh.
No warning in the logs. Thank you soooooo much! Who could have known?4 -
I have this project I've inherited, yea I seem to do that a lot, but this damn thing, has to run in php5.4, has deprecated functions for php7 everywhere and a lot of them and there's no classes anywhere beyond some libraries.
Everything is procedural with random scripts being injected left right and center.
I kid you not,
$thisThing = true;
If(x==y)
require "path/to/some/script.php";
else
require "path/to/a/slightly/different/script.php";
If($thisThing === false){
// well it was modified in that small block about 10 different times
}
Those injected scripts then accept data from the parent scope so, looking at file X, you need to have open file A,B, E, and M to understand where variables have been initialised and what there current state could potentially be.
Basically this thing was bandaid after bandaid for feature requests with 0 refactoring.
Here I am trying to implement some basic functionality (should only take an hour or so + a bit of manual testing) but no, I'm literally at the point of hitting the delete button on the entire project and starting again.rant why you no work what did i do to deserve this alcohol is your friend commented out blocks everywhere even with git there was no deleted code kill me now where the hell did that thing come from cocaine may help is this v2 file the right one don't do drugs18 -
— Filezilla *open prod ftp*
— right click a file *edit*
— edit the file, save,
— filezilla *save new file*1 -
Me stupid:
I copied a file from a server and deleted it on the server before the copying was done. Thought it was done. It wasn't though.
Me lucky:
Linux only tags files as deleted when a program is still actively accessing it and deletes it when the last access disappeared. Quickly copied it on the server, not that my scp dies and the file is gone for good. However scp didn't die. Got the file. Finally deleted it on the server again after making sure I had it locally.
I love linux.5 -
Email from a client today: The programmers just need to add an "if/then" code that IF ... BUT NOT ... THEN ... ONLY ... AND ...
God help us if they discover while5 -
Nav bar is not placed at the top....
Spend an hour debugging. Finally....
Ctrl+a, Copy, paste into new file.
Save and overwrite old file.
Works.2 -
Programmers before:
I need to fix this assembly code to control an airplane take up 3 bytes less, because the 512 byte storage unit is at its limits
Programmers now:
https://screenrant.com/call-duty-mo...
Also, deleting parts of the game after the player is done with them is a no go9 -
What's a last day on the job suppose to be like?
I'm sure it's not working until 2am helping the company finalize a project. They are not happy that I decided to go to bed after a 12 hour day instead of pulling an all nighter helping.8 -
Compiled a small style change in LESS file. Whole page is broken. Realized holiday replacement made all changes in main CSS file which is generated through LESS compiling.3
-
Okay, first rant here.
Spend most of my morning searching for a js file that was supposed to build some graphs in a report page in this legacy system (still in active development) just to find it embedded inside a random .php file being included inside a wall of if-elses (that shit has around 100 lines) on the index.php (that somehow manages to route all the nonsense that's going on there).. was it really that difficult to make it a proper .js file? and actually import it on the page that is using it? c'mon...4 -
I spent a *very* long time trying to work out why my README file wasn't formatting....
It didn't have a .md extension.
:/1 -
Why do they send flat colour logos as fucking jpegs? Indexed png or gif unless you like the artifacting on your shit logo, dickbrain.4
-
Is it just me, or is there no simple way to create a new file on Mac OS?
Every time I need to create a text file or something, I have to either touch a file via the console or copy & paste another file and rename the extension and erase the content.
Why isn't there a "New File" option on right click?23 -
I have come across the most frustrating error i have ever dealt with.
Im trying to parse an XML doc and I keep getting UnauthorizedAccessException when trying to load the doc. I have full permissions to the directory and file, its not read only, i cant see anything immediately wrong as to why i wouldnt be able to access the file.
I searched around for hours yesterday trying a bunch of different solutions that helped other people, none of them working for me.
I post my issue on StackOverflow yesterday with some details, hoping for some help or a "youre an idiot, Its because of this" type of comment but NO.
No answers.
This is the first time Ive really needed help with something, and the first time i havent gotten any response to a post.
Do i keep trying to fix this before the deadline on Sunday? Do i say fuck it and rewrite the xml in C# to meet my needs? Is there another option that i dont even know about yet?
I need a dev duck of some sort :/42 -
Telling my mom how to do computer stuff is like programming, I need to outline every fucking step. Yes this includes file management.
-
Code languages should stay within their designated file extensions! I'm having to work with SQL in .resx files at the moment! Then there's HTML which is like a skitty little travelling monkey that I've found blundering about in SQL strings before, let alone people trying to sneak it into .js files, which is one reason I chose Angular over React btw (and don't give me that bullshit of separations of concerns vs separation of technologies).
It is mostly trivial to work with separate files across languages and doing so gives you the benefits of that languages support in the text editor or IDE you are using. It becomes easier to work with, the behaviour is predictable and it is formatted in a readable manner, ultimately reducing the potential for mistakes. Stop trying to make me put everything in strings!!1 -
I kinda started programming back in the day, by breaking 2 school servers using a simple batch "virus"... it effectively opened tons of porn videos, threw the mouse cursor to the top right corner of the screen and shut down the PC after 15 seconds.
I masked the file and made sure it looked like internet explorer (since my school, back in the day, didn't use chrome and didn't allow the installation of chrome)
It was meant to troll my friend but all computers shared files with each other which meant even the private PC's of my teachers got my "virus"
Eventually it landed in the startup folder and messed everything up. I got snitched out, and I had to fix it
(I literally just wrote another batch file to delete my so called virus... because of the 15 seconds time limit I had)1 -
Looking at a file with no extention in the Windows file explorer... the file type is listed as "file"... no shit!3
-
Server configuration file formats...
some use custom text file
some use ini files,
some use xml..
some use json..
some use yaml..
some use toml..
How many file formats I need to learn!!!11 -
Why the fuck should I echo javascript?
Why in fucks name you do not deal with JSON responses?
Plugin devs are either lazy, or simply stupid as fuck!
Ps: Or I'm actually crazy6 -
When an analysts opens a ticket about a wrong result csv file but instead of putting the actual file there , he puts a screen shot of it
-
A question arose in our office today and I can't stop thinking about it:
If you imagine your life as a file lying somewhere, being steadily changed and expanded - of which filetype would it be and why?8 -
File extensions.
Hidding file extensions.
For security reasons do not enable hidding file extensions.
Cmon.2 -
File hosting like GitHub?
Basically.. I want to let my Patreons download major updates to my game before I upload them to Github. Now, I will get a GitHub Developer upgrade once I get $7+ per month from Patreon, and host the updates on a private repository for a few days before uploading it to my main dev repository, but I something until then. Some place I can host the loose files, or a .zip at a static link for free. (that can only be accessed by that link) ^~^12 -
GOD DAMN !@^@ react-native bridge to #@$^&ing objective-c bridge to an intermediate objective-c friendly #$@!ing swift class to communicate to a @$#!ing external swift framework #$@!ing POS!
And $!@# you Apple Mach-O Linker error!5 -
A few weeks ago, I was kept up until the wee hours of the morning trying to figure out how in the hell the Monty Hall problem works. After finally getting it (I'm slow, okay?), I decided to write a program to run simulations of it.
First incarnation of program took user input. User enters what door they choose (1, 2, or 3), then is told what door Monty opens, then given the decision of staying with the door they originally chose or switching, then informed how that worked out for them.
Second incarnation of program ran on a loop. At the start of each loop, a random door is picked for the user guess. Then the door Monty opens is calculated from the remaining doors (excludes user guess and prize door). Then user switches doors (choosing the door that was not their original door or the door Monty opened). At the end of each loop, if the door they switched to was the prize door, it would increment a win counter, else increment a loss counter. After running the loop 1000000000 times, it printed to console `You always switched doors, resulting in ${wins} wins and ${losses} losses`.
THEN I decided to write a variation to run a while loop on the outside of the loop to increase the number of total doors until the point where the decision to switch doors hurt more often than it helped. At this point, I decided to incorporate file I/O and write to a file rather than a console. And that was neat!
And then I decided it would be cool to go back to the three door variation, printing on each loop the original door, the door Monty opened, the door that was switched too, the result of the switch (win or lose) and what the prize door was.
But for the life of me, I couldn't seem to get the file to write properly. It would, like, always crash my terminal. I tried open + append, I tried append. I tried createWriteStream. Still just failure.
And then I changed it to an appendFileSync and happened to look at one of the files that I was writing to. "Huh, over a gig seems a lot."
"Well, how much are you writing each loop? Did you forget to keep in mind how many bytes that would be?"
TLDR: If you're going to write a program that's going to write data to a file on a loop, you might want to figure out how much it's going to end up writing .... before trying to run it. And running a loop 1000000000 times may be a little excessive.
*face palm*2 -
Grabbed a case off of the backlog, and noticed the estimate was set to 100000 hours.
Time to get a coffee before tackling this task.4 -
Now my client does not want to rely on Amazon S3 because of the One Outage that it ever had a couple what weeks ago I forgot already. So my dumbass blurts out well we could always just back up to some other image or file storing website. But now I'm expected to implement this right away when I really haven't thought about it at all I mean I would have to write some sort of failover and some sort of daily or syncing mechanism. I guess I should forget about any direct upload to S3 code that I have written. Really I guess I have to wrap all of the image and file handling stuff with my own solution. Which actually that will be very nice when it is done and I could use this on other projects but it's quite a lot of work for something that I don't feel we really need at this stage in development. Just because you're using stuff on production that has am enormous red TEST label in the way of the ui doesn't mean i can code bullet proof software any faster4
-
Meet Android, years of development by thousands of developers and still can't open a PDF file downloaded via chrome
'Can't open file'3 -
I've seen lots of other ranters complain about huge code files... I just came across 27k Javascript extension for a software like Postman ...
First I thought cool I can work on it since it's JS, then 27k of lines later: I think I'll go sleep .-. -
PSA: If you use jQuery and BlueImp's jQuery File Upload there is a big potential vulnerability you need to be aware of. If you use NPM to pull the repo into your public folder, the "server" folder will be available for people to take advantage of. "Hackers" may be able to upload malicious code and replace parts of your site.
I had a site hacked and later saw on Google Analytics that people were posting to random URLs in that folder. The fix is to simply delete that folder, but if you use NPM, you need to be extra careful it doesn't come back.
Also, I didn't investigate further. So I'm not sure what (if anything) is vulnerable in there, or if it was just the specific version I had. To be safe, if you use this plugin (as MANY people do), just delete the folder.
Link to the repo for your reference: https://github.com/blueimp/...4 -
!rant
Need help. Just realized that I have been responding to every interaction I have had lately in a negative way. Not sure what's going on, but I just seem to always respond with a negative response. I consider myself a critical thinker, and a devil's advocate. From a previous comment on this site, to a random facebook post of someone sharing an animal rights post. I usually just ignore them and move on, but I ended up responding with poor intention.4 -
Now that's what i call a fucking file.
And yes that's a single file. I converted my HDD from ext4 to BTRFS and the conversion has entire HDD backed up in this file.11 -
Your Thunderbird inbox file is 8GB and you complain about the speed but still, when I fucking ask you if you want me to archive for you the fucking mails, I get a "Hell no, I don't like them archived because then they are difficult to find"... go to fuck off.
-
Okay ... Windows, I really tried to be nice, but that's it. You get off my ssd right now ...
Just got the error: "filename is too long - unable to delete file" (full name incl. path)
Seriously, WHY?
I mean, sure ... Long file paths/names are a thing and this is why there are limitations. I am totally fine with it!
But Why the hell allows windows you to create those files if it is unable to delete these files later ...
I don't get it. Maybe I am just hit my head to hard as a child and someone may enlighten me ...
PS: windows was running in a VM to give it a real serious try after years on Linux4 -
FUCK YOU AMAZON! Stop telling me my configuration yaml file contains a tab... THE FUCKING FILE DOES NOT EVEN EXIST!
-
I can not believe it took me so long to discover Cmder. I finally have a tabbed console on Windows.2
-
Malwares are nasty applications, that can spy on you, use your computer as an attacker or encrypt your files and hold them on ransom.
The reason that malware exists, is because how the file system works. On Windows, everything can access everything. Of course, there are security measures, like needing administrator permissions to edit/delete a file, but they are exploitable.
If the malware is not using an exploit, nothing is there to stop a user from unknowingly clicking the yes button, when an application requests admin rights.
If we want to stop viruses, in the first place, we need to create a new file-sharing system.
Imagine, that every app has a partition, and only that app can access it.
Currently, when you download a Word document, you would go ahead, start up Word, go into the Downloads folder and open the file.
In the new file-sharing system, you would need to click "Send file to Word" in your browser, and the browser would create a copy of the file in a transfer-partition. Then, it would signal to Word, saying "Hey! Here's a file that I sent to you, copy it to your partition please!". After that, Word just copies the file to its own partition, signals "Ok! I'm done!", and then the browser deletes the file from the shared partition.
A little change in the interface, but a huge change in security.
The permission system would be a better UAC. The best way I can describe it is when you install an app on Android. It shows what permission the app wants, and you could choose to install it, or not to.
Replace "install" with "grant" and that's what I imagined.
Of course, there would be blacklisted permissions, that only kernel-level processes have access to, like accessing all of the partitions, modifying applications, etc.
What do you think?7 -
Accidentally moving a file and reverting the change while the file was in use in Bash for Windows. Now I have a file even the sole Administrator (me) does not have access to delete...5
-
When four issues get assigned to four different developers and the analysis and the proposed fix for each is a change to a single class file that has been locked by a fifth developer.1
-
I just ran "sudo chown 755 /my/file" and couldn't run...
I checked the file and it said "-rw-r--r-- 1 755". And I was like: That looks like a 644, why does it say it is 755. I stared at it for a minute until it suddenly clicked. Hey, normally that does not show me a bitmask! It only shows it as r,w,x!
Yep... I ran chown instead of chmod. The 755 was my user now. Fuck I need vacation.1 -
Me: *tries to save a file using inscape to my documents folder*
AVG: OMG OMG I SWEAR INSKAAPE JUST TRIED TO DELETE *literally the file I just tried to save* BE THANKFULL WE MADE SURE YOU CANT BE PRODUCTIVE WITHOUT TURNING OFF YOUR AV4 -
So, I'm looking into something and end up on Stack Overflow. Someone posted the question:
"Does minified javascript improve performance?"
This question was old as shit, all they way from 07/25/09, and about an Adobe Air application. (Remember that? Me neither...) It had a great, accepted, and still accurate answer, posted the same day the question was asked. Now, fast forward 8 years and on 12/08/17 (A mere 7 months ago...) the following answer was posted. I don't know what they were thinking, but here it is, complete and unabridged, with my comments in square brackets:
"I'd like to post this as a separate answer as it somewhat contrasts the accepted one: [Somewhat contrasts? More like completely contradicts...]
Yes, it does make a performance difference as it reduces parsing time - and that's often the critical thing. For me, it was even just simply linear in the size and I could get it from 12s to 4s parse time by minifying from 3MB to 1MB. [First off, your parse time should NEVER be THE critical thing, but secondly, and more importantly, WHO THE FUCK HAS 1MB OF MINIFIED JS ON A PAGE!!!]
It's not a big app either, it just has a couple of reasonable dependencies. [THERE IS ABSOFUCKINGLUTELY NOTHING REASONABLE ABOUT ANYTHING HE JUST SAID! What dependancies is he using?! You could use minified and not even gzipped jQuery, AngularJS, Vue, Ember, React, AND Dojo libraries on the SAME PAGE, AND have 118k of application code, AND STILL NOT HAVE HIT 1MB QUITE YET!!!]
So the moral of the story here is: Yes, minifying is important for performance - and not because of bandwidth, but because of parsing. [Javascript should NEVER take longer to parse then to download, even on a low powered device...]"
So, yeah, I'm at a loss for what this guy was thinking, but the thought the people like this exist, and that my browser might one day be subjected to their horrific nightmare of code terrifies me...2 -
Legit the file name chosen by a client. Honestly haven't renamed it at all.
I did save the cropped version of the screenshot so I can upload this as a GIF though. -
So, apparently, in 2015 our webhost (ixwebhosting) was purchased by Site5... This week, they finally migrated us to Site5 servers without warning, taking my email down in the process...
Today, after following the instructions in their own KB article (that tells you to click an icon that doesn't exist,) and chatting with support for over an hour, I was told that the new system they migrated us to doesn't support catch-all email accounts... At all... It's simply not possible to receive an email that was sent to your domain, unless the email address exists in the system somewhere... Despite the fact that it's a standard cPanel feature, that the old and new systems both use cPanel, that every other webhost I have ever seen that uses cPanel has this feature available, AND the fact that this is an important feature for a lot of websites, because they pipe all of their emails to a script for processing... It's simply not possible... They won't be providing that feature anymore. Nor for that matter is it possible to be migrated back...
They migrated accounts to a system that has a basic email function intentionally disabled, without warning... And we can't afford to open an account with someone else ATM... So I can't get any email until we get migrated... FML9 -
Reviewing a newly reported bug from the QA team:
Reproduction Rate: 100%
Process: Load x, click y, observe
Result: Sometimes, z happens.2 -
Downloaded my website backup from godaddy
Opened backup file (many folders inside)
Opened folder /va and found 1 file with my website name
Opened the file and inside
*: :blackhole:
I didnt know my website was a blackhole -
!$rant
So I kept running into permission problems last night when trying to use move_uploaded_file() in php to upload images to my virtual server. Maybe today I'll finally figure it out. -
Whenever I have my mac crash and corrupt its OS, I just get a backup harddrive and it copies itself FLAWESSLY. I have all my programs, settings, settings in programs and files.
When Windows crashes, and I use the recovery tool, I LOOSE EVERYTHING. The only thing I get to keep are my files, and they most of the time have permission issues after a restore.
Windows is like the toddler that stares out to void of existance and can't do anything but drool on their shirt, while its parents say he's highly gifted.
Fuck me we're able to choose between only a few OS'es that my clients know and allow me to work on but things like this just make me want to go be a chicken farmer or something.25 -
Coworker#1: Our client's website is broken, there are 504 errors everywhere, and their customers aren't able to register accounts.
Coworker#2: Our machine that hosts everything won't start up.
How is your Friday going?5 -
Student: Hey will you be a reference for me?
Me: Of course!
HR: Hello, Student says you are a reference for them. Please fill out this form.
Form: 20 long answer questions.
Sometimes I regret my decisions. I am a perfectionist, so this form will take me an hour to fill out haha. This is definitely a reason why I don't say yes to every student who asks for a reference, and only those who actually make me remember them.2 -
Hell is working on a file 4000 lines long file containing html css php and sql with inconsistent coding conventions2
-
Patching a legacy project: all logic inside an 8000-line file called class.cms.php, on frontend, one js file with about the same file size...
-
Why does Visual Studio feel so special that if I add a file using File Explorer instead of through Visual Studio, it doesn't detect the file? Why does Visual Studio feel it's more important than the operating system itself?6
-
Spent an entire week working on XCode configurations for a react-native+swift+objc bridging project. Been failing builds all week. Finally i look over to see the glorious word Succeeded!
Then I realized it was the clean that succeeded, not the build. FFS1 -
Why are there no good file managers for Linux?
Come to think of it, why are there no good file managers that aren't Windows Explorer?
All I want is a good breadcrumb bar (editable), customizability, basic functions such as permanent delete, open folder with, etc, and built in zip reading. Is that too much to ask?
Currently I use the elementary OS one (works a bit better than the default nautilus) but it lacks a ton of basic functionality and there's pretty much no customization.
Please someone make a usable file manager for Linux. Ugh17 -
p r i n t e r s
I was about to print a bigass document. Wanted to save paper, and saw my printer had a two side mode. I try it out. A few pages print, then the driver says PAUSED - RELOAD PAPER. This is normal, as double sided printing is not automatic. Underneath, there is a message:
[Printing - Manual Duplex: Please reinsert pap...]
I try to resize the window to read the message.
THE MOTHERFUCKING WINDOW WAS NOT RESIZEABLE!!!
are these products not fucking tested???
I find a guide saying the paper should be reinserted with no flips, then the "continue" button should be pressed.
The button was not in the driver UI, or on the printer. Further research showed that you are supposed to:
OPEN THE TONER CHANGE DOOR AND CLOSE IT AGAIN TO CONTINUE A PRINT
what fuCKING designer thought this shit through!?#@?#$!
printers
fuckem1 -
Ugh... some people...
Just left the office early because of the toxic climate. That one infamous collegue is basically unable to communicate without being a narcissistic 5-year-old and was arguing whether we should write a test (I was going to write the test) that would need a single additional branch in the build system.
(The test was for a parser and it should test whether it can handle absolute paths. A simple regression test with a file and an expected output. Because absolute paths are different for every platform and user, the files to be parsed would have to be generated with appropriate paths before the tests were run. Well that would require one single python script and a single line in the script that runs the script and DONE)
Well that guy was unable to focus on his own work and started an argument about whether that test was necessary.
Even though I still think it is necessary, it might have been a reasonable argument if he would have acted more agreeable. But he was saying the feature was useless anyways "everyone will use relative paths only anyways" and "because noone here cares a ratass about maintaining the tests it will all fall on me again" ..
Wtf was this guys problem, I (CAPS) was going to write the stupid test and since when do we not write tests in order to better maintain our product? I get that he worries that the test environment will get more messy, but thats better than having the product code go messy or unfunctional! And c'mon guys, how are absolute paths a redundant feature... -
YAML: "The error appears to have been in [file] : line 47, column 7, but may be elsewhere in the file depending on the exact syntax problem." Shoot me.1
-
Jenkins you are a bad butler! Why can't you just do your job? We wouldn't be in this pickle if it weren't for your incapability!
Job opening: any suggestions for a replacement butler?4 -
FUCK FUCK FUCK Windows share feature
just fuck it !
and fuck the people who made it!!!44
ok calm mode on
I had to copy a 30 gb file from my computer to my sister's one, and since the largest pendrive I have is 8gb, and I'm just lazy to split the file into parts, I thought it would be a great idea to copy it over LAN. (tldr: it's not)
First attempt:
Right click on file and share it with everyone = fail
Enable network discovery in sharing settings = still fail
Ohh, right, I just forgot it, disable firewall, it usually solves everything = still fail (2)
Google the problem and try every possible solution = still fking fail
Second attempt:
Ok, when last time I had the same problem, I made a homegroup and it worked.
Let's enable it on my Win10 = it's missing
After some googling: "We removed the home group feature from Windows 10, because why not and we would be fired if the change log was empty."
Ok, fuck it.
Third attempt:
Download a portable FTP server.
Enable it.
Create an account.
It works.8 -
Angular 2+, it's just so elaborate, and over the top complicated. On larger projects it easily becomes a mess. I started a new job where I inherited a angular 2+ project, that is terribly made, it's so frustrating. I now use Vue.js 2, and it's just so beautiful, especially single file components :D1
-
Tried really hard to get the external css file working and after an hour found that I had not specified href in the main html file.
fml -
I uninstalled ES File explorer couple months ago when reports emerged of them misusing data. Was unable to find other explorer until I came across Solid Explorer.
Amazing app. Had to pay something around 0.5$ or so but it's totally worth it.
Feature packed with uncluttered UI. Many themes to choose from. Really awesome. Hats off to devs
https://play.google.com/store/apps/...11 -
Professional Home File Server Setup.
Using an old laptop and drive I made this. But I had nowhere to store. I have to use Team Viewer to even access it now for maintenance. -
Download link is labeled:
[flutter_windows_v1.9.1+hotfix.5-stable.zip]
Does that mean that is the 5th hot fix? Not sure if I can trust it to be "stable".1 -
The other day I fucked up. I coded a safety measure that saves a file on crash, to keep data safe.
I added two lines of code before loading the file, and they crashed. There goes all my data.
(At least got to fix that bug) -
Python file truncate instead of actually deleting file contents...
there goes a weekend of log backups.. FML -
Anyone know private/encrypted p2p network drive app (best would be opensource) between devices in the internet, with multiple user support, invite only ?
It should work behind nat so need use some 3rd party hole punching server for handshakes.
Let’s say I got a movie I want to share with my friend but instead of him downloading it, I would stream it directly from my device and my friend would open it using ex vlc.
Same with other files, on computer can be mounted as network drive.
Or small app with drag drop or cli to add / remove shared directories.
Can be raspberry pi device.
Thinking more, it should work like vpn network but with tunnels between computers.
Can it be done using ipfs ?1 -
That feeling you have when you opened a file full of messy shit code and somewhere in there is a reference to another - more "shittier" - file.
-
When someone specifies file path of file as below
File fileToRead=new File("C:\Users\You\Desktop\testfiles.Zip\test.txt");
Compiler be like1 -
Why did Microsoft lock down TTF files?
https://support.microsoft.com/en-us...
None of their links work anymore.4 -
Once again, I'm late to the party, wondering how in the world I never heard of ranger before yesterday. For me, it's an absolute game changer. It beats mc, the previous only console-based file manager I've seen, handily in terms of features, flexibility, aesthetics, and ease of use.
This will easily replace finder at work, and pcmanfm at home. It's in every major repo, including debian, redhat, arch, gentoo, and suse variants, and is available through homebrew too.2 -
Devrant got my hopes up when I got on and saw the fancy new website.
Of course, the webapp is the same old interface :(
new site looks great though!!3 -
I work within an ICT team, but my role isn't ICT specific. However, I still had to explain to my Team lead how to create a .zip and what the purpose of it was. He's been working in the IT industry for 15+ years... how...?6
-
i once explored our codebase and copied every line of commented out code into a text file. that file is over 350 lines long.1
-
So, our Sales Manager asked us, "what is maximum file size for jpeg banner ad?"
I said, "maximum at 100KB per file"
She asked another question, "what is minimum file size?"
I said, "err... 0 bytes"1 -
!rant
Struggled for 2 hours now. How the heck can a create a directory on android. My code:
File dir = new File(Environment.getExternalStorageDirectory(), "Directory");
dir.mkdirs();5 -
I recently refactored the horrible main.js of one of our clients. I didn't even know you could fit so much shit in "just" 700 lines of code (yes, it's really that big...). After 3 hours full of swearing and grinding teeth about this piece of shit, I was finally done and tested it.
It was so incredibly satisfying to see the page loading twice as fast! -
I write a lot of custom code for a program my company sells and there is no good way to run tests on it. I just spent a bunch of time wondering why the change I made didn't work only to find I accidentally clicked paste shortcut instead of paste when copying the file. I really need to take some time to write a program to copy all my code for me instead of relying on a manual process. I guess a new night and weekend project.
-
Does any one know how Containers (?) like Zip or exe files work? I mean when you open it with a texteditor you can't see much?!15
-
While everyone is hating proper programming languages... Let's talk about quotes in batch files.
What the actual fuck did Bill smoke while developing this boolshit?2 -
For the love of god developers/programmers, don’t put version numbers to your softwares file paths!
It’s the worst when you have to configure permissions and rules, then the folder path changes in every update!2 -
Longest java file name I've seen
OSFIListOfEntitiesRegulationsImplementingTheUNResolutionOnTheDemocraticPeoplesRepublicOfKorea.java3 -
KDE Dolphin is not recommened!
It fucks with the color scheme so both the background and the text become white so you cant see shit!
Better of using Nemo...3 -
I remember I couple years back in school nobody in my class was really tech-savvy except me and friend... Midway through class the teacher was saving a PowerPoint presentation. But when she was editing the name she started to edit the file extension not know what .pptx meant... The look of dismay me and my friend shared as she did this is one of my greatest memories of school.3
-
*npm run dev*
Why aren't my CSS changes showing up?
*make selector changes*
*npm run dev*
Oh, c'mon!
*make more specific selector changes*
*npm run dev*
It's not even showing up-- wait...
*checks code*
*SASS file not included in the main app.scss*
Oh. I'm stupid.1 -
Apparently we can't stick to a single technology for more than one project. There's always something wrong and something to complain about.
Finally got an understanding of typescript+react, and doing web development. But now we are looking into switching to Flutter or ASP.Net Core. Too many technologies out there for web dev.
Anyone have any negative to say about those to hopefully not switch over and have to learn a new tech?8 -
Today I added a recursive string replacement function to my bashrc to replace some words in multiple foles/folders, but instantly regretted it after using it from the wrong path...
-
I'm trying to waste time reading rants, but don't get half of them because our work wifi network is too slow to load pictures
fml1 -
So my friends USB drive suddenly doesn't work. It shows up in Windows' device manager (with no exclamation sign) but not in My Computer or even Disk Management (So I can't partition it) Reinstalling drivers doesn't work either. When trying to mount it in Linux, Linux complains that it can't see the drive. fsck and gparted don't read it either, but it shows up in lsblk. Dmesg complains it can't read the partition table (error -110). Any of you guys have bright ideas? Nothing like this has shown up in SO before so I've asked in both here and SO. Any ideas?12
-
Did anyone had issues with BitLocker corrupting files and folders, and taking 2 days to finish encrypting a mostly empty drive? A checkdisk afterwards fixed most of the issues, but some files mysteriously vanished...
It's a company laptop, so I didn't have the choice about activating it. -
I might sound stupid, but why don't solo-developers use things like dropbox for active file history that keeps track of every change and also gives diff options and up to 1 year log - instead of git?
Don't get me wrong, git is amazing when you have to work with a team or multiple people in general, but it's simply a pain in the ass when working alone and having to keep track of every state yourself.6 -
I just accidentally deleted a file. Nothing major. But I just never assumed this command was dangerous and could lead to file loss used like this:
rsync -aP --remove-source-files path/to/file ./
My mistake you might ask? Well... I accidentally fired the command while being in the same path as the file.
Well, just another 10 minutes of downloading again, but still. Damn. Unexpected.3 -
Here I am wondering why I can't click the image then I realize I forgot to tell the html file where the JS file is.....1
-
Hi there, i'm new to AWS. i've running my python code in Lambda. Basically it's calling an http-request and processing the responding JSON to a CSV file. Now, what is the easiest way to transfer that CSV file to a 3rd party FTP Server?7
-
Nothing like trying to understand a single 1500-line source file that implements the API usage in the frontend. Without a single comment.
No, wait. There are comments! But it's only commented-out code. Or explicit shit (like "gets the version" before a getAssetVersion function).
Functions with unused parameters? ✅
Weird var names (like "tmpX")? ✅
`console.log(var)` everywhere? ✅
Long-ass lines with 150+ chars? ✅
Duplicate code? ✅✅
Not a single interface was used so everything is var: any? ✅
Random unreadable RegEx? ✅
If-chains of 6+ more levels? ✅
Many `else if` towers instead of a switch? ✅
And did I mention it was written by a fucker who can't speak proper English so shit like visiable, cataloge and isExist is everywhere? Yeah.
Fun day at the office reading spaghetti code 🙃 -
I guess I'll just trouble shoot this controller for an hour or so before I check the file-tree and find out that I'm editing a stale file of the same name in the root instead of the nested file...
-
When you try to do something good with flask and python but Mozilla doesn't want to load the media file.
-
it feels a bit wierd to open a word file that processes an access-filtered excel file to optionally generate an outlook mail.5
-
Another hours wasted on debugging, on what I hate most about programming: strings!
Don't get me started on C-strings, this abomination from hell. Inefficient, error prone. Memory corruption through off by one errors, BSOD by out of bound access, seen it all. No, it's strings in general. Just untyped junk of data, undocumented formats. Everything has to be parsed back and forth. And this is not limited to our stupid stupid code base, as I read about the security issues of using innerHTML or having to fight CMake again.
So back to the issue this rant is about. CMake like other scripting languages as bash have their peculiarities when dealing with the enemy (i.e. strings), e.g. all the escaping. The thing I fought against was getting CMake's fixup_bundle work on macOS. It was a bit pesky to debug. But in the end it turned out that my file path had one "//" instead of an "/" and the path comparison just did a string comparison without path normalization.
Stop giving us enough string to hang ourselves!rant debugging shit scripts of death fuck file paths fuck macos string to hang ourselves fuck strings cmake hell12 -
2 hours of pain today, just because I forgot that inside the container 127.0.0.1 is not equal to my host IP !! Grrr
-
Part 2 of the .zip file saga. Staff member this morning emails me to say they can't get past the following step of my instructions.
*Screenshot showing them downloading the .zip file and not saving it anywhere, instead trying to open it*
... really starting to think that everyone in this place needs training in basic ICT tasks again. I was taught how to open and extract files from .zip when I was aged 11 in school.1 -
When you have to delete/move 1000-character files that Dropbox synced from a Mac OS source...
So thankful for `robocopy` -- even though you'd think MS would eventually allow longer filenames. -
i want to find the person who proposed to force mtp in android for file transfers, and bash them in the head with a plush android toy till they're knocked unconscious.
all i want is to make a file transfer between my phone and my computer, and rather than plugging my phone's usb, i find it easier to set up an ftp server over local network. and when that doesn't work, i might as well hexdump the file, and copy it char-by-char manually, than use mtp.6 -
Open file with Atom on remote server via FTP.
Edit at will, hit save and BOOM. Now you have an empty file. -
Made a syntax error in my sudoers file and somehow deleted the .tmp file so I don't have permission to change my sudoers file.3
-
Big innovation:
In a manual I changed a paragraph from "add registry values X & Y" to "click the .reg file in network folder Y"
Received big thanks about thinking of reg-files.
uhm... We are an IT company? -
Can someone recommend me a file manager for Windows, that supports:
- tabs
- context menus
- dark theme8 -
I am thinking of how I can make data upload reliable. I am sure that I am making it more complex as it could be and I need some pointer.
My goal is to have a pause/resume feature in file uploading.
Here is how it would work.
In order to start uploading , you give the server
1) File Name
2) Folder path you want to upload it to
3) Checksum of the file
Here the server will check whether you can upload it to a folder, whether the file have been previously uploaded (by file name and checksum)
If you could actually upload to the folder , server will return "unique file token" , "folder path" , "unique byte token". Let call it init_upload().
The client will use "unique file token" (to identify the file) , folder path (to know where to upload it to) , "unique byte token" and byte[] (data which to actually upload). Let call this operation data_upload().
If the operation is actually complete , server will return new "unique byte token"
Internally it will actually work like this.Let say we want to upload "file.mp3", when the client call init_upload() it will create
file.mp3 and unique_byte_token.file.mp3.
When the client upload data first time , it will append data to unique_byte_token.file.mp3.
When the client upload data second time , it will check whether the "byte token" that client put is the same as previous "unique_byte_token". If it is same ,
1) we move the data from unique_byte_token.file.mp3 to file.mp3
2) Delete unique_byte_token.file.mp3
3) Create new unique_byte_token.file.mp3
4) Append data to unique_byte_token.file.mp3
The reason I am using "byte token" is because I want to check whether previous upload is actually success.
Let say we need to call 50 part of data_upload() will put 49 part to file.mp3 and 1 part to byte_token.file.mp3.
Finally the client need to call data_upload_complete() which will
1) Put reminding 1 part to file.mp3
2) Remove byte_token.file.mp3 as cleanup6 -
I am looking for a file manager to use.
I want to organize my stuff a bit better and I would like to use a file manager so browse through the folders. Important: it should be a cli file manager!
I also would like to use it to organize some photos. I thought about setting up some meta data database to find stuff more quickly later. Some cherry picks from the holidays to show people, or private documents etc.
Any ideas?
I am using ranger atm and I am somewhat happy, but the use of meta data is limited to the cwd only.8 -
how come an image or text file called a multimedia file? I think they are just media files. But a video is multimedia.
-
My first time developing a C# project with a friend. He decided it would be a good idea to put 15 classes into a single .cs file. Ever had a person do that to you?1
-
Is there a file manager which let me manage all my cloud drive , local drive , network drive in one place?3
-
Web application that you could read a file from UNIX. Problem, I'd you changed the URL, you could view any file, including any password file
-
What is the best way to easily move files (text, documents, images...) Between android phones and PC (Linux)5
-
Does anyone know a good GUI-based file search program similar to "search everything" on windows? That program is fucking awesome! Web search has given me ANGRYSearch, which comes close but has some usability problems. Is there yet a better program I haven't discovered yet?3
-
Bitbucket not supporting Mercurial anymore!?!?? FFFFFFfffff
Where am I going to move my team of 15 now..
Need to move all my repositories too without exceeding storage limits.4 -
Have to do work on a trashcan of a Mac, and instead of connecting my keyboard, mouse, and monitor to the trashcan I have both my monitors and keyboard+mouse connected to my laptop. Using VNC to remote into the trashcan, allowing me to use everything without actually switching devices.
I have already gotten used to using the WIN key mapped to the CMD key on mac, but fucking VNC has ALT mapped to the CMD key.
FFS -
A controller action taking a string input and directly accessing the file system with it, returning the file.
-
What is your opinion on multiple classes per file?
and having the filename not the same as the class
names?15 -
p4 add <new file>
cp <old file> <new file>
p4 delete <old file>
p4 submit
That how you tell someone “GO TO HELL!” in perforce commands.2 -
When you do a search, find the file, start coding your tweaks and then find you're making the changes to the compiled version! GRRR3
-
Not sure if it counts but spent the day setting up a pxe boot server for a laptop I have since usb 2 is fucking slow than setting up this file server implementation thing for Git Pages so I could just downloaded an updated mirrorlist without need to add it manually. Just to find out I need to figure out why I have no internet argh!
-
Is this a legit company?
http://www.gleamtech.com/
I'm looking into the file manager and it looks incredible, but after looking around on the internet, I cannot find any good reviews or something that motivates me to buy it. It seems like scam or something.8 -
is there any way that the nemo file explorer on linux mint cinnamon is able to highlight the specific file when for example i downloaded a file with a browser and then want to view the file in the file explorer, so the browser redirects to nemo? how is it that I don't find this feature for nemo? doesn't it exist or am i too dumb googling this problem correctly? this feature is very helpful on windows, so what about it on other file managers?10
-
When downloading 'animate.css', is it wrong to copy the raw file and paste into a file named 'animate.css' and link it in html file? Why doesn't it work??!!4
-
I want to learn about Linux file system. My searching led me here => https://refspecs.linuxfoundation.org/...
Is this a good place to start with file system?
P.S. I barely know Linux apart from basic commands.3 -
Does anybody knows a command line tool that convert C file (sample.c) to hex file (sample.hex).
I don't need any GUI tool only command line tool.9 -
I am loading an ISO file as FileObject in java. How do I write apache.commons.
.vfs.FileObject to a file.. It says ISO is not a file?