Ryan Bailey

Ranch Hand
+ Follow
since Feb 26, 2002
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 Ryan Bailey

Are all topics covered in preparation for the exam? Is this simulator the only means I will need to prepare for the exam or would a book help?

Thanks,
~Ryan

Originally posted by Ilja Preuss:
I would be surprised if this was possible in pure Java, as it would be a serious security problem.

Moving to Swing/AWT...




Be very suprised, it is very possible. Sorry for having antisocial behavior with my impatient posts!
13 years ago
Bueller?....Bueller?....Anyone?....Anyone?....
13 years ago
Bueller?....Bueller?....Anyone?....Anyone?....
13 years ago
Hello,

I'm using the Robot class to send commands to windows to control the mouse and keyboard for work. Everything seems to be working fine but for the life of me I cannot send a Ctrl+Alt+Delete command to unlock my workstation so I can begin processing. Has anyone EVER done this before? A simple sniplet of my code is below:
roboCop.keyPress(KeyEvent.VK_CONTROL);
roboCop.delay(500);
roboCop.keyPress(KeyEvent.VK_ALT);
roboCop.delay(500);
roboCop.keyPress(KeyEvent.VK_DELETE);

It seems like when keyPress(KeyEvent.VK_ALT) is called my previous command is released....I have divided this task up and was able to do control V to past and alt A to navigate my menu, but when I put the commands together they don't seem to work.

Any suggestions would be appreciated.
Thanks,
Ryan Bailey
13 years ago
Hello,

I'm using the Robot class to send commands to windows to control the mouse and keyboard for work. Everything seems to be working fine but for the life of me I cannot send a Ctrl+Alt+Delete command to unlock my workstation so I can begin processing. Has anyone EVER done this before? A simple sniplet of my code is below:
roboCop.keyPress(KeyEvent.VK_CONTROL);
roboCop.delay(500);
roboCop.keyPress(KeyEvent.VK_ALT);
roboCop.delay(500);
roboCop.keyPress(KeyEvent.VK_DELETE);

It seems like when keyPress(KeyEvent.VK_ALT) is called my previous command is released....I have divided this task up and was able to do control V to past and alt A to navigate my menu, but when I put the commands together they don't seem to work.

Any suggestions would be appreciated.
Thanks,
Ryan Bailey
13 years ago
LOL... So much for my SuperStringTokenizer class

Thanks for the reply!
Ryan
13 years ago
Ok simple short and sweet.
I'm writting an application that used the StringTokenizer to parse thru data. I am delimiting it by comma (,).

Example Data:
"a,b,c,,e"
When I iterate thru the String I would expect the StringTokenizer to process this result:
"a" "b" "c" "" "e"
Instead I'm getting:
"a" "b" "c" "e"

Any idea why the StringTokenizer isn't tokenizing empty Strings??? I looked in the javadoc and it says nothing about ignoring empty Strings. I guess I could write my own tokenizer or do something to the data before tokenizing to place N/A where data doesn't exist. But don't want to go to the trouble if it's handled somehow in the StringTokenizer class.

Regards,
Ryan
13 years ago
Hi Herbert,

It will be interesting to read your new book. I took a class thru my company on the new features of Java 5 but one thing that was still kinda grey was annotations - It seems like you could break annotations into a 3 day class. I understand the basics but would like to know more. What are the pros and cons when using XDoclet to generate code versus using annotations? I could see where using annotations would be nice for generating EBJ classes - ie home and remote interfaces. I've searched the web for documentation and tutorials on annotations, and there really isn't a whole lot of details.

Overall, I really like the new features within Java 5.
Thanks!
Ryan
13 years ago
Shawn,

You are the man! You are talking about exactly what I'm trying to do on my Treo 650. Do you if they Location API will work on my phone? I believe there is a chipset for receiving coordinates, but I'm not sure if Sprint has that enabled for what I'm trying to do. I have an unlimited data plan and have accomplished my goal with using a laptop, bluetooth gps receiver and my treo phone. Would be very nice to just have my phone. I did this by reverse engineering my bluetooth gps device, massage and convert the data, and then send it out thru my phone and to my personal webserver.

I'm also confused. Can I use the Java Wireless API to develop my programs and then use a jadtoprc tool to convert my files to be exported to my phone? So far I've had zero success in doing this. Wasn't sure if there is a compatibilty issue. I was using WebSphere Everywhere Micro Environment which sux since there is hardly any documentation. Go figure...IBM.
Any help on this would be greatly appreciated! Feel free to email me at rrbcap@yahoo.com if you can shed any insight.
Regards,
Ryan

Originally posted by Shawn Fitzgerald:
To achieve your goal of transmitting GIS (location) information from a phone to a server (I'm assuming) J2ME is a reasonable if not a very good choice.
But it does depend on what context you are sending this information, if it is with the users permission then J2ME is a good fit. If you are trying to build a BigBrother device to spy on people then J2ME is not the right choice, as it was built with several goals, 1 of which is secure. And by security it was seen both in protecting the device, and the user.

Now you have another issue. Is SMS the right choice. The most popular GIS enabled devices with J2ME support for this data are the NexTel devices. However these devices do not currently support SMS (that is the API is in the WMA support, and these devices have WMA, but NexTel doesn't use SMS).
I know you are thinking I'm wrong, nextel states they have SMS. Well it's more of a proprietary alert protocol. Trust me it ain't there.
However you can send out HTTP/S, or sockets from the NexTel device provided you have a datapacket plan.

Now if you are not working with NexTel but ATT/Cingular, T-Mobile, or (heaven help you) Verizon, then you most likely have SMS, but most of these secure the location API. While Motorola/Nokia devices sometimes have location API's the service provider can shut you down by turning that API off.


If you are past those 2 hurdles, then you should be able to use the SMS examples (WMA demo) from the WirelessToolKit WTK from Sun, and the location API samples that most vendors have with their documentation.

If you are trying to send SMS from a server to a phone to trigger this information I would recommend reading my book "SMS for MIDP2.0" at Cafepress.com, because there is a lot of information and issues you will be running into that are not well documented. This book will guide you through those issues, and provide some useful code.

Let us know what devices and service providers you are using. I'm interested is how your project progresses.

Best wishes
-Shawn

13 years ago
Hi Yuri,

I'm trying to do the exact same thing on my Treo 650 phone. Unfortunantly I haven't found a way to get the phones position. I believe there is a chipset on the 650.

Any suggestions on how I can accomplish this, other than getting a new phone?

Thanks,
Ryan
13 years ago
Hi Anjanesh,

I would have to agree with Rahul. I have been using Tomcat for quite some time now. If all you are looking do to is develop Servlets and JSPs then use Tomcat. But if you are looking for a container that supports the use of EJBs go with JBoss. It is free. If you will be purchasing licenses then I would use webLogic. Just my personal preference if I had a lot of money

Another thing you may want to look into......
If you will be serving static and dynamic content and need it to be very fast, try connecting Apache Server with Tomcat. Last I looked there were quite a few 'plugins' you could use for integration. If it's just going to be a small system, then use just Tomcat. I do not have much experience with Tomcat5. I have been told that there are a lot of additional packages that were added with the new version of Tomcat5.

Good luck!
Ryan
13 years ago
If you need to do formating within excel I would recommend the POI API that is provided by Jakarta. I used it on my last assignment, but be careful. There are still a couple bugs in it. One of the problems that I noticed is if I user were to scroll thru blank cells in the excel spreadsheet with the cursor, the API would bomb out because of null reasons. You would of thought they would of checked for null values. I would always have to highlight blank cells and delete them in order for my processing to work. The CSV appoach works great too if you do not intend to do any formatting with the excel spreadsheet.

Good luck,
Ryan
13 years ago