Jay McGavren's Journal

2009-08-04

Heh...

In my Google search results (I go by “nephariuz” in various online forums)…

nepharious :: ruby, rails, consulting We build web applications faster and for less using rapid application prototyping and development with the Ruby on Rails framework. www.nepharious.com/

Read more...
2009-07-28

Video podcasts on MythTV with MythNetTV

MythNetTV is an early but effective MythTV extension that downloads podcasts and adds them to your recordings list, just like the free downloads feature on TiVo (except you can subscribe to anything you want, provided the format’s supported).

These commands will install and configure the app (be sure to substitute the path you want videos saved to):

sudo apt-get install mythnettv
mkdir /your/dir/here
mythnettv --datadir=/your/dir/here

Subscribe to some geeky shows:

mythnettv subscribe "http://revision3.com/pixelperfect/feed/Xvid-Small" "PixelPerfect"
mythnettv subscribe "http://www3.youtube.com/rss/global/top_rated.rss" "YouTubeTopRated"
mythnettv subscribe "http://revision3.com/trs/feed/Xvid-Small" "TotallyRadShow"
mythnettv subscribe "http://applebytepodcast.cnettv.com/" "CnetAppleByte"
mythnettv subscribe "http://buzzreportpodcast.cnettv.com/" "CnetBuzzReport"
mythnettv subscribe "http://cnetnewspodcast.cnettv.com/" "CnetNewsDaily"
mythnettv subscribe "http://firstlookpodcast.cnettv.com/" "CnetFirstLook"
mythnettv subscribe "http://hackspodcast.cnettv.com/" "CnetHacks"
mythnettv subscribe "http://howtopodcast.cnettv.com/" "CnetHowTo"
mythnettv subscribe "http://realdealvideopodcast.cnettv.com/" "CnetRealDeal"
mythnettv subscribe "http://revision3.com/coop/feed/Xvid-Small" "Co-Op"
mythnettv subscribe "http://www.onnetworks.com/feeds/1460/video/rss.xml?target=site" "PlayValue"

Get show lists for all subscriptions, then download 10 shows:

mythnettv update
mythnettv download 10

List the next 10 shows that will be downloaded:

mythnettv nextdownload 10

Download 1 show from the given subscription:

mythnettv download 1 CnetNewsDaily

List subscriptions:

mythnettv list

More info on these commands and others:

man mythnettv

Read more...
2009-07-27

My preferred sites...

As recommended by Google Preferred Site Search (now in Labs). These were probably gleaned from my search history, and yup, they look about right.

api.rubyonrails.org

code.google.com

giantrobots.thoughtbot.com

github.com

groups.google.com

linuxforums.org

linuxquestions.org

macosxhints.com

mythtv.org

railscasts.com

ruby-doc.org

ubuntuforums.org

Read more...
2009-07-18

DevHouse, low-tech...

Wanted something to run on the projector during Phoenix DevHouse that would give everyone a shared playground. It had to be simple enough to not interfere with people, though, and I didn’t want people to have to download clients or a bunch of other software…

I’d heard about netcat before, but it was only a few days ago that I stumbled across another article on it, including setting it up as a server/listener. Thought it would be perfect for the job, and it was - as a client. The listener didn’t let people connect concurrently in either TCP or UDP modes, so I simply grabbed a socket example from the Programming Ruby book and fired it up, then posted directions on connecting. Here’s the result…

Read more...
2009-07-13

Quick setup for Linux games under MythTV/MythGame...

These commands will install some quality games that can be played full-screen:

sudo apt-get install a7xpg
sudo apt-get install gunroar
sudo apt-get install kobodeluxe
sudo apt-get install parsec47
sudo apt-get install rrootage
sudo apt-get install sdl-ball
sudo apt-get install titanion
sudo apt-get install torus-trooper
sudo apt-get install tumiki-fighters

This command will add a “Native” games entry under the Games menu. You’ll be prompted for your MythTV DB password, which is likely stored in “/etc/mythtv/mysql.txt”.

mysql --database=mythconverg -u mythtv -p -e "INSERT INTO gameplayers (playername, gametype, commandline, rompath, extensions) VALUES ('Native', 'Other', '', '$HOME/bin/games', '');"

Then fill $HOME/bin/games “ROM directory” with scripts that launch each respective game. (These are set up for a control pad and 1024x768 resolution, so they may need tweaking.)

~/bin/games/titanion
#!/bin/sh
titanion -fullscreen -res 1024 768

~/bin/games/gunroar
#!/bin/sh
gunroar -fullscreen -res 1024 768 -enableaxis5

~/bin/games/rrootage
#!/bin/sh
rrootage -fullscreen -lowres

~/bin/games/parsec47
#!/bin/sh
parsec47 -fullscreen -lowres

~/bin/games/torus-trooper
#!/bin/sh
torus-trooper -fullscreen -res 1024 768

~/bin/games/a7xpg
#!/bin/sh
a7xpg -fullscreen -lowres

~/bin/games/sdl-ball
#!/bin/sh
sdl-ball

~/bin/games/kobo-deluxe
#!/bin/sh
kobodl -fullscreen -width 1024 -height 768 -joystick -nomusic

~/bin/games/tumiki-fighters
#!/bin/sh
tumiki-fighters -fullscreen -res 1024 768

Be sure to make the scripts executable, or they won’t launch:

chmod ugo+x ~/bin/games/*

In mythfrontend, go into game setup and scan for new games. Each script you set up should then appear under the “Native” entry in the games menu - just pick one and fire away.

Questions/suggestions? Post ‘em in the comments!

Read more...