collapse module

Duncan

offline 1 friend
joined on 05/21/05
last updated 12/12/07
collapse module

My Profile

Gender
Male
Age
30
Location
about me
You are not connected to Duncan
want to grow your network?
view more
collapse module

My Feed

Biomedics ethics are pushed further than ever with artifically replicated vaccine-supplies doled out by metrics all but the very very rich will accuse of classism and racism.



The cell phone will integrate more and more functions, (voice, photo, video, text, interactive) and still remain estranging and hard for my parents to understand.



And Duncan? He will become more concerned with the environment, and learn a little bit about plants.



What does your future look like?
Mon, December 26, 2005 - 10:37 PM permalink
My laptop fell off the bed (the only place I get consistent wireless access) and now Trope's guts make the sound "click click click" and deliver the message "Please insert Bootable Media" as though I could boot from more than one medium at a time.



Surprisingly, I'm feeling quite non-chalant about the whole thing. I got sick of going through all this work just to post FTP links to some tracks I'm listening to (though those will still work) and went ahead and created a ShoutCast station. Right now it's playing Dampen, which sounds (unsurprisingly?) like a toned-down (is that possible?) version of Notwist (note: unsurprisingly) One With the Freaks.



Who loves parentheses? Duncan does.
Sat, December 3, 2005 - 10:10 PM permalink
On a more positive note, I pooped out my first Ruby program to see what the language is like. What a lot less code than a similar C++ templated binary tree!



class BinaryTree
  # Instance variables
  @children
  @value
  @left
  @right

  attr_reader :value, :children

  def initialize()
    @children = 0
    @left     = nil
    @right    = nil
    @value    = nil
  end

  # Override to_s function for nice display
  # This binary tree displays as follows
  # If there is a left tree, the left tree is displayed wrapped in L()
  # The value of the current tree (head node) is displayed
  # If there is a right tree, the right tree is displayed wrapped in R()
  def to_s
    out = ""
    out += "L(#{@left.to_s}) "  unless @left == nil
    out += "#{@value}"
    out += " R(#{@right.to_s})" unless @right == nil
    return out
  end

  def insert(value)
    if @value == nil
      # If this is a tree with no current value, it simply stores
      # the value it has been passed.
      @value = value
    else
      # Otherwise, the tree determines which direction the new value should go.
      # If there is no tree to receive the value, one is created first.
      @children += 1
      if value <= @value
        @left = BinaryTree.new if @left == nil
        @left.insert(value)
      else
        @right = BinaryTree.new if @right == nil
        @right.insert(value)
      end
    end
  end
end




Of particular note, I love the unless operator. Ruby's loose typing and lax syntax are weird, but the language itself has some sweet constructs. (My real code is indented).



We are the knights who say nil!



Edit: Hey! I just learned about the
 tag!  Whitespace lives!
				
Fri, December 2, 2005 - 10:41 PM permalink
This is a minor complaint, but hey, I'm on a roll.



In doing my work, I often cut and paste code, images, URLs, etc... Why is it that in many so-called 'productivity' applications, there is a whole toolbar dedicated to these elementary functions?



Do any of you use these buttons?



Current Music: Kissogram - Girl In My Shower
Fri, December 2, 2005 - 10:35 PM permalink
The text-messaging craze is just beginning. These handy links are fun and fun!



Web Interfaces

Cingular Web-Interface

Cingular, formerly AT&T Wireless

Verizon Wireless

T-Mobile

Sprint



Script Interfaces (Have not tested which of these accept GET vs POST)

Modify these fields in the following URLs to customize your payload.

[_FROM_, _TO_, _SUBJECT_, _MESSAGE_, _CALLBACKNUMBER_, _YOUREMAIL_]



Cingular

Cingular, formerly AT&T Wireless

Verizon Wireless

T-Mobile

Sprint
Tue, November 29, 2005 - 10:47 AM permalink
originally published at Empioneer
 
members » Duncan link to this profile: http://people.tribe.net/duncanbeevers