Skip to main content

Posts

Showing posts from 2010

Bollywood Hits around 1990's.

2010 year end vacation time began with a complex plan in my mind on how to spend each of the holiday on the vacation. But according to the theorom 'always has to expect unexpected things',I went down with severe fever and need to rest for few days. Hence I had to look into another backup plan. Thus as an item in the backup plan,I decided to continue on my school time hobby,listening to bollywood songs around 1990's. Finally I got the feeling,it's better if I could share some of them due to the beauty and attractiveness of those melodies. Following are those selected hits.Listen to them and enjoyyy... Film:Jo Jeeta Wohi Sikandar Song:Pehla Nasha Singer(s): Sadhana Sargam, Udit Narayan Watch Online : http://www.youtube.com/watch?v=Kript89cSsA&feature=fvw Lyrics: Film: Qayamat Se Qayamat tak Song: Ae Mere Humsafar Singer(s): Alka Yagnik, Udit Narayan Watch Online : http://www.youtube.com/watch?v=K1CUAHbZjmo&feature=fvw Lyrics: Film:Raja Hindusthani Song: Aaye Ho Me...

Learned a Lession

Install Ubuntu in Windows When I had to install Ubuntu for the first time ,what I did was simply install it inside windows using wuby installer. For that moment it seemed the easiest way to done so,but later I was realized how much of troubles it gave for me,while using my duel-boot laptop.According to my requirements I required high capacity in Ubuntu to do programming.But when ubuntu installed inside Windows OS in same partition,the amount of usable space for working in ubuntu is highly reduced.So the performance become highly decreased.Sometimes machine got to stuck. So by my own experience,I want to say if you are going to install ubuntu for a machine in which Windows already installed and going to start programming on ubuntu,always try to install Ubuntu in another seperate partition.It will take more time and feel much more complex during the installation period.But I'll guarantee it will results high performance to carry on your work on Ubuntu in later time.

AJAX-XMLHttpRequest Part3

(Link with the post AJAX-XMLHttpRequest 2 ) Finally a function useHttpResponse need to be written which will establish when the server has completed our request, and do something useful with the data it has returned: function useHttpResponse() { if (http.readyState == 4) { var response = http.responseText; } } Note here that the function checks for a readyState value of 4 - there are various numbered states describing the progress of such a request, but only value of 4 indicates that the request is complete and we can use the returned data. In this case, the information has received as simple text via the responseText property of our XMLHTTPRequest object. Information can, however, be returned as XML ,JSON or as properties of a predefined javascript object. References: http://www.w3.org/TR/XMLHttpRequest/ http://www.ibm.com/developerworks/web/library/wa-ajaxintro...

AJAX-XMLHttpRequest Part2

(Link with the post AJAX-XMLHttpRequest 1) First, need to know how to create an XMLHTTPRequest object. With IE(The way of creating the object depend on the web browser), the request looks like: http=new ActiveXObject("Microsoft XMLHTTP"); whereas in a standards-compliant browser object can be instantiated as: http = new XMLHttpRequest(); Then an event handler which will be called via some event on user's page need to be written and it will handle sending the request for data to the server. In the following example event handler called updateData ,a request of the server is made by using a GET method to an appropriate server-side script.A XMLHTTPRequest object has created and called it http: function updateData(param) { var myurl = [here I insert the URL to my server script]; http.open("GET", myurl , true); //This is to open the connection with the server. ...

AJAX-XMLHttpRequest Part1

I'm totally new to AJAX technology.Since I got an AJAX related task on my job,I had to carry out a research on it and get a clear understanding on it.Following is the knowledge I gained from that research. Before talking about XMLHttpRequest, I'll describe what is AJAX. Ajax (Asynchronous Javascript And XML) is a technique to submit server requests and return information from the server to the user without the necessity of waiting for a page load. An Ajax script makes a request of a server by using the Javascript XMLHTTPRequest object,instead of using a a normal HTTP POST or GET request.XMLHTTPRequest retrieves information from the server in an invisible manner without using a page refresh. (Link with the post AJAX-XMLHttpRequest 2)

Convert an InputStream to XML

For that we can use DocumentBuilder class in java. By using the method parse(InputStream) ; A new DOM Document object will return. InputStream input; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder parser = factory.newDocumentBuilder(); Document dc= parser.parse(input); In the above code segment,by using the created Document object,the corresponding XML file for the inputStream can be accessed. References: http://www.w3schools.com/dom/dom_intro.asp http:// download.oracle.com/javase/1.4.2/docs/api/javax/xml/parsers/DocumentBuilder.html

Convert a ByteArrayInputStream to a XML file

InputStream input; OutputStream out = new FileOutputStream("file location"); int read=0; input = registry.get(Path).getContentStream(); byte[] bytes = new byte[1024]; while((read = input.read(bytes))!= -1){ out.write(bytes, 0, read); out.write( '\n' ); } input.close(); out.flush(); out.close(); System.out.println("New file created!");

HTTPRequest

How to retrieve a value for a parameter included in a request? String Url=req.getParameter("url"); //get the value for the parameter url How to set a value for any attribute in a request? req.setAttribute("key", 123); //set the value 123 for the attribute 'key'

JSON-JavaScript Object Notation

JSON is a syntax for passing around objects that contain name/value pairs, arrays and other objects. It is a lightweight text-based open standard designed for human-readable data interchange. And it is language-independent, with parsers available for virtually every programming language.The JSON format is often used for transmitting structured data over a network connection. JSON is primarily used to transmit data between a server and web application, serving as an alternative to XML. JSON Format An object is an unordered set of name/value pairs. An object begins with { (left brace) and ends with } (right brace). Each name is followed by : (colon). The name/value pairs are separated by , (comma). An array begins with [ (left bracket) and ends with ] (right bracket). Values are separated by , (comma). The following example shows the JSON representation of an object that describes a employee. The object has string fields for first name and last name, a number field fo...

Jefe Research Papers published + ICter Conference

The two research papers compiled out during our final year project Jefe (The Ultimate Software Development Workflow Managemnt Solution) has been selected for the International Conference on Advances in ICT for Emerging Regions - ICTer2010 held on 29 September 2010 to 1 October 2010 .It's really happy that we could able to successfully published both papers.yepeeeeeeee............ The better part of this was we had to present our two research papers to the ICTer Conference audience.One was done by me.It was rather a funny experience with race conditions how I came to Cinamon Lakeside hotel to do it on time. But during the presentation,it was a GREAT experience to present our research work to a well experienced IT audience for the first time in my life as a new comer to the IT industry. So thank you my team members for doing the project work as a team and giving me this great opportunity and then thank you our dearest supervisors Shahani Madam and Sulochana madam for encouraging us d...

First Three Weeks at WSO2

Though leaving the uni life and uni friends and switching to the career life feels very sad , I would like to say it was an awesome time period ,I was able to experience during my first three weeks at WSO2. I started my career from 13th of September 2010. The first week at WSO2 was full of different experiences including Introduction program,Two-days WSO2 conference,Discussion about products with customers and the fabulous WSO2 birthday party. The second week began with dividing new comers to teams.I was allocated to GS (Gadget Server)team. Our team is for developing a web based portal as a dashboard solution to integrate WSO2 back-end products and more as gadgets. At the first day of WSO2,we were given laptops and the first thing that I was done as a task ,is installing Ubuntu.Since I'm new to Ubuntu environment,I had to get familiarized with friends' support. Then I started to get the Carbon product to my machine.First I checked out the Carbon product from the trunk and t...

End of ...Uni Life

After a joyful,busy,happy,sad,enjoyable,fantastic,hard,etc..of four years duration,finally I'm out from the university. It's very sadful coz I'm really going to miss a lot of good friends.Thank you very much dear friends for being with me in both sad and happy moments in my four years of uni life. Now it's time to change my life style from uni life to job life.

Setup a Mercurial Repository in Windows

Installing Mercurial Server on windows As the first step download Tortoise Hg from the below link and install it. Before download you need to select the compatible tortoise Hg installer according to your PC/Laptop’s number of bits (32 or 64). Get Tortoise Hg: http://tortoisehg.bitbucket.org/download/ Tortoise Hg works as a front end UI to Mercurial and always installs the latest version of each. Configure Tortoise Hg First step should be to make sure that you are correctly identified to TortoiseHg. You do this by opening the global settings dialog. Right click on the desktop background and select TortoiseHg -> Global Settings . Select the Commit page and enter a name in the Username field. Note:If you neglect to configure a username TortoiseHg will ask you to enter one when you try to commit , which is the first time a username is actually required. You can do more configuration changes in tortoise Hg. For further details refer this web site; http://tortois...

An approach to integrate applications in to a portal engine

Displaying existing web interface of an application Creating a portlet with a more granular level without relying on JSR 168 portlet API is done by embedding the web interface of an application to an IFrame (Inline Frame) portlet. An IFrame portlet invokes an URL inside an IFrame within the portlet window. It gets content referenced by an URL and displays it in a portlet. IFrame portlets can be downloaded freely or else they can be found already integrated in many web portals. Thus a user can use a portlet integrated to a portal or either create a custom IFrame portlet. Basically these portlets contain following jsp pages: --configuration.jsp (for edit mode) -This is for adding configuration values such as source URL of directing web page, look and feel attributes and authenticating attributes. --view.jsp (for view mode) - This makes possible to view the embedded web page inside the current portal page with the help of the functions in the portlet namespace. --proxy.jsp...

Environmental Threats- Computer Security

Introduction To gain high secure, a system must be concerned about the interference of natural matters too. The natural matters which affect the security of a computer system are called as ‘Environmental Threats’. Some of the e xamples for environmental threats can be categorized as extreme cold,heat,humidity,dust,rainfalls,earthquakes, floods, fires, hurricanes, snow, ice, mud slides and sink holes. Methods of mitigating Environmental Threats · Air filters should remove fine dust particles because outdoor dust is brought in on clothes and shoes · Air filters must be cleaned or replaced in a regular schedule. · Periodically air heating equipment should be turned on, even it isn’t needed. This is to incrementally burn off that would other wise accumulate and be converted to an appreciable amount of smoke, when the equipment is activated for the first time after a long time period. · Water detectors should be placed above and below a raised floor to monitor the rise of water level. ·...