An exciting new way to learn your textbooks
                                 notemonk
Error loading Google Buzz data!

Notemonk – An exciting new way to learn your textbooks

Posted: April 3rd, 2010 | Author: admin | Filed under: Uncategorized | No Comments »

People, I’ve just launched www.notemonk.com, an education portal. At notemonk you can

notemonk_logo

  • Download books
  • Share and read notes on text book topics
  • Watch relevant videos

Notemonk aims to create a rich and fun learning experience around text books. For launch, we’ve included the higher standards in NCERT. Please take a look and spread the work. Your feedback is most welcome!


Three Laws of Robotism

Posted: January 4th, 2010 | Author: admin | Filed under: Uncategorized | 2 Comments »

As a new year resolution, I have adopted Robotism. The three laws of Robotism as I state:

  1. Organize and Balance all the activities.
  2. Work all the time except when such work conflict with the First Law.
  3. Have fun as long as such fun does not conflict with the First or Second Law.

TechSpirit to Techspiration

Posted: January 4th, 2010 | Author: admin | Filed under: Rationality, Spirituality | 1 Comment »

The inspiraton behind this name change is the Rationality. From now the blog also talks about Rationality in addition to Technology and Spirituality.

Few months back I have attended a spiritual gathering, where I did much reading. I always get fascinated reading spiritual literature, so I continued reading for a week, it was then I have come across a blog comparing spiritual organizations to cult’s where people are very less rational or irrational. I have no idea of what rationality means at that time, I have gone through few wiki articles reg. rationalism and biographies of people who were rational or philosophical. Interestingly that was the time I had few discussions with Prashanth on reasoning and logic. I was very thrilled by the intelligence behind rationality.  Though reasoning is a natural phenomena, we don’t apply to certain things just because they are such certain. But the habit of reasoning wonderfully  make you understand how those very certain things are not just certain.

I always had trouble in accepting such beliefs in spirituality which are not logical such a past/next life, enlightenment etc. I found nothing to confirm them but to force myself to believe in them with a belief that I will one day realize them in the process. Now with a week’s reading about Spirituality and Rationality I started applying reasoning to what I studied in Spirituality and very soon I was very happy to accept that there is no God. Spirituality asked me to stop being Religious saying that God has no religion,  no form and said he is everywhere. It extended saying, its not a good habit asking God for something as he knows everything. Concluding that I can never see him because he has no form and its completely ridiculous asking him for something because he knows everything. So slowly the rationality inside me started smiling to say that there is no God which further eased me to stop believing about past/next life and enlightenment.

I love being spiritual for its Universal Love, Brotherhood and Kindness. Spirituality can be seen as extension to the moral science that we study in school.


I am Back

Posted: June 8th, 2009 | Author: admin | Filed under: Uncategorized | 1 Comment »

For not paying the bills my hosting services were suspended and my blog was down for almost 5 months and now its back to life as prashanth offered to host my blog at his space. Thank you prashanth :)

Though my host has reminded me often of suspending the services I haven’t gave a damn to taking backup of the data and finally when the grace period is over all the data was gone and that was real pain in a**

Though me and my host has no care for my data I managed to get my previous posts by googling them, thanks to google’s caching service

Now I doesn’t get time to tweak the wordpress db to manage the posts look like old, so I just re-posted them and able to redirect my old url’s to the new one’s

So what you see below this post were written sometime last year


Head Rush – The Programmers Syndrome

Posted: June 8th, 2009 | Author: admin | Filed under: Programming | Tags: | No Comments »

If you are a serious programmer, you should have felt the Head Rush or be ready for one, let me explain what this syndrome is all about:

You the programmer got an idea, a very intelligent idea which is going to change your projects implementation plan, idea which will ease your project’s development plan (something like writing an API on which your project would depend), idea which will fetch you the highest reputation in your company.

Once you got this idea in your mind at first you will go crazy and soon when you get to the ground multiple neurons start firing your brain (like multiple threads fighting for the same resource). You will be thinking of an algorithm, soon the idea of hiccups in the implementation comes in and very soon the performance matters you and apart from all these knowing that ‘only showing the implementation of your idea makes you a hero’, you want to implement the idea very soon, very soon until which no food tastes you.

Now you will start dying to streamline your thoughts. like above said when you start thinking of an algorithm the idea of hiccups in the implementation comes in the middle and the feeling of being a hero always come in the middle of other ideas, at this time you will start feeling the blood rushing into your brain, a pressure which is just unbearable but the poor you without knowing it would try to bear that little headache that already started in your head. You will be thinking of all the implementation/performance tweaks to your idea which would make it more powerful.

Whatever you are doing, this idea will be in your mind, no matter how the world is doing you will be in this idea, neither the god can dare to separate you from this idea and now the headache starts increasing making you unable to bear it, may be any other person would have neglected the idea and would have taken rest for a while (that’s the only solution to this).

But below is how a geek has reacted…

An intelligent programmer soon after feeling that he is not capable of writing a single line of code got an idea to recover soon for which he visited a multi specialty hospital where he was charged Rs.450 as just a consultation fees and given a normal paracetamol.

Soon after returning from the hospital and before taking any medication he had a very painful vomiting and you know what Head Rush is gone. But how and when ? When he was vomiting he realized he has gone crazy, he realized he need to be stable, he realized he need to streamline his thoughts, he realized there is no hurry for the implementation after all the idea is yours and you will be the Hero. Now the happy programmer started blogging about the fun he had with a smile on his face

Happy programming :)


jMaki widgets for WordPress

Posted: June 8th, 2009 | Author: admin | Filed under: Programming, jMaki | Tags: , , , , | 8 Comments »

For those who doesn’t know jMaki,

“jMaki is an Ajax framework that provides a lightweight model for creating JavaScript centric Ajax-enabled web applications using Java, Ruby, PHP, and Phobos.”

i call it a widgetting framework, jMaki provides widgets which are the wrappers to the most popular javascript libraries like Dojo, Scriptaculous, Google, Yahoo etc… These wrappers are available for PHP and JSP which makes it very easy to add those javascript libraries to your PHP or JSP applications.

To a trial I started adding jMaki accordion widget to my wordpress blog which has turned to a WordPress plugin (download)

If you want to add other jMaki widgets to your blog, first go through the article:
wordpress-how-to-create-widgets
which will explain you of the basics of creating a WordPress plugin.

By now if you have gone through the above article you should be knowing how to say ‘Hello World’ from your sidebar. Now at the place(method) where you have written

echo "Hello World";

you need to replace that with the jMaki code which will look like this:

addWidget( array(
                          "name" => "jmaki.accordionMenu",
                       "style"=>"{height:40em}",
                          "value" =>"{
                           menu : [
                           {label:  'Blogs',
                                menu: [
                                    { label : ' Greg Murray',
                                      href : 'http://weblogs.java.net/blog/gmurray71/'
                                    },
                                    { label : 'J Naveen',
                                      href : 'http://jaininaveen.blogspot.com/'
                                    },
                                    { label : 'Prashanth Ellina',
                                      href : 'http://blog.prashanthellina.com/'
                                    },
                                    { label : 'Carla Mott',
                                      href : 'http://weblogs.java.net/blog/carlavmott/'
                                    },
                                    { label : 'Arun Gupta',
                                      href : 'http://blogs.sun.com/arungupta/'
                                    },
                                     { label : 'Vikraman',
                                      href : 'http://vikraman.blogspot.com/'
                                    }
                                    ]
                           },
                           {label: 'Sites',
                                menu: [
                                    { label : 'TollyZone',
                                      href : 'http://jmaki.karthikbala.com/tollyzone'
                                     },
                                    { label : 'Zenmocha',
                                      href : 'http://www.zenmocha.com'
                                    },
                                    { label : 'TechSpirit',
                                      href : 'http://www.karthikbala.com'
                                    },
                                    { label : 'Indian Capitals',
                                      href : 'http://indiancapitals.com'
                                    }
                                    ]
                           }
                                    ]
                       }"
            ) );

The above code is for the accordion widget, it differs from widget to widget, you can find them from here and before that u want to download jMaki from here but the above piece of code depends on other file called jmaki.php which you can add to your plugin directory and import that in this file by adding the line

 require_once("jmaki.php") ;

but i got a problem saying permission denied to access files, for which i need to set variables in ‘php.ini’ which is not preferred when writing a plugin, so smartly i added the required function in jmaki.php to mywidget.php. Still jmaki.php inturn calls other javascript functions which comes with jmaki-min.js which inturn make use of other files.The directory structure for a widget jmaki.accordion should be like this:

/- accordion
    |
    +-accordion.php
    |
    +-resources
    |    |
    |    +-jmaki.js
    |    |
    |    +-config.json
    |    |
    |    +-jmaki
    |        |
    |        +-accordion
    |        |    |
    |        |    +-component.css
    |        |    |
    |        |    +-component.js
    |        |    |
    |        |    +-component.htm
    |        |
    |        +-resources
    |             |
    |             +styles
    |                |
    |                +-themes
    |                     |
    |                     +-theme.css

You can find all those required files from the jmaki package you downloaded. jMaki website has got good documentation to start over.

Note:jmaki-accordion widget is in top 50 wordpress plugins


Installing Firefox 3.0 in Ubuntu

Posted: June 8th, 2009 | Author: admin | Filed under: Firefox | Tags: , , | No Comments »

Did you set the World Record?

You can participate in setting the world record by downloading Firefox today.

To manually install firefox in ubuntu follow these steps:

Preparing your system

sudo apt-get install libstdc++5

First you need to take backup of your old firefox preferences

sudo cp -R ~/.mozilla ~/.mozillabackup

Now you need to download firefox 3.0 from here

Now you have firefox-3.0.tar.bz2 file

Unzip the .tar.bz2 file in /opt directory using the following command

sudo tar -C /opt -jxvf firefox-3.0.tar.bz2

Now you need to link the plugins using the following command

cd /opt/firefox/plugins/

sudo ln -s /usr/lib/mozilla-firefox/plugins/* .

Now you need to create a link to your new firefox launcher using the following command

sudo dpkg-divert --divert /usr/bin/firefox.ubuntu --rename /usr/bin/firefox

sudo ln -s /opt/firefox/firefox /usr/bin/firefox

sudo dpkg-divert --divert /usr/bin/mozilla-firefox.ubuntu --rename /usr/bin/mozilla-firefox

sudo ln -s /opt/firefox/firefox /usr/bin/mozilla-firefox

This will complete the installation of firefox 3.0

If you want to open firefox 3 go to Applications—>Internet—>Firefox Web Browser


JSF Step by Step

Posted: June 8th, 2009 | Author: admin | Filed under: JSF, Programming | Tags: , , | 1 Comment »

JSF – Java Server faces

What Is Java Server Faces?

Java Server Faces is a new framework for building Web applications using Java.

All JSF projects need a particular directory structure as mentioned by the JSF framework.

This directory structure can be easily obtained by starting a JSF project in NetBeans.

To start a new JSF project in NetBeans

  1. Go to File Menu à New Project
  2. New Project Dialog box will open choose categories as web and project as Web Application. Click on the next button.
  3. In the next page give the desired Project Name for eg We have given vahanJSF and give the location where you want to save the project.

4. And in the same page select the server as tomcat. Netbeans is shipped with bundled Tomcat but you can choose other version of Tomcat if you desire by selecting the server combobox. To add a new server.
5.In the next page select the framework as JavaServer Faces this will enable the NetBeans to recognise the project as a type of JSF.
Now you can see your project appears in left pane under Projects tab.

6.Expand the new projec to see its directory structure viz. Web Pages, Configuration Files, etc..

To create a new Web Page

1. Right click on the Web Pages à New à JSP.

2. Give the name of the JSP page. We have given login. Click on Finish.

3. JSP pages acts as an interface containing only components like textboxes, comboboxes, radiobutton etc and these components are bound with backend bean where all the business logic is written. Backend bean is nothing but a java class file where we write java coding for our business logic.

To create a backend bean:

1. Right click on the Source Packages à New à Java Class.

2. Give Class name and the name of the Package. We have given Class name as loginbean and Package as vahanPackage. Click on Finish.

Any bean that u create in the project shud be registered in the faces-config.xml file i.e present in the Configuration Files as like

<managed-bean>
<managed-bean-name>loginbean</managed-bean-name>

<managed-bean-class>vahanPackage.loginbean</managed-bean-class>

<managed-bean-scope>request</managed-bean-scope></managed-bean>

Or another way to add a bean is to

1. Right-click the project and choose New à File/Folder. Under the Web category, select the JSF Managed Bean template and click Next.

2. Give the name and Package as you have given earlier. We have given Class name as userbean and Package as vahanPackage. Click on Finish.

3. Now open the Configuration file and see all the lines are added in it that you have added manually.

As we have created JSP page and backend bean so we’ll proceed with the coding part.

1. Open the JSP page. Now we need to declare the JSF tag libraries in the JSF file. Change the following code:

<%–<%@taglib uri=”http://java.sun.com/jsp/jstl/core” prefix=”c”%>–%>

To the following:

<%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core” %><%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html” %>

Examine the prefix given as h and f

h denotes the basic html tags
f denotes the jsf tags

These prefix letters can be changed according to ur choice but not recommended.

2. Change the contents of both the title and h1 tags to Vahan.

3. Now add a JSF form to the file. In the Palette(Window à Palette), click the JSF Form button, drag it to below the h1 tag, and release the mouse button. In the dialog box, leave Empty Form selected and click OK. The IDE fills in the following code in bold:

<f:view><h:form></h:form></f:view>

4. We are going to use inputText components to get the user input and a commandButton component to submit the form. So our code will look like

<%@page contentType=”text/html”%>

<%@page pageEncoding=”UTF-8″%>

<%–

The taglib directive below imports the JSTL library. If you uncomment it,

you must also add the JSTL library to the project. The Add Library… action

on Libraries node in Projects view can be used to add the JSTL 1.1 library.

–%>

<%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core” %>

<%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html” %>

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”

“http://www.w3.org/TR/html4/loose.dtd”>

<html>

<head>

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>

<title>Vahan</title>

</head>

<body>

<h1>Vahan</h1>

<f:view>

<center>

<h1>

<h:outputText value=”Welcome to Login Page”/>

</h1>

<h:form>

<p>

<h:outputText value=”UserName “/>

<h:inputText value=”#{loginbean.userName}” id=”tf_UserName”/>

</p>

<p>

<h:outputText value=”Password “/>

<h:inputText value=”#{loginbean.password}” id=”tf_Password”/>

</p>

<p>

<h:commandButton action=”#{loginbean.submit}” value=”SUBMIT” />

</p>

</center>

</h:form>

</f:view>

</body>

</html>

Look at the value of inputText is given as {loginbean.userName} this means the value is bind with the userName property of the loginbean. So as to bind the value with a property in the bean we need to create setter and getter methods for that particular value.

5.Now open loginbean.java. Add the following field declarations (shown in bold) to loginbean.java:

public class loginbean { String userName;String password; 6.Now let’s generate getters and setters for the fields.Right-click on fieldname(username) in the file and choose Refactor->Encapsulate Fields. <!–[if !vml]–>

7. A dialog box will open. Select both the check boxes for password also. Click next.

8. Refactoring window will open then click on the DoRefactoring button. The IDE switches the access level for the fields to private and creates the getter and setter methods.

9. Now the code for loginbean.java would look like

public class loginbean {

private String userName;

private String password;

public String getUserName() {

return userName;

}

public void setUserName(String userName) {

this.userName = userName;

}

public String getPassword() {

return password;

}

public void setPassword(String password) {

this.password = password;

}

10. Add a new JSP page called welcome.jsp. Add the following lines.

<%@ taglib prefix=”f” uri=”http://java.sun.com/jsf/core” %>

<%@ taglib prefix=”h” uri=”http://java.sun.com/jsf/html” %>

<html>

<head>

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>

<title>Welcome to Vahan</title>

</head>

<body>

<h1>Welcome to Vahan</h1>

<f:view>

<h:form>

<p>You’ve successfully registered with Vahan.</p>

<p>Your name is <h:outputText value=”#{loginbean.userName}” /></p>

</h:form>

</f:view>

</body>

</html>

Setting Page Navigation

Page navigation in the JSF framework is controlled by the faces-config.xml file, which is located under the Configuration Files node in the Projects window. For each page you set up a navigation rule which contains one or more navigation cases. For now, we will just map the submit action from the commandButton to welcome.jsp.

1. Double-click faces-config.xml to open the file in the Source Editor.

2. Right-click anywhere in the file and choose Java ServerFaces à Add Navigation Rule. Type /login.jsp in the Rule from View field and optionally enter a description of the rule. Then click Add.

3. This window will appear.

4.Click on Add.The following code is entered in faces-config.xml:

<navigation-rule>

<description>

login

</description>

<from-view-id>/login.jsp</from-view-id>

</navigation-rule>

5. Right-click inside faces-config.xml and choose Java ServerFaces > Add Navigation Case. Set the following:

  • From View: /login.jsp
  • From Outcome: submit
  • To View: /welcome.jsp

6. Click on Add Following lines will appear.

<navigation-case>

<from-outcome>submit</from-outcome>

<to-view-id>/welcome.jsp</to-view-id>

</navigation-case>

How to set/add compiletime (classpath) and runtime libraries for a Project in Netbeans?

  1. Right click on Project à Properties.
  2. A dialog box will open. Choose libraries under categories on left side. Click on Add Jar/Folder on the right hand side of the dialog box.
  1. Select all the jar files from where you have kept it.

2. If Package is checked then they become war files i.e. runtime libraries. So if you want any file to be only compiled not packaged then uncheck it eg (servlet.jar/ servlet-api.jar). Click on ok and jar files will be added under Libraries folder of your project.

Note:

1. servlet.jar/servlet-api.jar should never be packaged as it conflicts with the servlet.jar file of Tomcat.

2. Lib folder of your project should never be inside WEB-INF folder as all the files/folders inside WEB-INF get packaged by default thereby avoiding us to unpackage particular jars of lib. As you can see in the snapshot below, we have removed lib folder.

3. If you want a client to establish a connection to RMI server then you have to add the following line:- permission java.security.AllPermission; in C:j2sdk1.4.2_08jrelibsecurityjava.security. Its not necessary to install j2sdk1.4.2_08 in c: drive.

Configuring and Running the Application

Now let’s set the IDE to display login.jsp when it runs the application and, finally, test the application.

1. Right-click the project and choose Properties.

2. Click the Run node and type /faces/login.jsp in the Relative URL field. Then click OK.

3. Right-click the project and choose Run. The IDE builds the project, starts the application server, deploys the application, and shows the following page in the external browser:

Adding a new Server

1. Download a new server. We have downloaded apache-tomcat-6.0.14.

2. Open D:apache-tomcat-6.0.14conftomcat-users.xml. Its not necessary that you download tomcat in D drive. You open tomcat-users.xml by right clicking on it and choose edit or editplus.

3. Add these lines in it i.e. you have to create role as manager.

<?xml version=’1.0′ encoding=’utf-8′?>

<tomcat-users>

<role rolename=”manager”/>

<user username=”manager” password=”manager” roles=”manager”/>

</tomcat-users>

4. Save the changes. Go to Netbeans and open Window à Runtime.

5. Runtime window will open. Right click on Servers à Add Server.

6. Choose the type of server you want to add. For adding versions higher than Tomcat5.5, select Tomcat5.5.

7. Give the name of the server and click on next.

8. In Catalina Home, Browse and give the location of the apache-tomcat -6.0.14. Give username as password as manager.

9. Click on Finish. You can see apache-tomcat-6.0.14 is added in Servers.


Crawling made Easy

Posted: June 8th, 2009 | Author: admin | Filed under: Programming | Tags: , , , | No Comments »

In this post i will explain how to crawl a website and get the required content all using Java.

Am doing a project where am crawling different telugu cinema websites, getting the required content and displaying them all together on a single page i.e on my personal web page.

So as a part of that i crawled www.telugulo.com from which i have extracted the cinema part, so lets see how i did it… excuse me if you dont understand telugu but for learning crawling it wont be a constraint.

When i click on the cinema link which is in the homepage of www.telugulo.com it took me to a page with url http://telugulo.com/news.php?section=2 and in this particular page i found headlines interesting and thought of extracting all the headlines.

Then i wrote a program which will open the page and extract the headlines for every half an hour such that i always have the latest headlines. and then i can use the headlines for any purpose, either to directly display them on my website or blahblah…

So now lets look at how java helps in doing all these:

Note the url which u want to crawl, here it is http://telugulo.com/news.php?section=2

  1. String strurl = http://telugulo.com/news.php?section=2;
  2. URL url = new URL(strurl);
  3. System.out.println(”Received url is “+url);
  4. URLConnection hpCon = url.openConnection();
  5. InputStream ins = hpCon.getInputStream();
  6. InputStreamReader bis = new InputStreamReader(ins);
  7. BufferedReader teluStream = new BufferedReader(bis);
  8. System.out.println(”got the stream”);

Look at the above code,

line 4 opens the connection on the given url and now the hpCon is the connection on the given url,

line 5 gets the content present in the page as a stream

line 7 uses a bufferedreader which is used to read a character stream

so now teluStream.readline() is the function u need to read the content of the page line by line

once u got the line, check if it is the headline and if it is so, extract it and save it in a local file.

I recommend you to use firefox where u can add several plugins that make ur crawling job more easy

Now let me tell you how i extracted the headlines:

I found the headlines as images rather to a text, each headline we read in that page is an image, so now i want to extract those images

and there are many images in the page and to exactly extract the headlines we need to find some difference with other images on the page

i found that these headline images are starting after a particular phrase

alt="taja"

which means fresh.

so i just did teluStream.readline() until the line gets the phrase alt=”taja” and started extracting for the first five images which are none other than the required headlines

i used a while just like below to extract the headline images:

  1. String streamLine;
  2. int i = 0;
  3. String gifStr[] = new String[5];
  4. while((streamLine = teluStream.readLine())!=null)
  5. {
  6. if(streamLine.contains(regx))
  7. {
  8. while((streamLine = teluStream.readLine())!= null && i<5)
  9. {
  10. if(streamLine.contains(”gif”))
  11. {
  12. gifStr[i] = streamLine;
  13. System.out.println(”gif string: “+i+gifStr[i]);
  14. i++;
  15. }
  16. }
  17. break;
  18. }
  19. }

The while loop iterates for all the lines in the whole page, but i just wanted the images after the phrase alt=”taja” so

line 6 checks if the line contains the taja phrase, if so

line 8 is an another while loop which iterates for i < 5

line 10 checks if the line contains a gif (image), if so

in line 12 we store that particular line into an array

as we got the first image we increament the i in line 14

we are almost done, we found the lines in the page which contains the information we want

now in that each line we have to extract the exact path of the image,

the programmer who designed the page only writes the image path in the page and its the browsers duty to get the image from that path and display in the specified area

so now our duty is to get the path and open a connection on that path and then get the content of that image as similar to that of getting the content of the page that we have done very intially

but first lets c how we get the exact path from the line we extracted out of a big page

the line we extracted looks like this :

<td><a href="view_news.php?id=6528"><img src="./images/Head-chiranjeevi-jeevithaniki-pargu-lankai-enduku.gif" border=0></a></td>

we want that img src in the above line, a simple string manipulation would give us the img src, lets c the manipulation part of the game:

  1. /*
  2. * This function returns the image path from given String
  3. */
  4. public String getImageurl(String urlLine) throws Exception {
  5. String str1[],str2[];
  6. URL url = new URL(siteName);
  7. str1 = urlLine.split(”<img src=”);
  8. if (str1[1].contains(”””))
  9. {
  10. str2 = str1[1].split(”””);
  11. }
  12. System.out.println(str2.length + ” ” + str2[0]);
  13. int l = str2.length;
  14. String imageUrl = “http://” + www.telugulo.com + “/” + str2[1];
  15. System.out.println(imageUrl);
  16. return imageUrl;
  17. }

the getImageurl is the function which will return us the exact path of the image

String urlLine the argument passed to the function is the line which contains the img src

when i checked the line clearly i found that the img src is in between the inverted comas, but i found there are another inverted comas also in the line

so i used the split function to split the line into two parts such that the first inverted comas section is removed

the split function splits the line into parts based on the argument u passed to the function and it always returns the array with the splitted values

if u use split(is) on a line “karthik is hero”

String line = “karthik is hero”;

String result[] = line.split(is);

then result[0] will contain “karthik” and result[1] will contain “hero” notice here the result will not include the value that u used to split

so line 8 splits the given line into 2 parts, where the second part will have the img src

the second part look like this

“./images/Head-chiranjeevi-jeevithaniki-pargu-lankai-enduku.gif” border=0></a></td>

notice in the above <img src= is not included, neither it is included in the first part of the split result

line 11 splits the above line with
then guess into how many parts the line will be split into

exactly, into 3 parts

where the first part is null as “inverted comma” which is the split value is the starting character

the second part is ./images/Head-chiranjeevi-jeevithaniki-pargu-lankai-enduku.gif

and the third part is border=0></a></td>

so what we want is the second part, but the second part is not a complete url, the host name i.e www.telugulo.com is missing

line 15 adds the host name to the img src making it a complete url, upon which u can open connection as we did intially and get the stream and write the stream into a file headline.gif


I Lost to ‘I am Lost’

Posted: May 6th, 2009 | Author: admin | Filed under: Spirituality | Tags: | 2 Comments »

Is that confusing?? This title can mean either as – I Lost to ‘I am Lost’(Noun) – or – transformation from ‘I Lost’ to ‘I am Lost’., Realizing that I Lost to ‘I am Lost’ made me transform to ‘I am Lost’. OK let me explain how I Lost and what ‘I am Lost’ is. From my childhood and as aplicable to many of u we in general have that great feeling of “I can do” or further extending it “If I Can’t, Nobody Can”. We always say to ourself that we can do anything but with always adding an exception to it saying if and only if i really wanted to do. So ever u removed that exception and kept that I Can Do in action may be not really but there would b many situations like interviews, exams etc to prove ourselves where we likely remember the “I can do” off course before attending an interview u obviously feel so but after missing it u would remember your exception and happily extend it to your I Can Do philosophy and would say I really doesn’t put my effort otherwise I would have cracked it..

How many more days are u going to cheat yourself….

Accepting this, Realizing this – that u have lost many times and its not possible for u to do whatever u want would change u instantly. Wakeup from the very beautiful dream

u would be surprising by this time do this post has really got a solution for this whole drama or whatever u name it :) yeah there is i.e ‘I am Lost’ if and only if u understand it and accept it.

‘I am Lost’ is a philosophy where one will be lost in the thought of most subtle, divine, powerful and something which can be everything and nothing at the same time. Got any idea of what it can be? How can anything be everything and nothing at the same time, there is ONE which we all know. And that is GOD every religion says and of course everyone of say GOD is ONE, HE has no form, no shape, no name, no attributes and at the same time we do also say HE is the almighty, HE is all pervasive, HE is the supremo etc…. Now u consider someone or something whom u feel GOD.

We loose many times because of lack of seriousness, laziness and this laziness is because we are addicted to our bodily pleasures and one easy solution to it is to feel GOD. Yeah feeling God is good in many ways. You have to feel as if you are God, feel feel and feel it until u lost in HIM. Lost in HIM?? yeah that happens, u would even forget that u exist you will b enjoying in that divine glory and u now become GOD. And what more u want dear now u r GOD and where is the place for failure to YOU. GOD never fails sweet off course u know it ;)

For all those enjoying the bliss of laziness and if at all if u had that enough and want to see the other side of world feeling GOD is the easiest or i would like to call ‘laziest’ way of putting an end to your laziness.

Constant Remembrance(TM) of GOD would help u a lot in absorbing into HIM. Forget yourself, feel that u are GOD and feel that it is HE who is acting from your body and not you. Whatever is happening think that HE is doing that and not you. Totally it is not you, its HIM.

P.S – Constant Remembrance is service mark of SRCM, Chennai.(www.srcm.org)

God in this article refer to Divine Light and does not relate to any religion.