Archive for the 'Computers' Category

Installing java on CentOS

You’d think it would be harder, but it’s not. Not that it’s documented well anywhere, which is why I’m writing this.

  1. Go to java.com.
  2. Download the linux RPM installer for your cpu type.
  3. sh /path/to/downloaded.rpm.bin
  4. follow the bouncing ball.

And that’s it.


[mycentosvm:~] root# java -version
java version “1.6.0_06″
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)

gem update libxml-ruby on Leopard

So I’m updating my laptop to reflect the same environment as my servers - which means getting rid of macports. Part of the process was to update all the rubygems we’ve got installed. I tried to ‘gem up libxml-ruby’ and was disappointed to see

[rts-mbp:~] ryan$ sudo gem up libxml-ruby
Updating installed gems
Updating libxml-ruby
Building native extensions.  This could take a while…
ERROR:  While executing gem … (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb up
checking for socket() in -lsocket… no
checking for gethostbyname() in -lnsl… no
checking for atan() in -lm… no
checking for atan() in -lm… yes
checking for inflate() in -lz… yes
checking for iconv_open() in -liconv… yes
checking for xmlParseDoc() in -lxml2… yes
checking for libxml/xmlversion.h… yes
checking for xmlDocFormatDump()… yes
checking for docbCreateFileParserCtxt()… yes
creating extconf.h
creating Makefile

make
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -DRUBY_EXTCONF_H=\”extconf.h\”  -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I.  -c cbg.c
cbg.c:2:26: error: libxml/xmlIO.h: No such file or directory
cbg.c:2:26: error: libxml/xmlIO.h: No such file or directory
cbg.c: In function ‘deb_Match’:
cbg.c:28: error: ‘BAD_CAST’ undeclared (first use in this function)
cbg.c:28: error: (Each undeclared identifier is reported only once
cbg.c:28: error: for each function it appears in.)
cbg.c:28: error: syntax error before ‘filename’
cbg.c: In function ‘deb_Match’:
cbg.c:28: error: ‘BAD_CAST’ undeclared (first use in this function)
cbg.c:28: error: (Each undeclared identifier is reported only once
cbg.c:28: error: for each function it appears in.)
cbg.c:28: error: syntax error before ‘filename’
lipo: can’t open input file: /var/tmp//ccpl6OUz.out (No such file or directory)
make: *** [cbg.o] Error 1

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.5.4 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/libxml-ruby-0.5.4/ext/libxml/gem_make.out
[rts-mbp:~] ryan$

Turns out after a bit of digging around in the Makefile that the INCPATH doesn’t include the correct path to xmlIO.h, which is /usr/include/libxml2/libxml/xmlIO.h.

ln to the rescue. Just do

sudo ln -s /usr/include/libxml2/libxml /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0/libxml

and libxml-ruby will build fine!

[rts-mbp:~] ryan$ sudo gem up libxml-ruby
Updating installed gems
Updating libxml-ruby
Building native extensions.  This could take a while…
Successfully installed libxml-ruby-0.5.4
Gems updated: libxml-ruby
[rts-mbp:~] ryan$

The URL is not valid and cannot be loaded.

Ok Firefox.

URL not valid

Somehow you decided to disable keywords and it took me a few days to remember how to fix this.

No more. Never again. And for all the other folks this happens to, all you need to do is:

  1. Open about:config
  2. type ‘keyword’ in the search bar
  3. double click keyword.enabled so it reads true

Then rejoice as things work as expected again. If you’re looking for a great entry for keyword.URL, use YubNub - you’ll never look back.

Win an iMac? Yes please!

So my daughter Emma is 4 now, and her ruby iMac is on its last legs. It’s been up on blocks for a couple months now, and I just can’t seem to get it to boot off anything but the internal drive so I can upgrade the OS to something past 10.2.8.

What a pleasure that I just happened to run across the Stay At Home Dad iMac Give-Away contest being run by Mike over at his blog Stay At Home Dad, Geek Style, in concert with Sittercity, which I’d never heard of before, but looks quite interesting, given the need for babysitters with a 4 year old in the house.

What’s on the line? One of these babies:

iMac

A brand new, unopened 20″ Apple iMac. It has a 2.0 GHz Intel Core 2 Duo processor, 1 GB of memory, a 250 GB hard drive, an 8x SuperDrive, and an awesome 20″ glossy display. It ships with an Apple Mighty Mouse, a sexy new Apple keyboard, an Apple Remote for controlling the included Front Row software (which turns your computer into a full-on media center), and as dutifully noted on Apple’s iMac page, a power cord (duh!).

If you’d like to enter Mike’s Stay At Home Dad iMac Give-Away contest, visit his site for the rules and enter. It’s a rather interesting contest, as he’s giving out “tickets” based on doing certain things, like writing an initial post like this one is worth one ticket and is required to enter. There are other opportunities to earn a ticket.

* make extra posts about the contest for 1 ticket each
* put a Sittercity banner on your sidebar and get 5 tickets
* bid on DevDad’s ads and get 1 ticket per $1 bid
* chip in for DevDad’s dream set-up and get 2 tickets per $1 chipped in
* like the contest page on stumble upon and get 1 ticket

You’re also encouraged to use this graphic:

SitterCity

Which I am so doing as to appease the contest gremlins.

All in all, it’s an interesting way to run a contest, and I’m all for a little link love for chances to win Apple hardware, which is the pinnacle of industrial design, which runs, in my opinion, the best consumer OS on the planet. (Server OS would have to be Solaris.)

Wish me luck, and I might just have to put up a little extra chrome to help out my odds and get some more of those golden tickets!

Stuff you should not be clicking around in

VX CHAOS FILE SERVER: Virii, Worms, Anti-Virus, Hacker Tools, Warez, Codes

I saw a FSM icon, clicked on it, and ended up here. Probably some useful stuff here, but sheesh - not something for the kiddies to be digging around in.

BackTrack

BackTrack is the result of the merging of two Innovative Penetration Testing live Linux distributionsWhax and AuditorCombining the best features from both distributions, and paying special attention to small details, this is probably the best version of either distributions to ever come out.

BackTrack - Remote-exploit.org

Enforce your Breaks

AntiRSI is a program for Mac OS X that helps prevent RSI (repetitive strain injury) and other computer related stress.

AntiRSI - TECH.inhelsinki.nl

Photoshop Trick: Pencil Sketch

Don’t worry if your drawing abilities aren’t up to snuff, all that’s required here is the ability to scribble!

Photoshop converts a Photo to a Pencil Sketch

Scribble, I can. Draw? Notsomuch.

Untitled

To make it all happen in one shot, follow the same procedure (type “.”, type your message, tab, type “large type”) but then hit CTRL+ENTER and it will save the “large type” command. Then you get a new list, from which you can select “run after delay”. Slick huh?

Set quick timed reminders with Quicksilver - Lifehacker

Untitled

Configuring a Lexmark Z600  (Dell 720) Series Printer for Ubuntu/Linux

FineBushPeople.net - Open Source Solutions, South Africa