1,534 reputation
27
bio website
location
age
visits member for 2 years, 3 months
seen Jul 3 at 14:17

Mar
7
answered Concurrent request to create directories
Mar
3
comment Should you disable SSH login with root on your server?
+1 QOTW for "Rather than making a better door lock, don't give them a door."
Feb
28
comment How to find out when a disc (DVD) has been written/burned?
File modification times don't likely have anything to do with when the files were burned onto a disk... and what if it's an audio disc or something like that, which does not have a filesystem?
Feb
28
comment How to find out when a disc (DVD) has been written/burned?
Carbon dating? :) That's only half a joke: it really does seem like you should be looking to physics for the answer, not computer science.
Feb
6
comment Unable to do passwordless login to FreeNAS
I guess your device's filesystem is read-only, just like the error says. What type of filesystem is it? What's the underlying device (likely an mtdblock device)?
Feb
3
answered Crontab mis-entered time
Feb
3
comment What's the most useful Linux file system for storing videos?
yeah, you have it right. There's not much else to say, but nobody else has come along so I posted an answer with mostly what I said earlier
Feb
3
answered What's the most useful Linux file system for storing videos?
Feb
3
comment Find processes listening on the wildcard address in `lsof`
Looks like a bug in lsof to me!
Feb
2
comment How does rsync (in Cygwin) decide what sharing permissions to apply to a copied file?
Or instead, if you don't care about faithfully syncing the permissions between Android and the backup, you could make sure to omit -a and/or -p from rsync's options, run with a umask at least as permissive as 022, and hope cygwin maps the resulting permissions to something that is world-readable.
Feb
2
comment How does rsync (in Cygwin) decide what sharing permissions to apply to a copied file?
This issue probably won't be solved by changing anything on the rsync side: it's a cygwin issue. rsync runs in an emulated POSIX environment and it will faithfully copy the POSIX ownership and permission attributes from the source file (on Android) to the destination file (if you use either rsync's -a option or one or more of -ogp). How those permissions translate to MS Windows permissions is all up to cygwin.
Feb
2
comment What's the most useful Linux file system for storing videos?
Your requirements are not particularily demanding or difficult to meet. I would suggest simply using your favorite general purpose filesystem (be it ext4 or xfs or anything else, really) with dm-crypt underneath to support the encryption. You only speak of a single hard drive, so I guess RAID is out.
Jan
31
comment How to extract bytes from the middle of a file?
120MB is not so big. Nobody ever worried about squeezing every last bit of performance out of a shell script. If you want that, use C :-) So Michael Kohne's answer is pretty much what I would do. Or if the file really is too big for you to want to read the whole thing, pre-filter it with something like tail --bytes=5000 ding... and then you hope that the last 5000 bytes are enough to encompass the 3 lines that you need.
Jan
31
comment How to extract bytes from the middle of a file?
What's wrong with converting the ~ to newlines and tailing the last 3 lines of the file. If the file is known to not already contain newlines then this does not introduce any ambiguity into the format, and frankly it's the best way to massage the file into a format that makes it easy for all those line-based tools to work with.
Jan
27
answered Default PYTHONPATH on Mc
Jan
25
comment Compromised RSA key - unsure of the scope of the issue
Based on webmasters.stackexchange.com/questions/42680/… (which this is a duplicate of) I am assuming that this RSA is used in some sort of web context, but you need to be a lot more specific.
Jan
25
comment Compromised RSA key - unsure of the scope of the issue
It ENTIRELY depends on what the RSA is being used to protect!
Jan
25
comment Merge command history between the Python shell and the Unix terminal
Have you tried reload(modulename)? It won't work as well with the from something import * form as it does with import module and from dotted.name import submodule though.
Jan
22
answered How do I move a line in a file to the top from the command line?
Jan
22
comment How do I move a line in a file to the top from the command line?
From the command line, it is always easier to generate a new file given an input file than to edit a file in place (change its contents). Is that good enough for you? After you've generated the new file you can always move it back to the original filename (thus squashing the original file).