Updates from March, 2008 Toggle Comment Threads | Keyboard Shortcuts

  • Tyler 10:44 am on March 15, 2008 Permalink
    Tags: , , push jerk   

    CrossFit: Mar 15 / 2008 – Max Effort Push Jerk 

    Laura: 105# – PR
    Tyler: 175# – PR

    I felt like junk and Laura took it easy because she has 2 ringette games later.

     
  • Tyler 11:59 pm on March 14, 2008 Permalink  

    Tweets on 2008-03-14 

    • New office == no blackberry reception. sad face. #
    • @dpp – Lunch? it’s 1:30pm… I would have passed out by now without food. #

    Powered by Twitter Tools.

     
  • Tyler 11:59 pm on March 13, 2008 Permalink  

    Tweets on 2008-03-13 

    • Laura is at a Bon Jovi concert, so I’m coding. w00p. #
    • @AccordionGuy – what’s the new role? #
    • Wow, Xcode is way better to use now, go Apple. #
    • @AccordionGuy – sounds like a perfect fit for you… #

    Powered by Twitter Tools.

     
  • Tyler 8:28 pm on March 13, 2008 Permalink  

    toronto trends 

    Slow smoked ribs at Cluck Grunt and Low

    Now that I spend a chunk of most mornings and evenings on the public transit, I find myself doing a lot of people watching. I used to just close my eyes and nap it out while I was commuting from Scarborough, but now that I’ve moved downtown, the fauna on the TTC is typically too interesting to ignore. I have noticed a few trends, though …

    (More …)

     
  • Tyler 11:59 pm on March 12, 2008 Permalink  

    Tweets on 2008-03-12 

    • Everton needs a big game today to stay alive in the UEFA cup… C’mon Toffees! #

    Powered by Twitter Tools.

     
  • Tyler 8:07 pm on March 12, 2008 Permalink
    Tags: ,   

    CrossFit: Mar 12 / 2008 – Burpees + Hang Power Cleans 

    19-16-13-10-7-4 reps of:
    - Burpess
    - 95# Hang Power Cleans

    11:23

    I also did a muscle-up with a 25# weight vest. Ya, I’m great!

     
  • Tyler 11:59 pm on March 11, 2008 Permalink  

    Tweets on 2008-03-11 

    • @timburks and @dpp have one thing (at least) in common, they know how to build a community. #
    • @timburks – I think you’re doing a good job, kicking out as much code as you do and being active on google group. #
    • @importantshock – y #

    Powered by Twitter Tools.

     
  • Tyler 3:03 pm on March 11, 2008 Permalink
    Tags: gravatars, , ,   

    Gravatars and Liftweb. 

    Liftweb and Gravatars together at last.

    Here’s the snippet:
    package net.liftweb.example.snippet

    import net.liftweb.example.model._
    import scala.xml.{NodeSeq, Text, Group, Node, Elem}
    import net.liftweb.http._
    import net.liftweb.http.S
    import net.liftweb.mapper._
    import net.liftweb.http.S._
    import net.liftweb.util.Helpers._
    import net.liftweb.util._
    import java.util.Locale
    import net.liftweb.sitemap._
    import net.liftweb.sitemap.Loc._
    import java.security._

    // gravatar_id - MD5 sum of your email address
    // size - image size
    // rating - rating of the image, let's start with "G" which is also the default

    class Gravatar {
    val theUser: User = User.currentUser.openOr(new User)

    private def getMD5(s: String): String = {
    val m = MessageDigest.getInstance("MD5")
    m.update(s.getBytes(),0,s.length())
    BigInt(1,m.digest()).toString(16)
    }

    def getGravatar(xhtml: NodeSeq): NodeSeq = {
    var src = "http://www.gravatar.com/avatar.php?gravatar_id=" + getMD5(S.attr("e").openOr(theUser.email))
    src = src + "&size=" + S.attr("s").openOr("42")
    src = src + "&rating=" + S.attr("r").openOr("G")

    <img src={src}/>
    }

    And here’s how to use it in your templates:

    <lift :Gravatar.getGravatar e="email address" s="80" r="G" />

     
  • Tyler 11:59 pm on March 10, 2008 Permalink  

    Tweets on 2008-03-10 

    • I have 2 github invites remaining thanks to @importantshock… anyone? Bueller? #
    • /lift/ + gravatars… ya! #

    Powered by Twitter Tools.

     
  • Tyler 11:59 pm on March 9, 2008 Permalink  

    Tweets on 2008-03-09 

    • jquery ui datepicker FTW! – working out well (http://ui.jquery.com/) #
    • My driveway has a sheet of 6 inch thick ice on it. Make that *had.* Smashy smashy :) #
    • @importantshock – I can haz github invite? #
    • @importantshock tyler dot weir at gmail dot com #
    • @importantshock – Thanks! #

    Powered by Twitter Tools.

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel