Tuesday, January 31, 2012

Create a URL Shorte by php

Today I have create a code to make short url from a long url. So, you should not use others short url provider service....demo is here

url shorter

Quick sort in c programming

Root function of quick sort:
[sourcecode language="c"]
void quickSort(int A[] , int left , int right)
{
int pivot , l_hold , r_hold;

l_hold = left;
r_hold = right;
pivot = A[left];

while(left < right)
{
while((A[right] >= pivot) && (left < right))
right--;
if(left != right)
{
A[left] = A[right];
left++;
}
while((A[left] <= pivot) && (left < right))
left++;
if(left != right)
{
A[right] = A[left];
right--;
}
}

A[left] = pivot;
pivot = left;
left = l_hold;
right = r_hold;

if(left < pivot)
quickSort(A , left , (pivot-1));
if(right > pivot)
quickSort(A , (pivot+1) , right);
}

[/sourcecode]
Full code of quick sort:

Selection sort in c programming

Root function of selection sort:
[sourcecode language="c"]
void Selection_Sort(int A[] , int N)
{
int i , temp , Loc ;

for(i=0 ; i<(N-1) ; i++)
{
Loc = Minimum(A , i , N);
temp = A[i];
A[i] = A[Loc];
A[Loc] = temp;
}
}
[/sourcecode]
Full code of selection sort:

Merge-Sort in C Programming

Main code of merge sort:
[sourcecode language="c"]
void mergeSort(int a[], int n) {

int b[100];
int l = 1;

while(l<n) {

mergePass(a, l, n, b);
mergePass(b, 2*l, n, a);
l = l*4;
}
}
[/sourcecode]
Full code of merge sort:

Saturday, January 28, 2012

Animated Share Buttons with CSS & jQuery

Bloggers are want to share post in social networks web which they like most. So, a share button is mostly important in a blog. I have create a beautiful animated share button and I think all of you like it.Animated Share Buttons
Download link: Direct and Demo is here

Thursday, January 26, 2012

Insertion sort in programming

Function of Insartion sort:
[sourcecode language="c"]
void Insertion_Sort(int A[] , int N)
{
int i , j , temp ;

for(i=2 ; i<N ; i++)
{
temp = A[i];
j = i-1;
while(temp < A[j])
{
A[j+1] = A[j];
j--;
}
A[j+1] = temp;
}
}

[/sourcecode]

Fiber Signup Form

corbon fiber signup
Download link: Direct | Demo: View

Colorful Clock With CSS And Jquery

CSS and Jquery Clock
Download link:Direct | Demo link: View

Thursday, January 19, 2012

Graph Coloring in C Programming

Let G be a graph and m be a given positive integer. We want to whether the nodes of G can be colored in such a way that no two adjacent nodes have the same color yet only m colors are used.

Example:
Let graph G has 5 nodes (a, b, c, d, e) and adjacent matrix is as follows-
* a b c d e
a 0 1 1 0 1
b 1 0 1 0 1
c 1 1 0 1 0
d 0 0 1 0 1
e 1 1 0 1 0

Answer:
Vertex a is color 1
Vertex b is color 2
Vertex c is color 3
Vertex d is color 1
Vertex e is color 3

I have solve this problem in c programming and it run properly in Cygwin.

Source code:

Wordpress "Mylinks" Widgets Creating

Today I have created a wordpres Widget as the name of "Mylinks". By this you can add your won enternal and external links with ultra css.
To use this widget please follow the instructions-
1. Download widget (link).
2. Install it to your wordpress web.
3. Go to admin page -> Setting -> Mylinks or MylinksCentral.
4. Drag the widget into sidebar.
5. In blank box write your xml files link.

The links into xml file as follows code-

Wednesday, January 18, 2012

Canteen & Department Store Software in C Programming

I have created a software as the name of IST Canteen & Department Store in C programming. The code was run in TC properly. The code of software is open so you can develop it yourself. If you develop it, please mail us.
It is mention that, the mouse play and the option "7.print" work only in memory free system.

Download link: Direct

Canteen & Department Store Software in C programming

Monday, January 16, 2012

Create notepad with C++ programming

C++ notepad
(TC was used to run this program)

Download link: direct
C++ notepad code:

Image watermark with text and image

Image watermark with text or image is necessary to protect won web image copy from user. Click here for demo watermark with text and click here for demo watermark with image.

(It is mention that demo is limited. so, download and check in your host sarver.)

Download link: Direct

Watermark

Wednesday, January 11, 2012

Create or delete subdomain dynamically using php and cPanel

Introduction
Using this code you can create subdomains in the live server using php under cPanel control panel. There are two functions in this code. One is to create subdomains and the other is to delete a subdomain.
A subdomain is nothing but a folder in the root folder or a folder in any other place in your server domain space under the root folder which will be pointed by a url which you give as name.

Create subdomain code in php

Here is the function to create a subdomain in php.

• First parameter is the subdomain name. Like if you want music.sitename.com then you should provide the word music.

• Second parameter is the user name of your web hosting control panel username. This is the login where you manage your sites files, ftp, database, etc.

• Third parameter is the password of your control panel.

• Fourth parameter is the name of your original or root domain. for example if your domain name is example.com then you have to provide this here without the subdomain name.

Tuesday, January 10, 2012

Web, news and image search using google api

Real time search using google api. By this you can search web, news and image from your web through www.google.com api.Click here for demo
Google Search

Monday, January 9, 2012

eBangla ASCII To Unocode Converter

eBangla converter is the online converter that convert ASCII text (bijoy) to unicode text.

Click here for Demo

Friday, January 6, 2012

Gravity registration page

To create a gracity registration page jsut copy this code and save as index.php in your sarver.
Code of index.php

Convert image to code image by php

[php]
<?php
function image2ascii( $image ){
$ret = '';
$img = ImageCreateFromJpeg($image);
$width = imagesx($img);
$height = imagesy($img);

for($h=0; $h<$height; $h++) // loop for height of image code
{
for($w=0; $w<=$width; $w++) // loop for width of image code
{
$rgb = ImageColorAt($img, $w, $h); // add color in code
$r = ($rgb >> 16 ) & 0xFF;
$g = ($rgb >> 8 ) & 0xFF;
$b = $rgb & 0xFF;
// create a hex value from the rgb
$hex = '#'.str_pad(dechex($r), 2, '0', STR_PAD_LEFT).str_pad(dechex($g), 2, '0', STR_PAD_LEFT).str_pad(dechex($b), 2, '0', STR_PAD_LEFT);

if($w == $width)
{
$ret .= '<br>';
}
else
{
$ret .= '<span style="color:'.$hex.';">*</span>';
}
}
}
return $ret;
}


$image = '123.jpg'; // an image to convert in code
echo image2ascii( $image ); // do the conversion by calling function
?>
[/php]
Click here for Demo