Rendering pages for the mobile

Jun 16, 2009 in CSS, Styles, Themes, Smartphones, WordPress

Mobile devices do it differently.

Just like different browsers do - and more. And there are more of them, every day.

So I'm trying to take this better into account here from now on. Actually this is my second attempt, I tried it already back in 2006, but I dropped it then due to my laziness and lack of skills.

This time I found a promising aid for a non-skilled person like myself, a plugin called WordPress Mobile Edition.

If you browse this site with a mobile device, it looks different. I don't have different devices myself and I've seen these pages on devices that run browsers that are not recognized as mobile ones, but still, at least some mobile devices see this site in a different way from now on.

Quote from the plugin download page:

"WordPress Mobile Edition is a plugin that shows an interface designed for a mobile device when visitors come to your site on a mobile device.

Mobile browsers are automatically detected, the list of mobile browsers can be customized on the settings page."

This plugin is being used here. If you came here with a mobile phone, you should already see these pages in a more convenient way than before.

I also came by an online emulator page that shows the pages like they show on a mobile phone:

dot.mobi

Hoping to be able to render better for the mobiles...


Spotify Eee PC Linux

Jun 13, 2009 in Eee PC

For quite some time I've been thinking of a way to carry music on the road. The Eee PC does not have too much disk space available, USB sticks aren't too big either. And external disk for this purpose is not too convenient.

A very good solution is Spotify, a streaming service with a rapidly expanding collection of music.
The client software is available for Windows and Mac. In Windows there's nothing special in it, it installs and runs, I guess this goes for the Mac, too.
Fortunately it also runs without problems in Wine. So it immediately became one of my favorite applications in my Eee PC. The stream is 160 kb/sec and runs fine over 3G.

Wine is basic stuff in openSUSE (and in Linux in general) and this piece of software runs just fine. Just install Wine if you haven't already and then install Spotify. (screenshot)

Its use requires an account, though. And that requires either buying a premium account or an invitation, which are hard to get, I've heard.

Fortunately (as I'm writing this at least) a free account can be registered here:

http://spotify.rejected.se/?proxy

Happy listening!


View daylight hours

Apr 26, 2009 in Howto

The hours of daylight change a lot in our country. The northernmost parts are above the Arctic Circle and there it's even quite extreme:
In the summer the sun does not go down at all, and in the darkest winter, during the arctic night, it doesn't rise.

Longest day of the year, June 20, 2009:
"Rise 3:54am (EEST), set 10:52pm (EEST) at Espoo, Finland (18:58 hours daylight)"
Santa's home area in the north, same day:
"No sunrise, no sunset at Korvatunturi, Finland (24:00 hours daylight)"

The times stay the same during a few days around 20 to 22 of June each year.

Here are the sun-times of my location in the south today:

"Sunrise 4:06am (EEST), sunset 10:42pm (EEST) at Espoo, Finland (18:35 hours daylight)"

For comparison, Santa's home area in the north today:

"No sunrise, no sunset at Korvatunturi, Finland (24:00 hours daylight)"

Then why publish this information here? This kind of information is normally published in services like meteorological institutes and such.

I got interested in how to get and display this information.
I learned that Emacs has a feature built in that generates this data. The following step was to get it printed out. And of course The Usenet, once again, was the source of knowledge.
A tiny emacs script is used here and then a php function called file_get_contents. I'll put the details on line as soon as I've straightened it all out, I'm still working on shaping the output a bit.

Vahis


CSS is awesome

Apr 08, 2009 in CSS, Styles, Themes

Having tried to figure out why all strange things happen and how to get them straightened out, all I can really say:

CSS IS AWESOME mug
CSS IS AWESOME by stevenfrank
Design a travel coffee mug At www.Zazzle.com
Browse more Software Mugs

Vahis


Add Javascript in Wordpress pages

Apr 06, 2009 in Howto

Dynamic server uptime is somehow working now (at least in Firefox it does when Javascript is enabled in it)







Server Uptime: 19 days, 14 hours, 51 seconds



I ran into a script by Tony Bhimani.
The script can be found at:
http://www.xenocafe.com/tutorials/php/realtime_server_uptime/index.php
It's a script with both Php and Javascript. To make it work I'm testing different plugins.
None of them has yet worked completely. The script seems to run fine, but I'm still having some layout problems.
There's a lot of empty space there above and beneath the output of the script right now.
At times the whole site's layout was a mess and thanks to backups I'm where I am with it for now...