Arc Forumnew | comments | leaders | submit | eekee's commentslogin
1 point by eekee 5915 days ago | link | parent | on: Asv or serve broken

Thanks for the patch link. I had to regenerate it, and I'm wondering if I missed something. The patch as I added it (attached below) does get rid of the warning from date, but all the other errors still seem to be there and Firefox still displays only a blank page, as do Links and W3M. Errors on the arc tty are very similar:

reference to undefined identifier: _ranked-stories*

=== context === newspage gs1645 gs905 handle-request-thread

Links uniquely appears to send 2 requests:

reference to undefined identifier: _subseq

=== context === date memodate srvlog gs905 handle-request-thread

reference to undefined identifier: _ranked-stories*

=== context === newspage gs1645 gs905 handle-request-thread

As to Lynx I found this forum doesn't support it either, and I'm not sure I blame it. I tried logging in from my Zaurus, only to get an error about invalid content length. I'm annoyed with Lynx more than the forum. It's been around long enough.

Regenerated patch:

--- arc.arc.orig 2008-09-11 18:42:00.000000000 +0100 +++ arc.arc 2008-09-11 18:46:32.000000000 +0100 @@ -1212,8 +1212,21 @@ (unless (dir-exists path) (system (string "mkdir -p " path))))

+(def uname nil + (let val (tostring (system "uname")) + (subseq val 0 (- (len val) 1)))) + (def date ((o time (seconds))) - (let val (tostring (system (string "date -u -r " time " \"+%Y-%m-%d\""))) + (let val (tostring (system + (string + "date -u " + (if + (is (uname) "Linux") + ;; Linux wants -d and an interval + (string "-d \"" (- 1 (since time)) " seconds\"") + ;; BSD wants -r and epoch seconds + (string "-r " time)) + " \"+%Y-%m-%d\""))) (cut val 0 (- (len val) 1))))

(def count (test x)

Edit: Fixed the newlines. >_> I hope I didn't screw up the patch.

Edit #2: Or not. What kind of forum is this? One that likes proper <p> tags... Okay, I could live with that but honestly, what kind of coding-discussion forum does that make it?

-----

2 points by almkglor 5915 days ago | link

Put two spaces before each line of code:

  ordinary text you want to put in a single
  paragraph

    (indent two spaces
      (to get code)
      (that is readable)
      (make sure
        (to put empty lines before and after)))

-----

1 point by eekee 5915 days ago | link

Ok... well I suppose I could paste errors into an editor before pasting them here.

-----

1 point by eekee 5916 days ago | link | parent | on: FreeBSD deployment experiences

Points 1 & 2 also apply to Source Mage GNU/Linux, and for point 5, man pages are good for most packages and for the system these days, there is a developing wiki maintained by the distro, and documentation that may be missing is made up for by the helpfulness of the people in the IRC channel.

Point 3 largely applies in that building every package you install is far more automated than in LFS, and most of the "spells" (ports, packages) are kept up to date regularly (Gnome included), and it's very easy to update any that may have been forgotten, or to add missing packages. It took me about 5 minutes to clone the mzscheme spell to "mzscheme352" for Arc use. OTOH you still have to deal with the behemoth that is the Linux kernel configuration. I cheated; I got hold of a Debian kernel and used it as a base for make oldconfig, later tweaking a little.

-----

3 points by eekee 5916 days ago | link | parent | on: Is, lists, and strings

Ah, I guess my bit-twiddling background is showing, because I don't like to think of strings as single entities. Symbols exist for that and are more efficient all-round, if I understand right.

-----