Jump to Navigation

Three mobile broadand and Ubuntu

In the process of moving house and a handy Three movile broadband dongle is a great in-between when waiting for a new internet connection to be installed in the new place.

So of course the first thing I asked at the shop before I brought it was 'does it work with Linux?' and of course the answer was 'No'. Anyway I quickly got on my phone and did a quick search of the Ubuntu forums to find a few threads claiming it can be solved (this one in particular is very comprehensive: http://ubuntuforums.org/showthread.php?t=1466490).

MySql : " Warning: MySQL server has gone away "

When attempting to log-in to a Drupal website I encountered this error, and couldn't log-in. Bit of a headache, in my case I solved the problem by loading up phpmyadmin, going into the variables table and deleting 'cron_last' & 'cron_semaphore'. I then went into the system table and disabled dblog, poormanscron, search and update modules.

This has solved the problem, I'm not exatly sure what the problem is though. This article on d.o indicates it's to do with performance: http://drupal.org/node/259580

IE6: Element with position: absolute after a floated element

An element using position: absolute straight after a floated element can (and quite often does) dissapear in IE6.

A method which sometimes solves this is to give one of the elements a negative margin, another method is to add an empty <div></div> after the floated element:

<!--[if lte IE 6]><div></div><![endif]-->

Elastic / liquid horizontal menu in fixed width space with fixed width items

So, you have a site which is 980px wide and you want a horizontal menu width 4 items which span the 980px. Pretty simple, you just make them 245px wide each.

But then you add another menu item...  or even worse one of your clients adds a menu item, and eveything hits the fan.

So you want each item to automatically 'stretch' and here's how:

The HTML:

<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>

The CSS:

Inline images using WYSIWYG editors

Using CKEditor with WYSIWYG currently doesn't support CKFinder (native file management). Although the CKEditor module does actually support CKfinder.

Computer network issues

So I've installed Ubuntu, had a small issue with the LAN driver not working, restarted and this was fixed.

Been re-starting and logging into windows and all has been well. Then suddenly I couldn't connect to the internet.

The network connection seemed to be clicking between 'A network cable is unplugged' and 'Enabled' every few seconds... very strange.

I'll try and write up the process I went through to fix it, but the fix was simply to power down the PC, unplug from the mains for a minute and plug back in and power up. All works fine now.

CSS layout methods, Drupal Zen theme and grid systems

Why this crazy negative margin stuff in Zen?

Why not just grid style floats and an absolute position nav?

Zen Cheat Sheet - http://www.palantir.net/blog/free-scratch-n-sniff-stickers-zen-plus-prin...

Interesting discussion explaining the advantages of negative margins in Zen: http://drupal.org/node/273383

Marine - My Drupal theme

In the quest to find the ultimate theme for Drupal I found there was no ultimate theme, different themes are good for different tasks.

One of the main ways I use Drupal is too build relatively straightforward websites and building them and being able to re-jig the website at any point is key.

Upcoming projects

Some of my upcoming projects include:

Metro Taxis - new logo & website for an Oxford based Taxi company. Fairly striaght forward site is being built using Drupal.

Oxford Sound Systems - Full website for sound hire company based in Oxford, lots of SEO prioroty, nice looking website.

New PC

Just upgraded my PC, finally. The old one was using a 2.8ghz P4. Now using:

Intel Core i5 750
Asus P7P55D-E
G Skill 4GB DDR3 1600Mhz Ram
Asus Radeon 4350 1GB GFX

ASilverstons Precision PS02b case

Follow