Julian

London, United Kingdom

uk.linkedin.com/in/juliancable

Age: 56

Media techie and traditional boat sailor

Feb
29
awarded Necromancer
Feb
15
comment Best way to store state in an apache camel context
Thanks raulk. In this case I don't need to persist across restarts. I have others where I do and I'm comfortable with how to do those. It was this trivial case I was sure there must be a better solution for. Thanks for the great suggestions.
Feb
12
comment Best way to store state in an apache camel context
Because I hadn't spotted it. Thanks, I'm going to check your blog out too.
Feb
12
comment Best way to store state in an apache camel context
Thanks raulk, both exactly the kind of suggestion I wanted. I hadn't spotted either the AtomicReference class (or its generic version) or camel:cache. I'll use one where I don't need distributed replication across camel instances and the other when I do.
Feb
12
accepted Best way to store state in an apache camel context
Feb
11
comment Best way to store state in an apache camel context
Thanks @hgrey. At least that's two of us think that way.
Feb
11
asked Best way to store state in an apache camel context
Jan
1
comment How to run a command in the background with a delay?
@StéphaneChazelas - good question. i know I've had this problem but it was a while ago. I did a little checking and the at command does seem pretty ubiquitous. Also it seems atd is Linux specific and even on some Linux systems may be replaced by a BSD style cron daemon. Let's consider my comment outdated.
Dec
19
answered Is there an antonym for "dim"/ synonym for "lighten?"
Dec
15
comment submit a form with a blob
The invalid state error goes away if I remove the xhr.responseType = 'blob'; line, with a document.close(); after the docuement.write() I think I have what I need.
Dec
15
revised submit a form with a blob
added 389 characters in body
Dec
15
comment submit a form with a blob
Saw the comment from @Bardo - that was a missing part of my understanding. Of course it is window.open that creates a new document. document.close(); document.open(); document.write(xhr.responseText); failed though with a InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.
Dec
15
comment submit a form with a blob
I didn't know that - you are absolutely right that is what it says. I tried document.write on Iceweasel (Firefox) 38 and got: "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable"
Dec
14
comment submit a form with a blob
but document.write is only an append. there is no "document.clear()". window.location = URL.createObjectURL(this.response); does seem to have all the right semantics. I'll see how that goes.
Dec
14
comment submit a form with a blob
you can't do document.innerHTML= xxx. But @Kaiido's suggestions might be the answer.
Dec
14
comment submit a form with a blob
This ihttps://stackoverflow.com/questions/133925/javascript-post-request-like-a-form-‌​submit?rq=1 s similar to what I want to do, but with a file object replaced by a blob. It looks like I could add the blob as a hidden input and add another hidden input for the filename and remove the file input element and let the original submit go ahead and modify the server side to allow either a file input or two hidden inputs. It isn't as nice as the FormData approach though.
Dec
14
comment submit a form with a blob
@Kaiido thanks - I will try this tonight.
Dec
14
comment submit a form with a blob
@DanielB - It is easy if you are not trying to integrate with an existing framework. I have what I want working here: oga-images.herokuapp.com but modifying it to work inside an existing UI is what is challenging me.
Dec
14
comment submit a form with a blob
I agree, I just can't work out how to "post it to the dom" in exactly the same way the form/submit function does.
Dec
14
comment submit a form with a blob
Thanks @Kaiido. That's heading in the right direction but it tries to open a new popup window. I need this to go to the main window.
1 2 3 4 5