Displaying articles with tag

OSCON Sessions, Day 2

Posted by hank, Fri Jul 25 09:44:00 UTC 2008

Oh man, what a day.

I attended quite a few talks, grabbed a lot of swag, and entered a few contests. I ended up buying the Arduino Starter Kit from MAKE so I can do some awesome embedded Ruby like I saw at FOSCON. It looks really fun - I can’t wait to try it out.

The talks I attended were half-way decent, but I learned a lot more on the first day.

Hadoop and EC2

A good overview of how one can use Amazon’s S3 and EC2 services to cheaply process and store data on a pretty large scale. The New York Times digitized hundreds of years of articles in a single day using these services and some awesome C++ code.

Open standards in cloud computing

This ended up being a marketing talk. I don’t know what it had to do with cloud computing, and I didn’t stick around to find out.

Ruby 1.9: What to Expect

An awesome overview of all the new stuff in Ruby 1.9 given by Sam Ruby. I had no idea they were changing so much, and this was a good dive with code examples into that. There was some discussion among everyone in the middle on whether for loops should work like .each blocks with regards to scope. I happen to disagree with what ended up being the popular thought on this subject. Most were advocating that a for loop constitutes a block, and that scope variables and iterators should be localized inside of it. This is contrary to almost every language, which I brought up using the example of C. Yet, when you iterate with .each, you immediately define a block and a scoped iterator, which, if it has a conflicting name with the outside world, it doesn’t matter since that’s out of scope. The only thing this changes is the value of a variable outside after the loop finishes. I think leaving the ability to modify a variable external to the loop is very convenient - in summary, leave it how you’ve done it in Ruby 1.9 already.

Ubuntu on the Go: Subnotebook and MID technologies

This was an interesting session on where Canonical is taking mobile technology, and what the community can do to help. They seem to have a pretty neat subnotebook coming out soon.

Python, C++, and SWIG

This could have been one of the best talks, but the speed at which it was given and the lack of enthusiasm in the presentation left most of us either bored or unfulfilled at the end of the talk. He spent the first half explaining what Python and C++ were, then he got to what SWIG is. The end was a quick dive into an extremely complicated bunch of files that didn’t help very much. In the future, it would be helpful to go to a SWIG talk that details how to make a simple Python extension with SWIG. I may have to throw that one together myself…

I also attended the tail end of Designing Political Web Apps for MoveOn.org, but I didn’t take any notes.

We ended up going to dinner at Widmer Brothers, which was pretty awesome. I had the Pork Schnitzel, a very tender piece of meat if I do say so myself, along with 2 Full Nelson IPAs. Afterwards, we caught the bus from the convention center to BeerForge and the SourceForge Community Choice Awards party. Beerforge was a blast. I ended up talking to Jean-Baptiste Kempf, one of the developers of VLC, for hours - a truly great guy. I learned a lot about France and the French people, but also about VLC. Apparently, you can use VLC from the command line much like mplayer, which I did not know. Yet, he explained that they removed Directshow support from VLC in Linux in favor of open source alternatives, which in part I can understand. Yet, the only codec available that is able to smoothly play 1080p h264 video is closed source (CoreAVC), and until the ffmpeg avc codec catches up, I’ll have to continue using mplayer. When I can play everything back smoothly with VLC, I may consider switching.

The beer at BeerForge was pretty good - I had the IPA. SourceForge had some sort of mixed drink which wasn’t too great. All in all, a good day, but now I’m dehydrated…

Tags:

OSCON Sessions, Day 1

Posted by hank, Thu Jul 24 04:08:00 UTC 2008

I went to 5 sessions today, and I was pleasantly surprised by most of them.

CouchDB

CouchDB is a distributed non-relational database written in Erlang. It is unique in that its main query interface is simply HTTP REST, and for every UPDATE, it simply creates a new version of the row. Additionally, you can request the entire history of a row very simply.

Hypertable

An open-source implementation of Google’s bigtable. Hypertable uses novel methods such as Bloom filters to significantly decrease query times, as well as smart messaging to distribute a database across many nodes. It is also non-relational.

Creating and supporting Free Software in Africa

A group of CS professors hailing from Africa have gotten together to create a community that fosters creativity and innovation from people in Africa. People in first-world countries can participate by acting as mentors, or directly contribute to the projects involved. Chisimba is an open-source MVC framework for rapid application development. I am very interested in contributing to this project.

LucidDB

I thought going in that this would be somehow in the same ballpark as Hypertable and CouchDB, but I was disappointed. Basically, they are using compression and some fairly neat indexing to speed up traditional database queries. The main problem is that they only have a Java API, which completely turned me off after 30 minutes. Before that, it seemed like they were getting some pretty promising results. If they add some more APIs in the future, this may be another one to take a look at.

A History of Failure

An awesome talk by Paul Fenwick from Australia, generally detailing failures in computer science and engineering going back into the 20th century and even back to Roman times. This was a wonderful presentation - he’s a really good speaker - and it poked a lot of fun at New Zealand.

All in all, I must say that this OSCON is much better than last year’s at least according to what I was looking for in the sessions. The exhibit hall is also very good this year - I’m pretty loaded down with swag at the moment.

I know someone who would have gotten a kick out of Temporally Quaquaversal Virtual Nanomachine Programming In Multiple Topologically Connected Quantum-Relativistic Parallel Timespaces…Made Easy! had they been here. He needs to come next year (you know who you are..)

Tonight, I also attended FOSCON 4: Cooking with Ruby. This was a spectacular event hosted by Cubespace. I have to say that the live coding competition was a great spectacle, and held everyone’s attention for hours. It was an epic battle between Symfony, Rails, Smalltalk/Seaside, and Drupal. The rankings ended up being the following:

  1. Rails
  2. Drupal
  3. Symfony
  4. Smalltalk/Seaside

The presentations were good as well for the most part (notes here). AND THEY HAD BEER! I had some of the best keg beer imaginable - I thought it would be crap like you usually get out of a keg, but this was real quality Northwestern hopped pale ale. My cup says Bridgeport Ales, so I’ll have to investigate. If anyone knows the exact beer that was available in the left-side keg tonight, I’d appreciate a comment. I also met some cool people, some of which are all into XMPP and ejabberd. I may have to check all of that out now…

Tags:

Pradipta's Rolodex Epic Conclusion

Posted by hank, Fri Jul 18 19:05:00 UTC 2008

If you don’t already know about Pradipta’s Rolodex, read up here

Here’s the epic apology email from THE MAN HIMSELF!:

Hi All, First of all I just wanted to say I apologize for the emails I sent. As of today I promise to stop the Email marketing campaigns. And I do believe it was a very…very..stupid mistake, this is the result of working late. Also, I am deeply amazed of how talented you guys are. I mean seriously all this happened in less than 24 hours. I hope this mishap would create a benefit for all of us. I understand this is fun for a lot of you, however, people are getting angry so if we could keep everything under the google groups that would be most appreciated. http://groups.google.com/group/pradiptas-rolodex?hl=en If anyone wants to contact me feel free to contact this new email pradipta416@gmail.com. Humbly Sorry, Pradipta (Max) Archiputra P.S: this time I used BCC. :)

Tags:

DNS for bash

Posted by hank, Sun Mar 30 21:16:00 UTC 2008

Today, I decided I wanted a network service that propagated variables and aliases to every login shell that subscribed to it. This is dangerous on a large scale, but perfectly acceptable on my small home network where everyone trusts everyone else.

First, I got Camping installed, bringing back fond memories of Ruby development. I then copied off the blog example, and created TreeHugger, a 427 line script that provides a web interface to edit the variables, and a plain text output for the shells to source.

This script, when run, allows some simple MVC actions to an sqlite3 database.

Example Screenshot

As you can see, I have some aliases here I want to send to all the subscribing hosts. Eventually, I want to add some detection functionality to the database (mostly reverse DNS lookups for host rule referencing). I just have to access /out to get my desired output:


# Treehugger Configuration
# Aliases
alias ai='sudo apt-get install'
alias aup='sudo apt-get update'
alias aug='sudo apt-get upgrade'

# Environment Variables

Now, to get this into bash. I looked into making the date command spit out pretty unique timestamps. Turns out you can do this with the nanoseconds format:


$ date +%s%N
1206926780157462141

I made it so wget saves the treehugger config to a tempfile using the somewhat random seed above as a filename suffix, and then I have my shell source it:


FILENAME=/tmp/treehugger-`date +%s%N`; 2>/dev/null wget -O $FILENAME  http://rofl.who/treehugger/out && source $FILENAME && rm $FILENAME

And now I have nice aliases on my laptop served up from my desktop as fresh as the shell:


hank@davros:~$ alias
alias ai='sudo apt-get install'
alias aug='sudo apt-get upgrade'
alias aup='sudo apt-get update'
alias ls='ls --color=auto'

Tags:

Photoslice in Bluecloth and Mephisto

Posted by hank, Sat Jan 05 16:49:00 UTC 2008

So, I found this today, and it is awesome. I wanted it in Bluecloth so I could use it in Mephisto. Here’s how.

First, I needed to make it so I could still do normal images, but turn on coolness if I want. Here’s the goal I came up with for the grammar:


[![](thumburl.jpg)](imageurl.jpg "Scrolly Text at top" "photoslice")

Here’s the first test, with a single image:

And now a set with a namespace:

I did it by simply modifying the regex and image url parsing function in BlueCloth like so:

  InlineLinkRegex = %r{
    \(            # Literal paren
      [ ]*        # Zero or more spaces
      <?(.+?)>?     # URI = $1
      [ ]*        # Zero or more spaces

      (?:         # title
        ([\"\'])    # Opening quote char = $2
        (.*?)     # Title = $3
        \2        # Matching quote char
      )?          # Title is optional
      [ ]*        # Zero or more spaces
      (?:         # rel
        ([\"\'])    # Opening quote char = $2
        (.*?)     # rel = $5
        \4        # Matching quote char
      )?          # rel is optional
    \)
    }x

    # and later...

        # ...or for an inline style second part
        elsif @scanner.scan( InlineLinkRegex )
          url = @scanner[1]
          title = @scanner[3]
          rel = @scanner[5]
          @log.debug "  Found an inline link to %p" % url

          text += %{<a href="%s"} % escape_md( url )
          if title
            title.gsub!( /"/, "&quot;" )
            text += %{ title="%s"} % escape_md( title )
          end
          if rel
            rel.gsub!( /"/, "&quot;" )
            text += %{ rel="%s"} % escape_md( rel )
          end

I also added the following to my Mephisto theme layout, in the head section:


   <!-- Photoslice -->
   <link rel="stylesheet" type="text/css" href="/javascripts/photoslice/style.css" />
   {{ "photoslice/functions.js" | javascript }} 

Once again, Ruby is awesome. And so is Markdown.

Tags:

Flash Chart Testing

Posted by hank, Sun Oct 21 23:00:00 UTC 2007

I’m testing a flash chart plugin based on this.

Continue Reading Tags:

Site5 promo code for October

Posted by hank, Sat Oct 20 00:05:00 UTC 2007

You can still get 13% off a new Site5 7.5TB/750GB/$7.50 Plan until November! These guys are a great rails host. Get this deal while it’s hot!

Code: HALLOWEEN2007

Go Now!

Tags:

A Beer Atom Feed

Posted by hank, Fri Oct 12 23:10:00 UTC 2007

So, after reviewing over 50 beers on BeerAdvocate, I’ve come to the conclusion that them not having an RSS or Atom feed of my most recent reviews available is stupid. So, I decided to make my own by scraping their HTML today. I started off by pumping some random code into irb that included Hpricot and Builder. Ruby rocks for doing stuff like this.

Continue Reading Tags:

New Mephisto Post Pinger List

Posted by hank, Sat Oct 06 13:06:00 UTC 2007

Today I found a nice ping list for Wordpress. I decided to put it into my copy of the Mephisto Post Pinger plugin. I’m not sure if it works yet, but this post will give it a good test.

Continue Reading Tags: