rdebug 1.9

I’m running rvm and have ruby 1.9.2-p136 installed. Unfortunately, gem install ruby-debug throws all sorts of errors so I fumbled around and found this post:

http://dirk.net/2010/04/17/ruby-debug-with-ruby-19x-and-rails-3-on-rvm/

Which summarized a post by Mr. RVM himself:

https://rvm.beginrescueend.com/support/troubleshooting/

But I continued to receive errors when I ran the following command:

gem install ruby-debug19 -- --with-ruby-include="$rvm_src_path/$(rvm tools identifier)/"

I discovered I didn’t have the $rvm_src_path environment variable set anywheres! I fixed that problem by adding the following line to the end of my ~/.bashrc file:

export rvm_src_path="$rvm_path/src"

Posted in Linux, Ruby, Technology | Leave a comment

Ubuntu Screensaver. Why U So Hard To Configure?

Ugh… no *good* solution just yet but I plan to update this post once I figure out the proper way to customize screensavers on Maverick. I found this article but it doesn’t work on the latest and greatest ubuntu version:

http://www.freesoftwaremagazine.com/columns/customizing_your_screensaver

more to come :)

Posted in Linux, Technology | Leave a comment

nautilus-clamscan fix in maverick meerkat

Greetings my fellow Linux users! Today I found the need to perform a virus scan on a questionable image sent to me. I noticed there was a package in the repo called nautilus-clamscan which *should* have installed a new item called ‘Scan for viruses…’ in my right-click context menu while using nautilus. It would be very useful… if it actually worked. After installation, the menu item never showed up even after restarting nautilus. Here are the steps I followed to get it to work for me:

aptitude install nautilus-clamscan nautilus-actions

nautilus -q

Now when I right-click on a folder or file I have the option to run it through the clamav engine :)

Posted in Linux, Technology | Leave a comment

WTF Dell?

I received this beauty of an email this morning from Dell:

Dear Customer,
We’re sorry but your order will take longer to fulfill than previously communicated and is now scheduled to be delivered on or before XX/YY/ZZZZ

Because we did not meet the date previously communicated to you, we need your permission today to continue your order with this new date. If we do not receive your permission, the Federal Trade Commission requires that we cancel your order.

This is actually the second time they’ve delayed my order. Great. But what annoys me most is the tone of their message.

“Dear Customer?!” They know my damn name! It’s on the credit card which has purchased thousands of dollars worth of computer systems from them. It’s also tied to my Dell account. It’s called mail-merge, geniuses!

And what’s with this “The FTC is forcing us to blah blah blah.”

Did these guys fail being human 101? Honestly, this goes beyond customer support. Who likes to hear a friend or acquaintance go on and on about how the world is against them and forcing them into whatever decision or situation.

Jeeze! Own up to the problem, tell me the what’s and why’s, apologise for not being able to get whatever widget in, and if you really feel like knocking my socks off, offer to give me upgraded shipping/$10 worth of free music/a free USB mouse/a cool Dell sticker… anything. Don’t blame the big bad FTC.

In summary… I need more friggin coffee before receiving emails like this!

End rant.

Posted in Technology | 4 Comments

Battlefield Bad Company 2 – Best. Game. Evarrr.

Want to put the hurt on enemy infantry? Choose the assault class and dispatch them with your assault rifle and attached grenade launcher… but you better take out their medic first or you’ll curse yourself later.

Want to demoralize the opposition? Choose the medic class to heal injured teammates and even defy nature and bring them back to life with your defibrillators. That’s right! Revive “dead” teammates right on the battlefield and continue the fight!

Is an enemy tank cramping your style? The engineer class’s rocket launchers and anti-tank mines will take it apart piece by piece.

Is the enemy entrenched in a building? Use the recon class to rain death from above with mortar strikes or plant C4 on the walls and bring the entire structure down on top of them.

The mixture of objective based game styles, strategy, squad support, class diversity, weapons, terrain, and vehicles makes BC2 game play a rich and fulfilling experience, far surpassing any game I’ve played to date. Nothing gets my blood pumping more than hearing “Shine, I’m down! I need a medic!” (my class of choice.)

Posted in Xbox | Leave a comment

telnet http proxy

I needed to access a website from behind an authenticated HTTP proxy via an automated script and I didn’t know the protocol. I managed to capture some packets from a lynx session which is set up to utilize the gateway and figured it out.

The proper request looks something like this:

telnet proxy.whatever.com 80
Trying 123.123.123.123…
Connected to proxy.whatever.com.
Escape character is ‘^]’.
GET http://www.google.com HTTP/1.0
Proxy-Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

The first ‘telnet…’ and the last two lines are of course what you would type in and the rest is the output from the other end of the telnet pipe.

The Proxy-Authorization header tells the proxy that the information immediately following the colon are the requester’s credentials. The Basic denotes the credential encoding type (I think) of base64. Finally, that long mash of letters, numbers, and symbols is the base64 encoding of your username and password glued together with a colon like the following

username:password

Finally, you tap enter twice (possibly once if you are on a windows machine) and presto, telnet should barf out your requested web page’s HTML if you’ve done everything correctly.

If you are wondering how you can encode your credentials, you can use the following perl code:

#!/usr/bin/perl
use MIME::Base64;
print encode_base64($ARGV[0].’:’.$ARGV[1]);

Just pass the script your username and password from the command line and it will print out your base64 encoded string, like this:

/tmp/base64.pl username password
dXNlcm5hbWU6cGFzc3dvcmQ=

Posted in Linux | 3 Comments

websphere scripting with wsadmin

Well, I’ve finally had enough work to necessitate learning about websphere application server scripting via wsadmin and jython. Since this topic seems a bit scarce on the web I’ll try to post the cool stuff I learn here.

Posted in websphere | Leave a comment

WebSphere Error – Cannot get canonical host name for server

Wow… what a pain! I am helping a coworker set up a WAS solution on solaris. I installed the deployment manager (which is very similar to an application server installation… it uses the same installer in fact.) The installation went off without a hitch but when I went to fire it up I received this error message:
SystemErr R com.ibm.ws.exception.ConfigurationError: com.ibm.ws.exception.ConfigurationError: javax.naming.ConfigurationException: Cannot get canonical host name for server.

I couldn’t figure out why it couldn’t resolve the host name I had assigned to the deployment manager. I monkeyed around with the /etc/hosts file and DNS. There was nothing out of the norm as far as I could tell.

Then I wondered if ‘host name’ referred to the machine’s local hostname and not the deployment manager hostname I set up. This environment lives in a Solaris 10 Zone and since until this point, access to the zone was provided only through zlogin from the global zone, nobody had really given any thought to setting up DNS resolution for the zone’s hostname.

Long story short, I threw a line into the /etc/hosts file for the zone’s local hostname and my deployment manager sprang to life :) Searching google returns a bunch of dead ends so I really hope this helps someone out there!

Posted in Technology | Leave a comment

Phase III

Today I had a remarkable conversation with a person I admire very much. He is a colleague of mine and is very close to retiring from a successful career in IT and science in general. He told me he is very anxious to move on to “Phase III.” Of course I couldn’t let him leave that thought unexplored so I asked him to elaborate. I will not do him justice by butchering his quote here, but the sentiment was this:

Ability alone in an oppressive environment yields no success. My success is a product of my abilities and a fertile supportive environment. Phase III is cultivating success in others.

I think his exact quote was “Phase three is working not for money,” and he went on to describe the conditions in his home country versus the United States. I can only hope I’m as charitable when I hit my Phase III.

Posted in Philosophy | Leave a comment

debian hp dl380 cdrom errors

kernel: [16610.569459] hda: drive not ready for command
kernel: [16610.569505] hda: status error: status=0×48 { DriveReady DataRequest }
kernel: [16610.569511] ide: failed opcode was: unknown

The above error messages were omnipresent in my HP DL380 running Debian Lenny. /dev/hda is a CDROM device and actually worked perfectly fine. I wondered if there were some way I could specify the master/slave/cable select settings on the device, but cracking the case and examining the CDROM unit revealed no such settings or jumpers! I decided to poke around the BIOS and found the ‘OS Installed’ was configured for windows. Doh! After selecting Linux and rebooting the errors mysteriously vanished :) I hope this saves someone else from ripping their hair out by the handfulls.

Posted in Linux | Leave a comment