Welcome to my crib!

Permalink

I'm not sure if they have Cribs on MTV Japan, but this guy would have a spot on the show for sure.

crazy home garage

From left to right: a Maserati Quattroporte, a Lamborghini Gallardo and an unknown Ferrari... More pics here and here.

Written by w00kie in: Random, japan, photos | Tags: , , ,

ctype_digit error in Wordpress 2.5

Permalink

wordpress-image-uploadI've upgraded my blog to Wordpress 2.5 last weekend. The new design of the admin backend is great and seeing things evolve like that really motivates me to pour more time into my blog and add some nice little functionalities that I've been thinking about lately.

But it happens that I came upon an error when trying out the new image uploader and I'm sure many people will get it too:

PHP Fatal error: Call to undefined function ctype_digit() in wp-includes/link-template.php on line 182

What happens is that my flavor of PHP5 is not compiled with the ctype flag. This seems to be the default on Gentoo, so if you run it be sure to add the ctype use flag to your portage config. But if you can't recompile PHP, you can just open up the file wp-includes/link-template.php and replace the line 182 as follows:

Replace ctype_digit with is_numeric

That should do the trick until the version 2.5.1 that should patch things up according to what I see in the bug tracker (pending issue on link-template.php and a similar issue in another file already merged in 2.5).

Written by w00kie in: Random | Tags: ,

Sharing user not for share

Permalink

sharing only user can\'t shareMac OS X 10.5 is driving me crazy! I'm trying to open an FTP access to my machine for sharing some files with a friend. Obviously I turn to the newly renovated file sharing tab, activate it and open FTP sharing. A new feature of Leopard is a new "Sharing Only" user profile that lets you create users for file sharing that will not be able to login to your machine. So I create one of those and give him access to my share folder.

Now that should be the end of it, 15 seconds to share a folder cleanly and securely with someone else. But no...

Thanks to some crazy security freak somewhere in Cupertino, if you try to FTP to my machine with this Sharing Only user, it won't share, just give you a stupid error that "this user may not use FTP". It makes absolutely no sense.

Written by w00kie in: apple | Tags: , ,

Powered by WordPress. Theme adapted from Aeros.