The status is I'm lazy and haven't done much of anything.
I did take a brief look at OpenDBX:
http://www.linuxnetworks.de/doc/index.php/OpenDBX
Perhaps we'd be better off wrapping this than writing our own wrapper for each
DB? Thoughts anyone?
Matthew Welland wrote:
What is the status of th
I have installed the latest version of Chicken from SVN. When I run:
sudo chicken-setup readline
I get the following response:
Password:
The extension readline does not exist.
Do you want to download it ? (yes/no/abort) [yes] yes
downloading readline.egg from (www.call-with-current-continuatio
Do you know if I will cause problems if I just change that symlink to point to a
macports-installed version of libreadline? Is there a better approach?
Thanks for the help,
Ozzi
Kon Lovett wrote:
On Oct 3, 2007, at 10:55 AM, Ozzi wrote:
I have installed the latest version of Chicken from
rse.
Kon Lovett wrote:
On Oct 3, 2007, at 11:21 AM, Ozzi wrote:
Do you know if I will cause problems if I just change that symlink to
point to a macports-installed version of libreadline? Is there a
better approach?
Monkey w/ Apple's installation at your peril.
Suggest you add symlinks
I also put some info under "Platforms"
http://chicken.wiki.br/platforms#Installing%20the%20readline%20egg
I'm wondering if an "Installation" page on the wiki would be useful. For
example, pretty much everyone will want to install readline, but it's not
necessarily clear to new users that they s
on extensions and so far it's
a no go.
Below is the output from it trying to compile packrat. Any hints? If all else
fails I'll get a debian box running, which I've been meaning to do anyway, but
I'd like to be able to put that off a bit longer.
Thanks for any hel
Yeah, no dice here, I'm just going to start working on that Debian box. The G4s
are too slow anyway.
Thanks for the help.
Mario Domenech Goulart wrote:
Hi Ozzi,
On Wed, 17 Oct 2007 19:33:08 -0500 Ozzi <[EMAIL PROTECTED]> wrote:
I've got an older G3 iBook that I'm
I've given up on it, but if I have some time I'll get it running and try to run
some test scripts or something. I'll let you know how it pans out.
felix winkelmann wrote:
On 10/18/07, Ozzi <[EMAIL PROTECTED]> wrote:
I've got an older G3 iBook that I'm tryi
I think this is best described with an example:
foo.scm
(declare (uses bar))
(write (fac 10)) (newline)
bar.scm
--
that have been broken out into separate files. Is this correct?
Tobia Conforto wrote:
Ozzi wrote:
Is there an easy way to write something that can be either compiled
or interpreted
I'm not sure this is exactly what you're asking, but I find include
most useful:
$ cat > bar.scm
(d
Looks like it's time for me to write some more documentation :-)
Below I've included all the ways I've found to include code, along with the
pages from the wiki where I got the info. If anyone who knows of more of either
could tack that on, I'll start working on untangling the mess so new users
Is there a way to create a library with chicken that could be included as if it
were a standard C library into, say, Objective-C?
The reason I ask is that I would like to write some OpenGL views in Chicken, but
then manipulate them from Cocoa/Objective-C to make some fancy windows out of them.
ith the PID of the
process. The new process will sleep for 10 seconds, then call the cleanup proc,
which deletes the PID file.
Let me know what you think, and if you have any other ideas or suggestions.
Ozzi
___
Chicken-users mailing list
Chicken-us
Thomas Christian Chust wrote:
I wonder why one would want to pass this cleanup argument to the daemon
procedure -- why should the spawned process simply perform cleanup once
the daemon procedure returns?
The problem with that, as I see it, is that sometimes daemons don't get to
return normall
the pid file.
(if (file-exists? "/tmp/test.pid")
(print "Failure!")
(print "Success!")))
;; "Failure!" is printed.
Thomas Christian Chust wrote:
Ozzi wrote:
cu,
Thomas
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users
I'd like to wrap C's printf so that I can do something like this:
(c-printf "The %s of %d and %d is %d" "sum" 1 1 2)
Which would print "The sum of 1 and 1 is 2."
I realize that I can't use a simple foreign-lambda, as I need to call C's printf
with an arbitrary argument list.
Is there a clean
Can someone tell me how to tell chicken to use /opt/local/include along with
/usr/local/include when looking for .h files when compiling eggs. Specifically,
the numbers egg is looking for gmp.h, which I have in /opt/local/include, not
/usr/local/include.
Thanks,
Oz
__
I'm most definitely not a scheme guru, so if someone with half a clue would take
a look at my little daemonize egg below and let me know what they think, I'd
appreciate it.
I ended up using the (foreign-lambda int "daemon" int int) approach.
I use on-exit to remove the PID file, which means th
looking into the header
file and using whatever they're declared as instead?
Thanks,
Ozzi
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users
Hans Bulfone wrote:
hi,
sorry for the late reply, i didn't have much time/energy for chicken
in the last few weeks :(
No problem, I'm in the same situtation.
i also wanted to create an egg from that code, along with some
syslog functions, but was to lazy to do it as yet :)
perhaps we should
> Hi,
>
> Can anyone tell me how I can get available disk space from a chicken
> program. I want the same results you get with df in linux. If the
> answer is using process or open-input-pipe.etc. and actually running df
> please explain how this is done since I cannot get it to work no matter
I'm having some trouble install the PyFFI egg, does anyone have any pointers?
Chicken is 2.732, Mac OS X.
I get the same message when I hack the pyffi.setup file to use the python I've
installed from MacPorts.
Thanks,
oz
/usr/local/bin/csc -feature compiling-extension -d2 -s -o pyffi-suppo
No luck, still the same message.
Chicken 2.732, Apple Python.
Odd.
Ivan Raikov wrote:
Hello,
I have committed a new version of pyffi (2.4) that I have tested on
Mac OS with Chicken 2.739 and the standard Apple Python. Could you
please try and see if it works for you?
-Ivan
Ozzi <[EM
-lm -lchicken
Error: shell invocation failed with non-zero return status
"/usr/local/bin/csc -feature compiling-extension -v -d2 -s -o pyffi-support.so
...
256
Ivan Raikov wrote:
Okay, can you give me the output of `chicken-setup -v pyffi`. And
just in case, what is the version of Pyth
the pyffi library
to be linked with Python 2.4. I have created a new version of pyffi
that provides its own definitions of DecRef/IncRef when used with
Python 2.3. Please check the Eggs Unlimited page to see when pyffi 2.5
is available, and try it again.
-Ivan
Ozzi <[EMAIL PROTECTED]> w
Just replace the % with %25. That's what safari shows in the location bar when
you visit one of the links. There's probably an Objective-C function somewhere
to do URL encoding, you should probably use that.
See Also:
http://en.wikipedia.org/wiki/URL-encoding
Rick Taube wrote:
i have a slight
I'm looking to write a daemon that will periodically poll a HTTP server. Is
there an event scheduling egg out there somewhere? If not, does anyone have an
opinion on how best to implement such a thing?
I've considered using set-alarm! or thread-sleep!, or perhaps porting TIMER
(http://www.xach
Could we get something akin to (system->string) added to Chicken somewhere?
Summary from:
http://practical-scheme.net/wiliki/schemexref.cgi?system-%3estring
"Appends all strings, then calls the result string as a command, and collects
the output from the command into a string to be returned. S
r you.
-Ivan
Ozzi <[EMAIL PROTECTED]> writes:
Could we get something akin to (system->string) added to Chicken
somewhere? Summary from:
http://practical-scheme.net/wiliki/schemexref.cgi?system-%3estring
"Appends all strings, then calls the result string as a command, and
colle
I've written two eggs. Comments are appreciated.
I'd like access to the SVN repo as well, to release them. Username: ozzilee.
statvfs
---
A simple wrapper the statvfs system call, returns a vector of filesystem
information. Tested on Debian and OS X.
Exports:
statvfs
filesystem
--
The whole point of the note on the wiki was that we need _one_ documentation
system. The current system sucks, because you keep switching interfaces.
Say you're looking for some documentation, so you search using the wiki
system. However, the docs you're looking for happen to be written in eggdo
This is perhaps a different concern, but I wonder if there would be value in
designating certain eggs as "part of" Chicken, and holding these eggs to a
stricter standard of documentation.
For example, most (all?) of the SRFIs could be considered canon. I'd imagine
Spiffy would as well, along w
I'll cast my ballot for chickenscheme as well.
Elf wrote:
as it comes around time to do my yearly domain registrations (not involving
chicken), i happened to notice that many chicken-based domain names are
not currently taken, like chickenscheme.org/net/com,
chicken-scheme.org/net/com,
scheme
> Perhaps we should also add a more inviting home-page. Maybe some photos
> of managers and developers smiling at a table, shaking hands. With
> everyone wearing nice suits.
I'm on board with cleaning up the web site(s). No suits.
> BTW, how are we paying for this suff? It's nice to have a volun
:open "db.sqlite3")
(sqlite3:prepare (sqlite3:open "db.sqlite3") "select *
from foo")
(sqlite3:open "db.sqlite3") <--
Anybody have an idea where to start on this one?
Chicken 2.740 on both machines. Reinstalled all th
Upgrading to sqlite 3.5.6 on the linux box seems to have fixed it.
Ozzi wrote:
The sqlite3 egg seems to have issues on Dreamhost (Linux). Works fine on
OS X here.
;; Works fine...
(sqlite3:prepare (sqlite3:open "db.sqlite3") "select * from foo")
;; but do the same thi
Just playing around with some ideas I had for a Chicken website, figured I might
as well post them up and let everyone see what I wasted a couple of hours on
tonight :-)
Be warned, the javascript crashed Firefox here on OS X a few times. I built it
in Safari, works fine there.
http://ozzilee
Guilty.
I've committed my statvfs and filesystem eggs. Whatever svn-fu I may have once
had is rusty. Can I just svn mv them into releases/3? Not sure I even have
permissions for that...
WHAT DO I DO NOW?!?? :-)
(sorry for the dupe Felix, forgot to hit "Reply All" the first time)
Felix Win
Vincent Manis wrote:
\begin{rant}
On the subject of using void as a return value (rather than to indicate
that
a function or method doesn't return anything), E.
Please, please, don't ever write functions that return void as anything
other
than an indication that no value was returned.
I suggest that a row be an a-list, and that null columns be represented
by being non-existent in the a-list. If you end up preferring a plain
list or a vector, then use (void) instead -- I am trying to get this
standardized as the Chicken representation of SQL's NULL.
Is there an argument again
Three that I can think of:
1) It would make alist representations ugly:
(query "select foo, NULL as bar, baz from stuff") =>
((foo . 1) (bar) (baz . "a string"))
This doesn't bother me.
2) It is not a disjoint type. (list? '()) => #t. That's bad.
3) As a special case of (2), some databases h
Vectors are currently used in the Postgres egg to represent date-time
values. Not saying it's good, but there it is. (BTW, a dbapi needs
consistent date/time support too...)
In Common Lisp, NIL is the same as '(), and both mean "false". In
Scheme we have an explicit #f. For the same reasons we sh
Has anyone looked into creating a DBI egg yet? I started a wiki page
with the barest outline of a proposal for one:
http://chicken.wiki.br/dbi
Let me know what you think. If someone's already got something going I'd
like to pitch in as well.
___
C
I suggest that a row be an a-list, and that null columns be represented
by being non-existent in the a-list. If you end up preferring a plain
list or a vector, then use (void) instead -- I am trying to get this
standardized as the Chicken representation of SQL's NULL.
I like a-lists as rows for
Jeremy Sydik wrote:
I've been working a little in the same vein, but it's still pretty tied
to a specific project
My needs are pretty light, but I'm finding that the most useful
functions seem to be
sql:query-list
and
sql:query-alist
I started out thinking in terms of Perl/Python type DBI, bu
I don't see that anyone's mentioned the existing sql-null egg yet. Is
there anything wrong with it?
http://chicken.wiki.br/sql-null
Graham Fawcett wrote:
On Fri, Feb 29, 2008 at 2:57 PM, Tobia Conforto <[EMAIL PROTECTED]> wrote:
So, to recap:
Perfect recap! :-)
(define-record-type
46 matches
Mail list logo