Showing post in category: Uncategorized

09 Mar 2010

php: Could not startup.

Posted by Jacob Emcken Comments (0)

Informative error message… NOT.

I’ve installed php-gtk on a machine and got the above error when trying to start php from cli via ssh.

After a while it suddenly hit me that I hadn’t forwarded X when I logged in via ssh. After that I was able to use php again. php with php-gtk is unable to start without a X server.

22 Dec 2009

Running Tales of Monkey Island with Wine

Posted by Jacob Emcken Comments (0)

I’m a proud adventure game fan boy and have enjoyed countless hours in the company of Monkey Island, Day of the Tentacle, Legend of Kyrandia among others. ScummVm have helped to re enjoy many of these titles after replacing my preferred desktop system with Linux.

When the news reached my ears about “Tales of Monkey Island” I was very exited. But also nervous if would be able to play these episodes without Windows… but fear no more.

It is possible!

My system:

  • Nvidia graphic card
  • Ubuntu Karmic 64bit
  • Wine from special package archive (to get native pulse audio support)

The episodes install on all Wine versions I’ve tried on so far (several guides on the internet suggests not to check for DirectX, though I haven’t personally experienced any difference). When the game starts you are asked to provide the serial number. In this phase I’ve encountered trouble several times. Earlier providing the serial number only worked in old versions of Wine (like version 1.0) but this time I got it working with the newest version of Wine (which at the time was 1.1.32). Also I had to delete my .wine folder in order to reset wine because I apparently had some IE6 leftovers in there which otherwise would mess up the registration.

After activating the episodes you need to install D3DX9_41.dll into .wine/drive_c/windows/system32. Remember Linux is case sensitive so it is possible to have several different files with the same name except for the case. If it still doesn’t work make sure you only have one d3dx9_41.dll and that it’s not the one provided by wine (which won’t work).

Now the game starts… but for me the sound jittered. After looking around I found that it was ALSA interface in Pulseaudio which kept loosing the “connection” re initiating it. My saviour was Neil Wilson who have packaged Wine with a native pulseaudio audio plugin. This did the trick for me and Tales of Monkey Island is now very much playable at least for me :D

29 May 2009

Wordpress with Markdown

Posted by Jacob Emcken Comments (1)

Today I updated Wordpress which went smooth so I decided to fix a problem on my blog which appeared when I first migrated to Wordpress. I’m using the plugin Markdown for WordPress and bbPress so I can write posts with Markdown syntax and I use code sections heavily. The problem was that using special characters like: & ” ‘ within code paragraph would look like this:

& " '  < >

For now I just reverts posts upon displaying so the html entities are replaced by special characters. I know this is not the right way but its temporary :)

I asked on the Wordpress IRC and a nice guy called ‘ansimation’ gave me this to work with:

function reconvert_pre_entities( $d ) {
    return preg_replace_callback('/<pre>(.*?)/sim', create_function('$matches', 'return( html_entity_decode($matches[0]) );'), $d );
}
add_action('the_content', 'reconvert_pre_entities' );

When I get a little time I’m going to incorporate this into the Markdown plugin so it wont affect any of the other blogs not using Markdown.

Tags: , ,

03 Apr 2009

Gnome 3.0 – please integrate Gnome-Do

Posted by Jacob Emcken Comments (0)

After reading the the Gnome 3.0 announcements (Vincent Untz, Andre Klapper) yesterday and reading The Plan, I don’t really know if I got exited or dissapointed :)

Anyway Gnome works very well for me already (version 2.26) so I guess the limited amount of visible changes is a plus for me after all. But one thing I would like to see integrate and officially backed by the Gnome Team is Gnome-Do. My desktop experience took a great leap forward after getting used to this way of interacting with my computer. I while back I read a very exiting blog post about incorporating Gnome-Do to the very core of Gnome.

Now THAT would ROCK HARD for something to include in Gnome 3.0 :D

27 Feb 2009

converting video to flv with gst-launch

Posted by Jacob Emcken Comments (0)

I had quite some trouble finding a way to convert an avi video file to flv. I really wanted to use gstreamer since it had worked very well for me for other conversions in the past. The reason for this conversion was that I had a video on my digital Canon camera (in avi format) and I wanted to publish it on the web using the defacto standard… flash video (flv).

After lots of googling I found FLV Conversion Tips by Brendan Howell so I’m not to take credit for this.

I didn’t want the sound so I removed it from Brendans original example:

gst-launch -v filesrc location=canon.avi ! decodebin name=d  ffmux_flv name=mux ! filesink location=output.flv d. ! queue ! videoscale !  video/x-raw-yuv,width=320,height=256 ! ffenc_flv ! mux.

I my search for a solution I found another link with some gst-launch examples you might find interesting.

Tags:

18 Oct 2007

Microsoft will use equipment located in California and other states

Posted by Jacob Emcken Comments (2)

I have been meaning to blog about this for a while now. When contacting the Hotmail mail servers to send email your mail server will be presented with strange message in my opinion.

First find the servers which receives email for the hotmail.com domain:

dig mx hotmail.com

which will return something like the following:

hotmail.com.            3600    IN      MX      5 mx1.hotmail.com.
hotmail.com.            3600    IN      MX      5 mx2.hotmail.com.
hotmail.com.            3600    IN      MX      5 mx3.hotmail.com.
hotmail.com.            3600    IN      MX      5 mx4.hotmail.com.

Now try contact one of these on port 25 (just like mail servers does):

telnet mx1.hotmail.com 25

Notice the greetings message from the server:

Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited.
Other restrictions are found at http://privacy.msn.com/Anti-spam/.
Violations will result in use of equipment located in California and other states. 

Bringing it to peoples attention that sending unsolicited commercial or bulk e-mails is prohibited is fair enought even though I doubt many will read it :) But is it really nessesary to threat to use equipment, and why is California emphasised?

07 Sep 2007

Lenovo laptops with preinstalled Ubuntu?

Posted by Jacob Emcken Comments (0)

Just found this on the Ubuntu forums:

Lenovo Blogs – Linux Follow Up

I would be very interesting indeed :)

17 Jan 2006

Sitting on a train

Posted by Jacob Emcken Comments (0)

Last friday I got a new computer. After gotten my girlfriend to play World of Warcraft we suddenly found ourselves in the dilemma: 2 people wanting to play but only one computer… mine. I took the consequence and bought a new one – a Shuttle. A really cool little fukka for me – and the old one for her :-)

A first I thought that it would take her a long time to figure it all out but she seems to has gotten a hold of all the keys and stuff really fast. She always says that she is to stupid to play games and for while she had me convinced. I usually thinks that one can learn anything, if you set your mind to it… and now she proven me right.

Right now I’m sitting in a train on my way to Randers, 4 hours from where I live with train. I have some work there tomorrow and have left my girlfriend at home (propably playing World of Wracraft). No worries, she told me that she had made her homework before I went out the door ;-)

I have just finished the movie “Sound of Thunder” – like Triumph would have put it: CRAP! Seriously, I mean it. The story wasn’t convincing, the acting was bad and the effects was really bad. Well I killed some time in the train. I saw a WoW movie about taking down Razor from BWL… Gloin now I’m prepared ;-)

21 Sep 2005

Recieved my Ubuntu Hoary CD’s

Posted by Jacob Emcken Comments (0)

Today I recieved my Ubuntu Hoary CD’s YAY… To bad I have been running Breezy for almost a month now :-D

Anyways – I got a version for Power PC and for AMD 64… I know just for whom ;)

06 Jul 2005

Migration from old 8-bit locales to UTF-8 locales

Posted by Jacob Emcken Comments (0)

Several times I have had “great fun” converting filenames from the old 8-bit locales to use the new UTF-8 locales. Everytime, I used some time to find find a tool for it because everytime I forget the name of the tool convmv. The fuckup usually shows itself on the file server (Samba) where the users happily uses æøå for filenames.

Now I’ll blog about so hopefully next time I can remember the name of the tool or atleast just make a search on my blog.

Debian has packages in their repository bu for SLES you need to download the tool manually. I found the tool on download.com