Sabtu, 30 Januari 2010

Easy Origami Swan Paper Folding

MenuOrigami Swan Tutorial
Making Origami Swan Basic Procedure
Making Origami Swan Basic Part
Beautiful Origami Swan Examples
Cute Origami SwanOrigami is the art of folding paper into a variety of things, so it's also called "paper folding". It can be simple or complicated, and the sky is the limit. In this post I'll introduce one way to make origami: I fold a small piece of paper into some shape, and make many of them and assemble them into something beautiful. Usually after I am done I give it to somebody as a gift, and usually his or her reaction involves crying and slobbering (haha not really..). It really warms the cockles of the recipient's heart.

I'll give you origami instructions on how to make a beautiful origami swan like the one in the photo. Don't worry: it's easy origami paper folding and anyone can do it. Then I'll show you some work I've done. Let's go on and see how you can impress your loved ones with this beautiful work of paper.

Without further ado let's get started on making a beautiful piece of art!

Making Origami Swan Basic Procedure ▶

Senin, 25 Januari 2010

Perl Global Variables

How do you define global variables in Perl?

I want to define a variable in one perl file and be able to access it from another perl file in the easiest way possible. First of all I find it shocking that I couldn't find much support for this question on Google, so I decided to post the answer myself. Suppose in global.pl you'd like to define the variable (or variables), and in access.pl you'd like to access the variables defined in global.pl. In global.pl define the variable. Do not use 'my' keyword, as it restricts the scope to current file. This means that you should not have 'use strict' in global.pl. In access.pl put "require 'global.pl'". That's it.

For example:

In global.pl you have:

$MY_GLOBAL_VARIABLE1 = 1;
$MY_GLOBAL_VARIABLE2 = 'a string';


In access.pl you have:

print "My global variable 1 is $MY_GLOBAL_VARIABLE1 and my global variable 2 is $MY_GLOBAL_VARIABLE2";

Easy right? Hope it helps

Rabu, 16 Desember 2009

Year of Video Games - 2009

Following up on the games I played and finished in 2008...

This year is a bit different since I recently got an original Xbox and new PS3 Slim which lead to more non-Nintendo games finished as last year. Out of all the games I finished last year I'd have to say Modern Warfare 2, Half-Life 2, and Zelda II were my favorite.

Modern Warfare was a completely different gaming experience than I was used to, giving a blockbuster movie storyline with plenty of twists and challenging environments that keeps you going "just one more chapter"

I played the Half-Lifes in order starting with the first and ending on Episode 2, and even though Half-Life 1 was exception, Half-Life 2 had that same type of playable movie quality that I really liked. The levels and game play were exceptional and kept you hook till the final climax.

Unexpectedly Zelda II was, for me, more fun than Ocarina of Time. Ocarina is constantly praised as one of the best games of all time, but when I played it I didn't really see it. Zelda II offered and extremely, but rewarding challenge and once I was finished I felt a sense of loss that it was over.

I still have a goal of beating all the Zelda's before I'm 30, and with Ocarina and Zelda II out of the way I have the major hurdles done. Spirit Tracks should go quickly since it's on the DS and I really like the cell-shaded top-down 3D style it has. Unfortunately I'm not too excited about the two remaining 3D games and wish I had done those first and left the classic top down ones for last.

Since I've entered the current gen of systems with the PS3 I've found that the movie-style of these games is more appealing than I originally thought. Heavy Rain looks like next-gen Hotel Dusk and games like Uncharted and Assassin's Creed have the action adventure element I like.

The iTouch games made a small dent this year too, with me purchasing classic games from my youth; Sim City, Myst, Wolfenstien 3D, Doom, and adventure games. As the platform matures and mobile gaming takes hold I have a feeling I'll have more to add to the list.

Finally I found that Steam, PSN, and Virtual Console are a large contributor to my gaming experience. The method of downloading a game and having it "permanently" tied to you account and not a piece of hardware is cool.

Finished Games for 2009

Gameboy Advance
Metroid Zero Mission

Sony PS3
Call of Duty: Modern Warfare 2

Microsoft Xbox
Halo: Combat Evolved
Grand Theft Auto III: Vice City

PC
Half-Life
Half-Life: Blue Shift
Half-Life: Opposing Force
Half-Life 2
Half-Life 2: Episode One
Half-Life 2: Episode Two
Portal

Wii
The New Super Mario Bros Wii (finished cooperatively with Oanh!)

Virtual Console
Zelda 2: The Adventure of Link
Legend of Zelda: Ocarina of Time
Metal Slug

Currently Playing
Legend of Zelda: Majora's Mask
Uncharted: Drake's Fortune
Professor Layton and the Diabolical Box
The World Ends With You
Beneath a Steel Sky (iPhone)
Halo 2

Goals for 2010
Call of Duty 4: Modern Warfare
Uncharted 2: Among Thieves
Legend of Zelda: Spirit Tracks
Legend of Zelda: Twilight Princess
Assassin's Creed
Assassin's Creed 2
Okami
Metroid Prime Trilogy
Super Paper Mario
Deus Ex
Heavy Rain

Minggu, 06 Desember 2009

Stop Dreaming Start Action!

Stop Dreaming Start Action kalimat yang sering saya dapat dari blog atau web page yang saya kunjungi memberikan saya dorongan untuk membuat tulisan sebuah blog saya sendiri.

Hem.. tapi rasamalas buat menulis menjadikan maless lagi kalo dah di depan komputer hem kapanyah bisa nulis... gak ada waktu.

hem akhirnya moga-moga jadi awal aku buat mulai nulis blog nih.

Jumat, 30 Oktober 2009

Install Gnome Do from PPA in 9.10


I always like to have the latest and greatest of Gnome Do. This can be achieved by installing from their PPA. These instructions are for Ubuntu 9.10 Karmic Koala so they may not work with older versions. Follow the steps below if you want to install Gnome Do from PPA.
  1. Open System > Administration > Software Sources
  2. Click Other Software tab and then click the Add button.
  3. Add these two lines one by one.
deb http://ppa.launchpad.net/do-core/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/do-core/ppa/ubuntu karmic main
  1. Click Close and then Reload. It will complain about a GPG error but we will fix that in the next steps.
  2. Open up a terminal and input these commands.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 77558DD0
sudo apt-get update
  1. Now you can install Gnome Do with this command.
sudo apt-get install gnome-do
Congratulations! You now will have the latest Gnome Do installed on your system. Now when the next release of Gnome Do happens you will get it right away instead of waiting for it to be put into mainstream.

Rabu, 30 September 2009

LVM Disk Recipes for Debian

After much wrangling and researching I finally figured out how to get LVM disk recipes to work with Debian preseeding. The following recipe will create a partition layout of what's in the table. When making these recipes make sure that you account for extra whitespace that may be hiding (especially spaces) otherwise it may yield unexpected results.


Mount PointTypeVGLV NameSize (MB)Filesystem
/bootPrimary100ext3
/LVMvg00/dev/vg00/rootvol4096ext3
/varLVMvg00/dev/vg00/varvol1024ext3
swapLVMvg00/dev/vg00/swapvol2048swap
/homeLVMvg00/dev/vg00/homevolremaining spaceext3


Recipe file:



Ubuntu/Debian Custom LVM Disk Recipe ::

100 1000 100 ext3
$primary{ }
$bootable{ }
device{ /dev/sda }
method{ format }
format{ }
use_filesystem{ }
filesystem{ ext3 }
mountpoint{ /boot }
.

100 100000 -1 lvm
$primary{ } $defaultignore{ }
method{ lvm } vg_name{ vg00 }
.

4096 10000 4096 ext3
$lvmok{ } in_vg{ vg00 } lv_name{ rootvol }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ / }
.

1024 4000 1024 ext3
$lvmok{ } in_vg{ vg00 } lv_name{ varvol }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ /var }
.

2048 5000 2048 linux-swap
$lvmok{ } in_vg{ vg00 } lv_name{ swapvol }
method{ swap } format{ }
.

1024 1000000 -1 ext3
$lvmok{ } in_vg{ vg00 } lv_name{ homevol }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ /home }
.

Senin, 24 Agustus 2009

Ubuntu Google Web Toolkit Setup


It's easy to get started with the Google Web Toolkit and Ubuntu 9.04. There are a couple of steps you will want to take to ensure a proper setup.
First let me start by mentioning that the easiest way to do this is to use Eclipse. Eclipse is a full-featured Java IDE. Many complain that it is too slow, crashes, etc. Since Google developed a plugin for Eclipse and most likely their software engineers are using it, I think it would be best to use it as well. Now on to the actual steps.
Get Eclipse Installed and Working
  1. Don't use synaptic to install Eclipse. If you already have it installed through synaptic that's okay, but you will have two versions of Eclipse on your computer.
  2. Download the latest copy of Eclipse at http://www.eclipse.org/downloads. Don't worry about all the different versions. Just download the Eclipse Classic at the bottom of the list.
  3. Extract to a directory on your hard drive. I happen to put all of my programs that I install manually in a folder, /home/username/Software. This helps me keep track of all my programs I've installed manually.
  4. You should be able to start Eclipse either through the command line (after you change to the directory) or by double-clicking eclipse inside of the folder.
Install Google Web Toolkit Plugin
  1. Start Eclipse if you haven't already.
  2. Help > Install new software...
  3. Click the add button. Put GWT Plugin for name and paste in for the url:

    http://dl.google.com/eclipse/plugin/3.5
  4. Check the boxes labeled Plugin and SDKs. 
  5. Follow through the wizard. You will have to agree to the license.
  6. Once you finish with that window you will want to restart Eclipse. After that you can begin working with GWT in Ubuntu.
This worked for me on 32bit and 64bit Ubuntu. Hopefully you will be able to start building your Google Web Toolkit applications in Ubuntu.
 
support by: infomediaku.com