Re: [racket] play-sound

2010-11-29 Thread synx
Sound isn't really the forté of windowing applications. I'm not sure why "play-sound" is in there at all. But to be more helpful, do you have "portaudio" support? You could try using the planet package for that: http://planet.racket-lang.org/display.ss?package=rsound.plt&owner=clements (require (

Re: [racket] how can I change image's tint?

2010-10-23 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/23/2010 08:38 PM, 김태윤 wrote: > there must be easy way to change tint(hue, shade) of image > but how to? > thanks in advanced A way, sure, but not an easy way. Racket doesn't have a full featured image processor and photo filter chain ala GIMP/Ph

Re: [racket] reliable path comparison?

2010-10-20 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/20/2010 08:38 PM, Danny Yoo wrote: > Yikes. Ok, is there a way to tell if a filesystem root is > case-sensitive or not? Use a POSIX compatible operating system. Bam, your filesystem root is case-sensitive. -BEGIN PGP SIGNATURE- Version:

Re: [racket] Fundamentals

2010-10-13 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/13/2010 05:36 PM, Mathew Kurian wrote: > Racket as a language built on top of another base language (i.e. > Assembly or C) No, racket is not built on top of another base language. > or is it directly connected to the processor language? The l

Re: [racket] Checking infinite loops

2010-10-03 Thread synx
On 10/03/2010 02:22 PM, A Z wrote: > Does anybody know how to check for infinite loops programmatically in > racket? To check for... wat http://en.wikipedia.org/wiki/Halting_problem _ For list-related administrative tasks: http://lists.racket-la

Re: [racket] mp3 or ogg play in scheme?

2010-10-03 Thread synx
On 10/03/2010 06:35 AM, 김태윤 wrote: > since wav file is too big, is there any way I can play ogg or mp3 file > in scheme? That shouldn't be too much trouble. There are many sound playing libraries and programs that can handle both Vorbis and MP3. I would recommend you do something like this: (modu

[racket] jaymccarthy/dbm unusable where there is only gdbm

2010-09-15 Thread Synx
Sadly gdbm does not seem to provide a libdbm.so library itself, instead instructing every program using it to link with both libgdbm and libgdbm_compat for similar behavior. It also specifies that, since every program will be written in the C language using CPP as a preprocessor, to use CPP macros

[racket] Weird Require Syntaxes

2010-09-10 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In my efforts to create a dynamically loading environment, I'd like to do something like this: - --- #lang racket/base (define-for-syntax db (something)) (define-for-syntax (get-env key) (db-value db key)) (define-syntax env (lambda (form) (sy

Re: [racket] Unix file permissions/owner/group

2010-09-02 Thread synx
a named file. Sure, I did that. I'll attach a quick demonstration. #lang racket/base (require (prefix-in perm: (planet synx/util:2/permissions)) (prefix-in user: (planet synx/user:1)) (prefix-in stat: (planet synx/stat:2)) (prefix-in s: (planet synx/stat:2/lo

Re: [racket] Racket filesystem interface

2010-08-24 Thread Synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/23/2010 09:44 AM, Jay McCarthy wrote: > In fact, it is already written: > > http://planet.racket-lang.org/display.ss?package=stat.plt&owner=synx Anyone who uses this, please let me know anywhere I screwed up on, that needs f

Re: [racket] Newbie question - Drscheme hangs on directory-exists?

2010-07-23 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/22/2010 01:27 AM, John Sampson wrote: > This would mention the need to escape the backslash, which to > a newbie like myself is not obvious. Escaping the backslash is documented under the reader. The reader is the program that parses your writt

[racket] weird exe format bug with lizorkin's ssax vs srfi/8

2010-07-19 Thread synx
Yeah, I... really have no idea what's going on with this bug. Nowhere in my code, or any of lizorkin's ssax code or the sxml-tools module is any reference made to any identifier even resembling the word 'stxloc'. $ cd /home/synx/code/scheme/exe-broken/ $ racket exe-broken.

Re: [racket] file-or-directory-modify-seconds usage bug

2010-07-19 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/19/2010 05:23 PM, Robby Findler wrote: > That is, create some build directory to > run configure in, Okay, I do that. > but don't pass an install dir and instead let the > make install phase go directly into the plt tree where you're building

Re: [racket] file-or-directory-modify-seconds usage bug

2010-07-19 Thread synx
make.log.gz Description: GNU Zip compressed data _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] file-or-directory-modify-seconds usage bug

2010-07-19 Thread synx
raco setup: file-or-directory-modify-seconds: expects type as 2nd argument, given: +inf.0; other arguments were: # Just noticed this error during install of the latest git. Something during installation is attempting to set the modified time of the file to infinitely far in the future. So eithe

Re: [racket] Planet crashing, hanging upgade during compilation

2010-07-03 Thread synx
On 07/02/2010 04:12 AM, Robby Findler wrote: > I am able to download that from my home machine and my machine at my office > without it failing (I'm in Chicago, my office is in Evanston, IL and the > planet server is in Boston if that matters). Hmm... if that's true, who else could it be but my

Re: [racket] Anyone using Dorodango? Any other movement towards an R6RS package system?

2010-07-03 Thread synx
On 07/01/2010 10:20 PM, Noel Welsh wrote: > The .plt format is designed to allow easy emailing for > those that don't have a better Internet connection. Well, I go and run mutt, and it lets me attach binary files, transparantly base64 encoding and decoding them as I attach and save attachments, r

Re: [racket] Redefining selectors - another newbie question

2010-07-02 Thread synx
On 07/01/2010 08:14 AM, Brad Long wrote: > > Yes, that makes sense, for example: (display pt.x) You might want to check Racket's object system. It's different from structs, but is at least the kind of abstraction you're probably thinking of. (define point% (class object% (init-field x y) (s

Re: [racket] Planet crashing, hanging upgade during compilation

2010-07-01 Thread synx
> I'm having trouble seeing the bad behavior you see. One thing is that > installing racket doesn't install any planet packages, afaik. Perhaps > you can say more carefully what it was you did exactly? > > Robby Oh, sorry, yes I should specify more clearly. I install racket in a DESTDIR temporar

Re: [racket] Anyone using Dorodango? Any other movement towards an R6RS package system?

2010-07-01 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 For the record, I think it's completely insane that .plt files are base64 encoded. Sure you can store them base64 encoded in a database, if the database has poor data separation boundaries, but once you retrieve them and put them into a file, it shoul

Re: [racket] Anyone using Dorodango? Any other movement towards an R6RS package system?

2010-06-30 Thread synx
On 06/30/2010 03:04 AM, Noel Welsh wrote: > I really > think the Scheme world would be much much much better served by these > developers contributing their efforts to a single implementation. In particular, one nice thing about Racket is that it provides not so much a language implementation, bu

[racket] Planet crashing, hanging upgade during compilation

2010-06-27 Thread synx
So I was installing racket yesterday and noticed that the installation was hanging on the sub-installation of a planet package. I looked at the situation, tried removing any proxies I might have set up, but nothing I could do would install that package. So I used 'raco planet url' to find the URL

[racket] regexp-replace* allows no sub-expressions?

2010-06-26 Thread synx
Okay what. I've long relied on the behavior of regexp-replace* to single out a number of substrings within a big string, and let me mangle those substrings in a programmatic fashion. Example: (regexp-replace* #rx"([a-z]+) ([a-z]+)" "red fox, blue seal. red trout, blue trout!" (lambda (total c

Re: [racket] Web Application Deployment

2010-06-22 Thread synx
I looked over the FastCGI and SCGI protocols, and concluded that they weren't much more efficient than a protocol known as HTTP. Why not proxy your data to a webserver, using apache's proxy module? My apache2.conf has a lot of these in it: ProxyPass http://127.0.0.1:/ retry=10 If

Re: [racket] context switching

2010-06-19 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/14/2010 12:47 PM, Jakub Piotr Cłapa wrote: > Why do you want to have your context in parameters in the first place? Eh, I don't really. I just like how they clean themselves up after leaving a parameterization, without the attendant loss of tai

[racket] nested environments

2010-06-13 Thread synx
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to represent a situation where there are a number of "environments" that each contain a number of named procedures. These environments can be nested, in that there is a base environment and other environments that add to or replace from it

Re: [racket] Primitive scheme -> racket namespace converter

2010-06-11 Thread synx
And now I noticed that my hackish '|'| eliminator sometimes eliminates the first ( because there is no ' on the expression for reasons I don't understand. So I made a work around! :D Someone who actually knows this stuff I'd really appreciate seeing something like this. ^.^; Not so much to attempt

[racket] context switching

2010-06-11 Thread synx
Here's a little something I was playing with, the notion of context switching. What does a certain symbol (er, parameter) mean in a given context? Can parameters be grouped together into meaningful context objects that change a bunch of parameters at once? The motivation is for my text adventure t

Re: [racket] Primitive scheme -> racket namespace converter

2010-06-11 Thread Synx
On 06/10/2010 09:34 PM, Stephen Chang wrote: > This doesn't seem to do the replacement when the language is just #lang > scheme. Oh, yeah it wouldn't. Well it's an easy fix. But seriously, don't use this on anything you care about. As I said it deletes line-based comments. It also reformats the w