Test Infected, Agile Methodology oriented developer. Have developed in Java for past 8 years, C# for past 4 years. (Have a VB6 past as well.) Interested in doing C/C++ development in addition. Fan of Python, but have only used it for log file handling (so far).

Feb
13
awarded Popular Question
Feb
5
awarded Notable Question
Feb
4
awarded Popular Question
Jan
29
comment Java PathMatcher: GLOB patterns are inconsistent on UNIX/Windows
I was having some problems also with the PathMatcher on Windows. I had to use "/" as a separator (i.e. same as Unix), and then it seemed to work fine. I tried a similar pattern as you did, i.e. **/{dir1/dir2/dir3/, dir4} and it matched as expected. What I see in the debugger, is that under the hood, it reversed the slashes (to match Windows separator) and it gets converted to a RegExp pattern. So it appears to be doing a Regular Expression match against the path string.
Jan
28
comment WatchService (Windows 7): when deleting a file, it fires both ENTRY_MODIFY and ENTRY_DELETE events?
@colti: I didn't have a chance to test on Linux yet. Is there any difference in behavior between Windows and Linux here?
Jan
28
asked WatchService (Windows 7): when deleting a file, it fires both ENTRY_MODIFY and ENTRY_DELETE events?
Jan
20
comment How to configure Apache CXF/Jetty Thread Pool Size
The issue is that Jetty won't let me pick a sensible minimum! I wanted to configure it to 4 threads. But it's telling me I can't do less than 7. But on a different machine, the same configuration file (with 4) is not a problem. So really what I want as an answer is to be told how to force Jetty to use what I tell it, not what it tells me. (Who's in charge here anyway?)
Jan
18
comment How to configure Apache CXF/Jetty Thread Pool Size
This is not a web app (in the typical sense). It is providing a basic web-service interface to a running server process, which gives the user control over the running process. There is 1 user per server process. So actually - we only need 1 thread!
Jan
16
asked How to configure Apache CXF/Jetty Thread Pool Size
Jan
8
asked Any way to prevent "resource" warnings on Mock implementations?
Dec
30
revised How to Run GoogleTestRunner Extension for Visual Studio 2013?
edited tags
Dec
30
awarded Supporter
Dec
30
asked How to Run GoogleTestRunner Extension for Visual Studio 2013?
Dec
16
comment How do I split a string against a character in BASH?
I tested this on Linux, it seems like was only required to set the IFS, and after that, the string is already split. ie: ` OIFS=$IFS;IFS='-';for s in $AUTH;do echo $s;done;IFS=$OIFS` The [@] did not seem to be needed at all?
Dec
16
comment How do I split a string against a character in BASH?
Could you explain the syntax ${AUTH_CODE[@]}? Is the [@] what causes bash to split the string?
Dec
11
awarded Supporter
Dec
11
awarded Autobiographer
Dec
10
asked MySql: Is it possible to specify a unique compound key which applies a function to the columns?
Dec
9
awarded Nice Question
Nov
20
comment Is Java socket multi-thread safe?
Javadoc from SocketChannel.write() method: "This method may be invoked at any time. If another thread has already initiated a write operation upon this channel, however, then an invocation of this method will block until the first operation is complete." So using the SocketChannel for writing is thread safe.
1 2 3 4 5