Re: [Collections] Circular Buffer

2012-03-08 Thread manoj mokashi
@Sebb : >>I already did: >>https://issues.apache.org/jira/browse/COLLECTIONS-399 >>Please review. Looks good. Thanks. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@common

[ANNOUNCE] Commons Math version 3.0 is released

2012-03-08 Thread Gilles
Hello. The Apache Commons team is pleased to announce the latest release of Commons Math (version 3.0), a self-contained Java library of tools such as root finders, ordinary differential equations solvers, optimizers, statistics, matrix algebra, and more. Commons Math can be downloaded from the f

Re: [Collections] Circular Buffer

2012-03-08 Thread sebb
On 8 March 2012 06:38, manoj mokashi wrote: > @James : >>>Does the header include a record size ? > Yes. I suppose you are wondering why i need to detect the headers if > the record size is known. > Actually its a corrupted archive in which the header size is correct, > but the body size is not, >

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 6:39 PM, Kasper Føns wrote: > >> I wouldn't count on Windows Explorer to give you the right values. >> Rather check it against exiftool >> (www.sno.phy.queensu.ca/~phil/exiftool/): >> exiftool -a -g1 -u image.tiff >> >> Windows Explorer also likes the "XP" values (eg. EXIF_T

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 7:02 PM, Kasper Føns wrote: > >> Windows Explorer also likes the "XP" values (eg. EXIF_TAG_XPCOMMENT, >> EXIF_TAG_XPAUTHOR), maybe try writing those as well? > > Hmm. You seem to be right that explorer likes the XP values. However, I > can't figure out how to write to them.

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Kasper Føns
Windows Explorer also likes the "XP" values (eg. EXIF_TAG_XPCOMMENT, EXIF_TAG_XPAUTHOR), maybe try writing those as well? Hmm. You seem to be right that explorer likes the XP values. However, I can't figure out how to write to them. I can see that they are BYTE values, but how to convert a str

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Kasper Føns
I wouldn't count on Windows Explorer to give you the right values. Rather check it against exiftool (www.sno.phy.queensu.ca/~phil/exiftool/): exiftool -a -g1 -u image.tiff Windows Explorer also likes the "XP" values (eg. EXIF_TAG_XPCOMMENT, EXIF_TAG_XPAUTHOR), maybe try writing those as well?

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 2:45 PM, Kasper Føns wrote: > >> Sorry about the website, I plan on fixing it with the 1.0 release. >> >> UserComment is one of the uglier cases, as it uses that GPS string >> type with a special prefix to distinguish character encodings. >> >> Try using TagInfo.Text's encod

Re: [daemon] ftp access code as service

2012-03-08 Thread Mladen Turk
On 03/08/2012 12:25 PM, Ahsan Ikram wrote: Hi, I am trying to run a piece of java code that uses apache commons net library to connect to a folder and download some files as a service. Since you are speaking about 'folder' I presume this is on windows, right? The service is installed ok and

[daemon] ftp access code as service

2012-03-08 Thread Ahsan Ikram
Hi, I am trying to run a piece of java code that uses apache commons net library to connect to a folder and download some files as a service. The service is installed ok and runs but hangs at the part where it has to connect to a ftp server, no error, no timeouts, just goes silent. Cheers,

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Kasper Føns
Sorry about the website, I plan on fixing it with the 1.0 release. UserComment is one of the uglier cases, as it uses that GPS string type with a special prefix to distinguish character encodings. Try using TagInfo.Text's encodeValue() method to convert the String to byte[], then pass that to