Site Navigation

Archive for the ‘IT Related’ Category

Accessibility… My Contact List

Saturday, June 21st, 2008

This is the second part in my series of posts about simple things that can be done to make this website both more accessible while still remaining search engine friendly.

My contact information was poorly done from an accessibility point of view; the most relevant information was depicted only by graphics; without alt tags; inside a list and as css background images.

We this is mostly going to be kept the same; it works; it looks exactly how i want it on a graphical display. I could keep this the same and just add hidden span tags before the content stating the type of contact information (MSN, Yahoo, Email etc) but this would only be half doing it properly.


<div id="contactme">
<ul>
<li class="email"><a href="mailto:jared@jaredquinn.info">jared@jaredquinn.info>/a></li>
<li class="msn">jared@jaredquinn.info</li>
<li class="gt">jaredquinn@gmail.com&lt/li>
<li class="icq">2152783</li>
<li class="yahoo">jared.quinn</li>
<li class="tux">Reg Linux User <a href="http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=424527">#424527</a></li>
</ul>
</div>

With the following CSS:

#contactme { margin-left: -10px; }
#contactme ul { padding: 0; list-style: none; color: black; }
li.rss,
#contactme li { text-indent: 25px; height: 20px; list-style: none; background-repeat: no-repeat; padding-bottom: 5px; }
#contactme li.email { background-image: url(images/email.gif); }
#contactme li.msn { background-image: url(images/im_msn.gif); }
#contactme li.gt { background-image: url(images/im_gtalk.gif); }
#contactme li.icq { background-image: url(images/im_icq.gif); }
#contactme li.yahoo { background-image: url(images/im_yahoo.gif); }
#contactme li.tux { background-image: url(images/tux_icon.png); }

Updated sidebar.php portion:

<div id="contactme">
<ul>
<li class="email">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/email.gif" alt="Email:"/>
<a href="mailto:jared@jaredquinn.info">jared@jaredquinn.info</a></li>
<li class="msn">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/im_msn.gif" alt="MSN:"/>jared@jaredquinn.info</li>
<li class="gt" >
<img src="
<?php bloginfo('stylesheet_directory');
?>/images/im_gtalk.gif" alt="gTalk:"/>jaredquinn@gmail.com</li>
<li class="icq">
<img src="
<?php bloginfo('stylesheet_directory');
?>/images/im_icq.gif" alt="ICQ:"/>2152783</li>
<li class="yahoo"><img src="
<?php bloginfo('stylesheet_directory'); ?>/images/im_yahoo.gif" alt="Yahoo!:"/>jared.quinn</li>
<li class="tux"><img src="
<?php bloginfo('stylesheet_directory'); ?>/images/tux_icon.png" alt="[Tux]“/>
Reg Linux User <a
href=”http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=424527″>#424527</a></li>
</ul>
</div>

And the re-worked CSS code:

#contactme { margin-left: -10px; }
#contactme ul { padding: 0; list-style: none; color: black; }
#contactme li { height: 20px; list-style: none; display: block; padding-left: 50px; }
#contactme li img { float: left; display: block; margin-right: 15px; }
#contactme li.tux img { margin-right: 10px; }

(note that my tux image needed a slightly smaller margin)

Stay tuned for the next change…

The Great Accessibility Challenge… The Start

Friday, June 20th, 2008

The challenge, a functional, pretty design that meets accessibility guidelines. The target is this site, and i plan to detail each change I make as I do.

The first thing I did was to add a link to the top of my body that is hidden using CSS but offers browsers that are text based or screen readers to present a link to jump to the navigation then the search, then the content; where for web crawlers and an SEO perspective, we want to have our content before the navigation. This is a reasonably elegant and obvious solution to that.

Added to the header.php file from your wordpress theme:

<body>
<!-- accessibility links -->
<span class="quicklinks">
<a href="#nav">Site Navigation</a>
</span>

Add the corresponding tag to your sidebar.php file from your wordpress theme:

<a name="#nav"/>

Added to the style.css file from your wordpress theme:

span.quicklinks, span.quicklinks a { display: none; }

libnotify over ssh enhanced

Monday, June 16th, 2008

Bene shares some modifications he made to my libnotify over ssh post.

The Entertainment System…

Tuesday, April 29th, 2008

I collect things, videos, audio files, documents, images. Managing my collections is always something that is time consuming and tedious.

About two years ago I first started playing with Freevo. I was impressed, and started building up fxd files with loads of info about all my media. I figured i’d keep the work from then and build upon it, building a full blown media PC running Freevo.

The hardware:
Dual Core AMD 64bit
1 gig RAM
80 gig SATA Seagate Disk
CD/DVD-R
cx88 based TV Tuner

First attempt at getting this off the ground was with the 64 bit version of Ubuntu.. Which as ubuntu often does, frustrated me to no end.

Moving past this I stuck in FreevoLive, based on Mandriva. I gave up on Mandrake at version 10, before the Mandriva thing happened… the Live based distro based on Mandriva’s live thingie reminded me why I don’t like it. Package management is horrible (i’m a Gentoo user, and Debian on my production servers, so most package management annoys me. Hail mighty apt, praise thee, emerge.)

enter OpenSUSE, stage left

The install is neat, flexible, but unobtrusive. It has been one of the most enjoyable new distro installs i’ve used in along time. I’m installing 10.3 - I had the media handy.

The install timed out a fair bit on package and repository info; but my internet connection has been a little flakey the last few days. Manually having to retry when it did meant the install wasn’t entirely unattended for the most part.

No Gnome.

People who know me know that I like feet. Thats all feet except for the Gnome-foot, and the rest of Gnome in general. The ones made of clay with red hats are however quite nice to have around. So I selected xfce in the install. xfce is a good compromise - i’ve just gone back to IceWM on my primary desktop.

The default login picked fvwm for me… ehh. shrugs.

Thats where I am now… I’ve added the 3rd-party Packman repository, the package management system has let me pick freevo and the bits I want… I’m about to configure the TV Tuner… wish me luck…

libnotify with irssi over ssh

Tuesday, September 25th, 2007

I’m an avid IRC user, sitting 24×7 usually connected to 5 server and 12 regular channels, and the only client I’m completely satisfied using is irssi. I run irssi on a remote server so I can easilly connect to it via ssh from wherever I am. I run it under screen so that I can re-attach to the same session from where ever I am and even have the same session shared across all my home PCs so i can look in and see whats happening whenever I want.

Recently I began playing with dbus alot, including libnotify. I found some irssi plugins for people running irssi locally to integrate with libnotify, but all the solutions by people for doing this remotely involved re-establishing ssh connections for each message and various other overheads that I was not comfortable with. The solution was obvious, to me - ssh needed dbus forwarding support. Well I don’t have the time nor experiece with the ssh code base to do it, a workaround was needed.

It didn’t take long for one to become apparent.

Nobody I know uses a relatively unheard of terminal capability known as terminal printing. This allows control characters sent to your terminal to turn on/off a locally connected printer. The content isn’t displayed by your terminal, but captured. Excellent, we could utilise this functionality for carrying a payload to the local machine, the connection is already there and the facility should be available in most terminal emulators (I’m a purist and use basic xterm which supports it).

What do I need?

  • You need a terminal emulator that supports local printing. I’m using xterm 229
  • libnotify and libnotify-bin, this includes the notify-send package
  • a libnotify daemon (I’m using notification-daemon-xfce)

Obviously you’re already using irssi as an IRC/IM client, and you’re probably running it over ssh (and hopefully screen too if you are). But that is outside the scope of this article.

How is it done?

First thing we do is install the local handler script. This is the script that we configure xterm to pipe the content to be “printed” to.

Here is the script:


#!/bin/bash
cat - | {
nt_icon="gtk-dialog-info"
nt_time=5000
nt_head="Notify"
nt_text="Error Occured"
nt_type="Message"
while read k v
do
case $k in
TYPE) nt_type=$v;;
ICON) nt_icon=$v;;
CONTENT) nt_text=$v;;
TIMEOUT) nt_time=$v;;
SUBJECT) nt_head=$v;;
esac
done
notify-send -i "$nt_icon" -c "$nt_type" -t $nt_time -- "$nt_head" "$nt_text"
}

Grab it from here and put it somewhere sensible and make it executable.

The next thing that is needed is to configure XTerm to locally print using the script above. I use X resources for this. Infact I define a class in my Xresources called irssi and start xterm with a ‘-class irssi’ option for my IRCing.

If you don’t want a seperate class for irc, you can use the following lines. If you do want a class specific for your IRCing replace XTerm with the class name you like. The printer command should also point to wherever you put the script above.


*XTerm*printerAutoClose: true
*XTerm*printerCommand: /home/jared/bin/notifier

The last thing you need is the irssi plugin. I’ve uploaded it and attached it to this document, you need to download it and run it with /script load notify.pl inside irssi.

It is written by Luke Macken and Paul W Frields, i’ve adapted it deliver it’s payload to STDERR wrapped with ESC[5i (turn printer on) and ESC[4i (turn printer off)

notify.pl.gz

Happy IRCing!

IPW2200 WPA Supplicant HOWTO Mirror

Monday, December 18th, 2006

We’ve been looking at buying a new MiniPCI Wifi card for binky (Kate’s Laptop), and we’ve decided on the Intel Pro/Wireless 2200BG (or similiar, maybe a 2915ABG, anything supported by the ipw2200) card, which seems to have really good Linux support.

One of our requirements is WPA-PSK, for use on the network where we are both working at the moment. There are a couple of references to a HOWTO for using wpa_supplicant with the ipw drivers (it has been at http://www.bughost.org/ipw/wpa_howto.txt) but the server appears to be down.

Google cache found a copy for me; which I will put up online as it would be very sad for a resource like this to be lost. You can find my mirror here.

New WordPress Theme: Muggles

Wednesday, August 9th, 2006

Here is the first release of my first freely available WordPress theme, Muggles.

This theme was originally designed for a client, who decided it wasn’t what they wanted. I spent a bit of time working on this particular theme and wasn’t about to let that be wasted, so I hope you find a use for it.

Muggles - Screenshot

It features bright yellow, pink and blue and nice curves.

Stay tuned, as I have already started working on some new WP Themes that are destined straight for the website (not through potential client filters), which will be available free too.

This theme (as with most of this website) is released under a Creative Commons, Share and Share A Like license. See my Legal Information for full license details.

Download Muggles v.1.0

Great Read: Eastern Standard Tribe

Wednesday, August 9th, 2006

This book is guarenteed to keep your inner-geek happy.

I have just finished reading Corey Doctorow’s “Eastern Standard Tribe”, and found it to be hilariously funny (in the LOL1 kind of way). Corey is an excellent writer, and this particular book develops into an interesting tail of comedic techno-drama.

It’s light and fluffy, and I personally knocked it over in two sittings, I could have easilly done it in one, at no point in the story was I lost, or even contemplated putting it down. It takes a fair lot to pull me away from a computer screen for long enough to read a novel, and even more to then go and blog about it, but Corey’s futuristic in a current-day kind of way world with twists of hillarity from occasional “fartmobiles” and a mention of a “metric shitload of porn” had me totally absorbed.

What is even better is that Corey is a fellow WordPress user, whose personal blog can be found at http://www.craphound.com. He also blogs at Boing Boing.

Footnotes

  1. laughing out loud []

xorg.conf for Dell Latitude C610

Monday, July 10th, 2006

I’ve spent some time recently tweaking kate’s laptop’s X configuration.

The display is an ATI Radeon Mobility M6 LY, using a Synaptics TouchPad.

The system is currently running Gentoo, Kernel 2.6.16 (r12) and X.org 7.0.

The major changes to the configuration have been due to an upgrade to Xorg 7.0, the fact that the nipple (Trackpoint) was not working under the previous configuration, and a general clean up.

Xorg.conf

New WordPress Plugin - ATEM (Reverse Recurse Meta)

Thursday, July 6th, 2006

It’s crazy when the same thing pops up from two different sources within a day of each other, and in this case it was the need to be able to “inherit” Meta data from parent (and further ancestor) pages in WordPress.

I had already developed most of this plugin as part of another plugin specifically designed for a specific purpose, but this portion has been removed and genericised to form “ATEM” (pronounced ate-’em).

You can find download ATEM 0.1 here.