Check out this one-of-a-kind motorcycle here and here.
Made right in our backyard.
(via milvinmoto)
Author: grant
The rational for returning the identity for expressions such as (*) and (+)
This post in comp.lang.scheme brings up a question that inevitably everyone asks.
Suppose the answer is obvious but John summed it up well:
Well, if you interpret (apply + some-list) and (apply * some-other-list) as left-folds, then a starting point is needed, something to begin accumulating from. The identity is the only value that works correctly, so it’s what gets returned when the list being folded over has length 0. Nobody would write (+) or (*) explicitly, but having them return the identity is the Right Thing nevertheless.
The same argument applies when expanding macros: in a degenerate case, a macro may expand to (+) or (*), and it’s usually not appropriate to raise an exception.
UltraVNC Seems to Work Best for Windows to OSX
For connecting Windows to OSX via VNC; UltraVNC seems to work the best.
The other clients drop frequently.
AcroTEX and eqExam for the Truly Impatient
eqExam is just a wonderful LaTeX package for writing things like exams and quizzes. It takes into account most of what you are about right out of the box like whether you are proctoring the exam online or in printed form and whether you want an answer key printed or not. Here is an example of something that I threw together quickly by hacking up one of the example tests.
There are even really advanced things like exporting the answer data for automatic electronic submission; it’s got me really curious how people are using this in the wild.
Setup is really easy, the only caveat is that you must use MiKTEX version 2.8. Version 2.9 seems not to run at this point.
If you have never set up MiKTEX or eqExam before then my directions are attached here. Please let me know how it worked for you if you try them out.
One big question for some of you is why you would use something like this rather than MS Word or Adobe Acrobat Pro and it is a good question. The only answer that I can share is why it is so valuable for me… it is because you get to use all of the power of LaTeX to generate PDF forms and exams. That might sound like not a big deal, but if it doesn’t then you should really dig deeper into LaTeX to see how it could help you to better communicate.
R7RS Initial Results of Implementor Intentions Poll
The following all intend to support R7RS small:
- Per Bothner (Kawa)
- Will Clinger (Larceny)
- Shiro Kawai (Gauche)
- Manuel Serrano (Bigloo) – “not sure about libraries”
- Alex Shinn (Chibi) – “already fully implemented, but lacking tests”
- Felix Winkelmann (Chicken)
The following were less committal, but open, and their implementations are flexible enough to implement R7RS in third-party code:
- Kent Dybvig (Chez) – “if it’s as simple as you say I don’t see why not”
- Matthew Flatt (Racket) – “if there’s sufficient user demand”
- Andy Wingo (Guile) – “probably”
The following are simply unable to implement R7RS or uninterested in standards:
- Taylor Campbell (MIT) – “MIT lacks the infrastructure for modules”
- Jonathan Shapiro (TinyScheme) – thinks call/cc should be removed
- Jeffery Mark Siskind (Stalin) – “no longer working on Stalin”
- Michael Sperber (Scheme48) – “no time even for R6RS”
No one refused to implement based on the content of the standard, or cited any features as showstoppers.
That last part is important; R6RS didn’t have that quality.
(via scheme-reports)
Destructuring Lists Using CA*D*R vs First, Second, … vs Pattern Matching
This thread discusses the pros and cons of using the CA*D*R functions vs named first, second, third, list-tail, … and so on vs pattern matching for the same task.
I thought that pattern-matching was the best way to do it; and now I’m curious about why CA*D*R is better.
Pandoc A Universal File Markup Language Converter
If you need to convert files from one markup format into another, pandoc is your swiss-army knife. Need to generate a man page from a markdown file? No problem. LaTeX to Docbook? Sure. HTML to MediaWiki? Yes, that too. Pandoc can read markdown and (subsets of) reStructuredText, textile, HTML, and LaTeX, and it can write plain text, markdown, reStructuredText, HTML, LaTeX, ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki markup, textile, groff man pages, Emacs org-mode, EPUB ebooks, and S5 and Slidy HTML slide shows. PDF output (via LaTeX) is also supported with the included markdown2pdf wrapper script.
Pandoc understands a number of useful markdown syntax extensions, including document metadata (title, author, date); footnotes; tables; definition lists; superscript and subscript; strikeout; enhanced ordered lists (start number and numbering style are significant); delimited code blocks; markdown inside HTML blocks; and TeX math. Other options include “smart” punctuation, syntax highlighting, automatically generated tables of contents, and automatically generated citations (using citeproc-hs). If strict markdown compatibility is desired, all of these extensions can be turned off with a command-line flag.
(via pandoc)
A Nice Update on WG1 of R7RS
SchemaSpy: A Graphical Database Schema Metadata Browser
SchemaSpy is a Java-based tool that analyzes the metadata of a schema in a database and generates a visual representation of it in a browser-displayable format. It lets you click through the hierarchy of database tables via child and parent table relationships as represented by both HTML links and entity-relationship diagrams. It’s also designed to help resolve the obtuse errors that a database sometimes gives related to failures due to constraints.
This is an excellent tool in its own right; and if nothing else for its beautiful use of Graphviz.
See the example(s) here.
Penetrating Oil Review
Machinist’s Workshop magazine actually tested penetrants for break out torque on rusted nuts.
Significant results! They are below, as forwarded by an ex-student and professional machinist, Bud Baker.
Don’t forget the April 2007 “Machinist’s Workshop” magazine comparison test.
They arranged a subjective test of all the popular penetrants with the control being the torque required to remove the nut from a “scientifically rusted” environment.
- Penetrating oil ….. Average load
- None …………………. 516 pounds
- WD-40 ……………….. 238 pounds
- PB Blaster ………….. 214 pounds
- Liquid Wrench …….. 127 pounds
- Kano Kroil …………… 106 pounds
- ATF-Acetone mix…….53 pounds
The ATF-Acetone mix was a “home brew” mix of 50 – 50 automatic transmission fluid and acetone.
Note the “home brew” was better than any commercial product in this one particular test.
Our local machinist group mixed up a batch and we all now use it with equally good results.
Note also that “Liquid Wrench” is about as good as “Kroil” for about 20% of the price.
(via Concours Tech)