HowTos
NB: I preferred to use cash for setting all this up so that I didn’t have my credit card involved. You can always recharge online or on the phone with a card but it requires an Etisalat Egypt account which I couldn’t set up anyway.
Buy a data only Etisalat sim card. Mine was brought in [...]
So we needed to migrate one of our last isEngine sites to an archived (not database driven) site with modern CSS and jQuery. The old site was stored in XML so we built a Python script to migrate the content into new templates and store a sitemap and an ID map.
When it came time to [...]
Recently I tried to push an exported Drupal Feature to another install and failed miserably. After enabling and disabling various modules and features I finally disabled the lot, deleted the nodequeue and smartqueue tables and remove the nodequeue rows in the system table. Enabling nodequeue first and checking that it was working I was then [...]
Nodequeues is one of the more common ways to sort nodes in Drupal. You can create `arbitrary lists of nodes` and order them via drag and drop.
Smart queues are ways that modules can define methods for automatically creating queues. Nodequeues ships with a taxonomy smart queue that we can use to create queues for taxonomy [...]
Install the new drive and format
$
Unmount the source and the target
$
Copy the source to the target
$ sudo dd if=/dev/sdc1 of=/dev/sdb1 bs=16M
Remove the journalling from the target
$ tune2fs -O^has_journal /dev/sdb1
Check the filesystem of the target
$ e2fsck -f /dev/sdb1
Resize the target
$ sudo resize2fs -p /dev/sdb1
Apply journalling to the target
$ sudo tune2fs -j /dev/sdb1
Mount the target
$ [...]
Google Analytics is a fantastic free tool for determining how well your website is performing. It takes a bit of getting used to but the default views are still very useful for determining how much traffic your site has, what they are doing and where they come from.
Most of your traffic will come from Google [...]
Working with other developers on projects has often resulted in large manual merges of parallel work. At the beginning this is straightforward as there are a small number of files and a short history. Things change as projects progress and I’ve sometimes spent hours on small updates.
Here is a git recipe for merging in those [...]
ssh into the destination mac
Run this command with your new password
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -activate -clientopts -setvnclegacy -vnclegacy yes -setvncpw -vncpw [newpassword]
Tunnel in from your source computer with this command (the command won’t terminate – CTRL+C when you’ve finished with VNC)
ssh -L 5999:[lan.ipaddress]:5900 -N user@remote.computer.com
VNC to localhost on 5999 (or 99 depending on your VNC [...]
Disable DHCP on your router.
Replace whatever dhcpd server you have on your box with dhcp3-server (ISC DHCP server transitional package)
$ sudo aptitude install dhcp3-server
Edit the config file in
/etc/dhcp/dhcpd.conf
adding a block for your subnet
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.100 10.0.0.149;
default-lease-time 86400;
max-lease-time 86400;
option routers 10.0.0.1;
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 10.0.0.1;
option tftp-server-name “10.0.0.7″;
}
Restart dhcpd
$ sudo /etc/init.d/isc-dhcp-server restart
Replace [...]