How to share a folder between the VMware host and guest?

May
01

If you need to share a holder between your Windows host and Linux guest, you may use native VMware folder sharing available on VMware Workstation or VMware Player. To allow folder sharing, you must install VMware Tools on the guest operating system. I've used a VMware Player to demonstrate the configuration options, but WMware Workstation 8 will follow the similar steps.

Prerequisites
■ VMware Tools installer is written in Perl, verify that Perl is installed in the guest operating system.

1. Go to Virtual Machine -> Virtual Machine Settings ....

Posted By admin read more

Malware detected on website

Apr
27

One of the server we manage has been compromised, and hosting malware according to Kaspersky Anti-Virus software. The site uses a number of open-source applications such as Wordpress, Gnuboard and phpLinkDirectory. We initially thought it would be either the .htaccess or base64_encode exploit, but after close examination, we found that plain javascript snippet was inserted into one of the Gnuboard include file (bbs/visit_insert.inc.php).

Posted By admin read more

What is the difference between "Primary Key" and "Unique Key"?

Apr
24

I've had a chance to with a Postgres database and came across a table with two primary keys. This intrigue me to lookup a definition of primary and unique key. I always thought there will only be one primary key in a table, and the values have to be unique. But, what I saw in the PostgreSQL v8.1.23 was something otherwise. It allowed duplicate entries, and also allowed multiple primary keys in a table. Is this possible? Yes, it's called composite Primary Keys.

Posted By admin read more

Pgsql Command-line Tools

Apr
23

Although I have been using pgsql for a number of years, every time I wanted to do something I do have to look up a reference as I'm not a regular user of pgsql. Here are a few command-line references which may be helpful to beginners.

To make a backup of a postgres database:

Login as a database user with read access to the db, and run the following command.

%> pg_dump -U {username} {database} > {database.sql}

To restore a backup from a SQL file,

%> psql -U {username} {database} < {database.sql}

To create a database

Posted By admin read more

How to vertical-align input box and label text?

Apr
19

Vertically aligning input box and the label that goes with it is quiet challenging especially when you have vertically align them on all browsers such as IE, Firefox, Chrome, Safari and Opera; and on all different versions on all available OSes. I had to work with multiple checkboxes in a single row with label attached to each input checkbox, and when I thought I've got it done; it worked all but on a Chrome running in Mac. This made me rework the whole thing again from scratch using display table CSS property.

Posted By admin read more

How to add attachment with the Zend_Mail?

Apr
19

Files can be attached to an email using Zend_Mail->createAttachment() method. The createAttachment() method requires a content of the attachment, and 3 optional arguments. Please note that it takes file content as an argument, not the name of the file.

Posted By admin read more

HTML5 Overview

Apr
12

HTML 5 is the fifth revision of the Hyper Text Markup Language (HTML) designed to display web pages. HTML 5 is the next generation markup language encompassing HTML 4, XHTML 1, DOM Level 2 and CSS 3. The core aim is to support multimedia and rich graphics content not only on desktop devices, but also mobile and tablet devices. The next wave of software offering is via a web (Software as a Service, SaaS for short), and we need an ability to deliver rich media on the web and HTML5 is being designed to do that.

Posted By admin read more

Losing session on redirect to another page within same site

Mar
28

I am creating a SAML based Single Sign On (SSO) functionality, and the server acting as a Service Provider (SP) communicates with an User Agent and Identity Server (IdP) to obtain assertions. The implementation is based on simpleSAMLphp, and authentication works perfectly but the data placed on SESSION loses upon redirect to another page within the same website.

Posted By scott read more

SMTP Email Address Validation

Mar
09

How do you validate an email address? You may validate it with a javascript on the client-side, or run a server side validation via a regular expression or a newly available filter_var function of the PHP 5.2.x. Perhaps, you may want to go one step further, and verify the email address from the remote SMTP server.

Posted By admin read more

Zend Framework without MVC

Mar
04

The reasoning for using a framework such as Zend Framework (ZF for short) is to speed up the development process, make the application extensible, and make use of the design patterns such as MVC. I think MVC is great, and it separates the models, views and controllers and makes the entire development process very clean. If MVC is great, why would you use Zend Framework without MVC?

Posted By admin read more

Pages

Subscribe to Web Traffic Exchange RSS