Geekery
111 Geekery articles in total, showing 71 to 80
-
Bash Tip: Remove a line from middle of file
This is a thing that I’ve wanted to do for ages, and it came up for me during this week'd episode of Hak5, which I am getting to be a big fan of by the way. The material under discussion was what to do when one of your known hosts changes. Darren was saying he was a bit slack and just did a …
- Published:
-
Tip: Get rid of the firefox/iceweasel inspect element menu option
Here is a small annoyance with an easy solution. The newer versions of Firefox and Iceweasel have added an inspect element tool to the right click context menu. It certainly look very pretty and will be of use for some folks. But its confusing for people like me who use Firebug. You see Firebug …
- Published:
-
Vim Tip: Edit GPG files transparently
A super quick Vim tip today courtesy of Patrick R. McDonald. I was looking for a nice way to have Vim open up files that I had GPGed. That is how I store passwords and its a faff and potentially insecure to decrypt, edit and resave. Nicer to have Vim open your GPG file directly. Patrick’s s …
- Published:
-
Tip: Latest Chromium Browser on Debian Squeeze
Update 2013-02-15 Since this article was written the PPA I list has got frozen at version 18 of chromium. If you want something newer and shinier, you should replace the sources.list line with deb http://ppa.launchpad.net/a-v-shkop/chromium/ubuntu lucid main and replace the apt-key command with sudo …
- Published:
-
UK Postcode Lookup — My First Drupal7 Module
Update 2012-02-26 I updated this module in a few ways. It now uses the Drupal presave hook rather than the form_alter hook -- meaning that if there is a postcode and no lat/long it will always look up your postcode. That is a much better way to do it in my opinion. I’ve also changed the defau …
- Published:
-
MySQL tip: Counting total number of rows even when LIMIT is set
Pagination is a pain in the arse, right? That's one of the lovely things about using an ORM or something to do it for you. But that isn't always possible, so at some point you'll need to use a LIMIT on your select. Now, MySQL has a nice little feature called SQL_CALC_FOUND_ROWS which puts the num …
- Published:
-
Perl character encoding and UTF-8 in brief
Character encoding. Its enough to make grown people break down and weep bitter tears of rage. Perl provides rather good UTF-8 support, and there are some excellent tutorials out there. So, my contribution is more of a checklist and cookbook than a technical explanation._H_UTF-8 In your source …
- Published:
-
New Features On Site: Page Archive, Tags In an Atom Feed
I’ve been doing a bit of hacking on the frontend of the site today, and I’ve added a couple of new features one of which I’ve wanted for a while and one of which I needed in order to get stuff aggregated into the Planet Perl Iron Man blogging challenge. Well, for the Pl …
- Published:
-
Making SVG fractals with perl
I’ve just returned from visiting nor in Rotterdam. It being her birthday, we went to the pub with some of the lovely folks from her course, and the talk turned to SVG and if there was anything interesting you could do with it. I thought that maybe you could do something with fractals. In …
- Published:
-
Having SOAP::Lite or LWP::UserAgent skip SSL certificate verification
Wow. This was a two pipe problem. I just upgraded perl on one of our servers. We use a lot of SOAP::Lite calls here, which used to be fine. But all of a sudden all my lovely scripts say: 500 Can't connect to our.server.com:443 (certificate verify failed) at /usr/bin/myscript.pl line 28Now …
- Published: