Archive for February, 2010
Validate the value of a hex color with PHP
In this article a tiny snippet based on the hexadecimal values of colors, remember that fact in the Internet pages, the colors are indicated with numbers in base 16 along a scale that includes the values “0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F “, which is equal to zero “0″ and “F” equals 15.
To validate a string to a hexadecimal color will require a few lines of code and a simple instruction set to be passed to preg_match ():
<span onmouseover=”_tipon(this)” onmouseout=”_tipoff()”><span style=”direction: ltr; text-align: left;”>$valore = “#FFFFFF”;</span> $ Value = “# FFFFFF”;</span>
<span onmouseover=”_tipon(this)” onmouseout=”_tipoff()”><span style=”direction: ltr; text-align: left;”>if (preg_match(‘/^#(?:(?:[a-fd]{3}){1,2})$/i’, $valore)) {</span> if (preg_match (‘/^#(?:(?:[ a-fd] (3)) (1,2)) $ / i ‘, $ value)) (</span> Read the rest of this entry »
Install KDE on Nokia
It seems impossible but it is not, there is a procedure (to be followed very carefully) to install the desktop KDE on Nokia phone, as you know, KDE (K D esktop E nvironment) is a visual interface to interact with the Linux operating system used in many distributions including Ubuntu, SuSE and Mandriva, its use in mobile devices was not provided in the initial project.
The steps needed to equip your Nokia smartphone into a KDE version 3.5, before repeating the experiment, keep in mind some basic precautions:
- The installation was done on the Internet Tablet, so it is suitable for any type of cell;
- To perform the installation procedure is required special hardware equipment
Google buys Picnik.com
Picnik.com, valued by many as the best editor available online photos and images, has been bought by Google.
Picnik is characterized as a publishing service simple and very effective, and to show the possibility of integrating with social networks and applications like Picasa, Flickr, Facebook, Photobucket, MySpace or Webshots. Read the rest of this entry »
chmod: octal values for all permits
The instructions based on the chmod (change mode or “mode change”) are widely used on Linux (or Unix) to change the permissions associated with a file, a mode can be expressed as a number in base eight, or symbolic form the system provides an octal number composed of one to four digits indicating the permissions directly attributed to the file without taking into account those already present. Each number from “0″ to “7″ in the scale of octal chmod has its corresponding symbolic
- 7 = rwx = read, write and execution;
- Rw-= 6 = read and write;
- 5 = rx = read and execute;
- 4 = r-= read;
- 3 =-wx = write, and execute;
- 2 =-w-= write;
- 1 =-x = execution;
- 0 = – = no permission.
Installing applications on Ubuntu with GetDeb
GetDeb is a useful and intelligent service that lets you install applications on the latest distribution of Ubuntu Linux with a simple click, choosing from an online catalog of open source programs. This is an unofficial project based on a specially dedicated repository in which there are only the latest versions of applications.
To use GetDeb just install a small application with the local extension. “Deb” which can be downloaded from the official website of the program, otherwise you can proceed with a manual installation by going to:
System>> Administration> Software Sources> Third-Party Software
and add the parameter:
<span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span style="direction: ltr; text-align: left;">deb http://archive.getdeb.net/ubuntu karmic-getdeb apps</span> deb http://archive.getdeb.net/ubuntu karmic-getdeb apps</span> Read the rest of this entry »

