196 reputation
5
bio website
location Munich, Germany
age 28
visits member for 3 years, 10 months
seen Apr 12 at 18:42

Jun
28
awarded  Student
Jun
11
awarded  Critic
May
4
comment Find all UTF-16 encoded files on Windows
@Joachim: Agreed. From my experience, UTF-16 files without BOM are often generated by Windows system tools (installer scripts, maybe the registry editor) because such a file is essentially a memory dump of an UTF-16 string. Such files often contain lots of ASCII markup that makes them simple to identify. The other way round (deciding whether a valid UTF-16 file is in fact UTF-16) is much harder, of course. Maybe one could test whether large portions of the file belong to a single script, whether UTF-16 CRLF sequences occur, etc.
May
4
comment Find all UTF-16 encoded files on Windows
@Joachim: I think for large enough files the detection errors should be negligible. Something like "Bush hid the facts" becomes exponentially impossible once the character count is large enough.
Apr
19
comment Create new tool for Gedit LaTeX plugin
I think this question is better suited for SO since it's about Gedit plugins, not LaTeX.
Apr
10
comment How to create a file with a “#” character in the name in Unix?
or touch '#file' and rm '#file'
Mar
4
comment Save Application state
@Sean: A server on a battery-powered laptop? ;-)
Dec
11
answered How do I get the font 'Myriad Pro' for linux (Ubuntu)
Sep
29
answered linux show size of folder contents in ls or some other command
Jul
26
comment linux: links don't work after mount
Maybe, but it's also server-related.
Jul
14
awarded  Commentator
Jul
13
comment Word doesn't convert non-Unicode characters as expected
@BalusC: Interesting; I've never heard of that usage until now. One could argue that characters from scripts such as Klingon or Hieroglyphic which aren't encoded in Unicode (yet) are "non-Unicode characters", but as a synonym for "non-ISO-8859-X characters"? BTW, the only native encoding of Windows and all Microsoft software is UTF-16, all other encodings and "codepages" are obsolete.
Jul
13
comment Word doesn't convert non-Unicode characters as expected
What are non-unicode characters?
Jul
13
comment Unix command to list the portion of the end of a log file from a line containing only hyphens to end of file
Very ingenuous solution, but I think you can replace the grep by sed '/^-\+$/Q'
Jul
13
comment Unix command to list the portion of the end of a log file from a line containing only hyphens to end of file
This finds the first instead of the last hyphen-only line. If I understand correctly, the OP wants only line 5 in this example.
Jul
13
answered Unix command to list the portion of the end of a log file from a line containing only hyphens to end of file
Jul
13
comment Unix command to list the portion of the end of a log file from a line containing only hyphens to end of file
I think it's very hard. If you read a file line-by-line, how would you know whether a specific line is the last of its kind before reading the remaining lines? I think there is no other way than to read the whole file.
Jul
11
comment How to get the summarized sizes of folders and their subfolders?
If you have dot-directories in the root directory, you can use shopt -s dotglob to include them in the count.
Jul
11
comment How to get the summarized sizes of folders and their subfolders?
OK, then it's a BSD option only (I'm on OS X).
Jul
11
answered How to get the summarized sizes of folders and their subfolders?