Skip to content

{ Category Archives } Software

Ooops, found a remote weblogic exploit

I accidently the whole weblogic. Found this gem today on accident:
ERROR: transport error 202: handshake failed – received >
ÿô< – excepted >JDWP-Handshake< ["transport.c",L41]
JDWP exit error JVMTI_ERROR_NONE(0): could not connect, timeout or fatal error
It’s executed remotely and I just happened to have the logs scrolling in another window and bam, server became unresponsive.

You and your comments stink

//This code is a piece of shit!!!!1!
//OMGZ, why are we doing this?
You’re as helpful as an art critic, and just as productive. Unless you’re going to pick up a paintbrush and repaint it (I’m keeping with the art metaphor) STFU.  Ok, done with the metaphor.
There should be a separate log for keeping a laundry list [...]

Besides the fact it doesn’t work, it’s perfectly fine

I’ve said this a few times in response to people asking me to look into issues, let me explain what that means (or at least how I use it). In general, a feature requires a number of pieces to work in symphony in order to function correctly. If one of those things is incorrect, the [...]

Tagged ,

You Broke It You Bought It

There needs to be some type of “You Broke It You Bought It” policy in software engineering. I just encountered a situation where a developer deleted a piece of my code in a later release, either on accident or on purpose, and somehow I’m roped back into it. I’m getting emails telling me “You need [...]

Tagged , ,

Hit a snag with Netbeans, Maven, and testing utils.

I switched to Netbeans probably a month or so ago for this small side project I’ve started and so far I’m digging it. However I hit a little issue that Eclipse never had a problem with. I’m using DbUnit for integration tests and I have an AbstractDbUnitIntegrationTest class that does a CLEAN_INSERT on the database [...]

Tagged , , ,

5 Days of Wicket

mystic blog » 5 Days of Wicket.
I hope he’s successful because I really wanted to give Wicket a try for a project but got frustrated. I’ll be checking in on the progress.

Tagged

RegEx Ninja: Make sure a String does not contain a pattern

^((?!highLightRow).)*$
I wanted to make sure a string did not contain a piece of text, specifically “highLightRow”. The reason is I’m writing test cases in Selenium and I want to make sure a line does not contain an error. The way I know it contains an error is if the text looks something like this:

<div id="my-id" [...]

Tagged

An example of unhelpful comments

// coded in case quantities is not 1.
int quantity;
try {
quantity = Integer.parseInt( someMethod.getQuantity() );
} catch ( Exception ex ){
//if any exception, always sets it to 1.
quantity = 1;
}
Yes, quantity = 1 does indeed set that variable to 1, that [...]

Proposal for log4j output style

I figure this is a good one because most of the code makes me want to shoot myself in the head. Ignore the escaped quotes for now.

logger.info(” , [...]

Java web developer interview question, do you think this is fair?

I’ve given a number of interviews over my career and I’ve evolved the way I interview people. I’ve found that presenting people with real word problems and asking how they would approach it and what a possible solution would be is a great way test candidates chops. Remembering a bunch of APIs and methods isn’t [...]

Tagged , ,