250 reputation
17
bio website kevincox.ca
location Ottawa, Canada
age 20
visits member for 2 years, 11 months
seen yesterday

Aug
21
revised Get “Text Content” of Files
edited body
Jun
23
revised How to get keycodes for xmodmap?
typo
Nov
11
comment How to add a newline to the end of a file?
Startup time does matter if you call python in a loop, that is why I said consider doing the loop in python. Then you only incur the startup cost once. For me, half the cost the startup is more than half of the time of the whole snipit, I would consider that substantial overhead. (Again, irrelevant if only doing a small number of files)
Nov
10
comment How to add a newline to the end of a file?
That's quite a bit faster than mine, but it adds up quick. I remember using python to do some math in a script once and it really bogged it down. Maybe they have improved it since then and I just have haunting memories.
Nov
9
comment How to add a newline to the end of a file?
I wouldn't use the python version in any sort of loop because of the slow python startup time. Of course you could do the loop in python if you wanted.
Nov
4
revised Get “Text Content” of Files
added 155 characters in body
Nov
4
comment Get “Text Content” of Files
That link was helpful. antiword and catdoc are useful. I might end up writing a script that detects the format and calls the appropriate script.
Nov
4
awarded  Commentator
Nov
4
comment How do I know on which IDE to edit a project's source code?
But I think I will keep my answer as it because I think that autotools generated configures are much more common now days.
Nov
4
comment How do I know on which IDE to edit a project's source code?
Really! I never knew that people wrote their own configure. You learn something every day :D
Nov
4
awarded  Yearling
Nov
4
comment Get “Text Content” of Files
Yeah, I don't need high fidelity or anything. Think of getting a quick preview or to index it for searching.
Nov
3
asked Get “Text Content” of Files
Nov
3
comment Disallow File IO for a process except for FIFOs
What do you mean a process can break out of a chroot? Unless it is root it shouldn't be able to AFAIK. You might want to submit a bug report to whatever kernel you use.
Nov
3
answered How do I know on which IDE to edit a project's source code?
Aug
23
revised How to get keycodes for xmodmap?
spellcheck
Aug
23
revised Multiple PCs network centralized system authentication
added 107 characters in body
Aug
23
revised How to get keycodes for xmodmap?
Added sure-fire method to find the actual keycode.
Aug
23
revised How to get keycodes for xmodmap?
added how to fix.
Aug
22
answered How to get keycodes for xmodmap?