search for: mediamanifest

Displaying 20 results from an estimated 20 matches for "mediamanifest".

2006 Aug 02
7
ActiveRecord does not close database connections?
I have an application that creates quite a few threads. I keep getting the "mysql too many connections" error. ActiveRecord does not close the connection once a thread had died out. To make things worse mysql has a wait_timeout variable that would basically kill off these connections for me, but there is a bug and I can not change the value of it. I have tried at least 10 different
2006 Aug 18
3
Mysql::Error: Can''t create UNIX socket (24)
Any idea what this means? I have done many google searches and got nothing? Any help is greatly appreciated. -- Posted via http://www.ruby-forum.com/.
2006 Jul 26
6
Javascript tooltips in rails?
Does rails have built in functionality to do javascript tooltips? -- Posted via http://www.ruby-forum.com/.
2006 Aug 03
30
How to protect your code? Obfuscater?
I just made a rails application that I plan to sell and dsitribute. I want to distribute it without having to worry about someone stealing the code and selling their own version. How do I do this? Is there a ruby obfuscator or anything that can keep someone from seeing the code? Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2006 Jul 24
1
Change a <select> value in RJS?
Is it possible to change which value is selected in a select tag using RJS? If not what would the raw javascript be to do this outside of an RJS template? Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2006 Aug 12
9
Finding the closest match?
I am trying to do a search for a crazy problem. Anyways, the search can only contain one word and the database it''s searching contains one word per row. Basically if someone tries to search for a word I want to find the closest match. Ex: If someone types "cat" and "cat" is not in my database, but "bat" is, how could I select bat? Also, if someone
2006 May 31
1
ActiveRecord: When / where to validate data? Tricky question
First of all, thanks for you time. I have kind of a tricky question and wanted to see what you guys thought. ------------------------------------------- Lets say I have this: ------------------------------------------- class Purchase < ActiveRecord::Base validates_numericality_of :some_number, :only_integer => true end ------------------------------------------- Then I do this:
2006 Jul 25
6
Subtract a field from the current time in MySQL?
I have the following: Table Products: With a column called "purchased_at" of type "datetime". Products.find(:all, :conditions => ["? - purchased_at >= 120", Time.now]) Why doesn''t that work? What I''m trying to do is find records that were purchased less than or equal to 2 minutes ago. Thanks for your help. -- Posted via
2006 Aug 02
9
RJS not cross browser compatible?
I have an RJS template that does the following page.insert_html :bottom, "some_id", ''<tr id="some_id"><td></td></tr>'' This works just find in safari and firefox. In IE and Opera it doesn''t work so great. Any ideas? Am I doing something wrong here? -- Posted via http://www.ruby-forum.com/.
2006 Aug 18
11
#<Errno::EMFILE: Too many open files
My application runs a backgrond process and after running for a while I get this error in my logs: #<Errno::EMFILE: Too many open files Lasty, the ONLY code I have that does anything with files is: File.open(image_path, "wb") do |file| file.puts file_content end Any idea what this means? -- Posted via http://www.ruby-forum.com/.
2006 Aug 05
22
MySQL vs SQLite
I have an application where speed is probably the #1 priority here. I am using MySQL 5.0.22. Would SQL be considerably faster than MySQL? I know this has been discussed before, but the search on the forums is not working. Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2006 Aug 10
1
Convert datetime_select to Time object?
-------------------------- Question 1 -------------------------- I am dealing with a database that holds products and it has a datetime field called "active_at". so I have the following for active_at: <%= f.datetime_select :active_at %> It gives me 5 different params: params[:product][:active_at(1i)] params[:product][:active_at(2i)] params[:product][:active_at(3i)]
2006 Aug 15
1
Update attribute without validations or any save hooks?
If I wanted to update an attribute with calling any validation or any of the before_save and after_save hooks, how would I go about doing this? Supposed the update_attribute method calls the before and after save methods. Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2006 Aug 16
0
How to reconnect to the database?
I have a rails app that uses a background process. Every now and then, for a reason beyond me, it will say "Product id=7 not found". When the product is in the DB. So What I''d like to do is catch that exception and then reconnect to the database. Hwo do I do this? I saw a reconnect! method, but I have no idea which object to run that on how how to actually use it. Here is
2006 Jul 26
0
Making methods in application.rb not accessible to the web?
How would I got about making methods in application.rb not accessible to the web, BUT accessible to my views via the controller object. I noticed I can do: controller.controller_name in my views But I can not do: whatever.com/controller/controller_name Making all of the methods in the application.rb protected works, but I can not accessed them in my views. Thanks for your help. -- Posted
2006 Jul 28
1
Huge resource of images, video, and sound clips?
I''m building a rails app that basically allows the user to build lessons plans for their students. It''s web based and it''s specifically tailored for these type of teachers. The only problem is that any images, video, or sound has be found or added by them. This doubles and sometimes triples the amount of time it should take to create a lesson plan. So we want to add a
2006 Aug 06
1
periodically_call_remote forces asynchronous to true?
Whenever I use periodically_call_remote it outputs as the following: <script type="text/javascript"> //<![CDATA[ new PeriodicalExecuter(function() {new Ajax.Request(''some_url'', {asynchronous:true, evalScripts:true})}, 2) //]]> </script> If I understand correctly, setting asynchronous to true means that if one request takes longer than 2 seconds,
2006 Aug 06
1
Finding out what line number exceptions were raised?
If I rescue an exception and I do the following rescue Exception => e puts "The line number the exception was raised is...." end How do I complete that puts statement? Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2006 Jul 06
6
Mutex::Synchronize with backgroundrb
I have a question concerning where to use the synchronize function. The point of it is to put all of the code blacks passed to this function in a queue. This make sure that code gets ran one at a time. This is required when doing any kind of database activity in backgrondrb and multiple threads. Otherwise I lose the connection to my database. So here is my question: Do I need to do: @lock =
2006 Jun 23
8
MySQL loses connection, strange problem, will pay for help
I have searched the forums, searched google, etc for the past 3 days and have not found a solution that will work. Any help is greatly appreciated and at this point I have no problem paying for help. I have a paypal account. I was developing my rails project on a server that had mysql 5. We finished development and needed to move it over to the client server, their server has mysql 4.1.