Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13146 > unrolled thread
| Started by | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| First post | 2012-03-24 21:37 +0000 |
| Last post | 2012-03-27 09:06 -0700 |
| Articles | 4 on this page of 24 — 7 participants |
Back to article view | Back to comp.lang.java.programmer
EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-24 21:37 +0000
Re: EXIF tag handling in Java Marty Blake <blake3334@nowhere.invalid> - 2012-03-24 23:13 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 13:09 +0000
Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 11:42 -0400
Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 12:22 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 17:10 +0000
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 16:46 +0000
Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 12:59 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 17:15 +0000
Re: EXIF tag handling in Java Jeff Higgins <jeff@invalid.invalid> - 2012-03-25 14:08 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 18:34 +0000
Re: EXIF tag handling in Java Knute Johnson <nospam@knutejohnson.com> - 2012-03-25 10:46 -0700
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 18:13 +0000
Re: EXIF tag handling in Java "John B. Matthews" <nospam@nospam.invalid> - 2012-03-25 14:45 -0400
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-25 23:37 +0000
Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 11:56 -0700
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-26 19:48 +0000
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-26 19:52 +0000
Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 13:29 -0700
Re: EXIF tag handling in Java Martin Gregorie <martin@address-in-sig.invalid> - 2012-03-26 21:58 +0000
Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 16:24 -0700
Re: EXIF tag handling in Java Gene Wirchenko <genew@ocis.net> - 2012-03-26 18:19 -0700
Re: EXIF tag handling in Java Lew <lewbloch@gmail.com> - 2012-03-26 19:03 -0700
Re: EXIF tag handling in Java Gene Wirchenko <genew@ocis.net> - 2012-03-27 09:06 -0700
Page 2 of 2 — ← Prev page 1 [2]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-03-26 16:24 -0700 |
| Message-ID | <15644547.311.1332804259777.JavaMail.geo-discussion-forums@pbbpx3> |
| In reply to | #13201 |
Martin Gregorie wrote: > Lew wrote: >> Martin Gregorie wrote: >>> Lew wrote: >>>> Martin Gregorie wrote: >>>>> If the PHP menu generator is unacceptably slow when dealing with >>>>> EXIF tags, I'll use the aesthetically ugly trick of keeping the >>>>> captions as a separate CSV list (filename,caption) which will >>>>> probably be faster since at the start of the run it can be loaded >>>>> into a Hashtable (Java) >>>>> or associative array (PHP) once and will stay in memory while the >>>>> menu builder is running. >>>> >>>> I recommend against use of 'java.util.Hashtable' in favor of the >>>> modern (since 1998) 'Map' implementations. >>> >>> Noted. I only considered Hashtable because they are favoured by some of >>> the javax.imageio.* packages - scarecely surprising since most of these >>> packages seem to have been around since at least Java 1.4. >> >> Very, very surprising since the modern collections classes were >> introduced in Java 1.2 and the javax.imageio package in Java 1.4. >> >> You should check the Javadocs. > > I did: for some operations you need to use a filter which is based > java.awt.image.ImageFilter. This gets passed properties via the > setProperties(Hashtable<?,?>) method. You are awesome. Seriously. That is a deep dependency and I sure am grateful to you for digging that one out. 'java.awt.image' is legacy 1.0 code. I wonder if the Powers That Be would consider adding a 'Map<?, ?>' overload to that call. Probably not worth the effort. On a related note, 'java.util.Properties' extends 'Hashtable<Object,Object>', but if you use that upcast you lose default properties. (That 'Properties' is defined in terms of 'Object' but can only use 'String' is one of its interesting aspects.) (They did add 'public Set<String> stringPropertyNames()' in Java 6.) On a tangential note, all this is exemplary of why Java programmers tend not to be acolytes of the language. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2012-03-26 18:19 -0700 |
| Message-ID | <cc52n79r6dofbevulvg5e9tb85cnmb6hoo@4ax.com> |
| In reply to | #13207 |
On Mon, 26 Mar 2012 16:24:19 -0700 (PDT), Lew <lewbloch@gmail.com>
wrote:
[snip]
>On a tangential note, all this is exemplary of why Java programmers tend not to be acolytes of the language.
Lew, would you please unpack that?
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-03-26 19:03 -0700 |
| Message-ID | <21572312.382.1332813838409.JavaMail.geo-discussion-forums@pbcty5> |
| In reply to | #13212 |
Gene Wirchenko wrote: > Lew wrote: > [snip] >> On a tangential note, all this is exemplary of why >> Java programmers tend not to be acolytes of the language. > > Lew, would you please unpack that? I am a big fan of the Java programming language. I am also a big fan of skeptical appreciation. I've used a variety of programming languages, some rather outré. Sure, many of those languages have great utility and are widely adopted, and with good, valid reason. Some arguably should be widely adopted but aren't, yet. But some computer languages engender a culture of worship and others of workaday acceptance. When a language's apologists cross too far into claiming The One True Way I get very suspicious. Java's adherents are among its harshest critics. Everyone's got an opinion and most of them are right. You can't usually actually change the language, but sometimes enough mass gets behind an idea to affect the Powers That Be. Meanwhile the curmudgeons continue to work the language adroitly, dodging the very ugliness with safe idioms and making good software happen on the strengths. I am a fan of such cynical support because it bodes keeping the Emperor clothed. As the adviser told the Prince when bearing distasteful advice, "When thou art King, wouldst rather the bitter truth and always trust in those who counsel, or sweet lies and always wonder whose is the wisdom?" -- Lew I regret that I do not recall the attribution for that advice. David Weber? David Drake? Weis and Hickman? One in a series of well-written fantasy novels, whomever.
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2012-03-27 09:06 -0700 |
| Message-ID | <d2p3n75smlfn4bajopivdgoim72to4oe1o@4ax.com> |
| In reply to | #13216 |
On Mon, 26 Mar 2012 19:03:58 -0700 (PDT), Lew <lewbloch@gmail.com>
wrote:
>Gene Wirchenko wrote:
>> Lew wrote:
>> [snip]
>>> On a tangential note, all this is exemplary of why
>>> Java programmers tend not to be acolytes of the language.
>>
>> Lew, would you please unpack that?
>
>I am a big fan of the Java programming language. I am also a big
fan of skeptical appreciation.
I am cautious, too.
>I've used a variety of programming languages, some rather outré.
Sure, many of those languages have great utility and are widely
adopted, and with good, valid reason. Some arguably should be widely
adopted but aren't, yet.
>
>But some computer languages engender a culture of worship and others
of workaday acceptance. When a language's apologists cross too far
into claiming The One True Way I get very suspicious.
I also watch for attacks on others. A non-language example of
this Apple. Part of their marketing is attacking others. It might
help with the faithful, but it turns others off.
>Java's adherents are among its harshest critics. Everyone's got an
opinion and most of them are right. You can't usually actually change
the language, but sometimes enough mass gets behind an idea to affect
the Powers That Be. Meanwhile the curmudgeons continue to work the
language adroitly, dodging the very ugliness with safe idioms and
making good software happen on the strengths.
I was willing to do so, too, but I found that the awkwardnesses
of the language made it a poor fit for me. Every language has its bad
points. Sometimes, there are just too many. This is a YMMV issue.
>I am a fan of such cynical support because it bodes keeping the
Emperor clothed. As the adviser told the Prince when bearing
distasteful advice, "When thou art King, wouldst rather the bitter
truth and always trust in those who counsel, or sweet lies and always
wonder whose is the wisdom?"
Quite. I did a quick search, but I did not find anything.
Sincerely,
Gene Wirchenko
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.java.programmer
csiph-web