Archive for the ‘tech’ Category

Why I still use vim

Monday, May 5th, 2014

I was trying to explain to a friend why I still prefer using vim (with bash + screen) over something like Sublime or PHP Storm or whatever. Here's my response:     If I told you, there's this amazing knork thing that's just been invented, it's a knife combined with a ...

screen: split windows + how to use them

Friday, December 19th, 2008

Screen allows you to create multiple sessions in which to execute processes (normally interactive shells, at least for me). The most common way of using these multiple shells is via the key bindings to switch between them (ctrl + a,<space> being the most common in my experience). Often, some windows are ...

RSS feed for friends' Twitter updates - in Google Reader

Sunday, December 7th, 2008

Hooray. I like keeping up with what my friends are up to, and add any weblog feeds I find to Google Reader whenever I come across one. Recently I've realised how many of them are using Twitter, which I've signed up for but have no interest in using myself. So, it ...

bash: variable variables

Friday, December 5th, 2008

How to use variable variables in bash: [mimi:pgl]:~ $ tits=arse [mimi:pgl]:~ $ arse=cheese # this way I figured out myself after a long time pulling my hair out [mimi:pgl]:~ $ echo ${!tits} cheese # this I found later at [mimi:pgl]:~ $ eval echo $`echo $tits` cheese # how to assign to a variable variable: [vini:plowe]:~ $ tits=cheese [vini:plowe]:~ $ arse=tits [vini:plowe]:~ ...

YouTomb - archive of removed YouTube videos

Friday, December 5th, 2008

Interesting: • YouTomb. YouTomb is a research project by MIT Free Culture that tracks videos taken down from YouTube for alleged copyright violation. Also: cool!

bash: arrays - assignment, looping, and indexing

Sunday, November 16th, 2008

## arrays in bash: assignment, indexing, and looping ## # assign multiple values to a new array: array=(tits arse) # or: array=([0]=tits [1]=arse) # or: array=([0]=tits arse) # assign single values to specific indices: array[2]='cheese' # add a new value to the end of the array (push) array+=(hmm) # NB: indices do not have to be congiuous: array[5]='last' # view specific element of an ...

LinkedIn's "People you may know" feature

Monday, September 29th, 2008

If you weren't already familiar with it, LinkedIn is a social networking site that focuses on the professional side of networking. Essentially it's the same model the rest of them: Get people signed up through a pyramid scheme based around people's need to feel popular and their ability to believe that ...

Inconsolata Cleartype: Raph Levien's Inconsolota font, hinted for Windows

Thursday, September 25th, 2008

Woo! I love Inconsolata (see also Raph Levien's main page) - so much so that I've even recommended (on the About page (which I know you haven't read)) downloading it as I've set it for the default monospace font on this site. One problem it's always had, though, is that it looks ...

scp: copying filenames with colons

Saturday, July 19th, 2008

# annoying: [jem:pgl]:~/p/misc_useful $ /usr/bin/scp scp\:copying-filenames-with-colons-in-them.txt localhost:/dev/null ssh: scp: Name or service not known # sorted: [jem:pgl]:~/p/misc_useful $ /usr/bin/scp ./scp\:copying-filenames-with-colons-in-them.txt localhost:/dev/null The authenticity of host 'localhost (' can't be established. RSA key fingerprint is 12:2b:3a:4e:be:6f:41:f2:20:4c:1b:ee:6a:46:35:61. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'localhost' (RSA) to the list ...

Nokia, Thunderbird, syncing, and mental anguish

Thursday, July 10th, 2008

From the Nokia forums (and approx. 2bn other places around the web where people are asking the same question): "Does any one know how to synchronize ... thunderbird ... with your nokia ... and the other way round?" A perfectly valid question, especially since both Nokia and Thunderbird have been around quite ...