recursive.codes


The Personal Blog of Todd Sharp

Posts tagged 'Groovy'

Creating Your First Website On Raspberry Pi

In this post we'll create and deploy a simple website on the Raspberry Pi.  There are a few prerequisites that I've covered in some previous posts...


Brain Teaser: Calculate Max Stock Profit

I came across an interesting puzzle to solve via interviewcake: Suppose we could access yesterday's stock prices as an array, where:The values are the...


Brain Teaser: Split An Array Into Equal Parts

Here's another challenge that I came across recently:Given an array of integers greater than zero, find if it is possible to split it in two (without reordering...


Brain Teaser: Find The Missing Number

When I first saw this challenge I thought it would be a lot more difficult than it turned out to be.  Here is the challenge:Here's a list with numbers...


Getting Started With The Spark Java Framework

I published a post last week showing how to use Grails to create a website on the Raspberry Pi.  After some feedback and conversations about whether...


Spark Java Views Using Thymeleaf

The next step in using Spark Java with Groovy that I would like to look at is getting data into a view.  With Grails, we're used to using GSP pages...


Spark Java Views Using Thymeleaf - Layouts

In the last post we looked at plugging in Thymeleaf into a Spark Java application for view rendering.  The concept was pretty simple: using the Thymeleaf...


Spark Java Views Using Thymeleaf - SiteMesh Like Layouts

In the last post we looked at how Thymeleaf handles reusable layouts.  A reddit user enlightened me about an open source 'dialect' for Thymeleaf that...


Spark Java Views With Apache FreeMarker

In the last few posts I took a look at using Thymeleaf for view rendering and templating with Spark Java.  Thymeleaf has it's advantages and disadvantages...


Thymeleaf - Passing Variables From Child To Layout

Just a quick update after my last post to clarify things a bit.  I mentioned in that post my dismay regarding the inability to pass model variables...