Saturday, June 4, 2011

Log File Path Names And Cache Directories

cache_dir Type Maxobjsize Directory-Name Mbytes Level-1 Level2
cache_dir ufs /usr/local/squid/cache 100 16 256

Maxobjsize refers to the max object size this storedir supports. It is used to initially choose the storedir to dump the object. -1 means 'any size'.

'Directory' is a top-level directory where cache swap files will be stored. If you want to use an entire disk for caching, then this can be the mount-point directory. The directory must exist and be writable by the Squid process. Squid will NOT create any directory.

'Mbytes' is the amount of disk space (MB) to use under this directory.

'Level-1' is the number of first-level subdirectories, which will be created under the 'Directory'.

'Level-2' is the number of second-level subdirectories, which will be created under each first-level directory. To create swap directory use /usr/local/squid/bin/squid –z option.

cache_access_log Directory-path/filename
cache_access_log /usr/local/squid/logs/access.log

This tag is used to specify the path of the access.log file, which logs the client request activity.

cache_log Directory-path/filename
cache_log /usr/local/squid/logs/cache.log

This tag is used to set the path of the Cache logging file.

cache_store_log Directory-path/filename
cache_store_log /usr/local/squid/logs/store.log

This tag is used to specify the location of the store.log, the file that logs the activities of the storage manager.

cache_ swap _log Directory-path/filename
cache_ swap _log /usr/local/squid/logs/ swap.log

This tag specifies the location for the cache "swap.log." This log file holds the metadata of objects saved on disk. It is used to rebuild the cache during startup. Normally this file resides in the first 'cache_dir' directory, but you may specify an alternate pathname here. Note, you must give a full filename, not just a directory. Since this is the index for the whole object list you CANNOT periodically rotate it.

If you have more than one 'cache_dir', these swap logs will have names such as:


The numbered extension (which is added automatically) corresponds to the order of the 'cache_dir' lines in this configuration file.

Customize Squid Error Messages

To customize the Squid errors you need to edit the Squid error template files.

On Ubuntu they are located in “/usr/share/squid/errors/English” (replace English with your specific Language).

Using the Squid error message you receive in your browser search in the the above directory until you find it.

I wanted to change the error message returned when a connection is refused or fails. This is located in the file ERR_ACCESS_DENIED file in the above mentioned directory

Opening this fiile in vi (as root or using sudo) and change the text.


Cpuz - CPU-Z is a freeware system profiler (system monitor) application for Microsoft Windows that detects the central processing unit, RAM, motherboard chipset, and other hardware features of a modern personal computer, and presents the information in one window.

Link : Downlaod

What is inSSIDer

inSSIDer is FREE, open-source Wi-Fi scanning software.

Link :

Cloud Computing

Cloud Computing is a style of computing in which dynamically scalable and virtualized resources are provided as a service over the Internet. The concept incorporates infrastructure as a service (IaaS), platform as a service (PaaS) and software as a service (SaaS) as well as other recent technology trends which are provided over the Internet.

Cloud computing overlaps some of the concepts of distributed, grid and utility computing, however it does have its own meaning if contextually used correctly.

Infrastructure-as-a-Service like Amazon Web Services provides virtual server instances with unique IP addresses and blocks of storage on demand. Customers use the provider’s application program interface (API) to start, stop, access and configure their virtual servers and storage.

Platform-as-a-service in the cloud is defined as a set of software and product development tools hosted on the provider’s infrastructure. Developers create applications on the provider’s platform over the Internet.

software-as-a-service cloud model, the vendor supplies the hardware infrastructure, the software product and interacts with the user through a front-end portal.

Virtualization is not cloud. While virtualization is an important foundation in building a cloud, virtualization only provides isolation of compute and memory on one physical server or a cluster of servers. Anyone can install a virtualization app like Sun/Oracle Virtualbox on top of their OS or they can install a hypervisor OS like Citrix XenServer, VMware ESXi orWindows Datacenter edition with Hyper-V.

Friday, June 3, 2011

Install Android-x86 2.2 in VirtualBox

Step 1: Get the Android-x86 ISO

First, you’ll need the Android-x86 ISO. You can directly download the latest iso from this link, android-x86-2.2-generic.iso

Since the project is active, by the time you read this, there may be a new ISO out. So also check the Downloads section on Google Code:

Step 2: Install Virtual Box.

You need to have a Virtual Machine Software, So I am using a software called "VirtualBox", You can downlaod it from the Web Site,

Link :

Step 3: Create a New VirtualBox Machine

Now it is time to create a virtual machine for Android-x86 to run it, First Click on the New Button on the Software,

In the First Screen it "Next", and from the next screen It asks VM Name and OS Name, Type "Android x86 2.2" as the VM Name, and from the OS Type section, select "Linux" as the Operating System, "Other Linux" as the Version.

Next up is specifying the amount of memory available to the new VM. The default is 256MB, Leave it as it is.

Next up you’ll need to choose whether or not you want to create a Virtual Hard Disk.  From this window you can select an existing VHD File, or create a new one,

You’ll be presented with the “Create New Virtual Disk”. hit “Next”. Now you’ll have to decide if you want a virtual disk which is dynamically sized or a fixed size. If you choose to make an 8GB fixed VHD, the file the wizard creates will take up a full 8GB. Whereas dynamic just resizes on the fly.

Next up, set how large you want your VHD to be. The default is 8GB which is sufficient.

The it displays a Summery,Now It's Done.

Step 4: Mount the ISO

Right click the VM ( Android-x86 ), from the shortcut menu select “Settings”, then go to the “Storage” section of it. Under “IDE Controller” you’ll see an entry for your VHD, if you created one, and a CD icon that says “Empty” next to it. Select the CD entry and you’ll see another CD icon on the right hand side. Click it and select “Choose a virtual CD/DVD disk file…”. This pops open a standard file dialog; browse to wherever you saved the ISO

Step 5: Boot it up

Double click on it and the VM will start running. If your goal is simply to boot the Live CD, select the “Live CD – VESA mode” option.

Step 6: Installing Android-x86

So everything is set up and ready to run, but there are a few steps left if you want to install Android-x86 to a virtual hard drive. From the boot menu select “Installation – Install Android-x86 to harddisk”.

elect the “Create/Modify partitions” option and you’ll then be presented with the cfdisk partition editor.

From here select “New”, then “Primary” and then it will ask you what size you want the partition to be. It defaults to the full size of the VHD, so you’ll probably just want to hit enter and go with it. Next select “Bootable” and then “Write”. It will ask you to type outthe word “yes”—do so. If you were installing this to a physical instead of virtual hard drive, this tool can do some serious damage to your file system, so that’s why it is picky enough to have you type it out. But since we’re in the land of the virtual, all is well! You’ll get a “Writing partition table to disk…” message and should now have an “sda1″ entry in the table, like so:

Now you’ll want to select the “Quit” option to jump back to the installation procedure. You should now have an entry there which says “sda1   Linux

Now you’ll need to format the newly created partition. Select ext3 from the list and continue. Another dialog asking you to confirm will pop up. Again, this is another thing that would completely screw up an existing hard drive, so it will warn about data loss. Select “Yes” and a progress bar will show up, formatting the drive.

Once it is done formatting, you’ll be asked to install the GRUB bootloader. This is important, so don’t skip it, otherwise your freshly installed VHD won’t boot!

Now you’ll be asked whether or not you want “/system” to be read-write. Unless you’re a developer, just select “No”. Another progress bar will show you the progress of the actual installation. Almost done!

Android-x86 is now installed on your VHD! You can now run the OS, reboot, or create a fake SD card to use within the VM.

Web PHP Framework - symfony

Symfony is a Model-View-Controller (MVC) framework written in PHP that’s aimed at building web applications. If you’re already familiar with the MVC paradigm, you won’t be surprised by the way symfony organizes scripts. If you aren’t familiar with MVC, you just need to understand that separating the code into three parts — the logic code (called the Model), the presentation code (the View), and the request handling code (the Controller) — is a good way to ensure the maintainability and reusability of code.

Source :
Download :
Documentation :

Auto Draft