June 2008
5 posts
Concise description of OAuth (< 300 words)
“I’d like to give a site access to my Google contacts, but I don’t want to give them my google username and password.” OAuth solves this and similar problems. OAuth allows one website to access a users content from another website without needing their username and password. In OAuth terminology, the site that wants to get the content is called the consumer, the site that has the...
three one-legged people working together cannot outrun one person with two legs
Importance of spaces in scala function by-name...
I spent some time today having syntax problems with scala function by-name function declarations. It turns out that a space after the colon is critical. In the end someone on the scala irc channel at irc.freenode.net. by the name of ‘mapreduce’ helped me out (thanks!).
This session should clarify what works and what doesn’t work:
scala> def some1 [T] (interval :int) (f :()...
How to stop scala from quoting strings in XML...
robin_: hi - does anyone know how to stop scala from turning a " into an " when it's included in an XML expression?
robin_: e.g. val a = I include "quotes"
robin_: turns into I include "quotes"
robin_: and what I want is the literal I include "quotes"
dobblego: scala> xml.Unparsed("hello\" there")
dobblego: res8: scala.xml.Unparsed = hello" there
robin_: ah - nice - thank you very much
dobblego: scala> { xml.Unparsed("I include \"quotes\"") }
dobblego: res9: scala.xml.Elem = I include "quotes"
robin_: thanks for your help
dobblego: np
I’ve been using Apple Numbers to help a professor friend of mine with grade calculations. It turns out that if you import a sheet from Excel, it can often get into a state where the performance becomes unacceptable - despite the actual functionality appearing to be fine.
At one point, entering a new number into a sheet with a single table of around 2000 numeric cells and no formulae at...