Roger's woze

March 31, 2009

junit woe

Filed under: Uncategorized — rogerdpack @ 4:29 pm

found   : junit.framework.Test

required: java.lang.annotation.Annotation

meant
replace this line
//import junit.framework.Test;
with this one
import org.junit.Test;

March 30, 2009

how to simulate a double click in windows win32 api

Filed under: Uncategorized — rogerdpack @ 10:03 pm

 

http://www.daniweb.com/forums/thread6727.html

last post, except do the sendInput twice.

how to get a pid from an hwnd

Filed under: Uncategorized — rogerdpack @ 8:40 pm

GetProcessID I believe

if it works.

how to close another window in win32 api

Filed under: Uncategorized — rogerdpack @ 8:14 pm

SendMessage(WM_CLOSE…)

or

PostQuitMessage

msvc oddity

Filed under: Uncategorized — rogerdpack @ 6:46 pm

1>Hooks.obj : fatal error LNK1276: invalid directive 'RWS' found; does not start with '/'

meant “take out any spaces in a pragma linker directive”

in my case:

#pragma comment(linker,”/SECTION:.SHARE, RWS”)

became

#pragma comment(linker,”/SECTION:.SHARE,RWS”)

ref: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=251298

allpeers competitor

Filed under: Uncategorized — rogerdpack @ 1:30 pm

So you want to establish a network of files that only your family can see?

You could use hamachi to establish the connections then use straight windows file sharing :)

I think there are other competitors out there but that should work about right.

Thoughts?

March 27, 2009

tar returns 0 (success) for non tar files.

Filed under: Uncategorized — rogerdpack @ 8:39 pm

So…run this command

tar -tf non_tar_file

and it might return 0! As if success! Whoa! unexpected! [on linux but not windows, mind you]

how to replaceAll java string with back slashes

Filed under: Uncategorized — rogerdpack @ 7:06 pm

So…it turns out that with the replaceAll function in Java, you’re going to be double interpolated.

our goal: replace a back slash with two backslashes.

“ab\\c”.replaceAll(“\\”, “\\\\”) doesn’t work

“ab\\c”.replaceAll(“\\\\”, “\\\\\\\\”) does

wasn’t that intuitive?

March 24, 2009

eclipse maven how to open an existing project

Filed under: Uncategorized — rogerdpack @ 10:07 pm

http://docs.codehaus.org/display/M2ECLIPSE/Importing+Maven+projects

describes how.

March 23, 2009

log4j quits writing

Filed under: Uncategorized — rogerdpack @ 6:11 pm

so…suddenly your logs disappear?  It may be that log4j is re-reading “another” config file, and loading that.  To find out how add 

log4j.debug=true

to your log4j.cfg file

ref:

http://www.nabble.com/Log4j-stops-logging-td19956418.html

Older Posts »

Powered by WordPress