|
Programming -
Open Source Database
|
|
PostGresql Installation
- Make sure you "make clean" if you ran into any problem before starting a fresh installation
- Get the source code of PostGresql by clicking here
- Unzip the postgresql source files
- Change the folder by using command cd <folder where the zip file is uncompressed>
- configure --prefix=<Folder of the installation Folder where you want your postgresql to be installed> --with-libxml
- make
- make check
- export LD_LIBRARY_PATH=<the installation folder>/lib
- <installation Folder>/bin/initdb -D <installation Folder>/data
- <installation Folder>/bin/postmaster -D <installation Folder>/data for verbose run
OR
<installation Folder>/bin/pg_ctl -D <installation Folder>/data -l /tmp/pgsql.log start for silent run
PostGis Installation
- Install Goes and PROJ dependencies.
- Make sure the postgresql is installed and ready to accept connection
- configure --with-geosconfig=<Path to folder where you have installed Geos library>/bin/geos-config --with-projdir=<Path to Folder where you have installed Proj library>
- make check
- if you get error like
ERROR: function postgis_lib_version() does not exist LINE 1: select postgis_lib_version() then Copy files in <path to folder wher Proj library is installed>/lib/ to the lib folder of postgresql Installation
- make install
Create a spatially enabled database:
go to the in folder of Postgresql installation a) createdb [yourdatabase]
b) createlang plpgsql [yourdatabase]
c) psql -d [yourdatabase] -f postgis.sql d) psql -d [yourdatabase] -f spatial_ref_sys.sql if you get error like files postgis.sql or spatial_ref_sys.sql not found: give the complete path <postgresql installation folder>/share/contrib/postgis-1.5/
|
|
|
Programming -
Verilog
|
|
I did my project for course Digital System Design in 2008. The wiki page of the project at Departmental website is still up and can be accessed @ http://www.ece.msstate.edu/wiki/index.php/Vending_machine |
|
Last Updated on Monday, 17 May 2010 21:40 |
|
Travelling Salesman Problem by ACO |
|
|
|
|
Programming -
java
|
|
I did this project for my class of machine learning at Mississippi State University. It is a simple demonstration of how ant colony optimization technique can be used in routing problems. This is first code i have ever written for ACO, just to understand how things work in the machine learning technique. I have several other techniques used, but ACO was my own exploration out of what we had planned for the course. I translated the code by Eric Rollins written in Python to Java Applet, thanks to Eric, I not needed to reinvent the wheel. The really liked this technique and expect to use this technique in my research at some point of time.
|
|
Last Updated on Monday, 17 May 2010 21:38 |
|
Read more...
|
|
|
Programming -
java
|
|
I wrote a JAVA code for Kohonen Map. The code is compatible with both the Windows system and Unix system. I primarily ran the experiment on Suse Linux 10.0, with Java 1.5 SDK. The following command will convert Java code to bytecode
Javac Kohonen.java
The following command will execute the bytecode to produce the results
Java Kohonen
|
|
Last Updated on Monday, 17 May 2010 21:40 |
|
Read more...
|
|
Programming -
C++
|
|
David Goldberg, a pioneer of genetic algorithm, published the Pascal code for genetic algorithm in chapter 3 of his book. The pascal code is a small part of his code to optimize the gas pipeline for gas industries. The code he wrote, has been famous with the name Simple Genetic Algorithm (SGA), which has been extensively used for getting started with genetic programming. I have converted the SGA originally written Pascal to another high level programming language, like C, C++ or java. There are a lot of version of conversions of this classic code in many languages, the most famous is from Dr. Goldberg's own laboratory @ http://www.illigal.uiuc.edu/web/source-code.
Download My version of SGA |
|
Last Updated on Wednesday, 31 March 2010 12:29 |
|
|
|
|
|
|
Page 1 of 2 |