1,189 reputation
624
bio website github.com/anko
location United Kingdom
age
visits member for 2 years, 7 months
seen 10 hours ago

Engineer/artist; data visualisation specialist.


10h
comment Is it possible to create an edited copy of a file without using up extra disk space?
Brain dump: diff detects binary files and switches to summary mode, printing just Binary files X and Y differ, which is supremely unhelpful for patching. You can force it to treat the files as text with --text, so it prints the full listing. Those diffs apply cleanly with patch, though you'll want the --binary flag to disable line-ending conversion. Better-compressing binary patch tools exist though. (Feel free to edit these into your answer.)
Oct
11
comment Graphical issues in vim
I don't understand. Why do you think those things might be related? It seems like coincidence. People often bind keys over default bindings because they weren't using the defaults.
Oct
11
comment Graphical issues in vim
You can also force vim to clear-and-redraw with Ctrl+L or :redraw!.
Oct
5
comment How to write this pseudocode where condition
"Pseudocode" makes this a general programming question. →SO?
Oct
5
comment Straightforward Linux Clustering
The link looks to have died…
Oct
3
comment Wipe out windows 8 just leave OpenSuse
How about dd if=/dev/zero of=/dev/sdX to wipe the whole disk and start fresh? If you really don't care about what happens to Windows, surely this is fine?
Oct
3
comment I get an error whenever I try to add myself to sudoers
OK, but in what way? Does your /etc/sudoers resemble this? Importantly, does it include the line %sudo ALL=(ALL:ALL) ALL? That's what gives the sudo-group powers.
Oct
3
comment I get an error whenever I try to add myself to sudoers
How does your /etc/sudoers file look? (I don't use Debian, but I've got the wheel-group configured to have sudo-rights, not the sudo-group.)
Sep
30
comment GIF screencasting; the UNIX way
@JackO'Connor Thanks for the heads-up. I'll investigate once I have some time. (If you reasoned out the right line already, edits would be appreciated!)
Sep
22
comment How to tell Firefox to skip connections going to a specific address?
If you use Adblock Plus, you could add a custom filter rule.
Sep
22
comment scp between two servers not in the same network
@Ángel I carried the -e none is necessary-"fact" from Matt Might's great SSH introduction without doubting it. But you're right: With the escape character set as the default tilde, echo ~.hi" | ssh remote 'cat' produces ~.hi as output instead of quitting the session like the ~. would suggest in a pty. I'll amend the answer and ping Prof. Might. (For the record, this is on Linux with OpenSSH 6.6.1p1.)
Sep
22
comment scp between two servers not in the same network
ssh has a -C flag to enable stream compression. According to the man-page, it uses the same algorithm as gzip though. The manual page also helpfully elucidates when to use it: "Compression is desirable on modem lines and other slow connections, but will only slow things down on fast networks."
Sep
21
comment FTP connection to Linux Mint: 550 Permission denied. Error: Critical file transfer error
"Permission denied"? Does the user you're logging in as have persmission to create files in the directory you're trying to move files to?
Sep
16
comment Can't install right grub on ArchLinux
"I'm getting this error: <blank line> <next sentence>" → What error?
Sep
13
comment Why does the location of Enviroment Variables vary that much?
The getenv manual says it returns a pointer to a string containing the variable's value. Everything else is unspecified, so your kernel and/or compiler can stick the value wherever they want, as long as that pointer-promise stays true. I'm guessing the exact answer to this may be heavy wizardry and depend on various memory mapping implementation details and the phase of the moon. (I am not wizard enough to give you the exact answer.)
Sep
12
comment Place the cut field in the desired position of ouput file
I don't understand. What is your input file's format? What exactly do you want the output to look like?
Sep
12
comment How to split text file into records by first non-blank charecter using awk and print only records containing string
Are you sure the string "apollo" will only appear once, or only appear in those un-indented "headers"? I'm asking because that input file looks like the (potentially unpredictable) output of another program, which makes parsing code very vulnerable to code rot.
Sep
12
comment How to split text file into records by first non-blank charecter using awk and print only records containing string
As with most uncommented one-liner Perl, my first thought was "Did your cat just walk all over your keyboard?". Some clarification on what this is doing and why would be useful.
Sep
2
comment Find software package with greatest number of system manual pages
Interesting but strange query. Curious: What's the use case?
Sep
2
comment Why is the output of this paste command split on separate lines with indents?
The title could be edited to better describe the problem for people who are later Googling for similar things, but I can't think of a better one myself... Ideas?