How easy to impliment Class in C-Lang

Posted by admin on June 8th, 2009 filed in Uncategorized
Comment now »

Hi everybody the most of the time I here something link we can impliment any thing with C-lang, that means we can write any kind of program with “C library”, even when I read Java books there I found some intresting, Java inherited many topics from C and C++ but still I don’t have any solid proof but I thought to atleast impliment a CLASS in the C-Lang so I started exploration how could I impliment the CLASS in C-Lang

click here for full article


India’s first WordPress Camp

Posted by admin on February 12th, 2009 filed in Uncategorized
1 Comment »

The India’s first wordcamp is on 21st and 22nd for the 5th anniversary of The Delhi Bloggers group, this time the surprising guest Mr.Matt Mullenweg.

Agenda : A two-day conference which brings together stakeholders and audiences of social media and blogging, centred around WordPress. Matt Mullenweg, the founder of WordPress is joining us. So is a very special surprise guest, a very popular blogger residing in the US.

For any info please contact

Twilight Fairy (Priyanka) at 9811511719

Mayank Gupta at 9910786431

Sanjay Srivastava at 9873707071

Registration Fees:

Individual day ticket : INR 250,

Full event ticket : INR 400.

Your ticket entitles you to lunch/tea/coffee/snack, Welcome kit, WordCamp souvenir.

If you have any doubt plz you ans follow this map.


difference between value and component binding in JSF

Posted by admin on February 10th, 2009 filed in JSF
Comment now »

Before reading Balusc’s blog post I thought there is no big difference between the value and component binding in the Java Server faces but after that post I got clear idea about component and value binding. there is some big difference between them. A lot of things happens in the life cycle because of that component binding behave like Java Swing application. if we look into the internals of the JSF lifecycle we can conclude some important things.’

generally in the JSF life cycle at the time of “validation Phase” the user submitted value will set into the component’s value but it should pass the validation phase. So the user summited value will available in for the value change event method.

Click here for details


problems and solutions for migrating Oracle database into Postgresql

Posted by admin on February 2nd, 2009 filed in Datebase, General
Comment now »

After a long break this is my first post, this is about migrating oracle database into Postgresql.
In this migration session I found all these important points, so I jorden almost all the points to concern to succed this process
bringing oracle datbase into postgresql is a simple process only but only thing is we should have patience to change the queries
according to the postgresql in our project.

Change the DataBase Scripts from existing Oracle to PostGres
—-> Change the DataTypes
—-> Write Triggers and Sequences
—-> Write UniqIndex
—-> Changing method names according to the postgresql

For more article


change bootsplash screen for ubuntu 8.10

Posted by admin on November 9th, 2008 filed in Linux
1 Comment »

In the Ubuntu8.10 version has some problems to change the boot splash screen, when ever I tries to change the splash screen I get errors related to the “resource busy“, that means I have doubt about installed packages related to the splash screen So that’s why I have downloaded some new version splash files and I uninstalled the existing one and I followed this procedure… Read more


Change ValueChangeListener’s behavior in JSF

Posted by admin on October 10th, 2008 filed in JSF
3 Comments »

The ValueChangeListener in the JSF behaves in the special manner, these events are get invoked before update model phase so at the time of method execution we may need other components values. So for that generally there are many ways, like requesting parameters, finding UI component and updates the values....

there is another way to do, but it may changes the behavior of the ValueChangeListener that is invoking model phase

For more Details

Digg


writing a crawler program for answers.com

Posted by admin on October 5th, 2008 filed in JAVA, crawler
Comment now »

This is a small crawler program for I wrote for www.answers.com,  Actually I was trying to write a gui based GRE mentor program for that I wrote another simple program to get the all the GRE word list. After getting word list the next step for that program is to extract the necessary data for GRE mentor, So that’s why I wrote this crawler program.

Download: Answers.com crawler

The above link is to download the program, there the program starts from the GRE.java. In that program I am extracting only selected data from the answers.com, Thesaurus, Dictionary, Idioms, Antonyms, synonyms are my required columns from that site. The program will not run if you have proxy authentication requirement. When I am writing  the crawler for GRE words, I analyzed this kind of pattern “ http://sitename/[word] ” for most of the sites, So the same thing happened in answers.com, here also “http://www.answers.com/[word]” now I got the link pattern for every word. I prepared a word list, each time I read a word from that list and append it to the “http://www.answers.com/”.

Ex: “http://www.answers.com/time”

Now I am working on how to provide images for the words then I can remember the word very easy. So for this option I prefer www.images.google.com.


Two interesting things in Gmail

Posted by admin on September 27th, 2008 filed in General
2 Comments »

Gmail is the best web application I have ever seen. Embedded Ajax chat, fast mail retrieval, live updating, and along with that I observed these strange things.

* observe carefully at the link of Gmail inbox item to identify the param link for “download file”

* Gmail is allowing to download the file from the inbox, even after the logout

At the time of login it checks the browser agent, does a round trip (this is to calculate the connection speed), and the system resources. After this it produces some variables (”altid and real id”). Every inbox item has param link but the download link alone varies from login to login.  All the download links are the param links for that uploaded file, and all those links are applicable for that file any time on any machine….
For Ex:
http://mail.google.com/mail/?ui=2&ik=2c97e2c7a5&realattid=f_flhzuwaj0&attid=0.1&

disp=attd&view=att&th=123423330f
In the above link ik, realattid and th are variables for the download load link, the ik and realattid  keep on changing from one login time(session) to another. The last attribute is th which means thread number for inbox item. So in this link ik and realattid are present only for namesake and they are not useful to locate the download item. The number of download items is indicated by attid.  Attid=0.2 means that mail item has two number of download items

Based on this information, in my next blog, I will try to give the information about how we can use the Gmail account for normal file hosting. Google provided You tube for video content and Picasa for images, but they didn’t provide any place for normal files like rar, zip,tz,etc…. So we have to make another Google product for that.

so even after the logout from the Gmail, the session is live for the download files. The Session expires only after we exit the browser. So if we use the Gmail at offices or Internet cafe we shouldn’t forget to close the browser before you leave the system.

When I was surfing to know about Gmail Architecture, I found an interesting article. There it is explained clearly on how the Gmail works from login to logout.

If any body wants to know the internal architecture and work flow, I suggest these sites

about Gmail architecture

Gmail Client side architechture


I do these things to work on Linux as it makes things better …

Posted by admin on September 24th, 2008 filed in General
1 Comment »

This is completly for Linux beginners. If your the newbie for the Linux then please follow these post to make that linux comfortable for you. When I shifted to linux I found some small problems

1. Choose a nice Linux operating system( I prefer Ubuntu, Fedora…) easy to get support when you are in problem.

2. Make sure rm command, that will remove the files permanantly.

SOLUTION:

function rm(){

mv-f$*~/.Trash/;

}

add that above function in the /etc, in the bashrc file(Do it from root)

3. Provide short cut keys for the daily use functionality.

Do:

Goto the menu System and Preferences, look at the keyboard short cut keys.

4. Practise some of the console based commands( I refer These sites )
Basic comand list
Bash Commands
Linux command complete referrence

5. Ubuntu geek is the best forum to get quick and most relible answers for the user queries

6. Get awerness about Package mangers for installing software

List:

Gui pakage manager Synaptic

Dpkg is the Debian package manager

smart Pakage manager Apt-get

7. The most basic problem for programmers, the carriage-return is different from windows.

8. Setting environment variables, in linux if we use export to set the system variables, those will be available upto that console life so to set the environment variable use set env(Ex: JAVA_HOME, PATH …)

9. Use console for everything… and explore about /etc folder’s files.

Technorati Profile

Digg


Creating Custom JSF Alert Messages component

Posted by admin on September 23rd, 2008 filed in JSF
Comment now »

In web applications,The Jsf frame work didn’t provide the alert functionality for the h:messages tag. So to provide this functionality there are two ways we can provide the messages in the JavaScript Alert.

1. Write a simple methode(By using getResponse from current context),

2. Custom component

I always preferre the second way, because the custom component is the best and we can maintain easly. we can observe the other more befits at the end of this post. So first I will show how to write a custom comonent.

Before writing the custom component I want to ask two simple Questions,

Why we need to go for the Custom component?

When we need to write the Custom component?

Steps for writing Custome component:

* Write a [Name].tld(Tag Library Description)

* Java implementation for the properties

* Faces Configuration

* Renderer class for the custom component

* Java class to represent the Tag.

Now we got the basic information to write the cutom component, So now will start the our module…

DIgg

click me for more details

Read the rest of this entry »