Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Code01_tw
Code02_irc
Code03_irc2
Code04_poll
Code05_file
Code06_socket
Code07_cam
Code08_cam
LICENSE
README.md

README.md

Chapter 10

Chapter 10, Real-time Fugue, incorporates streamed data interactions from Twitter, Internet Relay Chat (IRC), and sockets.

This is the accompanying source code for Haskell Data Analysis Cookbook. Refer to the book for step-by-step explanations.

Recipes:

  • Code01: Streaming Twitter for real-time sentiment analysis
  • Code02: Reading IRC chat room messages
  • Code03: Responding to IRC messages
  • Code04: Polling a web server for the latest updates
  • Code05: Detecting real-time file directory changes
  • Code06: Communicating in real time through sockets
  • Code07: Detecting faces and eyes through a camera stream
  • Code08: Streaming camera frames for template matching

How to use

Setting up the environment

Install the Haskell Platform.

$ sudo apt-get install haskell-platform

Alternatively, install GHC 7.6 (or above) and Cabal.

$ sudo apt-get install ghc cabal-install

Running the code

A Makefile is provided in each recipe. Compile the corresponding executable by running make.

$ make

Run the resulting code. For example,

$ ./Code01

To clean up the directory:

$ make clean