Ever in Flux Not another webcomic.

15Dec/090

The countdown is on…

January 7th is the day I will be undergoing major dental work. It's been a long time coming and I'm looking forward to ending this continual pain in my head. It's been years since I've been without it. I almost feel like I'll be losing a friend.

14Dec/090

Making Rails/Passenger ignore a subdirectory.

While I would strongly advise one to use a subdomain or install their Rails application into a subdirectory, there are situations where the optimal solution is not available.  A good example is my current project at work.

I have a Rails app deployed with Passenger through Apache. That same server also has PHPMyAdmin in a folder outside the Rails application.  The problem here is that any request to domain.com is absorbed by Passenger and passed on to Rails.  Thus, an attempt to reach http://domain.com/phpmyadmin results in a Rails error since I don't have a phpmyadmin controller.

Rails doesn't provide any easy way out of this that I could find.  Passenger's documentation suggests that one can write a .htaccess file in the folder's directory to have Passenger disabled for that directory. That would work if the directory were inside the Rails application.

After spending several hours trying to force the Rails app into a subdir, trying to setup an alias to the phpmyadmin folder, etc., I stumbled across this post at StackOverflow. While I'm not using Trac, this turned out to be the solution I needed.

I put the following in to httpd.conf:

<LocationMatch "^/phpmyadmin/.+">        PassengerEnabled off        AllowOverride All</LocationMatch>


Alias /phpmyadmin "/path/to/phpmyadmin"<Directory "/path/to/phpmyadmin">        PassengerEnabled off        AllowOverride All</Directory>

I am not sure if it is necessary to have the Passenger options listed in both sections, but I have it setup this way and now those that need it can access phpmyadmin.  I also tried putting this in the vhost config specific to the host, but Passenger captured the request.

Filed under: Personal No Comments
5Dec/090

Wednesday’s the day.

Wednesday morning I go into approve some major dental work that has been a long time coming. I'm nervous, but excited about the work that will be done.

There will be before/after pictures when the procedure is complete. I expect the differences are going to be very dramatic.

5Dec/090

Goodbye Gnome, hello KDE. Goodbye KDE, hello wmii

It's not unusual for me to try out different window managers for Linux.  In fact, I've tried most of them: Gnome, KDE, Enlightenment (DR16 and E17), jwm, twm, XFCE, *box, LXDE and Awesome to name a few.

While I enjoy having a modern, graphical desktop, every single one of them fails to be functional for me in one way or another. Thus, I always have at least one open Terminal window. Some things are easier and faster that way.

So, recently I stopped using Gnome because I was unable to compile a new version of Gnome due to some dependencies on Mono. I'm not a Mono hater, but I'd rather use software I know will remain free forever.

Switched to KDE because I have friends who swore that 4.3 was the bees knees. If you're looking for a slick, shiny user interface, then KDE 4 is a real treat. I enjoyed it for about 3 weeks, then I became disheartened with how sluggish my computer felt. That, and I spent more time in Terminal than in any part of the GUI.

About a week ago, I switched to wmii. Minimalist interface, manages windows (a good goal for a window manager), and stays the hell out of my way. While there's a bit of a learning curve, it's not so steep that I had to spend hours tweaking it before I began using it.

One of my favorite features is the "tagging." Similar to having multiple desktops in another WM, tags create separate screens for applications. So, tag 1 has a terminal maximized, tag 2 has my browser window and tag 3 has IM, irc, or whatever.  Any WM does this, but what wmii does better is that when there are no more apps on that tagged screen, it disappears.  This means I never have an empty workspace unless there's only the one.

Another is a feature that's implemented in similar window managers: tiled windows with layouts. I can have all my windows line up like little tiles in the one screen, have them overlap each other with only their title bars showing or even have some windows float while others remain attached to the background.  Handy.

Most interesting for me is the way that I can interact with wmii. wmii implements a Plan 9 interface to itself. That means every piece of the wm can be accessed as a file. No more wondering where the configuration is hiding (Gnome and KDE could take a lesson from this.)

Filed under: Personal No Comments
3Nov/090

It’s after midnight. Do you know where my mind is?

It's thinking it's daytime. That's right. My brain seems to kick into overdrive just around this time. With that in mind, I sought one answer from the almighty Google: "Where in the world is it 9 am right now?" Sadly, the search engine knew not how to parse my query and instead directed me to another oracle. Once there, however, I found the answer I had been seeking.

Here are the places I wish I was right now (based solely on the fact that it's morning there and NOT one other reason why):

  • Hamburg, Hamburg, Germany
  • Palma, Majorca, Spain
  • Paris, France
  • Algiers, Algeria
  • Alicante, Spain
  • Podgorica, Montenegro
  • Amsterdam, Netherlands
  • Andorra La Vella, Andorra
  • Poznan, Poland
  • Prague, Czech Republic
  • Pristina, Kosovo
  • Basel, Switzerland
  • Barcelona, Barcelona, Spain
  • Bastia, Corsica, France
  • Rome, Italy
  • Rotterdam, Netherlands
  • Kraków, Poland
  • Berlin, Berlin, Germany
  • Bern, Switzerland
  • La Coruña, Spain
  • Salzburg, Austria
  • San Marino, San Marino
  • Lausanne, Switzerland
  • Libreville, Gabon
  • Bratislava, Slovak Republic
  • Brussels, Belgium
  • Lódz, Poland
  • Luxembourg, Luxembourg
  • Stockholm, Sweden
  • Madrid, Spain
  • Szczecin, Poland
  • Copenhagen, Denmark
  • Córdoba, Spain
  • Düsseldorf, North Rhine-Westphalia, Germany
  • Munich, Bavaria, Germany
  • Vienna, Austria
  • Frankfurt, Hesse, Germany
  • Nice, France
  • Warsaw, Poland
  • Geneva, Switzerland
  • Oslo, Norway
  • Zürich, Switzerland

I think it's time to try and learn a foreign language. I've already set the language on my Nokia Internet Tablet to German. Maybe I'll keep it there for a while.

2Nov/090

So ends Bean’s Free Music Month

Last month I ran an experiment, of sorts. I listened to nothing but "Free" music. I dubbed it Bean's Free Music Month and removed from my playlists any music that was married to a restrictive license. For all of October, I listened to artists and tracks that I was able to download and distribute.

Jamendo was a predictable starting point for this adventure through the world of liberally-licensed music.  I had already thrown a few of the more popular artists into regular rotation: Tryad, [add info about the band], [list 2 others w/info].

 I've already been listening to some of the top artists there but decided to branch in to genres that didn't lean toward the electronic. I am a fan of electronic music (some of my favorite artists being The Crystal Method and BT), but I wanted to hear something that would be similar to the rock I love to listen to most.  Artists like Disturbed, Staind, dredg and the many others that produce commercially available music.

So, I began looking around on Jamendo for rock acts or at least bands that didn't describe their music using an electronica genre.  One band I found, TenPenny Joke, was a welcome discovery.  At times sounding like Silverchair, this aussie band knows how to play rock.  Their melodies remind me of 80s post-metal alternative with an updated style.

One thing I can say now that October is over and I've re-added some commercial artists into the mix is this: Much like open-source software, free music suffers from a glut of glorious garbage. However, if you weed through it, there are some real treasures to be found.

Filed under: Personal No Comments
18Oct/090

Some screenshots of XBMC on my XBOX.

I really enjoy XBMC. It's the only thing that makes my old first-gen XBOX worth a damn any more. GameStop no longer carries them, but PS2 and GameCube titles are readily available. So, an open source project has given it new life.

Here's some recent screenshots:

From XBMC Screenshots

And one more:

From XBMC Screenshots

Listening to some Professor Kliq, an artist whose work is licensed under a rather liberalCreative Commons license. The XBMC skin is Focus from SVN.

14Oct/090

Gnome/Metacity is tweakable, y’all.

I hear/read it a lot.  Gnome/Metacity is not as configurable as other Desktop Environments (DE).  That's not entirely true.  It's not as EASILY (read GUIfied) configured as other environments.  

Wait!  Which environments provide a GUI configuration for all of the tweakable desktop elements like title font, window border, button shape, size and/or placement?

I can think of 2 that allow such fine-grained control in a GUI:

  1. KDE/Kwin
  2. XFCE/XFWM4
I KNOW there are more than these two.  Tell me about them.  I may have already used it in the past.

When I read about someone's experience with a tiling window manager (WM), I think, "That's what I need. Insert Justfication 1, Justification X and Justification III here." I will then promptly install whatever DE/WM they've recommended, use it for 2 weeks and then go right back to Gnome.  Why?  Familiarity, for one.  Secondly, I customize Gnome to my liking.  I get keyboard shortcuts that I like, a look that I prefer and the overall experience is mine.

Each of us have discovered THE best configuration of their computer for their particular usage. Some like a minimalist UI (OpenBox, Fluxbox, ratpoison, awesome), others prefer a compromise between lightweight and stylized (LXDE, XFCE, IceWM, GNUStep and still others prefer a plain console with or without framebuffer enabled.

I prefer Gnome for all its "bloat" and "size." Again: Why is this?  On a modest system (Intel Celeron 2,2GHz, GeForce 8400 GS, single 21" display via DVI and 2GBs of RAM running the latest Arch Linux 64-bit version), I can enable the built-in compositing in Metacity without noticeable impact to my desktop performance.  3D performance drops dramatically, but I turn off the compositing if I really need 3D performance, like when playing games or playing games.


Gnome is very configurable, however.  Like with other DE/WM combinations, you'll have to get "under the hood" and "get your hands dirty."  This means that a few config files have to be tweaked, you WILL need a command prompt and the changes may not be permanent.  It's Linux, not OS X or Windows.


I've modified the default icon theme, changed the background of the panel and other tweaks that make my desktop:

  • Unique (Like every other alternative-OS-running-mofo's desktop. Is that ironic?)
  • Personal (That's what PC meant originally, right?  No reason it should mean anything else now.)
  • Functional (By adding this myself, I can be more productive.  Can be, but I'm not) 

I like the customization freedom I have with Gnome.  Is it as easy as in other DE/WM combinations? No, not really?  Do I care? Nope.  Not enough to remedy the situation.

14Oct/090

Now Playing Notification using ncmpcpp, libnotify and Gnome

I missed the functionality of a Mac OS X application and through the a mix of LinuxJournal's tip for using at with libnotify, some tinkering and assignment to <Mod4+F5>, ncmpcpp and this code:

notify-send -i audio-x-generic "Now Playing" "$(ncmpcpp --now-playing '?? %t    ??^M^M?? %a ??^M^M ?? %b ??')"

EDIT: Crikey!  The above code was pasted from vim in a terminal, so the ^M's are actually the following keystrokes: <ctrl-v><ctrl-m>.  It's to get the linebreak needed to separate the track, artist and album so nicely.

I get the following via libnotify when I press the "Windows" key and F5:

Soon, I'm going to learn how to modify libnotify themes and make a better one, but for now this will suit me just fine.
Filed under: Personal No Comments
14Oct/090

Adding new hotkeys using the rarely-used "Windows" key.

I abhor using that word to describe that key and I'm too lazy to replace the keymap with a "penguin" or a "mudflap girl" or whatever else it could be.  For now, it remains the "Windows", "Super" or even "Mod4" key.

One of the best uses of that key, however, is as a modifier for personal Keyboard shortcuts.  Gnome doesn't clobber keyboard shortcuts that use these keys.  Your DE/WM may vary.

For example, I've added some questionably convenient shortcuts for myself:

Each of those either runs a script (nothing fancy, just calling apps with arguments) or calls an application directly to achieve a desired result.  In this way, I'm able to re-invent functionality of other Operating Systems, applications I've used in the past or just add something I wanted (like the Now Playing popup from SizzlingKeys).
If you're running Gnome/Metacity, check the Keyboard Shortcut preferences and related documentation to add your own shortcuts.
Bear