1,580 reputation
1223
bio website foobacca.co.uk
location United Kingdom
age
visits member for 5 years, 3 months
seen 10 hours ago

Unless I explicitly state otherwise in a post, all my original contributions to StackOverflow and ServerFault are placed into the public domain. If this is not legally possible, then anyone receiving a copy of them by any means is granted a non-exclusive perpetual license to use, distribute and modify them, and to distribute modifications, under any license or none, with or without attribution to me. Please note that this license applies only to my original contributions.


Sep
10
comment How to interpret skype packet loss numbers?
I've definitely seen positive numbers in all the packet loss fields. And I don't know how they do it, but one way you could know about receive packet loss is to have packet numbers that increment, so if you receive 1,2,3,6,7,8.9,10 but not 4,5 then you have 20% receive loss. I've also seen the two numbers differ significantly, with the second number varying over a bigger range, so the moving average seems plausible for the behaviour I've seen.
May
24
comment : colon command for bash
@chepner - thank you for that clarification - I have incorporated it into my answer.
May
15
comment How to use PCs' internet connection on Android phone?
I like the ssh port forward idea :)
Aug
25
comment Bash prompt: how to have the initials of directory path
oh OK. I'll read some more, thanks for explaining.
Aug
25
comment Bash prompt: how to have the initials of directory path
ah interesting, I obviously need to learn a bit more about bash ...
Aug
24
comment Bash prompt: how to have the initials of directory path
I don't know perl so can't judge the general solution, but I think you would have to edit it to use PROMPT_COMMAND as in my solution, otherwise PS1 will be set when you start bash and will not change as you change directory.
Aug
24
comment Bash prompt: how to have the initials of directory path
I tried that, but unfortunately it sets the value of PS1 once when you start bash and will not update it after that. So you will change directory and your prompt will not change - I made this mistake and then was playing and had to scratch my head to work it out. See my (edited) answer for a way around this using PROMPT_COMMAND
Aug
24
comment Bash prompt: how to have the initials of directory path
It's not actually an exact duplicate, though it is similar. But looking through that I can't easily see exactly how to do what I want - which is not fixed length, but just initials. I might have a go and post the answer here if I succeed.
Aug
24
comment Upstart Help: Change Ubuntu 10.04 Service Boot Order
For documentation you can do worse than look at man init and man 5 init - the latter documents the /etc/init/*.conf file format. It may not give you the big picture of course ...
Aug
19
comment How to open Firefox's “organize bookmarks” from Vimperator?
@Igor: no problem. It's always good to have the information available online for others to find.
Aug
18
comment MySQL query builder? (like Access has in Design View)
@Josh - have you tried following the instructions starting from dev.mysql.com/doc/workbench/en/wb-sql-development.html
Aug
1
comment Cannot boot Live USB, Linux
What OS are you using to create the USB stick? Windows? Linux?
Jul
20
comment Grep multiline pattern
@Daenyth grep -E mostly just means you can use ?, +, {, |, (, and ) as their usual regex meaning without having to have a \ in front, as you do if you use standard grep. So grep 'hello\s\+world' file is equivalent to grep -E 'hello\s+world' file. It doesn't do PCRE. There is grep -P for perl regular expressions, but it is experimental (according to the man page) and I think it is a little different from pcregrep ...
Jul
16
comment Run a script in Linux for a specified amount of time before stopping and restarting
@warren, you can use $!, as in slartibartfast's answer
Jul
15
comment Switch buffers in vim without saving to a currently modified file
@jamessan - yes I know, but the page it redirects to has single quotes in the URL and I couldn't get it to appear properly using markdown, so I used the redirect address instead.
Jun
30
comment Ubuntu Netbook Remix will not boot
surely this should be on superuser.com
Jun
24
comment How safe is locking the screen?
I think any modern OS will rate limit password attempts - ie it will make you wait a second between password attempts, and the wait may well get longer if you keep having incorrect password attempts. So brute force can't actually try that much.
Jun
24
comment Is there a Windows or Linux equivalent of Soulver calculator application?
SpeedCrunch is also available on Mac OS X and Linux.
May
24
comment Ubuntu 32 bit or Ubuntu 64 bit for AMD Athlon 64?
As the software is open source, it is recompiled for 64 bit as part of building the distro. I've been using 64 bit ubuntu for 2 or 3 years, and come across one bug that was 64 bit specific in an obscure application. That bug was fixed a while ago.
Mar
15
comment User not in the sudoers file. This incident will be reported
If it is your system then you should have entered a password for the root user when installing. So login as 'root' and then do the visudo stuff.