|
SaveBinaryDataInSQL
|
04 Jul 2008 - 04:38 - NEW
|
HiSeeComments
|
| |
STARTINCLUDE Save Binary Data in SQL Problem Postgres has a binary datatype. However, if your using hans's sqlid database driver with postgres, and try to save a ... |
|
DatabaseChapterComments
|
01 Jul 2008 - 05:36 - r1.3
|
AntonVanStraaten
|
| |
TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments WriteSqlInSchemeLikeSyntax: belongs here, but I did something wrong Main.HiSeeComments Fixed the parent topic ... |
|
WriteSqlInSchemeLikeSyntax
|
01 Jul 2008 - 05:32 - r1.2
|
AntonVanStraaten
|
| |
STARTINCLUDE Write SQL In Scheme Like Syntax Problem Writing SQL queries, by writing strings using "string-append" can be a pain. a sexp would make life easier. Solution ... |
|
WebFileUpload
|
01 Jul 2008 - 04:26 - r1.3
|
HiSeeComments
|
| |
File Upload Problem You already know how to write complex, and useful CGIs in scheme, however you need to upload a file (any kind of file) from the user computer ... |
|
WebStatistics
|
10 Jun 2008 - 14:08 - r1.261
|
Main.guest
|
| |
Statistics for Cookbook Web Month: Topic views: Topic saves: File uploads: Most popular topic views: Top contributors for topic save and uploads: Jun 2008 20219 0 ... |
|
LayoutMultiplePanelsInAFrame
|
17 Apr 2008 - 06:28 - r1.2
|
NoelWelsh
|
| |
STARTINCLUDE Laying out panels in a window Problem You want to make a specific layout of your panels Solution Laying out panels in DrScheme is simple, Inside your ... |
|
GUIWidgetAggregation
|
17 Apr 2008 - 06:27 - r1.8
|
NoelWelsh
|
| |
STARTINCLUDE Aggregating Widgets in a Single Widget Problem You would like to deal with many widgets as though they were a single widget. Solution begin scheme (require ... |
|
IdiomObjectOrientedProgramming
|
02 Apr 2008 - 22:36 - r1.12
|
StephenDeGabrielle
|
| |
Object Oriented Programming http://www.cs.dartmouth.edu/~cs18/W2004/handouts/objects/objects.html Object Oriented Programming using (a modified) Swindle http://www ... |
|
GUIChapterComments
|
10 Mar 2008 - 13:27 - r1.4
|
StephenDeGabrielle
|
| |
TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments See also Corey Sweeney's http://students.depaul.edu/~csweeney/Guibuilder.Tutorial.html GUI-builder Howto . Main ... |
|
WebGettingStartedInstaweb
|
03 Mar 2008 - 11:30 - r1.4
|
NoelWelsh
|
| |
STARTINCLUDE Getting Started With Web Development and Instaweb Problem You don't know how to get started with web development using the PLT Web server. Solution The ... |
|
ProcessCaptureOutput
|
20 Feb 2008 - 05:21 - r1.7
|
DannyYoo
|
| |
STARTINCLUDE Capturing the Output of a Process Problem You want to run an external process and capture its output. Solution The function system/output below uses ... |
|
ApplicableHashTables
|
05 Feb 2008 - 16:47 - NEW
|
DanielSilva
|
| |
STARTINCLUDE Applicable Hash Tables Problem You want to apply hash-table objects directly to look up or associate keys with values. Solution You can rely on structures ... |
|
IdiomStreams
|
04 Feb 2008 - 13:01 - r1.4
|
StephenDeGabrielle
|
| |
STARTINCLUDE Streams Problem You want to handle state in a functional manner. Solution The concept you're looking for is called a "Stream". Discussion The canonical ... |
|
ImperativeQueues
|
09 Jan 2008 - 18:33 - r1.7
|
JosKoot
|
| |
STARTINCLUDE Imperative Queues Problem A queue is a first-in first-out memory. Objects can be stored one by one and can be extracted (or removed) one by one. Objects ... |
|
WebPLTWebServer
|
05 Jan 2008 - 19:37 - r1.4
|
TroelsKnakNielsen
|
| |
STARTINCLUDE The PLT Web Server Starting the PLT Web Server Starting the web server on your computer is easy. Start a commmand prompt and execute the command: plt ... |
|
HtmlPrag
|
03 Jan 2008 - 10:59 - NEW
|
StephenDeGabrielle
|
| |
HtmlPrag provides permissive HTML parsing and emitting capability to Scheme programs. See: http://www.neilvandyke.org/htmlprag/ Main.StephenDeGabrielle 03 Jan 2008 ... |
|
SXPath
|
03 Jan 2008 - 10:58 - NEW
|
StephenDeGabrielle
|
| |
SXPath is a query language for SXML. It treats a location path as a composite query over an XPath tree or its branch. A single step is a combination of a projection ... |
|
SimpleCanvasOperations
|
19 Dec 2007 - 12:14 - NEW
|
StephenDeGabrielle
|
| |
STARTINCLUDE Simple Canvas operations Problem You want to operate on and interact with a drawing canvas. Solution See also ''PLT MrEd: Graphical Toolbox Manual Chapter ... |
|
ThreadChapterComments
|
12 Dec 2007 - 16:47 - r1.2
|
StephenDeGabrielle
|
| |
TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments A nice simple example of thread use is available at http://www.kuro5hin.org/story/2004/3/17/93442/8657 It supplies ... |
|
IntroductionToMzlibClasses
|
12 Dec 2007 - 16:32 - r1.7
|
StephenDeGabrielle
|
| |
STARTINCLUDE (lib "class.ss") Notes These are a set of notes I'm taking about learning the class system in mzlib, the standard library that comes with mzscheme. I ... |
|
FileWrite
|
10 Dec 2007 - 10:43 - r1.4
|
NoelWelsh
|
| |
STARTINCLUDE Writing to a File Problem You want to write text or data to a file. Solution If you just have a string s to write to a file with name fname , this will ... |
|
NetSendEmail
|
27 Nov 2007 - 15:45 - r1.4
|
StephenDeGabrielle
|
| |
STARTINCLUDE Sending Email Problem You want to send an email from a Scheme program Solution Use the smtp.ss or sendmail.ss modules, and the head.ss module, all in ... |
|
TimeRFC822
|
15 Oct 2007 - 11:58 - r1.3
|
JeromeBaum
|
| |
STARTINCLUDE Writing and Parsing RFC 822 Dates and Times Problem You need to convert from struct:time to RFC 822 format Dates and Times. Solution mzlib provides one ... |
|
XMLRecipeSimpleChanges
|
08 Oct 2007 - 23:14 - r1.7
|
EricHanchrow
|
| |
STARTINCLUDE Making Simple Changes to Elements or Text Problem You want to filter some XML. For example, you want to make substitutions in the body of a document ... |
|
CreatingJpegWithMzScheme
|
29 Sep 2007 - 18:01 - NEW
|
AustinKing
|
| |
STARTINCLUDE Creating Jpeg from scratch using MzScheme Problem You are using PLT DrScheme and you want to draw graphs, generate graphics, or process images from scratch ... |
|
WebFetchingHttpsUrl
|
05 Sep 2007 - 20:05 - r1.6
|
AntonVanStraaten
|
| |
STARTINCLUDE Fetching an HTTPS URL Problem PLT Scheme's url.ss library in the net collection does not directly support retrieval of URLs via HTTPS, i.e. using SSL ... |
|
StringSplit
|
03 Sep 2007 - 11:50 - r1.8
|
ChrisDone
|
| |
STARTINCLUDE string-split: splitting a string into substrings Problem Split a string into words separated by whitespace or other delimiters. See the function split ... |
|
SyntaxLoc
|
24 Aug 2007 - 22:45 - NEW
|
WillFarr
|
| |
STARTINCLUDE Using syntax/loc instead of syntax Problem You're tired of bad error messages and location information from your macros. Solution Use syntax/loc instead ... |
|
NewSRFI42Generator
|
24 Aug 2007 - 22:23 - r1.2
|
JensAxelSoegaard
|
| |
STARTINCLUDE Creating a New SRFI-42 Generator Problem You have a new datatype, in this example a matrix , and you want users to be able to iterate over it using http ... |
|
MacrosChapterRecipes
|
24 Aug 2007 - 17:53 - NEW
|
WillFarr
|
| |
STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup Main.WillFarr 24 Aug 2007 |
|
MacrosChapterComments
|
24 Aug 2007 - 17:50 - NEW
|
WillFarr
|
| |
TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments STOPINCLUDE Main.WillFarr 24 Aug 2007 |
|
MacrosIntroduction
|
24 Aug 2007 - 17:48 - NEW
|
WillFarr
|
| |
STARTINCLUDE Introduction Scheme macros are transformations on the source of a scheme program which happen at "compile" time. They allow you to introduce New binding ... |
|
MacrosChapter
|
24 Aug 2007 - 17:31 - NEW
|
WillFarr
|
| |
STARTINCLUDE Macros TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"MacrosChapterComments"} Set ALLOWTOPICCHANGE Main.SchematicsEditorsGroup ... |
|
TextTemplate
|
13 Aug 2007 - 19:55 - NEW
|
NikitaSidorov
|
| |
STARTINCLUDE text-template Location http://text-template.sourceforge.net Description text-template is a small text template library for scheme. It can be used to ... |
|
DynamicChapterComments
|
02 Aug 2007 - 09:57 - r1.2
|
NoelWelsh
|
| |
TMPL:P{"chaptercommenttip"} STARTINCLUDE Comments See StringEval in StringChapter for how to evaluate code stored in a string. STOPINCLUDE |
|
ThreadSuspendingCurrentThread
|
20 Jul 2007 - 17:04 - r1.2
|
EricHanchrow
|
| |
STARTINCLUDE Suspending the Current Thread Problem You wish to indefinitely suspend the current thread Solution There are two good solutions: begin scheme (sync ... |
|
AuthorCreatingChapters
|
16 Jul 2007 - 07:53 - r1.3
|
NoelWelsh
|
| |
STARTINCLUDE Creating Chapters Problem You want to create a new Chapter in the Cookbook Solution Creating a new Chapter is not as simple as creating a recipe, as ... |
|
WebFetchingURL
|
12 Jul 2007 - 08:02 - r1.5
|
StephenDeGabrielle
|
| |
STARTINCLUDE Fetching a URL Problem You want to get the web page stored at a URL (web address), such as http://schematics.sourceforge.net/ Solution The url.ss library ... |
|
ListFlatten
|
26 Jun 2007 - 18:42 - r1.4
|
KyleSmith
|
| |
STARTINCLUDE How to flatten a list. Problem To flatten a list means to destructure a list into a flat list. For example: begin scheme (flatten '(a (b (c d) e) f) ... |
|
IdiomEvaluateAndTest
|
17 Jun 2007 - 02:47 - r1.12
|
GeoffKnauth
|
| |
STARTINCLUDE Evaluate and Test Problem A common Scheme idiom is to return #f in the case of failure and a useful value otherwise. For example, the member function ... |
|
StructureFunctionalUpdates
|
11 Jun 2007 - 20:34 - r1.2
|
DanielSilva
|
| |
STARTINCLUDE Functional Updates Problem You want to update fields without overwriting an existing structure. Solution The PLT Scheme standard libraries provide a ... |
|
IdiomLoopingConstructs
|
02 Jun 2007 - 04:43 - r1.13
|
TwobitSprite
|
| |
STARTINCLUDE The "missing" looping constructs while , repeat-until and for . Problem The control constructs while , repeat-until and for are present in most mainstream ... |
|
ProducerConsumerThreads
|
01 Jun 2007 - 23:17 - r1.3
|
EricHanchrow
|
| |
Consumer/Producer Threads Problem Some problems can be conveniently solved using a consumer/producer model. A producer generates data, which a consumer must handle ... |
|
CaseSensitivity
|
31 May 2007 - 23:14 - r1.4
|
MichalKwiatkowski
|
| |
STARTINCLUDE Case Sensitivity Problem This recipe gives solutions for dealing with case insensitive code in a case sensitive language and vice versa. Introduction ... |
|
MacroExampleASimplePatternMatcher
|
23 May 2007 - 13:00 - NEW
|
JensAxelSoegaard
|
| |
STARTINCLUDE Macro Example: A simple pattern matcher Problem Write a simple pattern matcher with syntax-rules. Solution The following is a very naïve implementation ... |
|
IdiomPrematureReturn
|
19 May 2007 - 03:32 - r1.8
|
AntonVanStraaten
|
| |
STARTINCLUDE Returning prematurely from a function Problem You are either porting code from an imperative language (like C) as literally as possible and they suddenly ... |
|
WebHome
|
19 May 2007 - 01:59 - r1.36
|
JeffBuckley
|
| |
Welcome to the Schematics Scheme Cookbook. The Schematics Scheme Cookbook is a BecomingAnAuthor collaborative effort to produce documentation and recipes for using ... |
|
GettingStartedMisc
|
10 May 2007 - 19:45 - r1.7
|
DannyYoo
|
| |
Miscellaneous Differences from Standard Scheme Square Brackets People who know some Scheme are often surprised to see square brackets in PLT Scheme programs. They ... |
|
NumberPrinting
|
05 May 2007 - 14:02 - r1.2
|
GeoffKnauth
|
| |
STARTINCLUDE Printing Numbers Problem You want to print a number with a specified a format. Solution The generic printing functions, display , write , format , and ... |
|
IdiomOptionalArguments
|
04 May 2007 - 16:22 - r1.7
|
JohnClements
|
| |
STARTINCLUDE Optional arguments Problem Some functions take arguments that only in exceptional cases are different from a default value. Optional arguments makes ... |