After quite a bit of resistance on my part I'm afraid that it's time to get down with the kids, hence: Install ruby [code]apt-get install irb1.8 libreadline-ruby1.8 libruby libruby1.8 rdoc1.8 ruby ruby1.8 ruby1.8-dev[/code] Install gems [code] cd ~bealers/build/src wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz cd .. tar zxf src/rubygems-0.8.11.tgz cd rubygems-0.8.11 ruby setup.rb[/code] Install Rails [code]gem install rails --include-dependencies[/code] [...]
Archive | April, 2006
Global search and replace using Vi
to replace all instances of – say – 127.0.0.1 with 10.0.0.1 in a file then using vi you can do: [code]:%s/127.0.0.1/10.0.0.1/g[ dating questions /code] if you mess it up then press u for undo. Of course if it's an important file then back it up first. zp8497586rq
ssh logins without a password
Share ssh keys: client: [code]cd ssh-keygen -t rsa[/code] the copy ~/.ssh/id_rsa.pub over nasal polyp treatment to server server: [code]mkdir .ssh cat id_rsa.pub >> .ssh/authorized_keys[/code] Job done zp8497586rq
MySQL Workbench
I just downloaded MySQL workbench 1.06 beta. I stumbled across it after finding this message on the DBDesigner forum page: Dear DBDesigner4 users, Due to several attacks against the DBDesigner4 forum it has now been closed down. We simply cannot understand the sick motivation of people to attack Open Source projects. So please understand that [...]
Enabling spell checking within FCKeditor
CMS Made Simple uses the great GPL WYSIWYG editor FCKeditor and I noticed this morning that it has a spell checking facility. To get it to work, I: Installed aspell on my dev server: [code]apt-get install aspell Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: aspell-bin aspell-en dictionaries-common [...]
Adding arbitrary PHP to a CMS Made Simple website
CMS made simple (CMSms) is great as it does what it says on the tin e.g. it's a CMS and it's easy to use and configure. Most importantly for me, it's easy to skin and modify. It uses Smarty as a template engine and I have to admit that I was dubious when I saw [...]
Dubious outline
A mate just emailed me this:
Firefox web developer toolbar writer wins prize
Chris Pederick the guy behind the awesome Firefox Extension, the Web Developer Toolbar, has won one of the grand prizes in the extend firefox competition. He blogged the win and has subsequently blogged some pictures of his Alienwa^H^H^H^H^HDell PC. Completely unrelated to the prize, here's some pictures of a Firefox branded bus. zp8497586rq
Clone a VMWare virtual machine
Simple one, you have a windows virtual machine and you want to copy it: Copy the folder the VM is in (assuming you use a folder per virtual machine) and rename it to the new host name Click on the .vmx icon (you can rename this file first so it's new-host-name.vmx) Select “Edit this virtual [...]
debian start-up script tip
If you've just installed something and want to make sure it starts on boot then the init.d script needs adding to the various run level folders as a symlink. It's a bit of a drag and it can be sometimes forgotten. Never mind, Debian comes buy replica bags online with a handy script: Lets assume [...]