Monthly Archives: November 2005

Two Write A File

I learned how to print text in Java using System.out, so it was natural for me to use the PrintStream to write text out to a file. Here is how I used to write text to a file: FileOutputStream fos = new FileOutputStream(filePathStr); PrintStream ps = new PrintStream(fos); ps.println("Hello, World!"); ps.close(); To write some quick [...]

Posted in Java, TechKnow | Leave a comment

The Word Is POI

POI stands for Poor Obfuscation Implementation. The POI subproject HSSF (Horrible Spread Sheet Format) can access MS Excel files and HSD (Horrible Document Format), you guessed it, can access Word documents. I am working on a project and I am researching what POI can do for me given a Word document. I didn’t find a [...]

Posted in Java, TechKnow | 5 Comments

Print HTML Using IE

I’ve might have mentioned before that I am not well versed in Visual Basic. Here is a small Visual Basic script snippet that took me an afternoon to figure out. You can use this code to print an HTML file using Internet Explorer. After the HTML file has been printed Internet Explorer will close. Sub [...]

Posted in DotNET, HTML/XML, TechKnow, Visual Basic | Leave a comment

Search Engine Optimization

Want to improve your site’s page rank? Well I do. What I have been trying to do is make sure to use the abstract, keywords, and description meta tags. To optimize your site make sure your site defines the following tags in each page’s header section. <META name=’abstract’ content=’…’> <META name=’description’ content=’…’> <META name=’keywords’ content=’…’> [...]

Posted in HTML/XML, TechKnow | Leave a comment

Eclipse Tool Tip #4: Key Assist

Every once in a while you need an assist, well, Eclipse gives it to you. Go to Help > Key Assist to open a dialog containing a lot of short cuts to different Eclipse functionality such as Content Assist (ctrl+space) to Word Complete (alt+/). The hot key short cuts I use the most are ctrl+shift+r [...]

Posted in IDE, TechKnow | 1 Comment

More Ways To Open A Doc

As the Perl guys like to say and what I tell my girlfriend, there is more than one way to do it. This is also true for a simple task such as opening a Word document using Visual Basic script. The following code opens a MS Word document: Sub OpenWord(fileName) Set Word = WScript.CreateObject("Word.Application") Word.Visible = [...]

Posted in DotNET, TechKnow | Leave a comment