Iain Gray | 1 Jan 2006 12:02
Picon

Re: Can't install manual - permission denied

Hi Gregory,

I am using OS X (10.4.3) and experienced the same problem when trying  
to install the uninstalled manuals in PLT Scheme v300. The problem is  
that the original installer appears as "system" then you are doing  
additional installations as "<username>". My solution is to open the  
folder "collects" in the "PLT Scheme v300" folder and select the  
"doc" folder. Do a "file get info" (command i) on this and open  
"details" in the panel that opens by clicking on the arrow at the  
bottom. This will show "system" as the owner, note the other settings  
for restoring afterwards, then click on the padlock and change the  
owner to  "<username>" and all access privileges to "read & write",  
you'll need your password, finally click on the button "apply to  
enclosed items" at the bottom. ow install the manuals you want.  
Finally restore the settings of the "doc" folder and its enclosed  
files by using command i etc. again.

hth

Iain

p.s. the same effect can also be done with sudo chown/chmod from a  
Unix Terminal window.

On 31 Dec 2005, at 19:35, Gregory Woodhouse wrote:

> Okay, I'm at home, running OS X, and just tried to install "Inside  
> PLT Scheme" (I was looking for some insight into boxes and lazy  
> evaluation), but when the help desk tried to install it for me, it  
> first displayed a message saying there was a file permission error,  
(Continue reading)

Hans Oesterholt-Dijkema | 1 Jan 2006 13:58

Adding Libraries to a PLT (Planet) Archive

Hi Everybody,

Happy newyear!

Just a question about PLT packages to begin the year with.
While making a PLT package, I'm adding pre-compiled
variant of the C stuff for WIN32 OS. Now, I'd like to
add the libraries that are needed too (e.g. Sqlite.dll, mysql.dll,
pgsql.dll etc.;
and later gtk-2.8.9.dll, etc).

Is it possible to add these libraries in such a way that they are
used/loaded when (require (planet ...)) is issued? I've done such
a thing, setting the environment variable PATH on windows to
the collects/sqlid/native/compiled/win32/i386 directory (a similar
thing could be done for LIBPATH (AIX) and LD_LIBRARY_PATH (Linux)).

However, are there other possibilities?

Thanks in advance for your help,

Hans Oesterholt

_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Stephen Austin | 1 Jan 2006 20:23
Picon

Re: Can't install manual - permission denied

I reported this as a bug, but was told it was intended behaviour, and
that I should use pseudo or the equivalent. It's not standard
behaviour for OS X apps though, which would typically request an admin
password before installing the docs. The easiest user fix is to change
the permissions of /collects/doc/ to rw.

Steve
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Evangelos Tsagkas | 1 Jan 2006 22:57
Picon

Re: SchemeUnit 3.0 PRE-RELEASE

Greetings! Happy new year!

I'm new to Scheme, so bear with me.

On 12/29/05, Noel Welsh <noelwelsh@...> wrote:
> Hi all,
>
> A prerelease of SchemeUnit 3.0 is available at:
>
>   http://schematics.sourceforge.net/schemeunit.plt
>
> It is a Planet .plt.  Install it thus:
>
>   planet -f schemeunit.plt schematics 2 0

I downloaded `schemeunit.plt' from said location and run the `planet
-f ...' command. What I get is the following:

default-load-handler: expected a `module' declaration for
`assert-test', but found end-of-file in: #<path:C:\Documents and
Settings\lunluc\Application
Data\PLTScheme\planet\300\300\cache\schemati...
setup-plt: Error during Compiling .zos for schemeunit (C:\Documents
and Settings\lunluc\Application
Data\PLTScheme\planet\300\300\cache\schematics\schemeunit.plt\1\1)
setup-plt:   default-load-handler: expected a `module' declaration for
`assert-test', but found end-of-file in: #<path:C:\Documents and
Settings\lunluc\Application
Data\PLTScheme\planet\300\300\cache\schemati...

(Continue reading)

Jens Axel Søgaard | 1 Jan 2006 23:50

Re: (fast) reading of data files into a hash-table - how?

Jens Axel Søgaard wrote:
> For fun I decided to try inserting 14000 lists of 6 strings
> of length 10 into the finite-map data structure provided by
> Galore. And then do 10000 random lookups. 

And here is the same test with a trie.

;;; trie.scm  --  Jens Axel Søgaard

; A quick implementation of tries inspired by page 163-165 in
; Chris Okasaki's "Purely Functional Data Structures".

; A trie is a finite map which maps keys in form of lists over
; a base type to values.

; We represent as a triple:

(define-struct trie (end value map) (make-inspector))

; where
;   end    is a boolean
;   value  is of the base type
;   map    is a finite map from the base type to tries

; A trie containing "ca", "car" and "o" can be drawn as
; a tree, where end and value is drawn at the nodes, and
; the map contains the labels of the subtrees.

;         #f,-
;          /\
(Continue reading)

Danny Yoo | 2 Jan 2006 01:32
Picon

Re: jumping comma


On Sat, 31 Dec 2005, Andreas Zwinkau wrote:

> I don't know, what to make out of this behaviour:
>     > '(jumping, comma)
>     (jumping ,comma)
> Why does the comma jump from "right of jumping" to "left of comma"?

Hi Andi,

Others have already shown that the comma is treated as a special case by
the reader function.  By the way, if we do want to have a list whose
content contains what I think you'd like to have, then we can use vertical
bars or backslashes to escape comma-ed symbols:

;;;;;;
> (define mylist '(jumping |,comma|))
> (car mylist)
jumping
> (cdr mylist)
(|,comma|)
> (symbol->string (cadr mylist))
",comma"
;;;;;;

Section 11.2.4 of the language manual talks about this a few paragraphs
down:

http://download.plt-scheme.org/doc/300/html/mzscheme/mzscheme-Z-H-11.html#node_sec_11.2.4

(Continue reading)

Hans Oesterholt-Dijkema | 2 Jan 2006 13:14

Problems with pre-install on Linux

Hello,

I'm trying to get an extension to compile some C files on
Linux, using the pre-install function, during setup-plt.

I've included header files in the distro in the $HOME/local/collects/sqlid/include
directory. This works as long as I don't set the PLT_EXTENSION_LIB_PATHS
environment variable.

However, during the process of compiling linking has to be done
against -L$HOME/local/lib. This doesn't work. No problem:
export PLT_EXTENSION_LIB_PATHS=$HOME/local:$HOME/local/collects/sqlid

This generates an error during compile, because only -I$HOME/local/include
is added as compilation flag, where I'd expect -I$HOME/local/include -I$HOME/local/collects/sqlid/include

What can I expect?

best whishes,

Hans Oesterholt



_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
Ivanyi Peter | 2 Jan 2006 14:11
Picon
Favicon

v300, my notes

Hi,

During the holiday I have converted to my SX modeller to
PLT-Scheme v300.  However a couple of things came up. It is
long e-mail, I am sorry.

- This is just a note. OpenGL uses the foreign function
interface library. It is generally very easy to "convert"
(or make available) the OpenGL functions in Scheme, but one
of the crucial functions is the glSelectBuffer. This is the
fourth version of glSelectBuffer that I see; guile, bigloo
and others do it differently. I do not know the foreign
func. interface library, but maybe it is worth reconsidering
this function. For example, for large number of elements
every time the glSelectBuffer function is called a large
memory is allocated. (I have a workaround for this, but I
would prefer if the library supports something better.)
Related to this: Is there a way to convert the c-vector to
vector, without first converting it to a list? (Maybe I
missed something.)

- As the case sensitivity is introduced I have noticed a
strange thing. In DrScheme when I select the "Pretty Big"
Language or similar and I do not switch on the case
sensitivity then it is impossible to call OpenGL functions.
For example after: (require (lib "gl.ss" "sgl")) and typing
glbegin DrScheme reports an error. When case sensitivity is
switched on glBegin is OK. Is this behaviour documented
anywhere? Is it normal?

- Run the following Scheme snippet in DrScheme and you will
notice that the line of the boxed panel crosses the button.
If there is a label for the boxed panel the spacing is all
right. I presume this is a bug.

(define win (new frame% (label "test") (min-width 1)
(min-height 1)))
(define grp (new group-box-panel% (parent win) (label "")))
(define hor1 (new horizontal-panel% (parent grp)))
(new message% (label "aa") (parent hor1))
(new button%  (label "aa") (parent hor1) (callback (lambda
(b e) #f)))
(send win show #t)

- There is an important (at least to me) difference in the
appearance of the button in Windows and Linux. In Windows
there is no border while in Linux there is a 2 or more pixel
border. This means that in Linux the buttons are spaced
further away from each other and they do not look so neat.
Is there a way to get rid of the border in Linux?

- My last note is again Linux related. I have a Debian
system, and I have compiled v300 on it and installed.
Everything seems fine with the following problems. (None of
them was a problem with v209.)
If I run the following "gl-base.scm" OpenGL program in
DrScheme twice, then DrScheme crashes for the second time
with Segmentation Fault. The program is good, it runs under
v209 and under v300 on Windows. It should display a white
square in the middle of a black background. And there is a
second problem with it that even when I run it for the first
time it does not display anything only a white background.
(I have also checked my SX modeller and the OpenGL screen
update is not the same as it was in v209. For example when I
pull down a menu, select something, so the menu disappears,
the underlying OpenGL canvas does not get refreshed and a
white square remains where the menu area was.)
Can anyone confirm the same behaviour for the gl-base.scm
program?

Thanks for any help with any of the above problems.

Best regards,

Peter Ivanyi

--------------- gl-base.scm ------------------------

(require (lib "gl.ss" "sgl")
         (lib "gl-vectors.ss" "sgl")
)

(define (resize w h)
  (glViewport 0 0 w h)
)

(define (draw-opengl)
  (glClearColor 0.0 0.0 0.0 0.0)
  (glClear gl_color_buffer_bit)
  (glColor3d 1.0 1.0 1.0)
  (glOrtho 0.0 1.0 0.0 1.0 -1.0 1.0)
  (glBegin gl_polygon)
  (glVertex3d 0.25 0.25 0.0)
  (glVertex3d 0.75 0.25 0.0)
  (glVertex3d 0.75 0.75 0.0)
  (glVertex3d 0.25 0.75 0.0)
  (glEnd)
)

(define my-canvas%
  (class* canvas% ()
    (inherit with-gl-context swap-gl-buffers)

   (define/override (on-paint)
      (with-gl-context
        (lambda ()
          (draw-opengl)
          (swap-gl-buffers)
        )
      )
    )

    (define/override (on-size width height)
      (with-gl-context
        (lambda ()
          (resize width height)
        )
      )
    )

    (super-instantiate () (style '(gl)))
  )
) 

(define win (new frame% (label "OpenGl Test") (min-width
200) (min-height 200)))
(define gl  (new my-canvas% (parent win)))

(send win show #t)

________________________________________________________________________
Halld és lásd a 20. századot! Cikkek és videók a század történelmi eseményeiről
az [origo] Múltkor oldalán. http://mult-kor.hu/cikk.php?article=12020

_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Joseph Koshy | 2 Jan 2006 17:29
Picon
Gravatar

Re: Install Drscheme 300 on FreeBSD

> Finally I compiled it from the ports, It was ok to compile
> and install, but when I ran it, it complained the same
> problem as before. What shoul I do?

If you could you file a (FreeBSD) PR with a short program that
displays the problem, I will try to help.

--
FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Nicholas Chubrich | 2 Jan 2006 19:33
Picon

PLT versions

I'm just starting out with PLT (after having used MIT before).  In trying 
to work with a package (MrEdDesigner) I find that it works with v209 but 
not v299.  Is this generally true of packages and modules (found on PLaneT 
for instance) that they will not work with later versions of PLT?  Can 
they be made to work?  If not, what is the best way of installing multiple 
versions of PLT (on Mac OX) so that they do not conflict?

Thanks,

Nick Chubrich.
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Gmane