Instalasi JFreeChart Library di Java

Posted by NanoTutor | Thursday, April 02, 2009 | | 2 comments »

JFreeChart adalah sebuah libray tambahan yang berguna untuk membantu kita dalam
membuat chart(bar,pie,timeseries,dll) pada program java kita, bersifat opensource, fitur2x yang lengkap untuk
membuat berbagai macam chart. Pokoknya JFreeChart merupakan library chart yang lengkap dan powerfull.



Berikut langkah-langkah yang dibutuhkan untuk membuat chart di java dgn JFreeChart :
1. download JFreeChart dr internet versi yg ada saat ini => jfreechart-1.0.5.zip(versi tar jg ada) terserah pilih mana.
2. ekstrak file tersebut. buka folder hasil ekstraknya, n terdapat beberapa folder di dalamnya spt:(ant,experimental,checksytle,gjdoc,lib,source,swt,test,dan file demo.jar)
klo mau lihat contoh2x chart yg bisa dibuat dgn JFreeChart buka file "demo.jar" click aja 2x.
3. file2x yang anda butuhkan (file2x .jar) agar bisa menggunakan JFreeChart ada di folder lib/(file.jar).
4. copykan semua file tersebut ke c:j2sdk1.4\jre\lib\ext\[file2x JFreeChart yg dicopy].
5. selanjutnya jangan lupa untuk mengarahkan/ mengeset ClassPath caranya :
a. masuk ke controlpanel-system-advanced-environment variables :
b. pada bagian "user variables" pilih "new" akan keluar window baru yg isinya:
pada variable name isi: CLASSPATH
pada variable value isi: ".;C:\j2sdk14\jre\lib\ext\jfreechart-1.0.5.jar;C:\j2sdk14\jre\lib\ext\jcommon-1.0.9.jar;%CLASSPATH%"
asumsi : anda belum pernah menggunakan library ke 3(belum pernah setting CLASSPATH sebelumnya di komp.)
penting: untuk lebih aman, tambahin aja di variable value nya alamat semua file2x jar yg ada di folder ext
caranya sama aja kaya nambahin file jfreechart-1.0.5.jar dan jcommon-1.0.9.jar
n tiap alamat diakhiri dgn ";"
c. ok
6. anda sekarang sudah bisa menggunakan library2x dan kelas2x yang ada di jfreechart.


Read more...

Sekilas Kelebihan Bahasa Pemrograman Java

Posted by NanoTutor | Thursday, April 02, 2009 | | 0 comments »

Apakah Java itu?

“Java adalah suatu teknologi di dunia software komputer. Selain merupakan suatu bahasa pemrograman, Java juga merupakan suatu platform.”
Penulis secara ringkas telah menjawab pertanyaan tersebut dalam kalimat tersebut, dan berikut ini penulis akan menjelaskan lebih lanjut:
“Java merupakan teknologi di mana teknologi tersebut mencakup Java sebagai bahasa pemrograman yang memiliki sintaks dan aturan pemrograman tersendiri, juga mencakup Java sebagai platform yaitu di mana teknologi ini memiliki virtual machine dan library yang diperlukan untuk menulis dan menjalankan program yang ditulis dengan bahasa pemrograman java”.


Asal muasal Java

Java diciptakan oleh suatu tim yang dipimpin oleh Patrick Naughton dan James Gosling dalam suatu proyek dari Sun Microsystem yang memiliki kode Green dengan tujuan untuk menghasilkan bahasa komputer sederhana yang dapat dijalankan di peralatan sederhana dengan tidak terikat pada arsitektur tertentu.
Mula-mula James Gosling menyebut bahasa pemrograman yang dihasilkan dengan OAK tetapi karena OAK sendiri merupakan nama dari bahasa pemrograman komputer yang sudah ada maka kemudian Sun mengubahnya menjadi Java.
Akhirnya setelah melalui beberapa transformasi dan proses, Sun akhirnya meluncurkan browser dari Java yang disebut Hot Java yang mampu menjalankan applet. Setelah itu teknologi Java diadopsi oleh Netscape yang memungkinkan program Java dijalankan di browser Netscape sejak January 1996 yang kemudian diikuti oleh Internet Explorer. Karena keunikan dan kelebihannya, teknologi Java mulai menarik banyak vendor terkemuka seperti IBM, Symantec, Inprise, dll.
Akhirnya Sun merilis versi awal Java secara resmi pada awal 1996 yang kemudian terus berkembang hingga muncul JDK 1.1 kemudian JDK 1.2 yang menghasilkan banyak peningkatan dan perbaikan sehingga mulai versi ini Java disebut Java2. Perubahan yang utama adalah adanya Swing yang merupakan teknologi GUI (Graphical User Interface) yang mampu menghasilkan aplikasi window yang benar-benar portabel.
Dan pada tahun-tahun berikutnya (1998-1999) lahirlah teknologi J2EE (Java 2 Enterprise Edition) yang berbasis J2SE yang diawali dengan servlet dan EJB kemudian diikuti JSP. Kelebihan Java di lingkungan network dan terdistribusi serta kemampuan multithreading mengakibatkan Java menjadi cepat populer di lingkungan server side.
Terakhir teknologi Java melahirkan J2ME (Java 2 Micro Edition) yang sudah diadopsi oleh Nokia, Siemens, SonyEricsson, Motorola, Samsung untuk menghasilkan aplikasi mobile baik games maupun software bisnis dan berbagai jenis software lain yang dapat dijalankan di peralatan mobile seperti ponsel.


Kelebihan Java
Mengapa Java sering dibicarakan dan memiliki daya tarik bagi para programmer? Karena Java merupakan suatu teknologi yang unik dan revolusioner dan merupakan teknologi pertama di dunia software yang memiliki semboyan “write once, run anywhere”. Semboyan tersebut telah terbukti karena banyak program Java dapat dijalankan di berbagai platform Sistem Operasi, seperti Linux, Windows maupun Unix.
Java telah mengatasi masalah portabilitas yang sering menjadi kendala dan hambatan dalam pembuatan suatu aplikasi software. Mengapa? Karena software developer harus mengeluarkan banyak tenaga, pikiran dan waktu untuk menghasilkan aplikasi yang dapat berjalan di operating system atau platform lain.
Java dapat mengatasi kendala tersebut karena program Java dapat dijalankan secara langsung tanpa banyak perubahan berarti di sistem operasi atau platform lain.
Java juga didesain untuk menghasilkan program dengan seminimal mungkin bug karena kemampuan sebagai berikut :
• Java didesain untuk menghilangkan alokasi memori dan dealokasi memori secara manual. Java memiliki garbage collection otomatis yang mencegah adanya memory leak. Memory leak adalah masalah yang sering dihadapi programmer c dan c++ dimana memori yang digunakan untuk objek atau variabel yang sudah tidak digunakan tidak didealokasikan sehingga memungkinkan adanya kehabisan memori karena proses alokasi maupun dealokasi yang tidak diatur dengan baik.
• Java memiliki array yang tidak memerlukan pointer sehingga memudahkan para programmer.
• Java menghilangkan banyak kebingungan terjadi apabila terjadi proses assignment(pemberian nilai) pada statemen konditional seperti berikut:
if (varnya=5)
Kode di atas menyebabkan program Java tidak dapat dikompilasi karena Java membedakan tanda = yang digunakan untuk pemberian nilai dan untuk pengecekan kondisi true atau false yang harus menggunakan tanda = ganda (==).
• Java menghilangkan multiple inheritance pada c++ dan menggunakan interface yang memiliki kemampuan sama tetapi lebih sederhana.


Karakteristik Java


Secara singkat, karakteristik Java adalah :
• Sederhana
Java tidak memiliki sintaks aneh tetapi banyak menggunakan sintaks c++ yang sudah banyak dikenal sehingga java tidak menyulitkan bagi para programmer. Bahkan java memberikan banyak peningkatan dan kemudahan dibanding c++.
• berorientasi objek
Java merupakan pemrograman berorientasi objek yang murni. Dalam pemrograman Java semua adalah objek, terkecuali tipe data primitif.
• dapat didistribusikan dengan mudah
Sifat terdistribusi dari Java sangat tampak sebagai applet dan library yang mampu bekerja dalam jaringan dan bekerja dengan objek terdistribusi (RMI) dengan sangat baik. Saat ini Java juga memiliki kemampuan untuk server side processing yaitu teknologi Java Servlet dan Java Server Pages.
• aman
Aman karena program Java memiliki library security serta policy yang membatasi akses applet di komputer client.
• diinterpretasi oleh interpreter
Java memerlukan virtual machine yang bertindak sebagai interpreter yang menterjemahkan bytecode (file class) menjadi bahasa mesin yang dimengerti oleh komputer host.
• portabel
Portabel karena Java dapat dijalankan di berbagai platform tanpa perubahan kode sama sekali.
• multithreading
Java memiliki kemampuan untuk menangani dan menjalankanbanyak thread sekaligus.
• dinamik
Java merupakan teknologi yang terus berkembang, dan hal ini tampak nyata sekali dengan library yang terus ditingkatkan kemampuannya dan kelengkapannya. Bahkan Java saat ini telah menjadi teknologi handal untuk aplikasi mobile dengan adanya Java 2 Micro Edition.
• netral terhadap arsitektur hardware
Java dapat dijalankan dengan baik pada komputer yang memiliki arsitektur berbeda-beda.
• robust
Java merupakan teknologi yang mampu menolong programmer untuk menghasilkan program secara cepat dan handal karena Java mencegah adanya memory leaking, meniadakan pointer(yang merupakan keharusan pada programmer c dan c++) serta mencegah berbagai error yang mungkin terjadi dengan adanya berbagai proses pengecekan awal pada kompilasi.


Read more...

Using AJAX in PRADO Application with CallBack Event

Posted by NanoTutor | Thursday, April 02, 2009 | | 0 comments »

Requirements : You have already know about prado v3.x basics, and Connection to Postgre SQL database using TActiveRecord.
This time I will show you how easy using Ajax in Prado for create a simple web application with two combo box that have related each other, and both are connected to database for binding the items. When I choose the item from the first combo box , the second combo box will load items that have a relation with item that I have choosed from the first combo box. In desktop application there was no problem for doing that, but in web application you can’t directly do that, because normally in web if you want to access to the database you must send some parameter and then the page and item that you have choosed from the first combo box will automatically refreshed.
The First Question is : “how can I do that things, without refreshing the page and the selected item still appear at the first combo box”? The answer is , You must using Ajax.
The Second Question Appear: “I don’t know anything about Ajax programming, Can I do that using Prado ?” The answer is , Of course,You don’t have to know about Ajax programming, the only thing you know is Prado already support Ajax, and you can easily using Ajax with Prado.
This is the example program :
We have 2 table for example, each table will represent the combo box at the presentation logic. Then I’ll create database in postgre sql 8.x named “dbblog”



This is the sample data :


Of course we must already prepare the prado project skeleton :

This is the code for Application.XML . there are two important setting here the “ActiveControls” and “Database Connection to PostgreSQL with TActiveRecord”

Next, we must create two class that represent 2 table (tbl_prov.php & tbl_subprov.php) which inherited From TActiveRecord Class. Place it below database folder.
tbl_prov.php

tbl_subprov.php

Now we must create 2 files below pages folder : Home.page (presentation) and Home.php (process)
Home.page

Home.php

That’s all,.. now you can try to access your application. Then you can select any item in the first combo box, and the second combo box will automatically load items related to it. And of course without refreshing the page.. it’s so easy using Ajax with Prado Framework..And the most important, there are no different logic between web application with Prado Framework and desktop application (event driven) you can see it at home.php file and compare it with logic when you create a same applicaton with vb or other even driven desktop application.


Read more...

6 Way To increase Earnings

Posted by NanoTutor | Thursday, March 05, 2009 | | 0 comments »

Welcome to our first-ever guest blog post on Inside AdSense. We're
thrilled to have none other than Blogging Evangelist himself, Darren
Rowse, to share his expert tips on AdSense optimisation. Darren first
discovered blogging in 2002, and initially thought he'd turn it into a
hobby to supplement his full-time job. These days, Darren runs a
handful of successful blogs, his most popular being Digital Photography
School, and has co-authored a book. He also posts regular tips and
advice on ProBlogger.net, a respected and successful resource for
bloggers around the world.We recently caught up with Darren at his home
office in Melbourne Australia, and asked him about his experience with
Google AdSense.October 4, 2003 is a date I'll never forget - that was a
day that my life changed. It was the day that I discovered AdSense and
added it to my very first blog. I added that first advertisement to my
blog on a whim, with what I thought was the lofty dream that I might be
able to pay for my blogs hosting costs. Over 5 years later, those
little text ads have paid my mortgage, fed my family, and enabled me to
move my blogging from a hobby, to a part time job, to a full time job
and beyond.It's not been an 'overnight success' by any means but as
I've learned to use it, AdSense has been one of my highest online
income streams. My #1 Tip for Using AdSenseIf I had to narrow my advice
on using AdSense down to a single word it would be 'experiment'. Let me
explain. That day back in October of 2003 I had no idea on what I was
doing. The next day when I logged in to see how much I'd earned it was
barely enough to buy me a coffee. However, on that day I decided that
those few dollars in earnings showed potential and I determined within
myself to learn how best to use AdSense to grow that income. Almost
everything I've learned since that day has been through trial and
error. It has been a long process of testing and tracking results. You
see, while there are a few good home truths that seem to work on most
sites, every website that I've used AdSense on is different. Some
things work well on some sites, but it is rare to find something that
will work on every site. As a result I tend to experiment with my use
of AdSense in these six ways:
- Ad Position - Most AdSense publishers have seen the neat little heat
map that AdSense has produced to show where ads work best on websites.
In general it works fairly well and is a great place to start, but make
sure you experiment with new positions for ads and see what works best
for your site. Hint: Ads near (or even surrounded by) content have
worked the best. I've also found ads at the end of content perform
well. People get to the end of reading your article and then are
looking for something to do or click -- an ad positioned there can work
well.
- Numbers of Ads - More ads earn more than less ads... don't they?
Unfortunately it isn't always the case. Test different combinations and
numbers of ad units on your site. There's usually a 'tipping point'
where you hit a ceiling of how many ads your users will accept -- push
it too far and you could hurt reader engagement, traffic, and in the
long run your earnings. On the flip side of this, don't be afraid to
have more than one or two ads on a page, particularly if you have long
pages with lots of content.
- Ad Design - I can still see the first ads that I first used on my
blog back in 2003. I can still see them because they fried their
imprints into my retina -- they were so LOUD! I figured that the ads
would do best if people noticed them so I went for the most crazy color
scheme I could come up with. Over the years I began to experiment with
different combinations of ads and found that more subtle or blended ads
tended to work best for me. Having said that, you can sometimes blend
too much, to the point that the ads become invisible to your reader. So
test different colors and designs of ads to see which work best. Use
the ad rotating tool that AdSense offer publishers to rotate different
designs to work against ad blindness among regular readers.
- Ad Sizes - AdSense offers us a range of different ad sizes, so
experiment with them all to see which works best. Hint: Some might
think that the bigger the ad the better it performs. This is not always
true. For example, I found that the 'large rectangle' ad (336 x 280)
didn't work as well for me as the smaller 'medium rectangle' ad (300 x
250). It turns out that more advertisers (at least those in my niche)
prefer the medium rectangle ad as it's a more standard ad unit size
than the larger one. Again, the key is to experiment and see what works
best for your site and niche.
- Ad Formats - I've found that choosing image and text ads works better
than just choosing text ads, but that's not the only choice we get as
AdSense publishers. AdSense also allow us to run link units, AdSense
for search, etc. I've found that each of these different formats will
work differently from site to site. I've had blogs where the link unit
ads were the best performing units on the site while on other sites it
didn't really perform at all. You'll never know unless you test it!
- Which Content Converts? - One of the best advances that AdSense has
made in the last year has been the integration between it and Google
Analytics. To be honest I'm still digging into the metrics that this
opens up, but the insight that this gives has amazing potential to
increase earnings. By looking at this data you can see what type of
content is converting and what isn't. You can also see what type of
traffic is converting and what isn't. For example, I've found that
search engine referrals are converting better than traffic from social
media sites on one of my blogs. Knowing this is powerful as it tells
you what type of ads to serve to what types of traffic, what type of
promotion to put effort towards, and what type of content to write more
of.Test Track Test Track....There are books, blogs, articles, forums,
and other kinds of resources available to AdSense publishers to help
them learn how to use AdSense better. However, in my experience the
best way to learn is to 'do'. Put time aside to try new things and then
put more time aside to review what you learn. But don't leave it at
that. When you learn something -- test it against something else (do
some research on A/B split testing to learn how to do this). This
continual learning will help you to grow in your own expertise of
AdSense and increase your earnings.Posted by Darren Rowse - Blogging
Evangelist and AdSense publisher

Type rest of the post here


Read more...

Western Union In Indonesia

Posted by NanoTutor | Thursday, March 05, 2009 | | 0 comments »

We're excited to introduce Western Union Quick Cash as a new payment
method for Indonesia. If you're located in Indonesia, you can now sign
up to receive your AdSense payments in cash using the worldwide Western
Union money transfer service. This payment method is quick, easy, and
free -- that means no more waiting for checks to arrive in the mail or
to clear at the bank.A few things to keep in mind:
- Payments follow our normal payment schedule and will be available for
pickup at your local Western Union agent the day after they are issued.
- You'll need to present a government-issued ID that matches your
AdSense payee name when picking up your payment. If you need to update
or correct the payee name listed in your account, please follow the
instructions listed in our Help Center.
- Payments by Western Union are currently only available to individual
payee names, but not to businesses.
- Payments must be picked up within 35 days of issue or they'll expire.
If this happens, a payment hold will be placed on your AdSense account
and the payment will be credited back to your account.
- Payments will be made in US dollars, but depending on your local
Western Union agent, they may be picked up in your local
currency.Follow these instructions if you're interested in signing up
for payments by Western Union. You can also find useful information in
our Help Center about exchange rates and other countries where this
payment method is available. We hope you enjoy using this new payment
option in Indonesia!Posted by Deborah Chang - AdSense Payments Team

Type rest of the post here


Read more...

Types and causes weakness of the Website

Posted by NanoTutor | Monday, March 02, 2009 | | 0 comments »

Source : Syafii, M,. 2004. Panduan Membuat Aplikasi Database Dengan PHP5 Postgre-MySQL-Oracle.Penerbit Andi. Yogyakarta.

Deface
You may have often heard or saw a site that has content not suitable. Obvious example is a site-education institutions (ac.id) to the index page of the official website of the picture or logo has been changed. Incident, in the world of hacking, called deface. Deface is an attack technique with the image or change the content of the website for a particular purpose. In fact, there are many factors that cause all of that. According to the analysis of the author, these factors are:

1. Operating system
If you intend to buy the domain and hosting, make sure that the operating system is safe and reliable in use, such as for example a Unix operating system variants. Please note that almost all of the hosting center are using Redhat Linux.
2. Programming Error
Low awareness of the website you are easily exposed to deface. For example, the error in using the user management in MySQL, but the data show that the user is able to perform SQL delete, insert or drop. This is the common mistakes that seemed as a habit that can not be abandoned. If you compile a program that uses a web-based MySQL database then you should have a user that is able to select the command, if you are only a web show in the MySQL database server to the web. You can create new users that are only able to insert or delete command. Deface technique done with the action called SQL Injection.

Password Theft
Another thing is to be considered when creating web pages that have a user authentication system. You must create a program may be safe to include encryption. No password or data encryption so people can easily tap (Sniff) your data. Thus, the use of encryption is also very necessary.
Creating confusion in the Directory
Avoid making the directory easy to order and the name is known by other people. For example, almost all websites have a folder called images, include, or other similar folders. This of course should be anticipated so that if users try to access the way, we already have a preventive action.

Error in File Include

When you read a lot about PHP3 tutorial or an older version then to insert a file in the PHP file is to provide the Include ( "db.inc"). In fact, if the *. inc files are called directly from the browser the contents of the file will be displayed. This means that someone can see the contents of your original file. If you just paste the file does not contain the usual problems. However, if you paste the configuration file contains a database then this will be dangerous.
Permissions for the folder contents
Keep other people can not easily find out each folder that you created in the order in the structure of the website. People can do it directly by typing the name of the folder. For example, if someone typing directly in the addres bar:

http://localhost/happy-holidays/images/



you can prevent problem like this by changing the configuration for httpd.conf in the folder under Apache, with the command to change or delete Options Indexes MultiViews tags below Directory. Another way that is easier to add in the index.php file in every folder that does not have the file index.php. So if someone tries to access directly the contents of a folder in the web then index.php file will be automatically executed, and the contents of the folder we will not appear as the image above.


Read more...

How can I make my blog load faster?

Posted by NanoTutor | Thursday, February 26, 2009 | | 2 comments »

Link Source : help.blogger.com
The speed at which your blog loads is critical to attracting more readers to your blog. If your blog takes a long time to load, many readers may leave your blog before they have the chance to read it. Here are a few tips and tricks that will help your blog load faster and attract more users:
Posts

Your blog's load time can be affected by the number of posts you display on your main page. You can easily edit the number of posts displayed of the main page from the Settings | Formatting tab. You can then select the number of posts you want to display on the main page. We recommend displaying 10 or fewer posts on the main page.
Third Party JavaScript and Links

For optimal blog load speed, we recommend using Google/Blogger widgets, JavaScipt and links. However, if you need to use third party JavaScipt and links, your blog will load much faster if you put all JavaScript at the bottom of your blog. If you have third party JavaScript and links in your sidebar, put them in at the bottom of the sidebar.
Images and Media

The more images, videos and other multi-media you have on your blog the longer it will take to load. However, images and other multimedia are important to attracting users to your blog, so it is important to optimize the load speed of your images and media. Here are a few tips to increase the load speed of your media:

* Decrease the size of your images or use thumbnails that link to the full-size image.
* If you use third party images, consider uploading them to Picasa Web Albums via the Blogger post editor.
* If you have a large number of images to display, you can upload all your images (from a vacation or event) to a Picasa Web Album and link to the album in your post or sidebar.

Other suggestions

* If you've added any custom CSS to your blog, make sure you put it at the top of the page.
* The most important content of your blog that catches readers attention should load the quickest. To help you identify which items are taking the longest to load you can use Stopwatch. To use Stopwatch, enter your blog's URL into the text box and click "Start StopWatch". Stopwatch will then open your blog in a frame and will record the time it takes for everything on your blog to load, including images, videos, widgets, etc. Take note of the items that take the longest to load and modify them appropriately using our suggestions.


Read more...

What is SEO?

Posted by NanoTutor | Thursday, February 26, 2009 | | 1 comments »

Source : www.rumahweb.com

One of the many indications of a successful website is traffic. Traffic shows that tune by website visitors. One effective way to bring visitors to the website is through search engine. Usually the visitor will find the website through search engines by using keywords or keyword.

Hope the website owner of course appear in the top search results on search engines because the tendency will of course visitors to click on results - results that appear top.

The question then is how our website can appear on the search results for search engine keywords - keywords that are relevant to our website content? Further how we can so that the website appears on top in order to attract more visitors?

SEO solution
SEO is the process of a web page that can be read better by search engines which are crawler (Google, Yahoo, MSN, etc.). SEO process can involve a web page itself, but does not also involve the possibility that other website.

Not all of the website be properly by search engines. Website that use the full flash at all at this time can not be read properly by search engines, while the website will meet the W3C standard can be read perfectly by search engines. Search engines will also be difficult to read the web using JavaScript and web navigation with the frame.

Many factors that determine success in SEO. In addition, the method for search engines to index the search results are often changed. Therefore, the SEO can be said is very dynamic because the method changed from time to time, and also the SEO can not guarantee whether your website will appear in the top of the search index or not. Please see the article - an article about SEO in this website and start generate traffic from search engines. Cheers!


Read more...

Variable in PHP

Posted by NanoTutor | Wednesday, February 25, 2009 | | 0 comments »

PHP recognize the existence of variables and operators, as other programming languages. Required to declare the variable and the value of a. The operator is required to perform mathematical calculations, giving values to variables in a particular, and to compare the value of two variables.

What are the variables?
Variables used to store data temporarily and the value can change each time the program is run. Data stored in the variable will be lost after the program finished executable.

PHP Variable and Value Types
PHP variables start with 'Variable name can be a combination of alphabet letters, numbers with a maximum length of 32 characters. Variable names are case-sensitive. Variable name can only be beginning with the letter or underscore, then the characters can be letters, numbers, and underscores. To be able to use variables, need to be two things:

Declaration

Declaration of variables is introduced to the program. In writing the PHP script, often combined with a declaration initialization. Example:

$ value, $ day.

Initialisation
Variable initialization is to provide a value for the first time to a variable. Example: Value = $ 50, $ = NamaHari Monday.

PHP variables have some type of value that is:

Integer (Numbers rounded)
The integer can be written in the form of:
Decimal number, for example: $ a = 1234;
Negative decimal number, for example: $ a = -123;
Hexadecimal number, for example: $ a = 0x1A with the same number of decimal 26;
Octal numbers, for example: $ a = 0123; with the same number of decimal 83
Floating Point
Floating Point Numbers can be declared using the following syntax:
$ a = 1234;
$ b = 1.2e3;
A maximum value of the Floating Point ~ 1.8e308 is reached with the accuracy 14 decimal digits.
String
Syntax string variables can be written in 3 ways, namely: Using single quotes ( ') example:
$ str = 'Hello Nano';
Using double quotes ( ") example:
$ str = "Hallo";
Using sign heredoc (<<<)


Read more...

About HTML

Posted by NanoTutor | Tuesday, February 24, 2009 | | 1 comments »

Introduction to HTML

HTML (hypertext markup language) is a language that uses a simple command in the standard ASCII text document to provide a visual display that is integrated. HTML consists of simple commands that describe how the structure of the document, but does not do formatting. The browser will display the HTML formatting and display HTML, so adjust according to the visitor's computer screen.

HTML tag using the form <...> that a web browser how to display page elements such as text or graphics. HTML code is located between the container tags with <..tag_name> beginning and end with <..> with '/'.

HTML tags have three main units, the HTML, HEAD and BODY. HTML tags represent a function of the HTML document, tags HEAD function provides information about the document, and determine how the BODY tag contents of a document displayed by the browser.

HTML example script:
Views in the Browser:
In the BODY tag you can write a script to set the HTML view as a background color, font size, font type, font color, links to other documents, add images and so forth.
If the script with the HTML course we can create a web page that is good, and why you need to add a PHP script? PHP create HTML web pages to be dynamic. HTML combined with the PHP script will generate a dynamic web views, beautiful, and interactive. PHP and HTML will be mutual cooperation. PHP can generate HTML, and HTML can forward the information to PHP.


Read more...

Do you need music for your Karaoke party, or just want to sing along to your favorite song without those pesky singers getting in your way? Here's a few ways to get a song without any vocals.



Find Instrumental Versions
1. Go to any search engine, like Google, and type the name of the song, the artist, or both. Put the song name in quotes to narrow the search.
2. Add the word "instrumental" or "karaoke" to the search.
3. Add the word "MP3" to your search if needed; it may expand/narrow the range.
4. Make sure the song you're downloading is legal and virus free.

Automatically Removing Vocals with Wavosaur

1. Get the audio editing program "Wavosaur"
2. Open up the song
3. Go to process>effects>vocal remover
4. Does exactly what is outlined underneath.
5. Save it as .wav


Removing Vocals Yourself
1. Get the regular MP3/OGG/WAV of the song you want. Make sure it's legal, in stereo and of the highest possible quality (at least 128kfor MP3, 192k is better)
2. Obtain a copy of the free audio editor Audacity. Other programs are available, but they usually cost and this will do fine. Install the program, read the help files and familiarize yourself with the interface, as the individual instructions are beyond the scope of this article.
* Download the LAME MP3 codec if you want to export your project to MP3, and install it per the instructions for Audacity.
3. Import the MP3 to a new project in Audacity.
4. Open the track menu (click the arrow next to the track title), and choose “Split Stereo Track.”
5. Select the lower track (the right channel) by clicking it in the area around the mute/solo buttons.
6. cut the bass out of the second channel from around 100hz and below (adjust cut frequency to keep bass guitar, kick drum and other bass instruments that are below voice frequencies)
7. Choose “Invert” from the Effects menu.
8. Using the track menus, change each track to “Mono.”
9. Listen to your track, and if it sounds alright to you, go ahead and export it to MP3 or WAV, depending on what you need.

Tips
* The better the original song, the better your vocal-less version will sound.
* Make sure your MP3 is in stereo, or this will not work.
* Avoid "Vocal Cut" and other similar features in audio programs. They usually do this same thing, or attempt worse procedures, and never sound as good as doing it manually.
* This process works by "cancelling out" all the information in the exact center of a stereo recording, through Phase Inversion. This is usually where vocals reside, but, the center pan will also generally contain the drum/bass tracks on most songs, and you'll lose most of those as well.
* Don't be surprised if "echos" of the vocals remain. Unless the vocal is perfectly clean, and centered on the track, any reverb or flanger effects will most likely stay present. This also applies to backing vocals.
* If this process makes the song unlistenable, there are ways to fine-tune the procedure. However, the discussion on audio theory and technical details is beyond this article. Searching the Internet will possibly find you some more help, if you need it.
* To check if your song can become vocal-less, on your MP3 player or whatever multimedia player you use put on the song you wish to turn into a karaoke, as the song plays unplug your headphones and put them slightly in so you can still hear the music and lightly push in the headphones until you can't hear the vocalist and once your on the stage you can't hear much of the vocalist hold in where the position of the earphones are in (Caution: this can damage your earphones so be sure you are using old ones) if during the process you can still hear the vocalist clearly, then it's a clear answer that you cannot turn the song into a karaoke but if you can still hear the echoes of the vocalist then it's okay for the song to become karaoke. This is useful because you can determine if the song you want as a karaoke can be vocal-less.
* For more luck with this procedure, try following these steps on tracks from a band that you know was self-recorded, or did not seek the use of a professional for recording.

Things You'll Need
* Audacity, the free audio editor (or similar)
* A copy (MP3/OGG/WAV) of the song you want
* Moderate technical knowledge
* Patience



http://www.wikihow.com/Take-an-MP3-File-and-Delete-the-Words-to-Create-Karaoke


Read more...

7 Cool Software Easter Eggs To Discover

Posted by NanoTutor | Monday, February 23, 2009 | | 0 comments »

Easter eggs

In the virtual world, it’s little lines of code inserted into the main programs that show up through a combination of key strokes or commands. Often it is a prank or just a bit of playful ego on the part of the programmer that ‘hatches the egg’ but for us common folks the discovery is unexpected fun.

So here’s a look at the basket of some popular software Easter eggs found in some common Windows applications…

1. Solitaire is easy (only in XP)
If you are finding it difficult to win in Solitaire, just press Alt + Shift + 2. Presto! The game ends and you win.

2.Foul play at FreeCell (only in XP)
Start a new FreeCell game. Hold down Ctrl + Shift + F10 during play. A dialog box appears asking you to Abort, Retry or Ignore. Select Abort and then move any card anywhere to win the game.

3.Window speaks proper (only in XP)
Go to Control Panel, open up the Speech properties applet and in the Preview field type ‘Crotch’ (without the quote). The voice preview says “Crow’s nest” instead.



4.Windows Welcome Music (only in XP)
An ambient music track you might not have heard before. Navigate to C:WindowsSystem32. We are looking for a folder named ‘oobe’. This folder has a subfolder named ‘images’. In ‘images’ click on the sound file called ‘title.wma’ to hear the soothing track – Windows welcome music.

5.Firefox’s comeback
This was supposedly a rejoinder to the Internet Explorer 5’s own joke that the Mozilla browser caused system crashes. To see Firefox’s reply type ‘about:Mozilla’ (without the quotes) in the address bar and hit it.



6.Firefox and the kitchen sink
In the address bar type in ‘about kitchensink’ (without the quote but with a space). Look at the interesting graphic that opens up.

7.Running Firefox within another Firefox
There doesn’t seem to be any apparent use for this but if you type in chrome://browser/content/browser.xul in the address bar, it will open up another Firefox instance but within the first browser.




Read more...

SEO Tips-1

Posted by NanoTutor | Monday, February 23, 2009 | | 3 comments »

Is not SEO (search engine optimization) is not liked by Google and other search engines. In the previous post I wrote:


The blog title is the first thing seen by google index. Therefore, make the title true title dg posts (articles) and content (content) a post it is very important to get a good position when people search for specific articles via the search engines (search engines) such as google, yahoo and msn.

Then, the blog title that is not how it SEO?

Following list of titles that are not SEO blog. Please added their own comments in the box if there is another:

* Welcome to My Blog or Welcome to My Blog
* Another Blog of Mine
* The Secret
* Campursari
* Etc.

Basically, the blog title that SEO is not a title that does not explain anything or no relevance with the actual blog. If you have a personal blog, should just write your name as the title.


Read more...

Tips to make computer networks (LAN / Local Area Network)

Posted by NanoTutor | Monday, February 23, 2009 | | 0 comments »

computer network? what network? we often hear, but we dont know what it is.
we can imagine like our bodies network (network cells). in our bodies, every device that is connected to each other,
function with each other to work together, although each has a function of levying their own.


a system of said computer network if there is a single computer model that serves all of the tasks
computing an organization has been replaced by a set of computers that many fragmentary but
each other in performing its duties.

other definition of a computer network is a collection of computers, printers and other equipment that
connected in one unit. Information and data moving through the cable-cable or without cable, so
allows network computer users can exchange documents and data, print on a printer
together and jointly use the hardware / software that is connected to the network.

Benefits of Network Computers:

* Resource Sharing, you can use existing resources together. Eg a user who
located 100 km away from the data, does not have difficulty in using this data, as though
data is located in close proximity to us. This often means that troubleshooting computer network distance.

* Reliability, with the computer network we will have a high reliability with the resources have
alternative supplies. For example, all files can be saved or copied to two, three or more computers that
connected to the network. So that when one engine was damaged, the copy machine in the other can be used.

* Save money. Computers have a small ratio of price / performance is better than the
a large computer. Mainframe computers have such great speed approximately ten times the speed
small computer / personal. However, the price Mainframe thousand times more expensive of computer time. Imparity
the ratio of price / performance and speed of this is to make the system designer to build a system that consists of
personal computers.

The steps:

To create a small computer network (LAN), there are some equipment and materials that we need such as:

* Cramping

* Lan Tester

* Cable UTP (Unshielded Twisted Pair) / coaxial (rarely used)

* RJ45 Connector / coaxial cable connector

* Switch hub * min-2 units PC (Personal Computer) with LAN Card, or NIC (Network Interface Card)

Then we define the order of UTP cable that we will use in accordance with its function. eg if we wanted
connect directly from PC-PC, we use the cross, if kia-connect switch to hub first, PCHUB,
then we use straight. if we want to connect 2 LAN HUB-HUB then we use the cross,
we can also use the STARIGHT if there is one hub uplink port.

for ease in remembering the order of the cable, we can use one of the ways that I use, namely
Straight -> if OBHC Cross -> HBOC.

Straight -> OBHC

O -> white orange - orange

B -> white green - blue

H -> blue white - green

C -> white chocolate - chocolate

Cross -> HBOC

H -> white green - green

B -> white orange - blue -

O -> white blue - orange

C -> white chocolate - chocolate

if you have another way please apply, I must be as above. then please each end
tested using lan tester. if the lamp lights according to the expected, then you have succeeded in
Cramping process. please lan card installed on your PC.

to set the IP so that we think about is how no group IP that is used on your LAN. usually for
local network using the IP group 172.17.XX, 192.168.XX 202.168.XX or 10.10.XX to the local network,
minimal set is:

IP address: 192.168.1.2 (example)

Subnet mask: 255.255.255.0 (example)
for the default gateway you can fill in if you want to connect your local network with external networks (both
local network or other internet). for the DNS server you will be content if you are connected to the internet. This DNS server
depending on the rules established by the provider, Telkom Speedy, etc..

if you have no IP set, you can check whether your computer can communicate with
other computers, that is the way to run the ping command in the command, such as

ping 192.168.1.3

(this command produce 4 times the response), to continue to provide the response we add the attribute-t (trace),
like

ping 192.168.1.3-t

No response was given 3 kinds:

1. reply from ....

your computer can communicate with the purpose of your computer.

2. request time out ....

network connectivity problems with the purpose of your computer.

3. destination unreachable ....

network connection to your computer problems.


Read more...

Joomla Overview

Posted by NanoTutor | Monday, February 23, 2009 | | 0 comments »

Joomla! is a content management system (CMS or CMS) is free and open (free opensource) is written using PHP and MySQL database for the internet or intranet. Joomla first released with version 1.0.0. Features Joomla! are caching system to improve performance, RSS, blogs, Polling, etc.. Joomla! use the GPL license.

Origin of the word Joomla itself comes from the Swahili word that means "togetherness."

Joomla basic principles
In general and explicit, Joomla! consist of 3 basic elements, namely the web server (webserver), PHP scripts and MySQL database. Assumed that the web server connected to the Internet / intranet that serves as a service provider site. PHP script consists of program code in the PHP language and database is the place where the content. Joomla using Apache as the web server and MySQL for basisdatanya.

First, the user requesting access to a page with Joomla execute the URL in a web browser which is then connected to the web server. This request in the more technical term known as the query string in addition there is a URL parameter also contains the content (section, category, article ID and others). Based on these parameters, the system script to contact with the Joomla database and retrieve content that is based on its parameters. Finally, the content and the templates (templates) coupled with the return and as html pages, images, css and javascript.

Package Joomla! consists of several separate parts and termodul a very flexible, can be easily developed and integrated. For example "plugins" that allow the author WikiBot in Joomla using the "Wikitags" in the article that function automatically create dynamic links to Wikipedia articles when displayed. There are more available in 1700 "plugins" which officially delegated by the http://extensions.joomla.org/ OpenSourceMatters available at this time and officially moved to http://joomlacode.org with the support of a more complete server.


Read more...

About ActionScript 3.0

Posted by NanoTutor | Monday, February 23, 2009 | | 0 comments »

What is ActionScript?

ActionScript is a language program for the Flash Player. Have the ability as animation, data handling, and more support in the flash-based application. ActionScript executed by ActionScript Virtual Machine (AVM), which is part of Flash Player. In the ActionScript code will be compile into bytecode by the compiler such as the Flex SDK and Flex Data Services. This bytecode will be placed on the SWF file, and will be executed by Flash Player. Other features of ActionScript 3.0 is a robust (fast) and is the object oriented programming.

Benefits from ActionScript 3.0
ActionScript 3.0 has the ability to recognize the previous version of the script. Designed to facilitate large-scale application development and complex use of a large set of data with object-oriented approach, and are reusable (code that can be used again). ActionScript 3.0 will be executed over ten times faster than the previous version of ActionScript.
Compatibility With Previous Versions
All versions of ActionScript can be identified using the Flash Player 9 and the latest. Here are some statements regarding the compatibility of ActionScript:
1. A SWF file can not combine ActionScript 1.0 or ActionScript 2.0 to 3.0.
2. ActionScript 3.0 can be read (load) SWF files written using ActionScript 1.0 or 2.0, but can not access the variables and functions of the SWF file.
3. SWF files written using ActionScript 1.0 / 2.0 can not read (load) SWF files written using ActionScript 3.0. This means that the SWF file generated by Flash 8 or Flex Builder 1.5 can not read SWF files written using ActionScript 3.0.
4. In general, SWF files written using version 1.0 and 2.0 must be changed if used together with SWF files written with ActionScript 3.0.
The diagram below summarizes some of the limitations of previous versions of Flash Player.


Read more...

Class OOP versus Function

Posted by NanoTutor | Monday, February 23, 2009 | | 0 comments »

In the previous tutorial oop PHP, we have learned about the 5 key term in oop. But before we discuss further fifth term, we will first learn the concept of oop alias Object Oriented Programming. This concept is certainly valid for the general good of PHP and other programming such as Java support oop.

Remember this. Actual oop is a way of thinking in creating the program.

In fact in many cases, our program will not differ greatly with the methods that may be structured for this we know. But the important thing is to think how to make everything as an object. Remember this keyword: Think of an object. The more simple, when we create a program, then we will create a variety of classes that we will often use the class and we will make into an object that you can develop later.

Usually books or tutorial will be using examples of objects such as a cat, a house or car. Because the explanation that describes the process of program-based oop similar to the way we think everyday. If not, please believe you buy or read books about oop.

But I never felt that the explanation itself directly with the real examples in the real world has become an example of programming in the abstract. Because we may not make a cat or a house or car with PHP? Therefore I will give a slightly different explanation. I will not start from the example of a real example the abstract, but from the way some thought in making program. Next we see a new process of thinking oop with comparisons to the day-to-day life of yesteryear.

Hopefully more clearly.

Ok, to make it easier to imagine how to make a difference in a normal program and oop, I will submit some of the comparison between the way of thinking in the programming. Ready?

At the beginning of our career, we will generally make a program without function. For example we will create a calculator program. In this example we will focus on making the appearance.

Imagine a calculator. We definitely need to make the future look like a calculator that is not it? Where there are a few key numbers and mathematical operations, and the screen will display any of us in the press that button, and others. Furthermore, in making the program a calculator, we will create a program that long to write all the code to create the display. Start from the outside, forwarded screen, the button 1, button 2, button 3, etc, as well as key operators -, +, x and: = and a button that you create is larger than the others because it is often used.

Well, after you create quite sophisticated in the program, you certainly know that the key is making the process repeated that we can actually make a function with a variable input text will be displayed. (Remember this example is very simplified, so do not protest). So we will create a function key. Here we will make 2 types of key functions, namely small and large button (the button is of course great for the "same as" before that).

Then, after learning oop, then you will create a class called a key. This class is our design so that we can create objects with different key sizes, colors, and the event that occurred when we press the button. With oop, the class we will have a retroactive nature of programming, oop, of course, will help us to create a program based on PHP.

Explanation of the difference between the class with the function is simply the nature oop that we have ever been mentioned in the previous tutorial oop.

With such attributes, the making of the program will be much easier. For example, if you create a program and requires a specific function, you can create your own function or you will find it easier with the Internet. After you download, then you will need to learn the function and how to use it and if necessary modify the core program. This is different from the class in oop. With the class, we only need to know is just.

Explanation of this class will bring us to the explanation that uses everyday objects.

Ok, hopefully this compare with the explanation can help you understand a little oop. Next we will study the concept of thinking in the example object oop with day-to-day. This you need to connect an explanation about the nature of class earlier.


Read more...

Overview of PHP-OOP

Posted by NanoTutor | Monday, February 23, 2009 | | 0 comments »

PHP support in addition to structured programming, which you have learned in the basic tutorial of PHP, also supports Object Oriented Programming, or also known as oop. Although support for the oop PHP is not as strong in Java, but PHP is mature enough to support oop. You can get a lot of class that you need on the Internet to create a program for you.

Before I need to submit, that the making of this program based oop will be very useful if you feel to make large-scale program or programs that will often have some small adjustments.

Object Oriented Programming is a way to create an object-based program, meaning you must change the way you think to be based on an object. But before we move labih far, will be introduced first with some new terms that you will often use oop in the class, object, encapsulation, inheritance and polymorphism.

Actual ability of a programming language to support oop determined by their ability to support fifth term I have mentioned in the previous paragraph. May also, or will you ever wondered what the difference between function and class in oop


Read more...

Adding a site to Google

Posted by NanoTutor | Friday, February 20, 2009 | | 4 comments »

Inclusion in Google's search results is free and easy; you don't even need to submit your site to Google. Google is a fully automated search engine that uses software known as "spiders" to crawl the web on a regular basis and find sites to add to our index. In fact, the vast majority of sites listed in our results aren't manually submitted for inclusion, but found and added automatically when our spiders crawl the web.

However, if your site offers specialized products, content, or services (for example, video content, local business info, or product listings), you can reach out to the world by distributing it on Google Web Search. For more information, visit Google Content Central.

To determine whether your site is currently included in Google's index, do a site: search for your site's URL. For example, a search for [ site:google.com ] returns the following results: http://www.google.com/search?q=site%3Agoogle.com .

Although Google crawls billions of pages, it's inevitable that some sites will be missed. When our spiders miss a site, it's frequently for one of the following reasons:

* The site isn't well connected through multiple links from other sites on the web.
* The site launched after Google's most recent crawl was completed.
* The design of the site makes it difficult for Google to effectively crawl its content.
* The site was temporarily unavailable when we tried to crawl it or we received an error when we tried to crawl it. You can use Google Webmaster Tools to see if we received errors when trying to crawl your site.

Our intent is to represent the content of the internet fairly and accurately. To help make this goal a reality, we offer guidelines as well as tips for building a crawler-friendly site. While there's no guarantee that our spiders will find a particular site, following these guidelines should increase your site's chances of showing up in our search results.

Consider creating and submitting a detailed Sitemap of your pages. Sitemaps are an easy way for you to submit all your URLs to the Google index and get detailed reports about the visibility of your pages on Google. With Sitemaps, you can automatically keep us informed of all of your current pages and any updates you make to those pages. Please note that submitting a Sitemap doesn't guarantee that all pages of your site will be crawled or included in our search results.


Read more...

Rangking

Posted by NanoTutor | Friday, February 20, 2009 | | 0 comments »

Sites' positions in our search results are determined based on a number of factors designed to provide end-users with helpful, accurate search results. These factors are explained in more detail at http://www.google.com/corporate/tech.html.

In general, webmasters can improve the rank of their sites by increasing the number of high-quality sites that link to their pages. For more information about improving your site's visibility in the Google search results, we recommend reviewing our webmaster guidelines. They outline core concepts for maintaining a Google-friendly website.


Read more...

Creating Site Map

Posted by NanoTutor | Friday, February 20, 2009 | | 0 comments »

In general, there are two types of sitemaps. The first type of sitemap is a HTML page listing the pages of your site - often by section - and is meant to help users find the information they need. While this type of sitemap can help both visitors and search engines navigate your site, it's different from an XML Sitemap that can be submitted to Google using Webmaster Tools.

XML Sitemaps - usually called Sitemaps, with a capital S - are a way for you to give Google information about your site. This is the type of Sitemap we'll be discussing in this article.

If you've created and verified a site using Google Sites, we've already created a Sitemap for you. All you need do is submit it in the normal way.

If you have a blog with an RSS or Atom feed, you can easily submit that feed as a Sitemap.

Using an RSS / Atom feed as a Sitemap

Google accepts RSS (Real Simple Syndication) 2.0 and Atom 1.0 feeds. If you have a blog with an RSS or Atom feed, you submit the feed's URL as a Sitemap. Most blog software creates your feed for you. If your site doesn't have a feed, you can use Feedburner to create and publish one. Note that the feed may only provide information on recent URLs.

Creating a Sitemap based on a text file
Google accepts RSS (Real Simple Syndication) 2.0 and Atom 1.0 feeds. If you have a blog with an RSS or Atom feed, you submit the feed's URL as a Sitemap. Most blog software creates your feed for you. If your site doesn't have a feed, you can use Feedburner to create and publish one. Note that the feed may only provide information on recent URLs.
Creating a Sitemap based on a text file
back to top

A Sitemap should contain a list of your site's URLs - up to 50,000 of them. If you have a large site with more than 50,000 URLs, you should create multiple Sitemaps and submit a Sitemap index file <>.

You can provide Google with a simple text file that contains one URL per line. For example:

http://www.example.com/file1.html

http://www.example.com/file2.html

For best results, follow these guidelines:

1. You must fully specify URLs as Google attempts to crawl them exactly as provided.
2. Each text file can contain a maximum of 50,000 URLs. If you site includes more than 50,000 URLs, you can separate the list into multiple text files and add each one separately.
3. The text file must use UTF-8 encoding. You can specify this when you save the file (for instance, in Notepad, this is listed in the Encoding menu of the Save As dialog box).
4. The text file should contain no information other than the list of URLs.
5. The text file should contain no header or footer information.
6. You can name the text file anything you wish. Google recommends giving the file a .txt extension to identify it as a text file (for instance, sitemap.txt).

You should upload the text file to your server, generally to the highest-level directory you want search engines to crawl. Once you've created this file, you can submit it as a Sitemap. This process, while manual, is the simplest and is probably best if you're not familiar with scripting or managing your web server.

If you have multiple websites, you can simplify the process of creating and submitting Sitemaps by creating one or more Sitemaps that includes URLs for all your verified sites, and saving the Sitemap(s) to a single location. All sites must be verified in Webmaster Tools

Creating a Sitemap based on the Sitemap protocol
Google can accept Sitemaps in a number of formats, but we recommend creating a Sitemap based on the Sitemap protocol because the same file can be submitted to the other search engines, such as MSN and Yahoo!, that are members of sitemaps.org.

You can create a Sitemap in a number of different ways:

1. Manually create a Sitemap based on the Sitemap protocol
2. Use the Sitemap Generator. If you have access to your webserver and it has Python installed, you can use our script to create a Sitemap that uses the Sitemap protocol. The Google Sitemap Generator is a Python script that creates a Sitemap for your site using the Sitemap Protocol. This script can create Sitemaps from URL lists, web server directories, or from access logs.
3. Use a third-party tool. A number of third parties offer tools you can use to create a valid Sitemap.


Other available formats

In addition to regular Sitemaps, you can also create Sitemaps designed to give Google information about specialized URLs. These include:

* Video Sitemaps
* Mobile Sitemaps
* News Sitemaps
* Code Search Sitemaps


Read more...

About Sitemaps

Posted by NanoTutor | Friday, February 20, 2009 | | 0 comments »

in general, there are two types of sitemaps. The first type of sitemap is a HTML page listing the pages of your site - often by section - and is meant to help users find the information they need.

XML Sitemaps - usually called Sitemaps, with a capital S - are a way for you to give Google information about your site. This is the type of Sitemap we'll be discussing in this article.

In its simplest terms, a Sitemap is a list of the pages on your website. Creating and submitting a Sitemap helps make sure that Google knows about all the pages on your site, including URLs that may not be discoverable by Google's normal crawling process.

Sitemaps are particularly helpful if:

* Your site has dynamic content.
* Your site has pages that aren't easily discovered by Googlebot during the crawl process - for example, pages featuring rich AJAX or Flash.
* Your site is new and has few links to it. (Googlebot crawls the web by following links from one page to another, so if your site isn't well linked, it may be hard for us to discover it.)
* Your site has a large archive of content pages that are not well linked to each other, or are not linked at all.

You can also use a Sitemap to provide Google with additional information about your pages, including:

* How often the pages on your site change. For example, you might update your product page daily, but update your About Me page only once every few months.
* The date each page was last modified.
* The relative importance of pages on your site. For example, your home page might have a relative importance of 1.0, category pages have an importance of 0.8, and individual blog entries or product pages have an importance of 0.5. This priority only indicates the importance of a particular URL relative to other URLs on your site, and doesn't impact the ranking of your pages in search results.

Sitemaps provide additional information about your site to Google, complementing our normal methods of crawling the web. We expect they will help us crawl more of your site and in a more timely fashion, but we can't guarantee that URLs from your Sitemap will be added to the Google index. Sites are never penalized for submitting Sitemaps.

Google adheres to Sitemap Protocol 0.9 as defined by sitemaps.org. The Sitemap Protocol is a dialect of XML for summarizing Sitemap information that is relevant to web crawlers. Sitemaps created for Google using Sitemap Protocol 0.9 are therefore compatible with other search engines that adopt the standards of sitemaps.org.

While a standard Sitemap works for most sites, you can also create and submit specialized Sitemaps for certain types of content. These Sitemap formats are specific to Google and are not used by other search engines. Sitemap formats include:

* Video Sitemaps
* Mobile Sitemaps
* News Sitemaps
* Code Search Sitemaps
* Geo Sitemaps


Read more...

Creating Hello World Application

Posted by NanoTutor | Thursday, February 19, 2009 | | 1 comments »

This time I will try to create a famous application “hello world”, using prado framework. For the first time you must create the prado project skeleton below your webserver root . If you don’t know how to create it, you can read my article before.

This is my HelloWorld Project skeleton :


I’ve added framework’s folder inside my HelloWorld project. You can find it from original Prado source.
Open the index.php file and change the value of $frameworkPath variable. And direct it to prado.php file inside the framework folder.


This main purpose for this index.php file is load the prado.php file to our project. And this is the first gate for running our application.
Next, go to protected folder and open the application.xml

This application.xml file used for setting your web application, you can add module, setting path, service configuration or add parameter to your application here. But for this example, you can leave for changing the code for this file. The service tag with id=”page” and DefaultPage=”Home”, it show that your application will be open the Home.page file inside the pages folder for the first time.
Now go inside the pages folder and create Home.page file. And create one button by using the TButton class component. Important in every prado .page , there must be have one TForm class component before using other component. This is the code for Home.page :



We have created the view part represented by Home.page file, then for control part we must create the class named Home.php. Because in the Home.page file we are using the TButton component and already have OnClick event named btHelloClicked, in this file we must handle that event by create a function btHelloClicked with $sender and $param as parameter.
*remember prado is a event driven framework, like ASP.Net

Now try to acces your HelloWorld application using your browser :


Read more...

Creating Prado Project Skeletons With Command Line (Windows)

Posted by NanoTutor | Wednesday, February 18, 2009 | | 0 comments »

The optional prado-cli.php PHP script file in the framework directory provides command line tools to perform various tedious takes in Prado. The prado-cli.php can be used to create Prado project skeletons, create initial test fixtures, and access to an interactive PHP shell.

Requirements
To use the command line tool, you need to use your command prompt, command console or terminal. In addition, PHP must be able to execute PHP scripts from the command line.
We will use the “php.exe”, be sure you have already installed PHP5 and WebServer (Xampp, Apache2Triad, etc). just for information I’m using Xampp webserver v1.6.
If your OS is Windows, for make it simple when using “php.exe”, go to control panel-system-advanced-environment variables and create new “User Variable = Path” with “value=C:\xampp\php”.


Usage
Open your command prompt, and type php path/to/framework/prado-cli.php, you should see the following information. Alternatively, if you are not on Windows, you may try to change the prado-cli.php into an executable and execute it as a script.


Create the prado project skeletons
Now for example, I want to create the prado project named “HelloWorld” on my computer at this path “E:/Prado1.4/HelloWorld”. And I will do the following :

  1. Change to the directory where I want to create the project skeleton “E:/ Prado1.4/”.

  2. Copy my prado folder to E:/ Prado1.4/[Prado folder]

  3. And I will type :“php E:Prado1.4\prado\framework\prado-cli.php –c HelloWorld”

  4. if success I will get this following result




Now I will find my HelloWorld prado project folder at below E:Prado1.4/HelloWorld.


Read more...

Prado Framework Installation

Posted by NanoTutor | Wednesday, February 18, 2009 | | 0 comments »

The minimum requirement by PRADO is that the Web server support PHP 5. PRADO has been tested with Apache Web server on Windows and Linux. Highly possibly it may also run on other platforms with other Web servers, as long as PHP 5 is supported.
Installation of PRADO mainly involves downloading and unpacking.
1. Go to pradosoft.com to grab the latest version of PRADO.
2. Unpack the PRADO release file to a Web-accessible directory.

Your installation of PRADO is done and you can start to play with the demo applications included in the PRADO release via URL http://[web-server-address]/prado/demos/. Here we assume PRADO is unpacked to the prado subdirectory under the DocumentRoot of the Web server.
If you encounter any problems with the demo applications, please use the PRADO requirement checker script, accessible via http://web-server-address/prado/requirements/index.php, to check first if your server configuration fulfills the conditions required by PRADO.


Read more...

Php Framework Comparison Matrix

Posted by NanoTutor | Wednesday, February 18, 2009 | | 0 comments »

this link will show you the comparison between all phpframework.
phpwiki


Read more...

What is the difference between a Page and a Template?

Posted by NanoTutor | Wednesday, February 18, 2009 | | 0 comments »

link source : www.pradoframework.com
Strictly speaking, these two are different concepts in PRADO and are inappropriate for comparison. Controls, i.e., components capable of presentation and user interaction, can have templates to help organize their presentation layout. A page is a special kind of control that may be requested directly by end-users, while other controls are managed by a page.

Pages

* must have templates (.page files)
* do not require page classes and default to TPage if none is specified
* allow page classes, but they must extend TPage
o TPage is a subclass of TTemplateControl

Non-page controls

* must have control classes
* may have associated templates (.tpl files) if the control classes extends TTemplateControl


Read more...

What is the difference between modules and services?

Posted by NanoTutor | Wednesday, February 18, 2009 | | 0 comments »

link source : www.pradoframework.com
Briefly, when a request comes in, the request passes through a service (usually TPageService), which handles request fulfillment via mmodules (usually THttp* and TPage).

Modules implement the IModule interface. Modules are "behind the scenes" libraries for the application. Among other roles, modules provide the "model" component of the MVC pattern (if MVC is the design pattern in use).

Services implement the IService interface. Services are bridges between the application and the user. Whenever a user sends a request to the PRADO application, it first goes through a service. Most applications rely exclusively on TPageService and don't implement others.


Read more...

What is the difference between Databind and Expression tags?

Posted by NanoTutor | Wednesday, February 18, 2009 | | 0 comments »

link source : www.pradoframework.com
Expression tags run at the PreRender stage, which is before controls like TRepeater run.

Databind tags load their value at every databinding instance (e.g. each time TRepeater loads a data item). Indiscriminate use of Databind tags will work properly but potentially lower application performance


Read more...

What is the difference between TPage->onInit() and TPage->onLoad()?

Posted by NanoTutor | Wednesday, February 18, 2009 | | 0 comments »

link source : www.pradoframework.com

This is really a question of "What properties (including value) should controls have?" relative to a page's lifecycle. PRADO loads control properties in five stages, each overriding the last:

1. Template data.
2. Data set in onInit: This is where you should initialize components. Part of initialization is databinding. For example, on a page containing a listbox of countries, you would want fill it with countries at this stage. TListControl (and all its descendants TDropDownList, TCheckBoxList, etc), TDataGrid, TDataList, and TRepeater should be initialized here.
3. ViewState data.
4. POST data. If your controls haven't been initialized by this point, strange behavior may result.
5. Data set in onLoad: If you want to override the POST values, you must do this here.

If no data affecting controls load in the ViewState and POST stages, onInit and onLoad are functionally equivalent.


Read more...

Add Prado Tag To Dreamweaver

Posted by NanoTutor | Tuesday, February 10, 2009 | | 0 comments »

From this article i will show you how to add prado's tag to dreamweaver.
The steps are :
1. Of course, you must have dreamveaver in your pc
2. download Latest Prado Framework 3.1.xxx
3. extract your prado file (.rar)
4. inside prado folder, find "Prado.mxp" file in "editor" folder. install it..

5. next step, Go to this path on your pc “C:\Documents and Settings\[your user]\Application Data\Macromedia\Dreamweaver 8\Configuration\” and then open Extension.txt file, and modify the first line of code :
*You must show your hidden files and folders.

HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,AS,ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF,LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,PHP5,TPL,LASSO,JSP,JSF,VB,VBS,VTM,VTML,INC,JAVA,EDML,WML:All Documents

Become :

HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,AS,ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF,LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,PHP5,TPL,LASSO,JSP,JSF,VB,VBS,VTM,VTML,INC,JAVA,EDML,WML,PAGE:All Documents

Do the same way for other “Extension.txt” file, at this path “C:\Program Files\Macromedia\Dreamweaver 8\Configuration”.

Next step, go to this path “C:\Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes” and open MMDocuments.xml

become :


6. Restart your dreamweaver and try to open Html file



Read more...