similar to: Link to possible code for symbolic chmod

Displaying 20 results from an estimated 5000 matches similar to: "Link to possible code for symbolic chmod"

2006 Oct 24
1
Broken thread Safe connection Management on Mysql (Mysql too many connections errors)
Hi, There is an issue on socket connection with backgroundrb (rev 47) and mysql backend: after a certain number of job you reach the mysql connection limit as socket are never closed and nobody can connect to mysql anymore till you stop the backgroundrb daemon. Already reported on: http://rubyforge.org/pipermail/backgroundrb-devel/2006-July/000066.html,
2006 Jan 16
2
Curl help
I''ve been searching around for a curl implementation on ruby and havn''t had much luck. I have run into open-uri and Net::HTTP but they just arnt as robust as curl. The closest thing i found was this previous thread from July http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/149926 on using ruby-dl to load libcurl. Has anyone gotten any farther on this
2007 Feb 26
5
Continuing a "specify" block after failure
I have some high-level acceptance tests that read a bunch of files, process them, and then confirm that the processed output matches the expected output. That is, for each file "a.input" I have a corresponding file "a.expected" and I basically want to churn through all of them producing "a.processed" and making sure that "a.processed" equals
2005 Dec 28
4
Changing encoding on text
Hello, I have a set of templates creating some files for me. All data on my site is encoded using iso-8859-1. Now I want to save the text in the file using utf-8. I have tried using iconv, but whenever I have the require "iconv" statement in my model, there is some error happening in the model and the model doesn''t get loaded (not sure how to debug that). What approches to
2005 Dec 21
4
How can I taalk to our AS/400?
Hello, I can do this in java, but want to use Rails. How can I connect to our AS/400? Thanks Frank _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2007 Nov 21
7
describe scope
Hi, Googling ''RSpec describe scope'' didn''t yield much, so apologies if this question has been dealt with. It seem well known that a ruby class is ''visible'' between describes, and if this is a problem then you should use some counter as prefix or suffix: ''class Item_001; ... end'' Is there any work underway, or sheduled release where
2006 Mar 31
2
Backslash Escaping in View
Ok, I''m hoping this won''t be a forehead slapper, but take a look at this code: physician.name.sub(/''/, "\\''") I''m trying to substitute a single quote with a backslash and a single quote. This seems pretty simple right? Well, someone kick me and tell me why it''s not :) Here''s what I''m getting if the
2006 Jan 22
3
Download an Image using Net::HTTP
Hi, I need to download an image, and I''ve mucked about with Net::HTTP resp = Net::HTTP.get_response(''www.mydomain.com'', ''/test.jpg'') f = File.new("test.jpg","w") f.write(response.body) And various other combinations using HTTP.get etc. Anyway, I get an image, but it looks very psychedelic. This is obviously not the correct way.
2006 Mar 15
7
O''Reilly Rails Cookbook on Rough Cuts
Subject says it all. Anybody taken a look yet? http://www.oreilly.com/catalog/railsckbk/?CMP=ILC-GG7423313304&ATT=railsckbk After buying the Ruby Cookbook and the other Rails book, I''m pretty gunshy about another Rough Cuts purchase. Sean
2006 Jul 31
6
Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
I followed Duncan Davidson''s Sandboxing Rails with Darwin Ports guide and everything went fine up till the part where I had to install gems using gem install. I would get this stacktrace: Attempting local installation of ''rake'' Local gem file not found: rake*.gem Attempting remote installation of ''rake''
2007 Nov 09
2
RubyConf 2007 - Thoughts?
Hi, For those of you that attended RubyConf 2007, what were your impressions? Any more thoughts on JRuby, Rubinius, IronRuby or Wuby? Regards, Dan
2007 Jan 29
4
loading C extension in worker causes bus error on OS X only
In all likelihood, this doesn''t have anything to do with backgroundrb, but I''m stuck so I thought someone might be able to help. I have a pretty simple C extension that I built into a gem and have installed on my system. It works fine when required from rails (1.2.1). But when I have a Backgroundrb worker class use the extension (under os x), I get:
2008 Aug 06
6
Event loop responsiveness + client
Hello, on the application that I''m working on, we are using Thin. The server implements long polling and commands that alter its internal state. Connecting to the long poll is a very fast operation, while updating the state of the server is a relatively slow operation. The long poll connection is held open until there is a change to be sent to the connection. Here is my current
2006 May 17
3
Help mixin in class methods
Starting to feel more confident and code is DRYing up nicely, but I''ve hit a brick wall here and hoping someone can help me. I''ve got a module, TrustRanking, which extends a number of model''s instance methods, and I want to extend their class methods too, but I can seem to work out how to do it. Simply including the module from the class works a treat for the
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
2007 Feb 09
2
a series of tabbed forms
Hi, I''ve previously described one of my wish list items, http://kleb.tadalist.com/lists/public/427170 in http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/217068 where I basically take a hash of hashes and create a set of tabbed dialogs for each key of the large hash where each tab has a form to set each key-value pair of the embedded hashes. Toward this end I looked
2005 Feb 07
1
[matz@ruby-lang.org: Re: Performance of CGI::Cookie / SimpleDelegator fix]
Matz claims 1.8.3 might be released in April. If we''re lucky, maybe it will have the Windows socket connection fix applied. (Although the patch has been hanging around since last June... but maybe they just needed some prodding. :) ) Then RubyTorrent will be much more usable on Windows. ----- Forwarded message from Yukihiro Matsumoto <matz@ruby-lang.org> ----- Date: Tue, 8 Feb
2006 Apr 22
0
Rails Dispatcher Problem
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I seem to have the same error as http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/178689 The problem is that under apache it does not work, due to my evil firewall on my vps i cant check if webrick works or not. Below is from shell when i execute the dispatcher. The same thing happens whether i run it with .rb or .fcgi. Versions: ruby
2008 Jan 22
0
Revactor 0.1.0 released
Original announcement available here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/288133 Revactor (an Erlang-like Actor framework for Ruby 1.9) includes a monkeypatched Mongrel which uses Actors (implemented as Fibers) as the underlying concurrency primitive, rather than Threads. It seems to be performing fairly well (better than Threaded Mongrel, afaict). I have plans to move
2012 Jan 05
0
copy-on-write-friendly GC for Ruby 2.0
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/41916 This means you can run more Unicorn worker processes per-host if you have CPU for it :>