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

Example(for now):


1 point by coconutrandom 3992 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.

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 ;)


2 points by coconutrandom 4139 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 4187 days ago | link | parent | on: Num surprises me

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

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 4205 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:


3 points by coconutrandom 4207 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

  $ 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 4208 days ago | link | parent | on: File uploading in arc



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