Progress at Food4Geek.com!

This is probably absolutely boring and irrelevant to 99% 100% of my readers, but I’m gonna write about it anyway. If only just for my own records. :)

While writing my links directory for Food4Geeks, I had an idea: I wanted the script to automatically/dynamically generate a short URL (using http://is.gd), every time someone views the detailed description of a link.

The code looked a little like this:

include 'inc/shorten.php';
$url = $siteurl.'resources/details/'.$resource_id;
$url = ShortUrl::create($url,'isgd');

So at the end, $url contained a working short URL for the record. Makes it easier to share on twitter and what not. But I descovered, that every time this is done, the site takes almost a second longer to load. I hate that kind of thing.

So I thought about a way to stop that. And I came up with a way. In the future, when I’ve written an admin area for the script, those URL will be generated when I insert new resources into the database. But for now (and as a failsafe), I’ve gone another way:

I’ve added a column to my resources table called ‘shorturl’. Every time someone clicks a resource (to see link details, description), the script checks if the resource in question has a short URL or not. If does, it fetches the short URL from my database and displays it to the user.
Result: loading time stays normal, no delays = Paul happy.

If it finds that no short URL is stored for that particular resource, it runs the above code and creates one. It then stores that new short URL.
Result: The first time that anyone ever clicks on the resource, the 1 second delay takes place. Because the short URL is created. But once that is done, there’s no more delays. Because then the short URL is stored in the database and all is well = Paul happy.

And the best part is: every time I insert a resource into the database, I check it myself anyway. So I’m the one that is the first to click it. So I get the 1 second delay. But nobody else will!

So yeah, this is a really cool little thing for me. :)

Post to Twitter

Writing my first proper standalone script

Some of you may know about my “Food4Geek” project. It’s a collection of links to tutorials, goodies and all kinds of resources for web developers, web designers and coders in general.

I launched the project using LinkEnginePro, which I bought for 39 Euros. The idea of it is really good. The concepts are very user-friendly and good. But the more I worked with it, the more I got tired of it. For example, it sometimes takes almost a minute for it to load a page. Be it in the admin area adding records, displaying a record or anything else. That annoys me hugely. And quite frankly, had I known to expect this, I would not have spent those 39 Euros.
Then there were more and more little and not so little bugs. Promises of updates and fixes… The support is OK, but nothing to write home about. Quite apart from the fact that they took their support forum offline and just brought it back. With all the posts and accounts gone.

Post to Twitter

Former vBulletin devs emerge with new forum software xenForo!

I have to say, I love being right.

Yesterday, when surfing vBulletin’s Licensed Customer Forum, I stumbled across a comment by Mark B. In it he wrote, that he was going to hold out on updating from vBulletin 3.8 to vBulletin 4 when 4.1 comes out. As I reported last year [1,2], vBulletin 4 had a very rocky start and didn’t improve by much.
Mark continued his post by writing that since Kier’s “recent antics”, he was not anymore inclined to do so.

Does that sound familiar? As I reported on January 1st of this year, Kier has been working on a new forum software for many months. And guess what – it has launched the day before last, July 29th 2010.

The name? xenForo!

You can already see it in action and I encourage everyone to have a look. You can just use your Facebook account to sign in. Very painless. And then just go ahead and give it a spin. Try posting, writing profile comments and so on. It’s very impressive.

Post to Twitter

Banshee Multimedia Keys on KDE (Ubuntu)

Ok, so being the curious bugger that I am, I decided to give KDE a go. Ubuntu comes with GNOME by default (I think), so I installed KDE as per this guide.

My problem was that my keyboard’s multimedia hotkeys weren’t working anymore. Well the volume buttons were, but the next & previous track and play/pause were not. So I went and asked Google. I’ve gone through a few articles and howtos, but in the end I figured it out. So, here’s how:

Step 1:

Enter the System Settings (Click the K button at the bottom left, then Computer, then System Settings). Enter Input Actions.

Step 2:

On the left bottom click the Edit button and click New Group. A new group is created – call it Banshee.

Step 3:

While the Banshee group is highlighted, click Edit at the bottom left again, but this time click New -> Global Shortcut -> D-Bus Command. A new shortcut is created in the Banshee group.

Do this three times!

Step 4:

Name the three new shortcuts:

  • Play/Pause
  • Previous Track
  • Next Track

Step 5:

Do this for each shortcut:
At the top, click the Trigger tab. Next to Shortcut there is a button. Click that and then assign the multimedia key that you want. Then click Apply at the bottom right.
Make sure you press the right multimedia key for each of the shortcuts.

Step 6:

Do this for each shortcut:

At the top, click the Action tab. There you will see a bunch of different settings. Remote Application and Remote Object are the same in all three cases.
Remote Application: org.bansheeproject.Banshee
Remote Object: /org/bansheeproject/Banshee/PlayerEngine

The Function for the Play/Pause button is: org.bansheeproject.Banshee.PlayerEngine.TogglePlaying
The Function for the Previous Track button is: org.bansheeproject.Banshee.PlaybackController.Previous
The Function for the Next Track button is: org.bansheeproject.Banshee.PlaybackController.Next

The Arguments field should remain empty for the Play/Pause button.
For Previous Track and Next Track the Arguments field should be: false

For reference, here is what it should look like:

Click Apply at the bottom right.

That’s it!

Post to Twitter

Ubunt-u

Ok, I couldn’t think of a better title – sorry.

After some more Windows annoyance and that kind of thing, I’ve decided to install Linux on my machine. I will probably never completely switch to Linux, because there are some programs that are not available for Linux and Wine doesn’t always do the trick.

Besides, I play Call Of Duty – Modern Warfare 2 and I’ve never been able to get that to run on Linux.

Anyway… I’ve been running Ubuntu 9 (Netbook Remix) on my netbook very nicely for a couple of months now. But back in the day when I first tried Linux, I went with Suse 7 (this was way back) and apart from me being too stupid, I did quite like it. Looking back I probably liked KDE, not Suse as such.
I figured that maybe openSUSE 11.2 would be a good thing to try for my PC. So I installed it. And I have to say – it’s not as good as I remember. Ok, I know, it’s not Suse 7 anymore. But they’re supposed to get better, not worse, right? I guess Ubuntu really lured me in with its awesomeness and its nice Gnome desktop.

So I did the only logical thing. I downloaded Ubuntu 10 and installed it. Now I’m listening to some really nice music on Magnitude (through Rythmbox) and surfing the web. I don’t know why, but on Ubuntu, my screen always seems bigger and more efficient than on Windows. It’s weird.
Now all I would need for perfect bliss would be:
A Linux version of Napster and iTunes and I would be in heaven.

Post to Twitter

Launch of Food4Geek!

Food4Geek.comLadies and gentlemen, today is an exciting day!

I have finally finished work on my new project, Food4Geek.com. It’s a collection of howtos, tutorials, resources and other useful stuff – for anyone that works on, for, in or through the Internet. I will be adding new resources all the time. But you, gentle reader, are also very welcome to add stuff you like – or even your own resources!

The project came to be, because I was getting frustrated with the way I was storing all my favorite resources for all kinds of things. Be it Photoshop, HTML, Web Design, whatever… So I started using Delicious, but that wasn’t exactly what I wanted. So I thought I’d make a link directory.
Looking for a good script took me a long time. Customizing it to suit my needs took even longer *lol*.

In the process I was forced to look at things like URL shortening APIs (something I was looking for an excuse to delve into).  This was mainly because the link directory script didn’t come with a URL shortener included or integrated. I didn’t want to have people tweeting these long URLs, so I had to think of something else.

The result can be found here.

Well, don’t let me distract you – dig right in:

Food4Geek (click to enter!)

Post to Twitter

When is vBulletin coming back?

Every now and then I head over to the official vBulletin customer forum to see how things are going. And every time I think: maybe it’ll be different this time.
Sadly, it is not.
I remember how rediculous it seemed a year ago, when people were predicting this very situation. These days I hardly read any threads on vB’s Customer Feedback Forum. The subjects haven’t really changed since late 2009. People are complaining and asking when things might improve.

Post to Twitter

Connecting the dots

WordpressOne or two of my readers are aware that I run a seperate blog (in German) on paulvoth.net. I’ve been thinking about somehow combining it with this blog. I like things to be connected.

Now that I’ve had the chance to test WordPress 3 with its new multi-site feature (formerly WordPress MU), I’m happy to start the integration process. Over the next week or so, I’m going to move my other blog here.

This will allow me to upgrade both my blogs at the same time. This goes for the plugins and themes too, which is cool.

So, to all my German readers, stay tuned. :)

Post to Twitter

Using Example.com domain on XAMPP (Windows)

A few minutes ago, I read a short tutorial about this subject at abcphp.com and no matter how I tried, I couldn’t get it to work. I’m not sure if I’m stupid or if the tutorial is written wrong. Either way, I’ve decided to Google a bit and see if I can find out, how to do this.

What I was trying to achieve is:
Make example.com available as a domain on my local Windows PC using XAMPP. Why example.com you ask?
The answer is given in the above mentioned tutorial:

Example.com [or example.org, example.net] is a special domain as defined in RFC 2606 used for, you guessed it, examples. These domains will never be available to the public, so there’s no need to worry about not being able to access the actual site in the future.

So it’s perfect for our purposes.

Post to Twitter

In other news…

… I got really fed up with the many limitations of the aforementioned WP plugin. So I’ve decided to look for a good directory script. And I’ve found an awesome one!
It’s called LinkEngine Pro and it’s free and it’s really, really powerful. Sort of like a WordPress of link directories. I’ve already started customizing it (which is really easy) and soon I’ll launch it here at Drummy.org, so stay tuned!

Post to Twitter