Wednesday, February 22, 2012

Gimp Plugin to stitch vertically

this plugin will take the many layers of an image and stitch them into a new image vertically

to install this Plug-in
follow instructions here

Gimp Plugin to stitch horizontally

this plugin will take the many layers of an image and stitch them into a new image horizontally

to install this Plug-in
follow instructions here

Gimp Plugin to rotate tile

this plugin will take an image and rotate it by a number of rotations defined by config values in tile.config file to cover 360 degrees and put these rotations into different layers.
to install this Plug-in
follow instructions here

Gimp Plugin to divide tiles

this plugin will take an image and divide it into a number of new images defined by config values in tile.config file.
to install this Plug-in
follow instructions here

Installing Gimp Plugin

this plugin installation will provide 4 new functions in Gimp.
1) Filters -> Misc -> Divide Tile
2) Filters -> Misc -> Rotate Tile
3) Filters -> Misc -> Horizontal Stitch
4) Filters -> Misc -> Vertical Stitch

To install, in a terminal window, run:
yum install gimp-devel-tools.i686
yum install gcc

then download
gimpplugin.zip

extract/open gimpplugin.zip, there'll be 6 files
dividetile.c
getconfigvalue.c
horstitch.c
rotatetile.c
tile.config
verstitch.c
to install these .c files (as plugins)
in a terminal window, run:
gimptool-2.0 --install dividetile.c
gimptool-2.0 --install rotatetile.c
gimptool-2.0 --install horstitch.c
gimptool-2.0 --install verstitch.c

once installed, the 4 new functions will be available in Gimp under Filters->Misc.
While using Gimp, have tile.config (found in gimpplugin.zip) opened so you manipulate the values.
have tile.config in the same folder as when you run "gimp &" from
or if you start gimp from a graphical interface instead of command line, have tile.config in /home/username/ folder.

Monday, February 20, 2012

Tetris

title screen
 A Tetris-clone single player game where a player puts the pieces together to fill rows.

game play
Score keeps track of lines destroyed.
Drop-timer speeds up 50ms everytime some lines are destroyed.
Use arrow keys to control the dropping piece (and 'end' key to rotate counter clockwise)



game over
Download Windows Executable Stand-alone at
background music by DST at http://www.nosoapradio.us/

You might also be interested in Tetris Partner (2 player version of Tetris)

Sunday, February 19, 2012

Special HTML characters

special HTML characters that you can just quickly cut and paste and use on your web pages.

™ ™ trademark sign
© © copyright sign
® ® registered trademark sign

† † dagger/cross
‡ ‡ double dagger

‰ ‰ per mill sign (one part per thousand/ tenth of a percent)

♠ ♠ spade suit
♣ ♣ club suit
♥ ♥ heart suit
♦ ♦ diamond suit

← ← left arrow
↑ ↑ up arrow
→ → right arrow
↓ ↓ down arrow

¢ ¢ cent sign
¤ ¤ currency sign
£ £ pound sterling
¥ ¥ yen sign

° ° degree sign (ie. 68°F = 20°C)
± ± plus or minus sign
ยต µ micro sign

¹ ¹ superscript one
² ² superscript two (ie. 2² = 4)
³ ³ superscript three (ie. 2³ = 8)
× × multiplication (ie. 2 × 3 = 6)

¼ ¼ one-fourth
½ ½ one-half
¾ ¾ three-fourths

« « left angle quote
» » right angle quote

another cool ascii character is the star (★)

Flash Player partially working.

Youtube "Invalid parameters" error.
after installing Flash Player following instructions at http://www.if-not-true-then-false.com/2010/install-adobe-flash-player-10-on-fedora-centos-red-hat-rhel/
Flash player works at http://nosoapradio.us but when trying to watch YouTube videos, i hit the play button and it says "Invalid parameters"
searched for solution and ran into http://www.google.com/support/forum/p/youtube/thread?tid=7fc1ae7e2fe6d789&hl=en&fid=7fc1ae7e2fe6d7890004b95a43d60f48,
but so far no solution yet.
Edit:
Problem solved by clearing cache 
http://support.mozilla.org/en-US/kb/How%20to%20clear%20the%20cache

Images are showing wrong colors

I just installed Fedora 16 and images are showing wrong colors.
Like trees would be purple instead of green on the monitor.
To fix this, i followed instructions at http://www.if-not-true-then-false.com/2011/fedora-16-nvidia-drivers-install-guide-disable-nouveau-driver/

TSP

Travelling salesman problem.
3 methods that produces paths with no cross-overs.
all 3 methods start with a solution path that holds 2 locations that are the furthest away from each other (connected by longest edge out of all edges).
then each location is added to solution path by deleting an existing edge and adding 2 new edges that has the least cost.

method 1: pick next location to insert into solution path that has the smallest (absolute difference of 2 new edges/sum of 2 new edges) ratio compared to other locations.
method 1 (worse out of 3 methods)
method 2: pick next location to insert into solution path that has smallest (absolute difference of 2 new edges/(sum of 2 new edges - deleted edge)) ratio
when it's division by zero make the ratio really large like 100000.

method 2 (best out of 3 method)
method 3: pick next location to insert to solution path that has the largest cost (sum of 2 new edges - deleted edge) compared to other locations
method 3 (2nd best out of 3 methods)
locations data is found at http://www.tsp.gatech.edu/vlsi/index.html (xqf131)

Saturday, February 18, 2012

Thursday, February 16, 2012

Target Shooting Game

A simple target shooting game using your mouse to aim.
Left-click to shoot dart.
High score board

game play screenshot 1

game play screenshot 2

Enter your name in highscore board



Download Windows Executable stand-alone at MediaFire 
background music by DST at http://www.nosoapradio.us/
more details about this game (in Game Editor) is found at Targets on Ipad (TOI)

Wednesday, February 15, 2012

Banana

5 bananas

5 bananas

whole banana

peeled banana

banana peel

Tuesday, February 14, 2012

Lime

whole lime

3 limes

lime wedge

lime wedge

Longan

whole longan

3 longans

opened longan



longan seed


half a longan peel
half a longan(no seed)
longan peel

peeled longan

half of a peeled longan

Monday, February 13, 2012

Apple

whole apple
half an apple
isolated images of an apple.
half an apple


2 quarters of an apple











green apple (Google 3d warehouse):

Sunday, February 12, 2012

Fonts

Here are some of the readable fonts in GIMP typed out with sample sentence: "The quick brown fox jumps over the lazy dog."
 And below are sample fonts provided by blogger.com
The quick brown fox jumps over the lazy dog. - Default Font
The quick brown fox jumps over the lazy dog. - Arial
The quick brown fox jumps over the lazy dog. - Courier
The quick brown fox jumps over the lazy dog. - Georgia
The quick brown fox jumps over the lazy dog. - Helvetica
The quick brown fox jumps over the lazy dog. - Times
The quick brown fox jumps over the lazy dog. - Trebuchet
The quick brown fox jumps over the lazy dog. - Verdana
There seems to be no difference between Trebuchet and Verdana?