Re: [elm-discuss] Re: Systemic problem in Object Oriented languages

2017-07-24 Thread Marcus Roberts
Dave Perhaps I'm being bit oversensitive, but this does seem to be a rather argumentative approach.I know you said you learn by arguing, but this seems to be turning into a dogmatic crossing of swords, rather like walking into a British pub and declaring the local football team a load of rubbi

Re: [elm-discuss] --debug with Navigation

2016-11-20 Thread Marcus Roberts
It's working for me. I had to switch to using fullscreen rather than embedded but apart from that it's working fine in Safari and Chrome on the Mac. Elm.Main.fullscreen() On Sun, Nov 20, 2016 at 7:23 AM, Simon wrote: > Is it possible that the two are not compatible? That's what it looks like

Re: [elm-discuss] Send a file via an ajax POST request

2016-11-05 Thread Marcus Roberts
(but I don't think that will work until we get binary support as Simon says) On Sat, Nov 5, 2016 at 11:30 AM, Marcus Roberts wrote: > You can pass a string to a POST request, by setting the body: > > body = Http.string someStringValue > > So if you could convert the binar

Re: [elm-discuss] Send a file via an ajax POST request

2016-11-05 Thread Marcus Roberts
You can pass a string to a POST request, by setting the body: body = Http.string someStringValue So if you could convert the binary data into a base64 encoded string you could then pass it as the body of the request. On Sat, Nov 5, 2016 at 9:27 AM, Martin DeMello wrote: > Thanks, I took a lo

Re: [elm-discuss] Send a file via an ajax POST request

2016-11-05 Thread Marcus Roberts
I've not used it yet, but there's a module for doing that here: https://github.com/simonh1000/file-reader Note you have to enable native modules in your config, and you can't just install it as a package as Elm packages don't allow native code. On Sat, Nov 5, 2016 at 8:27 AM, Martin DeMello wro

Re: [elm-discuss] elm-reactor or elm-live after completing "first steps"

2016-11-04 Thread Marcus Roberts
I use elm-live just for compiling the Elm into Javascript and serving me the page with the JS in it. For everything else I make HTTP calls to my "real" API server (with CORS configured appropriately).This is for a single page application (SPA) rather than something with multiple different page

Re: [elm-discuss] Elm crypto libraries?

2016-11-02 Thread Marcus Roberts
I've not found any yet, but I have had success using ports and crypto-js for symmetric encryption in my app I'm porting to Elm. I use the jsrsasign library for RSA on the JS side, and I'll be trying a ports based approach with that next. On Wed, Nov 2, 2016 at 2:24 PM, 'Rupert Smith' via Elm

Re: [elm-discuss] Structure for large Elm apps

2016-10-17 Thread Marcus Roberts
Is this article (and the one it refers to) taking a good or bad approach to program structure? http://7sharpnine.com/2016/10/03/building-an-spa-with-elm/ I copied the structure as a way of seeing how a program might perhaps be broken down, but it feels like a very component based approach, given