Saturday November 21, 2009
Head in the cloud

A quick test run of Chromium OS

The slick folks over at gdgt got the source code of the upcoming Google Operating System (currently called Chromium) and built it into a VMWare Image. Being a serious nerd I needed to check it out (most likely due to the rampant news in the past months).

I downloaded the image and installed VMWare Player, from that point I was helped by a post on the gdgt Chrome OS discussion thread since the image would not boot out of the gate. They directed me to a vmx VMWare Player script that would load the hard drive image correctly. From that point I modified the Guest OS type to "Linux / Debian 5.0" from "Other" to get network connectivity.

I was than able to log in with my Google credentials. As expected I was loaded directly into Chrome (the browser) and an attempt was made to connect to Gmail. However there was some DNS issues preventing host lookups, therefore only allowing access to websites via direct IP.

From my quick browsing I was unable to find any network settings so I stopped there. Honestly I just wanted to see if it was what I expected and it was. Does an OS entirely in the cloud impress me? Not really, but there is potential and hopefully Google carries on with this experiment to make something viable.

Filed as google chrome os
Posted at 19:29 by Robin
Monday November 02, 2009
MariaDB Test Run

MariaDB is Michael "Monty" Widenius' branch of the popular MySQL database after it was purchased by Sun and taken in a different direction.

I was browsing my RSS Reader the other day and noticed that the latest beta of MariaDB was released as noted on the MySQL Performance Blog and thought as a database user and developer I would give it a try.

Since it was Sunday and I wanted a challenge I decided to install it from source. I downloaded the latest source tarball (5.1.38 Beta) to my Debian 5.0 server and uncompressed it. The build instructions were fairly standard:

1) Install the Prerequisites: apt-get build-dep mysql-server

2) In the source directory I ran: BUILD/autogen.sh

3) Than ./configure --prefix=/opt (I use /opt since I did not want it to interfere with my existing MySQL installation)

4) make

5) make install

From there I created a data directory for the MariaDB using mkdir /opt/data and the mysql_install_db tool (/opt/bin/mysql_install_db --datadir=/opt/data --user=mysql)

I stopped my running MySQL server and launched MariaDB:

/opt/libexec/mysqld --no-defaults --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306 --basedir=/opt --datadir=/opt/data --tmpdir=/tmp --language=/opt/share/mysql/english --skip-external-locking --skip-networking --key_buffer=16M --max_allowed_packet=16M --thread_stack=128K --thread_cache_size=8 --myisam-recover=BACKUP --query_cache_limit=1M --query_cache_size=16M --expire_logs_days=10 --max_binlog_size=100M --plugin_dir=/opt/lib/mysql/plugin --plugin-load=ha_innodb.so:ha_archive.so &

This defines all the appropriate paths so MariaDB does not bump into MySQL, as well as load the InnoDB and Archive plugins.

As per the warnings when I started MariaDB for the first time I upgraded the database using: /opt/bin/mysql_upgrade -u root -p

To test the install I used the MariaDB command line client and the with the default root account: /opt/bin/mysql -u root -p.

MariaDB supports the complete MySQL feature set plus some tweaks including the XtraDB, processlist and extended slow log patch set from Percona.

MariaDB has the potential to surpass MySQL since it's development and expansion is driven by community need rather than corporate desire. It touts itself as being more optimized and speedier than the MySQL default MyISAM via the Maria Storage Engine. I do hope it will lives up to it's claims as I will be following it every step of the way.

Filed as mysql mariadb
Posted at 23:03 by Robin
Wednesday July 22, 2009
Xfce4: The mobile experience

I have been running Xfce4 + Debian 5.0 on a desktop at work since March. Since replacing the hard drive in my laptop I had not installed any flavor of Linux (which I normally do). I was going to go with Ubuntu, but I thought I would add a twist this time and opted for Debian + Xfce4 instead.

I ran into my first challenge right out of the gate: Wifi. Since I did not want to move from my place in front of the media center I needed to get wireless working on my WPA secured network. To make things more challenging I only downloaded the Net Install ISO, which only contained enough system to boot into base system. After a little searching I found out about the wpasupplicant package and the non-free firmware for my Intel wireless card (firmware-iwlwifi). After grabbing these packages + prerequisites and loading them from my thumb drive I configured my card as per the Debian Wiki Wifi entry.

From there I installed the xfce4 + slim (Simple Log In Manager) packages, which gave me a base xfce4 system.

This brings me to issue #2, wireless management. I needed a decent utility to manage my wireless connections, since I do jump between connections when I travel, etc. After some searching I found wicd in the Debian backports repository, since it is not part of the Lenny release. As a side note one of my goals was to keep from running a mixed system, which can be problematic when on the road. I chose wicd since I used it before in Ubuntu and it does not conflict with my already edited /etc/network/interfaces configuration. As a footnote for a user to run wicd they need to be a member of the netdev group.

At this point I realized that my laptop was running through the battery like gang busters. This was by far the most difficult issue to solve without installing Gnome power management utilities. Since I was trying to stick with either Xfce native or GTK applications I went on the hunt. Only to find out that Debian is distributing a fairly old version of Xfce by default (4.4.2). In order to use xfce4-power-manager (which is still in the beta stage), I needed at least 4.6.0 installed.

This is where the unofficial Debian Desktop project comes in. They distribute the latest desktops in repository form for the current releases of the Debian distro.

After adding the Xfce 4.6.0 repository to my sources.list I ran a apt-get dist-upgrade. First thing I noticed is that most of my panel icons are missing. My suggestion (and that of several other people) is to install a new theme (besides the default Rodent theme) and switch to it using the Xfce4 Settings Manager. I switched to Tango, which I think is snazzier. Apparently there is some issue with icon themes during upgrade and the fact that Rodent does not exist in the newer versions of Xfce. This has been fixed in development and will fixed upgrades in future releases.

After that was out of the way I downloaded xfce4-power-manager directly from the SVN (because I felt like being on the bleeding edge). Built and installed it, only to discover a bug dealing with the version of Gtk I had installed (2.12). I posted the issue to Bugzilla and it was fixed before I got out of bed this morning.

After fiddling around and adding myself to the powerdev group I am now a smooth operator hyper-miling my laptop with Xfce 4.6.

This experience has taught me a few things, one of those being how to configure a wireless network adapter; two that the Xfce project has some great developers; and three Xfce4 is fast, allowing more of my resources to be focused on applications and less on the window manager which adds pep to my laptop + experience.

Filed as xfce4 debian
Posted at 21:15 by Robin
Saturday May 09, 2009
My First Media Center

My latest project started back in December with some Boxing day sales, and finished up on the 1st with the maiden voyage.

It was interesting gathering all the parts from Greenlyph, NCIX, NewEgg and various local shops to come together in my first media center. I spent months price comparing and shopping around for the best deals, trying to decide on form factor, cases and where I would stop. There are still a few things I can think of that will have to wait.

Here is what I settled on:

  • IN WIN IW-BT611T Slimline chassis
  • Athlon 64 X2 5200+
  • Asus M3A78-EM (Asus 780G Chipset)
  • 2 x 2GB Crucial PC-6400
  • 1 x SATA Seagate 500GB 16MB Cache
  • LG SATA DVD-R/RW
  • Logitech Wireless Keyboard/Laser Mouse Combo
  • Windows 7 Ultimate RC 32-bit

Originally I was going to install Ubuntu 9.04, but thanks to ATI's horrendous proprietary drivers and two wasted days I decided to save the cost of a Vista license and install the release candidate of Windows 7 until it comes out this fall.

In the mean time this machine makes a great addition to my modded entertainment center (a story for another day).

Posted at 21:23 by Robin
Saturday April 18, 2009
Underwhelmed

I installed Internet Explorer 8 a few days ago and I guess I was expecting to be wowed (I have no idea why), but I was underwhelmed by the lack of innovation. The only point that I am happy with now is that everything I develop in Firefox looks just as good in Internet Explorer, without having to hack it to pieces.

Unfortunately for every web developer in the free world Internet Explorer 6 will not be dying anytime soon (in my organization anyway), so the backwards ways of IE6 will continue to prevail.

Posted at 12:25 by Robin
Saturday April 18, 2009
Resume + Portfolio

My resume and the start of my portfolio is finally online. These were the main reasons for me starting this website. I guess the main hold up was the massive amount of CSS I need to do, which is time consuming. Those pages were only tested on FF3 and IE8, so please forgive any design glitches.

Filed as updates
Posted at 12:17 by Robin
Thursday April 09, 2009
Apache RedirectMatch

Just a quick note that in all the brilliance of the Apache mod writers, the RedirectMatch directive does not support question marks (?), that's right, question marks in the redirect URL.

After almost an hour of wasted time this is the only conclusion I could come to. Apparently there is a mod_rewrite work around, but it was too shallow for me to even bother looking at. Apache URL encodes all output by default and the mod_alias authors some how overlooked dynamic URL strings.

Filed as apache
Posted at 06:16 by Robin
Monday March 30, 2009
Wordless Monday

My idea of sexy after 715 days up.

Filed as popcorn
Posted at 13:51 by Robin
Saturday March 28, 2009
Firefox Web Developer Essentials

As a companion to my previous post I thought I would stay on the "essentials" theme and cover what I consider as a web developer the essential Firefox add-ons.

Firebug

Seriously, this is best thing since sliced bread when it comes to web development. It enables you browse the source as it is generated, any JavaScript or CSS that was loaded by the browser and it shows all AJAX calls along with their corresponding responses. Definitely a must have.

Web Developer

As a web developer this tool bar comes in at a close second and is handy for generating source (making it searchable), disabling JavaScript/CSS/cookies for testing purposes as well as editing or adding cookies that are accessible by that particular web page.

User Agent Switcher

I have found this useful when troubleshooting unusual behavior created by firewall privacy settings on a end users computer. Easy to install and highly customizable.

Delicious Bookmarks

This is not a web development related add-on, but it is useful for bookmarking across multiple computers and platforms. Making this the #3 add-on I install with Firefox.

Posted at 10:24 by Robin
Saturday March 21, 2009
The Windows Desktop Essentials

I have been using computers for the past 11 years in some way or another and in that time I have rebuilt my own computers and those of many others who found out my secret trade. In the past month I reloaded my laptop twice (once for hard drive failure and the other was due to infection).

In the years since I went 100% legit (no cracked software of any kind) I have been able to find decent cost effective software to meet my needs. These are must haves for installation on any Windows desktop.

Antivirus

This one could be up for debate, but I prefer Avast! Home Edition if I must install an Antivirus and depending the performance of the machine I may not install one at all.

Web Browser

Mozilla Firefox gets installed on every machine I rebuild with the Flash and Acrobat plugins. As well I always set it as the default browser and remove the Internet Explorer link from everywhere except the one hidden in programs menu. This has probably costed me business, because they do not need to come back, but I think it is worth it.

CD/DVD Burning

Since I only burn data discs and ISOs there are a few options, but the best by far I discovered a few months ago is DeepBurner. The free edition does everything I need and on the plus side if I want the extra features licensing is only 25.00, as opposed to 95.00 for a full suite of applications I will never use (I was a die hard Nero fan before it became bloatware).

Text Editor

Since I am a web developer and have a deep dislike for WYSIWYG web page editors I write everything from the ground up using jEdit. Way back in the day I went on a search for the most flexible and smooth operating text editor that supported HTML, CSS, JavaScript and PHP syntax highlighting. jEdit was the winner by far with flexibility to do pretty much anything and a vast array of plugins. I have looked a few times to change it update since I spend everyday looking at this application, but have not been able to find a suitable replacement.

The #2 text editor I usually install is Notepad++, which I use as a Notepad replacement since it supports simple things like Unix style like escaping :)

Office Suite

In the last two versions of OpenOffice.org it so close to the Microsoft Suite that I could drop it on someones computer and they would not even notice the difference. If there is no Microsoft Office license onsite this one gets installed without a thought. Interest enough I bought Office 2007 - Enterprise a few months ago from work, only having to pay the shipping, but under normal circumstances I would not think twice.

Archiving/Compression

A few months ago I finally got sick of 7 years of WinRAR evaluation popups and decided to seek out a less costly solution and found 7Zip. It was a drop in replacement, except that it did not support RAR, but that is something I can live without since 7z has a better compression ratio and supports all my favorite Linux formats (BZip2, Tar, GZip).

Media Player - Video

A few months ago I discovered VLC Media player and the only thing I have been not able to play is DRM protected content. It supports almost everything and is light weight so there the memory foot print is small.

Media Player - Audio

I have not installed this recently since all my music is on my iPod, but FooBar2000 is a flexible and again light weight media player that will not cause your computer to chug when changing songs.

Graphics

GIMP is not quite PhotoShop (which I use at work), but it is close enough for my designing needs.

To be honest I only thought of GIMP when I was going to take a screenshot for this post and did not have it installed yet.

Remote Control

I have been using a VNC on my main machine for years, but four years ago I switched to UltraVNC and it has replaced my previous use of PC AnyWhere with support for file transfer and the requirement of only one open router port.

File Transfer

If a FTP client is a requirement (which it is for me) I opt for FileZilla (which runs on Linux as well) which supports SFTP and FTP protocols. In the recent releases they dropped the dependency on PuTTY so the memory foot print is fairly small.

.Net IDE

I will now mention a few development tools that have saved me some dollars over the years. The first is SharpDevelop which is now almost a drop in replacement for Visual Studio C# development.

Source Code/Versioning

I have used subversion for the past few years as well as the TortoiseSVN Windows client to make sure my screw ups can be easily rolled back.

These are my essentials and the best part about they are all viable cost effective alternatives to their commercial counterparts.

Filed as essentials
Posted at 10:57 by Robin
Thursday March 19, 2009
Adventures in XFCE

After reading a recent Linux Journal article on the light weight Window Manager XFCE I decided to take the plunge at the office on a machine that should of been left at the curb and I was pleasantly surprised.

I had an older Dell box with 512M of RAM on a 2.53 celery stick running Debian 5.0 for testing various apps before pushing them out to our production servers. Since I needed a second machine I figured I would install xfce4 to see it lives up to the hype given to it in the March edition of Linux Journal.

First off it is screaming fast and easy to get used to (after daily use of Ubuntu with Gnome). It started to chug a little when I began using jEdit, but even my new box chugs under the strain of the JRE.

It is nice to be able to work unimpeded by the overhead of a choppy operating system.

Filed as xfce4 debian
Posted at 10:11 by Robin
Tuesday March 17, 2009
iPhone OS 3.0 Preview

The preview event for the upcoming release of the iPhone OS 3.0 just happened today and there are a few items I have been waiting for: Copy & Paste and A2DP Bluetooth support. Even though I have a 2nd generation iPod Touch it apparently has Bluetooth built in, but is not "activated". Personally I will be dishing out the 9.95US for that reason alone.

Check out the full run through at MacRumors.

Photo Credit: MacRumors

Filed as ipod apple
Posted at 15:11 by Robin
Monday March 16, 2009
Incorrect what?

I was simply adding a database to the binlog_do_db variable and restarting my master. I was being overly cautious so I started with a running the stop slave io_thread command on the slave to prevent any issues from propagating to the slave.

I than looked for a way to "gracefully" restart mysql so that I would not create any master binary log errors, and elected to use mysqladmin shutdown -p. On the restart using /etc/init.d/mysql start Innodb started throwing a "Incorrect information in file" error for the only 2 Innodb tables running in my database.

After trying a table repair and failing I thought another /etc/init.d/mysql restart could not hurt. And it worked, since my Innodb tables were now back online.

At this point a new problem surfaced on the slave when I start the IO thread. It could not read a binary log from the master and failed about a minute into restarting.

On the master the syslog was showing a "Failed to open log (file '')" error which seemed strange to me. After a quick Google search I found out that this usually had to do with a log showing up in mysql-bin.index that no longer existed.

When I opened the mysql-bin.index in nano I found a bunch of strange characters (@^@^@^@^@^@^@^@^), so I deleted them and restarted the mysql master again.

All is now good in MySQL land (for know). Solution: restart, restart, restart. Moral: Do not mix mysqladmin and init scripts.

Filed as mysql
Posted at 10:06 by Robin
Tuesday February 10, 2009
Moo to you.

I would like to throw my hat in the ring with MooTools. Seriously, anything that can make cross browser Javascript easier gets my vote any day. Of course like anything else there are draw backs, including some effects deficiencies in Internet Explorer. Although how can any Web Developer take IE seriously these days?

I know I cannot do it since I spend 80% of my debug time trying to work out some CSS or Javascript glitch that Internet Explorer does not address properly. I will admit that IE8 does address some of these issues with the new commitment to standards, however in my opinion it is a little late considering that the latest version of Internet Explorer will break the majority of websites that employ IE hacks who are trying to make everything look good.

Anyway, MooTools is awesome. If you have not chosen a javascript framework yet check it out, it is worth at least a look.

Posted at 00:21 by Robin
Monday February 09, 2009
Welcome to the Show

This is my new home. Still a work in progress, but it is better than the "in development" page that has been in this place for the last week or so. All of my blog content plus portfolio and resume will be here soon as well.

Enjoy the popcorn ;)

Filed as popcorn
Posted at 00:18 by Robin
Saturday January 17, 2009
A new day

It is a new day and I decided to pick a non-mainstream language and learn it from the inside out. My choice was Python and I have been picking away at Dive Into Python since last Friday and so far so good. It is an interpreted language which means there are obvious limitations including speed, but for quick and easy jobs that require multi-platform support I think it will come in handy.

After I finish the book, I am going to write a web script to enable syncing in my new PasteBox project. This will allow sharing and multiple desktops to access the same data. It will allow me to use it in a real world application so I can get more familiar with the ins and outs.

Next I will be brushing up on my java, since it seems everyone is looking for java these days ;)

Filed as python
Posted at 23:04 by Robin
Sunday January 11, 2009
Windows 7: First Impressions

Since my hard drive died this week and I needed to re-install Windows XP I figured I would leave a little space for the newest edition of Windows. After an entire day and a few restarts I managed to grab the Windows 7 beta from Microsoft.

To start with I am impressed to say the least. The installation was a breeze, it installed all of the drivers except those for the built in card reader, but that is not the end of the world. And it installed the default Microsoft drivers for my Intel graphics chip, which does not allow me to use the TV out, but again this is a beta. The install went faster then my install of XP and was simple in asking me where I wanted it to live and it went about it's business.

On the first boot it loaded in a snap. Of course, the first thing I did was reconfigure the desktop and install Firefox. All of my regular applications installed like a charm.

The only thing I noticed right off that will take some getting used to is the new task bar. I have only been using it for an afternoon, so far it is a little akward, but I expect it will grow on me.

I originally got this Toshiba Satellite with Vista Home Premium and it chugged out of the gate, after 8 months I broke down and bought an XP license, now I am pondering a Windows 7 license when it is released. Since this machine was a steal at 800.00 plus an XP license 150.00 and a new hard drive this week 90.00 and a Windows 7 license at least 185.00 I am looking at the potential of a 1225.00 laptop with 3 different Windows licenses on it. I am starting to think Microsoft planned Vista this way on purpose.

I love it so far and fear for Ubuntu's grand future since Microsoft may have a new contenter.

Posted at 23:10 by Robin
Saturday November 22, 2008
MySQL Enterprise Monitor Test Drive

In our quest to optimize our MySQL powered application I decided to take MySQL Enterprise Monitor for a test drive. It is easy a snap to install and configure the Service Manager and remote Agents on 2 different servers to test. The only real hitch was the Query Proxy, which I am yet to get working.

I figured for $2999 a year their support should be extremely responsive, and I was not disappointed as I received an email in approximately 10 minutes with some troubleshooting steps. Hopefully this issue will be resolved quickly so I can get on with testing the Query Analyzer (the reason for this experiment).

Otherwise the database and server monitoring is rather sophisticated and robust. However for 3k a year US it is a little steep for our operating budget. The plan is to start from the top and work our way down to something in our price range that meets our need to optimize our database and application query usage.

From what I can see MySQL Enterprise Monitor is definitely tops in that regard.

Filed as mysql
Posted at 23:12 by Robin
Thursday November 20, 2008
I think their advertising is working

Seriously, I got a new generation 8GB iPod Touch for my birthday over a month ago and I am more hooked on this thing then when I got it. I am not sure what it is. This is my first Apple product so I guess I am not used to the simpilicity of it all. I grew up in Microsoft world, so simplicity is not a word I heard too often.

Apple's advertising make it seem exciting to own an iPod Touch or iPhone 3G or MacBook or any Apple product, because when my Toshiba Satelitte dies (hopefully not anytime soon) I will most likely be investing in a MacBook as my next mobile office.

Don't get me wrong the iPod Touch is truly the "Funnest iPod Ever", with it's slick interface, fancy gestures and sturdy hardware design, but there is one basic function that would prevent me from replacing my Blackberry with an iPhone: copy & paste.

At the end of the day I don't own an iPhone, so really what am I complaining about.

Filed as apple ipod
Posted at 00:04 by Robin
Saturday November 08, 2008
Ubuntu 8.10 Intrepid Ibex

I was already running Hardy Heron (8.04), but did not feel like working the other night so I thought I would waste that time upgrading to Intrepid Ibex. With a little help from TorrentFreak I was quickly on my way. It took about 3 hours over my wireless connection, but it was worth not having to reinstall applications and reconfigure every aspect of the OS to get it the way I like it.

My only complaint about the upgrade (and this is minor) is that it lost my saved wireless keys. Not a big deal for my home network, but a few of the other networks I visit on a regular basis use a ASCII Hex password which is a pain to re-enter.

According to BootChart I am booting at 38 seconds which is an improvement over not only Hardy Heron, but my XP install as well.

If you are looking for a cheap Windows alternative Ubuntu 8.10 Intrepid Ibex is a good place to start.

Filed as ubuntu
Posted at 00:06 by Robin