Infomani

Hi, this is for U only.Do well, Feel Free…

  • No of Visitors

    • 5,142 hits
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4 other followers

  • Time is Now

    February 2012
    M T W T F S S
    « Jan    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  
  • Everything

  • Zip

url rewrite in php apache mod_rewrite .htaccess for beginners

Posted by Manikandan.MS on February 23, 2012

Hi, Its very pretty for change url in address bar to any format or redirect to any (page)url

Posted in Uncategorized | Leave a Comment »

Testing Tamil Dictionary

Posted by Manikandan.MS on January 17, 2012

தமிழ் இலக்கணம்

Its Coming Soon…

#button {
	font-weight: bold;
	border: 2px solid #fff;
}

தமிழ் இலக்கணம்

Posted in Uncategorized | Leave a Comment »

download

Posted by Manikandan.MS on January 9, 2012

Download the following articles by using this link

Download Here

Also Download Here

https://docs.google.com/open?id=0B9lF69N4CCq0M2NjZGQ4ZDYtZTkxYS00NTc3LWE3YjQtZTdkNDJlOWZjOTQz

Posted in Uncategorized | Leave a Comment »

Image Resize in php

Posted by Manikandan.MS on July 22, 2011

1 .  Copy the below code and save this file like SimpleImage.php

// Source code : SimpleImage.php

<?php
error_reporting(E_ALL ^ E_NOTICE);
class SimpleImage {

var $image;
var $image_type;

function load($filename) {

$image_info = getimagesize($filename);
$this-&gt;image_type = $image_info[2];
if( $this-&gt;image_type == IMAGETYPE_JPEG ) {

$this-&gt;image = imagecreatefromjpeg($filename);
} elseif( $this-&gt;image_type == IMAGETYPE_GIF ) {

$this-&gt;image = imagecreatefromgif($filename);
} elseif( $this-&gt;image_type == IMAGETYPE_PNG ) {

$this-&gt;image = imagecreatefrompng($filename);
}
}
function save($filename, $image_type=IMAGETYPE_JPEG, $compression=75, $permissions=null) {

if( $image_type == IMAGETYPE_JPEG ) {
imagejpeg($this-&gt;image,$filename,$compression);
} elseif( $image_type == IMAGETYPE_GIF ) {

imagegif($this-&gt;image,$filename);
} elseif( $image_type == IMAGETYPE_PNG ) {

imagepng($this-&gt;image,$filename);
}
if( $permissions != null) {

chmod($filename,$permissions);
}
}
function output($image_type=IMAGETYPE_JPEG) {

if( $image_type == IMAGETYPE_JPEG ) {
imagejpeg($this-&gt;image);
} elseif( $image_type == IMAGETYPE_GIF ) {

imagegif($this-&gt;image);
} elseif( $image_type == IMAGETYPE_PNG ) {

imagepng($this-&gt;image);
}
}
function getWidth() {

return imagesx($this-&gt;image);
}
function getHeight() {

return imagesy($this-&gt;image);
}
function resizeToHeight($height) {

$ratio = $height / $this-&gt;getHeight();
$width = $this-&gt;getWidth() * $ratio;
$this-&gt;resize($width,$height);
}

function resizeToWidth($width) {
$ratio = $width / $this-&gt;getWidth();
$height = $this-&gt;getheight() * $ratio;
$this-&gt;resize($width,$height);
}

function scale($scale) {
$width = $this-&gt;getWidth() * $scale/100;
$height = $this-&gt;getheight() * $scale/100;
$this-&gt;resize($width,$height);
}

function resize($width,$height) {
$new_image = imagecreatetruecolor($width, $height);
imagecopyresampled($new_image, $this-&gt;image, 0, 0, 0, 0, $width, $height, $this-&gt;getWidth(), $this-&gt;getHeight());
$this-&gt;image = $new_image;
}
}
?>

2 . Also copy the below code and save this file like upload.php

// source code : upload.php

<?php
if( isset($_POST['submit']) ) {

include('SimpleImage.php');
$image = new SimpleImage();
$image-&gt;load($_FILES['uploaded_image']['tmp_name']);
$image-&gt;resize(400,200);
$image-&gt;save('image.jpeg');
} else {

?&gt;

&lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;
&lt;input type="file" name="uploaded_image" /&gt;

&lt;input type="submit" name="submit" value="Upload" /&gt;

&lt;/form&gt;

&lt;?php
}
?>

Posted in Uncategorized | Leave a Comment »

How to increase the speed of our Browsers

Posted by Manikandan.MS on February 24, 2011

In Firefox 3.0 for PCs
        1. Log out of Gmail and close all other open browser windows.
        2. Click the Tools menu at the top of your browser and select Clear Private Data…
        3. Select the Cookies and Cache checkboxes.
        4. Click Clear Private Data Now.
In Firefox 3.5+ for PCs
        1. Click the Tools menu.
        2. Click Clear Recent History.
        3. Expand the details.
        4. Select the Cookies and Cache checkboxes.
        5. Click Clear Now.
In Internet Explorer 6.x
        1. Log out of Gmail. Close all other open browser windows.
        2. Click the Tools menu at the top of your browser, and select Internet Options.
        3. Click the General tab at the top of the dialogue box.
        4. Click Delete Files under Temporary Internet files.
        5. Select Delete all offline content by checking the box.
        6. Click OK.
In Internet Explorer 7
        1. Log out of Gmail and close all other open browser windows.
        2. Click Tools > Internet Options.
        3. Select the General tab.
        4. Click Delete under Browsing History.
        5. Under Temporary Internet Files, click Delete Files.
        6. Click Delete Cookies.
        7. Click OK.
In Internet Explorer 8
        1. Log out of Gmail and close all other open browser windows.
        2. Click Tools > Delete private browsing history.
        3. Click the box next to ‘Temporary Internet files’ and ‘Cookies.’
        4. Click Delete.

Posted in Uncategorized | Leave a Comment »

Interface as in Tamil in Website

Posted by Manikandan.MS on June 22, 2010

Example: source code of  html

Name: utfeight.html

/* By using the Below html coding we can create website as in Natural language graphical User Interface */

steps:

1. copy the below code and paste it in the notepad

2. save this file in utfeight.html

3.while saving choose UTF-8  as encoding in the notepad

//Source code..

<pre><html>
<body bgcolor=pink>
<center>

Make Interface as in Tamil graphical&lt;br&gt;
This Example for Unicode access...&lt;br&gt;&lt;br&gt;

M.மணிகண்டன்...
<input type=text name=name value=முத்தமிழ்>
<input type=submit value=மணிகண்டன்>
</body>
</html>

//Note: while pasting, the tamil characters only as like boxes, don’t consider them..

OUTPUT: manimjs

Posted in Uncategorized | Tagged: | 3 Comments »

Creating Tamil Dictionary in JAVA

Posted by Manikandan.MS on March 3, 2010

Instruction:

1. Copy the below code and paste it in the notepad and save as TamilDict.java

2.Open one MS office Document and put some of the Tamil sentence like

‘ apple: ஆப்பிள் என்பது ஒரு வகையான பழம்’

* you should save as “apple.doc”

3. The same thing (point 2) make another ms document  and put some Tamil sentence

and save as “ball.doc”

4. The same thing we make ‘n’ number of document and put it in a folder where your source code(TamilDict.java) is available.

5. Check whether you should installed ” j2sdk1.4 ” otherwise it will not work(if it is old version)

6. When you run this program : It ask a word and you enter a word  like ‘ apple ‘ then it automatically display the corresponding Meaning in Tamil which we written in the MS Document.

Source code:

//program name : TamilDict.java

import java.awt.*;
import java.awt.event.*;
import java.io.*;

class TamilDict extends Frame implements ActionListener
{
TextField t1;
TextArea t;
Button b1;
Label l1;

Test2()
{
super("Unicode");
setSize(1024, 768);
setVisible(true);
setBackground(Color.pink);
setLayout(null);

l1 = new Label("Server");
t1 = new TextField("enter your word");
b1 = new Button("search");
t=new TextArea(" ");

l1.setBounds(30, 80, 200, 25);
t1.setBounds(100, 80, 200, 25);
t.setBounds(50,150,300,300);
b1.setBounds(320, 80, 80, 25);

b1.addActionListener(this);
add(t1);
add(t);
add(l1);
add(b1);

t1.requestFocus();
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e1)
{
System.exit(0);
}
}
);

}
public void actionPerformed(ActionEvent e2)
{

try
{
String s="";
int temp;
String fname = t1.getText() + ".doc";

if (e2.getSource() == b1)
{
FileInputStream fis = new FileInputStream(fname);
InputStreamReader isr = new InputStreamReader(fis, "UTF8");

while((temp=isr.read())!=-1)
{
s=s+ (char)temp;
}

t.setText(s);

}

}
catch (Exception e) { }

}
public static void main(String args[])    {

Test o = new Test();
}
}

/* This is one of the Project which I did.

  • powered by Manikandan,  Enjoy This… */

Posted in Uncategorized | Leave a Comment »