23
Feb 06

wordpress 2: first bug sorted out

true…
when you change your platform you never know what to expect, but after sorting this little bug I’m so happy to have switched.

when working on MovableType every fix, tweak etc would have taken hours through Perl code (of course cause I don’t know Perl), but in just couple hours I got this one sorted.

yeah… right…
what was the bug? (you might be wondering)

introduction:
I decided to keep my admin panel separated from my blog, and of course this requires some minor tweaking, especially when dealing with CSS that are stored on the main folder.
you end up having just a few files in your blog’s root, and I like that.

well…
my little bug was consisting in a mistaken link creation inside the admin panel.
when going to Manage > Posts > Previous Posts (bottom of the page if you have more than 15 posts), it was linking to the blog’s url, not the admin’s one.

I tracked the bug and I found a workaround which might be just a quick-fix, but it’s working fine.

in
/wp-includes/template-functions-links.php, about line 440 (function get_pagenum_link()), you can find


$qstr = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', trailingslashit( get_settings('home') ) . $qstr );

the get_settings('home') returns the base url for the blog (www.randomtype.com in my case).
I solved the issue checking against the value returned by is_admin()
if you’re in the admin panel, it returns “1″, then I change the parameter from 'home' to 'siteurl'.


(is_admin()) ? $st_url="siteurl" : $st_url="home";
//$qstr = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', trailingslashit( get_settings('home') ) . $qstr );
$qstr = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', trailingslashit( get_settings($st_url) ) . $qstr );

hope this can help out other people too.

have fun with wordpress 2

Popularity: unranked [?]

22
Feb 06

GOOD NUUUUZ EV’RYONE! [Prof. Hubert Farnsworth]

it looks like we have a new platform for blogging.

it took me just a few hours to have it sorted.

  • 5 minutes install of WordPress 2 (TRUE)
  • export from Movable Type
  • import into wordpress
  • download a few themes
  • find a good usable/tweakable template/css
  • tweak it a bit (keeping the link to the creator)
  • post a news item about this new version

so welcome beta 2 of randomtype!

I know Christian’s going to find objections to this, but I need a place to blog/write.
I know it’s way far from being a good blog, but it’s early and too little time is available.
I know this is what I need now.

well…
let’s quickly say what I did to get this new version up.

I essentially needed something less tricky to manage/tweak than Movable Type.
I bought Movable Type, and I own a license for several users/blogs.
I even offered it to a client as a blogging platform, but this was before WordPress 2 was there.
Now why keep using a blogging platform built upon Perl (which I’m still learning) when I can use a reliable PHP one?

Every second I spend on this new platform teaches me something.
I’m really willing to learn how to unleash its power.

enjoy every future post (hopefully)

ciao.ubi

Popularity: unranked [?]

21
Feb 06

FUSE Kit and ZigoEngine mailing list

the new mailing list for Zigo Engine + Fuse Kit (animation/sequencing utilities for ActionScript) is born.
It’s been direct mailing to Moses till now.
it’s populating pretty quickly, and it’s cool to see quick bug-fixes going on.

thanks Moses for all you’re doing.
ZigoEngine and Fuse are by far the most advanced sequencing/animation tools available.

have a look and judge.
the doc is still in development, but it’s going to be great one day.

Moses Supposes

Popularity: 1% [?]

21
Feb 06

LEDs as emitters/sensors

This is one of the coolest things I’ve seen around in a while.
Of course I never thought about this opportunity with LEDs, although I have a thing for electronics and prototyping.

ledtouch_photo.jpg

you have to see this yourself

[first seen on HackAday]

[UPDATE]:
Phillip Torrone from MAKE points us to this other link which is pretty interesting on the tech side to actually build something

Popularity: 1% [?]

21
Feb 06

JSON (JavaScript Object Notation) and Flash

Reading through this book I bought a few days ago (Foundations of Ajax) I found this chapter about how to send data to the server and back, allowing server side scripts to easy manipulate whatever we send them.
I’ve been using XML for a few years, now, and I really like the format and the API provided by Flash.
It ain’t always flash, though.

What if you need to pass XML to JSP?

well… the guys suggest using this format, and direct readers to the project’s site

JSON.org

there’s an as for Flash, and libraries for pretty much everything existing in matter of programming languages.

give it a try

ps: no, I’m not dead yet

Popularity: 1% [?]