Java Code Geeks » Jason Baldridge http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Mon, 20 Apr 2015 22:00:09 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.1 Using Twitter4j with Scala to perform user actionshttp://www.javacodegeeks.com/2013/02/using-twitter4j-with-scala-to-perform-user-actions.html http://www.javacodegeeks.com/2013/02/using-twitter4j-with-scala-to-perform-user-actions.html#comments Wed, 27 Feb 2013 20:00:42 +0000 http://www.javacodegeeks.com/?p=9155 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 purpose of this functionality is perhaps to create interfaces for Twitter like TweetDeck, but it can also be used to create bots that take automated actions ...

 

]]>
http://www.javacodegeeks.com/2013/02/using-twitter4j-with-scala-to-perform-user-actions.html/feed/ 0
Using twitter4j with Scala to access streaming tweetshttp://www.javacodegeeks.com/2013/02/using-twitter4j-with-scala-to-access-streaming-tweets.html http://www.javacodegeeks.com/2013/02/using-twitter4j-with-scala-to-access-streaming-tweets.html#comments Thu, 14 Feb 2013 08:00:15 +0000 http://www.javacodegeeks.com/?p=8560 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 for accessing Twitter using your programming language of choice. In this tutorial, I walk-through basic setup and some simple uses of the twitter4j library with Scala. ...

 

]]>
http://www.javacodegeeks.com/2013/02/using-twitter4j-with-scala-to-access-streaming-tweets.html/feed/ 2
A walk-through for the Twitter streaming APIhttp://www.javacodegeeks.com/2013/02/a-walk-through-for-the-twitter-streaming-api.html http://www.javacodegeeks.com/2013/02/a-walk-through-for-the-twitter-streaming-api.html#comments Fri, 08 Feb 2013 20:00:36 +0000 http://www.javacodegeeks.com/?p=8346 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 to use the Twitter streaming API, a RESTful service that allows you to pull tweets in real time based ...

 

]]>
http://www.javacodegeeks.com/2013/02/a-walk-through-for-the-twitter-streaming-api.html/feed/ 1
Unix pipelines for basic spelling error detectionhttp://www.javacodegeeks.com/2013/02/unix-pipelines-for-basic-spelling-error-detection.html http://www.javacodegeeks.com/2013/02/unix-pipelines-for-basic-spelling-error-detection.html#comments Mon, 04 Feb 2013 17:00:04 +0000 http://www.javacodegeeks.com/?p=8055 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 a line of code. In my Applied NLP class today, I show how one can get a high-confidence dictionary out of a body ...

 

]]>
http://www.javacodegeeks.com/2013/02/unix-pipelines-for-basic-spelling-error-detection.html/feed/ 0
Processing JSON in Scala with Jerksonhttp://www.javacodegeeks.com/2012/05/processing-json-in-scala-with-jerkson.html http://www.javacodegeeks.com/2012/05/processing-json-in-scala-with-jerkson.html#comments Mon, 14 May 2012 13:00:00 +0000 http://www.javacodegeeks.com/2012/10/processing-json-in-scala-with-jerkson.html 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 Object Notation) is more widely used for data interchange, in part because it is less verbose and better captures the core data structures (such as lists and ...

 

]]>
http://www.javacodegeeks.com/2012/05/processing-json-in-scala-with-jerkson.html/feed/ 0
Scala Basic XML processinghttp://www.javacodegeeks.com/2012/05/scala-basic-xml-processing.html http://www.javacodegeeks.com/2012/05/scala-basic-xml-processing.html#comments Mon, 07 May 2012 10:00:00 +0000 http://www.javacodegeeks.com/2012/10/scala-basic-xml-processing.html 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” of the tags, attributes, and their relationship to each other (e.g. using DTD’s). This contrasts with HTML, which can have elements that don’t close (e.g. <p>foo<p>bar rather than <p>foo</p><p>bar</p>) ...

 

]]>
http://www.javacodegeeks.com/2012/05/scala-basic-xml-processing.html/feed/ 0
Student Questions about Scala, Part 2http://www.javacodegeeks.com/2012/03/student-questions-about-scala-part-2.html http://www.javacodegeeks.com/2012/03/student-questions-about-scala-part-2.html#comments Tue, 06 Mar 2012 15:52:00 +0000 http://www.javacodegeeks.com/2012/10/student-questions-about-scala-part-2.html 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, starting off with one basic question that didn’t make it into the first post. Basic Question Q. When I was working with Maps for ...

 

]]>
http://www.javacodegeeks.com/2012/03/student-questions-about-scala-part-2.html/feed/ 0
Student Questions about Scala, Part 1http://www.javacodegeeks.com/2012/02/student-questions-about-scala-part-1.html http://www.javacodegeeks.com/2012/02/student-questions-about-scala-part-1.html#comments Mon, 27 Feb 2012 12:51:00 +0000 http://www.javacodegeeks.com/2012/10/student-questions-about-scala-part-1.html 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, I figured I’d take a page from Brian Dunning’s playbook on his Skeptoid podcast (highly recommended) when he takes student questions. So, I had the students ...

 

]]>
http://www.javacodegeeks.com/2012/02/student-questions-about-scala-part-1.html/feed/ 0
Variations for computing results from sequences in Scalahttp://www.javacodegeeks.com/2012/02/variations-for-computing-results-from.html http://www.javacodegeeks.com/2012/02/variations-for-computing-results-from.html#comments Fri, 17 Feb 2012 19:25:00 +0000 http://www.javacodegeeks.com/2012/10/variations-for-computing-results-from-sequences-in-scala.html 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 of the major sources of confusion with regard to this question is that a for expression in Scala in not the equivalent of for loops ...

 

]]>
http://www.javacodegeeks.com/2012/02/variations-for-computing-results-from.html/feed/ 1
Scala Tutorial – code blocks, coding style, closures, scala documentation projecthttp://www.javacodegeeks.com/2011/11/scala-tutorial-code-blocks-coding-style.html http://www.javacodegeeks.com/2011/11/scala-tutorial-code-blocks-coding-style.html#comments Wed, 16 Nov 2011 13:11:00 +0000 http://www.javacodegeeks.com/2012/10/scala-tutorial-code-blocks-coding-style-closures-scala-documentation-project.html 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 of the Computational Linguistics course I’m creating these for. Additionally you can find this and other tutorial series on the JCG Java Tutorials ...

 

]]>
http://www.javacodegeeks.com/2011/11/scala-tutorial-code-blocks-coding-style.html/feed/ 0