Roy’s Weblog

July 19, 2010

My Media Center v3.0 – Day 2

Filed under: Media Center — royw @ 6:07 am

I didn’t spend as much time today as I had hoped, but did make some progress.

The Plex “App Store” which while it isn’t really a store, is still pretty slick. Tried several plug-ins, but will just hit the highlights here. Couldn’t get Hulu plugin to work at all – probably wrong credentials. The pandora plug-in did work but feels hackish as the display is a cut section from safari viewing pandora. I ended up watch “Living With Father (1947)” while testing the iMovie plug-in. I noticed one burp that might have been network streaming and one cut section that is probably in the source material. The video quality was not the best, but most was probably due to the source. The National Geographic plug-in was a little disappointing in that the info boxes disappear before I could completely read them. Also not a lot of photos. I installed several others but haven’t given them a try yet.

I did put new batteries in my Gyration keyboard and that works well with the exception that the media keys don’t do anything and I haven’t found how to configure them yet.

Watched an iso movie from the NAS and the player was perfect. OK, it was a drama (Fat Man & Little Boy) so was not a stress test.

Still trying to move the media content from the old XBMC box to the NAS. I bumped a switch which lost power and interrupted the first copy. I then tried using cp -ur but that started copying the same files over. Ended up writing a ruby script to finish the sync with and that is still in process.

So the network reconfiguration is postponed until next weekend. But I did find that MacPorts has dnsmasq. So installed XCode so I could install MacPorts. I’ve installed dnsmasq but have not yet configured or started it.

Did some research on skins as I really miss being able to view the content by genre. There are a few skins that I need to give a try (Aeon, Alaska), but the really good news is there is a confluence skin in the works.

What’s really sweet is that after a day and a half, I’m feeling comfortable leaving the new system for the family to use for the week.

Have a great week!

July 18, 2010

My Media Center v3.0 – Day 1

Filed under: Media Center — royw @ 7:39 am

OK, I’ll admit it. I like to watch movies.

With a DVD library of over 1200 titles, I’ve been on a multi-year quest for the perfect media center system. Today I took the next major step on that journey.

Here’s a brief recap of my journey to date. For several years I’d toyed with the idea of a media center, then the release of LinuxMCE caused me to take the plunge. Built up a system. Hit a few hardware issues, rebuilt it with a new motherboard. Distributed the media on three systems via NFS. But was never really happy with LinuxMCE, probably because I just wanted a media center and not a home control center. Just too complex and persistent player problems drove me to try XBMC. I’ll admit it, I just loved XBMC, it’s way cool. I wanted a plug in replacement for LinuxMCE which meant the system would be a router with firewall and DHCP/DNS server for my media LAN, so went with a gentoo system, which, IMO, is easier to setup and configure than a ubuntu system. But with no time to maintain the gentoo hosted system, and my growing comfort with Macbook laptops, I just decided to jump ship to a Mac Mini running Plex (a fork of XBMC for the mac).

So day one.

Purchased a 2.4GHz, 4GB, 2010 mac mini (with HDMI port). Also went by Radio Shack to get a HDMI cable and was surprised at how proud they are of their cables – ouch.

Initial setup using one of my LG246 HDMI monitors instead of the plasma TV. Mini boots right up, real simple snow leopard config. First issue is the display needed some underscan adjusting under Settings, Displays. Then update the system to the latest and it’s time to have fun.

Download Plex and install. Install the recommended Candelair driver for Apple Remote support. Candelair recommended/advertised Remote Buddy which looked pretty cool so installed the 30 day trial.

Also installed iTerm and Firefox.

My current network has four media sources: a kubuntu workstation with 3TB for media, the old XBMC system with 1TB, a gentoo workstation with 5TB, and a new Thecus N4100Pro NAS Raid5 with 4 2TB drives. I’ve moved my m4v files to the Thecus and started the copying of the iso files from the XBMC system to the Thecus (currently still in progress) in prep for decommissioning the XBMC system. I intend to eventually transcode all the iso images to m4v and have the Thecus as the primary media server.

So for now, just mounted the NFS volumes from the kubuntu and Thecus systems on the mac mini using Disk Utility. Here’s the first difference between XBMC linux and Plex mac – on the XBMC when adding the source, I normally just specify the path to the autofs mount point. But on the mac Plex, I needed to just select the mounted volume as a source. The first gotcha is that the source must be mounted. Currently I’m doing that with Finder, but need to find the mac way of making sure it is mounted on boot.

I had a little frustration with Plex trying to use the default keyboard only. Eventually enabled the mouse primarily so I could right click and remove a bad source definition. For now, I’m planning on leaving the mouse enabled.

Activated the Remote Buddy and configured it to start at login. Set the AJAX password. Then brought up a safari on my iphone and pointed it at the mac mini. Very nice. It did take me a while to figure out that the “Menu” button is functionally equivalent to the ESC key. One cool hint, use the ‘+’ button in safari to add a link to your home screen.

Went to Plex’s app store and added a few neat sounding extensions. Primarily the HDHomeRun app, which is pretty cool. It does take a while to verify each TV channel, so did just a few for now.

Moved the system to the home theater and connected the HDMI to my Yamaha RX-V861 A/V receiver. The video was perfect but no sound. Changed Plex’s system audio preference from built-in output to HDMI and that was solved.

Also hooked up Gyration air mouse to the mac mini.

Finally added Plex to the login.

So ended the first day with a functional mac mini running Plex by default which accesses media from two different NAS systems controlled by my iPhone, iPad and airmouse, sending video and audio over HDMI to my home theater.

TODO list includes reconfiguring my media LAN to remove the XBMC machine. This will necessitate setting up and running a replacement DHCP/DNS server (hopefully either dnsmasq or something equivalent). Also will need to change the mode of my wireless access point to be a gateway to my full home LAN.

June 7, 2010

Ruby Gem Recipe

Filed under: Programming — royw @ 6:30 am
Tags: , ,

One of the first hurdles new ruby programmers run into is creating a project as a gem. Today there are some great tools that trivialize gem creation and publication: jeweler, bundler, github, gemcutter. In this article I’ll show the creation of an example application with a command line interface all packaged in a gem.

(more…)

July 15, 2009

A Manager for DRb

Filed under: Programming — royw @ 7:25 pm
Tags: , ,

The other day I wanted to parallelize one of my applications so dusted off DRb (included in ruby’s standard library). While DRb is pretty easy to use, the pain has always been setting up the servers and keeping their code current. This time I wanted the application to handle everything.

So here are my basic requirements:

  • Support using multiple DRb objects
  • Support local and remote hosting of the DRb server(s)
  • Application to install current code on host machine(s)
  • No application code to have to be manually installed on host machine(s)
  • Minimal software requirements on host machine(s)
  • Application to control the DRb server(s) (start/stop)
  • Linux and Mac support (don’t care about windows)

The result is Drbman.
(more…)

July 5, 2009

Katy Tea Party

Filed under: Liberty — royw @ 5:26 am

Howdy,

My wife, Lynna, and I attended the Katy Tea Party today. For a rural county event, it was well attended. I’m not good at estimating crowd sizes but will guess around a thousand. The Katy Tea Party organization was pretty aggressive at getting an accurate head count (they counted the number of people driving in and did a registration) so hopefully they will publish the real number on their web site, http://katytea.com, soon.
(more…)

June 18, 2009

Code generators and git-rebase

Filed under: Programming — royw @ 9:55 pm
Tags: ,

The classic example of using git-rebase is when a developer is working on their own branch while commits are made to the master branch, then the developer wants to sync up with the master branch, maybe as a precursor to merging the changes back into the master branch. Git’s rebase handles this elegantly by pushing the changes on the developers branch, moving the point where the developers branch is forked from the master branch, then apply the saved changes to the new developers branch.
(more…)

June 17, 2009

Specifications to Generated Merb Project

Filed under: Programming — royw @ 4:50 am
Tags: ,

Introduction

While in the early requirements phase of a new open source project, I was wanting to encourage discussion on the database schema and web API. So I wrote some rspecs to capture the models, their attributes, and their relationships. As we played around with the schema, it was difficult to manually keep the specs accurate, particularly with the relationships. So I wrote a script to generate a merb project from the rspecs to catch relationship problems. This was good and also let me generate model and controller diagrams using railroad_xing.
(more…)

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.