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 - "files"
-
So I just wrote a Ruby script to encrypt some files in AES.
I started it, it's designed to show the key when it's finished. It encrypted 7 files, then Kaspersky pops up and deletes my entire Ruby installation.
okeh29 -
Senior dev : * doesn't use git *
Me: you seriously should use git...
Senior dev: * still doesn't use git *
Senior dev: * overwrites production files with old files from other computer *
Senior dev: * talks to boss *
Boss: * gets angry at me *11 -
Client : Now mail me the project "directly". Don't send it in files. I donno how to open files!!
Me : Directly? o-O43 -
Me - "Has anyone changed the password on the print computer"
Him - "It's the same one."
Me - "Carrots99?"
Him - "Yeah, what's the message that comes up?
Me - "Password is incorrect."
The dumbest conversation I've ever had in my fucking life. You little shit, I know you changed the password just to fuck with people. You've been reading too many books on elevating yourself, tried to be important for something. It means fuck all if you can't remember what you changed it to. So you held up two hours of my work, not to mention everyone else, because you can't help but stick your beak in shit. You dont think people can't see what youre doing? Watching you scurry over to the computer with a big smile, only a to fuck off silent as a mouse not to be seen mumbling some shit about a system administrator. Yeah you forgot it you prick.
Stop sucking up to the boss, and commanding people on what to do, when you're as junior as junior gets. Don't change our fucking passwords, just so you can have the whole team approach you the next day asking for you, then not remember them. You cunt.13 -
I'm watching TV and I just heard something along the lines of "The files have been wiped from the server and there was no sign of a DDOS attack. Whoever erased those files had a backdoor.".13
-
I found a python virus online a while ago that just corrupts your .py files, so I wanted to do something similar and after writing it I ran it on my pc, it corrupted all of my .py files.27
-
If Suicide Linux deletes all your files when you mistype a command, what operating system only deletes half your files when you mistype a command?
ThanOS4 -
> finds files called "?" and "?.pub" in home directory. Not sure how they ended up there.
> tries deleting files
> rm ?*
> hits enter and realizes the disaster the very next moment
> cries in corner7 -
Fresh out of college?
Entry-level?
Apply Here!
Junior Web Intern: 16k A Year!
Basic Requirements: HTML, CSS, JavaScript, Node, Angular, JQuery, Bootstrap, Backbone, Handlebars, D3, p3, CMS (WordPress, Wixx), PHP, Java (Android), C++(iOS), openframeworks, openGLSL, Cinder, failed at least two startups, 8086 assembly language.
Recommended requirements:
Git version control
Agile development
Must be able to display example of each requirement.16 -
!rant
IDE or text editors ?
I tbh use notepad++ to work on text files and encrypted files for passwords lol22 -
How to hide your important files from people without making Hidden folders
1. Go to Desktop and create anew folder
2. Name the folder Internet Explorer
3. Change the folder icon to Internet Explorer
4. Keep it in a corner of the desktop
Now, no one will open internet explorer :D
Comment your ideas...16 -
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 -
Today I got told to stop using a repo and work directly from the FTP server.
Today sucked. That is all12 -
I download a lot of different stuff all the time. Often times I don't actually get around to cleaning it up. Thus, I decided I needed to build a script to further encourage my bad habits.
Here I've built a script for both Windows and Linux. It's designed to take all the files in the current directory and move them into their own folders based on their extensions. Why is this useful?
It's fucking useful when you're not having to swim through fucking mountains of content.
Anyways without any further ado here are the scripts.
Linux
#!/bin/bash
for i in *.*; do
filename=$(basename -- "$i")
extension="${filename##*.}"
extension="$extension"files
mkdir "$extension"
mv "$i" "$extension"
done
Windows
@echo off
for %%i in (*.*) do (
if not exist %%~xifile md %%~xifile
)
for %%i in (*.*) do (
if "%%i" NEQ "movingFiles.bat" move "%%i" "%%~xifile"
)15 -
I don't care how technically competent or how much experience you have...
A list of files is in alphabetical order 99% of the fricking time.
If I ask you to open "index.html" and have to watch over your shoulder as you hunt for it in the C,D,E section... and then you quickly scroll down to S,T,U and start looking there... I swear I will jam that wireless mouse where the sun don't shine.8 -
Notice :
Citizens are advised to store all their passwords into either text files or Google Keep, OneNote, Evernote so that it would come in handy whenever you forget the Password.
Please share this among your family and friends.
Have a nice day :)11 -
Sent a corrupt .rar file to a client's nephew/cousin to upload on their server (he managed the hosting account) in a bid to buy myself some time to finish the project. It worked! I was given the login details to upload the work myself the next morning. They didn't understand Git.
-
If I have to draw out a normalized database on paper one more time I think I might split myself into multiple indexes3
-
Congratulations? For fucking what. So you built a wix website. Now youre a web developer and the whole world knows it, my services aren't needed anymore.
Congratulations you bypassed half a decade in 50 hours a week of coding, then you have the bone and fucking marrow of emailing me because your like buttons are causing users to create a new instagran account. Good one kid.3 -
Wanted to deploy my local files to remote server using rsync.
Used wrong syntax, replaced my local files with remote instead :(5 -
DATA COMMUNICATION BETWEEN SERVER AND AN APP..
1. Write all data into files,
2. Make the files as zip,
3. Send the zip to server,
4. Server will unzip the zip file,
5. Read all the data line by line from the files and update the data.
** TRUST ME, THIS IS A PRODUCTION APP I HAVE SEEN FROM A CLIENT **7 -
😐ctrl/cmd + s to sacrifice file.😑
Teacher: always save your file or else data will be lost. ctrl + s
Me: in word
__________
| |
| |
| |
| page 1 |
__________
ctrl + s ( 10 times)💾
Next day I open this file, my data is lost.
I sware to god i hit ctrl + s 10 times.15 -
to FUCKING .zip || .tar.gz TERRORISTS
HOW THE FUCK I NEED TO KNOW THIS FUCKING ARCHIVE IS GONNA EXPLODE OR NOT?
PLEASE FUCKING ARCHIVE FILES IN SEPARATE SINGLE FOLDER, NOT FILES ITSELF SHITHEADS8 -
Before we started a new project, as a team, we set some ground rules like: frequent, small, digestible PRs.
PR#1: 52 files (week 1)
PR#2: 107 files (week 2)
JUST FUCK OFF MATE!!!2 -
Me - "I need to find the children"
CTO- "Okay. How many?"
It takes about 10 minutes to realize the conversation you just had1 -
Why don't designers use git, or at least use version numbers in their files?
Looking at around 20 files in my downloads folder called "final" and it's bloody annoying.9 -
using 21 js files (most are jquery based) and some 17 or so css files for a simple static one pager,
the only dynamic part is a filtered list of images,
big fuck you to whoever wrote this shit -
#include "somefile.c"
My teacher: "Including a .c file instead a .h header is a mortal sin."
This was long ago, so I believe gcc has already forgiven me.2 -
So a little story about finding your way. I worked at an IoT software firm, very well established. I had a hard time with the on boarding process due to some factors, and I must have lagged behind their mental schedule for my growth. It was clear nonetheless that I was a quality coder and had made some friends there.
It wasn’t enough for the ensuing corporate bullying. It went by and I took it. I became the yes man just so I don’t frustrate anyone enough to turn away my ask for help. This made things worse and before long, I a grown man went to visit my mum and all but cry at how small I felt, after all my hard work getting to the company.
I felt sick with failure but I knew I couldn’t go back. I emailed my resignation and dropped off my company laptop.
4 months later I am working at a medical startup with my own projects, that I have 100% control over. And the quality of my work and ethic is pleasing upper management in all the right ways. I’ve never been happier, and there are barely any perks on paper. No free lunches on Thursdays or discounts at the local high street. I’m the happiest I’ve ever been in my life because I said NO to feeling or being treated any less than I worked and progressed to be.
Don’t let other people stop your potential for their own ego, or any other reason. 😊 -
Customer called, said they needed help deleting some images and that they'd mail me a list.
Today I received a package with 20 A4 pages containing nothing but crossed over thumbnails.
I've seen images in .docx files attached to emails, .bmp files, pdf's and zip files with images before...
But literally mailing thumbnails, that's a first..
If only we lived in a digital age where you could capture your screen and image manipulate it later.5 -
OneDrive: where we duplicate your files instead of synchronizing them correctly because fuck that.5
-
* Ctrl+Shift+F to find all "assert" in solution...
Matching lines: 0 Matching files: 0 Total files searched: 1504
* Bang head on table
* Flip Table
* Start writing unit tests -
This I call a perfectly drunk computer.
I think the number of files present were too large that the system could not count all of 'em at once. Am I even right?
Note : This is a college computer8 -
Guy who thinks git is too much automation:
Files on master:
main.py
main_<other guy>_code.py
main_old_code.py
Also says: Don't push now because I am working on some files and git is not capable of dealing with changes to files within the same time.
WHY?!6 -
Proud moment this week. Have been making my first contribution to Open Source software. And a huge project too. I hope it will long continue :)2
-
My desktop used to be so messy, and organizing files was a pain. So I created a small script that would create folders based on file extensions. Now instead of hundreds of files all messily placed in one folder I have 10 folders with all the files seperated by extensions6
-
Really???
My whole finished Java project with database & gui - 277 files in source
Simple JS project nodejs & react - 15k files???
What the fuck?
I tried to like JS, but maybe later... Someday...25 -
M: Type "cd path/to/files" where path/to/files is the path of the files I just sent you to download and send me a screenshot
C: Done!
*sends screenshot of them typing "cd path/to/files" and an error message because the path doesnt exist*2 -
Me: Write a small descriptive paragraph on the changes made to files and what needs to be worked on.
Team: “Add function 🙂” *10+ files changed*3 -
Microsoft.. MicrobrainedSoftware-devs.
SamsungCloud died out and was replaced with OneDrive automatically. Alright, my data is still backed up, so.. No biggie.
OneDrive was syncing my pics and videos automatically, even though media sync is disabled. Umm.. Okay?
My phone is constantly very low on free space [idk why], so I decided to clean up some old photos. I'm removing and removing, until I reach photos with a cloud and an arrow replacing their content. Hundreds of spoiled pics that do not open. And in info their path is /OneDrive/*. Umm.. Wat?
Open mydrive website, log in only to be greeted by a fully loaded onedrive webapp covered by a non-removable modal 'we have an app for this. Use app'. Wtf?? Just let me disable the modal and use the webapp!! Wtf!
Open onedrive app. I'm greeted with a red warning that I've exceeded my storage limits and my account is frozen and my files will be deleted in June '23. WTF????? A heads-up would be nice!!
The popup lists my options:
1. Unfreeze the account for 30days, but I can only do that once. If after 30d I'm still exceeding my limits, my acc will be again frozen w/o an easy way to unfreeze.
2. Once unfrozen [takes ~24hrs], I can either
2.1 pay 7€ to M$ monthly for 1TB of storage in onedrive
2.2 remove my files from OD and my phone [since even if media sync is disabled, OD app is still syncing my media]
what the actual fuck?!?!? M$ is now keeping hundreds of my photos on my phone hostage.
Go F* yourself!11 -
So... I was in bed going to sleep 5 minutes ago... I just had a thought I have no idea from where...
My dreams are controlled by code source files...
Change source files, I will have different dream....
Guess I spent a good amount of time with source files today 😅😅8 -
Two hours renaming files because some fucking idiot has named them inconsistently!!!
No way to do it with a script!!
FUCK!6 -
I want to share one very interesting incident -
Once upon a time, ( 9 yrs back ) I got my first PC. It had Windows XP.
After using it for 1.5 hours, I realised there are some files in C:
I said to myself, my hard disk capacity is 150GB but why some files exist in C:?
Within next 4 seconds, I issued a command to delete all files in C:
The rest you can predict :p1 -
Just been hired as a mid level developer for an IoT company. With considerable benefits and pay increase!
YES!! -
Is anyone here familiar with generating PNG files from MBTiles files?
I've tried multiple libraries but keep ending up with black, non readable, PNG files which is starting to get really fucking annoying.
(Platform is Linux, obviously)5 -
XCODE WINDOW COMPLETELY BLACKED OUT. RESTART COMPUTER. SPINNING WHEEL OF DEATH. CANNOT OPEN PROJECT. RESTART XCODE. STACKOVERFLOW. DELETE CACHES. RESTART COMPUTER. REPLACE PROJECT FILES. PROJECT BROKEN. CRIY FOR HOURS. PUSH FILES TO GITHUB. PULL TO NEW FOLDER. SUDDENLY WORKS. XCODE SUCK1
-
A good life lesson:
1. DON'T DELETE FILES YOU MAY WANT TO RECOVER
And if you DO delete them and then recover them, then
2. DON'T SEND THE RECOVERED FILES TO A·N·Y·O·N·E
Today I found a lost µSD card in the street. I did what every sane person would do -- plugged it into my laptop :)
There I found a directory with recovered pictures. I figured, some of them may contain the author's info in metadata, so I ran a quick plaintext search for @gmail.com.
Turns out, inside some of the recovered picture files I could find embedded company director's emails in plain-text. I mean, open the picture with a text editor and read through those emails - no problem! And these emails contain some quite sensitive info, e.g. login credentials (lots of them).
Bottom line, if you delete and recover your files, then do your best to keep them close: don't share them, don't lose them. You might be surprised what these recovered files may contain15 -
Ah, my brain, MY FUCKING BRAIN!
Got some work from the previous company. Need to update some stuff on their website.
Fine, got the files from the server via sFTP.
Made the changes, before uploading the files, wanted to create the latest backup.
Downloaded the files again, just to realize that I forgot to cd into a different directory before re-downloading the files. All the changes are now overwritten.
Half an hour of work lost. DAMN IT!3 -
My .pryrc and a Ruby script it loaded (in another directory) both disappeared seemingly without cause. I lost days of work including a bunch of debugging and performance utilities I wrote over the past year.
But I have no clue how this happened. Neither the .pryrc file nor the script’s folder are tracked by git, so it wouldn’t have been deleted, overwritten, stashed and dropped, etc. None of the other dot files are missing, and the folder is still present, albeit with one fewer files. I wouldn’t delete them, and commands that would delete them do not appear in my zsh history. So I’m at a loss. Figuratively and literally.
They’re just. Gone.
Is there any way to recover missing files on OSX?
I never thought I’d need a backup solution for local scripts.9 -
My file structure:
Documents -
- That one impeccably structured folder that I never remember to put anything in
- Gigantic project folder that will some day kill me in my sleep
- That one unrelated folder that all of my non project scripts just end up in. No structure whatsoever
- about 2 billion loose files5 -
Made a change.
Patched some files.
Ran the app.
App not working as intended.
Freak out.
Check code.
Think of random solution.
Waste an hour.
Realise that files weren't patched properly.
Kick myself in the head. -
Yeah these fucking assholes lost a 300 pound gaming chair at my local depot for 3 weeks where I eventually got a refund from Amazon. I ordered a USB desk fan for the heat off ebay, yeah these fucking cunts delivered it to my workplace at 9pm.
Guess who is building my companies new ecommerce platform, where I am currently integrating the shipping options. Fuck off Yodel.7 -
New malware on the lose.
It encrypts your files.
But with a twist, it unlocks it again if you spread the malware to friends.
Maybe run it in a vm to get the key to unlock your files might work...2 -
Git on VS doesn't want to ignore the files I've added in the .gitignore.
Still no shell for command line.
Well, looks like my changes will be filled with DLL files.12 -
Asked my colleague not to commit android settings and build files into git, ignores me and goes ahead to do it anyway. Now, every time I pull from Git, I have 6k+ files that are changed 😑2
-
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 -
All the jQuery... in one single repository / website.
There is a good reason why we should use fucking CDNs.
Edit: Yes, these are different files in different folders.
Edit2: I've already deleted 2 other jQuery files (the library itself).4 -
I was today years old when I realized I could unzip with 7zip a excel, word, ppt files. Which then lead me down a rabbit hole of finding other OLE type files.. altium schematic files, brd files etc11
-
Today I spilt a glass of water onto my palm. As I was shaking the hand of a senior executive. He looked at me in disgust as our hands squelched together.
-
when you try to stop tracking changes to files you added on git but instead of running the remove from cache command you run the remove from server also command. and it deletes all the cpanel config files and ruins the hosting account.3
-
Hello and welcome, to a presentation in which I will tell you my thoughts on the shortcomings of modern day computers and programming practices.
Computers are based on a very fundamental and old idea, folders, and files, a file is basically a concrete amount of data, whereas a folder is a group of files, and it comes from the real life concept of files and folders, now it might be quite obvious already that using a concept invented in 1898 by a guy called Edwin G. Seibels, might not be the best way for computers to function in the year 2020, but alas, it is.
Unless of course, you step into the world of a programmer.
A programmer’s world is much different, they use this idea of a data structure, or in simpler terms, an object. An Object is just like what you would think of as an object in your head, something with different properties that you can think about in different ways, for example your mobile phone, it has a battery percentage, it has a screen size, it has free space available. Programmers use these data structures to analyse data very quickly, like finding all phones with a screen size bigger than a certain size for example.
The problem is that programmers still use files and folders to create the programs that use these objects.
Consider this example.
Let’s say you want to create a virtual version of a drink bottle, consider what properties it will have, colour, volume, height, width, depth, material, etc..
As a programmer, you can leverage programming features and change the properties of a drink bottle directly, if you wanted to change the colour, you just say, drink bottle “dot” colour, equals blue, or red.
But if the drink bottle was represented as a file, all the drink bottles data would be inside the one file, so you would have to open the whole file, find the line or section of the file that has the colour data of the drink bottle, and select it, highlight it, delete what’s there, and type in your new value.
One way to explain this better is to imagine a folder that now represents the drink bottle, imagine adding a new file into that folder that represents each property I described before, colour, volume, etc.., well now, you could just open that folder, find the file for colour, either by looking with your eyes or you could do a file search in the folder for a file called colour, open it, and edit the value inside. This way of editing objects is the one that more closely represents the way programmers and a program itself interacts with objects inside a running programming language.
But the thing is, programmers don’t use the folder/file way of creating objects and putting them into programs, because it would be too cumbersome, they just create 1 file for an object, or have lots of objects in a file, and create all the objects in 1 file, and then run the program which creates the objects, then when they stop the program, it deletes the objects. So there is no actual link between the object in a file and the object that the program creates by reading the data from that file, if you change the object in your program, it does not get saved to the file.
So programmers created databases to house these objects, but there is still a flaw in databases, they are hard to interface with, and mostly databases are just used to send data or retrieve data from, programmatically, you can’t really browse a database the way you can browse the files on your computer. You can, but database interfaces are not made to be easily navigated the way files and folders are.
As it stands, there is no way to store objects instead of files on your computer and interact with them in complex ways the way programmers can inside the programs they create.
If the idea of an object became standard the way a file and folder is standard, I think it would empower human’s a great deal to express things far more easily and fluidly than they can today.
Thanks for reading.8 -
I spend far more time on making my workspace look elegant (organising files, editor themes, plugins, syntax color, look and feel, custom changes in .<file>rc files, etc), than in actual learning and creating.1
-
I accidentally deleted a folder containing contracts and files worth millions.
There's no backup. 😭😭😭. EaseUS didn't help with the entire recovery.
.
.
.
.
.
.
.
.
.
.
.
.
J K. I put a recurring backup every week 😌. Hadn't made any changes in the past week. 😂.6 -
Dear Colleagues. Stop saying iOS (i-oohs). It's (i-oh-es). You don't call it fucking windows ooohs. You sound like fucking idiots to our clients1
-
Some years ago... And some xp less.
An old WordPress installation was attacked and our server was sending thousands of spam mails.
I found out that there was a line of code in the top of every php file. And I removed these files.
The problem was that
1) I was copying this fcking line to new files because I was thinking it was my code.
2) I found a Linux command to detect all these files and I removed them one by one. In every file. Many many files.
#hacker #goodolddays -
Someone just asked me to rewrite their application and lower the time of generating 200 000 html files from over an hour to a few minutes
.
.
Why the fuck would u need 200 thousand html files wtf is wrong with you1 -
That moment you call a php curl script to download files handed to it from a python script because the http request in python somehow get blocked by corporate bullshit, but you also need access to MS products for this script to work, which you can't do in PHP.
# FML
# Corporate "Security" is bullshit
# Fail, Adapt, Overcomerant python ms office php why it be so complicated multi language automation corporate it just downloads files ffs hybrid scripts9 -
Today was my last day before taking a week off from work. When I originally pushed my branch, GitHub knew I had 7 files changed. I squashed my commits and pushed so that there was one commit. GitHub then decided I had Infinity files changed. Fun way to end the week, posting “I *swear* that I didn’t just put up a PR for review before taking a week off that has Infinity file changes.”6
-
hey do you know if there is a JavaScript libary for naming newly created files acording to user convention? Instead of "Unamed file".
Like [DATE]_[0000]_[NAME]_[SIZE].[Filetype] --> 20210708_0001_Pictureofme_1000x1000.jpg
There is a brand new service of the swiss post office that scans all your mail. But in the app it says only "unnamed document" for each new letter.
I'd like to suggest them, that you can set up a naming convention for each new pdf to my liking.
thank you 🙂3 -
Can't fully remember. But I believe windows batch files.
I just didn't wanna sort/move my files by myself anymore and it all went downhill from there. -
D: I can't get my files to my D drive
C: And you want me to help you with that?
D: Yes! You know how to do that
C: How about you move your files from your F:\ to your U:\ drive -
I always find reading small configuration files way more difficult than reading a big codebase.
I accept config files do really help in writing a better flexible code and separating the logic and settings but always offer a stiff learning curve.
And often, people make changes in config either unintentionally or with half knowledge which works in local but later blows up the entire system.
Wondering how config files can be presented in a way that the learning curve is minimal and the understandability of its impact is more visible.
I do really like annotations or decorators which provides a closer visibility between config and code. -
Fun experience backing up my laptop drice to external hdd :
1 folder : 100 sub folders with 12000 files, size 6gb
>> Ctrl A-> ctrl C -> ctrl v
>> Copying time 55 mins , files remaining 12000
CANCEL CANCEL CANCEL!!
>> add to archive (5 mins) -> ctrl c, ctrl v
>> copying time 6 mins , files remaining 1
(*Insert hackerman meme here*)2 -
Just a quick thought...
If you are storing files in your Windows computer, you are giving data to them for free.
Who knows? Whether they have "root:" access to computers all around the world. Same with macOS.5 -
Client: oh we just need you to organize the files and all..
*ftps into server*
Me: oh so you guys use codeigniter
Client: yeah but for some reason the changes we make on the css files won't go through
Looked into the view files, and literally every element had its own style tag3 -
So:
git add . - marks the files in my local folder to be added to the repo
git rm -rf . - deletes the files off my file system ? Crap!2 -
I said do fucking not include log files in the git repository! I have removed them and added them to the gitignore and there are they again...2
-
I just wanted to delete and copy some files :(
...well, a lot of files, but that's besides the point
(Excuse the pic, but as you can see...)3 -
So I was hacked, this guys encrypted all my files and asked me to pay BTC to decrypt it. They even changed my wallpaper and gave me put instructions on all my folder directories on how to pay and recover my files11
-
Don't you guys think we need live programming?
Like a development runtime, instead of doing this whole file based development thing? We edit files, and then run them, why aren't we just running a program constantly and editing it as it runs? It would let us inherently take advantage of concepts like objects and lists instead of having to build plugins that analyse and modify our files to sort of act like complex programming data structures.
If we just programmed using these complex data structures to begin with.
Like do you realise how antiquated the idea of a file is, and folder, that's literally a paper based analogy.
Imagine if we just had objects, with pointers and property names, the best we have is ln -s file1 file2 but that's not a real pointer.
Anyway, hope someone understands me!
I'm writing a medium article called a world beyond files but I'm stuck at how low level to go and who the audience of the article should be.
I went really in depth into what this idea of an "object" is, and how it can be expressed in a file but once a program picks it up it becomes much more and almost alive.12 -
So recently i started using sublime merge. Found the ui kinda useful to review and stage files. Today i was double checking my staged files in smerge and bam! staged files worth an hour disappear! I am pretty sure i didnt click anything. It has to be sublime merge... right?? i could see an undo reset option in menu which didnt work.
Going back to good ol git cli. fuck git ui clients5 -
I was totally unaware of the world of configurations!
Ruby versions, Cocoa Pods versions, Manifest files, Docker files, podspec.yaml, then .lock variants... Jesus Christ and Moohamed...
You need to be devops just to be a programmer7 -
"Most people don't know what files are and don't know how to type and read, so they need tools that look up those files for them, put the numbers and words in those files into graphs and colors, and replace the typing with little buttons."
– imbecile on Reddit6 -
WHY THE F*CK CAN'T I DELETE FILES STARTING WITH A DOT USING FTP?
Guess these files will be there for ever...6 -
Fooling Windows is easy and fun :p
My friend got logged out of windows and recovery option was saying to wipe the syatem. There was important data in the windows ( photos, videos , project ) so I thought of a simple solution.
Booted Linux in USB and live booted it on the system. Linux can read the files from window OS. Simply copied the data to hard drive.
Windows be like Am I a joke to you9 -
Not dev related but got offered to work at the Champions league final.
The tickets sold out within ten minutes and there's me making money!3 -
When someone specifies file path of file as below
File fileToRead=new File("C:\Users\You\Desktop\testfiles.Zip\test.txt");
Compiler be like1 -
I executed "chmod -R go-r .*" on my home directory at the university server.
Only to realize that ".*" also considers ".." so I chmodded out files for many other students before I hit ctrl-c.3 -
Moving files is emotionally easier than copying and deleting files, and moving eliminates the risk of selecting the wrong files at the deletion part.
I have read that it is safer to manually copy and manually delete files rather than to move it, but copying and deleting has a hidden risk that was not mentioned: selecting the wrong files for deletion.
Moving files feels like moving an obstacle from one room to another. The deletion part of copying and deleting feels like destroying something, which is an added emotional barrier.
Technically, copying and deleting is safer, since there is no risk of source files being deleted without having been transferred as a result of a device disconnecting or the buggy media transfer protocol (MTP) failing to load the entire file list. However, on mass storage devices, this pretty much never happened to me, and on MTP, data loss can be avoided by not moving folders but opening the source folders and selecting all files and moving those out. This prevents a parent folder with incompletely loaded file listing from being deleted.
However, something that is not considered about copying and deleting is that the risk of selecting the wrong files in the deletion step exists. One might end up selecting files that were never copied.
Not only is moving straightforward and time-saving, but it has no emotional barrier and the risk of selecting the wrong files to delete from the source is eliminated, since a proper file manager like Nemo or Windows Explorer (mass storage only, not MTP) only deletes a moved file from the source after it has been properly transferred. The user does not need to pay attention to select the correct files to delete, since the file manager already did it.4 -
How the fuck do you actually tail log files?
Like i want the whole log. Not only from today, not *.log.1 and *.log, i want to run the *whole* log ever done, even the gzipped shit, through tail | grep.11 -
Quick Java question.
Does spending £200 on Oracle certification raise your job market value?
Or is it just a pointless money maker for Oracle.3 -
What happens when downloading files is fast?
Downloading Files Flies
or Downloading Flies
It sounded better in my head. Now it is awkward. Do you feel awkward? Stop it dad, you are embarrassing me and yourself!
My job here is done.3 -
Silly question, but why is it that in this age of 64-bit computing and gigabytes of RAM applications still have trouble with text files/SQL dumps over 1MB in size? Surely for something so simple it should be able to store it all in memory without any issues, no?9
-
I’m looking for a simple tool for Windows, GUI or CLI, doesn’t matter.
It should do the following:
Take a directory and a number as input and randomly move the files in that directory to subdirectories, each containing files up to the provided number.
So, random grouping essentially.
I’ll write it myself if it doesn’t exist, but let’s see if I can save me some work 😆24 -
Why does "git rm ..." Without options delete files! That is the dumbest thing ever. If I wanted to delete files, I could always type "rm file"... You forget --cached you're going to be in for a long day.
-
Fucking configuration files man. Every repo has 10+ .config.json files now. Why hasn’t some universal scheme emerged this is ridiculous?!8
-
First experience with dotfiles today, absolutely loved working configuring it a bit, also first experience with shell. But honestly also felt very dumb and perhaps incompetent compared to other such repos. Anyhow my terminal is delightful to use now, that's probably somewhat good.1
-
WTF is wrong with with you VS?!111 I only updated these efing NuGet packages and my whole project goes down the toilet? Don't tell me these files are not there!! THEY ARE!!!! I SEE THEM!!!
...ohh i forgot, my fault! these files in my packages folder are the new ones and YOU STILL WANT THE OLD FILES BECAUSE YOU FORGOT TO UPDATE YOU FUCKING PROJECT FILE! -
Freeze time with the computer I am sat on.
So when somebody says something can be done in an hour, they're usually correct -
Am I the only one that when he haves to download something (a map for a game, as example) download a whole pack and end having 40k files that I'll for sure not use them all..?
Because it finds out I just downloaded 200k files... :)joke/meme files download storage hello i am his hdd please come and free me space am i the only one pack2 -
As a developer should you use spaces in folder and or file names? Please elaborate on both why and why nots.5
-
I have 1.2gb of files, they are textures (client side for my gameserver players). By using winrar I managed to archive it to 550MB. Do you guys know more efficient way of shrinking large sizes of files?12
-
Out of the Operating Systems, I think Windows has the best file moving system.
Yes, you're unable to transfer files if they're currently in use, but you can start new file moving jobs in the middle of a current file moving process, and as of Windows 7, files that are unable to be moved for whatever reason don't cancel out the entire move.
Linux is next best because files will move regardless of if they're in use or not, and a file that is unable to be moved for whatever reason also won't cancel the entire move. However, if a new file move process is started, it will pause until the current move job is completed, which is a pain if moving a lot of large files.
Mac is the worst. One failed move results in cancelling the entire process. If a file will be duplicated or is unable to be moved, if you cancel that specific move, you have to start it all over again. No way to cancel or skip, just start it all over.4 -
So a couple of months ago I had some stability issues which seems to have caused Baloo go crazy and create an 1.7 exabyte index file. It was apparently mainly empty as zfs compressed it down to 535MB
Today I spent some time trying to reproduce the "issue" and turns out that wasn't that hard.
So this little program running on FreeBSD with a compressed (lz4) zfs dataset creates an 1.9 Exabyte large file, nicely compressed down to 45KB :)
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/limits.h>
int main(int argc, char** argv) {
int fd = open("bigfile.lge", O_RDWR|O_CREAT, 0644);
for (int i = 0 ; i < 1000000000; i++) {
lseek(fd, INT_MAX, SEEK_CUR);
}
write(fd, " ",1);
close(fd);
}3 -
Tell me again why you need 2TB to store "history" in 300GB text files on the same drives that hold the functioning database files.
-
questions I want to ask at work but I am too afriad to:
aren't we supposed to use .hpp for C++ headers instead of .h?1 -
That feeling when...
...you can't build a project because you can't autogenerate some files because they rely on some other autogenerated files that rely on some other autogenerated files that can't be generated because the project can't build...
Just another day in the eye of the dependency hurricane! -
Ugh I hate having to write c/c++ files in pairs of implementation and headers... Oh wait that's what bash scripts are made to solve! :D2
-
I don't understand why windows can't just start deleting files instead of indexing (or discovering) them first (besides being windows). Is there any technical reason behind this or is it just bad design?
When I do shift+delete on like 200k files (I'm looking at you nodejs) just "discovering" those files takes like 5 minutes. Wouldn't it be faster if it stars deleting immediately after finding disk location of first file?9 -
People that commit large binary files to subversion... sigh...
(Banging head on desk waiting for binaries to finish downloading)2 -
Never ever mount a btrfs sparse file (-o compression-force) to /var/lib/docker.
- 70% space usage 😀
+ 300% random system freeze 😰 -
I'm not lazy. If you want me to build you a typeface - I'll learn how to do it... and I'll do it ~ but when I get files like this... my brain just goes blank. I don't even know how to rename these. Even if I automate it... I don't know what any of them are. : /3
-
Believe it or not, I'm new to Github.
I only want to commit the main project files to my branch (not all the automated files that occurred when I exported the project)
question - how do I safely get rid of the visible list of "changed files" that I don't want to commit? Can I just "discard changes", or does this actually do something to the files?
I selected "ignore all XXX selected files (add to .gitignore)" but it has neither added to gitignore nor removed them from the list.
I mean, I could just leave these files in the list of "Changes"...but my OCD doesn't like a list of files in my face.8 -
The Node and its magic tricks never cease to surprise me.
I created several new components and tried to compile them for verification. Then this big fat error popped up.
I commented out all the newly created code (didn't remove any files, just did ^A^/). Recompiled. This big fat error again.
Undid modifications I made to the files that existed there before. Recompiled. This big fat error again.
Moved the newly created files outside of the project scope (mv app/<...>/featureX/ ../bkup/). Recompiled. SUCCESS.
Moved all of those files back (mv ../bkup/featureX app/<...>/). Recompiled. SUCCESS.
wtf...2 -
when the coworker is too incompetent to know about git mv and you have to rename a lot of files..
bye bye all version history of all the files -
I really need help. We are doing some interface files, something like C header files and configurations.
Management is aware of the "unittesting" buzz words and expects me to write unit tests on "header" and configuration files....
I tried to explain that there are no units to be tested, asked which units should be tested but in the end....
What does it actually mean to test definitions of structures, classes and methods?!3 -
> totally disable logging on console
> logging is redirected instead on some 1200 separated files (no, not "log files rotated through 1200 days"; every part of the program has its own log file, and there's 1200 of them)
> still, in all those files, none of them contains MY log; somehow it disappeared
Why some people even chose to become developers will always elude me2 -
I got 21 files with conflicts while merging feature to develop.
16 files were just identation and space shit conflicts. WHY do you commit reformats that change tab characters with spaces or vice versa without changing any code??? STOP WASTING MY TIME3 -
You should produce
shirts that are boldly written ”Git Cherry-Pick Saves!”.
It has redeem me from messed up conflicts. conflited files = 89.
How the fuck am I going to review 89 files, when deadline is just two days from now.2 -
Creating unit test files, but being to lazy to write the actual tests and then giving up creating the files as well.
-
Question about stacks: I've got a .deb file that I can't install on Manjaro. I can't use dpkg because the dependencies are nonexistent in manjaro's repositories. Should I look for a way to install with dpkg or should I learn docker?6
-
What is the best way to easily move files (text, documents, images...) Between android phones and PC (Linux)4
-
This happened while I was working for my company's client, I was analysing why the build failed and I had ctrl+c the build files(.zip) to my local webserver to see what was wrong. After sometime I was replying an official email via outlook. But somehow those copied build files (.zip) ended up in this email. I realised this only it was too late. Yes config files had clear text passwords.
-
Hi all,
I was just wondering if anyone knows of a software that does for files on a server what dropbox does for files in the cloud. A search interface, moving files around, copy pasting etc..
I'm just using nginx's autoindex at the moment with an authentication layer but I was hoping to get a nice gui with search capabilities and copy paste, potentially share file, etc..
Kind regards and keep on hacking.6 -
My homies really out here giving me three units to test spread out across two + four thirds of a file and expect me not to raise an eyebrow.
No, that is not three + one third. That would imply that the thirds all belong to one unit, or one file for that matter. -
hey, how do you keep up with the migration files and git branches, i name them, how do you make sure the current branch has latest migration files so it does not break your application :)2
-
They should merge my pr first, so the one who will resolve the conflict is not me. I spent 3 days and nights cleaning 60 files in the projects. 60 files! Sadly, my manager merged other pr with 2 files changes from my junior first, destroying many of my changes.5
-
Damn.. I'm filling in a web form on my mobile, and when I got to 'phone' field I tried to submit this3
-
Twitter disclosed a bug on its platform that impacted users who accessed their platform using Firefox browsers.
According to the report of ZDNet: Twitter stored private files inside the Firefox browser's cache (a folder where websites store information and files temporarily). Twitter said that once users left their platform or logged off, the files would remain in the browser cache, allowing anyone to retrieve it. The company is now warning users who share systems or used a public computer that some of their private files may still be present in the Firefox cache. Malware could be used to scrape and steal this data.2 -
For persistence, either credentials or data, is there any best practice that prefer DATABASES over FILES? Files such as JSON or txt or whatever...
Do dbs offer better perfomance or security?💾5 -
Design Decision:
We have an API and a lot of microservices based on that API. Additionally we have a store of protobuf-templates (files to automate serializing certain events etc).
Currently for each service we have the API with general stuff (connection stuff etc) and then copy the 5 or 6 proto-files we need for that service, they update sometimes, so does the API, for each service, two things that need to stay updated. Which option would seem more logical to you?
a) Integrate all proto files into the API. The services then only need to update the API but they also have access to many proto files they don't need for that service (which are required for other services however)
or
b) Keep them seperated and keep manually updating the proto-files for affected services
Disclaimer: our proto files are always backwards compatible by design, both the API and protofiles change fairly frequently.
Ty -
I often have to use files on Linux, Mac OS and Windows. I've had multiple issues trying to swap files across the platforms. Is there a solution I can use to replace USB storage? A dedicated server or something?2
-
Hello all, recently I have been doing alot of front end work in web forms and lead generation. I would love to learn more about marketing and how it can be applied as a dev.
Does anyone recommend any good books atall?
Thanks!2 -
I want to use steganography for blob files (video files). Can anyone point me to the right direction? Is it even possible?13
-
Json + python is hell. I've been working on the past few days to pull key information out of json files with python and it would with some json files but not others.2
-
The "recycle bin" feature of Samsung "My Files" is amazing for data loss prevention when moving files out of the smartphone.
There used to be two ways to move files out of the smartphone to make space free. One is direct moving, the other is copy-deletion. The first is self-explanatory, the second means first copying the files and then deleting them on the phone.
Thanks to the the recycle bin, which keeps data for a month, files on the phone can be copied out and then put into the recycle bin instead of immediately deleted.
This means that if the copying was incomplete, there is a thirty-day grace period to get the files back from the phone.
The benefit of moving files instead of copy-deleting them is the lack of the deletion step. Moving files out directly does not have the emotional barrier of deleting the files from source like the deletion step of copy-deleting does.
Moving files feels like moving items to a new room, where as the deletion step after copying feels like destroying something.
So why not move files out? Because there is a risk of data loss if the device disconnects while files are moved to an USB OTG device. Due to write buffering, files that are moved out might be deleted on the phone shortly before they are completely written on the USB-OTG.
This is not an issue with MTP (Windows or Linux through USB cable) because the file systems are managed by the computer, so if the phone disconnects while files are moved out of the phone using MTP, the file system is kept intact by Windows or Linux.
Now, thanks to the recycle bin, there is no emotional barrier to deletion because the files on the phone are automatically deleted after 30 days in the absence of the user. The user can press the "delete" button without worries because of knowing "I can get it back until a month from now anyway". -
Despite already having a few years of professional experience dealing with Linux servers, I still, to this day, confuse, which environment file gets sourced and when...
There's /etc/profile, /etc/bashrc, ~/.bash_profile, ~/.profile, ~/.bashrc
I think it's... Bashrc for interactive shells, profile for login shells.
But then I have examples like "ssh user@server 'echo $var'" that... Don't source any of the files!
You can enable user environment files for SSH that get sourced whenever a user logs on through SSH (~/.ssh/environment / environment specified for a key in ~/.ssh/authorized_keys)
Is there some sort of master environment file that gets sourced *every* time, no matter what kind of shell starts?1 -
What creates these files and folders?
Cache, GPUCache, Local Storage, Cookies, etc...
I see that many different programs have a folder in my appdata with these exact files/file structures in it. Is there some sort of framework that creates these? I'm just curious.4 -
I want to automate log files using ansible automation.
How can I scan log files & take action on them ?2 -
How do I package the shared libraries
(.so files) with an executable let's say for linux and make sure that the program links to those shared libraries.do I just put the .so files and the executable files in the same directory or do I have to do something else.2 -
NPM package – community-health-files
I've just built a NPM package: community-health-files
This package automates the creation and management of key files like CODE_OF_CONDUCT.md, BUG_REPORT.yml, and SECURITY.md for open-source projects. It simplifies the process of maintaining project guidelines, security policies, and codes of conduct, providing a more efficient and organized workflow.
This package helps open-source projects stay organized and compliant, saving you time and effort by handling the setup for you.
I'm always looking for feedback and contributions from the community—whether it's through improving the code, enhancing the documentation, or sharing your ideas.
🌟 Check it out, and if you find it helpful, consider adding a star on GitHub!
🔗 Link to the package on npm: https://lnkd.in/gJFUKudX
🔗 Link to the repo on GitHub: https://lnkd.in/gsGhHA-C4 -
When you make a backup file and forget it, so you remember hours later after making changes that "don't show"
-
Need an advice on syncing large amounts of small files. For starters I have 2 million of ~20-25kb sized files in dropbox. Syncing it with my local machine is a pain in the ass (API limits syncing to 4-5 files per second, so I will need at least 96 hours just to take out everything from dropbox).
Recently I started looking into self hosted cloud solutions. I fiddled around with nextcloud but it's client limits syncing to 5-6 files per second as well. Accessing nextcloud via webdav from a rclone client I was able to up the syncing speed to 15-25 files per second but that's all.
Any solutions where I should host 2mil of files and would be able to sync them fast to my own machine with some cloud client when I need it to?5 -
Working on a Django API where I have to send a request to a PHP file to upload a XML file. Here is what I wrote:
url = 'url.to.php.file'
files = {
name: ('filename', xml_file.xml)
}
response = requests.post(url, files=files)
I am getting Internal server error. Do not know what I did wrong. Am stuck on this for like 3 days and have tried EVERY alternative POSSIBLE. HELP ME
*cries in corner*2