mutedalarm.blogspot.com
Muted Alarm: Who says static typing has to be ceremonious?
http://mutedalarm.blogspot.com/2009/04/who-says-static-typing-has-to-be.html
A blog for programming, design, and technical thought. Mostly in Scala. Tuesday, April 7, 2009. Who says static typing has to be ceremonious? I refer you to a blog post by Ikai Lan. When you combine pattern matching, extractors, lazy file streams, and other sugar, things can get pretty silly pretty fast :). Subscribe to: Post Comments (Atom). View my complete profile. PowerShell is open sourced and is available on Linux. 10th Anniversary of jQuery. Confessions of a Digital Packrat.
randomallsorts.blogspot.com
Random Allsorts: November 2009
http://randomallsorts.blogspot.com/2009_11_01_archive.html
Random Allsorts from Matthew Farwell. Jasper Reports - Exploring Sample Reports. In the previous article. We set up Jasper Server Reports and were looking at the sample reports that come with the installation. Here, we'll explore some of the base functionality of Jasper Reports. Using as an example the Jasper Server Report, we can see that Jasper can do a number of things:. The parameter is passed as part of the URL for this report:. When you click here, you get a list of employees to choose from:. I've ...
techneilogy.blogspot.com
TechNeilogy: April 2010
http://techneilogy.blogspot.com/2010_04_01_archive.html
Thursday, April 29, 2010. Driving Range Pooled Allocator. In a nutshell, it sub-allocates fixed-size batches of instances. Instances are dispensed from these batches, with more batches being added as required. When the run is complete, the batches are “virtually de-allocated” by resetting various indices, but the instances themselves are not de-allocated. I did my best to test for errors, but this is a generation 1.0 F# implementation. For one thing, it is designed mainly for internal use and so ...Let m...
techneilogy.blogspot.com
TechNeilogy: January 2012
http://techneilogy.blogspot.com/2012_01_01_archive.html
Friday, January 27, 2012. Mixins Simplify Composition in Scala. Scala has a nifty feature called “traits.” . A trait is a means of encapsulating methods and fields that behaves in some ways like an interface, and in other ways like an abstract class. . Like an interface or abstract class, a trait can declare methods and fields that must later be defined in some concrete class. . Unlike a class, however, a trait cannot have constructor parameters. . Here is a simple trait that specifies an iterator:.
techneilogy.blogspot.com
TechNeilogy: October 2010
http://techneilogy.blogspot.com/2010_10_01_archive.html
Sunday, October 3, 2010. F# Computation Expressions: Basic Data Retrieval Mechanics. The test database itself consists of two record types. The first is a simple key/value pair. The second is a linking record type which consists of two keys. This keeps things simple for the test, but the method would remain the same even for more complex record structures. Disclaimer: this oversimplified code is designed to illustrate the basic mechanics of this type of workflow. It is *not* to be considered ideal, p...
techneilogy.blogspot.com
TechNeilogy: March 2011
http://techneilogy.blogspot.com/2011_03_01_archive.html
Tuesday, March 1, 2011. More on Significant Whitespace (in F#, Python, Lua, and Ruby). Since I want to add it to my coding “Room of Requirement,” I decided to keep working on the indentation processor a bit and make it more general. So here is a version that uses an interface to do dependency injection. (And as always, the code and information here are presented "as-is" and without warranty or implied fitness of any kind; use at your own risk.). There are a couple of things to note:. Last, I apologize fo...
techneilogy.blogspot.com
TechNeilogy: February 2012
http://techneilogy.blogspot.com/2012_02_01_archive.html
Tuesday, February 28, 2012. Date of Easter in JavaScript. A couple of years ago, I posted source code in F# for calculating the date of Easter. Well, that time of year is here again, but this time around I'll post a JavaScript example. As before, the method is from Butcher's Ecclesiastical Calendar (1876). I present it in the form given in Peter Duffett-Smith's. Practical Astronomy With Your Calculator. Function easterForYear (year) {. Var a = year % 19;. Var b = Math.floor(year / 100);. There are good i...
techneilogy.blogspot.com
TechNeilogy: August 2010
http://techneilogy.blogspot.com/2010_08_01_archive.html
Monday, August 30, 2010. F#, Fuzzy Logic, WPF, and Tomatoes! This is my 100th blog post, and to celebrate, I’m pulling out all the stops. This example will combine F#, fuzzy logic, WPF, and tomatoes! Below is the application with the window reduced a bit to fit the blog. In real life, it’s more fun to run it full screen. This is a WPF application, so it will require a number of additional steps when making it a Visual Studio project:. And that’s it! I have the following libraries referenced. Make them lo...
techneilogy.blogspot.com
TechNeilogy: September 2010
http://techneilogy.blogspot.com/2010_09_01_archive.html
Monday, September 27, 2010. F# Computation Expressions, Yield/For Mechanics. Today’s episode of the ongoing computation expression saga features Yield/YieldFrom and For. One encounters fewer examples of these than of Bind/Return, though in most respects their operation is every bit as fundamental. 1) Prepending a yielded item to an ongoing sequence. This is the basic yield operation. 2) Combining a two sequences. This is the yield! Combine (a,b) =. Combine (a,b) =. Combine (a,b) =. Append a (Seq . The Fo...
techneilogy.blogspot.com
TechNeilogy: December 2014
http://techneilogy.blogspot.com/2014_12_01_archive.html
Monday, December 22, 2014. I just had a thought. I'm sure it's one of those things everybody but me has been doing for years:. At the end of the day, leave an info/warning/error in the test code explaining what the next step should be. That way, instead of staring numbly at the screen for fifteen minutes in the morning, while you wait for the coffee to kick in, you can just run the latest test and follow your own orders! Subscribe to: Posts (Atom). View my complete profile. AI, NLP and ML.