Roger's woze

Roger's meanderings, notes to himself, bug reports, and other things

Main menu

Skip to primary content
Skip to secondary content
  • Home

Monthly Archives: March 2009

Post navigation

← Older posts

junit woe

Posted on March 31, 2009 by rogerdpack
Reply

found   : junit.framework.Test

required: java.lang.annotation.Annotation

meant
replace this line
//import junit.framework.Test;
with this one
import org.junit.Test;
Posted in Uncategorized | Leave a reply

how to simulate a double click in windows win32 api

Posted on March 30, 2009 by rogerdpack
Reply

 

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

last post, except do the sendInput twice.

Posted in Uncategorized | Leave a reply

how to get a pid from an hwnd

Posted on March 30, 2009 by rogerdpack
1

GetProcessID I believe

if it works.

Posted in Uncategorized | 1 Reply

how to close another window in win32 api

Posted on March 30, 2009 by rogerdpack
1

SendMessage(WM_CLOSE…)

or

PostQuitMessage

Posted in Uncategorized | 1 Reply

msvc oddity

Posted on March 30, 2009 by rogerdpack
Reply

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

Posted in Uncategorized | Leave a reply

allpeers competitor

Posted on March 30, 2009 by rogerdpack
Reply

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?

Posted in Uncategorized | Leave a reply

tar returns 0 (success) for non tar files.

Posted on March 27, 2009 by rogerdpack
Reply

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]

Posted in Uncategorized | Leave a reply

how to replaceAll java string with back slashes

Posted on March 27, 2009 by rogerdpack
Reply

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?

Posted in Uncategorized | Leave a reply

eclipse maven how to open an existing project

Posted on March 24, 2009 by rogerdpack
Reply

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

describes how.

Posted in Uncategorized | Leave a reply

log4j quits writing

Posted on March 23, 2009 by rogerdpack
Reply

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

Posted in Uncategorized | Leave a reply

Post navigation

← Older posts

Advertisement

Blogroll

  • Church
  • free DNS at afraid.org (I use this)
  • mine and my wife's site
  • Request a Free Bible

Blogroll

  • Church
  • free DNS at afraid.org (I use this)
  • mine and my wife's site
  • Request a Free Bible
Proudly powered by WordPress