SSD and Fragmentation

An SSD in standard  -inch (  mm  )  form-factor.
Image via Wikipedia

Long-term performance analysis of Intel Mainstream SSDs has a detailed analysis of SSD fragmentation and it’s effect on performance

Reblog this post [with Zemanta]

Fences from Stardock

Very useful Windows desktop icon organiser by Stardock. Review from Lifehacker.

Reset Password for a LAMP webapp

Assuming the webapp uses the standard php functions and without a salt, an example like the following for weberp will work:

nic@www:/export/apps/weberp$ echo "<?php print sha1('password') . \"\n\";?>" | php;
5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8

From the mysql command line:

UPDATE www_users SET password = '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8' WHERE userid = 'nlee';
Note this changes the password to “password”.

Updated radiant cms install script.

Follw up on my previous radiant script.

radiant  --database mysql test
# edit config/database.yml
rake production db:bootstrap
radiant --database mysql test
rake production db:bootstrap
git clone git://github.com/radiant/radiant-reorder-extension.git vendor/extensions/reorder
cd vendor/plugins/reorder/
git reset --hard 22ed6cdbb5bd8a3a98badf661f5b0c3bae5f29b0
rake production radiant:extensions:reorder:migrate
rake production radiant:extensions:reorder:update
git clone git://github.com/kbingman/paperclipped.git vendor/extensions/paperclipped
rake production db:migrate:extensions
rake production radiant:extensions:paperclipped:update
git clone git://github.com/MrGossett/radiant_page_meta_extension.git vendor/extensions/page_meta
rake production db:migrate:extensions
# http://github.com/radiant/radiant-reorder-extension/tree/master
# http://www.nabble.com/PageAttachments-migration-looking-for-Admin::PagesController-td21080134.html
# http://github.com/kbingman/paperclipped/tree/master
# Needs sudo apt-get install imagemagick librmagick-ruby1.8

linux-image-virtual with ESX

According to this thread, if you need to use the linux-image-virtual package on ubuntu then it only supports the “bus logic” scsi controller with ESX.

ESX Console via SSH

PuTTY
Image via Wikipedia

Need to access the ESX console with the Virtual Infrastructure Client in some remote location where your VPN does not work.  Forward ports 443, 902 and 903 with putty.  Port specifics for ESX can be found on page 179 of the ESX Server Config guide.

In my case I additionally need to forward from a boundary machine:
ssh -L 8443:localhost:443 -L 8902:localhost:902 -L 8903:localhost:903 node2

Reblog this post [with Zemanta]

UAWEA Launchedr Error. Abnormal game exit detected

I was trying a Windows Live game on Steam yesterday and got the above error. After a lot of googling I discovered that I needed to install Game for Windows Live. There is version 1.2 and 2.0. Once this were installed the game run correctly.

Install Ubuntu via USB

The device pictured is a 16GB SanDisk CruzerUS...
Image via Wikipedia

I tried several methods last night including Unetbootin, and this is the one that worked best.

Basically copy the ISO on the USB root directory, add vmlinuz and initrd.gz from main/installer-i386/current/images/hd-media/. Then add syslinux.cfg with:

default vmlinuz
append initrd=initrd.gz

If you have boot problems you might also need to run install-mbr /dev/sda from the mbr package.

Reblog this post [with Zemanta]

Ubuntu and djbdns

I keep smacking into this issue. So a couple notes to myself for future reference.

Before install touch /etc/inittab and afterwards add this to /etc/event.d/svscan:

start on runlevel 3
start on runlevel 4
start on runlevel 5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /usr/bin/svscanboot

Vim and indents

A few useful vim indenting links:

This is the most useful bit when pasting into a vim window.

nnoremap :set invpaste paste?
imap
set pastetoggle=