Learn to Code by Breaking Someone Else Code

Submitted by anthea on
In order to break other's code, there are tips given by Nick Pettit which he set as an example for the Treehouse blog which made for those who aim to learn 3D programming in the browser as well as Testing a line in a Java script, Three.js According to the article at lifehacker, you will learn how to code by just simply breaking someone's code. An code example that uses three.js to create a light

Calculate distance between 2 IP address

Submitted by chrislim2888 on
This sample code demonstrates you on how to calculate the distance (in km, miles and nautical miles) for 2 IP addresses. In general, this sample code will retrieve the latitude and longitude from the given IP addresses and perform the distance math calculation. Note: This sample requires the IP2Location BIN database which you can download free at http://lite.ip2location.com

Homeless Leo Grand Launches Eco-Friendly Mobile App

Submitted by anthea on
Without any formal education about computer programming, Leo Grand never give up on learning new things despite of the impossibilities. As Leo Grand lives in the street of New York City, a stranger approached him and offered a choice between two months of coding lessons or $100 cash. Without any hesitation, 37-year-old Leo Grand chose for lessons as well as the 3, 621 lines of code. After he made

PHP Forms

Submitted by joken on
Using the HTML Form is very important in creating a PHP application, because it serves as a holder of information from a website's visitors and then use the PHP to process that information.

Heres the simple HTML Form.

The code below is a simple HTML Form with a two input boxes for Fullname, E-mail Address and a submit button. When the user click the submit button, the data in the form will be sent to the HTTP POST method to be processed in a PHP file called “processData.php”.

Calculate Sunrise and Sunset Value from IP Address

Submitted by chrislim2888 on
The example demonstrate you on how to calculate the sunrise and sunset value from IP address, or to be specific - the geolocation from IP address, without the use of weather library. This solution requires a geolocation table, such as the DB11.LITE database which can be downloaded free from lite.ip2location.com. I would like to keep the source code zip small, so, please download it from http:/

PHP include

Submitted by joken on
In PHP, it is necessary to use PHP include command. Because include takes a file name and simply inserts that file content into the script that issued the include command. Including files saves a lot of work, it means that you can create a standard header, footer and menu file that is available to all web pages.

PHP Comments

Submitted by joken on
One of the best programming practice is using a Comment. A comment is a string code or text within PHP or any programming languages that is not visible during the execution in your web browser. And it provides the feedback to the developers or it temporarily disable the code and the most important thing is that comment serves to give some information about the code. In PHP, there are two types of Comment.

Excel Payroll template

Submitted by nostradamus1566 on

This is an Excel Payroll template. Is demonstrates how to calculate payroll for any number of employees and to make the appropriate deductions. It works in Excel 2003 and above. It demonstrates to the learner how to use the built-in functions and do calculations across different pages. You can learn a lot from studying the formulas and customize this spreadsheet for your payroll. Here are a few

Musical Composition

Submitted by mic493 on
This is one of my little inventions. It is royalty free, you can decorate to your liking. Knowing that generates a MIDI file that you can import software. Music to arrange with the instruments of your choice. Namely that the main melody is channel 1 and channel 2 agreements. My compositions will serve as an example to use. Have fun, Michaël