Arc Forumnew | comments | leaders | submit | coconutrandom's commentslogin

http://arclanguage.com/item?id=10462

Example(for now): http://coconutrandom.com/arc/upload

-----

1 point by coconutrandom 5354 days ago | link | parent | on: Re: How to upload files?

Howdy, no seemed to need it at the time so here is a not too shameless plug.

http://arclanguage.com/item?id=10462

It overwrites the built in functions to parse out the form parts, but it only works on *nix systems. This was a while ago and solved my problem. ymmv ;)

http://github.com/coconutrandom/arc/blob/master/parseform.ar...

http://github.com/coconutrandom/arc/blob/master/upload-3.arc

-----

2 points by coconutrandom 5501 days ago | link | parent | on: The power of function combinators

Thank you so much!! I realized that this wasn't new. However, I just now was wondering how to parse json with arc and then this post popped up. Plus a cs lesson included!

That's easily worth my $20. Rock on!

-----


I had that problem a while ago, If I remember correctly, Android was sending "cookies:" and not "Cookies:" in the header.... so setting cookies via arc or js was great, reading them with js was also fine, but arc couldn't parse them from the header.

-----


ooo I like the dbg macro example...

That's a really nice slideshow, I wish I has seen that first.

-----

1 point by coconutrandom 5549 days ago | link | parent | on: Num surprises me

  arc> (load "erp.arc")
  nil
  arc> (is (erp:num 0.1) (erp:coerce 0.1 'num))
  (num 0.1): ".1"
  (coerce 0.1 (quote num)): 0.1
  nil
  arc> (is (erp:/ 1 10) (erp:num (/ 1 10)))
  (/ 1 10): 1/10
  (num (/ 1 10)): ".1"
  nil

Hmm, so neither 0.1 nor 1/10 is ".1"

I'm not sure what is supposed to happen but it's interesting.

-----

2 points by coconutrandom 5567 days ago | link | parent | on: File uploading in arc

ok it's back up, still needs more done. notably special çhârs act funny, and it's sloooww

if it doesn't work for you let me know as I may have forgotten something else i've modified in arc.

source files:

http://github.com/coconutrandom/arc/blob/master/parseform.ar...

http://github.com/coconutrandom/arc/blob/master/upload-3.arc

-----

3 points by coconutrandom 5570 days ago | link | parent | on: File uploading in arc

i've been pulling hair at why any method of reading data from the port was reading eof or nil before all the data was pulled after about 97kb.

then i saw http://www.cs.brown.edu/pipermail/plt-scheme/2005-August/009...

  $ grep -rin make-limited-input-port .
  ./ac.scm:1014:   (let ((in1 (make-limited-input-port in 100000 #t))
aye carrumba, let's bump that up to a few megs..

-----

1 point by coconutrandom 5570 days ago | link | parent | on: File uploading in arc

:)

-----

1 point by coconutrandom 5571 days ago | link | parent | on: File uploading in arc

requires http://catdancer.github.com/mz.html

-----

More