Program.in

By Santosh Wadghule

Archive for the ‘Uncategorized’ Category

My Site

without comments

mechanicles1

I’ve finally launched my site! http://www.mechanicles.com/ :)

Written by Santosh Wadghule

July 31, 2009 at 6:38 pm

Posted in Uncategorized

Me → M.Sc. Computer Science

without comments

My B.Sc degree in computer science has been completed. I have got higher 2nd class. Now i have taken admission in M.Sc. Computer Science. Before that i want to do CDAC, but my brother told me that you should have master degree so i have taken.


Written by Santosh Wadghule

June 29, 2008 at 2:34 pm

Posted in Uncategorized

My Blog Fetcher…

without comments

Blog fetcher is program in PHP that i have made to fetch my blog heading titles (topics) and also the dates and categories. But this program is applicable only for my particular blog not for other blogs. So that I have used file handling for reading data of My blog. Blog fetcher is similar to the concept of RSS , But still it is not RSS. It catches the html tags of my blog and reads data of that tag and prints the data. Output is bellow…

php code is bellow :


$source = "http://programin.wordpress.com/";
$file = fopen("$source", "r") or exit("Unable to open file!");
while(!feof($file))
{
$line = fgets($file);
if($pos1 = strpos($line , "h2" )) //for catching the blog post titles
{
echo $line;

}
else if($pos2 = strpos($line,"meta"))  //for catching the dates and categories
{

echo $line;
}

}
fclose($file);
?>


I have used css for attractive output. Code of css is bellow :


html,body{margin:0.5%;padding:0}
div#header h1{

height:80px;margin:0;
border-bottom:2px solid #00529B;
border-top:2px solid #00529B;
border-left:2px solid #00529B;
border-right:2px solid #00529B;
background: #BDE5F8;
padding-left:5px;
font-family :'Trebuchet MS';
color : #00529B;
}

h2{ font-family :'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
font-size: 15pt;
color: green;
text-align: left;
margin-top: 0.5%;
}

div#container{
border-bottom:2px solid #00529B;
border-top:2px solid #00529B;
border-left:2px solid #00529B;
border-right:2px solid #00529B;
padding:4px 6px;
width:800px;
margin:0 auto
}

div#content{padding-left:5px; margin-top:3%}

.meta {
border-bottom: 1px dotted #00529B;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
color:black;
padding:4px 6px;
margin:0 0 10px 0;
}

a:link {color: #00529B}
a:visited {color:gray}
a:hover {color:green;font-size: 100%}
a:active {color:black}
a {text-decoration: none}

span.small {
color : green;
font-size:15px;
}

Written by Santosh Wadghule

May 24, 2008 at 5:39 am

Posted in PHP, Uncategorized

Its Summer Holiday……..

without comments

Yesterday, It was the end of my exams, So now i am happy and free.

Written by Santosh Wadghule

April 10, 2008 at 9:59 am

Posted in Uncategorized

stu…ing .

without comments

My exam is coming soon. So that i am preparing for it. After exam i will continue my blog post.

Written by Santosh Wadghule

February 5, 2008 at 2:37 pm

Posted in Uncategorized

Deleting multiple records through Checkbox with jsp

without comments

In my project To-Do List , I had a problem about how to delete multiple records through checkbox, for that I was searching code and I got link which was very suitable for for my project. Make following code as delete.jsp

<%@ page import="java.sql.*"%>
<%

String deleteArray[] = request.getParameterValues("select");
String selected="";

if (deleteArray != null) {

if(deleteArray.length == 1) {

// Only one item is selected
selected = deleteArray[0];

} else {

// multiple items selected
for (int i = 0; i < deleteArray.length; i++) {

selected += deleteArray[i];

if( i < deleteArray.length -1) {
selected += ",";
}
}
}
}
%>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c = DriverManager.getConnection("jdbc:odbc:Task","","");
Statement st = c.createStatement();
PreparedStatement pst = c.prepareStatement("DELETE FROM tasklist WHERE task_id IN
("+selected+")");
pst.executeUpdate();
%>

If you want to know more about it,then follow this link http://forum.java.sun.com/thread.jspa?threadID=629227&messageID=3633428

Written by Santosh Wadghule

December 31, 2007 at 7:55 pm

Posted in Java, Uncategorized

Youngest FAN OF A R Rahman

without comments

Today,
I was searching the A R Rahman’s music video on youtube.com. Then i got interesting video which is that one years child’s fav song — Tere Bina from movie Guru — If you play any other song he will cry if you play this song he will be in peace– Check it out.
Youngest FAN OF A R Rahman

Written by Santosh Wadghule

December 28, 2007 at 7:30 am

Posted in Uncategorized

Will buy Nokia 3500 classic in this month !!!

with one comment

Last tow months I was thinking that to buy new mobile. For that I was searching  different moblies. At last I decided NOKIA 3500 classic will my new mobile which is fit for function which is I want. Its pretty good looking.

Nokia 3500

If you want to know more about Nokia 3500 classic then click here

Written by Santosh Wadghule

December 2, 2007 at 3:14 pm

Posted in Uncategorized

Installation of Apache Tomcat Using Redhat Linux

without comments

For installation of Apache Tomcat you need Java Development kit be installed. I chose to install Sun’s Java 2 Platform, Standard Edition, which can be downloaded from http://java.sun.com/javase/downloads/index.jsp
I selected the JDK 6 Update 3 Linux self-extracting binary file.

Change to the directory where you downloaded the SDK and make the self-extracting binary executable:
chmod +x jdk-6u3-linux-i586.bin

Run the self-extracting binary:
./jdk-6u3-linux-i586.bin

Move the SDK directory to where you want it to be installed:
e.g.
mv jdk-6u3 /usr/java

Download Tomcat:
You can download apache tomcat server from http://tomcat.apache.org/. I selected Tomcat 6.x which is tar.gz (Binary- Core) file.

Unzip Tomcat by issuing the following command from your download directory:
tar xvzf apache-tomcat-6.0.14.tar.gz

This will create a directory called apache-tomcat-6.0.14. Move this directory to wherever you would like to install Tomcat. I chose /usr/local. Here is the command I issued from inside the download directory:
mv apache-tomcat-6.0.14 /usr/local/

Written by Santosh Wadghule

November 19, 2007 at 2:06 pm

Posted in Java, Uncategorized

My Online Drawing!

without comments

Today I have drawn my online paintings on art.com. This online painting site is very simple to draw and more effective. You can see my paintings, Please refer this sites
1. http://artpad.art.com/gallery/?jrk63×4f2e0
2. http://artpad.art.com/?jrk8wlfez60.

Written by Santosh Wadghule

November 15, 2007 at 5:29 pm

Posted in Uncategorized