Archive

Archive for November, 2009

PHP – Example 0001

First Example 0001

==================================================================================
<html>
<head>
<title>First Example</title>
</head>

<body>
php
// First Example
// ————————
echo “Hi all, welcome in the first PHP script”;
?>
</body>
</html>

==================================================================================

The row with
php
is the syntax to start the php script.

The rows that start with “//” are in PHP the comments like the following:
// First Example 0001
// —————————-

The row with “echo” sends to Web page the information inserted between the double apices (” … “)

The row with
?>
is the syntax to close the php script.

Categories: PHP

PC Decrapifier

PC Decrapifier
The PC Decrapifier is a program designed to remove or uninstall a specific list of unwanted software in an unattended fashion. It can be used to clean off most of the annoying software that is typically shipped with new PCs.

How it Works
Simply download the file and run the EXE. There is no installer. If you have anti-virus software installed, it may complain about this program because it is written with a scripting language. These warnings can be safely ignored. Please see the FAQ for more details.

Running the Program
After you run the EXE you will be guided through the process with a “wizard” style series of questions. You will have the choice to pick and choose what you want to remove. It will not begin removing anything without prompting you first!

Homepage:
http://www.pcdecrapifier.com

Download page:
http://www.pcdecrapifier.com/download

Partition Wizard Home Edition

Partition Wizard Home Edition is a free partition manager designed by MT Solution Ltd.
It supports 32/64 bit Windows Operating System including Windows XP, Vista and Windows 7.
Home users can perform complicated partition operations by using this powerful yet free partition manager to manage their hard disk.

Functions include: Resizing partitions, Copying partitions, Create partition, Delete partition, Format partition, Convert partition, Explore partition, Hide partition, Change drive letter, Set active partition, Partition Recovery, Convert Dynamic Disk to Basic Disk.

Partition Wizard Home Edition is designated for home user only, to use Partition Wizard in a business environment, Partition Wizard Business Edition is required.

Homepage:
http://www.partitionwizard.com/free-partition-manager.html

Download page:
http://www.partitionwizard.com/download.html

Windows ReadyBoost

Windows ReadyBoost
With Windows ReadyBoost, you can use non-volatile flash memory, such as that on a universal serial bus (USB) flash drive, to improve performance without having to add additional memory “under the hood.”

The flash memory device serves as an additional memory cache—that is, memory that the computer can access much more quickly than it can access data on the hard drive. Windows ReadyBoost relies on the intelligent memory management of Windows SuperFetch and can significantly improve system responsiveness.

It’s easy to use Windows ReadyBoost. When a removable memory device such as a USB flash drive or a secure digital (SD) memory card is first inserted into a port, Windows Vista checks to see if its performance is fast enough to work with Windows ReadyBoost. If so, you are asked if you want to use this device to speed up system performance. You can choose to allocate part of a USB drive’s memory to speed up performance and use the remainder to store files.

This feature is included in the following editions of Windows Vista:

  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Business
  • Windows Vista Ultimate

Homepage:
http://www.microsoft.com/windows/windows-vista/features/readyboost.aspx

SkyDrive Explorer

SkyDrive Explorer

SkyDrive Explorer adds 25gb of free cloud storage to Windows Explorer

A lot of people overlook Microsoft’s SkyDrive for free, web-based file storage and sharing. Still, it’s tough to argue with 25gb of free space for your digital goodies that you can access from anywhere.

SkyDrive Explorer is a free shell enhancement for Windows that makes it even better.

Once you install SkyDrive Explorer, you’ll see a new icon in My Computer (under “Other”). Double click it to open your drive, and a Live login window will appear. Sign in and you’ve got full-on access to SkyDrive right from Windows Explorer. Add files and folders, move things around, delete old junk – all as if they were stored on your local hard drive.

I’d like to see the app allow access to SkyDrive from open and save dialogs, but it’s a great addition to Windows even without that functionality.

SkyDrive Explorer runs on both 32 and 64-bit Windows.

Uranium Backup Free

Uranium Backup Free

Backup through direct copy or with zip compression on local/network hard drives, NAS servers, iOmega REV drives, external USB/Firewire/SATA hard drives, network computers, etc…
Limitations compared to Base version: it cannot make FTP backup, it hasn’t the possibility of delete old files in synchronization, it can’t be run as a Service, it cannot create zip files bigger than 4 GB (Zip64), there isn’t technical support.

Other versions:

  • Base: Price ~80 € (VAT excluded)
  • Pro Tape: Price ~150 € (VAT excluded)

Homepage:
http://www.uraniumbackup.com/index-en.aspx

Download page:
http://www.uraniumbackup.com/download-software-backup-freeware-en.aspx

UNIX – Lesson 007 – tar, gzip/gunzip and compress/uncompress commands

tar
The “tar” command archives files
Syntax :
tar key [f device_file] [filename …]

Key argument :

  • c  a new archive is created
  • x  files are extracted from the archive
  • t   a table of contents of the archive is printed
  • r   files are added to the end of the archive
  • f   the file argument is used as the tarfile and /etc/default/tar is not searched
  • v  a verbose option, print the name of each file or archive member as it is processed

Example:
$ tar cvf Report.tar Report.log Report.log.bck
a Report.log 157K
a Report.log.link 157K

$ tar rvf Report.tar Report.log.bck2
a Report.log.link2 157K

$ tar -tvf Report.tar
-rw-r—– 30851/32 160498 Feb 21 11:42 2008 Report.log
-rw-r—– 30851/32 160498 Feb 21 11:42 2008 Report.log.link
-rw-r—– 30851/32 160498 Feb 21 11:43 2008 Report.log.link2

$ tar xvf Report.tar Report.log
# You extract only the Report.log file from archive

================================================================================
gzip/gunzip
The “gzip” command compresses/expands a file that is replaced by new one with the extension .gz, while keeping the same ownership modes, access and modification times.
Syntax :
gzip [-dlr] filename[.gz]
gunzip [-lr] filename.gz

Key argument :

  • -d   Decompress mode (like gunzip)
  • -f    Force compression or decompression even if the file already exists.
  • -l    List the following fields: compressed size, uncompressed size, ratio, uncompressed_name
  • -r   Recursive. If the file specified is a directory, gzip will descend into the directory and compress all the files it finds there (or decompress them in the case of gunzip)
  • -# -1 (or –fast) indicates the fastest compression method (less compression) and -9 (or –best) indicates the slowest compression method (best compression). The default compression level is -6.

Example:
$ gzip Report.tar
$ ls –al
total 80
drwxr—– 2   xarabas admins 96        Feb 21 12:03 .
drwxr—– 14 xarabas admins 8192    Feb 21 12:03 ..
-rw-r—–  1   xarabas admins 26346  Feb 21 12:03 Report.tar.gz

$gunzip Report.tar.gz
total 80
drwxr—– 2   xarabas admins 96        Feb 21 12:03 .
drwxr—– 14 xarabas admins 8192    Feb 21 12:03 ..
-rw-r—–  1   xarabas admins 32156  Feb 21 12:03 Report.tar

$ gzip -l Report.tar.gz
compressed uncompressed ratio uncompressed_name
26346 484864 94.6% Report.tar

$ gzip -9 Report.tar
$ls -al
total 80
drwxr—– 2   xarabas admins 96        Feb 21 12:03 .
drwxr—– 14 xarabas admins 8192    Feb 21 12:03 ..
-rw-r—–  1   xarabas admins 26275  Feb 21 12:03 Report.tar.gz

================================================================================
compress/uncompress
The “compress/uncompress” command compresses/expands a file, that is replaced by new one with the extension .Z, while keeping the same ownership modes, access and modification times.
Syntax :
compress filename
uncompress filename.Z

Example:
$ compress Report.log
$ ls -al

total 80
drwxr—– 2   xarabas admins 96        Feb 21 12:03 .
drwxr—– 14 xarabas admins 8192    Feb 21 12:03 ..
-rw-r—–  1   xarabas admins 28209  Feb 21 12:03 Report.log.Z

$ uncompress Report.log.Z
$ ls -al

total 80
drwxr—– 2   xarabas admins 96        Feb 21 12:03 .
drwxr—– 14 xarabas admins 8192    Feb 21 12:03 ..
-rw-r—–  1   xarabas admins 30215  Feb 21 12:03 Report.log

Categories: Unix
%d bloggers like this: