Archive for 2009

HTTP Digest Authentication: A Java Client

Friday, October 23rd, 2009 Posted in Java | Comments Off

import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.HeaderElement; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.UsernamePasswordCredentials; import org.apache.commons.httpclient.auth.AuthScope; import org.apache.commons.httpclient.methods.GetMethod; public class BrowserAuth { public static void main(String[] args) { try { // String urlStr = "http://example.com:8080/abc/"; String host = "example.com"; String realm = "ExampleRealm"; String userName = "user"; String password ... Read more..

NTLM Authentication: Java Client Code

Friday, October 23rd, 2009 Posted in Java | Comments Off

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.Authenticator; import java.net.HttpURLConnection; import java.net.PasswordAuthentication; import java.net.URL; public class NtlmTest01 { public static void main(String[] args) throws Exception { String urlStr = "http://example.com/root/action.dll?p1=value1"; String domain = ""; // May also be referred ... Read more..

HermesJMS: A JMS Queue/Topic Browser

Monday, August 10th, 2009 Posted in Solutions | Comments Off

1. Download: http://sourceforge.net/project/showfiles.php?group_id=61713 2. Install Just run the downloaded JAR file using java (JRE). Read below for more details: http://www.hermesjms.com/confluence/display/HJMS/Installing 3. Screen-Play Tutorial http://www.hermesjms.com/confluence/display/HJMS/JBoss+Tutorial 4. Sample Settings (you will know what these are once you watch the ... Read more..

How to remove spyware/malware

Wednesday, July 15th, 2009 Posted in Solutions | Comments Off

Try to stop the malware applications/sevices using Windows Task Manager or Process Explorer. Using "msconfig" tool remove malwares from the "Startup" list. Use the below tools (in normal or Safe mode): MalwareBytes CCleaner Spybot-S&D Ad-aware Abexo REgistry ... Read more..

Enterprise Project: Logical Groups and Project Structure

Thursday, June 25th, 2009 Posted in Software Engineering | Comments Off

Logical Grouping (SVN Folders, Eclipse Working Sets) ----------------------------------------------------- common service runtime server build integration webclient richclient Projects by Logical Grouping ============================ common ------- com.company.product.commons com.company.product.domain com.company.product.3rdparty com.company.product.3rdpartytools com.company.product.tools com.company.product.ui service ---------- com.company.product.service.domain01.api com.company.product.service.domain01.impl com.company.product.service.domain02.api com.company.product.service.domain02.impl runtime --------- com.company.product.runtime.database com.company.product.runtime.jboss com.company.product.runtime.tomcat server ------ com.company.product.config com.company.product.install com.company.product.schema com.company.product.server com.company.product.testdata com.company.product.workmanager com.company.product.workflow com.company.product.esb build ------ com.company.product com.company.product.builder integration ----------- com.company.product.integration.component1 com.company.product.integration.component2 webclient --------- com.company.product.web.subproduct.ui com.company.product.web.subproduct.model com.company.product.web.subproduct.controller com.company.product.web.subproduct.dataaccess richclient ---------- com.company.product.client.subproduct.ui com.company.product.client.subproduct.model com.company.product.client.subproduct.controller com.company.product.client.subproduct.dataaccess Read more..

Get Exception StackTrace as a String

Thursday, June 25th, 2009 Posted in Java | Comments Off

public static String getStackTraceString(Exception e) { StringWriter writer = new StringWriter(); PrintWriter pw = new PrintWriter(writer); e.printStackTrace(pw); StringBuffer sb = writer.getBuffer(); return sb.toString(); } Read more..

Song: Money, money, money

Thursday, June 25th, 2009 Posted in Kids | Comments Off

I like money to buy things at the store. Money, money, money, I always want more! A penny's worth one cent. A nickel's worth five. A dime's worth ten cents. A quarter's twenty-five. I like money to ... Read more..

Using SSL With JBOSS

Wednesday, March 25th, 2009 Posted in Solutions | Comments Off

(1) Generate the keystore using the following command. You will need to enter kestore password, personal information and key password during this step. keytool -genkey -alias myserver -keyalg RSA -keystore C:\dev\keystore\myserver.keystore (2) ... Read more..

Lyrics: We are the Dinosaurs

Tuesday, March 24th, 2009 Posted in Kids | Comments Off

We are the Dinosaurs marching, marching... We are the dinosaurs. What you think of that? We are the dinosaurs marching, marching. We are the dinosaurs. We make the earth flat. We make the earth flat. REPEAT We stop and eat ... Read more..

Arts Main Areas

Tuesday, March 24th, 2009 Posted in Parenting | Comments Off

Literature   Fiction, Non-fiction, poetry, prose, drama Musical Composition   voice, instrumentation (or both)   vocal composition (with or without lyrics) Photography   color or BW   group of images   Montage, mulitle exposure, negative sandwitches, photograms   conventional ... Read more..