search for: nagaokaut

Displaying 20 results from an estimated 53 matches for "nagaokaut".

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
2006 Oct 24
1
Broken thread Safe connection Management on Mysql (Mysql too many connections errors)
...ry leak (= why killing thread don''t make connections to be GC, or more precisely why ObjectSpace.define_finalizer does not work in this case) but it seems to be a bit tricky.( some rubyist seems to have the same kind of problem with thread and ObjectSpace.define_finalizer http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/291 or http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/145913) Hope this help, if someone has better solutions please talk :) Renaud Morvan http://exalead.feedback20.com
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 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 implementation? I have to admit I''m a ruby newbie and I''m not as strong in C as I would like so I''m having troubles extending this example farther. I...
2007 Jan 25
1
Link to possible code for symbolic chmod
I''m not sure if this is perfect, but it seems to work well for me so far. I haven''t tried to integrate it into Puppet because I''m still a bit new to Ruby. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/96956 Trevor _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
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 Feb 26
5
Continuing a "specify" block after failure
...end end The problem with this is that a failure on one file prevents all the others from being tested. What would be the "best practice" way to overcome this shortcoming? The solution I used with Test::Unit was to add an "ErrorCollector" as described here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/138320 Basically it catches exceptions as they are raised, sending messages to the Test::Unit machinery so that the problems can be counted and reported, but continues processing. Would a similar technique be a good idea for RSpec? Or should I just restr...
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:
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
2008 May 26
9
App#process_message
how can rewrite the App # process_message to treat the messages of the system? wxruby -- Posted via http://www.ruby-forum.com/.
2007 Sep 23
16
WinRuby?
Hi all, With the latest 1.8.6 release out today, I was wondering - what would you all think of a Windows-only fork of Ruby? I mean Perl has ActiveState, right? It ships with a slightly different interpreter and different libraries, so why not Ruby? Here''s what I''m thinking: * Win2k or later. No 95/98/ME support. No cygwin/mingw, either. * Assume VC++ 8. Use whatever
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 at Erik Veenstra''s RubyWebDialogs, b...
2006 May 18
2
rails and .net webservices
Hello. I am novice in ruby. How can i use .net webservice method from ruby. Thanks. -- Posted via http://www.ruby-forum.com/.
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 1.8.4...