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 - "7z"
-
this.title = "gg Microsoft"
this.metadata = {
rant: true,
long: true,
super_long: true,
has_summary: true
}
// Also:
let microsoft = "dead" // please?
tl;dr: Windows' MAX_PATH is the devil, and it basically does not allow you to copy files with paths that exceed this length. No matter what. Even with official fixes and workarounds.
Long story:
So, I haven't had actual gainful employ in quite awhile. I've been earning just enough to get behind on bills and go without all but basic groceries. Because of this, our electronics have been ... in need of upgrading for quite awhile. In particular, we've needed new drives. (We've been down a server for two years now because its drive died!)
Anyway, I originally bought my external drive just for backup, but due to the above, I eventually began using it for everyday things. including Steam. over USB. Terrible, right? So, I decided to mount it as an internal drive to lower the read/write times. Finding SATA cables was difficult, the motherboard's SATA plugs are in a terrible spot, and my tiny case (and 2yo) made everything soo much worse. It was a miserable experience, but I finally got it installed.
However! It turns out the Seagate external drives use some custom drive header, or custom driver to access the drive, so Windows couldn't read the bare drive. ffs. So, I took it out again (joy) and put it back in the enclosure, and began copying the files off.
The drive I'm copying it to is smaller, so I enabled compression to allow storing a bit more of the data, and excluded a couple of directories so I could copy those elsewhere. I (barely) managed to fit everything with some pretty tight shuffling.
but. that external drive is connected via USB, remember? and for some reason, even over USB3, I was only getting ~20mb/s transfer rate, so the process took 20some hours! In the interim, I worked on some projects, watched netflix, etc., then locked my computer, and went to bed. (I also made sure to turn my monitors and keyboard light off so it wouldn't be enticing to my 2yo.) Cue dramatic music ~
Come morning, I go to check on the progress... and find that the computer is off! What the hell! I turn it on and check the logs... and found that it lost power around 9:16am. aslkjdfhaslkjashdasfjhasd. My 2yo had apparently been playing with the power strip and its enticing glowing red on/off switch. So. It didn't finish copying.
aslkjdfhaslkjashdasfjhasd x2
Anyway, finding the missing files was easy, but what about any that didn't finish? Filesizes don't match, so writing a script to check doesn't work. and using a visual utility like windirstat won't work either because of the excluded folders. Friggin' hell.
Also -- and rather the point of this rant:
It turns out that some of the files (70 in total, as I eventually found out) have paths exceeding Windows' MAX_PATH length (260 chars). So I couldn't copy those.
After some research, I learned that there's a Microsoft hotfix that patches this specific issue! for my specific version! woo! It's like. totally perfect. So, I installed that, restarted as per its wishes... tried again (via both drag and `copy`)... and Lo! It did not work.
After installing the hotfix. to fix this specific issue. on my specific os. the issue remained. gg Microsoft?
Further research.
I then learned (well, learned more about) the unicode path prefix `\\?\`, which bypasses Windows kernel's path parsing, and passes the path directly to ntfslib, thereby indirectly allowing ~32k path lengths. I tried this with the native `copy` command; no luck. I tried this with `robocopy` and cygwin's `cp`; they likewise failed. I tried it with cygwin's `rsync`, but it sees `\\?\` as denoting a remote path, and therefore fails.
However, `dir \\?\C:\` works just fine?
So, apparently, Microsoft's own workaround for long pathnames doesn't work with its own utilities. unless the paths are shorter than MAX_PATH? gg Microsoft.
At this point, I was sorely tempted to write my own copy utility that calls the internal Windows APIs that support unicode paths. but as I lack a C compiler, and haven't coded in C in like 15 years, I figured I'd try a few last desperate ideas first.
For the hell of it, I tried making an archive of the offending files with winRAR. Unsurprisingly, it failed to access the files.
... and for completeness's sake -- mostly to say I tried it -- I did the same with 7zip. I took one of the offending files and made a 7z archive of it in the destination folder -- and, much to my surprise, it worked perfectly! I could even extract the file! Hell, I could even work with paths >340 characters!
So... I'm going through all of the 70 missing files and copying them. with 7zip. because it's the only bloody thing that works. ffs
Third-party utilities work better than Microsoft's official fixes. gg.
...
On a related note, I totally feel like that person from http://xkcd.com/763 right now ;;21 -
Best part of being a dev?
The perceived ability to fix ANY electronic device owned by friends and family.
"So you work with computers? Any idea what's wrong with my toaster?"7 -
Everyone generally agrees code reviews are a good idea right? And some form of testing is kinda a requirement before releasing.
Nope not my boss at the moment. None of my work has been checked in any way but is going out to thousands of users.
If I take the heat for bugs I'm gonna hit back so hard15 -
My laptop had a full meltdown and wouldn't turn on. It tried to start up then the screen went blank. It's happened before so I lost hope pretty quick.
Just spent the whole evening trying to fix it reinstalling windows and now I spot the problem. The HDMI is plugged in to a monitor that was off. My laptop was fine the whole time. Fml3 -
If you put a million monkeys on a million keyboards, one of them will eventually write a Java program.15
-
My new favorite commit message:
> code modified
It must be the most redundant commit message ever15 -
1. talked to a dev and found out he never used git
2. saw a guy formatting the code in eclipse line by line, even when eclipse provides automatic formatting.2 -
I left uni in 2005 clutching my shiny new .NET based degree, and was instantly hired by a local software firm... to maintain their legacy Turbo Pascal systems.2
-
So Windows XP source allegedly got leaked... And a bunch of other MS's OS (and other) files
https://limetorrents.info/Microsoft...
```
ms_dos_3_30_oem_adaptation_kit_source_code.7z - 591.99 KB
ms_dos_6_0_source_code.7z - 10.7 MB
nt5src.7z - 2.37 GB
torrent description.txt - 6.63 KB
windows_10_shared_source_kit.7z - 74.76 MB
windows_2000_source_code.7z - 122.35 MB
windows_ce_3_platform_builder_source_code.7z - 638.69 KB
windows_ce_4_2_081231.7z - 3.44 MB
windows_ce_5_121231.7z - 4.92 MB
windows_embedded_7_2014M12.7z - 12.9 MB
windows_embedded_ce_6_r3_170331.7z - 8.11 MB
windows_embedded_compact_2013_2015M09.7z - 93.17 MB
windows_nt_3_5_source_code.7z - 101.76 MB
windows_nt_4_source_code.7z - 106.22 MB
windows_source_bg.png - 134.83 KB
windows_source_bg.svg - 55.03 KB
```17 -
"And there you have it folks. Open-source "many eyes have looked at it for years so it must be secure" crypto code."
🤘
https://threadreaderapp.com/thread/...21 -
There was an error in one of my Java file. Impossible to find it. I commented all the code and the error remain. I commented the import of that class and no more error. How the f**** is possible that a empty class give an error ?
I opened the file in another text editor and found out that the last character was a symbol that wasn't recognize or display in other text editor.
I was really proud (and confused)3 -
Worst coding interruption?
The fire alarm going off.
That's when you learn how quickly it's possible to git commit and push7 -
wanted to try fedora on my laptop nd instead it removed my Windows from the laptop,
now installing Ubuntu 😪😪😪
such a start to the Sunday8 -
That pure rage when you're off work for a few days, and return to find that someone has been in one of your magnificently neat code files, and taken a syntactic shit! Loads of unnecessary whitespace, tabs all over the place, and copy/pasted comments that have nothing to do with the code! 😫1
-
> My company started posting things on LinkedIn. That's cool.
> My company started asking us to like and share said LinkedIn posts. Okay.
> Since I'm already on I decided to update my LinkedIn profile following some advice I've seen and including some key words. Coolio.
>> Now I keep getting recruiters wanting to be added to my network 🙄 not cool.
I've seen so many posts about recruiters being annoying on LinkedIn and never understood until now. I think I'm going to go back to having a crappy profile so these people don't find me7 -
well there's an interesting error😂😂😂😂😂
Stackoverflow clears our error and then I get a Stackoverflow error
java😂2 -
Just investigating a bug reported by QA. Spoke to the dev responsible for the code, and asked why they'd called a particular function. Their reply:
"Well the function name sounded right. I didn't check what it actually did" -
Now my facebook messenger app does it's updates inside the app without my consent to install an apk.
I'm scared6 -
Today I was trying to convince a colleague that:
fun example(){
if(thing){
//Do something
}
}
Is stupid because it should be
fun example() {
if (thing) {
//Do something
}
}
It's the small things that are the most frustrating14 -
When the PO asks for a last second code change right before the sprint review, and now it's your turn to demo1
-
Yes, I have to admit, sometimes Linux is a F*KING B*TCH.
I was supposed to fucking format a pc for a close friend of mine, cause he produces music and win 10 fucked his machine up with its broken updates.
Knowing the guy is a talent I promised that by 7PM the pc would be fixed.
Not really, I'm feeling the stupidest guy in this fucking earth, cause I've been here for 2 hours, fucking trying to extract an ISO image, and nothing on this fucking planet seems to work.
Tried the graphical archives, none open de ISO, tried 7z, it gives me an error, tried fuseiso, which is recommended in Arch Linux' documentations. Doesn't work. Tried mount - o my file.iso /mnt and it says /mnt isn't in the fstab file which makes me even angrier cause I always mount everything there without editing shit. So I installed 7-zip for windows in wine, it extracts until 90% and freezes. Now I'm trying hsuebrirbwkwpxjhw9shrbejejwke and my mouth is foaming and my ear is bleeding my brains out and I don't need you shit.
Fuck you, Fuck your goddamn ISO and Fuck this faggot ass spell checker, that changes Fuck to duck and assign to asset.
Fuck it, I ain't gonna format anyones pm anymore.18 -
My password manager!!
I use passwords I can never remember, stay logged in, next time I need to log_in I use the passqord forgotten button, reset it with my e-mail or better phone2 -
just saw a production level code, all the fucking variables in the code are in capital letters🤪😵😵😵2
-
Upgraded from a gen 6 motherboard and cpu to a gen 11. And the difference is asounding.
My old setup did everything I needed it to pretty well. Hell it got me through college as well as multiple part time and full time jobs. As well as the system that I learned about 80% of what I know specifically for my career
But alas the old cpu's age started showing and I'd consistently throttle multiple threads when compiling or even just using 7z on large folders. Hell deleting anything above a couple hundred mb would pause for a few seconds
The new cpu is immensely faster on such tasks (probably cause of the extra 2 cores and cpu improvements since gen 6)
I haven't been this excited since I got my first SSD a few years ago and saw the immense boot time improvements. Maybe soon I'll get an nvme drive and really be zooming with this setup 🤣🤣🤣6 -
what to do with this android studio, taking up 2.3 gigs of RAM😪😪😪
good thing i upgraded my ram from 4 gigs to 8 gigs before getting into android development 😪6 -
This is a story of how I did a hard thing in bash:
I need to extract all files with extension .nco from a disk. I don't want to use the GUI (which only works on windows). And I don't want to install any new programs. NCO files are basically like zip files.
Problem 1: The file headers (or something) is broken and 7zip (7z) can only extract it if has .zip extension
Problem 2: find command gives me relative to the disk path and starts with . (a dot)
Solution: Use sed to delete dot. Use sed to convert to full path. Save to file. Load lines from file and for each one, cp to ~/Desktop/file.zip then && 7z e ~/Desktop/file.zip -oOutputDir (Extract file to OutputDir).
Problem 3: Most filenames contain a whitespace. cp doesn't work when given the path wrapped in quotes.
Patch: Use bash parameter substitution to change whitespace to \whitespace.
(Note: I found it easier to apply sed one after another than to put it all in one command)
Why the fuck would anyone compress 345 images into their own archive used by an uncommon windows-only paid back-up tool?
Little me (12 years old) knowing nothing about compression or backup or common software decided to use the already installed shitty program.
This is a big deal for me because it's really the first time I string so many cool commands to achieve desired results in bash (been using Ubuntu for half a year now). Funny thing is the images uncompressed are 4.7GB and the raw files are about 1.4GB so I would have been better off not doing anything at all.
Full command:
find -type f -name "*.nco" |
sed 's/\(^./\)/\1/' |
sed 's/.*/\/media\/mitiko\/2011-2014_1&/' > unescaped-paths.txt
cat unescaped-paths.txt | while read line; do echo "${line// /\\ }" >> escaped-paths.txt; done
rm unescaped-paths.txt
cat escaped-paths.txt | while read line; do (echo "$line" | grep -Eq .*[^db].nco) && echo "$line" >> paths.txt; done
rm escaped-paths.txt
cat paths.txt | while read line; do cp $line ~/Desktop/file.zip && 7z e ~/Desktop/file.zip -oImages >/dev/null; done3 -
Didn't install linux for years now. Today, I have to and nothing changed about wifi drivers, at all ! Even the install process still sucks !
And they still ask to "sudo apt-get install fucking-wifi-driver" ?!?!?!
I don't have internet yet, that's the all point, damn it !22 -
Sometimes code is correct but so wrong. Came across this in a kotlin PR today
If (thing != null && thing!!.field != null) {2 -
I was just setting up rules for a firebase database.
Typing out all the JavaScript like stuff and was nearly finished.
Went to change tabs in safari to check something but accidentally clicked just above on the bookmarks bar.
The page navigates away and all the rules I had written are lost 😥1 -
Developing on Android and came across an issue that only seemed to be happening on one of our devices.
A fair bit of time was spent trying to figure out why the hell one resource (image) wasn't available even though it was clearly there in the project and was working on all other devices.
Turns out the image in question was in the drawable-v24 folder on accident so of course wasn't working on the one device running Android version 21 🤦 at least it was an easy fix -
When the meeting organizer gets to the end and says "I'll give you back 20 minutes of your day". 🤬
No sir, plonking a meeting in my calendar doesn't mean you now own an hour of my day. No no no. You are not being a saint giving me back time. The truth is you just took 40 minutes of my time! 40 minutes I can't get back. It's gone. Forever.
Please be respectful of that next time you're planning a pointless meeting5 -
Those people who don’t even understand the commit message
Who commits using commit message “commiting”?3 -
Wikipedia - I know everything
Google - I have everything
Facebook - I know everybody
Internet - Without me you are nothing!
Electricity - keep talking4 -
my workstation, can't imagine to work without it,
waiting for dev rant stickers even left some space for them
Proudly running Ubuntu Gnome 16.043 -
Chances of getting all the bugs fixed before the demo...
"What do you think Abdul? Can you give me a number crunch real quick?"1 -
One CDN goes down and whole world thinks it’s the end of the world!
It’s an opportunity to improvise and bring up something better3 -
Google Japanese Input's Installation failed with code 1402 ( MSI killed the installation)
So I unpacked this .msi file using 7z and copied them to a directory, started all .exe programs, it worked....
A weird way to install software..5 -
Wondering for half an hour why the 7zip batch commands are not working.
Realized I was using 7zip instead of 7z :( -
It's amazing how many minor office arguments there are where each side doesn't realize they are making the same point just with different words7
-
Top 5 World’s Most Difficult Programming Languages
https://search.app.goo.gl/Yk8Mm
Never heard of any one of them,
how many u knew?6 -
wanted to do a poll for my team, Which should we use for development of spring-boot?
I personally recommend VSCode, what about you guys?17 -
Been working on a Covid App in this quarantine. Right now it’s only on Android but still can get the view from the page below. Do give it a go..
https://neo7337.github.io/cvkavach_...
open for suggestion and bugs!3 -
nothing is better than starting the new year while working on a project,
first git commit of the year 2018
happy new year ranters1 -
i previously had Windows 10 and somehow my Windows was deleted so i installed Ubuntu and wiped the hard disk
can u suggest any full data recovery tool in linux from which i can recover the data i had in Windows.1 -
looking for a nice side project very badly..😖😖it sucks when you have nothing interesting to work on.3
-
if anyone has firmware or any custom rom for htc 728, please help me. I need it asap. every file that I downloaded and tried was curropted while installing
Thanks!!2 -
Hey guys I want to make a android app in my trash phone but I don't know any Aide for phone because I dont have any pc or laptop23
-
just completed my first side project today after one and a half months of hard work.
Check it out:-
https://git-lan-api.herokuapp.com
Please provide any suggestions and improvements.4 -
I am currently creating a module where I have to put data in xls sheet from a given data, which contains date column,.
I have generated the sheet and the respective date column also has the format of Date which is default of Microsoft Excel.
But the big question noew arises that I am not able to sort the data according to the date column, the sorting is not working correctly.
If anyone has ever worked on this please tell!!3 -
Colleague from a remote office emails me to ask what version of some tooling is installed on a build machine. Generally I wouldn't mind, but for the fact they're literally sat next to said build machine in the remote office. I mean... why get up and look yourself, when you can just IM somebody to look for you... right?
-
Sending E-Mail to Software Developer, had to attach a number of documents, so i think, best i put them into an archive, lets just use 7Zip cause its two clicks for me.
Instant E-Mail back:
Thanks for your E-Mail, unfortunatly we cannot accept the .7z file. Please speak with out IT guy about the issue.
REALLY!? YOU GUYS SELL SOFTWARE AND YOU DONT KNOW WHAT 7Z IS ?!?!
I send a zip file in return without speaking to anyone.7 -
Any of you guys know about Feathers UI ? Based on Google Trends, I'll assume that you don't. But if you do please let me know
-
.$$$$$$$Z$.
.~$$7...........$$$.
.$$...?$$$$$$$$$$Z....$Z.
.Z$..Z$$$$$$$$$$$$$$$$Z:..$$.
,$..$$$$$$$$$$$$$7...$$$$$?..$.
.$Z .$$$$$$$$$$..?$$.....$$$$$..Z:
.$$.$$$$$$$$$........$$....Z$$$$..Z,
:$.7$$$$$$$$..........$$....$$$$$..$.
.$. $$$$$$$$$...........$....$$$$$$..$.
.$$.$$$$$$$$$$...........$...$$$$$$$$.$.
.$. $$$$$$$$$$ ..........Z..$$$$$$$$$.$$.
.$.,$$$$$$$$$$$.........$$$$Z$$$$$$$$..$.
.Z $$$$$$$$$$$$$$....+$$$$$,,,,~$$$$$..$.
.$.=$$$$$$Z,,,,,?$$$$$,,,,,Z$,,,,$$$$..$.
.$..$$$$$$,,,,,,,,Z$$,,,,,,,,$:,,~$$$.:$.
.$$.$$$$$,,,,,,,,,,,,,,,,,,,,:$,,:$$$.Z.
.$..$$$$,,,,,,,,,,,,,,,,,,,,:$,,,$$..$.
.$$.$$$:,,,,,,,,,,,,,,,,,,,,,Z$$$$+.$.
.$= $$~,,,,,,:::,:,,:,,::,:,$$$$Z.$Z.
.$+.$$$$$$$$$$$$$$$$$$$$$$$$$$:.$$.
.$$..Z$$$$$$$$$$$$$$$$$$$$$Z..$7.
.$...$$$$$$$$$$$$$$$$$$$..Z$.
.Z$=..?Z$$$$$$$$$$$Z...$$.
.$$7.............Z$$.
.7Z$$$$$$$$$$4 -
I am using Ubuntu+Windows 10 on my laptop
I have partitioned the hard disk in such a way that I have a portion where ubuntu is installed, a portion where windows is installed, and 2 other partitions which both ubuntu use common for data storage
it has been working fine till now
but today out of nowhere I am not able to access some folders on the common 2 drives in windows,
I am able to access all the folders in ubuntu but not in windows.
it says you don't have rights to access the folder
i try to change the settings the settings freeze and den I am not able to do anything
I have tried icacls in cmd but it's not working
any suggestions on how to fix this problem??2 -
Is there a way to create pull request on git using CLI? I have tried request-pull option but quiet lost over there.9
-
Internal: a program that takes files (or a zip/7z file with files in it) and loads them into a database/table in file created order per a json-based map file because flat file loading in SSIS is horrible.
Public: ChromeKiosk https://github.com/benjaminkwilliam... -
i have a hp laptop and Windows 10
I wanna install ubuntu but all my previous attempts have been unsuccessful
any tips?16 -
I'm using Fedora 25/ pre-release, and It's rock solid except for wifi hotspot and I don't need it.
Now my school gave me a Windows 10 pro key, and I'm hesitant.
Should I install it ?
Will I need it ?5