Monday, January 24, 2005

I just had to share this site with everyone. I saw it on TalkingPoker.com. It is really funny. Not sure how much of it is true. I bet Al could tell some stories to rival this. I think he should buy a breathalizer too!

Tucker Max

I laughed my ass off!

FireFox the Dangerous

Sorry for the lack of posts. Nobody reads this and the Poker Blog keeps me busy along with work and the kids. Posts will probably remain sporadic until I notice some people reading and then we shall see. I really like attention!

I decided to create a more intense version of the Hello World Firefox extension. Why? Because I can. As is the case in most development as you add real-world functionality everything becomes more complicated and the thorns start appearing. So guess what I had to do? Reinstall Firefox. I really did not have to. I eventually found a nugget of information. You can remove bad profiles very easily by running Firefox from the command prompt with a –ProfileManager flag on the end. It allows you to delete a profile that might have become corrupt. Now I am no rocket scientist but I do not believe any Firefox extension should have the power to destroy your browser and not allow you to run the application. Umm. Can you say “Bad Design”, and there always complaining about Microsoft. Jeeeeez. Oh well, I still Love FireFox and continue to use it as my browser of choice. I am not sure what was wrong with my extension, but it was something simple as having a bad path. I again say this should not cause FireFox to die!

So my project is an Encryption/Decryption system. It has a textbox for the codeword. It has a multi-line textbox for the text to encode, or the results of the decoding. It has an Encode and Decode button. The idea of the project is to allow you to put DIV tags into your website, and those tags will have encrypted information. Only your buddies with the super secret decrypt code will be able to read the site or the secret information. Simple right. Ha! I do not even know how to begin. Well, that is not true. I went to XUL Planet for some info on designing UI. It would be nice if there was a good visual editor for XUL. I have yet to find one though. I might write one as my next project. Anyway I have figured out how to make buttons on a page and stuff but not too much more. I will keep you updated with my progress.
The tutorial is very good by the way!

Friday, January 07, 2005

Getting FTP to Work with Ant in Eclipse

The one thing that I hate about Java is it seems you have to download a hundred packages to get something to work sometimes. It always takes forever to figure out what packages you need and where to get them. If I need something for .NET I usually can find it at Microsoft.Com. On the other hand the flexability and open source aspects of Java help mitigate these small nuscences. So today I need to find some ANT libraries to allow me to FTP through Eclipse. I also had to figure out where to put them. I found a nice article that was very helpful at Devnull.
Here is is basically verbatim:

I never seem to remember what I need to install to get the optional task in Ant working when it's time to blow away Eclipse and start a fresh install. Here is the basic information you need to get it working:

For Ant 1.5, you will need to download NetComponents.jar

For Ant 1.6 (Ant 1.6.2 is current in the Eclipse 3.1 Milestone as of this writing), you will need commons-net.jar and the Jakarta ORO JAR file.

Grab the applicable files above and put them in your $ECLIPSEHOME/plugins/org.apache.ant_$CURRENTVERSION/lib folder. You'll then need to add the file(s) you copied to this directory to the Ant classpath which you can do by going to Window > Preferences, traverse down the tree on the left to Ant > Runtime, and use the dialog box which appears to add them. I usually use the "Add External JAR's" option myself. Click "OK" when done,and then you should be good to go. You may however need to restart Eclipse.