Arc Forumnew | comments | leaders | submit | thaddeus's commentslogin
2 points by thaddeus 5596 days ago | link | parent | on: A little help with plt scheme

I believe it's pretty straight forward.

You hit 'open connection' make sure ssh is the selected connection type , then input the i.p. address, username & password. http://trac.cyberduck.ch/wiki/help/en

It might be best for you to have your friend guide you through the does and don'ts, given you're not so familiar.

Also reading the Linode library might help you (if your host provider runs Linux): http://library.linode.com/ And although it's specific to their VPS set up and configurations, it's still a Linux machine so you can learn quite a bit.

-----


I used this as a learning venture.... it's got about 40 users (20 to 30 hits per day). I haven't put much effort into it these days....I've lost motivation to work on it....I always seem to find other things to do :(

-----

1 point by thaddeus 5605 days ago | link | parent | on: Arc to JavaScript translator?

palsecam once mentioned scheme2js to me, but I never got around to checking it out (my plate has been pretty overloaded for quite some time :))

http://www-sop.inria.fr/mimosa/scheme2js/

For the most part I've been able to hack aw's json converter to produce much of the js I require (I tend to process the data server side and just pass results into jQuery libraries for client side handling). Otherwise I just hack ugly strings together.

-----

3 points by thaddeus 5607 days ago | link | parent | on: Jaclyn: The Jarc Compiler

http://github.com/rocketnia/lathe

-----

1 point by thaddeus 5611 days ago | link | parent | on: Why "!"?

The period is resolving a bound variable. In your first case a.a happens to work since 'a happens to already be bound.

To use the period for b:

  arc> (let x 'b a.x)
  1
[edit - oops I see there's already a good reply]

-----

3 points by thaddeus 5617 days ago | link | parent | on: How do I iterate through an object?

There are many options - here are a few:

  arc> (= myhashtable (obj 1 "One" 2 "Two"))
  #hash((1 . "One") (2 . "Two"))

  1.
  arc> (each key (keys myhashtable) 
         (prn "key " key " val " myhashtable.key))

  key 2 val Two
  key 1 val One

  2. 
  arc> (each (k v) myhashtable 
            (prn "key " k " val " v))
  key 2 val Two
  key 1 val One
  #hash((1 . "One") (2 . "Two"))

  3.
  arc> (each item myhashtable 
         (prn item))

  (2 Two)
  (1 One)
  #hash((1 . "One") (2 . "Two"))
There's a bunch more documented here:

http://files.arcfn.com/doc/iteration.html

-----

1 point by thaddeus 5643 days ago | link | parent | on: What's the purpose of "hook"?

Ahhh... Thank you - I get it. I can totally see using hook for logging purposes and I can imagine a bunch of other uses for it too...

example:

(= mydata (fromjson "{\"first\":\"Edgar\",\"last\":\"Poe\",\"age\":\"23\",\"dob\":\"Jan 19 1809\"}"))

(= datatypes (obj "first" 'text "last" 'text "age" 'integer "dob" 'date))

(= mydatabase (table))

  arc> mydata
  #hash(("last" . "Poe") ("first" . "Edgar") ("age" . "23") ("dob" . "Jan 19 1809"))

  (defhook integer (val)
    (coerce val 'int))

  (defhook date (val)
    (upcase val))

  (def storedata (mydb typedb)
   (each field (keys mydb)
     (fill-table mydatabase 
        (list field (aif (hook typedb.field mydb.field) it mydb.field))))
    mydatabase)

  arc> (storedata mydata datatypes)
  #hash(("last" . "Poe") ("age" . 23) ("first" . "Edgar") ("dob" . "JAN 19 1809"))
It should have clicked in when I saw aif, but it didn't.

-----


http://files.arcfn.com/doc/index.html

-----

1 point by soapdog 5643 days ago | link

Just made a mirror of those docs. Very useful, thanks! This been most helpful! :-D

-----

1 point by thaddeus 5650 days ago | link | parent | on: Arc in a Racket

> The thing is, if any language deserves to be named after organized crime, I'd say it's either something like C#...

Too Funny. Best laugh I've had all day :)

-----

1 point by thaddeus 5650 days ago | link | parent | on: Arc in a Racket

Terrible name.

Word Origin & History

racket "loud noise," 1565, said to be imitative. Meaning "dishonest activity" (1785) is perhaps from racquet, via notion of "game," reinforced by rack-rent "extortionate rent" (1591), from rack (1). Racketeer (v. and n.) first recorded 1928.

Dictionary:

rack·et   [rak-it] Show IPA –noun

1. a loud noise or clamor, esp. of a disturbing or confusing kind; din; uproar: The traffic made a terrible racket in the street below.

2. social excitement, gaiety, or dissipation.

3.an organized illegal activity, such as bootlegging or the extortion of money from legitimate business people by threat or violence.

4.a dishonest scheme, trick, business, activity, etc.: the latest weight-reducing racket.

5.Usually, the rackets. organized illegal activities: Some say that the revenue from legalized gambling supports the rackets.

6. Slang. a.an occupation, livelihood, or business. b.an easy or profitable source of livelihood.

–verb (used without object)

7. to make a racket or noise.

8. to take part in social gaiety or dissi

-----

1 point by shader 5650 days ago | link

There you go. It says in the definition that racket is "a dishonest scheme"

Now we know why they picked it ;)

-----

2 points by thaddeus 5649 days ago | link

ugh - and I always fall for April fools jokes, I'm going to have to have to add another to my list... I just know it !!!

Next thing you know pg will rename "arc" to language "U" to better represent bottom up programming with more brevity. ;)

-----

More