About Jason Baldridge
List/Grid Author Archives Subscribe to the RSS feed of Jason Baldridge

Using Twitter4j with Scala to perform user actions
Introduction My previous post showed how to use Twitter4j in Scala to access Twitter streams. This post shows how to control a Twitter user’s actions using Twitter4j. The primary ...

Using twitter4j with Scala to access streaming tweets
Introduction My previous post provided a walk-through for using the Twitter streaming API from the command line, but tweets can be more flexibly obtained and processed using an API ...

A walk-through for the Twitter streaming API
Introduction Analyzing tweets is all the rage, and if you are new to the game you want to know how to get them programmatically. There are many ways to do this, but a great start is ...

Unix pipelines for basic spelling error detection
Introduction We can of course write programs to do most anything we want, but often the Unix command line has everything we need to perform a series of useful operations without writing ...

Processing JSON in Scala with Jerkson
Introduction The previous tutorial covered basic XML processing in Scala, but as I noted, XML is not the primary choice for data serialization these days. Instead, JSON (JavaScript ...

Scala Basic XML processing
Introduction Pretty much everybody knows what XML is: it is a structured, machine-readable text format for representing information that can be easily checked for the “grammaticality” ...

Student Questions about Scala, Part 2
Preface This is the second post answering questions from students in my course on Applied Text Analysis. You can see the first one here. This post generally covers higher level questions, ...

Student Questions about Scala, Part 1
Preface I’m currently teaching a course on Applied Text Analysis and am using Scala as the programming language taught and used in the course. Rather than creating more tutorials, ...

Variations for computing results from sequences in Scala
Introduction A common question from students who are new to Scala is: What is the difference between using the map function on lists, using for expressions and foreach loops? One ...

Scala Tutorial – code blocks, coding style, closures, scala documentation project
Preface This is part 12 of tutorials for first-time programmers getting into Scala. Other posts are on this blog, and you can get links to those and other resources on the links page ...






