Archive

Archive for the ‘About Myself’ Category

Good articles in life hacker


Boring free times can be replaced with good reads in lifehacker and other good sites. The following are the few articles I personally cherished reading.

http://lifehacker.com/top-10-reasons-to-exercise-regularly-besides-losing-we-1473616982

http://lifehacker.com/train-your-brain-to-think-like-a-creative-genius-1509738599

http://lifehacker.com/why-exercise-helps-you-think-straight-557945206

http://lifehacker.com/how-to-build-your-confidence-and-why-it-matters-1442414831

http://lifehacker.com/why-you-should-track-your-efforts-not-your-achievement-1355909784

Advertisements

Steve Jobs’ 2005 Stanford Commencement Address


 Here I’m attaching the Steve’s video which has become inspiration for millions. Though it is all about his success story There are plenty of things we should learn from it, his failures, successes, passion for technology, leadership and humbleness even being one of the pioneers of the world in bringing out technology to the common man. It is a very sad news for the tech world for loosing one of the technologist who has changed the way we are living now..May his soul rest in Peace!

Categories: About Myself, Inspiration

Open-ssh Server installation in ubuntu


If you want to remotely login to any system which is running linux you can do so by using ssh command which is very famous for its security awareness. In ssh all the communication via port 22 is encrypted unlike other communication protocols such as TELNET, ftp, rlogin etc., where all the data and passwords can be hacked.

In all the flavors of linux there is no guarantee that ssh is pre installed. Particularly I’m running ubuntu LT 10.04 in which it is not pre-installed. We have install it manually. Openssh is a free open source version of ssh protocol implementation.

We can install openssh client and server using the below command

# sudo apt-get install openssh-server openssh-client

then we can test it by using

ssh localhost
# ssh user@your-server-ip-address
Ex: #ssh sshVasnath@vasanth 192.16.36.17

if you want to get the sudo privileges to sshVasanth user running on the machine IP address 192.16.36.17, you should
use the run the following command in the server(192.16.36.7) with sudo

# sudo adduser <ACCOUNTNAME> admin

Ex: sudo adduser sshVasanth admin

SOAP message to run the service in server


import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.transform.Source;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Chittampally Vasanth Raja
 */
public class SOAPMessage1 {

         //First create the connection
    public static void main(String[] args) throws IOException, TransformerConfigurationException, TransformerException {
        try {
            SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
            SOAPConnection connection = soapConnFactory.createConnection();
            MessageFactory messageFactory = MessageFactory.newInstance();
            SOAPMessage message = messageFactory.createMessage();
            //Create objects for the message parts
            SOAPPart soapPart = message.getSOAPPart();
            SOAPEnvelope envelope = soapPart.getEnvelope();
            SOAPBody body = envelope.getBody();
            //Populate the body
            //Create the main element and namespace
            SOAPElement bodyElement = body.addChildElement(envelope.createName("add", "ns2", "http://me.org/"));
            //Add content
            bodyElement.addChildElement("num1").addTextNode("12");
            bodyElement.addChildElement("num2").addTextNode("34");
            // bodyElement.setEncodingStyle("text/xml");
            //Save the message
            message.saveChanges();
            //Check the input
            System.out.println("\nREQUEST:\n");
            message.writeTo(System.out);
            System.out.println();
            //Populate the Message
            //        StreamSource preppedMsgSrc = new StreamSource(
            //                 new FileInputStream("./prepped.msg"));
            //        soapPart.setContent(preppedMsgSrc);
            //String destination = "http://localhost:8084/TestAT/HelloWorld";
            String destination="http://localhost:8080/GlassWS/HelloWorldService";
            //Send the message
            SOAPMessage reply = connection.call(message, destination);
            System.out.println("" + reply);
            System.out.println("\nRESPONSE:\n");
            //Create the transformer
            TransformerFactory transformerFactory = TransformerFactory.newInstance();
            javax.xml.transform.Transformer transformer = transformerFactory.newTransformer();
            //Extract the content of the reply
            Source sourceContent = reply.getSOAPPart().getContent();
            //Set the output for the transformation
            StreamResult result = new StreamResult(System.out);
            transformer.transform(sourceContent, result);
            System.out.println();
            //Close the connection
            connection.close();
        } catch (SOAPException ex) {
            Logger.getLogger(SOAPMessage1.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedOperationException ex) {
            Logger.getLogger(SOAPMessage1.class.getName()).log(Level.SEVERE, null, ex);
        }
}

}

MultiMedia Systems Project Final Evaluation


Here is the multimedia final project ppt An Efficient Video Similarity Search AlgorithmAn Efficient Video Similarity Search Algorithm. I had already shared the abstract of the project and the actual IEEE Transaction paper I had implemented. The following link contains the link for the final Efficient Video Searching Algorithm REPORT.

The presentation went very well. My instructor, HOD, was very happy with the work I’ve done including  modifications I had done to the paper for improving the time.

The results I got from the video database of a considerable size are:

Video similarity search query video

Video similarity search query video

Retrieved videos are

QBE2 output

QBE2 output

output3

output3

Connect MS-Access database from MATLAB


Already I’ve shared the way and source code how to connect MySQL data base from MATLAB. In this post I want to share how to connect to MS-Access. I initially thought of using the MySQL as database but due to some issues of reinstalling the OS and being MySQL not getting installed properly, I went for MS-Access. I hope this post will be very helpful to you if you have come here searching for connecting MS-Access from MATLAB.

function db=insertdb(name, imagePath, ICC)
dbpath = 'C:\Users\MyWindows7\Documents\abc.mdb';
conurl = ['jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=' dbpath];
con = database('','','','sun.jdbc.odbc.JdbcOdbcDriver', conurl)

%insertQuery=['insert into Image values(' name ',' imagePath ',' ICC ');' ]
%e = exec(con,insertQuery);
colnames={'imgName', 'imagePath', 'iCC'};
values={name, imagePath, ICC};
insert(con, 'Image',colnames, values ) %This statement inserts the values which are contained by values %array variables
%e = fetch(e);
%data = e.Data

In the above program % represents comments you can ignore them if you want. I included them to say that there are several other ways to insert a row into the MS-Access database. In the above code  if you specify the path of database(ie.,        .mdb file) then its enough there is no need for you to specify DSN name and other things. similarly you can also work with other SQL statements. I hope this helps. If you have any more queries or clarifications you can feel free to comment here.

Semantic Web 3.0 Professional seminar ppt


Here I want to share Semantic Web Mining PPT that I have prepared for my Professional Seminar. I’ve already shared my abstract and report here. If you have any queries or clarification you can feel free to leave a comment. I hope the ppt would have given some insight into What Semantic Web is?