Devchat.tv Episode Roundup

Devchat.tv Episode Roundup

Download on the App Store

All Devchat.tv Episode Roundup episodes

  • Followers and Following
    In order to get someone a timeline in JotRod, we need followers and following lists to compile the Jots from. This means that we need to add a new ColumnFamily called Followers and another one called Following. We don't have the joins capability from relational databases to do this for us.
    I'm going to hijack the User model's database connection to create the ColumnFamilies. (We don't have migrations, yet.) Here's what I ran in the rails console:
    cf_def = CassandraThrift::CfDef.new(:keyspace => "JotRod", :name => "Followers")
    User.connection.add_column_family(cf_def)
    cf_def = CassandraThrift::CfDef.new(:keyspace => "JotRod", :name => "Following")
    User.connection.add_column_family(cf_def)
    Now that we have the ColumnFamilies, I want to have syntax like this to define the relationships on the User model:
    list :followers, :User
    list :following, :User
    This should provide the following API:
    #followers - returns an array of users as specified from the Followers ColumnFamily
    #followers<<(user)  - adds the user to the User object's followers list if it's not already there
    and a similar API for following.
    Sandra's repository
    JotRod's repository
    Download 680 MB
    Download (iPod & iPhone) 165 MB
    Take the 2011 Readers Survey
    0 min
  • Followers and Following
    In order to get someone a timeline in JotRod, we need followers and following lists to compile the Jots from. This means that we need to add a new ColumnFamily called Followers and another one called Following. We don't have the joins capability from relational databases to do this for us.
    I'm going to hijack the User model's database connection to create the ColumnFamilies. (We don't have migrations, yet.) Here's what I ran in the rails console:
    cf_def = CassandraThrift::CfDef.new(:keyspace => "JotRod", :name => "Followers")
    User.connection.add_column_family(cf_def)
    cf_def = CassandraThrift::CfDef.new(:keyspace => "JotRod", :name => "Following")
    User.connection.add_column_family(cf_def)
    Now that we have the ColumnFamilies, I want to have syntax like this to define the relationships on the User model:
    list :followers, :User
    list :following, :User
    This should provide the following API:
    #followers - returns an array of users as specified from the Followers ColumnFamily
    #followers<<(user)  - adds the user to the User object's followers list if it's not already there
    and a similar API for following.
    Sandra's repository
    JotRod's repository
    Download 680 MB
    Download (iPod & iPhone) 165 MB
    Take the 2011 Readers Survey
    0 min
  • Followers and Following
    In order to get someone a timeline in JotRod, we need followers and following lists to compile the Jots from. This means that we need to add a new ColumnFamily called Followers and another one called Following. We don't have the joins capability from relational databases to do this for us.
    I'm going to hijack the User model's database connection to create the ColumnFamilies. (We don't have migrations, yet.) Here's what I ran in the rails console:
    cf_def = CassandraThrift::CfDef.new(:keyspace => "JotRod", :name => "Followers")
    User.connection.add_column_family(cf_def)
    cf_def = CassandraThrift::CfDef.new(:keyspace => "JotRod", :name => "Following")
    User.connection.add_column_family(cf_def)
    Now that we have the ColumnFamilies, I want to have syntax like this to define the relationships on the User model:
    list :followers, :User
    list :following, :User
    This should provide the following API:
    #followers - returns an array of users as specified from the Followers ColumnFamily
    #followers<<(user)  - adds the user to the User object's followers list if it's not already there
    and a similar API for following.
    Sandra's repository
    JotRod's repository
    Download 680 MB
    Download (iPod & iPhone) 165 MB
    Take the 2011 Readers Survey
    0 min
  • 075 TMTC Jim Jagielski – Apache Software Foundation

    Jim Jagielski is the president of the Apache Software Foundation and works for Red Hat. He's a founding member of the Foundation and has been a developer on the HTTP server for over a decade.

    We had an inspiring conversation about the Apache Software Foundation, the origins of the HTTP server, how the Foundation manages projects, and the incubator program. If you manage or contribute to Open Source software, then this is a discussion you'll want to hear.

    1 hr 4 min
  • 027 RC Vim
    I've been using VIM for a while to do my development. It's a terrific text editor that has been around for quite some time. Here's the rundown of what I've got set up.
    MacVim: http://code.google.com/p/macvim/
    Janus: https://github.com/carlhuda/janus
    I've also found a few resources to help me get better with Vim as well. Here are some of my favorites:
    VimCasts: http://vimcasts.org/
    VimGolf: http://vimgolf.com
    10 min
  • 074 TMTC Jonathan Ellis – Cassandra

    Jonathan Ellis is the Project Chair of Cassandra and co-founder of DataStax,  a company that specializes in helping companies set up BigData stacks with Cassandra, Hadoop, and other open source software.

    His company just released DataStax Enterprise.

    We had a great discussion about the origins of Cassandra, what it's good at, how it stacks up against relational databases, and how a lot of its different parts work.

    50 min