Wednesday, October 27, 2010

Ruby :: Kappa :: Installation

Information regarding Kappa
http://psilambda.com/

Installation on Ubuntu 10.10
- Download Jockey from https://launchpad.net/jockey
- To build it you need python-distutils-extra at https://launchpad.net/python-distutils-extra
$ cd  python-distutils-extra-2.22
$ ./setup.py build
$ sudo ./setup.py install


In Jockey the ../setup.py is giving errors
$ sudo apt-get install python-encutils



Monday, October 25, 2010

Tryptophan biosynthesis pathway

Enzymes present in Tryptophan biosynthesis pathway.

1. Anthranilate synthase
2. Anthranilate PR-transferase
3. PR-anthranilate isomerase
4. Indole-3-glyserol phosphate synthase
5. Trp synthase
6. Tryptophan aminotransferase

Tryptophan synthase beta chain
Tryptophan synthase alpha chain
Tryptophanase
COG0134 Indole-3-glycerol phosphate synthase
COG0133 Tryptophan synthase beta chain
COG0159 Tryptophan synthase alpha chain
COG3033 Tryptophanase

Monday, October 11, 2010

Library check

TO check for libraries needed for the package

$ ldd rmblastn 
    linux-vdso.so.1 =>  (0x00007fff5b9e4000)
    libz.so.1 => /lib/libz.so.1 (0x00007f7e7c416000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007f7e7c212000)
    libpcre.so.0 => not found
    libnsl.so.1 => /lib/libnsl.so.1 (0x00007f7e7bff7000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007f7e7bdda000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f7e7bac5000)
    libm.so.6 => /lib/libm.so.6 (0x00007f7e7b842000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f7e7b62b000)
    libc.so.6 => /lib/libc.so.6 (0x00007f7e7b2a7000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f7e7c63c000)

This tells you that libpcre.so.0 library is missing.

Thursday, September 9, 2010

MEGAN :: Install :: Execute

URL: http://www-ab.informatik.uni-tuebingen.de/software/megan
The MEGAN package can be downloaded from (http://www-ab.informatik.uni-tuebingen.de/data/software/megan/download/welcome.html)

$ wget http://www-ab.informatik.uni-tuebingen.de/data/software/megan/download/V3_9/MEGAN_unix_3_9.sh

Sunday, September 5, 2010

Mac :: MySQL

URL: http://dev.mysql.com/downloads/
> MySQL Community Server
> Select Platform: Mac OS X
> Download Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive


Double-click on dmg
- enter password whenever required
- double-click on mysql-5.1.50-osx10.6-x86_64.pkg, MySQLStartupItem.pkg, MySQL.prefPane
- open ~/.bash_login, and enter the information.
export PATH="/usr/local/mysql/bin/:$PATH"
- Now check for MySQL installation.
$ mysql --version

Pre :: parameters

pre style="-webkit-text-stroke-color: initial; -webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; font-size: 13px; overflow-x: auto; overflow-y: auto; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"

Mac :: Ruby :: Gem :: Rails

To install Ruby
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
tar xzvf ruby-1.8.7-p72.tar.gz
cd ruby-1.8.7-p72
./configure --enable-shared --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1
make
sudo make install
cd ..

To install Gem
curl -O http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar zxvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
sudo ruby setup.rb

Friday, August 20, 2010

RDP MultiClassifier

On Ubuntu, 
To get the zip file
url: http://rdp.cme.msu.edu/classifier/classifier.jsp
$ wget http://rdp.cme.msu.edu/download/rdp_multiclassifier.zip
$ unzip http://rdp.cme.msu.edu/download/rdp_multiclassifier.zip
$ cd rdp_multiclassifier


NOTE: read the README file
$ ls dist
- shows the multiclassifier.jar file which is required, note the path to this jar file


Input file:
- a fasta file called 'v2bBar8L.fsa'
- It has 1054 sequences


Testing
$ java -Xmx1g -jar /path/to/rdp_multiclassifier/dist/multiclassifier.jar v2bBar8L.fsa > foo
$ cat foo
===

taxid lineage name  rank  v2bBar8L.fsa
0 null  Root  no rank 1054
1 Root;norank;Bacteria;domain;  Bacteria  domain  1054
1142  Root;norank;Bacteria;domain;"Fusobacteria";phylum;  "Fusobacteria"  phylum  91
1143  Root;norank;Bacteria;domain;"Fusobacteria";phylum;"Fusobacteria";class; "Fusobacteria"  class 91
1144  Root;norank;Bacteria;domain;"Fusobacteria";phylum;"Fusobacteria";class;"Fusobacteriales";order; "Fusobacteriales" order 91
1151  Root;norank;Bacteria;domain;"Fusobacteria";phylum;"Fusobacteria";class;"Fusobacteriales";order;"Leptotrichiaceae";family; "Leptotrichiaceae"  family  91
1154  Root;norank;Bacteria;domain;"Fusobacteria";phylum;"Fusobacteria";class;"Fusobacteriales";order;"Leptotrichiaceae";family;Sneathia;genus;  Sneathia  genus 91
61  Root;norank;Bacteria;domain;"Firmicutes";phylum;  "Firmicutes"  phylum  901
===
- the output has 5 columns: taxid, lineage, name, rank, name of the file/count of sequences
- the third line indicates that all 1054 sequences in the file belongs to domain named Bacteria, whos taxid is 1 and lineage is "Root;norank;Bacteria;domain;"

Try using the option --conf
- set the confidence cutoff value at 0.9
$ java -Xmx1g -jar /path/to/rdp_multiclassifier/dist/multiclassifier.jar --conf=0.9 v2bBar8L.fsa > foo1
$ cat foo1
===
taxid lineage name rank v2bBar8L.fsa
0 null Root no rank 1054
1 Root;norank;Bacteria;domain; Bacteria domain 1054
1142 Root;norank;Bacteria;domain;"Fusobacteria";phylum; "Fusobacteria" phylum 88
1143 Root;norank;Bacteria;domain;"Fusobacteria";phylum;"Fusobacteria";class; "Fusobacteria" class 88
1144 Root;norank;Bacteria;domain;"Fusobacteria";phylum;"Fusobacteria";class;"Fusobacteriales";order; "Fusobacteriales" order 88
1151 Root;norank;Bacteria;domain;"Fusobacteria";phylum;"Fusobacteria";class;"Fusobacteriales";order;"Leptotrichiaceae";family; "Leptotrichiaceae" family 88
1154 Root;norank;Bacteria;domain;"Fusobacteria";phylum;"Fusobacteria";class;"Fusobacteriales";order;"Leptotrichiaceae";family;Sneathia;genus; Sneathia genus 87
-1152 Root;norank;Bacteria;domain;"Fusobacteria";phylum;"Fusobacteria";class;"Fusobacteriales";order;"Leptotrichiaceae";family;unclassified_"Leptotrichiaceae";; unclassified_"Leptotrichiaceae" 1
61 Root;norank;Bacteria;domain;"Firmicutes";phylum; "Firmicutes" phylum 899
===
- observe the reduction in count due to increased cutoff


Using the option assign_outfile=<file>
- to get the RDP classifier output for each sequence in the file
$ java -Xmx1g -jar /home/krevanna/Desktop/TEST/RDPMultiClassifier/rdp_multiclassifier/dist/multiclassifier.jar --assign_outfile=assign_outfile --conf=0.9 v2bBar8L.fsa > foo1
$ cat assign_outfile 
===
GAV21LS02D9RRO - Root norank 1.0 Bacteria domain 1.0 "Fusobacteria" phylum 1.0 "Fusobacteria" class 1.0 "Fusobacteriales" order 1.0 "Leptotrichiaceae" family 1.0 Sneathia genus 1.0
GAV21LS02DRIZP - Root norank 1.0 Bacteria domain 1.0 "Firmicutes" phylum 1.0 "Clostridia" class 1.0 Clostridiales order 1.0 Veillonellaceae family 1.0 Veillonella genus 1.0
GAV21LS02DP3EU - Root norank 1.0 Bacteria domain 1.0 "Firmicutes" phylum 1.0 "Bacilli" class 1.0 "Lactobacillales" order 1.0 "Aerococcaceae" family 1.0 Aerococcus genus 1.0
GAV21LS02C89VS - Root norank 1.0 Bacteria domain 1.0 "Firmicutes" phylum 1.0 "Clostridia" class 1.0 Clostridiales order 1.0 Veillonellaceae family 1.0 Veillonella genus 1.0
GAV21LS02C89KB - Root norank 1.0 Bacteria domain 1.0 "Firmicutes" phylum 1.0 "Bacilli" class 1.0 "Lactobacillales" order 1.0 Lactobacillaceae family 1.0 Lactobacillus genus 1.0
===



Trying option --bootstrap_out=<file>
- default is null
$ java -Xmx1g -jar /home/krevanna/Desktop/TEST/RDPMultiClassifier/rdp_multiclassifier/dist/multiclassifier.jar --bootstrap_out=bootstrap_out --conf=0.9 v2bBar8L.fsa > foo1
$ cat bootstrap_out
===
sample: v2bBar8L.fsa
  Number of matching assignments out of 100 bootstraps
Rank  >90 90-81 80-71 70-61 60-51 50-41 40-31 30-21 20-11 10-1
domain  1054  0 0 0 0 0 0 0 0 0
phylum  1029  13  4 3 3 2 0 0 0 0
class 985 27  17  13  5 3 4 0 0 0
order 978 30  17  13  8 4 3 1 0 0
family  954 29  14  21  16  11  4 3 2 0
genus 931 34  13  17  17  19  8 7 8 0
===
- The sum of each line is 1054, i.e. 1054 sequences
- For eg, genus, 931 sequences are classified with >90 confidence, 34 were with 81-90 % confidence, and so on.

Monday, August 16, 2010

Install :: Java :: Ubuntu 10.04

To install Java on Ubuntu 10.04

In the /etc/apt/sources.list, add the 2 lines
deb http://http.us.debian.org/debian lenny main contrib non-free 
deb-src http://http.us.debian.org/debian lenny main contrib non-free
$ sudo apt-get update
$ sudo apt-cache search sun-java
$ sudo apt-get install sun-java6-source sun-java6-jre sun-java6-javadb sun-java6-fonts sun-java6-plugin sun-java6-jdk sun-java6-demo sun-java6-bin


Wednesday, August 11, 2010

ESPRIT :: Installation :: Cluster

Obtain the source code


On *nix, Steps to install ESPRIT
$ unzip ESPRIT_distribution.zip
$ cd ESPRIT_distribution


Read, esprit_user_guide.pdf and README.txt
$ cd source
$ vim Makefile
Choose the platform by uncomment/comment


To make the package
$ make esprit_cc


Its always better to 
$ make clean 
$ make esprit_cc


Precaution: 
- make sure that the fasta file has header in one and the sequence in one line
- if the sequence is in multiple lines, convert the file to contain just one line of sequence


Pseudocode is followed here using shell scripting and clusterjobmanager
Copy the sequence file here, If you have more than one than group them.
$ cp /path/to/sequence.fas .


To run preproc
$ /path/to/ESPRIT_distribution/source/preproc -f sequence.fas
160794 Seqs Match Primer
160794 Seqs Valid Len


31072 Seqs After Process
      1.63 secs in Purging Strings.


flag:
-f this prevents the program from trimming.


Files created:
sequence_Clean.fas
sequence_Clean.frq


To check
$ awk -F' ' '{ s+=$2 } END { print s }' sequence_Clean.frq
160794
$ grep -c '>' sequence.fas
160794
- Make sure that these numbers are same.


To run kmerdist_par
$ cat submit_kmer_jobs.sh
for i in $(seq 1 10)
do
for j in $(seq $i 10) 
do
job="/path/to/ESPRIT_distribution/source/kmerdist_par sequence_Clean.fas 10 $i $j\n ";
RANDOM=10
num=$RANDOM
echo -e $job > kmer_job_$num.clusterJob
clusterJobSubmission < kmer_job_$num.clusterJob
done
done
- where clusterJobSubmission is your cluster job submission manager
- the extension .clusterJob can be replaced with the extension required
- variable job can include other details if required.
$ cat jobs.clusterJob
## ..
sh submit_kmer_jobs.sh
$ jobsubmit < jobs. clusterJob
- this will submit the job.


Output:
sequence_Clean_[*]_[*].dist
- make sure that numbers are 1_[1-10], 2_[2-10], 3_[3-10], 4_[4-10], 5_[5-10], 6_[6-10], 7_[7-10], 8_[8-10], 9_[9-10], 10_10


Merge all the .dist files
$ cat sequence_Clean_*.dist >> kmer.dist


Split the kmer files into 100 files
$ /path/to/ESPRIT_distribution/source/splitdist -s 100 kmer.dist
Counting Total Records....
71249223 Records Found, Splitting...


Output:
kmer.dist_[0-99]


Submit parallel jobs for needle_dist
$ cat submit_needle_job.sh
for i in $(seq 0 99)
do
job="/path/to/ESPRIT_distribution/source/needledist sequence_Clean.fas kmer.dist\_$i needle.dist\_$i\n ";
RANDOM=10
num=$RANDOM
echo -e $job > needle_job_$num.clusterJob
clusterJobSubmission < needle_job_$num.clusterJob
done


Output
needle.dist_[0-99]


Group all the needle.dist files
$ cat needle.dist_* >> sequence.ndist


To run hcluster
$ /path/to/ESPRIT_distribution/source/hcluster -t 15000 sequence.ndist sequence_Clean.frq
- flag -t is used to increase the size of the linked table, default is 10000


Output
sequence.ndist_sort
sequence.OTU
sequence.Outliers
sequence.Rarefaction
sequence.Cluster
sequence.Cluster_List
sequence.ACE
sequence.CHAO1

Ubuntu :: Printer :: Access

If the printer doesnt show up in the printer list.

Steps:
- Login as admin
- Open a browser
- use url http://localhost:631
- "CUPS for Administrators" > Adding Printers and Classes
- provide the username and password.
- It searches over the network and lists the printer
- Select the print and continue
- Select the driver to use and continue

To print a test page,
Maintenance > print test page



Tuesday, August 3, 2010

R :: install :: gdata :: qvalue

To install gdata
> install.packages("genetics", depend=TRUE)
check the installation
> library('gdata')

To install qvalue
> install.packages("qvalue", depend=TRUE)
Check the installation
> library('qvalue')

Sunday, July 18, 2010

Git :: Install :: Setup

Install GUI
$ sudo apt-get install git-core gitk git-gui

URL: http://www.digitalmediaminute.com/article/3264/git-tutorial

To create a repository
$ cd testGit
$ git init

This is to setup the configuration to contain ur name and email
This will be used to give information on who committed
$ git config --global user.name "Kashi Revanna"
$ git config --global user.email "Kashi.Revanna@unt.edu"

So now create a file and a directory
$ touch file1
$ mkdir dir
$ git commit

Now to check git, open the file and enter a line
$ git diff
- will list the lines which are different from the ones in the repository

To add a file to the repository
$ touch file2
$ mkdir dir1
$ git add file2
$ git add dir1
$ git commit -m "Add files"

Observe the log files created
$ git log
$ git log -n3
$ git log --stat --summary
$ git log -p

For GUI,
$ gitk

Wednesday, July 14, 2010

R :: Install :: ClassComparison :: ClassDiscovery

Install R
$ sudo apt-get install r-base
$ sudo apt-get install r-base-dev r-base-core

Go to R
$ sudo R
> install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)
- ran into warnings and errors
- Error : package 'Biobase' could not be loaded
- Information to install biobase, http://www.bioconductor.org/packages/2.2/bioc/html/Biobase.html
> source("http://bioconductor.org/biocLite.R")
> biocLite("Biobase")
> install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)
- select ClassComparison
- you should get the following sentence
* DONE (ClassComparison)
check if the package is installed
> library('ClassComparison')
> install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)
- select ClassDiscovery
- Error : package 'mclust' could not be loaded
To install mclust
> install.packages("Rserve")
* Done (Rserve)

On unix:
$ wget http://bioconductor.org/packages/1.9/bioc/src/contrib/vsn_1.12.0.tar.gz
$ sudo R CMD INSTALL vsn_1.12.0.tar.gz
* Done (vsn)

Go to R
$ sudo R
> install.packages('mclust')
* Done (mclust)
> install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)
 * DONE (ClassDiscovery)

check installation
> library('ClassDiscovery')

Ubuntu :: Sort :: Numbers and Alphabets

$ sort -n characters
a
about
1
3
5
12
33
44

Friday, July 9, 2010

Install :: ClustalW :: Local

Download the ClustalW source code from 
ftp://ftp.ebi.ac.uk/pub/software/clustalw2/2.0.12/


$ wget ftp://ftp.ebi.ac.uk/pub/software/clustalw2/2.0.12/clustalw-2.0.12.tar.gz
$ tar zxvf clustalw-2.0.12.tar.gz 

$ cd clustalw-2.0.12
$ ./configure 
$ make
If you have sudo access, run 'make install', else use clustalw2 in the src directory.
$ cd src/
$ ./clustalw2

 **************************************************************
 ******** CLUSTAL 2.0.12 Multiple Sequence Alignments  ********
 **************************************************************


     1. Sequence Input From Disc
     2. Multiple Alignments
     3. Profile / Structure Alignments
     4. Phylogenetic trees

     S. Execute a system command
     H. HELP
     X. EXIT (leave program)


Your choice: X


Now run the clustalW

Wednesday, July 7, 2010

Ruby :: Pie :: SVG :: Graph

Download SVG from http://www.germane-software.com/software/SVG/SVG::Graph/

Place the SVG folder in the current folder
=====
require 'SVG/Graph/Pie'

fields = %w(Staphylococcus Corynebacterium Acinetobacter Propionibacterium Rothia Pseudomonas Leptotrichia Herbaspirillum Stenotrophomonas Streptococcus)

dataVal = [0.46494, 0.43779, 0.02067, 0.01934, 0.01081, 0.00155, 0.00109, 0.00105, 0.00027, 0.00014]

graph = SVG::Graph::Pie.new({:height => 400, :width => 800, :fields => fields })
graph.add_data({
    :data => dataVal,
    :title => 'TITLE',
})

graph.expanded = false
graph.expand_gap = 3
graph.show_data_labels = true
graph.show_key_data_labels = true
graph.show_percent = true
graph.show_shadow = false
graph.datapoint_font_size = 40

output = File.open('test1.svg', "w+")
output.write graph.burn()
output.close
=================================

The file should be written










Another method is to 
 $ sudo gem install gruff

Tuesday, June 22, 2010

Install :: Treeview

Download
http://darwin.zoology.gla.ac.uk/~rpage/treeviewx/download.html

$ wget http://darwin.zoology.gla.ac.uk/%7Erpage/treeviewx/download/0.5/tv-0.5.1.tar.gz
$ tar zxvf tv-0.5.1.tar.gz
$ cd tv-0.5.1/
$ ./configure

I got an error
configure: error: "Could not find wx-config: is wxWindows installed?"

$ sudo apt-get install libwxgtk2.6-0 libwxgtk2.6-dev libwxgtk2.8-0 libwxgtk2.8-dev
$ ./configure
$ make

Still having problems
charactersblock.cpp: In member function ‘char CharactersBlock::GetState(int, int, int)’:
charactersblock.cpp:1048: error: ‘strlen’ was not declared in this scope
charactersblock.cpp: In member function ‘int CharactersBlock::IsInSymbols(char)’:
charactersblock.cpp:1286: error: ‘strlen’ was not declared in this scope
charactersblock.cpp: In member function ‘virtual void CharactersBlock::HandleFormat(NexusToken&)’:
charactersblock.cpp:1900: error: ‘strcpy’ was not declared in this scope
charactersblock.cpp: In member function ‘int CharactersBlock::PositionInSymbols(char)’:
charactersblock.cpp:3029: error: ‘strlen’ was not declared in this scope
charactersblock.cpp: In member function ‘virtual void CharactersBlock::Report(std::ostream&)’:
charactersblock.cpp:3271: warning: deprecated conversion from string constant to ‘char*’
charactersblock.cpp: In member function ‘void CharactersBlock::ResetSymbols()’:
charactersblock.cpp:3345: error: ‘strcpy’ was not declared in this scope
charactersblock.cpp: In member function ‘void CharactersBlock::WriteStates(DiscreteDatum&, char*, int)’:
charactersblock.cpp:3609: error: ‘strlen’ was not declared in this scope
make[2]: *** [charactersblock.o] Error 1
make[2]: Leaving directory `/home/krevanna/Desktop/tv-0.5.1/ncl-2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/krevanna/Desktop/tv-0.5.1/ncl-2.0'
make: *** [all-recursive] Error 1


Alternative, get the DRAWTREE program
Download from http://www.daimi.au.dk/~mailund/drawtree.html

$ wget http://www.daimi.au.dk/~mailund/drawtree/drawtree-0.1.3.tar.gz
$ tar zxvf drawtree-0.1.3.tar.gz
$ cd drawtree-0.1.3/
$ drawtree.py -b < ../idealSeqs.AAG.phy.dnadist.neighbor.outtree > mytree.eps


Sunday, June 6, 2010

RORails :: Stylesheet

I had a problem with the CSS Stylesheet

Order of events
- file style.css created 
- file is saved in public/stylesheets/ folder
- below line included in layout page.
 <%= stylesheet_link_tag "style", :media => "all" %>
- It worked first time, but then when i refresh the page, 
the error was something like this,

=============================
ERROR NoMethodError: private method `gsub!' called for #
    /usr/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape'
    /usr/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error'
    /home/krevanna/Public/MBAP/vendor/rails/railties/lib/webrick_server.rb:94:in `handle_file'
    /home/krevanna/Public/MBAP/vendor/rails/railties/lib/webrick_server.rb:73:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
    /home/krevanna/Public/MBAP/vendor/rails/railties/lib/webrick_server.rb:60:in `dispatch'
    /home/krevanna/Public/MBAP/vendor/rails/railties/lib/commands/servers/webrick.rb:66
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /home/krevanna/Public/MBAP/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    /home/krevanna/Public/MBAP/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    /home/krevanna/Public/MBAP/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    /home/krevanna/Public/MBAP/vendor/rails/railties/lib/commands/server.rb:49
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    script/server:3
127.0.0.1 - - [06/Jun/2010:12:57:41 CDT] "GET /stylesheets/style.css?1275762019 HTTP/1.1" 500 343
Referer -> /stylesheets/style.css?1275762019
=================================

- This totally takes of the css from the page.
- there is this number associated after the style.css page i am not sure why is this, and what it means
- I tried changing the setting with the cache, but didnt work
- i am still not sure whats causing this problem.

I think it was something to do with WebBrick, so i changed the server gem to mongrel
$ sudo gem install mongrel
$ ruby script/server mongrel
- now it all worked good for me.