Gudasoft

Impossible is nothing
  • rss
  • Home
  • Services
    • Java Technology
    • PHP
    • Ruby on Rails
    • Perl
    • Python
  • Portfolio
    • www.cenite.com
  • About us
  • Contacts

Ubuntu (9.0.4) on Dell Optiflex 320

guda | J July, 2009 | 10:29 am
To install ubuntu on Dell system you need to change the default boot loader to grub2 or something else
#change the root password to something that you know
sudo passwd
#become root
su

mkdir /media/ubuntu
mount /dev/sda1 /media/ubuntu

# check that you have mounted the right partition.
ls /media/ubuntu

mount -t proc none /media/ubuntu/proc
mount -o bind /dev/ /media/ubuntu/dev
cp /etc/resolv.conf /mediaubuntu/etc

chroot /media/ubuntu /bin/bash
/etc/init.d/networking restart
aptitude update
aptitude install grub2

upgrade-....<tab>
Comments
No Comments »
Categories
Administration, Uncategorized
Tags
Linux
Comments rss Comments rss
Trackback Trackback

Great site to generate spinners for your ajax

guda | J June, 2009 | 10:44 pm

http://ajaxload.info/

Comments
No Comments »
Categories
Cliparts/Images/etc
Comments rss Comments rss
Trackback Trackback

My Ubutno workstation configuration

guda | J June, 2009 | 8:42 pm

XOrg configuration

  • https://wiki.ubuntu.com/X/Config/Resolution
  • cvt 1680 1050 75
  • xrandr –newmode …the output from cvt
    xrandr –newmode “1680×1050_75.00″ 187.00 1680 1800 1976 2272 1050 1053 1059 1099 -hsync +vsync
  • xrandr –addmode DVI-0 1680×1050_75.00

Logitech Revolution MX

http://x4.6times7.org/dokuwiki/doku.php/devlog/blog/howto_logitech_mx_revolution_on_ubuntu

  • The mouse wheel control
    • Download from here http://goron.de/~froese/revoco/ or revoco-0.5.tar
    • make
    • sudo ./revoco manual=6
    • lets try to add it in ~/.xprofile next time
  • Here is my xorg.conf
Section "Monitor"
 Identifier "External DVI"
 # 1680x1050 74.89 Hz (CVT 1.76MA) hsync: 82.31 kHz; pclk: 187.00 MHz
 Modeline "1680x1050_75.00"  187.00  1680 1800 1976 2272  1050 1053 1059 1099 -hsync +vsync
 # 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
 Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync    
 # 1680x1050 69.88 Hz (CVT) hsync: 76.58 kHz; pclk: 174.00 MHz
 Modeline "1680x1050_70.00"  174.00  1680 1800 1976 2272  1050 1053 1059 1096 -hsync +vsync
 Option "PreferedMode"    "1280x1024_75.00"
EndSection

Section "Screen"
 Identifier    "Configured Screen Device"
 Device    "Configured Video Device"
 SubSection "Display"
 Depth    24
 Modes "1680x1050" "1024x768" "640x480"
 Virtual    2960 1050
 EndSubSection
EndSection

Section "Device"
 Identifier    "Configured Video Device"
 Option    "Monitor-DVI-0" "External DVI"
EndSection

My Rails setup commands

aptitude install mc vim subversion screen pidgin meld \
libmysqlclient15off libmysqlclient15-dev mysql-common mysql-client \
libmysql-ruby1.8 irb ruby1.8 rdoc ri rake\
apt-utils build-essential ruby1.8-dev mysql-server memcached libxslt1-dev libpcre3-dev zlib1g-dev unzip gzip mytop openssl \
libopenssl-ruby libmagick9-dev imagemagick librmagick-ruby1.8 imagemagick librmagick-ruby-doc  libmagick9-dev ruby1.8-dev 

ln -s /usr/bin/ruby1.8 /usr/bin/ruby

mkdir ruby_install
cd ruby_install
wget http://rubyforge.org/frs/download.php/57643/rubygems-1.3.4.tgz
tar xzvf ruby*
cd rubygems-1.3.4
ruby setup.rb
cd ..
cd ..

ln -s /usr/bin/gem1.8 /usr/bin/gem

gem install rails mysql mongrel mongrel_cluster rails paperclip will_paginate andand \
json feed-normalizer hpricot mechanize ruby-debug uuid ruport ruport-util acts_as_reportable \
rufus-scheduler annotate openwferu-scheduler production_log_analyzer capistrano-ext libxml-ruby twitter capistrano \
--no-ri --no-rdoc

gem install rmagick -v 1.15.12
ruby -rrubygems -e "require 'RMagick'; puts Magick::Long_version;" 
Comments
No Comments »
Categories
Linux, Rails
Tags
admini, Linux, rails
Comments rss Comments rss
Trackback Trackback

Some nice software that I am looking arround

guda | J June, 2009 | 12:24 pm

libhttp-access2 – lwp for ruby

ruby ide http://github.com/danlucraft/redcar/tree/master

Comments
No Comments »
Categories
Development
Tags
rails, ruby, spi
Comments rss Comments rss
Trackback Trackback

My next lens

guda | J May, 2009 | 5:02 pm
  • Canon makes a very fine 35/1.4L USM
  • 35/2
  • Sigma 30mm f/1.4 EX DC HSM AutoFocus Standard Lens
  • Consider Sigma’s 50/1.4 HSM – good bokeh

http://photo.net/equipment/building-a-digital-slr-system/

http://www.photography101.org/basics/how_to_choose_a_lens.html

Comments
No Comments »
Categories
Uncategorized
Comments rss Comments rss
Trackback Trackback

Tools for calibrating LCD monitors

guda | J May, 2009 | 12:48 pm

http://www.lagom.nl/lcd-test/black.php

Comments
No Comments »
Categories
Administration, English
Tags
administration, hardware
Comments rss Comments rss
Trackback Trackback

Rake mysql tasks

guda | J May, 2009 | 9:06 pm

I have found that I should be quicker if I put the following task in all my small projects.
Read the rest of this entry »

Comments
No Comments »
Categories
Rails
Tags
mysql, rails, rake
Comments rss Comments rss
Trackback Trackback

Synergy – one keyboard for two PC-s

guda | J April, 2009 | 11:22 am

“Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It’s intended for users with multiple computers on their desk since each system uses its own monitor(s).”

root@guda-desktop:/etc# cat synergy.conf

section: screens
desktop:
guda-laptop:
end

section: aliases
guda-laptop:
192.168.1.101
end

section: links
desktop:
right = desktop
guda-laptop:
left = guda-laptop
end

# synergys –config /etc/synergy.conf
# synergyc IP

On windows I am defining:

“Share this computer…” -> configure

Screens: desktop, guda-laptop

links: guda-laptop is left on desktop and the oposite

Comments
No Comments »
Categories
Administration
Comments rss Comments rss
Trackback Trackback

How to check your digital camera focus

guda | J April, 2009 | 9:37 pm

The best article that I can find was here, here is link to another chart

And the following has been cut from this topic

But if you still have concerns about focusing accuracy, are not sure if it’s user error etc, are dubious about some of the ruler tests worth (as I am), then this method is very simple to use, requires no special equipment, and takes only a minute to do.

Very quick and easy way to check a number of aspects of your focus system repeatably and accurately using no special equipment:

Mount camera on tripod. Use remote release, or self-timer for taking the test shots. If you don’t use a tripod, I think you should consider your results invalid.

Step 1:

Display something predominantly white, with text all over it on your monitor screen. Maximising your Outlook inbox screen works well.

Ensure your camera back is parallel and centred with respect to your screen. Focus on your computer monitor screen manually. Notice that at the point of exact focus, you see a Moire pattern in the viewfinder. (Squiggly interference lines).

Take a picture.

Step 2:

Move the lens out of focus, and this time use AF to onto the screen again, and you should see the moire pattern in your viewfinder.

Take the picture.

Step 3:

Review the images.

That’s it.

Possible Problem Indicators:

If you can see the moire pattern in the viewfinder when manual focusing, but not when Autofocusing, or not in the resultant image on the CF card, that would indicate that there is some kind of focus alignment issue that might warrant further investigation. The moire is always strongest at the point of exact focus, so the AF and MF tests should appear very similar.

Additional test

Instead of using Outlook for the above test, open up FVU and display one of your previous images with the FVU focus point overlay.

Align your camera at the correct distance and position, so that your in-finder focus boxes, overlay those displayed

Now when you review your images, you can also see if the focus boxes in your camera, correlate with those shown in FVU.

The reason I added this step, was that someone on this forum was concerned that their in-camera focus boxes appeared to disagree with those shown in FVU.

Quick, easy and repeatable check of your finder, sensor, and AF alignment.

Comments
1 Comment »
Categories
Uncategorized
Comments rss Comments rss
Trackback Trackback

Zip Codes and Distances

guda | J April, 2009 | 5:08 pm

The Haversine formula to calculate distances:

  • #C example http://blogs.techrepublic.com.com/programming-and-development/?p=634
  • A lot of talking … http://mathforum.org/library/drmath/view/51879.html
  • http://www.ruby-forum.com/topic/48815

Get ZIP codes in range

  • http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/174783
  • http://forums.devshed.com/php-development-5/how-can-i-search-my-database-using-an-array-like-534211.html?p=2052453
  • http://www.hotscripts.com/listing/zip-code-range-and-distance-calculation-class/

Ruby Gems

  • http://github.com/collectiveidea/graticule/tree/master
  • http://github.com/andre/geokit-gem/tree/master
  • http://github.com/andre/geokit-rails/tree/master

Finding visitors via their IP address

  • http://www.hostip.info/

Use Google Maps to display the results check this post here

Read the rest of this entry »

Comments
1 Comment »
Categories
Development
Comments rss Comments rss
Trackback Trackback

« Previous Entries

Recent Posts

  • Ubuntu (9.0.4) on Dell Optiflex 320
  • Great site to generate spinners for your ajax
  • My Ubutno workstation configuration
  • Some nice software that I am looking arround
  • My next lens

Tag Cloud

2read administration apache bash Behind the monitor bind Cliparts/Images/etc cra cracking css databases Development dns encoding Fun games gps hardware Internet javascript LinkedIn Linux log managment mysql open performance photography photos php prototype qa rails rake review ruby se Search Engine Optimization source spi spider ubunto usability wordpress www.cenite.com

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Archives

  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox