Re: [racket-users] Help not working after fresh installation of Racket 8.3

2021-11-25 Thread Erich Rast
@gmail.com wrote: > Maybe: raco setup --doc-index > > On Thu, Nov 25, 2021 at 11:28 AM Stephen De Gabrielle > wrote: > >> My first guess would be to use raco to rebuild the docs - but I can’t >> remember the exact command. It’s probably in raco pkg >> >> &

[racket-users] Help not working after fresh installation of Racket 8.3

2021-11-25 Thread Erich Rast
On Linux Mint I installed Racket 8.3 as usual in local folder /home/nemo/racket. Now when I try to access the help in the browser (recent version of Firefox), any link I click results in an error message, for example: *Could not display "/home/nemo/racket/doc/quick/-index.html" The location is

[racket-users] Scribble warnings in package documentation

2018-09-26 Thread Erich Rast
I have a long package documentation and get lots of warnings - see below. Other than that, the docs work fine, should/can I ignore them? What do they mean anyway? Best, Erich WARNING: collected information for key multiple times: '(exporting-libraries #f); values: '(appy/gui) '

Re: [racket-users] Licence guidance

2018-09-24 Thread erich
Are you sure that's a wise choice of license? Racket does not dynamically link to Racket libraries when applications are deployed as compiled executables - as far as I can see, the standard module system does not link dynamically in the sense required by the LGPL(*). Therefore, LGPL doesn't allow

Re: [racket-users] Scribble how to fix red underline keywords?

2018-09-04 Thread Erich Rast
Nevermind, I've got it working. I used the wrong for-label require after defmodule - with a relative path instead of an absolute path, as the manual says. It works fine now. Best, Erich On Tue, 4 Sep 2018 14:28:20 +0100 Erich Rast wrote: > Hi! I'm new to scribble and try to fix

[racket-users] Scribble how to fix red underline keywords?

2018-09-04 Thread Erich Rast
so, is there an example scribble that does everything right for a package? Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr

Re: [racket-users] Where to put scribblings in 'multi package?

2018-08-29 Thread Erich Rast
rkt" and `(require appy/gui)` > will import "gui.rkt". Oh, that's very useful info I didn't know that. I thought this possibility is exactly the purpose of multi-collection packages. I'll make it flat again ASAP. Out of curiosity, if it's not the above selective im

Re: [racket-users] Where to put scribblings in 'multi package?

2018-08-29 Thread Erich Rast
I've looked. Are they just more complicated or are there plans to deprecate them in the future? Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send

[racket-users] Where to put scribblings in 'multi package?

2018-08-29 Thread Erich Rast
scrbl And "info.rkt" looks like this: #lang info (define version "0.1") (define pkg-desc "a framework for cross-platform end-user applications and their deployment") (define collection 'multi) (define distribution-preference 'source) (define pkg-authors &#

Re: [racket-users] Notifier/subscriber pattern, preventing event cycles: What's the best practice?

2018-08-09 Thread Erich Rast
On Wed, 8 Aug 2018 19:36:10 -0400 David Vanderson wrote: > > Is there a better solution to this problem? How do mature > > notifier/subscriber frameworks deal with these kind of problems? > > > The most straightforward solution I've seen puts the responsibility > on the view.  When the view get

[racket-users] Notifier/subscriber pattern, preventing event cycles: What's the best practice?

2018-08-08 Thread Erich Rast
e model after the view change was caused by 'model-change. In that case, the blackboard cannot remove the original notification and the next 'model-change by view will be blocked. This can cause data loss! Is there a better solution to this problem? How do mature notifier/subscriber

[racket-users] Find out whether the debugger is running

2018-08-07 Thread Erich Rast
with debugging off anyway. Or can the debugger be switched off programmatically? Best, Erich P.S. In case someone is interested, the error message is: expand: namespace mismatch; cannot locate module instance module: # use phase: 0 definition phase: 0 for identifier: # compilation co

Re: [racket-users] Adding custom payload data to text%

2018-01-05 Thread Erich Rast
erience has told me that these kind of approaches can be error-prone. But I'll give it a try. If there will ever be a future change to text%, please consider this a feature request. The feature is very useful in list-box%. Best, Erich On Fri, 5 Jan 2018 10:55:32 -0600 Robby Findler wro

[racket-users] Adding custom payload data to text%

2018-01-05 Thread Erich Rast
ck of arbitrary *types of text and other snips* such as "Heading1", "Heading2", "URL", "Calculation", "emphasized", "Internal Link", and the like, in an editable text% instance. Possible? Best, Erich -- You received this message because

Re: [racket-users] Editor-canvas% and transparent style = black?

2017-11-07 Thread Erich Rast
Here is how it looks on my machine: https://vimeo.com/241738557 On Tue, 7 Nov 2017 17:57:27 + Erich Rast wrote: > I thought this was a known bug that just never gets fixed. This has > given a black canvas when you click into the editor on my machine for > ages: > > #

Re: [racket-users] Editor-canvas% and transparent style = black?

2017-11-07 Thread Erich Rast
d frame show #t) On Tue, 07 Nov 2017 17:44:07 + Stephen De Gabrielle wrote: > If you pop you code on pasterack or a gist I’ll test on OS X and > windows > > S. > > On Tue, 7 Nov 2017 at 15:49, Erich Rast wrote: > > > Hi! > > > > This is something I&#

[racket-users] Editor-canvas% and transparent style = black?

2017-11-07 Thread Erich Rast
the black canvas desired behavior? [tested on Linux Mint 18.2 Cinnamon 64 bit, Cinnamon Version 3.2.7, Radeon R9 280X graphics card] Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop r

[racket-users] Can this be optimized?

2017-09-26 Thread Erich Rast
e-text-elements? (first li) (second li)) (consolidate-aux (cons (merge-text-elements (first li) (second li))(cddr li)) result) (consolidate-aux (cdr li) (cons (first li) result)) (reverse (consolidate-aux sxp '( B

Re: [racket-users] Printing Quickly

2017-07-25 Thread Erich Rast
This is difficult, since text% and everything on top of it is unfortunately rather slow and complex. My best advice is to limit or structure the amount of information displayed by the program, since the end user (including you) is likely even slower in parsing the information than racket is display

[racket-users] Putting everything in a single monolithic source file

2017-07-21 Thread Erich Rast
modularity, I'm the only developer, and I can still factor out specific modules as packages later. But I'm wondering whether this has any other disadvantages e.g. for compilation or optimization, or might even break in future? Best, Erich -- You received this message because you a

[racket-users] Question about text% undo and on-change

2017-07-04 Thread Erich Rast
hat can be augmented or overriden. Something like on-undo-add. Am I missing something? Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to r

[racket-users] Merging all snips in text% that can be merged

2017-06-15 Thread Erich Rast
if I'm missing something, because I haven't found a method that uses merge-with. Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket

Re: [racket-users] Html to text, how to obtain a rough preview

2017-06-01 Thread Erich Rast
k (pict:bitmap f)) (delete-file f)) (else (delete-file f) (callback #f (get-url-preview-image (string->url "http://www.nytimes.com";) (lambda (img) (when img (

Re: [racket-users] Html to text, how to obtain a rough preview

2017-05-30 Thread Erich Rast
>url "https://www.racket-lang.org";))) The racket site works fine. However, try https://www.nytimes.com and you only get javascript code, and e.g. http:www.cnn.com returns nothing. :/ I suppose I'd need way more precise parsing and some real text summarization algorithm to get b

[racket-users] Html to text, how to obtain a rough preview

2017-05-30 Thread Erich Rast
as on Linux only I'd use "lynx -dump -nolist" in a subprocess, but it needs to be cross-platform. Is there a sxml trick to achieve that? It doesn't need to be perfect. Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Us

[racket-users] Convert mouse coordinates in mouse-event% to window coordinates? And also for snip%...

2017-05-23 Thread Erich Rast
ant to do the same with a snip% displayed in a text% with one editor-canvas%, i.e., show a floating window just below the snip%. Use cases: tooltips, spell corrections, etc. How do I do that? Thanks a lot in advance! Best, Erich -- You received this message because you are subscribed to the Goo

[racket-users] A new OOP programming construct? [slightly long post]

2017-03-30 Thread Erich Rast
olates some OOP principles or leads to an antipattern? If so, I'd be interested in hearing about it. If not, maybe some graduate student could implement it and write a paper about it? ;-) Anyway, I'd be interested in comments and in any case would love to have this an option in Racket&

Re: [racket-users] Making a snip% select itself in a text%

2017-03-02 Thread Erich Rast
dle them in the snips. It's really cool what you can do with text% snips and the pict library with a bit of fiddling around. :) Best, Erich On Thu, 2 Mar 2017 06:25:09 -0700 Matthew Flatt wrote: > > (send editor set-caret-owner #f) > > to send keyboard focus back to the ed

Re: [racket-users] Re: Making a snip% select itself in a text%

2017-03-02 Thread Erich Rast
urse, I could work around this by maintaining my own selection flag and resetting it in on-goodbye-event, but that seems like a hack to me. Any ideas what I'm doing wrong? Best, Erich My draw method: (define/override (draw dc x y left top right bottom dx dy draw-caret) (defi

[racket-users] Making a snip% select itself in a text%

2017-03-02 Thread Erich Rast
refresh methods in editor and snip-admin with and without wrapping it into queue-callback, but none of them worked so far. Should I redraw it manually by calling draw directly? Best, Erich (define attachment-snip% (class snip% (inherit set-snipclass set-style get-style set-flags get-a

[racket-users] Adding right-click functionality in a list-box%

2017-02-23 Thread Erich Rast
and *then* display a popup-menu based on that selection. But the official API does not seem to offer any direct way of getting the row index below the current mouse cursor position. Possible or not? Best, Erich -- You received this message because you are subscribed to the Google Groups &qu

Re: [racket-users] Resize panels inside panels

2017-02-23 Thread Erich Rast
Your example works and made me realize that I've accidentally removed a list-box *inside* the panel rather than the panel itself in my application. No wonder it didn't work! Thank you so much! Best, Erich On Thu, 23 Feb 2017 05:17:23 -0700 Matthew Flatt wrote: > If so, is t

[racket-users] Resize panels inside panels

2017-02-23 Thread Erich Rast
vases are created? Or do I have to do this manually? Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroup

Re: [racket-users] How to attach all modules required by the current module to a namespace and then namespace-require them

2017-02-09 Thread Erich Rast
inding from dbaccess.rkt is not available in the sandboxed module. But I'm adding it in the sandbox-namespace-specs list. With dynamic-require I got essentially the same result with manually attaching it and then calling namespace-require. Why does this not work? Best, Erich On Thu, 9 Feb

[racket-users] How to attach all modules required by the current module to a namespace and then namespace-require them

2017-02-09 Thread Erich Rast
equired module needs the instance of the module *from the calling module's namespace*, not a separate copy. But this fails for "internat.rkt" - and it also will not create the right module path in the compiled distribution binary, it seems. Is there an internal symbolic name for the m

Re: [racket-users] How to implement a dynamic plugin system?

2017-02-08 Thread Erich Rast
loser look that my plugins would not be as independent and modular than I thought. Best, Erich MrEd On Tue, 7 Feb 2017 15:20:26 + Laurent wrote: > There's also a plugin system in MrEdDesigner based on the directory > structure to load various widgets at runtime: > https://gith

Re: [racket-users] How to implement a dynamic plugin system?

2017-02-07 Thread Erich Rast
cated, maybe I should abandon the idea. But it would be neat, because the main application is really just a tab panel with many independent subcomponents as panel% classes. Best, Erich On Tue, 7 Feb 2017 20:05:03 +0800 WarGrey Gyoudmon Ju wrote: > I think you can check the source of

[racket-users] How to implement a dynamic plugin system?

2017-02-07 Thread Erich Rast
y of doing it, should I use dynamic-require or racket/sandbox? How would you convert an ordinary module with a #lang statement and various requires into such a dynamic plugin? Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" g

[racket-users] How to determine that an image file is valid and working in image-snip%

2017-01-31 Thread Erich Rast
y load the image but should avoid crashing the application when the image file is corrupt or very huge.) I ask because I'd like to avoid making assumptions based on file suffixes if possible. Best, Erich -- You received this message because you are subscribed to the Google Groups "

Re: [racket-users] Best way to ensure threads finish in GUI application?

2017-01-31 Thread Erich Rast
Fantastic! I didn't know about "plumbers" at all. Thanks a lot! Best, Erich On Tue, 31 Jan 2017 06:33:03 -0700 Matthew Flatt wrote: > I think you probably want `plumber-add-flush-handle!`: > > http://docs.racket-lang.org/reference/plumbers.html > > At T

[racket-users] Best way to ensure threads finish in GUI application?

2017-01-31 Thread Erich Rast
?) Related to that, does application-quit-handler capture signals on Linux, and if so, which ones, and/or is there a way to install signal handlers in Racket? Sorry for posing so many questions at once. I just wonder what the practice is for this common scenario. Thanks in advance for any replie

[racket-users] Editor-canvas% how to set default style and use set-line-count correctly?

2017-01-26 Thread Erich Rast
quot;Standard", and how do I change it? best, Erich - ; Example (sorry, not runnable, because it uses my own preference and ; what I call 'metastyle' impementation) ; layout-init does not really change the style, which ; is why I use set-style for every snip. But then set-line

Re: [racket-users] Macro question

2017-01-12 Thread Erich Rast
Nevermind, I got it working (or at least it seems to work): (define-syntax-rule (defpref ident default test?) (begin (define ident (case-lambda [() (pref 'ident)] [(value) (pref 'ident value)])) (pref 'ident default test?))) Best, Erich -- Yo

Re: [racket-users] Macro question

2017-01-12 Thread Erich Rast
phase: 1" So I tried to implement Matthias Felleisen's suggestion (see below), but now I get "home-dir: unbound identifier in module in: home-dir". Why does this occur and how can I fix this? And is there a way to avoid quoting db-path when using defpref? Best, Erich

[racket-users] Macro question

2017-01-12 Thread Erich Rast
e". How do I *define* the derived identifier, as in name -> pref:name, with a syntax macro? Does "definition-key" have to be a macro as well? Best, Erich --- #lang racket (require framework/preferences) (provide init-preferences const:app-name const:app-version

[racket-users] Bug that causes crash ... how to debug? (Linux, Racket 6.7 but also earlier versions)

2016-10-27 Thread Erich Rast
, any clue whatsoever, about what's going on. Any advice? Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@g

[racket-users] Target is not an object, target #f for get-client-size

2016-09-15 Thread Erich Rast
or as (send this get-client-size). How can I ensure that get-client-size works within on-size? Is there a safe way to check that the GUI element is "graphically initialized"? Best, Erich (define/override (on-size width height) (when (object? this) (set-column-dimen

Re: [racket-users] Re: List-box% using percentages to resize multiple columns

2016-09-09 Thread Erich Rast
You are right. I've checked it and it was a simple case of arguments switched - 120 pixel min-width was inadvertently switched for 20%. It works fine now, and on-size seems to be the right place for calculation, too. Thanks! Best, Erich On Thu, 8 Sep 2016 17:56:38 -0700 (PDT) Alex Har

[racket-users] List-box% using percentages to resize multiple columns

2016-09-08 Thread Erich Rast
, though, and would be happy if somebody could help me with calculating perc-width correctly first. Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, s

Re: [racket-users] Do I need a critical section here ... and if so, how to?

2016-09-01 Thread Erich Rast
Wow, I didn't know about box-cas! That seems to be a good solution in this case. Thanks! -- Erich On Thu, 1 Sep 2016 09:37:06 -0300 Gustavo Massaccesi wrote: > What about box-cas! ? > https://docs.racket-lang.org/reference/boxes.html#%28def._%28%28quote._~23~25kernel%29._box-c

[racket-users] Do I need a critical section here ... and if so, how to?

2016-09-01 Thread Erich Rast
rameter or something else for this construct, and if so, what are the benefits of doing so? What would be the 'right' way of providing unique numbers in a synchronized way? Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users&quo

Re: [racket-users] Problem with threads and GUI event handling

2016-08-31 Thread Erich Rast
Such an easy solution, works like a charm! Thanks a lot! -- Erich On Wed, 31 Aug 2016 11:46:44 -0600 Matthew Flatt wrote: > Hi Erich, > > Use `yield` in place of `sync`. Using `yield` will wait for the thread > to complete in the same way as `sync`, but it will dispatch GUI ev

[racket-users] Problem with threads and GUI event handling

2016-08-31 Thread Erich Rast
at the same time the waiting may not block any processing of GUI events like mouse-clicks. How can I achieve this? Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emai

Re: [racket-users] Re: Reliable equality testing of procedures

2015-11-05 Thread Erich Rast
information into the measures. Or I could use a keyword argument... still not sure what's the best API. Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send

[racket-users] Reliable equality testing of procedures

2015-11-04 Thread Erich Rast
mehow interfere with macros, modules, etc.? Best, Erich -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com

Re: [racket-users] Generating preorders

2015-09-24 Thread erich
  Von: "Jerzy Karczmarczuk" An:"Racket Users" Cc: Gesendet:Thu, 24 Sep 2015 01:07:12 +0200 Betreff:Re: [racket-users] Generating preorders A general remark... Josh constructs the list of ALL combinations and all total preorders. Erich apparently tried the same,

Re: [racket-users] Generating preorders

2015-09-23 Thread Erich Rast
You've just saved my day! Thanks a lot! Best, Erich On Wed, 23 Sep 2015 10:38:07 -0400 Josh Grams wrote: > On 2015-09-23 09:46AM, Erich Rast wrote: > >Someone on stackoverflow gave me a working implementation in Python 3 > > > >https://stackoverflow.com/questions/32

Re: [racket-users] Generating preorders

2015-09-23 Thread Erich Rast
would be helpful if I could find a reference to an algorithm. Someone on stackoverflow gave me a working implementation in Python 3 https://stackoverflow.com/questions/3269/ but it uses advanced features and I have no clue how to translate this to Racket. Best, Erich -- You received

[racket-users] Generating preorders

2015-09-22 Thread Erich Rast
nstead of 75 results. Input is a non-empty list, output is a list of lists each of which contains simple elements or sets of equivalent elements. Does anybody have an idea how to do this correctly? Any help would be greatly appreciated! Best, Erich ; Start of program #lang racket (define

Re: [racket] Library for date arithmetic?

2014-03-12 Thread Erich Rast
You could use SRFI 19, but it is also somewhat low-level. On Tue, 11 Mar 2014 16:32:18 -0300 Ismael Figueroa wrote: > Working with a custom handin-server, I have a date value which > represents a deadline, but I also want to allow late submission up to > 3 days later than that (well, an arbitra

[racket] Detecting cycle in directed graph

2014-02-14 Thread Erich Rast
s not a homework question. Best, Erich Racket Users list: http://lists.racket-lang.org/users

[racket] Suggestion for DrRacket

2014-02-14 Thread Erich Rast
ports for feature requests like this? Best, Erich Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Is racket suitable for such a project?

2014-02-13 Thread Erich Rast
I would definitely use Ada for this kind of project. Racket is good for building a prototype and/or proof-of-concept in this case, though. Best, Erich On Mon, 10 Feb 2014 18:49:59 -0500 Yuhao Dong wrote: > Hi, > > I'm trying to decide between Racket and Go on writing my

[racket] (Off) Re: Purely Functional needs "One Memory/Massively Parallel"

2014-02-05 Thread Erich Rast
I'm not sure I understand all of your points. Anyway I believe that purely functional programming is generally beneficial to massively parallel processing because "pure" functions do not alter state outside the function until the computation has ended. Purely functional programs require less synchr

Re: [racket] Racket v5.92

2014-01-25 Thread Erich Rast
ize application with many Planet collections, so it would be good to know if there is a deadline for migrating existing code (not packages) to the new package system. An estimate would also suffice. Best, Erich On Sat, 25 Jan 2014 12:55:58 -0500 Ryan Culpepper wrote: > Racket 5.92 has a

Re: [racket] Servlet static file paths, I just don't get it

2013-10-01 Thread Erich Rast
Thanks a lot, David and Jay, for your detailed replies! I chose David's solution for simplicity. Problem solved. :-) Best, Erich On Mon, 30 Sep 2013 21:28:17 -0400 David Vanderson wrote: > Erich, > > In addition to Jay's options, I think one way to do what you want is &g

Re: [racket] Servlet static file paths, I just don't get it

2013-09-29 Thread Erich Rast
e should be handled by respond-unknown. Do I have to use a static web page instead of respond-unknown? Best, Erich On Sat, 28 Sep 2013 21:57:21 -0600 Jay McCarthy wrote: > Hi Erich, > > You have programmed your servlet to respond to all requests, including > requests to URLs like &quo

[racket] Servlet static file paths, I just don't get it

2013-09-28 Thread Erich Rast
quot;) How do I make the servlet serve the file "htdocs/images/Sloth.png" relative to the servlet source directory and how do I address it in the "img" tag? I tried absolute paths, too, but no luck. Best, Erich P.S. For completeness, the content of lottery/darkstar-lottery

[racket] How much memory does the web server need?

2013-09-18 Thread Erich Rast
b apps). Now I wonder: Does a virtual server with one core and 512MB RAM suffice for running the server? What's the minimum amount of RAM to which the web server's memory can be limited and still run "normally"? Should I go for 1024 MB instead (=4 Euros more per month)? Best, Eri

Re: [racket] Bug all/13780 ... can someone confirm this?

2013-07-15 Thread Erich Rast
Thank you very much for this fast response! Incidentally, I only need modifier key information anyway. Best, Erich On Sun, 14 Jul 2013 17:04:02 -0600 Matthew Flatt wrote: > I see that the `pressedMouseButtons' method of `NSEvent' was not > available until OS X 10.6, so the i

[racket] Bug all/13780 ... can someone confirm this?

2013-07-14 Thread Erich Rast
;t tested it on Windows. Best, Erich Racket Users list: http://lists.racket-lang.org/users

Re: [racket] files using tcp

2013-04-18 Thread Erich Rast
My P2PTools package on Planet has methods for sending and receiving files over TCP. Best, Erich On Thu, 18 Apr 2013 13:32:38 +0530 deepak verma wrote: > how can we send any kind of file using tcp.. > can someone illustrate using a simple code. Racket Users list:

Re: [racket] Detecting application-wide keyboard presses (without open frame or dialog)

2013-01-06 Thread Erich Rast
Great! That'll do. Thank you very much! -- Erich On Sun, 6 Jan 2013 10:15:16 -0700 Matthew Flatt wrote: > For modifier keys, at least, you can use `get-current-mouse-state' > (added in 5.3.1.x). > > > Is there a cross-platform way to detect a keyboard press with

[racket] Detecting application-wide keyboard presses (without open frame or dialog)

2013-01-06 Thread Erich Rast
rame opens in order to reset the window to it's default state. In my application windows remember their position and settings but the user should be able to revert these settings to their defaults by pressing a combination like shift-meta when launching the application

[racket] Modular arithmetic

2012-12-20 Thread Erich Rast
Hi, For compatibility I need modular arithmetic for some standard numeric types such as signed 64bit integer, unsigned 64bit integer, signed 32 bit integer, and so on. Preferably it shouldn't be very slow. What's the best way to get this? Is there a package for this already? Be

Re: [racket] OPERATING SYSTEM ON A FPGA

2012-12-06 Thread Erich Rast
Reminder: If you need a space cadet keyboard to use an OS, it'll have lower chances of long-term success... However, the keyboard layout was pretty cool. On Wed, 5 Dec 2012 20:59:44 -0800 Joe Marshall wrote: > http://dspace.mit.edu/handle/1721.1/5731 > > "Those who cannot remember the past

Re: [racket] OPERATING SYSTEM ON A FPGA

2012-12-05 Thread Erich Rast
given up on the idea -- too many other things to do. Secure, multi-user high-level OS services could be useful even without the capability of running on bare hardware, e.g. on top of a very small GNU/Linux. Best, Erich On Wed, 5 Dec 2012 08:29:04 -0800 (PST) David Blubaugh wrote: > W

Re: [racket] 80-bit precision in Racket

2012-11-14 Thread Erich Rast
s makes the programs particularly maintainable or easy to write, and icc is expensive and very hardware specific. Best, Erich > > > > Message: 1 > Date: Sun, 11 Nov 2012 15:11:50 +0400 > From: Dmitry Pavlov > To: Matthias Felleisen > Cc: users@racket-lang.org

[racket] Scribble - how to document init-fields of a mixin with or without default values

2012-10-18 Thread Erich Rast
(init-field tooltip) (init-field (tooltip-proc #f)) (init-field (show-tooltip? (lambda (parent) #t))) (init-field (min-tooltip-width 100)) (init-field (tooltip-interval 1000)) )) how do I document the init-fields? Best, Erich Racket Users l

[racket] Web server and file upload/download examples

2012-10-08 Thread Erich Rast
al in Racket would simply be too much work for me at this time. Best, Erich Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Scribble Planet problem

2012-10-03 Thread Erich Rast
Seems I have a certain talent of stumbling over Heisenbugs. :) I've applied your patches and will finalize the package soon. Thanks a lot, Danny! Best, Erich On Tue, 2 Oct 2012 15:38:10 -0600 Danny Yoo wrote: > Error traced. No scribble document should break the search index, but &g

Re: [racket] Scribble Planet problem

2012-10-02 Thread Erich Rast
> Odd! Hmmm... Are your sources anywhere where we can check it out to > try it ourselves? I've uploaded them temporarily to launchpad: https://code.launchpad.net/~erich-snafu/+junk/fileutils Thanks a lot for your help. Best, Erich Racket Users l

Re: [racket] Scribble Planet problem

2012-10-02 Thread Erich Rast
ktSym")) "erast/fileutils:1:=0") (span ((class "RktPn")) ")"... What does it mean? My docs compile fine in the IDE, so it's hard for me to track down the error. I have attached the scrbl file in question and hope someone can point out the problem to me. Best, Erich manual.scrbl Description: Binary data Racket Users list: http://lists.racket-lang.org/users

[racket] Scribble Planet problem

2012-10-02 Thread Erich Rast
Sorry if I've missed something obvious, it's the first time I've been using Scribble. Any help very much appreciated. Best, Erich Racket Users list: http://lists.racket-lang.org/users

Re: [racket] How to wait for tcp-accpt-evt unless the listener is or has been closed?

2012-09-13 Thread Erich Rast
inate gracefully. (define (accept-connection/maybe listener) (with-handlers ([exn:fail:network? (lambda (exn) #f)]) (sync/enable-break (tcp-accept-evt listener In either case the problem is solved. Thanks a lot! Best, Erich Racket Users list: http://lists.racket-lang.org/users

[racket] How to wait for tcp-accpt-evt unless the listener is or has been closed?

2012-09-13 Thread Erich Rast
exception. Basically, I need a synchronizable event that yields #f if the listener is closed, the opened ports otherwise. But how? There is not even a tcp-listener-closed? method. Any suggestions? Best, Erich Racket Users list: http://lists.racket-lang.org/users

Re: [racket] racket 5.4 syntax tweak wishlist

2012-09-10 Thread Erich Rast
is would also open the door to some high-level optimizations, albeit presumably quite complicated ones. Best, Erich Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Cross-Platform Secure RNG?

2012-07-12 Thread Erich Rast
to gather entropy on different platforms.) The library hasn't been updated for a while. Best, Erich On Thu, 12 Jul 2012 16:38:31 +0200 Marijn wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 12-07-12 02:10, Nick Sivo wrote: > > Hi, > > > > Do

Re: [racket] Ubuntu 12.04

2012-05-07 Thread Erich Rast
I can confirm that the latest stable release of DrRacket works fine on Xubuntu 12.04, too. On Sun, 6 May 2012 15:54:24 -0500 mauricio mejia wrote: > > the program is installed but does not load in Ubuntu 12.04 > Racket Users list:

Re: [racket] AES encryption/decryption support in Racket?...

2012-04-16 Thread Erich Rast
I've been using the "crypto" library of Dimitris Vyzovitis, which is also based on openssl. It hasn't been updated for a while, but works fine with symmetric algorithms. Best, Erich On Sun, 15 Apr 2012 17:13:00 +0200 Rüdiger Asche wrote: > Hi there, > > in my

Re: [racket] Documentation enhancement suggestions

2012-01-02 Thread Erich Rast
Oops...I didn't know that. Please disregard my last mail. Thanks a lot! > FWIW, in DrRacket, you can type f1 to search for the text that's at > the current insertion point and you can right click on a word to do a > similar search. Racket Users list: http://lists.racket-

Re: [racket] Documentation enhancement suggestions

2012-01-02 Thread Erich Rast
ly in the IDE, or at least allows you to perform a search for the function in the help pages with a simple mouse click. For an example of what I mean, take a look at GNAT Programming Studio; it gives "online" help to produdures and functions while you type them. Any volunteers? ;-

Re: [racket] Mark Tarver is the man!

2012-01-02 Thread Erich Rast
you may for example check out the rewrite of my decade old password manager at peppermind.com. (Yes, not many people really need such an application any longer and it never was a mega-seller but it works well and I'm glad I've chosen Racket for the rewrite.) Thanks a lot to the P

Re: [racket] Text% efficiently iterating over items

2011-12-12 Thread Erich Rast
Yes, sorry, I've meant string-snip%. Okay, I'll iterate over snips then, because I need to match whole character sets. Thanks! Best, Erich On Mon, 12 Dec 2011 16:12:13 -0600 Robby Findler wrote: > You might get away with just using the find-string method of text%, > but

[racket] Text% efficiently iterating over items

2011-12-12 Thread Erich Rast
w do I calculate the offset? Best, Erich _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] set! racket behaviour

2011-10-31 Thread Erich Rast
Doesn't really answer your question, but why not use something like this instead: (define inc (let ((counter 0)) (lambda () (set! counter (add1 counter)) counter))) Best, Erich On Mon, 2011-10-31 at 12:58 -0400, jkaczo...@aol.pl wrote: > Hi, > > I’m using DrRa

[racket] Text% and editor-canvas% typewriter scrolling

2011-10-30 Thread Erich Rast
finable somehow) Is this possible? Any ideas how? Are there some internal classes I could modify? Best, Erich _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] arity of + versus <=

2011-10-27 Thread Erich Rast
's more debatable. Best, Erich On Wed, 2011-10-26 at 20:32 -0700, Dan Grossman wrote: > Very minor point, but is there a rationale beyond historical precedent > for + and * to allow any number of arguments but, =, <=, <, >, >= to > require at least two arguments? > &g

[racket] Fullscreen frame and keyboard focus questions

2011-10-23 Thread Erich Rast
the Gnome panel on Linux will show up even if the background window is right behind it.) Or, should I rather stick with the first method? Or, is there a way to paint the background of a frame% directly or overlay other controls over a canvas? Any solution needs to wo

Re: [racket] Reliably disable/redirect console output

2011-10-17 Thread Erich Rast
On Mon, 2011-10-17 at 14:02 -0600, Ryan Culpepper wrote: > It's possible that the output happens when the main module's requires > are executed. Actually, yes, it's just that. I guess I'm paying the price now for having been a bit picky. Many of the initialization routines in my modules delibera

  1   2   >