546 reputation
511
bio website
location
age
visits member for 3 years, 5 months
seen Mar 27 at 17:13

Mar
25
comment Making a Synology diskstation accessible via WLAN
@FrankThomas: Well, the reason why the 2-bay NAS is locked in a cellar room behind a steel door is that I'd like it to keep a backup for the case when the whole place burns down. So, moving it upstairs won't do (though so far I'm indeed taking it upstairs every 3-4 days, plug an ethernet cable in, and run the backup. That's... sub optimal). Ideally, I'd like this to happen via cron every night, without me even thinking about it. So a typical $20 AP should do in your opinion? I'll try that, thank you :-)
Mar
10
comment How can Windows dump the complete RAM in the hibernation file so fast?
@PeterMortensen: No, I really mean gather write (as opposed to scatter read). This means writing to a single file while gathering the data from multiple locations. You supply an array of structures each of which contains a start address and a length (with strict alignment requirements). The operating system passes these to the controller, and the hardware does the rest.
Jan
19
comment find/xargs, filenames with spaces, and quotes
Given Windows and no Perl installed, that's unluckily not an option, did it manually by splitting a file.
Jan
19
comment find/xargs, filenames with spaces, and quotes
Ended up redirecting all to a file, splitting the file in 8 pieces, and running the 8 pieces in parallel by hand.
Jan
17
comment find/xargs, filenames with spaces, and quotes
Well, the point of xargs is that it lets me run 8 jobs on 8 cores, with bash I could have them run serially or to fork 1,800 processes, neither of which is good. Adding \" in printf sure does the job, but xargs strips them out. It also strips out \"\" or '\" or \"', which is my problem.
Jan
17
comment find/xargs, filenames with spaces, and quotes
Aware of that flag, but this won't work either, sadly, still need quotes for lame.
Dec
13
comment Why do English characters require fewer bytes to represent than other alphabets?
Unicode makes the assumption that you may need every character that any human since the stone age has ever drawn at any time, as special characters. 2/3 of that could be solved easier, better, and more efficiently by using a different font or formatting hints (like, numbers in circles, or superscript numbers). It certainly "works", somehow, but it's wrong-headed on so many ends.
Dec
13
comment Why do English characters require fewer bytes to represent than other alphabets?
@MilindR: hard to fit into 600 chars... Unicode contains a lot of crap that nobody will ever need (do you speak Babylonian?), and it encodes a lot of crap that nobody will seriously need (Klingon, really? Numbers in circles? ANSI control codes?), some of which are in low numbers, making UTF-8 considerably less efficient for roman languages than it could be (at no extra cost). Also, it allows a considerable number of symbols being encoded in two or more ways (e.g. accented/umlauted characters). This requires considerable work ("normalization") that would actually not be necessary.
Nov
15
comment How do I determine whether a drive is an HDD or SSD in Windows 8?
You should still not do that, even if the risk is low. It's unnecessary since you can tell without taking the risk. A mechanical disk makes very noticeable sounds while spinning up and down, and while seeking. Solid state disks make no sound at all.
Nov
10
comment How do web-servers “listen” to IP addresses, interrupt or polling?
Slight nitpick: It is not really necessary to block. As soon as the server process has created a listening socket, the kernel will accept SYNs on that port, even while you are not blocked inside accept. They are (luckily, or it would totally suck!) independent, asynchronously running tasks. As connections come in, they're placed into a queue where accept pulls them from. Only if there are none, it blocks.
Aug
11
comment How to limit HDD write speed for chosen programs
If the computer is "unusable" when copying huge files, is it possible that you have forgotten to enable DMA? Normally, whether or not the disk is busy makes little or no difference since that happens without much (or any) CPU intervention.
Jul
8
comment Swap partition size on a 64 GB RAM computer for memory-intensive work
@T.C.: Not using SSD for swap because of wearing down the medium is an unjustified urban legend. Swapping does not happen "all the time", but rarely. Also, this is something that has been extensively researched at Microsoft after the Win7 release with the result that the typical access patterns of swapping are quite acceptable for SSD (that's Windows, not Ubuntu, but it's likely that Linux does not perform much worse). You have a hundred (or thousand) times more write operations wearing down your SSD due to silly log files that nobody is ever reading (usually syncing every line).
Apr
14
comment Why do English characters require fewer bytes to represent than other alphabets?
The paragraph about Unicode is wrong, though. Unicode is not a solution to the existence of different terminals. On the contrary, Unicode is entirely unsuitable for what it is being used for. It is is not a character set, but a grapheme encoding (for "anything man has ever written"), which includes graphemes of languages that no living person speaks and multiple ambiguous encodings for the same graphemes. This makes it an extremely poor choice for computer text processing, introducing many twists and pitfalls, and significant overhead (for such things as e.g. "normalization").
Mar
12
comment Properly close (not kill) programs from the command line
If taskkill works the same as TaskManager (which I haven't verified, but strongly suspect), then it works by first sending WM_CLOSE, and setting a timer (something like 100-200ms) after which TerminateProcess is called if the process still exists. That allows a responsive application (usually) to exit gracefully, and will blast a non-responsive application out of existence anyway. If Chrome shows an improper shutdown dialog on next start, it probably takes too long to shut down.
Mar
11
comment Hard Drives and types — What makes them so different?
I see, so I got it exactly the wrong way around. Thank you for the clarification (but my point about "Green" still stands, spinning a harddisk slower than at its normal operational speed (when the heads aren't in park position) is certainly a catastrophic, stupid idea).
Mar
6
comment Hard Drives and types — What makes them so different?
"Green" on the other hand, is already self-explaining. The Green Movement is a moronic, misled ideology to "save the environment", which only reduces performance and destroys the environment. Green drives will save a few milliwatts over their lifetime by spinning the disk slower, but due to the way harddisks work (air bearing) this greatly reduces the drive's resilience to vibration and its overall lifetime. Replacing drives more often due to decreased lifetime is an economic benfit for the manfacturer (more sales) but damages environment much more than a few milliwatts extra.
Mar
6
comment Hard Drives and types — What makes them so different?
TLER is not just important for enterprise, it is the one important feature on a hard disk to avoid losing data. A drive without TLER is broken by design, it means that the first time a sector fails its checksum (which will inevitably happen with age, but may randomly happen due to many other reasons) the sector will be remapped and the data is never again accessible. TLER will cause a user-noticeable delay and generate a relocation event that SMART tools will pick up. It gives you the possibility to ignore the event or to back up data if that has not already happened.
Nov
20
comment How to delete Windows NTFS hard link (mklink /h) while original is in use?
Should probably be asked on superuser. But still: movefile should be able to do the trick in any case. It's surprising that you cannot simply delete the hard link though, actually it should be a completely "unrelated" file.
Nov
14
comment Disable Windows 7 program grey-out during long-running / busy programs
Processes running in a debugger aren't ghosted. Is writing a mini-debugger acceptable? Something like... CreateProcess(); DebugActiveProcess(); for(;;)WaitForDebugEvent();.
Aug
12
comment RAM ticking all the time on Linux box
My hovercraft is full of eels?