29December 2008

Many users are asking how to handle an unix or shell script within php. Here is a simple way to call a sample bash script inside php script page and have a return value printed to your web page. This is achieved by using “system” call in php that invokes the shell script. Here is the Read More

18December 2008

Another new feature in WordPress blog publishing system added since WordPress version 2.6 is post revisions tracking similar to version control system, which provides Wiki-like style tracking of edits been made onto the posts or pages. Post revisions tracking allows bloggers and authors to view Read More

12December 2008

This is available in the internet, plenty. Just want scribe it ay my webpage for easy reference! As you know Google.com is the most popular search engine in the world. Here are some tips to helps you find eBooks with Google: Find Apache’s (default) Index page Try this Read More

10December 2008

Here is the LUHN algorithm for credit card check using javascript /*—————————————————————*/ /*                     Read More

10December 2008

There were requirements for me to filter and extract only html tag links from a web page. I could create a sample page. There are many ways to get it, and even through may utilities. Here is one among them - handy for you. Download the Extract Html Bash Read More

4December 2008

Algorithm for the Luhn Formula LUHN Algorithm in C# (Validate Credit Card) Credit Card validation LUHN algorithm using C LUHN Algorithm - Validate credit card - in PHP Validate the credit card (plsql code)! Here’s how the algorithm for the Luhn formula works. Starting with a given credit Read More

1December 2008

This script provides an sample, and then the practical example to connect to oracle database, extract data like excel sheet and attach it with an email list. First connecting is done with “sqlplus -s $FCP_LOGIN” in silent mode.Then EOF marks the begining of sql statement and another Read More

18November 2008

The Luhn algorithm or Luhn formula, also known as the “modulus 10″ or “mod 10″ algorithm, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers and Canadian Social Insurance Numbers. The formula verifies a number Read More

16November 2008

#include <iostream> #include <string> using namespace std; void main() {         int max;         cin> > max;         if(max <= 0)         {       Read More

9November 2008

Checks whether a string of digits is a valid credit card number according to the Luhn algorithm. Starting with the second to last digit and moving left, double the value of all the alternating digits. For any digits that thus become 10 or more, add their digits together. For example, 1111 becomes Read More

8November 2008

The Luhn algorithm or Luhn formula, also known as the “modulus 10″ or “mod 10″ algorithm, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers and Canadian Social Insurance Numbers. The formula verifies a number Read More

8November 2008

If you’ve got a directory with dozens of zipped or rar’d files, you can run a single command to unzip them all in one step, thanks to the power of the bash shell. For this task, we’ll use bash’s for loop command structure. Replace with a variable name, and with either a command that Read More

4November 2008

INSTALLATION ———— 1. DOWNLOAD Mambo You can obtain the latest Mambo release from: http://mamboforge.net/projects/mambo. Copy the tar.gz file into a working directory e.g. $ cp MamboVx.x.x-Stable.tar.gz /tmp/Mambo Change to the working directory e.g. $ cd /tmp/Mambo Extract Read More

4November 2008

Use the following steps to turn off sendmail permanently chkconfig –help chkconfig version 1.3.8 - Copyright (C) 1997-2000 Red Hat, Inc. This may be freely redistributed under the terms of the GNU Public License. usage:   chkconfig –list [name] chkconfig –add Read More

4November 2008

A feature in the sendmail.cf configuration file for UnixWare sendmail(1M) may be used to prevent your machine from being used as an SMTP mail relay. It prevents spammers from making their mail appear as if it comes from your site. You should turn this feature on in all cases except where Read More

3November 2008

Setting the password: 1. From Unix: shell> mysql -u username -h hostname -p password mysql> SET PASSWORD FOR username@localhost=PASSWORD('new_password'); 2. Directly manipulate the privilege tables: shell> mysql -u username -h host -u username -p mysql> UPDATE user SET Read More

18October 2008

Opinions are devided as to whether it’s better to keep a list of prime numbers on disk or to generate them as needed. I do not have my own opinion on the subject but if you need to keep a list of primes on permanent storage here is a MySQL stored procedure to generate them and insert them Read More

18October 2008

This is not my original php program. Since I find this is very useful for php programming, I got this from “Site With The Lamp” and reproduced for my reference. ================================================================= A web server is not expected to remember who you are. After a Read More

18October 2008

This is not my original php program. I have made prime number logic with visual basic, oracle plsql, c++ and C#. I got this from “Site With The Lamp” and reproduced for my reference. ================================================================= The following code is an Read More

15October 2008

if you wish to access the database from your code file which is not placed inside one of the standard plugin locations, you will need to include_once() the wp-db.php file as well as the wp-config.php file. Including only the wp-db.php file will not set the database connection information Read More

Next Page »