Reputation
803
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
6 27
Impact
~42k people reached

Oct
2
comment Can't boot Linux Mint nor Ubuntu
@garcias You have to KEEP nomodeset even when running Ubuntu normally, not just for installation. Unfortunately, the currently shipped version of nouveau is so badly broken that nomodeset in grub2 is a must for many NVidia cards. Got a FX 6200 (NV44A) and the same problem as you have. It's as if you had photographed MY screen when nomodeset is false.
Sep
23
revised How can I rename a lot of files using a regex?
line break ... (had to RTFM a bit how to do this here (SO Meta Q #138776))
Sep
23
suggested approved edit on How can I rename a lot of files using a regex?
Sep
23
comment Can I safely remove /var/cache?
Why does it need to?---Anyways, I was directly nodding to what Matthias said about "hoops", i. e. difficulties, if you choose to delete /var/cache/apt/* and you're using APT at the same time. Though I would not be keen on testing it out :), I am sure (just like Matthias is) that APT would no longer work flawlessly once /var/cache/apt/* gets entirely purged. However, I do accept evidence which proves the contrary. And no, vague presumptions like "it shouldn't matter if" will not count. :p
Sep
20
comment Can I safely remove /var/cache?
But Matthias is right. Just recently, network-manager v1.0.4 made my network inaccessible. (Known bug) That means, even to fix some things, I was instantly unable to fetch any packages from the internet to repair the stuff. But /var/cache/apt/archives saved my life! Used dpkg with the pre-1.0 version of network-manager that was found there, and I was back in the WWW world! So think twice before removing anything in there.
Sep
18
revised Chromium does not honor Fontconfig fallbacks? Can I set it for that? Or manually specify?
corrected spelling
Sep
18
suggested approved edit on Chromium does not honor Fontconfig fallbacks? Can I set it for that? Or manually specify?
Sep
15
comment How to rename filename with ' or ? in file name?
Right, this must in fact be a unicode character that only looks like an ordinary "apostrophe".
Sep
15
comment How to remove URI encoding from file names?
Also covered in the following question: unix.stackexchange.com/questions/159253/… (which to me seems pretty duplicate to this one in some way)
Sep
3
awarded  Yearling
Aug
29
revised Getting logged out of user account upon execution of a program
added 364 characters in body
Aug
29
answered Getting logged out of user account upon execution of a program
Aug
28
comment Deal with renamed videos in youtube-dl
Thanks for the info and the link. Well, in case that data is always added at the same (relative) offset (e. g. 1024 bytes before the end of the video, or even at invariable starting and ending offsets), even this would be possible to handle. But I'd have to do a more thorough test to be sure. :)
Aug
28
comment Deal with renamed videos in youtube-dl
Ah, OK. So this'd work, even though it seemed against your original intention, hence I chose not to mention it. :) Anyways, it's true: from user's (or client's side), the only way you can do is live with the duplicate already downloaded (as you can't prevent it from happening, as I explained above) and afterwards doing your deletion operations on it if need be.
Aug
28
comment Deal with renamed videos in youtube-dl
I'd say you can't. You must find a way to tell youtube-dl to skip downloading when files are equal byte-wise. And this can only be done in code (i. e. by expanding it (-->feature request??)), because the current version of the script will already have downloaded the video when you will be returned to your bash prompt again - no matter if already there or not.--- In comparison, think of an observer/intercepting mechanism in web servers that can hook in before any JavaScript is ever loaded. The same thing you need to do here before youtube-dl attempts to download from YT.
Aug
28
comment Deal with renamed videos in youtube-dl
I don't have a solution, but a hint: what about md5ing (or, if you insist, applying the good ol' crc32 on) the video file and doing a byte-wise file comparison? This would, however, have to be programmed into youtube-dl because once it has finished doing its work, there is no "post-operation" you can do on it. (Because you want to prevent the tool from downloading in the first place if the video already exists!)
Aug
13
comment Is there a difference between ./script and bash script?
In a nutshell: IMO using bash itself (instead of its built-in commands) for running a script I'd almost compare to "committing a crime."
Aug
13
comment Is there a difference between ./script and bash script?
Wait a moment...I have never written anything about the . command. That's yet another pair of shoes. I only mentioned ./script and source script in my answer, but not . ./script. Yes it can be confusing at times. Ah, and big thanks for the downvote. :P Yay, that felt so refreshing.
Aug
13
comment Is there a difference between ./script and bash script?
@Slothworks FWIW, source tryit.sh won't care about the status of the +x bit either :) In any case, I think the source way is much better than using the fairly huge bash binary itself to run a script which lacks the +x flag. I've never had a situation when I had to (mis)use bash as a trigger to run such non-executable script.
Aug
13
revised Is there a difference between ./script and bash script?
added 433 characters in body