You may have heard of Twitter’s new Lists feature. If you don’t see
the feature, then hopefully Twitter will turn it on for you soon.
I have a large list of Scala people: http://twitter.com/dcbriccetti/scala
Should you be on it? If so, please send me your Twitter handle
privately.
Michael Galpin has this list: http://twitter.com/michaelg/scala-programmers
Tyler Weir has this list: http://twitter.com/tylerweir/scala
If I may toot TalkingPuffin’s horn a bit, here is a video of
TalkingPuffin showing all of Robert Scobleizer’s lists on a 30 inch
screen:
http://www.youtube.com/watch?v=NUVDP5sX2rA
And so that I don’t end the post with no Scala code, here’s the simple
window tiler that used to place all 15 lists. Note the use of
java.util.concurrent.atomic.AtomicInteger, since all the lists are
fetched in parallel.
class Tiler(numTiles: Int) {
val dim = Toolkit.getDefaultToolkit().getScreenSize()
val cols = Math.sqrt(numTiles.toDouble).ceil.toInt
val h = dim.height / cols
val w = dim.width / cols
var index = new AtomicInteger(0)
def next: Point = {
val i = index.getAndIncrement
val row = i / cols
val col = i % cols
new Point(col * w, row * h)
}
}