Re: Keeping hold of data between requests

2010-06-01 Thread Adam Akhtar
hi maximillian

thanks for the quick response.

i was thinking about storing the id in a table, but thought there might be
an easier solution such as an instance variable.

On Tue, Jun 1, 2010 at 5:35 PM, Maximilian Mack maxm...@gmx.de wrote:

 Hi,

 why don't store it in a table? I would even store each mention in a table.

 id | twitter_id | text

 Then create a DJ:
 - get Tweet.last
 - grab from Twitter the last mentions
 - store them in the database
 - create the next DJ


 Hope this helps

 Am 01.06.2010 um 10:25 schrieb adam:

  Im a newish programmer so perhaps my lack of experience is stopping me
  from finding the answer. Anyway maybe someone here can help.
 
  Ive created a simple TwitterAgent class that is used for a reoccuring
  background job (Dealyed_job). It accessed twitters and is grabs all
  the latest mentions since the last time it looked (roughly 30 second
  intervals).
 
  To stop it grabbing ones it already grabbed previously I need to keep
  hold of the last message id it took. Then It go through the messages
  and grab untill it reaches that very id.
 
  The problem is I dont know how to keep that ID to hand. Heroku doesnt
  allow writing to the disk so i cant write it to a file. Its also a
  background job and doesnt pertain to any particular user so cant place
  it in session (or can I ?).
 
  I was thinking instead of creating the twitteragent object each time a
  job starts, I could create it somewhere where it will persist in
  memory and simply save the message id to an instance variable, but
  where's a good place to do that and is this a good idea?
 
  --
  You received this message because you are subscribed to the Google Groups
 Heroku group.
  To post to this group, send email to her...@googlegroups.com.
  To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: libraptor binary

2010-06-01 Thread Nicholas J Humfrey
I don't think support requests are public, but this is the URL for the
support request I created:

http://support.heroku.com/requests/8627

nick.


 libraptor++!

 If it's possible to get this installed on heroku, what can I post to
 make the process easier?

 Thanks,
 Ben

 On May 25, 9:21�pm, nick n...@aelius.com wrote:
 Hello,

 I am the author of dbpedia lite:http://dbpedialite.org/

 It is Sinatra app deployed on heroku that presents some of the data in
 Wikipedia as Linked Data using RDF.rb and Spira.

 Something that would really help my app is if I could use the rdf-
 raptor gem. This depends upon rapper/libraptor
 library:http://librdf.org/raptor/

 Raptor is a commonly available library, available on most Linux
 distributions. It would be fantastic if this library could be made
 available on Heroku, so that people could parsing and serialising RDF/
 XML and Turtle.

 Thanks,

 nick.

 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Heroku dependency error - JSON

2010-06-01 Thread BBJ
Managed to fix this by reinstalling Heroku.

On May 27, 3:03 pm, BBJ babychee...@lolcatbible.com wrote:
 Hi everyone

 I recently updated my gems.

 On executing:
               heroku rake --trace db:migrate
 I get
                /usr/lib/ruby/site_ruby/1.8/rubygems.rb:230:in
 `activate': can't activate json_pure (~ 1.2.0, runtime) for
 [heroku-1.8.1], already activated json_pure-1.4.3
 for                  [gemcutter-0.5.0] (Gem::LoadError)

 How can I work around to fix this? I cannot update my remote DB.

 Thanks in advance,
 Bob

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: is it possible to allow users to use CNAME or A to point custom domains at my heroku app?

2010-06-01 Thread Kyle Bragger
So you think I have to always add custom domains to the heroku account
itself? That seems a bit convoluted (albeit very clever), and I wonder
if there are hard limits on how many custom domain names you can
have.  Would you need to CNAME foobar.com *and* www.foobar.com to
proxy.heroku.com then?

On Jun 1, 8:11 am, Chap chapambr...@gmail.com wrote:
 Here's how I've done it.

 Add the custom domain to the heroku app (for now I'm just doing it by
 hand, but you could probably include the heroku gem and do it during
 the account creation) and then point the www cname of the custom
 domain to a subdomain of your app (foobar.example.com).

 Basically how Shopify does it:http://wiki.shopify.com/DNS

 On May 31, 11:23 pm, Kyle Bragger kyle.brag...@gmail.com wrote:



  If I've got a Heroku app at example.com, and have turned on wildcard
  subdomains (foo.example.com, etc.), is it currently possible to
  support the following scenario:

  - I have a profile at kyle.example.com
  - I register foobar.com
  - I turn on use custom domains in the app and set my custom domain
  to foobar.com

  How would I configure DNS for this scenario? I've got A records for
  example.com to point to Heroku's servers, andwww.example.comCNAME'ed
  to proxy.heroku.com, but where would I point foobar.com?

  -Kyle

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: is it possible to allow users to use CNAME or A to point custom domains at my heroku app?

2010-06-01 Thread Kyle Bragger
So I just tested this out and unfortunately Chap's suggestion seems to
be the only way; any other domain CNAME'ed to another domain pointing
to Heroku passes though as expected, and fails, as Heroku looks for an
app with *that* custom domain. Alas.

On Jun 1, 8:21 am, Kyle Bragger kyle.brag...@gmail.com wrote:
 So you think I have to always add custom domains to the heroku account
 itself? That seems a bit convoluted (albeit very clever), and I wonder
 if there are hard limits on how many custom domain names you can
 have.  Would you need to CNAME foobar.com *and*www.foobar.comto
 proxy.heroku.com then?

 On Jun 1, 8:11 am, Chap chapambr...@gmail.com wrote:



  Here's how I've done it.

  Add the custom domain to the heroku app (for now I'm just doing it by
  hand, but you could probably include the heroku gem and do it during
  the account creation) and then point the www cname of the custom
  domain to a subdomain of your app (foobar.example.com).

  Basically how Shopify does it:http://wiki.shopify.com/DNS

  On May 31, 11:23 pm, Kyle Bragger kyle.brag...@gmail.com wrote:

   If I've got a Heroku app at example.com, and have turned on wildcard
   subdomains (foo.example.com, etc.), is it currently possible to
   support the following scenario:

   - I have a profile at kyle.example.com
   - I register foobar.com
   - I turn on use custom domains in the app and set my custom domain
   to foobar.com

   How would I configure DNS for this scenario? I've got A records for
   example.com to point to Heroku's servers, andwww.example.comCNAME'ed
   to proxy.heroku.com, but where would I point foobar.com?

   -Kyle

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Rails 2.3.6

2010-06-01 Thread Matthew A. Brown
Just to follow up on this -- I went through the recommended migration
process to switch over to bamboo. Everything looked great on the test
app, but when I ran the migration tool on my real app, it went back to
having the same weird dependency issues. I ended up just nuking my
existing app and switching everything over to the test app, and it's
been smooth sailing since.

Thanks!

On Tue, May 25, 2010 at 23:19, Jonathan Dance j...@norbauer.com wrote:
 My recommendation: switch to bamboo-ree-1.8.7 and specify all your gems in
 your .gems file, including rails (and pg), regardless of which version of
 Rails you're using. This should solve the Rails dependency issues since
 bamboo doesn't rely on installed gems. While installed gems seemed
 convenient, they are really a bad crutch.
 Info on migrating:
 http://docs.heroku.com/stack
 Detailed version information for bamboo-ree-1.8.7:
 http://bamboo-ree-versions.heroku.com/
 --wuputah

 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: is it possible to allow users to use CNAME or A to point custom domains at my heroku app?

2010-06-01 Thread Keenan Brock
Hi,

1 IP address per website is too expensive. So lots of domains are hosted off 
the same IP address.

HTTP/1.1 (what we've used since ~1998) passes in a Host: parameter.

The webserver uses the Host parameter to map the request to the appropriate 
application.

We tell the webserver how to map the Host to the application.

--Keenan


On Jun 1, 2010, at 10:48 AM, Kyle Bragger wrote:

 So I just tested this out and unfortunately Chap's suggestion seems to
 be the only way; any other domain CNAME'ed to another domain pointing
 to Heroku passes though as expected, and fails, as Heroku looks for an
 app with *that* custom domain. Alas.
 
 On Jun 1, 8:21 am, Kyle Bragger kyle.brag...@gmail.com wrote:
 So you think I have to always add custom domains to the heroku account
 itself? That seems a bit convoluted (albeit very clever), and I wonder
 if there are hard limits on how many custom domain names you can
 have.  Would you need to CNAME foobar.com *and*www.foobar.comto
 proxy.heroku.com then?
 
 On Jun 1, 8:11 am, Chap chapambr...@gmail.com wrote:
 
 
 
 Here's how I've done it.
 
 Add the custom domain to the heroku app (for now I'm just doing it by
 hand, but you could probably include the heroku gem and do it during
 the account creation) and then point the www cname of the custom
 domain to a subdomain of your app (foobar.example.com).
 
 Basically how Shopify does it:http://wiki.shopify.com/DNS
 
 On May 31, 11:23 pm, Kyle Bragger kyle.brag...@gmail.com wrote:
 
 If I've got a Heroku app at example.com, and have turned on wildcard
 subdomains (foo.example.com, etc.), is it currently possible to
 support the following scenario:
 
 - I have a profile at kyle.example.com
 - I register foobar.com
 - I turn on use custom domains in the app and set my custom domain
 to foobar.com
 
 How would I configure DNS for this scenario? I've got A records for
 example.com to point to Heroku's servers, andwww.example.comCNAME'ed
 to proxy.heroku.com, but where would I point foobar.com?
 
 -Kyle
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/heroku?hl=en.
 

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



update asset hosts on git update

2010-06-01 Thread Maximilian Mack
Hi folks,

is there a solution for rails to update all my asset hosts (amazon s3) on a git 
push?

Greetings Max

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



carrot gem not supported?

2010-06-01 Thread Shane
I have the carrot and amqp gems listed for my app and they seem to
install ok when I push but getting the following runtime error:

NameError - uninitialized constant Carrot::AMQP::Server::Frame:
 /home/slugs/178611_0f96272_3e1c/mnt/.gems/gems/carrot-0.7.0/lib/amqp/
server.rb:43:in `next_frame'
 /home/slugs/178611_0f96272_3e1c/mnt/.gems/gems/carrot-0.7.0/lib/amqp/
server.rb:53:in `next_payload'
 /home/slugs/178611_0f96272_3e1c/mnt/.gems/gems/carrot-0.7.0/lib/amqp/
server.rb:49:in `next_method'
 /home/slugs/178611_0f96272_3e1c/mnt/.gems/gems/carrot-0.7.0/lib/amqp/
server.rb:122:in `start_session'
 /home/slugs/178611_0f96272_3e1c/mnt/.gems/gems/carrot-0.7.0/lib/amqp/
server.rb:27:in `initialize'
 /home/slugs/178611_0f96272_3e1c/mnt/.gems/gems/carrot-0.7.0/lib/
carrot.rb:33:in `new'
 /home/slugs/178611_0f96272_3e1c/mnt/.gems/gems/carrot-0.7.0/lib/
carrot.rb:33:in `initialize'


Is the carrot gem not supported even though it seemed to install ok?

Thanks,
Shane

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: libraptor binary

2010-06-01 Thread Matthew Soldo
Hi Folks,

Thanks for contacts us about this. I'm a big fan of Linked Data and am
thrilled to see people developing for it on Heroku. I'll see what I can do
to make this happen.

Matt

On Mon, May 31, 2010 at 4:10 PM, Pius Uzamere p...@alum.mit.edu wrote:

 +1


 On Mon, May 31, 2010 at 7:09 PM, Josh Huckabee joshhucka...@gmail.comwrote:

 +1 For libraptor

 On May 25, 12:21 pm, nick n...@aelius.com wrote:
  Hello,
 
  I am the author of dbpedia lite:http://dbpedialite.org/
 
  It is Sinatra app deployed on heroku that presents some of the data in
  Wikipedia as Linked Data using RDF.rb and Spira.
 
  Something that would really help my app is if I could use the rdf-
  raptor gem. This depends upon rapper/libraptor library:
 http://librdf.org/raptor/
 
  Raptor is a commonly available library, available on most Linux
  distributions. It would be fantastic if this library could be made
  available on Heroku, so that people could parsing and serialising RDF/
  XML and Turtle.
 
  Thanks,
 
  nick.

 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: libraptor binary

2010-06-01 Thread Nicholas J Humfrey
Fantastic :-D

Thanks Matt!

On 1 Jun 2010, at 04:22, Matthew Soldo wrote:

 Hi Folks,
 
 Thanks for contacts us about this. I'm a big fan of Linked Data and am 
 thrilled to see people developing for it on Heroku. I'll see what I can do to 
 make this happen.
 
 Matt
 
 On Mon, May 31, 2010 at 4:10 PM, Pius Uzamere p...@alum.mit.edu wrote:
 +1
 
 
 On Mon, May 31, 2010 at 7:09 PM, Josh Huckabee joshhucka...@gmail.com wrote:
 +1 For libraptor
 
 On May 25, 12:21 pm, nick n...@aelius.com wrote:
  Hello,
 
  I am the author of dbpedia lite:http://dbpedialite.org/
 
  It is Sinatra app deployed on heroku that presents some of the data in
  Wikipedia as Linked Data using RDF.rb and Spira.
 
  Something that would really help my app is if I could use the rdf-
  raptor gem. This depends upon rapper/libraptor 
  library:http://librdf.org/raptor/
 
  Raptor is a commonly available library, available on most Linux
  distributions. It would be fantastic if this library could be made
  available on Heroku, so that people could parsing and serialising RDF/
  XML and Turtle.
 
  Thanks,
 
  nick.
 


-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.