How To Change The Color Scheme In Aptana Studio

Aptana Studio is a great tool for web-development. It offers you a wide range of features. One of this features is syntax-highlighting of sourcecode, which means that different parts of the sourcecode will be displayed with different colors, which makes it easier to read the sourcecode. However, if you don’t like the default theme with … Read moreHow To Change The Color Scheme In Aptana Studio

How To Display Line Numbers In Eclipse IDE?

In Eclipse you can display the line numbers in the code editor as follows: Open the pulldown-menu item Window Select the Preferences item In the Preferences dialog expand General Expand Editors Click on Text Editors Now you can activate the checkbox which says: “Show line numbers“ Close the dialog by clicking OK I hope this … Read moreHow To Display Line Numbers In Eclipse IDE?

PHP: Get A Random Item From An Array

In PHP it’s easy to work with arrays. Just declare someting like this:

<?php
$arrX = array("Kay", "Joe","Susan", "Frank");
?>

Now you can access the values with their index (which starts a 0 for the first item).

<?php
// output "Kay"
echo $arrX[0];
 
// output "Susan"
echo $arrX[2];
?>

PHP offers you several ways to get a random value of the array. One simple way is by using the array_rand() function. array_rand() expects the array as a parameter and returns a random index value as integer which then can be used to get the array value.

Read morePHP: Get A Random Item From An Array

How to insert special characters like &, < and > into a JSF component

If you want to insert a character like & e.g. within a JSF (Java Server Faces) component’s value attribute, you might get an error. To avoid this you must insert a HTML-Entity for the character. Here is a short list for common characters which you might need to replace in your JSF component. Character Entity … Read moreHow to insert special characters like &, < and > into a JSF component

How Does Dropbox Work?

Cloud-computing has become very popular within the last years. There are so many providers of “cloud-based services” out there which offer you a wide range of services, like file-storage, online-editing of documents and much more.

One of my favourite provider is Dropbox, which offers an online-storage for your files. It also can help you to keep your directories and files in sync between multiple computers in a very simple way.

Read moreHow Does Dropbox Work?