This blog is now live at simonsmess.com

Wednesday, November 14, 2007

Watching Sopcast & TvAnts on Ubuntu !!!

It's Shangaï Master's time ( Gooooo Gasquet ;-) ), and while blogging, surfing, and whatelse, I wanted to watch the tennis game on my newly configured Ubuntu Gutsy box !
Of course Sopcast and TVAnts are THE P2P programs to watch television right now, so this is the way I went !

First thing firt, you need to install the standard Windows codec, because they don't come defacto with the Gutsy installation. A really good tutorial on the official site here, and look for "Playing Restricted Formats".

For TVAnts the installation is straight forward. You need to install Wine, the windows emulator. Then you download the regular Windows setup file and run it with the previously installed Wine. Apparently it needs a rebbot for Wine to add the shortcut to the faked "Windows Programs". After that you just need to add a channel or select one from the list, and open MPlayer or VLC on the url given by the program, which is usually something like http://localhost:8900/1.asf.


For SopCast, it's not as simple
. Unfortunately the gui does not really seem to work at the moment. So you need to install the command line util. You can download it from their website, and unzip it on your machine. It has a dependency over libstdc++5 which you can install from the package manager. Once this is done, you need to issue a command line of the like :
./sp-sc-auth sop://myserver/mychannel 3908 6908 >/dev/null &
3908 is the port that will connect to the server, 6908 is the port that will have the video, >/dev/null is to prevent the verbose output, and & to make the process run standalone which is obviously optional. Once this is done, you need to wait a little bit for the data to buffer (look at you systray and the network monitor), and then start your preferred player on the http://localhost:6908/tv.asf URL.

And there you go ! P2P Television enabled on your delighted Gutsy Ubuntu box !

If you have any problems, or need more information, don't hesitate to ask !

Tuesday, November 13, 2007

Mounting Windows shares in Ubuntu

Obviously this problem had to show up at some point.

Here is a really good link that says how to do that !

And now just need to solve the last problem : Video suttering when playing files over the network .. But this one seems a tricky one :-(

How I got to watch Heros on Ubuntu !

Since I now have a new working Ubuntu install, I decided I'll watch Heroes on it while "working" on my other machine... Or so I thought.
The graphic card I now have is a S3Trio 3D/2X 8Mo, and I thought I would be on a good run with that one ! Unfortunately any attempt to run a Heroes episode ended up on a window getting killed :-(

Of course I first thought I was not using the right player, or not having the right codec. So I tried Totem, VLC, MPlayer ... No result. So I installed all the codecs I could find ... No result. So I decided to run from the command line, and got the fllowing message :
The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 86 error_code 11 request_code 140 minor_code 19)
(Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)

Simply GREAT !

Some more googling took me to this page, where they tell you to add two more lines to your Xorg.conf file ... But I was still in no luck, with the same problem.

At last, I found the following page in the netherlands, where they suggested to use the 16 bits default depth instead of 24 in the Xorg.conf file. So I did, and after a restart of the X server ... YATTAAAAAAAAAAAAAAA ! There was
Hiro Nakamura !

Now I just need to catch up on 6 episodes ;-)

Old graphic card on Ubuntu/Xorg

As you may recall I was kind of having a bad time with Xorg X server configuration for my really old SIS6215 graphic card.

After digging a lot of google, I was not able to get it to work correctly, and found out that it was not supported by Xorg anymore here.
I went to use another crap old graphic card, a Cirrus, this one. I got this one to almost work, but only for a resolution of 800x600. It took me some time, and if you need I can give you the adequate Xorg.conf file. But this resolution was too small for any relevant usage.
I then got to wonder whether Xorg was really supporting old PCI graphic cards ? It turned out with more google searches that the legitimate answer to the question is NO.
So I decided to order some old AGP cards on PriceMinister (Ebay did not get me what I needed ;-)), and got them two days later.
After that, a clean install of Gutsy, aka Ubuntu 7.10, gave me a working machine, with a decent resolution (1280 wide).

The conclusion of all that ? As Clowny said "With X, if it works, it works ... If not, then there is no magic !". And I would add, that if you want to use an old PCI card... Don't expect it to be a smooth road !!!

How I moved a blog from Serendipity to Wordpress

I had a blog using the S9Y framework aka Serendipity but obviously since Wordpress is THE blogging framework around I had to move to it.

Unfortunately S9Y is not one of the supported import modes of Wordpress. Fortunately, a quick Google search pointed me to the following page, which gives one ! You just need to drop the file in the wp-admin/import directory of your wordpress installation, and use the standard import mechanism.

After that, I ran into the following error beause of my hosting provider (free.fr) : "failed to delete and flush buffer. No buffer to delete or flush". After lots of goggle search which led nowhere since this is a classic PHP error happening on lots of blogs, I decided to tackle the problem myself. After some good old "echo debugging", I found out, that the problem was the following line of the serendipity.php file :
$cats = $this->get_s9y_cat_assoc($ret_id);

I commented it out and replaced it by :
$cats = array();
Now, you might say "cool, but this has to have some side effects!". And you're right. Apparently with the posts category, but since there was none on the imported blogs... Who cares ;-)

Don't hesitate to post, if you know a better solution !

Tuesday, October 30, 2007

Save the Cheerleader ?

So Claire needs some superpower to do a backflip from the tower ?

I know some people who don't need that to do so !

Tuesday, October 16, 2007

My Two first GreaseMonkey scripts

I just created my two first scripts for the geniusly useful greasemonkey engine, so I thought I'd share this with you !
For those of you not familiar with GreaseMonkey, this is a Firefox addon that basically executes some Javascrit code inside your browser once the page has been loaded. This allows to modify the UI, add some functionalities, etc to some website, without having to actually modify the website itself since everything is done on the client side. I'll try to write another post to share with you some of the script I use on daily basis !
Anyhow, I also have several computers at home, and one of them is a blackbox running the Azureus bittorrent client, with the HTMLWebUI interface enabled. This allows me to remotely control the engine, and upload, stop, monitor the various torrents I'm downloading. At some point, I was fed up with having to search for the torrent on some torrent search site, then right click to copy the link location of the torrent, and paste that in the WebUI interface. So I created two scripts to facilitate that process.
The first scripts adds a link in the mininova search page to directly send the torrent file to the remote azureus. So I don't need to right click, paste, change tab and all ... Torrent download is only one click away !
The second script goes the opposite way. I sometimes have torrents that don't start for some reasons. So usually I would go back to mininova, search for the thing I was downloading and re-upload it to Azureus. I accelerated this process by adding a link that directly gets you to the mininova search page with the correct search terms. Again, one click away from finding the perfect torrent !
You can get those scripts on my UserScripts page... Enjoy ! And if you have any question, don't hesitate to ask !

Sunday, October 7, 2007

Another great race ... Can't wait for Brasil !

Another week-end, and another post on Formula One. By now you know the deal : early wakeup equals Formula One while waking up ! And this race again was really interesting for its first 75% !
It was held in China, where again the weather played some nice little games with the drivers minds. Started under light rain, the track started to dry out. This caused good drivers to overpass others quite often during the first quarter of the course, and since the track offers some nice settings for that, it was real nice to watch. When the track dried out, drivers started using the slick tires (the one that can only work on dry tracks), just to realize that after 10 laps the rain came again, sending a few drivers in the grass. The great thing was that conditions where changing from laps to laps, and the drivers with wet/dry tires where having different difficulties on every lap. So the time between each driver where highly flexible, thus letting you hope for a great finish.
With all that, Hamilton was in first, with Raikonnen chasing him. Going out to change tires, Hamilton went off track and stopped, leaving the track all open for the former to win the course, in front of Alonso and Massa. Too bad for Kubica who was actually going to win it if he did not have a problem with his transmission. The last 15 laps where ran in this order, with no major changes and actions, which reminded us all how boring can Formula One be when there is no action !
The great thing is that the winner of this season championship won't be known until the next and last course in Brasil. Basically Alonso could win it if he wins it, Raikonnen could triumph if the two McLaren were to fail, but for sure the one with the most chances is Hamilton, who for his first season as a driver could win the championship ... Can't wait for the 21st of October to see that !

A new lipdub by Rumeur Publique

A French company, specializing in PR, has just released a new Lip Dub. The song is called Louxor, and is from French artist Philippe Katerine.
21 people, really good lip syncing, great office space, and an ending where everyone falls down on each others .... A real success and big round of applause for you guys girls (mostly ;-))

Monday, October 1, 2007

Formula One or Stock Car Racing ?

--
Update : YouTube had to remove the videos due to copyright infrigments ... I'm trying to find the video some place else ...
--
It was a long time since my last live F1 Grand Prix, but this Sunday I managed to catch the last 20 minutes of the 2007 Japan one.
For the past few years, I found out that the show was not as interesting as it used to be (more strategy, less action), and the retirement of Sir Schumacher did not really help me in waking up early to catch the live action !
Anyhow, on Sunday, after an hectic night, and an early wakeup thanks to my son, I watch that one ! Really hard conditions, with lots of rain. On board cameras where showing the difficulty for the drivers to drive and find the best curves on this slippery racetrack !
And then came the last lap ... First the 2nd and 3rd driver, aka Kovalainen and Raikkonen, switch places two times to remain in the same order in a battle than reminded us all of good all times when overlapping was not an exception ! What a lap for the first one who is really in his first years of driving, on a car that has not proven much this year (Renault).
But the most amazing was the battle between Massa and Kubica !
Here is the video from outside view (Loooove the Japanese guys ;-))

You see there that the racetrack was not really wide enough for those two guys, and that the lap was really closer to Stock Car than Formula One ! I still cannot believe that they did both finish the race on the finish line, and not in the gravels !
But even more impressing, is the onboard view of Massa's car ... Just old your breath people, because you are going to see why these people are considered the best drivers around :

Here are the two videos next to one another :

And what seems like a slightly longer version of the first one :