All posts by admin

Fluid horizontal list based highlighting menu with icons

No doubt it’s been done elsewhere, but I spent quite a while trying to get this one working. Basically I wanted a horizontal css menu with decent markup and no hacks. I also wanted to have nice icons for each item correctly vertically aligned. On top of that I wanted the whole thing to be fluid so it would look right at any text size. Unfortunately because of IE6’s lack of support for :hover on anything but links I needed to use containing spans for the text on each list item (doh!) I guess you could use javascript or something instead, but that’d be really horrid!

After a lot of hair pulling, I finally got it to work:
Menu

#navigation ul {
  margin:               0;
  padding:              0;
  background-color:     #eee;
  height:               2em;
  border-bottom:        1px solid #888;
}

#navigation li {
  float:                left;
  list-style-type:      none;
  border-right:         1px solid #888;
}

#navigation a {
  float:                left;
  margin:               0;
  background-repeat:    no-repeat;
  background-position:  5px 50%;
  text-decoration:      none;
  color:                #333;
}

#navigation .inner {
  padding:              0 .4em 0 26px;  /* Adjust based on the width of icon + 10px */
  display:              inline;
  line-height:          2em;
  vertical-align:       middle;
}

#navigation .contacts {
  background-image: url(/crm/resources/icons/contacts.png)
}

#navigation .activities {
  background-image: url(/crm/resources/icons/activities.png)
}

#navigation .reports {
  background-image: url(/crm/resources/icons/reports.png)
}

#navigation .utilities {
  background-image: url(/crm/resources/icons/utilities.png)
}

#navigation a:hover {
  background-color:         #fff;
}

And here’s the HTML:

<div id="navigation">
<ul>
  <li><a href="" class="contacts"><span class="inner">Contacts</span></a></li>
<li><a href="" class="activities"><span class="inner">Activities</span></a></li>
<li><a href="" class="reports"><span class="inner">Reports</span></a></li>
<li><a href="" class="utilities"><span class="inner">Utilities</span></a></li></ul>
</div>

*I got my icons from the fantastic FamFamFam web site. This guy gives away loads of great icons for free. You might want to convert them to transparent gifs though as obviously IE6- won’t handle the transparency in the PNGs.

I’m no css expert, so if you can see anything silly in the css/markup or know of some way of improving this, please drop me a comment!

VirtualBox 1.5x

Looks like the guys over at Innotek have been busy, probably old news to most but I just realised they’ve released version 1.5 of Virtualbox last year.

Among a whole bunch of bug fixes and other improvements it seems they’ve added one cool feature that will make working with those windows only programs much easier – seamless window integration with your host OS (I think that’s linux only, but I might be wrong). I’ve not tried it out yet, but as far as I can tell you can have windows application windows displayed properly and running at full steam with all the rest of your windows – very much like running some kind of cool (sort of) hybrid OS!!! I thought it was exciting anyway.

To explain what I mean further, I found this rather strange video on youtube:

Once I get that new pc, I’ll give it a go!


Update:
It works, but it goes very strange if you have ‘desktop effects’/compiz turned on. Which is annoying! Nevermind!!! I’m sure it’ll be sorted out fairly soon.

ClearSilver PHP module on Ubuntu

I recently got the ClearSilver PHP module working on my Ubuntu laptop as we use it on a number of our web sites and I needed to develop a site with it locally. Then this morning I stupidly upgraded PHP and of course the module had un-resolved symbols. Dohh!

So I decided this time I’d write a better document on how to get it working, one which might actually help me and could perhaps help others. Check it out on my wiki:

ClearSilver PHP module on Debian based systems

It seems to work well, but please, please be careful following my instructions.


Skype – Why it's the thing to use.

Recently I’ve been using Skype a lot to speak to friends and family in the UK and Australia. It’s pretty good for the following reasons:

  • There’s no need to configure your firewall
  • Everyone else seems to have Skype already
  • It’s pretty good quality wise.
  • The webcam function is really good, especially in full screen

Yes, it’s not ideal – it’s a proprietary network and the software is closed source, but on the other hand it just works. And now that the linux beta version supports video calling, I think it’s the best there is.

However, Skype (the company) shouldn’t be praised too much for their new linux beta – why didn’t we get it when the Windows version was released? Why should open source community suffer? Did Skype not realise it’s another potential market for SkypeIn/Out? So frustrating, but that’s how it is in the world of linux I guess!

This morning we called my sister in the UK. The call quality was great as was the full screen video quality. You always know something is good when it’s shocking! My only little gripe was that we couldn’t view my sisters webcam when ours was on. I guess that’s just a bug in the beta (2.0.17 I think) and could well have been something to do with my webcam itself.

Get the latest release of the Beta here.

Google Android

The Android emulator viewing John-hunt.comGoogle recently announced it’s new open source Android platform for mobile devices. As a programmer and designer, it sounds fairly cool, and as an end user it sounds fairly cool too!! I think I’ll be getting one of these Android devices as soon as they’re released as it seems like mobile computing has finally landed!

There’s a few interesting videos on the aforementioned site too.

Ubuntu 7.04 released

The latest and greatest version of the free, open source GNU/Linux operating system Ubuntu has been released just minutes ago. If you’re tiring of Windows, or simply want to have a look at what all the fuss is about, give it a whirl.

Find out more at www.ubuntu.com. You can even run it from the CD, so there’s no need to erase your Windows XP install.

iPod nano 2nd generation on Ubuntu 6.10 (Edgy)

My girlfriend and I both have iPods. I have a 2nd gen shuffle, she has a 2nd gen nano. Both were working fine on my Edgy install, however, the 2nd gen nano wasn’t being ‘found’ by Gnome, and therefore not appearing in Banshee (which is what I really wanted).

There is a workaround, it’s a replacement for Gnome’s HAL. Simply follow the instructions here for results:
http://www.tigert.com/archives/2007/01/09/ipod-and-ubuntu-edgy/