Lucy in the cloud with tags

Tags, you’ve gotta love them.

Finally I have started tagging my blog and photos. which gives me the ability to offer better searches and display nice tagclouds.

For the blog I have used the plugin Simple Tags which offers a huge range of features.

I found that the things I like most is

1. Auto tagging

The blog already had a lot of articles, well more than I wanted to go through and tag one by one. So Simple Tags‘s auto tagging, was crucial. It will look at the contents of an article and select tags that seems to fit, from your current list of tags. It seems like it has done a good job, I didn’t find any tags that seemed out of order.

2. Suggest tags

Simple tags has a feature where it will suggest tags from yahoo and tag the net based on the content of the article. This is a huge help to get som useful tags. And having a nice collection of tags fits nicely with the auto tagging feature.

3. Meta keywords

Most people find their way  to this blog using a search engine, so why not give them a helping hand? simple tags will generate meta keywords from the tags.

The tagcloud that simple tags generates is more pleasing to the eye than the standard WordPress tagcloud. It varies the color as well as the size. Furthermore it is possible to customize it.

I have toyed a bit with the ability to only display tags from a specific category. This can be seen on the category pages ( ie weird ), where I display the tags for a category.I really would have liked to somehow use that to further specify what to look at. For example I want everything from the category “weird” tagged with “fun”. Unfortunately I haven’t been able to figure out to go about that. I really don’t want to get my hands dirty fiddling with to much WordPress php, but it seems that it somehow has to be the only way to go?

Another of Simple Tags features can be seen below, the related posts is generated based on the tags. Just as auto tagging, it seems to work quite nicely.

Spring is in the air

I’ve been out for a walk taking pictures of the emerging spring.

I really like the contrast between the decaying plants from the last season and the new growth. Since the the sun is hanging low, but shining brightly, there also is some very nice shadows.

The growth is still in its infancy, but in a couple of weeks everything will explode in green.

[zenphotopress sort=random number=5 album=2]

In order to show the images I installed Zenphoto and zenphotopress. It seems cleaner than coppermine, both to look at and to work with. And at the same time I changed the theme for the blog, and added a widget to show random images from the gallery.

Some of the images are high-dynamic-range(HDR) images.

mossrooms

I use a point and shoot camera, so I’m limited in the range and do not have access to raw images. But this is how i do it

Use autobracket
This takes 3 images. One with the default settings, two with respectively +/- 1 ev
Use a tripod and self-timer
This makes sure that the images are aligned in the best possible way.
Combine images
I use Qtpfsgui and i finally managed to compile and use hugins align_image_stack. Its necessary to align the images even though i use the tripod, as just a slight vibration will move the images a couple of pixels, and this results in fuzzy images. The align_image_stack is quite powerful, so handheld images is a possibility
Tonemap
I usually use the Mantiuk algorithm, but i tweak it so the colors become more vivid/surreal.

Collection of Processing.org hacks

Its been quite a while since I last posted anything.

That doesn’t mean that i haven’t been coding small hacks, just that i haven’t posted them. But now is probably a good time to show some of the stuff.

As the title suggest it has something to do with processing.org. I have been using processing on and off for some time. Its is really nice when you want to make a quick hack, or as its called in processing a “sketch”.

In no particular order here is some of the fun stuff made using processing.

General remarks

The following sketches and their sourcecode have served as small hacks, hence don’t expect nice comments or optimal algorithms…

shrinkImage

It is possible to remove the line from a picture representing the least amount of information. The algorithm evaluates every pixels “weight” as the absolute difference between the different color channels (r,g,b). And then finds the “lightest path” from the bottom to the top.

This means that “prominent features” won’t be removed or change size when shrinking the image. Here the definition of “prominent features” is high difference in colors between the neighboring pixels.

Have a look at shrinkImage

Room for optimizations :

Eventhough its quite quick at calculating the weights and finding the lightest path, it does so in every iteration. Letting it use a bit more memory and just recalculate the changes when removing a line should speed it up. I found a huge speedup when just having an array with the weights from the last and current line, when calculation the path, so not only would saving all weights require a bit more memory it would also slow down the first calculation. But I’m sure it would give a significant speed up in the next iterations, and a lot of +-1 frustrations 😉

helloFoo

There a some quick getting to know processing hacks, this is one off the. helloFoo

One of the very cool things about processing is the ability to use openGL, so originally this sketch uses openGL. But applets and openGL isn’t exactly the best combination. It can be done, but since it doesn’t work for me (firefox, linux openJDK JRE) i just converted it to standard java graphics. And the effort required to do this, is remove an import and don’t say setup(400,400, OPENGL) but just setup(400,400). This is trivially true the other way around. If you want to use openGL its quite easy.

The sketch is just bouncing balls, when going away from openGL I reduced the size and number of balls, in order to get a decent animation speed.

FooIII

Again used openGl originally FooIII

Some satellites rotating around some satellites rotating around some ….

sndHello

yes sketches tend to have silly names : sndHello

From Clifford Pickovers  book : Computers, Pattern, Chaos, and Beauty – graphics from an unseen world (p 39 section 4.3 snowflakes from   sound)
Draw symmetrically and in “polar form” the fft of the sound, hence creating snowflakes based on the sound.
Music by David Rovics
Choppy sound I had some problems with the sound when run as an applet. You might have better luck using the jar directly or by downloading the sourcecode and running it with processing

Slit-scanning

The former applet relied on an external library for the sound, ther are quite a few libraries available. I did use GSvideo to hook up my crappy webcam and do some video effects. I experimented with slit-scanning in different ways.Unfortunately this won’t run as an applet and it might only run on Linux.

By creating a cube of the images, where the z-axis represents time, its possible to play back different parts of the movie from different layers in time. Which makes for some quite interesting and dizzing effects.

For example a time buble where playback is delayed around a “bulge in the timespace continuum” :s (a video of some guy playing with it (timebuble1.avi) some sourcecode for a similar effect where the mouse pointer moves the buble (TimeCube.pde) another more “traditional slitscan” (CamWarpTime.pde) .

In general there is plenty of room to fiddle with the code, there a functions like selectSlice or initQueues where its decided how to slice time. its great fun to play with..