My posts. Recent Posts.

Internet Explorer limits stylesheets links to 30 could be the reason your styles are not applied

// July 3rd, 2010 // Code

After spending several hours the other day working on the endless adaption of Internet Explorer 6 for a Drupal project, and wondering why the styles in the conditional stylesheet I had added weren’t being applied, I stumbled on a small note that IE for some reason limits the number of linked stylesheets to 30 before it stops rendering. This causes the styles in any additional stylesheets to not be applied although the stylesheet is in the code. This seems like another stupid limitation in the painfully crappy (yes, it’s a pro term) IE series of browsers.

Continue Reading

Greasemonkey script for quotations and line-height

// May 28th, 2010 // Code

It’s been bothering me for such a long time that so many sites have forgotten/ignored to set their line-height which makes their sites unreadable. After some googling I found an excellent typography script by Josefec.

Continue Reading

Fair tourism at fairtourism.org online

// May 4th, 2010 // Portfolio

I have together with my fiancee created a site which discusses tourism in a human rights perspective and how make tourism fair for all the stakeholders.

The site today features a fairtourism blog and a resource library where you can find links and articles (academic and news). New content is added weekly if not daily so be sure to check back and take part in the future of tourism and how to make it just and fair for everyone involved.

Check out fair tourism or if you are swedish you can check out rättvis turism.

Screenshots coming soon.

First Drupal modules online

// March 8th, 2010 // Code

So, the day has finally come. My first two Drupal modules are now online at Drupal.org. Both of them are add-ons to the Support module and provide some extra functionality.

Support fields: http://drupal.org/project/support_fields
Support custom e-mail: http://drupal.org/project/support_custom_email

Big thank you to Kodamera who employed me so I could finally learn programming for real :]

Nice!

Never forget the Drupal cache

// December 13th, 2009 // Code

Had my first experience with Drupal 5 today when I was trying to install a multisite that i checked out from work the other day on my mamp localhost. Continue Reading

Extend Windows 7 logical drive with Gparted

// October 8th, 2009 // Code

I installed Windows 7 on a logical partition without thinking properly before and of course I ended up with too little space. Who could ever believe 25GB is not enough for an OS to run with a few programs installed. Continue Reading

Updating to Eclipse Galileo with Flex Plugin

// June 25th, 2009 // Code

Pfewwww. Installing a new version of eclipse with it’s plugins is something I always dread. The hassles and problems never seem to end.

After updating my Flex Builder today it stopped working giving me weird errors and refusing to start. After having a look at the log files and realizing I don’t understand any of it I decided to do a clean install of the new Eclipse and get the Flex plugin instead. Easier said then done.

Continue Reading

ActionScript string replace ( str_replace() )

// June 11th, 2009 // Code

Another function I constantly find myself missing in ActionScript in the str_replace() which you can find in other languages. My memory is just as bad when it comes to remembering this function as it is when trying to remember the syntax for the FullScreen function so I’ll post it here as well.

function str_replace(haystack:String, needle:String, replacement:String)
{
	var temp:Array = haystack.split(needle);
	return temp.join(replacement);
}

ActionScript Full Screen function

// June 11th, 2009 // Code

Started working on a new Flex project today and found myself searching the docs for the correct syntax in making Full Screen apps so I figured I’d post it here and hopefully I’ll remember this function next time I need it.

private function toggleFullScreen():void
{
    try 
    {
        switch (systemManager.stage.displayState) 
        {
            case StageDisplayState.FULL_SCREEN:
                systemManager.stage.displayState = StageDisplayState.NORMAL;
                break;
            default:
                systemManager.stage.displayState = StageDisplayState.FULL_SCREEN;
                break;
        }
    } 
    catch (err:SecurityError) 
    {
    }
}

Flash 3D photos

// June 7th, 2009 // Portfolio

Playing around with the new Flash Player 10 is good fun. The support for 3d allows for cool new effects to be implemented without the need for external libraries such as PaperVision3d. Here is a small example of what can be done.

This movie requires Flash Player 10