Category Archives: iDEA

koumei.net Weather Channel

Koumei.net Weather Channel is released today using koumei.net RSS 2 Json service. For now only have Melbourne, Adelaide and 3 cities in between. Just for my convenience :-)

If you want to make yours, just download the source code yourself: Source Code

The weather service makes use of weather RSS from Yahoo! weather channel. And change to client side RSS to Json converter in koumei.net (A Simple Rss2Json Service Released!: http://blog.koumei.net/2009/03/20/a-simple-rss2json-service-released/).  So make sure you have javascript supported browser either on the phone or pc.

And here it is: http://weather.koumei.net :-)

Office Story – TimTam Story 3D

It’s quite a funny story that my very creative colleague found a post card and made an office story which is now pinned on my desk. Now I revise to TimTam Story in 3D..

What’s wrong with me recently… I think I am going crazy about 3D images :)

Copyright is reserved

Original Story: David Jones ( Office Story )

Cosplay: Koumei, Ritika

Script Revision: Koumei

Tim Tam Story Take 1

3D Image Howto – A Simple Technique To Create 3D Vision

3D has been popular recently and become common ever since James Cameron filmed Avatar in 3D. Nobody can resist its marvellous effects. If the visual effect has already been impressive then 3D vision will make it double.

Well, 3D movie is not easy to make in contrast to 3D still picture. With photoshop, you can easily make your picture/photo shown on 3D. Of course, to gain the 3D vision, you have to get a red-cyan 3D glasses first. You can even make it yourself, but trust me, it’s cheap just search on eBay.

First of all, you need to know a little bit about the color channel system and layer system in photoshop. In a word, if you know photoshop well, making 3D still picture is just a piece of sushi. :)

Normally we need to take 2 photo (towards the same object or view) to simulate the left and right eye vision, then render them (project them) into the same place, We need to use the red-cyon glasses to filter the different color to cheat human’s eye that there is a depth of the object to form 3D vision. But In our case, we just have one photo, so need to use some powerful tool like photoshop to separate the color channel and combine them together.

Let’s do it now. First of all, you need to get a photo which you would like to make it 3D. Well, theoretically can be any picture. But better use some simple for practicing at the first time. You need to adjust detailed part of picture to make the depth of vision vary ( make it more 3D)

In this example I would like to use Ninja Gaiden Sigma II poster, I am fascinate in Ninja Gaiden series ever since XBOX age. It is considered to be the great action game in the world, even now, I don’t think there is an action game can beat it. But believe me it’s more vicious and violent when comes to episode 2 (Ninja Gaiden II and Ninja Gaiden Sigma II), please play this game with parent guided. :)

Download this picture(wallpaper from Tecmo official website):

Open it on photoshop, of course, you can DIY some decoration on this photo first.

1. Duplicate the image into 2 layers. Select the 1st layer, and go to channel panel, and delete whole red channel to create left eye vision, like the picture shown below:

2. Select the 2nd layer and do the same thing, but this time, remove Green and Blue channel to create right eye vision:

3. Select the top layer ( in this case, “layer 1 copy”), and then select “Multiply” color bending to combine those 2 layers:

Now you should be able to preview your picture using the red-cyon glasses. But, the 3D vision is not so strong, because we are not using 2 pictures and we just simulate these pictures are captured by both eyes. So need to adjust the detail part of the image to create more real vision.

Just take the Ryu Hayabusa’s foot as an example. As the picture shows, the foot should be closer to the camera, so we need to adjust the right eye vision a little bit, to create closer look:

4. Select the foot part of the body:

Use move tool to move the distance right a little bit, like 2 pixels. After moving the foot part, you can see there is a while gap between ankle and leg, So we need to fix this:

5. Select smudge tool to blur the gap:

6. Repeat the detailed adjustment like head, hand and the sword.

7. Finally: (Click to open to see the full image)

More :)

Gallery CMS MOD: View As HTML or Partial HTML

Gallery CMS  provides an easy-manage CMS (Content Management System) framework for gallery. I like the way they manage data, all the data are exposed as XML or JSON. It is not a complete solution of photo gallery online, but if you need to integrate photo gallery on your website that would be a very good start: you can easily develop or integrate. And guess what is the exciting part? It’s free! For more information, please feel free to download @ http://www.gallerycms.com/

It’s easily integrate but sometime you might need more convenience when integrate it to your website. Of course using XML or JSON which is the basic data structure is not that difficult, but I think most of time, for the integration itself, the most easiest and convenient is managing HTML. On the view if you are rendering the content partially, later you can use AJAX to replace the partial HTML content dynamically other than managing JSON on client side: we need rich client application, but if it lose weight a little bit, why don’t we make it lighter?

So, let us apply the MOD to it. It’s MIT license, so, no harm to mod it. Just pay a little attention to it’s license file: Gallery CMS comes with 2 licenses, one license is MIT license which represent itself, and the other license is derived from CodeIgniter which the basic framework.

1.\application\controllers\view.php //Add the following codes to it:

function html() {
$data['row'] = $this->gallery_xml->viewXML();
$this->load->model(‘settings_tbl’);
$data['settings'] = $this->settings_tbl->viewSettings();
$this->load->view(‘view_html’, $data);
}

2. On\application\views\ folder, create a file view_html.php

Please note that, you can make the view html a full html or you can partially render it like this:

<?php if(isset($row)) {?>
<div>
<?php foreach($row as $r){?>
<?php if(isset($r->images)) {
foreach($r->images as $img) { ?>
<div>
<div><a href=”<?php echo base_url();?>uploads/<?php echo $img->filename;?>” target=”_blank” title=”<?php echo $img->caption;?>”><img src=”<?php echo base_url();?>uploads/<?php echo $img->thumbnail;?>” border=”0″ align=”absmiddle” width=”<?php echo $settings[0]->thumb_width; ?>” height=”<?php echo $settings[0]->thumb_height; ?>”/></a></div>
<div><?php echo $r->title;?></div>
<div><?php echo $r->description;?></div>
</div>
<?php } ?>
<?php } //if  ?>
<?php } ?>
<div style=”clear:both”></div>
</div>
<?php }?>

After that, you can use: http://<GALLERY_CMS_WEBSITE>/index.php/html  to retrieve the HTML content. In our mod above, it is just partial HTML, so you can jQuery it:

$.get(‘http://<GALLERY_CMS_WEBSITE>/index.php/html ‘, null, new function(resp){$(‘#html-container’).html(resp);});

Nice and easy.

Koumei – A guy who loves “D.I.Y. “

Today I found some photos on my backup disk about D.I.Y. the outlook and skin of my laptop 2 years ago. I would like to share these photos here :).

I still can’t figure out how and what makes me to do it…:) It needs gut, because I have to take it apart, and take the risk of being unable to assemble it.

Take a look at the photos:

20070901001
Take it apart!

20070902004
Preparing… Spray, tape, knife and sandpaper.

20070902005
Spray on the shell and paste some stickers, of course, it is perfectly assembled.

sp_a0204
It looks wonderful, isn’t it? The skin is printed using the same wallpaper on the laptop:

sp_a0206

iKcod – Homebrew iPod/iPhone Car Dock

How to make it? Well, if you don’t like paper work nor D.I.Y, then skip it, go to $2 shop straight away, get yourself a $3 phone dock and hang it in your car. If you like D.I.Y, just make sure you have:

1. 210gsm paper from Office Work, about $1.50, Easy.

2. You might need a scissors and some staples.

3. Glue is optional instead of using staples.

Then cut the paper alongside the line, as the picture shown below.

ikcod_2

Fold it.

Hang it in your car.

That’s the pager dock for iPod or iPhone. Using with FM transmitter would be absolutely great! I call it “iKcod”, which is reversed of “Docki”, and match the pattern of “iPod”, it IS really nice.

ikcod