Park Place Does Torrents, It's Called 0.7 #
For you:
gem install parkplace --source code.whytheluckystiff.net
Right now the parkplace
app and the seeder are separate. The app has a built-in tracker, though.
parkplace 55.55.55.55 3002 parkseed 55.55.55.55 3003
A few tips:
- If you have a file saved at
http://ip:3002/mp3s/tuff_ghost.mp3
, you can request the torrent by adding a ”?torrent” to the end:http://ip:3002/mp3s/tuff_ghost.mp3?torrent
- If you can’t get BT clients to connect, be sure you specified a globally accessible IP back when you started things up.
- I think
parkplace
andparkseed
have to be on the same IP. - Simple tracker stats at
http://ip:3002/tracker
- Park Place stores its stuff in
~/.parkplace
by default.
Many thanks to William Morgan for his superb RubyTorrent lib. Official gems will be out soon. Help us test!
nil
sqlite3 gem required? should i finally install sqlite?
why
Sure. HOWEVER.
nil
AccessDenied
Access Denied / 1146694707nil
well that is odd, I can’t paste in the actual data, and escape characters cause everything to asplode. attempting a wink wink nudge nudge
why
Yeah, when you start Park Place, you’ll see XML .
MenTaLguY
Warning is good, but many have already unknowingly installed the
sqlite3-evil
gem. Can we do better?I’ve found you can tell whether or not you’ve been given the bad version of sqlite3 by attempting a
require 'sqlite3_api'
. If you seesqlite3
but notsqlite3_api
, you know you’re about to imbibe the bad juice.Best: trap the LoadError from the
sqlite3_api
attempt, and print a meaningful error message about what the user needs to do to fix things.That way, things always fail up front and people know why and what to do.
I wanted to do this for Camping, actually, but there I was stuck on how to do this check only when somebody tried to use the
:sqlite3
backend. It should be easier here if sqlite3 is the only option.nil
/usr/local/lib/ruby/gems/1.8/gems/parkplace-0.7.21/bin/parkplace:68: undefined method `password' for nil:NilClass (NoMethodError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' from /usr/local/bin/parkplace:18
Justin Camerer
tuff_ghost.mp3? does someone like the unicorns?!
why
Okay, well, a new gem is up. None of the images and colors were loading previously.
MenTaLguY: Alright, thanks for doing the footwork on that. The new gem does just that.
nil: Good point. Is now fixed.
Justin Camerer: It’s the stuff dead musclemen are made of.
nil
MenTaLguY: From irb on my freebsd box dropping
require 'sqlite3'
andrequire 'sqlite3_api'
both throw fits, but sqlite3-ruby was installed w/ SWIG and SQLite3 backing although I did drop a ruby-sqlite3 from the ports databases section. more research is needed?nil
for those following the bouncing ball. go grab s3Dav.0.6 pry apart org.carion.s3dav.s3.keymanagement:CredentialImpl.java Line 42, drop in what host you wish. “Localhost:10102” works wonders for me (ssh tunnel) Eclipse->Ant->Build :D
nil
conversly I can NOT get this mess to upload :)
why
If mongrel’s hanging when you upload, I’d force a fresh install:
I made a slight update to the gem.
nil
updated to
mongrel-0.3.12.5/
Still having issues using s3Dav, but I believe the issues lie w/ s3Dav. It seems to be having issues w/ sockets. Guess I’ll get my hands dirty tommorow night and whip up something better.MenTaLguY
nil: well, if you’re just firing up an irb session, you do have to require rubygems before you can get at either sqlite3-ruby or sqlite3-evil.
(I actually made the same mistake a couple times myself.)
nil
ooopps sorry :)
FlashHater
Hrm, the /tracker isn’t showing anything.
That’s odd. My bucket and everything is set up public-read. Perhaps it’s because it’s listening on 0.0.0.0?
why
Nothing gets seeded until the torrent file is requested.
And I’d stay away from 0.0.0.0. Use your most public interface. Later you can veil it. But it’ll just frustrate you while you’re testing.
FlashHater
Being stuck behind a NAT “Intarwub-gateway-in-a-box” that I can’t get rid of (it does our Vonage), I get errors trying to bind to the public address. How might one go about requesting a torrent from parkplace?
FlashHater
Wow. I really need to read the post better next time.
Lono
Looking forward to the rubyTorrent gem for my RubyTV script.
John
Parkplace runs fine, but I am unable to authenticate from the Amazon ruby code. The problem seems to be related to the headers: as I enter module ParkPlace::S3#service, @env has {“SERVER_NAME”=>“ishtar”, “HTTP_CONTENT_TYPE”=>”/\r\nContent-Type: ”... Note the mashed up accept and Content-Type: headers. Where are the headers extracted, mongrel? [all code downloaded today—platform is Linux]
Comments are closed for this entry.