similar to: UTF8 postgres args saving issue

Displaying 19 results from an estimated 19 matches similar to: "UTF8 postgres args saving issue"

2006 Nov 18
1
ActiveResource sample code?
I''d like to play around a bit with ActiveResource for consuming a web service. Does anyone have sample code they would be willing to share? I''ve googled all around and have come up empty except for simple (non- working) examples given in the RailsConf keynote and some associated blog entries. Thanks! cr --~--~---------~--~----~------------~-------~--~----~ You received
2008 Sep 08
2
Problems with async worker request
Sorry if this comes through twice. I already sent this once, before joining the mailing list. I''m attempting to use Backgroundrb to handle asynchronous pdf creation, but in doing so, I''ve run into a very strange problem. Below is a method that''s called from the controller which creates a new worker, then grabs the worker and calls the ''build_pdf''
2007 Oct 20
0
Proper timestamps in callbacks
Yay, another Task model: ## the model class Task < ActiveRecord::Base attr_accessible :lots, :of, :stuff, :but, :not, :finished_at, :and, :finished before_save do @before_save.call if @before_save end def finish self.finished = true @before_save = proc { self.finished_at = Time.now } end end ## usage t = Task.find(some_id) t.finish t.save (same code on pastie:
2007 Dec 29
0
(unknown)
NAME bj SYNOPSIS bj (migration_code|generate_migration|migrate|setup|plugin|run| submit|list|set|config|pid) [options]+ HISTORY 1.0.0: - use full path to ruby for plugin mode - plugin correctly installs bin -->> script - plugin install uses --force - properly quote paths in windows (spaces) - switch win signal to ABRT (was INT) - background job
2008 Jan 26
1
thanks, and a question about week day scheduling
I''m a big "fan" of BackgroundRB ... 1.0 came along just when my project needed it, and I''ve been very happy. Thanks much for this very helpful piece of software. My question: I have a worker scheduled cron-style as follows: :notification_worker: :notify: :trigger_args: 0 0 8 * * 1,3,5 * I.e., I want to run this particular worker method at 8:00a
2007 Jul 29
6
Isolating rails model specs from their implementation
I''m currently taking a Rails project management app I built when learning Rails and adding specs to it. During the course of building the app the requirement that project should be archiveable was added. So a project is in one of two states active or archived. This led to the creation of the following methods: Project.active_projects Project.archived_projects @project.active?
2009 Feb 16
1
MiddleMan.new_worker => nil
I''ve been checking out all the async gems and plugins for Rails, and decided to give BackgroundRb a shot. Unfortunately, I''ve not even been able to get past the initial stages. Whenever I call MiddleMan.new_worker, it invariably returns nil. The log file remains empty. I''ve only tried this from the console so far. If I can''t even do this successfully,
2008 Sep 24
1
Clearing cached results
I''m trying to figure out how to clear the for a worker from my controller. In my aysnc_xxx process I set cache[key]. However, I don''t see an easy way to clear the cache from a controller with invoking something on the worker. What I was looking for was something like MiddleMan(:worker_name, :worker_key_name).cache[key]= Is there something like that and I''m just
2006 Dec 07
2
backgrounDRb problems with results and MiddleMan
Hi there, I''ve been experimenting with implementing BackgroundDRb in my rails app but am running into some problems. The primary problem I''m getting is in cleaning up worker threads, or getting any kind of response out of worker threads. If try using the response function/hash in my Worker the worker will not execute reporting that response is an unknown variable or function.
2010 Mar 29
4
error in uploading file(help me urgnt)
when i tried to crate an upload file application in rails i am getting error like this Template is missing Missing template app\views\upload\uploadfile.html.erb in view path app/views this is ma model class DataFile < ActiveRecord::Base def self.save(upload) name = upload[''datafile''].original_filename directory = "public/data" # create the
2006 Jul 31
4
Text field not being submitted via form_remote_tag; works via form_tag
Hi everyone, Newbie here. I''m trying to get a textual form element to submit in the context of a form_remote_tag block and having little success. Oddly (or perhaps not), using regular old form_tag in its place does cause the elements to be submitted. Here''s the relevant partial ERb code: <%= form_remote_tag( { :url => { :action => :out, :id => pending_task } } )
2009 Apr 27
0
Encoding Problem / mod_rails / passenger / Postgresql 8.3
Hi, when I use mod_rails/passenger with apache2 on linux instead of webbrick for our application, then it stops working with certain browsers like the ie, and konqueror but still works with firefox. I get the following error message: ActionView::TemplateError (PGError: ERROR: invalid byte sequence for encoding "UTF8": 0xad HINT: This error can also happen if the byte sequence does
2005 Jul 24
0
[Active Record] Missing optional client encoding for MySQL 4.1
MySQL since version 4.1 can use utf-8 for multilangual tables, and it uses almost the same approach like PosgreSQL where Active Record API writes: ":encoding — An optional client encoding that is using in a SET client_encoding TO <encoding> call on connection." However ActiveRecord API does not mention how to set up optional client encoding for MySQL 4.1...
2006 Apr 19
1
AJAX - update item forms problem
I have a table showing some records from the database. These records should be always ordered by some datetime field. The list of items is changed by AJAX using RJS scripts and edits are done by showing and hiding an update form under a chosen row. Adding and updating rows works great but my problem is when the order of items is changed after making some AJAX datetime updates update forms of
2008 Jan 18
8
Query All Worker
What does the method query_all_workers() do? There is no documentation on what this method returns (1.0.1 version). Orion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080118/9f9b8112/attachment.html
2007 Apr 04
6
Exception when doing DRb remote calls from a BackgrounDRb worker
Hello, I am trying to make DRb calls to a external server from a backgrounDRb worker, but I''m getting always the next exception when I make the remote call. > ERROR: > drbunix:///tmp/backgroundrb.11175/experimenter_worker_3e899de945f0803a82cd257cfac316d0_0_0.0738904928422051 > - #<Errno::ENOENT: No such file or directory - >
2024 Feb 05
7
Bug#1063270: xen: NMU diff for 64-bit time_t transition
Source: xen Version: 4.17.3+10-g091466ba55-1 Severity: serious Tags: patch pending sid trixie Justification: library ABI skew on upgrade User: debian-arm at lists.debian.org Usertags: time-t NOTICE: these changes must not be uploaded to unstable yet! Dear maintainer, As part of the 64-bit time_t transition required to support 32-bit architectures in 2038 and beyond
2008 May 04
12
best approach to managing workers and getting status
Hi, I am using backgroundrb to process audio files from a rails controller. Currently a new worker gets created every time the method is called on the worker, using this code: @job_key = MiddleMan.new_worker(:worker => :audio_file_worker, :job_key => Time.now.to_i) MiddleMan.worker(:audio_file_worker, @job_key).make_new_audio_file(params[:release_id]) I need to create the new
2007 Jan 04
10
Intermittent "can''t convert Float into Hash" and results.rb
Hi, I''m using backgroundrb 0.2.1 in a production environment and for most parts I''m very happy. We are using it to do some heavy video editing on the server side and it works great except that under, what seems heavy load the below problem happens intermittently. The problem has only happened 5 times out of over 500 runs by our backgroundrb worker. This is the code in our