##MixedTweets
We will see how to mix 2 twitter searches and push the results to the browser in real time.
First, checkout this mini project
To try it, you need to install Play 2.0
###Controller
| #!/bin/bash | |
| # | |
| # Startup script for the Supervisor server | |
| # | |
| # Tested with CentOS release 6.6 | |
| # | |
| # chkconfig: 2345 85 15 | |
| # description: Supervisor is a client/server system that allows its users to \ | |
| # monitor and control a number of processes on UNIX-like \ | |
| # operating systems. |
| package main | |
| import ( | |
| "database/sql" | |
| "github.com/astaxie/beego" | |
| "github.com/astaxie/beego/orm" | |
| _ "github.com/mattn/go-sqlite3" | |
| ) | |
| type User struct { |
| package main | |
| import ( | |
| "github.com/astaxie/beego" | |
| "github.com/astaxie/beego/orm" | |
| _ "github.com/mattn/go-sqlite3" | |
| ) | |
| type User struct { | |
| Id int `orm:"column(id);auto"` |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.27/angular.min.js"></script> | |
| </head> | |
| <body> | |
| <p>Try to change the names.</p> |
| class Fruit(name: String, age: Int){ | |
| def getColor() = Fruit.color | |
| def setColor(newColor: String) = { | |
| Fruit.color = newColor | |
| } | |
| } | |
| object Fruit{ | |
| var color = "yellow" |
| # Downloading Oracle JVM without browser | |
| Oracle requires you to accept its licence agreement before downloading its JVM. | |
| It's a pain for those of us who do automation, native packages, Jenkins JVM deployment on slave... | |
| I used Firefox and Firebug to sniff network exchanges. | |
| ## HTTP Request : | |
| GET /otn-pub/java/jdk/6u39-b04/jdk-6u39-linux-i586.bin?AuthParam=1359814101_9685f919f8b3113a89574ec4570d47b2 HTTP/1.1 |
##MixedTweets
We will see how to mix 2 twitter searches and push the results to the browser in real time.
First, checkout this mini project
To try it, you need to install Play 2.0
###Controller