Thursday, December 2, 2010

Importing GNIS into PostgreSQL

The script below will load GNIS National File into PostgreSQL. You can download National File from here (about 280MB uncompressed, main web site). Place the uncompressed file in some directory and run the following script from psql:

The GNIS file has over two million records so it will take some time to load into PostgreSQL. I hope I guessed column types right.

P.S.: GNIS is the "Geographic Names Information System", a product from USGS.

Tuesday, October 5, 2010

Google has come up with a new service with some neat features. Now you can shorten your URL if you go to http://goo.gl/. So, for example, to get to this blog you go to http://goo.gl/Vqml or to go to my main web site as http://goo.gl/AXx5

It even generates a 2D bar code that you can read with your cell phone camera:

 

Monday, August 23, 2010

Wednesday, June 16, 2010

Tuesday, March 23, 2010

Pet Automation



Tuesday, March 2, 2010

Really odd US map

(this is a result of a typo in the rendering code)

Thursday, February 18, 2010

I could never imagine that a $100 Logitech web cam for teleconferences can make such a difference quality-wise.

Sunday, February 14, 2010

Friday, February 12, 2010

Sunday, January 31, 2010

ORF images in FC12 and Karmic

I have an Olympus 500 camera and I want to be able to preview Olympus raw files (ORF extension) in Nautilus. It did not work out of the box neither in FC12 nor in Karmic. On Fedora 12 I have installed ufraw and ufraw-gimp packages.  On Karmic I have installed gimp-dcraw and gnome-raw-thumbnailer packages.  This also installs ORF support in GIMP.

Real Snow in East Tennessee!

From Real Snow in East Tennessee

Sunday, January 24, 2010

Making Fedora Core 12 work (cont'd)

Several things did not work in Fedora Core 12 as I wanted so I have had to make several modifications which I described here.  Finally I've got some time to make more fixes:

  1. NVIDIA fast proprietary drivers  I have GeForce GTS 250 and I want to get most of it.  Out-of-the-box driver that comes with FC12 is faster than it used to be but is nowhere near native NVIDIA drivers.  Steps to install (information was pulled from several places):
    1. su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
    2. yum update
    3. nano -w /etc/grub.conf and to each kernel line append rdblacklist=nouveau vga=0×31
    4. yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64
    5. reboot
    6. sudo nvidia-settings and fix multiple monitor setup if you use more than a single monitor, save 
  2. Skype 
    1. Install standard Skype rpm for FC10+ from http://www.skype.com/intl/en/download/skype/linux/choose/
    2. Install missing 32-bit packages:
      yum install alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686
    3. Video should work out of the box
  3. Gnome menu: install alacarte to be able to edit system menu

Sunday, January 10, 2010

Maemo SDK on 64-bit Karmic

Instructions are here: http://wiki.maemo.org/Documentation/Maemo5_Final_Installation

  1. First go to section x86-64 kernel and disable VDSO in kernel 
    • add abi.vsyscall32 = 0 to /etc/sysctl.conf to make the change permanent
  2. Then follow instructions in Installation Of X86-64 Debian Based Distributions section
It takes about an hour to download all packages and then you get:

Saturday, January 9, 2010

Hiking in the Frozen Head State Park

The coldest hike I had to date in Tennessee.





Posted by Picasa

Tuesday, January 5, 2010

Making Fedora Core 12 work

Here is my experience of installing Fedora Core 12 and making it work the way I like:
  1. Install from a CD is pretty much straightforward.  It is a good idea to fire up network during install and choose update repositories in the package selection.  This way you'll save a bit of time on post-install system update.
  2. yum install bash-completion (I cannot live without it)
  3. Add yourself to /etc/sudoers
  4. Add languages
    1. sudo yum groupinstall {russian,japanese}-support
    2. In "System->Administration->Input Method" add Anthy for Japanese input method
    3. logout and the login back 
    4. for Japanese support in Adobe Reader download and install a version form the Adobe Japanese web site
  5. Automounter
    1. yum install am-utils
    2. mkdir /net
    3. service amd start
    4. chkconfig amd on
    5. check if it mounts NFS servers under /net:
      ls /net/<nfs_server>
  6. Flash player: follow the instructions from http://fedoraproject.org/wiki/Flash 
  7. Setup mail
    1. yum install postfix
    2. add "root: @localhost" to /etc/aliases 
    3. newaliases
    4. chkconfig postfix on
    5. service postfix start
    6. to test mail: hostname | mail root 
  8. yum install logwatch
  9. rsnapshot
    1. yum install rsnapshot
    2. edit /etc/cron.d/rsnapshot to specify location of snapshots
    3. add "exclude .gvfs/" to /etc/rsnapshot.conf (otherwise rsnpashot sometimes fails on that directory)
  10. Printer setup
    1. samsung ML-1740 (networked)
      1. yum install gootenprint-foomatic
      2. System->Administration->Printing
      3. Add New Printer
      4. Select connection: network
      5. Enter device address then click Find 
      6. Click Forward and select Samsung ML-1740 from the list (if Samsung ML-1740 does not show up in the list then something is not installed) 
      7. In the "Settings" change paper size from A4 to letter
      8. Print test page
    2. canon pixma ip1800 USB
      1. download the folowing rpms from Canon Europe and Australia web sites:
        1. cnijfilter-common-3.00-1.i386.rpm
        2. cnijfilter-ip1800series-2.70-1.i386.rpm
      2. yum install cnijfilter-common-3.00-1.i386.rpm cnijfilter-ip1800series-2.70-1.i386.rpm
      3. add printer through New Printer dialog
  11. Scanner Epson Perfection V350: download and install the following rpms from http://www.avasys.jp/lx-bin2/linux/scan/DL1.do or http://www.avasys.jp/lx-bin2/linux_e/scan/DL1.do
    1. iscan-2.23.0-3.ltdl7.x86_64.rpm
    2. iscan-plugin-gt-f700-2.1.0-3.c2.x86_64.rpm
  12. Picasa: download and rpm from http://picasa.google.com/linux/thanks-rpm.html and then do yum --nogpgcheck install  
    1. Picasa turned out not to work, I am still figuring out why
  13. Chromium: follow instructions on http://rajaseelan.com/2009/07/04/how-to-install-google-chrome-in-fedora-10-or-fedora-11/
    1. after that go to SELinux policy tool and change policy to permissive if this is ok for you
    2. reboot will rebuild the SELinux and may take some time
  14. Web cam: just plug in, check if it works with Cheese Webcam Booth
  15. smartd for HDD monitoring
    1. chkconfig smartd on
    2. smartd -q onecheck to see if it works
  16. mp3 support
    1. sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
    2. sudo yum install gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg
What's left: input tablet support, skype, and non-free nvidia drivers.  Watch this blog!