Archive

Archive for February, 2006

Sony portable reader system – almost on sale

February 27th, 2006 mike Comments off

Sony portable reader system – almost on sale: “Img413 201
Sony has more information and pricing for their E-ink reader on SonyStyle – it’s going to cost $349 and ‘should’ ship spring of 2006. [via] /USD/SY_DisplayProductInformation-Print?ProductSKU=PRS500”>info sheet.

If you want to read ebooks now on a Sony reader, you can pick up the discontinued Japanese version (called the Librie), change the firmware and make your own DRM-free ebooks today! Check our past how tos and articles – Link.

[Read More]
MAKE Magazine.)

Categories: Random Cool Stuff Tags:

Make your own sites, with Google pages…

February 23rd, 2006 mike Comments off

Make your own sites, with Google pages…: “Img413 128
Google just launched a new ‘build your own website’ service – Google pages. You get 100mb and it seems like unlimited bandwidth, I made a quick test here – so far no Google adsense on the pages. It’s pretty easy to use, and for the Makers out there that want something simple to document a project or share information, it’s yet another web service to consider. To this day there are tons of projects on Geocities, so – maybe this will be useful for folks. [via] Link to Google pages.
[Read More]
MAKE Magazine.)

Categories: Programming, Random Cool Stuff Tags:

The little thumb drive that could

February 21st, 2006 mike Comments off

I’ve had a Memorex 512MB thumb drive for about a year now.

thumb

It replaced some other brand at the time because I left it in my jeans and took a turn in the Washing machine. This morning, I pulled this Memorex drive out of the DRYER FOR THE 9th TIME! I can’t believe it. Not only am I an idiot for putting it through the wash twice a month, but it still works. Amazing.

Categories: Uncategorized Tags:

Keeping a Hot Backup of your Mac Hard Drive

February 17th, 2006 mike Comments off

disk

Digital501 has a great post about keeping a hot Mac hard drive with exsisting and included tools. Great read…

Categories: How-To, Mac Tags:

End to the madness, or “How to install the ruby mysql adaptor on CentOS”

February 8th, 2006 mike Comments off

This was the end to a frustrating several hours a couple months ago. The mysql module wouldn’t install via Ruby Gems. I kept getting:

[root@zeus dynamic]# gem install mysql -with-mysql-config
Attempting local installation of 'mysql'
Local gem file not found: mysql*.gem
Attempting remote installation of 'mysql'
Building native extensions. This could take a while...
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in th-mysql-config/gems/mysql-2.7 for inspection.
ruby extconf.rb install mysql -with-mysql-config\nchecking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
Results logged to /tmp/fgci_ipc/dynamic/th-mysql-config/gems/mysql-2.7/gem_make.out

So I got the Ruby mysql sources and ran:

[root@zeus dynamic]# cd /root/downloads/mysql-ruby-2.7
[root@zeus mysql-ruby-2.7]# ruby extconf.rb --with-mysql-config
checking for mysql_ssl_set()... yes
checking for mysql.h... yes
creating Makefile

[root@zeus mysql-ruby-2.7]# make
gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -c mysql.c
gcc -shared -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -o mysql.so mysql.o -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -ldl -lcrypt -lm -lc

[root@zeus mysql-ruby-2.7]# make install
install -c -p -m 0755 mysql.so /usr/local/lib/ruby/site_ruby/1.8/i686-linux

That’s it.

Categories: How-To Tags:

How to install mod_fastcgi on CentOS 4.x

February 8th, 2006 mike Comments off

We’ll assume apache2 is installed via rpm/yum.

$yum install httpd-devel
$wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
$tar -xzvf mod_fastcgi-2.4.2.tar.gz
$cd mod_fastcgi-2.4.2
$cp Makefile.AP2 Makefile

edit Makefile and change

top_dir = /usr/local/apache2

to

top_dir = /usr/lib/httpd

Then it’s:

$make
$make install

Add to your httpd.conf (it’s in /etc/httpd/conf):

LoadModule fastcgi_module modules/mod_fastcgi.so

Restart apache. That’s it!

Categories: How-To Tags:

Mac OS X 10.4 Ruby MySQL Adaptor

February 1st, 2006 mike Comments off

After getting the “checking for mysql_query()” errors, this worked for me on 10.4.3

sudo gcc_select 3.3
sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql --with-mysql-include=/usr/local/mysql/include/ --with-mysql-lib=/usr/local/mysql/lib/ --with-mysql-config=/usr/local/mysql/bin/mysql_config
Categories: How-To Tags: