[racket-users] raco pkg migrate

2021-07-01 Thread Curtis Dutton
after I install the newest racket package on my linux servers I always need to run raco pkg migrate to reinstall dependant packages. trouble is I can never figure out the version name of the previous install. Is there a raco pkg migrate command that can just migrate the packages from the latest pre

[racket] Garbage collection informaton

2011-09-28 Thread Curtis Dutton
I'm in the midst of writing a nice performance/stress testing harness for racket. To measure performance with a GC language, it is very important to be able to log accurate GC occurrences, along with how long they take. The debug log seems to really output what I need except maybe a call to (curr

Re: [racket] Garbage collection informaton

2011-09-30 Thread Curtis Dutton
Thank you very much guys! -Curtis On Thu, Sep 29, 2011 at 8:40 PM, Vincent St-Amour wrote: > At Thu, 29 Sep 2011 18:12:32 -0600, > Matthew Flatt wrote: > > * If you create a log receiver within Racket, you can look for > >messages that have a `gc-info' prefab struct (10 fields) value, > >

[racket] Ryanc db.plt, Postgres and bytea []

2011-10-28 Thread Curtis Dutton
I've been using db.plt package and it has been working well for me. Thanks to Ryan for making it. I would like to store and retrieve some binary data in my postgres databases. Unfortunatly db.plt says it doesn't support bytea types yet. How likely or doable would it be to get support for byta[]

Re: [racket] Ryanc db.plt, Postgres and bytea []

2011-10-29 Thread Curtis Dutton
That was my mistake. I was using a bytea[] on my column definition and I only need to use was bytea. Thanks for the info and setting right. On Fri, Oct 28, 2011 at 2:18 PM, Ryan Culpepper wrote: > On 10/28/2011 06:21 AM, Curtis Dutton wrote: > >> I've been using db.plt p

[racket] DB library - postgres and user defined errors...

2011-11-18 Thread Curtis Dutton
What is a good way to get user defined exceptions, written inside of postrges function to be reflected to the end user? Say I have an item table in a database and it has a unique 'name' column. When I call my 'create_item' function in the postgres database, and the name given conflicts with an e

[racket] Not eof evt...

2011-11-19 Thread Curtis Dutton
I see that there is an eof-evt that goes ready once an input port hits eof. I am in need of an event for an input port, that is ready only when a non-eof would be read from that port, and is never ready once an eof is hit. For some reason, I'm having difficulty composing my own (like say by usin

[racket] racket/db - query-rows: connection is permanently locked due to a terminated thread

2012-02-01 Thread Curtis Dutton
I'm receiving this error after my webserver is running for a few days. Hosting a plt webserver on Ubuntu server, I'm using the racket/db library to access a local postgres database. After a few hundred requests, over a period of days, I eventually get this error message. "query-rows: connection is

Re: [racket] Racket consultants

2012-02-29 Thread Curtis Dutton
Sorry, I've been too busy to get to the email list. Just found this. I use racket extensively in my client work. The only trouble is, most of my work is website oriented, so my clients aren't much aware of it. Most of my clients are small business owners and I build/manage their web properties fo

Re: [racket] racket/db - query-rows: connection is permanently locked due to a terminated thread

2012-02-29 Thread Curtis Dutton
I've been running with the kill-safe-connection's for a few weeks now. This seems to have fixed the problem, or at least hidden it to a point that I no longer am affected by it. Thanks for your help. On Thu, Feb 2, 2012 at 2:53 AM, Ryan Culpepper wrote: > On 02/01/2012 10:09 PM,

[racket-users] CQRS and EventSourcing

2015-08-22 Thread Curtis Dutton
I've been investigating the CQRS and EventSourcing way of doing things. Here is a paper about it in case you have not heard of it. https://cqrs.files.wordpress.com/2010/11/cqrs_documents.pdf I guess it is one of those new old things and an alternative to the CRUD way of building an application. I

[racket] openssl - authenticating clients via certificates

2011-01-05 Thread Curtis Dutton
I am interested in implementing authentication via client browser certificates with a racket webserver. I have a small online store website that has both a public side, for anybody, and a set of pages that are private for the management interface of that website. But I don't like the risk of only

Re: [racket] openssl - authenticating clients via certificates

2011-01-06 Thread Curtis Dutton
much of a stretch as far as modifications to the open ssl code goes. I'm still playing with the openssl package and learning how it works. On Wed, Jan 5, 2011 at 4:12 PM, Neil Van Dyke wrote: > Curtis Dutton wrote at 01/05/2011 07:37 AM: > > I am interested in implementing a

Re: [racket] openssl - authenticating clients via certificates

2011-02-25 Thread Curtis Dutton
ed (input terminated prematurely)" however the browsers behave as if everything is working correctly. Sound like a familiar issue to anyone? Thanks, Curtis On Wed, Jan 5, 2011 at 7:37 AM, Curtis Dutton wrote: > I am interested in implementing authentication via client browser > certi

[racket] "read"ing sets

2011-05-12 Thread Curtis Dutton
than via serialization) I'd like to hook into it with a reader extension somehow but the reader documentation seems a bit terse in that area. Does anyone know of some good places to look in the source for guidance? Thanks, Curtis Dutton ___

[racket-users] make-output-port events

2018-12-28 Thread Curtis Dutton
I'm trying to create an output port that wraps a set of foreign interface functions. The ffi has a bytes_writable function which tells how many bytes can be written as well as a write_bytes function that does the writing. In this case I need to poll with bytes_writable until it returns more than

Re: [racket] New web pages!

2014-03-19 Thread Curtis Dutton
My only regret with programming was not finding lisp until my late 20's. I remember having only 1 day of a class in college that went over lisp. It was a crappy copy of McCarthy's lisp paper, so of course the impression that an immature 20 year old took was, 'that was history; so interesting but no

[racket] Possible bug with DB virtual-connections and connection-pools

2014-06-11 Thread Curtis Dutton
I ran into a problem while using virtual-connections with connection-pooling in my webserver. With a postgres database. If the database itself gets restarted after a connection is formed from the webserver, then I cannot re-establish a connection afterword. In production the database and webserv

Re: [racket] Possible bug with DB virtual-connections and connection-pools

2014-06-16 Thread Curtis Dutton
AM, Curtis Dutton wrote: > >> I ran into a problem while using virtual-connections with >> connection-pooling in my webserver. >> >> With a postgres database. If the database itself gets restarted after a >> connection is formed from the webserver, then I cannot re

Re: [racket] Is it possible to write uuids to postgres with the racket db?

2014-07-21 Thread Curtis Dutton
My workaround which was conducive to the database architecture, was use a view that exposes the uuid as text along with other related columns. Then upon insert or update, a rewrite rule casts it back to the uuid type into the actual backing table. On Sun, Jul 20, 2014 at 9:07 PM, wrote: > > Hey

[racket] using raco setup to create systemwide commands

2013-01-16 Thread Curtis Dutton
I'm working on a small utility to help me backup virtual guest disks over slow links. I'll make an announcement about it once I get it to beta state. I would really like to make it a one line command to install to the system. So far I'm able to install it like so 1. raco link -i /usr/local/g

[racket-users] raco pkg migrate previous versions

2020-05-15 Thread Curtis Dutton
Is there a way to view the previous versions that were installed from raco using raco pkg migrate? I always find myself trying to guess the previous version number after an upgrade to migrate from. Does raco pkg have the ability to list previously instlalled versions like drracket does? Thanks,

[racket-users] DB hangs with postgres and broken network link

2020-07-03 Thread Curtis Dutton
I'm in the process of writing a simple daemon that periodically checks in with a postgres database. I'm trying to make it resilient with network outages. If you connect to the database. Unplug the network cable. Run a query. The query will hang for what appears to be forever without throwing an

[racket-users] Re: DB hangs with postgres and broken network link

2020-07-03 Thread Curtis Dutton
Ok well on additional investigation this appears only to happen while using virtual connections. If a raw postgresql-connect is used it does raise a tcp timeout error. On Fri, Jul 3, 2020 at 10:51 AM Curtis Dutton wrote: > I'm in the process of writing a simple daemon that periodicall

[racket] Rejoindre mon réseau sur LinkedIn

2011-04-25 Thread Curtis Dutton via LinkedIn
LinkedIn Curtis Dutton souhaite se connecter à vous sur LinkedIn : -- Je vous invite à faire partie de mon réseau professionnel en ligne sur le site LinkedIn. Accepter l'invitation de Curtis Dutton http://www.linkedin.com/e/-mh1v86-gmy5ln