search for: kikobu

Displaying 20 results from an estimated 36 matches for "kikobu".

2007 May 02
13
RSpec 0.8.2 pain, missing spec/rails?
Hi. I''m upgrading a project from an 0.8.0 pre-release gem to 0.8.2. I''ve installed the 0.8.2 gem, and the rspec_on_rails 0.8.2 plugin: ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec When I try to run my specs though, I get the below error. It''s as if the spec_helper cannot find "spec/rails". I''ve noticed that
2006 May 01
2
Capistrano restart task
Hi. Have anyone figured out a simple restart task for mongrel using Capistrano? Br. Morten
2006 Apr 29
2
Streaming to/from MySQL
Hi. When I upload a 10Mb file (from my browser) to my Rails app, a Tempfile object gets created on the server. When the contents gets written to the database, it''s a simple INSERT, so basically the data is read to memory and then inserted into MySQL. How come the data is not streamed to the DB so we avoid the memory issue? Is this a short coming of ActiveRecord or the MySQL/Ruby
2006 Mar 29
1
Handlers
Anyone know where I can find some sample handlers? Has an API been released yet? Br, Morten
2005 Oct 02
2
Can CentOS 4 be installed from CD1 only?
Hi. I'm installing CentOS far from home and forgot the CDs... I don't have time to download all 4, what are my best options? I can download CD 1 and perhaps 2 - is that enough? Is there a way to install directly over the internet from one of the mirrors? Thanks. Morten
2003 Oct 22
1
Filesystem panic
Hi, I'm running RH9, 2.4.20-18.9. Each night, the server mounts an external FAT32 disk using firewire, and performs backups to it using rsync. Twice within the past 3 months, the backup process has resulted in machine crash (complete hang, hardware reboot needed). From /var/log/messages: Oct 22 04:02:20 yoda kernel: Filesystem panic (dev 08:21). Oct 22 04:02:20 yoda kernel: fat_free:
2007 May 23
1
Troubleshooting unresponsive mongrel
Hi. I have mongrel 1.0.1 running a really simple application and found to lock up (rarely, but still). There''s nothing in the logs, it just stops responding. When I mongrel_rails stop it, I get lots of entries like: Waiting for 3 requests to finish, could take 60 seconds /usr/lib64/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:675:in `process''
2006 Mar 23
3
User/group/role model question
Hi. I have an app where "users" can belong in "groups" with certain "roles" (eg. a user can own a group). Normally I''d make users has_and_belongs_to_many groups and put a role_id on the join table. But - a role is really a first class citizen also, so a model is in order. The problem with making a "role" model which has_many "users"
2006 Jul 17
3
Extending Ruby classes in Rails
Hi. I''ve placed the following in lib/mods.rb: class String def String.foo "bar" end def bar "baz" end end But it does not get picked up: white:~/svn/tagticks morten$ script/console Loading development environment. >> String.foo NoMethodError: undefined method `foo'' for String:Class from (irb):1 >>
2005 Oct 18
4
Easiest virtual mail setup?
Hi. I wish to configure a CentOS 4.1 box to be a mail server. I'd like a setup with virtual mail accounts, using eg. exim, courier and mysql. Do any applications exist that already combine this in an easy to deploy manner (yum as far as possible)? I've seen XAMS.org but that's discontinued. Br, Morten
2006 Mar 16
4
Mongrel 0.3.11 - speed test ... seems slow
I did some basic speed test on my rails application. I use Centrino 1.7GHz, WinXP. For simple test I used Apache ''ab -n 100 -c 10 http://url.... '' Running Mongrel 0.3.11 I got: development env. = 4.5 req./sec production env. = 11.5 req./sec Running Webrick I got: development env. = 5.7 req./sec production env. =25.9 req./sec Does anyone know why the webrick is still faster?
2006 Jul 19
6
ActiveRecord::RecordNotSaved - bizarre behaviour.
Hi. I get a RecordNotSaved exception when trying to create a user record. The error: User Columns (0.005930) SHOW FIELDS FROM users SQL (0.000465) BEGIN SQL (0.000466) COMMIT ActiveRecord::RecordNotSaved (ActiveRecord::RecordNotSaved): ... As you can see, there''s no INSERT SQL generated, which is the root cause of the problem. In my user model, I have the following
2005 Oct 04
2
Resolving a yum conflict
How can I resolve a yum conflict? A lot of other packages depend on the conflicting file. Thanks. Morten [root at machine ~]# yum install xorg-x11-deprecated-libs Setting up Install Process Setting up Repos update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100%
2006 Jun 05
18
Ideas for Rails Shirt Graphics
I''ve had a couple ideas for Ruby on Rails shirt graphics for a little while now: 1. "Fuck You" superimposed over, oh, probably a Ruby gem. Or Rails of some sort. 2. "Ruby on Rails" superimposed over rails of cocaine. Maybe also with a graphic of a crazed looking coder. Anybody got graphics? Or can make them? Heh! Joe -- Posted via http://www.ruby-forum.com/.
2006 Aug 15
3
OT: Reliable service partners (mail, billing)
Hi, I figure that a lot of you are building webapps aimed for the global market, so I''m hoping that you''d like to share some experience. * Anyone know a good vendor for hosting POP3 mails with virtual subdomains? * Anyone know a good vendor for recurrent customer billing and credit card validation etc.? Thanks Morten
2006 May 29
0
MissingSourceFile (no such file to load -- breakpoint):
Anyone seen this before? I did a gem update recently and may have broken something. But I''d still like to decipher what the message below actuallt means: MissingSourceFile (no such file to load -- breakpoint): /usr/lib64/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'' /usr/lib64/site_ruby/1.8/rubygems/custom_require.rb:21:in `require''
2007 Oct 01
2
FileNotFoundError
Hi, I saw someone else have this earlier. The recommendation is still to downgrade to 0.11.3? Oct 01 19:56:09 ey01-s00116 rails[3175]: Ferret::FileNotFoundError (File Not Found Error occured at <except.c>:117 in xpop_contextError occured in fs_store .c:329 - fs_open_input tried to open "/data/zendesk/current/config/../index/production/ticket/_l.cfs" but it
2006 Apr 12
0
Looking for a simpler model using :through associations
Hi. I''m building a setup where I have users and groups, and a user can have an optional title in a group (eg. "owner"). I''m doing this using "has_many :through" associations, using a Role model object as the join hub: class User < ActiveRecord::Base has_many :roles, :dependent => :destroy has_many :groups, :through => :roles end class
2006 Aug 09
2
Least painful MySQL 4.1 -> 5 upgrade on CentOS 4.1
Hi. I've happily been running MySQL 4.1 on my CentOS 4.1 x86_64 server. But I need to upgrade to MySQL 5. Any recommendations on how to accomplish this without too much pain? I guess I'll need to get RPMs from the MySQL website. Br, Morten
2006 Mar 12
1
Subversion 1.3 RPM for x86_64
Hi. I'm having problems [1] building the RPMs from the source RPM, anyone know where/if I can find RPMs for x86_64? Thanks. Morten [1]: