Friday, November 26, 2010

Lotto Number Generator for the Philippine Grandlotto 6/55

With the current jackpot price at about PHP 685 million, everyone and their mother is talking about the Philippine Grandlotto 6/55.

To help my friends and a few enemies choose numbers to bet on, I cobbled together a few lines of HTML and Javascript to build a Lotto Number Generator for the Philippine Grandlotto 6/55.

This tool is completely free. I have a few more features to add to it so questions, comments and suggestions are welcome. You can click the link below to go to

Lotto Number Generator for the Philippine Grandlotto 6/55



If you do win using a number that my system generated, please PLEASE feel free to donate and throw some of your spare change my way. If you don't like to, even with your millions, then you could at least thank me by acknowledging in public that you picked your winning number thru my system.

I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.

Friday, November 19, 2010

Setting up CouchDB in Ubuntu Server 10.04 LTS on VirtualBox



In my day job, I was assigned the task of building a system that could handle 2 million rows of sales data a day. We are seriously considering putting couchdb to use. To even begin to evaluate couchdb, I of course needed to play around with it in a convenient test environment. Fortunately, as documented in my previous post on setting up an ubuntu machine, I have VirtualBox installed and ready.

To setup a couchdb environment, I first needed to create a virtual machine that runs Ubuntu Server 10.04 LTS. To begin, I downloaded the installer for Ubuntu Server 10.04 LTS from the Ubuntu website. I started VirtualBox and went thru the New Virtual Machine Wizard. I named my virtual machine as couchdb-server and accepted most of the defaults. Before starting the virtual machine, I adjusted the Storage settings of the virtual machine and configured the CD/DVD device to mount the Ubuntu Server 10.04 LTS installer(ISO). Starting the virtual machine will bring up the menu for the Ubuntu Server 10.04 LTS installer. I went thru the installation using the defaults. When asked what services to install, I just chose the OpenSSH server.

With the installation finished, I logged in and installed couchdb using:

sudo aptitude install couchdb

After a few screen fulls of text, couchdb was successfully installed. I then added a few lines to /etc/networking/interfaces to enable me to access the virtual server from the outside.

auto eth1
iface eth1 inet dhcp

Next, I turned off the virtual server using:

sudo shutdown -h now

I then modified the Network settings of the virtual machine using VirtualBox. I enabled Network Adapter 2 and set the Attached to drop down to Host-only Adapter.

I then powered up the virtual machine and after logging in, I checked the configured network devices using:

ifconfig

This should show eth1 to be configured and in my case, its IP address is 192.168.56.101

I then started couchdb with:

sudo /etc/init.d/couchdb start

To test couchdb, I opened a browser and accessed:

http://192.168.56.101:5984/_utils

I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.

Friday, November 05, 2010

Farewell Ubuntu 9.04, Hello Ubuntu 10.10

Ubuntu 9.04 has just reached EOL as I was insistently prompted by the updater.
I've now moved to Ubuntu 10.10 and it looks and feels okay. This post is about setting up a machine for Development work.

Using Ubuntu software center has allowed me to easily install the stuff I need day-to-day:

Internet Related:
Chromium
Thunderbird
Pidgin
Mail Notification


Multimedia:
VLC
Adobe Flash 10

Development Related:
Sun Java6
Netbeans
MySQL Database Server
MySQL Administrator
MySQL Query Browser
pgAdmin
7zip

Stuff I had to install manually:
Virtual Box(downloaded the ubuntu 10.10 installer from their site)

Git(terminal usage required)
sudo apt-get install git git-gui

SmartGit(downloaded installer from their site)

PostgreSQL(terminal usage required)
sudo apt-get install postgresql

gedit-plugins(terminal usage required)
sudo apt-get install gedit-plugins

gedit-grails-bundle(terminal usage required)
cd ~/Downloads
git clone https://github.com/aeischeid/gedit-grails-bundle.git
cd gedit-grails-bundle/grails-gedit
./install.sh

gedit-gmate(terminal usage required)
sudo apt-add-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install gedit-gmate

wine1.3(terminal usage required)
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.3

unrar(terminal usage required)
sudo apt-get install unrar

dropbox
went to their website and downloaded the linux installer for ubuntu


I hope you found the post useful. I hope to update this post when I add some other usefull stuff on this work machine. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.