v ray

Ranch Hand
+ Follow
since Mar 15, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by v ray

yeah i went for a walk and saw some people staring at the moon and i didnt know why...and then some pretty girls stopped me and asked me if i saw the eclipse! thats when i realised there was an eclipse :-)

Although I only stopped and spoke since the girls were pretty hot
16 years ago
Hi guys,
How do I align one part of a message in the centre of the header and the other towards the right?
I tried doing this:

ie, I want show the US airdate to be displayed to the right extreme end of the header while "Show date" should be in the middle(default).
Tried a lot of things but it doesnt seem to work, anyone else tried or have experience with such a problem? Please help.

Thanks.
[ December 21, 2007: Message edited by: v ray ]
16 years ago
JSF
Can you send the voucher to bangalore? If yes, I'm willing to buy this immediately.
16 years ago
How does drinking some vodka help/hinder the sleep on the plane? I'm thinking, if I can down a few drinks, i'll fall asleep only to wake up at the right times, so I will barely feel most of the flight?
16 years ago
You are running the database in a standalone mode, this means(from the hsqldb user guide):



The main drawback is that it is not possible by default to connect to the database from outside your application. As a result you cannot check the contents of the database with external tools such as Database Manager while your application is running.



My question is, is your database manager connected to the database while you are trying to execute this program?

Btw, I copied your program and ran it locally, the only change I did was I ran hsqldb in a server mode(instead of stand alone mode), and the program works fine for me, here's the code:

[ November 04, 2007: Message edited by: v ray ]
when you compare that with your current salary back home, is it better? I'm sure it is.
I'd take the offer if it was me, do it for the exposure, and opportunities that might come your way being there.
16 years ago
Dont break the bond, work for 2 years, its going to be invaluable in your understanding of the software domain, exposure to colleagues who have already been in the game for a while, and a maturing of ideas...
Meanwhile, take the opportunities to learn a programming language well, improve yourself in various areas, get certified, etc.
If your academics are as good as you say they are, I think you will definitely be able to get into a good university if you have a good GRE score and some work experience. Once you are in the united states, mingle well, and see how life goes, dont worry too much about the future.
16 years ago
Is it a problem with this line:

File folder = new File(folderPath);

ie, although the folder named "Images" already exists, I am trying to create it again?
If this is the problem, what would be the solution to the problem? Because I need to check/create the right folder name for every result based on its type.
16 years ago
Hi guys,

I seem to have run into a wierd problem. My code is as follows:



Now, for a given type, say images, the foldername will be "Images". The problem I am facing with this code is that only the last file/image remains after having 10 iterations. ie, the first 9 which were output are all deleted and replaced by the last copy of the file..

How do I stop the previous image from getting deleted??

Please help!
Thanks.
16 years ago
Hi guys,

I am trying to use HSQLDB for my application.
I have some existing data for which the date format is as below:


When I use the timestamp data type, its format is:



So, I have a problem inserting the existing(MM/DD/YYYY) format into the database.
How do I deal with this problem of having incompatible date formats?

Please help.
Thanks.
[ September 30, 2007: Message edited by: v ray ]
exampledepot.org
16 years ago


Ah! Such a simple mistake , I was reading something about iterators today and I remembered something really simple.
If you want to remove something while iterating through a collection, you have to iterate through the next element and then call it.remove().

ie, the above code would be:

16 years ago
well,, obviously the first option is to have a check for null before adding to the collection.

Also, I dont get this part of the code:



it.remove()? whats the point in removing from the iterator? Shouldn't you do a "acollection.remove()"?

The logic is right though, iterate through the collection, remove all nulls, and then try to do any operation on it so that a nullPointerException is not thrown.
16 years ago
Hi guys,
In my code, I have this line:


And this line looks for a specific file called "replacer.properties" under:

C:\Documents%20and%20Settings\ray\workspace\
.metadata\.plugins\org.eclipse.wst.server.core\tmp0\
wtpwebapps\project1\WEB-INF\classes\replacer.properties

This file is present under the location and is accessible when I click folder by folder and finally reach the "classes" folder, but when I copy the whole path to the browser and try to open it, it gives me a "unable to find file" error.

Likewise, my code throws a FileNotFound Exception, any ideas on why although the link exists, I cant access it when I try to copy the whole link?
16 years ago
Hi guys,
I have configured Eclipse to connect to my remote server in the Debug mode and I am able to trace the flow under the debug perspective.
However, I am not able to see the sourcecode or the state of the variables when I set checkpoints.
I also get a message "Source not found" under which there is a "Edit Source Lookup Path".
I have tried to point it to the jar which I have deployed at the server but I still continue to get the same message.

Does anyone have a solution to view the source code when I am debugging remotely?

Thanks.
[ September 11, 2007: Message edited by: v ray ]