Selasa, 13 April 2010

Using Appcelerator Titanium with Ubuntu

As anyone can tell by reading other posts in this blog, I am a programmer and I try and use various programming languages and methods all the time. I found Titanium a few months ago and started using it when it was only version 0.7. It has matured very quickly since then and it makes for an interesting platform to develop on. To describe it in a just a sentence it allows for crossplatform desktop application development using only HTML and Javascript. You can also use PHP, Python, and Ruby, but you don't have to. There is also a mobile development side that works quite well also. For a full desciption of what it can do head over to Appcelerator.com.

Follow these steps to install for Ubuntu 9.10:

  1. Navigate to Appcelerator.com and click download Titanium.
  2. Click on the link to download either 32-bit or 64-bit Linux. If you are unsure just use the 32-bit.
  3. Extract the archive and put the extracted folder anywhere you want. Personally I have a folder where I keep any downloaded programs in my home folder.
  4. There is an executable file called "Titanium Developer" inside of the extracted that you can then run and follow the directions to install it. I usually choose to install it into my home folder because I had problem with installing it anywhere else.
  5. The last thing you may want to do is create a shortcut either on the desktop or in the menu so you can easily start Titanium Developer. This can be done with the alacarte program.
Go ahead and start creating your desktop programs, and relish in the fact that you did not have to use any other language besides the ones you already use for web development.

Minggu, 04 April 2010

Introduction To Wood Carving

Wood FlowerI decided to take up a wood carving class because I've always wondered how to carve wood. It seems to me that it is easy to slip and make mistakes while carving wood, but many pieces of wood work I've seen are just downright PERFECT With a strong interest and an open mind, I signed up for this class. The bad thing is that I could not finish the class because I was in the process of moving. So I made a strong effort to finish my first piece.

Introduction To Wood Carving: Tools

As far as I know there are not many wood carving tools to master in the world of wood carving. Essentially you just need to be able to make cuts and chisel away wood.

* A mallet is a wood hammer that you pound on top of another tool to make a cut. We usually use it to make stop cuts with a chisel. One looks like the following:
Mallet for Wood Carving

* A chisel is often used to make "stop cuts" so that you can use other tools to take out wood not beyond the stop cut. It comes with different sizes. Some are completely straight (used to make stop cuts and smooth out the background) and others are bent toward the middle (used to cut wood). Here's a chisel:
Chisel for Wood Carving

* A V tool looks like a "V". It comes with different sizes as well, and the purpose is to cut a trench. Note you can also use it to make stop cuts if your design calls for it. Here's what a V tool looks like:
V Tool for Wood Carving

* A U tool looks like a "U". It comes with different sizes as well, and the purpose is to gouge wood. Note you can also use it to make stop cuts if your design calls for it. You may not discern the difference between a U tool and a V tool, but here's what a U tool looks like:
U Tool For Wood Carving

These wood carving tools are enough to get you started and will be the main tools for the remainder of your wood carving career. So mastering them is your top priority!

Introduction To Wood Carving: General Procedure

In general, wood carving falls into two categories: carving on a flat piece of wood and leaving the other side untouched (called Bas-relief or "raised pattern"), and carving all around the wood into whatever shape you want. Due to time constraints we only did a piece in the first category. Here is a process of making a Bas-relief piece:

* Make a pattern: Pick a design and draw your design on a flat piece of wood. We used mahogany but you can use other types of wood like ebony wood. You can also draw your design on tracing paper on top of the wood so that you leave your design on the tracing paper as well as on the wood. Then you will be able to have reference to your design while carving on the wood.

* Carve away: You use different wood carving tools to carve and chisel on your wood. You can refer to the previous section on the tools we used and what each does. In general, you use a V tool to cut a shallow trench just outside the pattern lines, and you use a wide chisel to make stop cuts at the borders. Then you use various tools to take out the wood between the borders and the pattern lines. Then you work on the pattern

* Post process: Once you are done, you can sand it with sandpaper or a sanding machine, to smooth out the edges. Or you can stipple some pattern on the background. It's really up to your taste. I prefer a smooth background, but some people prefer a rough background. Then you can put a layer of finish or wax on it, to make it last longer and protect it from mold.

Introduction To Wood Carving: Wood Flower

This is the first wood carved piece I made It's a flower. It doesn't look too cool, but I didn't have time to make a much more sophisticated piece. Still it's enough to get me started.

Wood Flower

This wood carved flower took me 3 weeks, 3 hours per week, to finish.

Introduction To Wood Carving: Conclusion

Wood carving is nothing to be scoffed at. It takes a lot of patience, effort, and time to complete a piece. When you are carving, you really need to be careful with how much pressure you apply. You put enough pressure to take out the wood you don't want, and you stop to prevent taking out the wood you want to keep. If you are being sloppy about it chances are you will end up a messy piece. The wood carving techniques I really want to learn is the second category - carving the wood into whatever shape you want. I want to make little wood animals like carved bears or carved fish. Hopefully in the near future I will find classes like this where I live and will be able to expand this section with more thoughts and pictures of more pieces!!

Jumat, 02 April 2010

About FTP, or File Transfer Protocol

What is FTP?

FTP stands for File Transfer Protocol. It is a protocol that allows two machines to send files back and forth between each other. It is widely supported and very common in web hosting services. The bad thing is that it does not support encryption by itself, but in most cases it's not important


What is the FTP command to read a file on the FTP server?

More precisely, what is the FTP command to show the contents of a text file on the FTP terminal directly? There are at least two ways to do this:

First, There are many FTP client and server flavors. They should all support core commands like 'get' and 'put', but other things they allow you do pretty much are up to them. Try the 'page' command.

For example:
ftp>ls
readme.txt
ftp>page readme.txt
............<content of readme.txt>.......


If the contents of the file are too long, you can click space bar to show next page. You can enter 'ZZ' (upper case Z twice) to quit viewing the file. You can also navigate by using the arrow keys.

Second, execute 'get' to transfer the file to your local machine and read it from there. This is a bit of a hassle but it's a sure fire way to work
 
support by: infomediaku.com