SIDEBAR
»
S
I
D
E
B
A
R
«
Updating Packages Using Apt On Old Debian Installs
Sep 20th, 2016 by pixel

When attempting to install a new package or update an existing package if you are presented with the error


1
E: Release file expired, ignoring http://archive.debian.org/debian-archive/debian/dists/squeeze-lts/Release (invalid since 189d 0h 42min 32s)

You will need to execute the following command as root:


1
$ echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/90ignore-release-date

And then perform…


1
$ apt update

or if you are using aptitude…


1
$ aptitude update

You may need to execute the above command twice to make sure everything is up to date.

Adding apps to the Finder Toolbar
Feb 3rd, 2016 by pixel

Where before you could simply drag any icon up to the Finder toolbar and hold it there for a second to add it, you now need to first hold down Option+Command and then start dragging the desired icon to the toolbar.

You can still remove the icons the same way as before: holding down Command, dragging the icon away from the toolbar and then releasing.

Mac OSX Finder

Mac OSX Finder

Profiling PHP with XHProf & XHGui
Dec 18th, 2015 by pixel

For a well described tutorial on basic PHP profiling and optimization I would recommend the 3 part article written by Davey Shafik:

Profiling PHP Part 1: Intro to Xhprof & Xhgui

Profiling PHP Part 2: Xhgui In-Depth

Profiling PHP Part 3: Practical Performance Tuning

Installing Node.js and NPM on Mac OSX
Aug 24th, 2015 by pixel

The Node.js site has finally started building packages for node.js instead of requiring users to install using source. The download page can be found on the page for Node.js Downloads.

History support for PERL CPAN
Oct 20th, 2014 by pixel

If you are like me, every time you go to install a new perl module you realize the system doesn’t have command line history support and have to go hunting for the correct module to install.

A Little Bit Of History

This option, provided you have Term::ReadLine::Perl or Term::ReadLine::Gnu installed, will give your CPAN command line interface history support. It’s questions deal with the location of the histfile and how many lines it should save. I elected to add the histfile to the /usr/local/share/cpan directory I chose earlier, and kept the default 100 lines, figuring that this is more than enough command history for CPAN to remember.