I've often suspected that Chrome did cache rather too tenaciously, although I am not 100% on that. But it seems iOS6 has gone beyond the whole hog, and caches HTTP POST requests:
http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results
Whoa. Well, this kind of thing is a reason to be _very_ explicit in our HTTP response headers. Let's always set the Cache-Control header. Cache-Control: no-cache is a good default. For POSTs, at least.
Software development woes. Java-based development in particular. Also, philosophizing, architecture, design.
Sunday, September 23, 2012
Friday, September 21, 2012
Weird Eclipse Open Resource Matching
In Eclipse's Open Resource dialog, "*TEU", or even "*TEvalU" should match 'DjangoTemplateEvalUtil.java', should it not? Well it does not. My little theory is that the 'E' is used up by the 'e' in 'Template'. Which must be seen as a bug.
However, "DTEU" matches on the subword initial capitals. I'd say 'go figure', but hey.
Can't trust anything these days :). It looks minor, but it's really a pretty serious problem, if you rely on your names to be able to find stuff. And not wasting time trying to figure out why something that you feel should be found. If it matches "DTEU", you're expecting it to match the looser (loser) pattern "*TEU".
Tuesday, September 18, 2012
1/86400 Hz Blogging
Why not write a blog a day? There is no shortage of subjects. There is a shortage of time. Maybe set a limit on time for writing each blog. 20 minutes, perhaps. Go.
Well, a posting deserves a relevant subject line; so this may have to do for today. That's 2 minutes... I could do 10 each day. Micro-blogging, I think, that is.
Well, a posting deserves a relevant subject line; so this may have to do for today. That's 2 minutes... I could do 10 each day. Micro-blogging, I think, that is.
Monday, September 17, 2012
Eclipse Great Feature: Move Updating References And Commit
Some of the lists in Eclipse allow for bulk operations on them. Find references is one of them.
This allows for the following extremely useful procedure to work: you move and/or rename your Java type definition. This causes uncommitted edits. If you're a mis-en-place, clean, only-does-one-thing-at-a-time operator, you'll just do a commit all to commit these changes. But, if you're like me, you usually discover out-of-place types (classes, interfaces) while working on something else. Anyhow; there may for many possible reasons be uncommitted changes that you're not ready to commit. This makes it difficult to separate the files to commit from the files to keep 'dirty' (let's not consider the case where the same file contains both kinds of changes right now).
That's where for move refactoring operations, the 'Find References' feature will (may?) work fine: the list of found references seems to allow bulk commit. Select all the files you want, and then pop up (left mouse button click or Ctrl-click) the contextual menu. Team > Commit, and you will have your referencing occurrences committed.
This leaves the moved definition file changes, unfortunately. So of course the commit-all is really preferable, if appropriate for your situation.
It would be great if Eclipse would give you an option like: "Would you like to commit all the changes caused by your last action, File moved?".
And if it'd separate relevant changes from irrelevant changes in the same file, that'd be magic.
And if it'd allow selecting actions to commit, from a list of recent actions, that'd be more magic.
Anyway, there is actually a simple two-thirds-of-the-value solution for this: list files in "mtime" (last changed time) order, and allow selecting a range to commit. (Deleted files will be an wrinkle, though.)
I have some more tips on moving files in Eclipse, but they'll have to wait.
So that's that. Consider this a first in a (potential, no promises) series of Eclipse workflow posts. I'd like to know if there are already such things written, so please comment if you know.
This allows for the following extremely useful procedure to work: you move and/or rename your Java type definition. This causes uncommitted edits. If you're a mis-en-place, clean, only-does-one-thing-at-a-time operator, you'll just do a commit all to commit these changes. But, if you're like me, you usually discover out-of-place types (classes, interfaces) while working on something else. Anyhow; there may for many possible reasons be uncommitted changes that you're not ready to commit. This makes it difficult to separate the files to commit from the files to keep 'dirty' (let's not consider the case where the same file contains both kinds of changes right now).
That's where for move refactoring operations, the 'Find References' feature will (may?) work fine: the list of found references seems to allow bulk commit. Select all the files you want, and then pop up (left mouse button click or Ctrl-click) the contextual menu. Team > Commit, and you will have your referencing occurrences committed.
This leaves the moved definition file changes, unfortunately. So of course the commit-all is really preferable, if appropriate for your situation.
It would be great if Eclipse would give you an option like: "Would you like to commit all the changes caused by your last action, File moved?".
And if it'd separate relevant changes from irrelevant changes in the same file, that'd be magic.
And if it'd allow selecting actions to commit, from a list of recent actions, that'd be more magic.
Anyway, there is actually a simple two-thirds-of-the-value solution for this: list files in "mtime" (last changed time) order, and allow selecting a range to commit. (Deleted files will be an wrinkle, though.)
I have some more tips on moving files in Eclipse, but they'll have to wait.
So that's that. Consider this a first in a (potential, no promises) series of Eclipse workflow posts. I'd like to know if there are already such things written, so please comment if you know.
Labels:
bulk,
commit,
Eclipse,
eclipse-good,
find references,
good,
move,
nice,
organize,
project,
update references
Sunday, September 16, 2012
Incredibly Useful
Browsed through the Amazon Kindle Press Conference video (at https://www.youtube.com/watch?v=VYi1jZXz9Kg). Bezos reading (I had to correct the lousy auto-transcripted lines):
Couldn't help an amused laugh, sorry to say. I guess I am a chuckler-at-fantasy. Anyway, the feature seems very nice.
"King Stanis, lord of Dragonstone, younger brother of the late king,"
15:02
"Robert, has dark blue eyes and only a fringe of the black hair remaining on his"
15:06
"head"
15:07
"circling behind his ears like the shadow of a crown (crab?)"
And then he comments:
15:10
incredibly useful
Couldn't help an amused laugh, sorry to say. I guess I am a chuckler-at-fantasy. Anyway, the feature seems very nice.
Friday, September 14, 2012
Quick Whine #1: OSX Open File Dialog
Ways in which the OSX Open File Dialog is lame. Partial screenshot showing perpetration:
(A small detail first: the (American) date format is lame. ISO is the appropriate format. Mea culpa for not fixing settings, of course.)
Why no file sizes? Why no thumbnails? Why no preview? Why leave the huge space to the right unused?
And if these defaults are designed such as to, I don't know, leave the regular Joe Non-Power-User with a soul unperturbed, why isn't there a small 'settings' icon to click? Or the usual Cmd-Comma for settings?
(A small detail first: the (American) date format is lame. ISO is the appropriate format. Mea culpa for not fixing settings, of course.)
Why no file sizes? Why no thumbnails? Why no preview? Why leave the huge space to the right unused?
And if these defaults are designed such as to, I don't know, leave the regular Joe Non-Power-User with a soul unperturbed, why isn't there a small 'settings' icon to click? Or the usual Cmd-Comma for settings?
Thursday, September 13, 2012
Eclipse Call Graph (You Can Sometimes Get What You Want)
Just stumbled upon a blog post. The usual list of the usual tricks. All the usual shortcuts mentioned, refactoring, Find Type, etcetera. Yawn, seen it, used it.
But at the end of the section I was reading, the Ctrl-Alt-H key combination in Eclipse was mentioned, which shows a static Call Graph (a tree really). Yes!
The thing is that I've been wanting this and been looking for this, but not been able to find it, and given up. In my Eclipse, it's not shown in the context menu, oddly. That's some really bad 'discoverability', grumble, grumble. So I thats why I make a blog post simply to repeat the message.
Thanks Cygni blogger, whose name I've forgotten already! (Not in English: http://cygni.se/2007/11/27/eclipse-tips-och-tricks/.)
Subscribe to:
Posts (Atom)
