Tech

Sometimes if you know a few things about programming you can see mistakes other programmers have made. You could probably even find them in the code if you had it for review. A great example is of an email I got today from someone who supposedly saw me on a website. I'd assume this website was a dating site had the variable not been empty when the email went out.

Hello , I came across your profie in () and I will like us to have a good Relationship and to know much better .my name is Ann, i am single and never marriage.I will wait for your reply . you can contact me at this my email address (This email address is being protected from spambots. You need JavaScript enabled to view it.) so that i can send you my picture and more about myself. waiting to hear from you . PLEASE CONTACT ME DIRECTLY WITH THIS EMAIL (This email address is being protected from spambots. You need JavaScript enabled to view it.)

It looks like I must have been hanging out on the site called () or perhaps I'm supposed to insert something in there depending on my own online dating habits. Or perhaps the programmer isn't parsing his junk properly or maybe they got my name from some data mining source and there wasn't anything in the dating site: field so it came up blank. Interestingly the parenthesis were included in the email.  In the spirit of this post I was going to include a picture of a shirt I once bought that had a very 1950s Hollywood TV looking blond woman with a tear in her eye and the caption said "I can't believe I didn't declare my variables". Funny but the t-shirt is now gone and apparently any trace of the design on the Internet has gone missing as well.

We all know that Android is a cooler geek OS than iphoneOS and let's not even mention Windows CE which is plain crap. However, the question may come up with who's getting the ladies - iphone users or Android users? Maybe a robot doesn't come to mind when women think of romance and love but still. Recently the popular online dating site OKCupid did the thing they're most famous for - analyze data and find patterns. The following picture is a result of that research.

It appears that mindless drones get laid more than businessmen or tech savvy geeks. Who knew?

I also find it interesting that 20% more women using iphones are getting laid then men who use iphones. Who are they waking up next to then I might ask? I'm not saying anything about iphone users but the statistics don't lie - they might be stuck on one cellular network but they appear to be fairly open with other choices in life. ;-)

If the original study interests you (it should) head on over to OKCupid and check it out. http://blog.okcupid.com/index.php/dont-be-ugly-by-accident/

 

 

No matter how fast your cpu is or how big your hard drive is you'll find a way of using it all up. Here I'm encoding videos to h.264 for my Archos 5.

The lastest version of Xen as of this writing is 4.0 but there's been some issues with blktap2 and other things with it so I'm still holding onto Xen 3.4. This tutorial shows how to upgrade a CentOS/RHEL 5 system to Xen 3.4. As soon as Xen 4.0 is as mature as I want it I'll update it again. I'm also retesting all of this as I'm not sure I had the problems with upgrading to 3.4 that I had with 3.3. I'll update it as soon as I'm done testing.

 

1. First we need to download the YUM repository file for the updated Xen. Then uninstall the old Virtualization group and reinstall it. This will upgrade the packages.

wget http://www.gitco.de/linux/x86_64/centos/5/CentOS-GITCO.repo -O /etc/yum.repos.d/gitco.repo
yum groupremove Virtualization
yum update
yum clean all
yum groupinstall -y Virtualization

 

Yum will probably want to upgrade some other files along with the ones we've chosen.

Warning! If you get an error message from grubby this is bad!

Installing: kernel-xen                   ####################### [ 9/13]
grubby fatal error: unable to find a suitable template

This means that your grub.conf file couldn't be written to for whaterver reason so you won't be able to successfully reboot. If you get this message you need to edit your /boot/grub/grub.conf file and make the kernel lines match the kernel you installed.

Get your installed kernel version:

[ root@vs / ] rpm -q kernel-xen

kernel-xen-2.6.18-128.4.1.el5

Now edit your /boot/grub/grub.conf to match this

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/vgsys/lvroot
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.4.1.el5xen)
root (hd0,0)
kernel /xen.gz-3.4.0
module /vmlinuz-2.6.18-128.4.1.el5xen ro root=/dev/vgsys/lvroot rhgb quiet
module /initrd-2.6.18-128.4.1.el5xen.img

4. Reboot - no really I mean it.

5. Try it out by using the xm dmesg command

[ root@vs ~ ] xm dmesg
__  __            _____ _  _    ___  
\ \/ /___ _ __   |___ /| || |  / _ \
\  // _ \ '_ \    |_ \| || |_| | | |
/  \  __/ | | |  ___) |__   _| |_| |
/_/\_\___|_| |_| |____(_) |_|(_)___/

(XEN) Xen version 3.4.0 (This email address is being protected from spambots. You need JavaScript enabled to view it.) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) Fri May 29 21:39:26 CEST 2009

That's about all. If you have any questions drop a comment here.

1. First we need to download the YUM repository file for the updated Xen. Then uninstall the old Virtualization group and reinstall it. This will upgrade the packages.

wget http://www.gitco.de/linux/x86_64/centos/5/CentOS-GITCO.repo -O /etc/yum.repos.d/gitco.repo
yum groupremove Virtualization
yum groupinstall -y Virtualization

Yum will probably want to upgrade some other files along with the ones we've chosen.

Warning! If you get an error message from grubby this is bad!

Installing: kernel-xen                   ####################### [ 9/13]
grubby fatal error: unable to find a suitable template

This means that your grub.conf file couldn't be written to for whaterver reason so you won't be able to successfully reboot. If you get this message you need to edit your /boot/grub/grub.conf file and make the kernel lines match the kernel you installed.

Get your installed kernel version:

[ root@vs / ] rpm -q kernel-xen

kernel-xen-2.6.18-128.4.1.el5

Now edit your /boot/grub/grub.conf to match this

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/vgsys/lvroot
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.4.1.el5xen)
root (hd0,0)
kernel /xen.gz-3.4.0
module /vmlinuz-2.6.18-128.4.1.el5xen ro root=/dev/vgsys/lvroot rhgb quiet
module /initrd-2.6.18-128.4.1.el5xen.img

4. Reboot - no really I mean it.

5. Try it out by using the xm dmesg command

\ \/ /___ _ __   |___ / |___ / / _ \
\  // _ \ '_ \    |_ \   |_ \| | | |
/  \  __/ | | |  ___) | ___) | |_| |
/_/\_\___|_| |_| |____(_)____(_)___/

(XEN) Xen version 3.3.0 (This email address is being protected from spambots. You need JavaScript enabled to view it.) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) Tue Sep  9 20:18:14 CEST 2008
(XEN) Latest ChangeSet: unavailable
(XEN) Command line:
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: V2; EDID transfer time: 2 seconds
(XEN) Disc information:
(XEN)  Found 1 MBR signatures
(XEN)  Found 1 EDD information structures
(XEN) Xen-e820 RAM map:

That's about all. If you have any questions drop a comment here.

This is just a beta at this point

 

1. Install CentOS from CD. Do not choose Virtualization

2. Follow installing Xen 3.4 the easy way

3. Follow installing DomU the easy way

Page 9 of 16