Archive for December, 2010


If you ever tried to add korean in your prints or what have you with python you will notice you get an error looking like this:

SyntaxError: Non-ASCII character ‘\xec’ in file gravity.py on line 10, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Luckily this is an extremely easy fix!

just add this to the top of your script:

# -*- coding: utf-8 -*-

example source with korean:

http://pastebin.com/eXWsxZM9

Enjoy and Happy New Years!

Advertisements
Android

Android

Before we start i just want everyone to know PC = windows. PC means personal computer, not an operating system.

Now you might be asking why would you want to run Android on your PC? Well why not, its an easy way to test our the OS as well as test applications on it.

The androids home is http://code.google.com/p/live-android.

USB booting

The easiest way i find to running Android on your PC is through USB. You will need the right ISO, you can find that here.

1. Choose the files ‘liveandroidv0.2usb.iso.001’ and ‘liveandroidv0.2usb.iso.002’ to download, when you have both right click and extract ‘liveandroidv0.2usb.iso.001’ this will join both files into one.

2. Download UNetbootin. This will convert the ISO into a readable and bootable USB operating system.

3. Run UNetbootin, load the Liveandroid.iso into the unetbootin application. Ensure your USB is inserted, select the right drive of your USB. Then allow UNetBootin to turn your USB into a portable OS.

4. After the install is completed restart your computer, turn on USB mode in your bios and then boot from USB. If your turned USB mode on you will see an option to boot from USB.

Note: If your computer hangs on boot up that means your hardware is not compatible with running Android. Try it on another PC or try loading the ISO in a virtual machine.

Indie developer Puppy Games today announced that its tip-top tower defense gameRevenge of the Titans will officially launch tomorrow, meaning that today is your last chance to get it at the bargain pre-order price.

Revenge of the Titans can be pre-ordered now for $13.37, though it’s due to go up to $27.72 when it launches tomorrow for Windows, Mac and Linux.

looking for some good Gimp Tutorials i was lucky enough to find this large amount of tutorials. So i figured why not sure them out:

http://www.scottphotographics.com/40-best-gimp-tutorials-of-2010/

Here are my top  favorite tutorials off of that list:

Glow FX extreme

Glow FX ExtremeGlow FX Extreme

The creepy zombie hand of death

The creepy zombie hand of death!The creepy zombie hand of death!

How to apply a logo to an object

How to apply a logo to a textured imageHow to apply a logo to a textured image

Sun Burst Effect through clouds

Sun Burst Effect through CloudsSun Burst Effect through Clouds

Metal wires and abstract background

Metal wires and abstract background in GIMPMetal wires and abstract background

How to make a photo grungy

how-to-make-photos-grungy-in-gimp-3.jpgThe finished JPEG

ake Photographs Vintage

Vintage Photograph in GIMPVintage Photograph in GIMP

 

 

 

 

 

 

How To Write Unmaintainable Code

Heres a little interesting Java article i found thought i would share with my java readers:

http://freeworld.thc.org/root/phun/unmaintain.html

 

Heres some quotes:

In the interests of creating employment opportunities in the Java programming field, I am passing on these tips from the masters on how to write code that is so difficult to maintain, that the people who come after you will take years to make even the simplest changes. Further, if you follow all these rules religiously, you will even guarantee yourself a lifetime of employment, since no one but you has a hope in hell of maintaining the code. Then again, if you followed all these rules religiously, even you wouldn’t be able to maintain the code!

VIM!The Amazing thing about being in the world of 2010 is we have so many more advance technologies. When it comes to linux terminal, there are so many wonders that can be done. But how come the default terminal colors are 8?

Go ahead type:

tput colors
 see that number 8? ridiculous right? 

As of now there is a posibility of 256 colors  usable for the terminal. 
Luckily this is easy to make happen!
First install:

sudo apt-get install ncurses-term

and stick the following in your ~/.bashrc and/or ~/.bash_profile:

export TERM=xterm-256color

After you edit your .bashrc or .bash_profile source that same file:

source ~/.bashrc

Now retype that command above

tput colors

 


that is more like it! 😀

Now what is this good for?
Vim themes, terminal browsers, and anything else that might use color.
Speaking of vim themes! My top vim themes coming soon!

To hold you over heres an awesome them called xoria256.vim (which will only work with 256 terminal colors)
http://www.vim.org/scripts/script.php?script_id=2140

%d bloggers like this: