examples

Source Code to The Busy Coder's Guide To Advanced Android Development alvin January 24, 2017 - 4:39pm

This link has the source code for the online book, The Busy Coder's Guide To Advanced Android Development.

ScalaFX tutorials and examples alvin July 26, 2016 - 8:09am

If you’re interested in ScalaFX, here’s a link to their brief documentation, their tutorials on Github, and here’s a link to the ScalaFX versions of the Pro JavaFX book examples.

Simple iTunes AppleScript script examples alvin June 28, 2016 - 10:00am

If you’ve never used AppleScript, here are two iTunes AppleScript examples to get you going. First, This one tells iTunes to play the playlist named “My Favorites”:

tell application "iTunes"
    play playlist "My Favorites"
end tell

That script starts playing a random song from that playlist. If you want to start by playing the first song of that playlist, this script will do the trick:

A gallery of 130+ Gimp filters/effects

There are times when I work on images a lot with Gimp, and then there are times when I don’t work with Gimp for a month or two. When I don’t work with Gimp a lot, I tend to forget about all of the different things I can do with. Therefore, I have created this page as a “Gimp special effects cheat sheet” page to help remind me of all the cool things I can do with Gimp effects.

An introduction to Scala Types (from the Scala Cookbook) alvin June 21, 2015 - 1:14pm

This is an excerpt from the Scala Cookbook (partially modified for the internet). This is the introduction to Chapter 19, Types.

As you can tell from one look at the Scaladoc for the collections classes, Scala has a powerful type system. However, unless you’re the creator of a library, you can go a long way in Scala without having to go too far down into the depths of Scala types. But once you start creating collections-style APIs for other users, you will need to learn them.

Android: How to define Toolbars in XML (layout examples) alvin February 16, 2015 - 10:33am

As a quick reminder to self (and an example), you can easily create a Toolbar in Android. Here’s one example that shows a Toolbar defined in some XML layout code:

Methods on the Scala collections classes, organized by category alvin June 17, 2014 - 10:17am

When I wrote the Scala Cookbook, I gave each recipe and then each chapter my full attention. I thought that if I wrote each recipe as well as possible, and included important recipes in each chapter, well, I wanted each chapter to be worth the price of the entire book. That was my goal.

As a result of this effort -- and perhaps to the chagrin of my editor -- the Scala collections chapters ended up being 130 pages in length.

Sencha chart and graph examples alvin April 6, 2014 - 10:54am

I still have a hard time finding what I want on the Sencha website, so I’m trying to add links here to make their documentation and examples easier for me to find. Here are two examples of the charts and graphs that they offer. This first set of Sencha chart examples comes from this link:

Best Sencha Touch 2 docs and examples alvin September 22, 2013 - 12:12pm

I’ve said it before, so I’ll only say it again briefly: I don’t like the Sencha Touch 2 documentation, I think it could be much more organized, deeper, and with better examples. So, in short, here are some links to the best Sencha Touch 2 documentation I can find.

Sencha Touch Guides (lists UI components):

Play Framework Recipes alvin August 2, 2013 - 10:25am

Here’s the cover for my new, free PDF, Play Framework Recipes. (I obviously didn’t put much work into the cover, lol.) As the title implies, the book is a collection of cookbook-style recipes for the Play Framework. The book is about 80 pages in length, is currently available as a PDF, and will soon be available as a Kindle eBook. Here’s a link to more information on Play Framework Recipes.