Hi, Its very pretty for change url in address bar to any format or redirect to any (page)url
url rewrite in php apache mod_rewrite .htaccess for beginners
Posted by Manikandan.MS on February 23, 2012
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
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->image_type = $image_info[2];
if( $this->image_type == IMAGETYPE_JPEG ) {
$this->image = imagecreatefromjpeg($filename);
} elseif( $this->image_type == IMAGETYPE_GIF ) {
$this->image = imagecreatefromgif($filename);
} elseif( $this->image_type == IMAGETYPE_PNG ) {
$this->image = imagecreatefrompng($filename);
}
}
function save($filename, $image_type=IMAGETYPE_JPEG, $compression=75, $permissions=null) {
if( $image_type == IMAGETYPE_JPEG ) {
imagejpeg($this->image,$filename,$compression);
} elseif( $image_type == IMAGETYPE_GIF ) {
imagegif($this->image,$filename);
} elseif( $image_type == IMAGETYPE_PNG ) {
imagepng($this->image,$filename);
}
if( $permissions != null) {
chmod($filename,$permissions);
}
}
function output($image_type=IMAGETYPE_JPEG) {
if( $image_type == IMAGETYPE_JPEG ) {
imagejpeg($this->image);
} elseif( $image_type == IMAGETYPE_GIF ) {
imagegif($this->image);
} elseif( $image_type == IMAGETYPE_PNG ) {
imagepng($this->image);
}
}
function getWidth() {
return imagesx($this->image);
}
function getHeight() {
return imagesy($this->image);
}
function resizeToHeight($height) {
$ratio = $height / $this->getHeight();
$width = $this->getWidth() * $ratio;
$this->resize($width,$height);
}
function resizeToWidth($width) {
$ratio = $width / $this->getWidth();
$height = $this->getheight() * $ratio;
$this->resize($width,$height);
}
function scale($scale) {
$width = $this->getWidth() * $scale/100;
$height = $this->getheight() * $scale/100;
$this->resize($width,$height);
}
function resize($width,$height) {
$new_image = imagecreatetruecolor($width, $height);
imagecopyresampled($new_image, $this->image, 0, 0, 0, 0, $width, $height, $this->getWidth(), $this->getHeight());
$this->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->load($_FILES['uploaded_image']['tmp_name']);
$image->resize(400,200);
$image->save('image.jpeg');
} else {
?>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="uploaded_image" />
<input type="submit" name="submit" value="Upload" />
</form>
<?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<br> This Example for Unicode access...<br><br> 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..
Posted in Uncategorized | Tagged: Manikandan.M | 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 »
