similar to: thoughtworks site down? / another tiny patch for Rails 2 compatibility

Displaying 20 results from an estimated 600 matches similar to: "thoughtworks site down? / another tiny patch for Rails 2 compatibility"

2008 Mar 01
5
rspec with continuations: very strange
I appear to have written code which travels backwards through time: http://www.vimeo.com/742590 This disturbs me immensely. If anyone can explain it, that would be cool. I think it''s an illusion brought about by how RSpec wraps the code it executes, and by the sheer weirdness of continuations. -- Giles Bowkett Blog: http://gilesbowkett.blogspot.com Portfolio:
2008 Jan 11
2
guide to good mocking?
Hi all - does anyone know of a good blog post or wiki or something with a good guide to mocking? I''ve got some degree of responsibility for people who are creating mocks. I''m supposed to actually be telling them the best way to do it. In some cases we have code with like a bazillion mock(:x) statements and it''s kind of out of control. I have an idea how the specs should
2008 Jan 17
5
unusual challenges speccing external software
This is something I''ve come up against twice. First, I have an interactive editor which calls vi, emacs, or TextMate (etc.) via Unix, and then loads the file handed to the editor back into IRB after it''s edited and saved. I guess that makes it a special case of a more general question, which is how do you spec external processes, with a slightly more complicated version of the
2008 Jan 04
7
best way to modify spec (the command-line tool)?
Hi all, where I work we''ve cooked up a kind of ghetto profiler for our specs. It basically just does this: time = Time.now # run the spec puts "woah! dude. long spec." if time > 1.second I''m simplifying here. I think the threshold is actually 0.1 seconds, and we use more precise language, and highlight the spec in red via terminal colors, etc. But the way it works
2008 Jan 26
6
UI Integration with RSpec?
Hi all, Is there any integration with testing tools such as RSpec or Test::Unit planned? I see that the cruise task is run correctly, but the tests show up underneath the build log. Ideally I''d like them to show up the same way that they do in ''java'' CruiseControl, in their own section of tests. Will.
2007 Dec 29
5
./script/story command
Below I''ve pasted a ./script/story command I''ve been using for about a week. It has three modes of operation: 1. ./script/story with no arguments will run all *.story files in the story path 2. ./script/story with a path or glob will run the specified stories 3. If input is passed in via STDIN, it runs that text as a story. This opens up story running via a simple interface
2008 Feb 01
0
non-pending spec returning pending
I''m speccing some code which monkey-patches initialize on ActiveResource::Base. The monkey-patch lives in a module. My spec looks like this: describe MyModule, "doing stuff" do it "adds methods to ARes subclasses" do class Thing < ARes::Base ; end (lambda {Thing.new.the_new_method}).should_not raise_error(NoMethodError) end end I did this thing
2007 Jul 01
1
how many Mongrels?
Hi - I''ve got a pretty popular Rails app on a Mongrel cluster with Apache and mod_proxy_balancer. How do I decide how many Mongrel servers to put in the cluster? I don''t have stats for the number of requests hitting the server yet, but I should have that data soon. The server has 2GB of RAM and has to do a lot of work with RMagick, including generating and storing lots of
2008 Jan 05
5
multi-app merb
Ezra, I love merb, especially because it''s keeping the things that Rails does well and improves on things that Rails hasn''t done so well. One of my biggest pain points with Rails has become multi-app integration. A lot of web sites consist of multiple apps (e.g. a core site, a forum, a blog/cms, etc.). Doing this sort of thing is very ugly and inefficient with the current
2008 Jan 17
3
CruiseControl problem. Broken Pipe?
Hi Friends, Just happened to catch this err in the CC log: Build loop failed BuilderError: Write failed: Broken pipe ./script/../config/../app/models/subversion.rb:98:in `execute_in_local_copy'' ./script/../config/../lib/command_line.rb:86:in `call'' ./script/../config/../lib/command_line.rb:86:in `e'' ./script/../config/../lib/command_line.rb:84:in `popen''
2006 May 14
2
Capistrano + symlink to a shared images directory
Hi everyone, I have deployed a rails tumblelog site via capistrano, but have run into a problem. What I am wanting to do is this: In my deployment script create symlinks from the public directory so that the images directory points to a shared images directory. Reason being is I am adding an image upload to the site (not file_column) and need to easily add the uploaded images and thumbs into
2007 Apr 30
2
Serving static files with Merb
Hi, I''m using Merb from the svn repository (revision 224, Merb 0.3.0). I am playing around trying to return static files. I''m opening a File and returning that from the controller. I''m setting the mime type and the content length (other wise nothing much happens). All requests for static content go through the same action of a particular controller. This is
2008 Apr 29
4
Default values for belongs_to and has_one
There really doesn''t seem to be a *declarative* way to define a default value for belongs_to and has_one associations class Person < ActiveRecord::Base belongs_to :address end p = Person.new p.address.city = ''Atlantis'' # Bummer! Of course, there''s an easy way to avoid this class Person < ActiveRecord::Base belongs_to :address
2007 Sep 12
19
Mongrel hangs, consumes all CPU on shutdown
Hi, I''m doing development with Mongrel 1.0.1 on Ruby 1.8.4 / OS X 10.4.10, and I''ve found that often when I shut down my server with ^C, it hangs for a while, gobbling up all CPU. Sometimes it stops after a few seconds, sometimes it''s run for several minutes at least. This happens across all the apps I develop on, but it seems to hang longer after
2007 Nov 05
29
Mongrel and memory usage
Hello, I''m running a Rails application which must sort and manipulate a lot of data which are loaded in memory. The Rails app runs on 2 mongrel processes. When I first load the app, both are 32Mb in memory. After some days, both are between 200Mb and 300Mb. My question is : is there some kind of garbage collector in Mongrel? I never see the two Mongrel processes memory footprint
2008 Aug 13
2
Tiny help for tiny function
I just started to write tiny functions and therefore I appologise in advance if I am asking stupid question. I wrote a tiny function to give me back from the original matrix, a matrix showing only the values smaller -0.8 and bigger 0.8. y<-c(0.1,0.2,0.3,-0.8,-0.4,0.9) x<-c(0.5,0.3,0.9,-0.9,-0.7,0.3) XY<-rbind(x,y) extract.values<-function (x) { if(x>=0.8|x<=-0.8)x
2006 Apr 22
2
put variable in session each time any controller runs?
Hi -- well, that''s what I''m trying to do. Does anyone know what the best way to do it is? I have three controllers, each one has a hidden tag, and I want each one to salt its respective tag with the name of the action in effect, at the time that action runs, for every action in the controller. -- Giles Bowkett http://www.gilesgoatboy.org
2007 Sep 15
1
ANN: [Yet Another ] AJAXy Petstore
Hi all, It''s obvious (isn''t it?) that the world needed another Petstore.If it''s not, then let''s just say that for some esoteric reasons (to do with training and the JRuby project), some people in ThoughtWorks decided to create one, anyway. With rounded corners, gradient fills, autocompletion search, yellow fade effect and sundry Web 2.0 features... but no tag
2007 Aug 12
0
[PATCH] [TINY] make scripts executable
Super simple patch to chmod 755 the scripts dir in the generator -------------- next part -------------- A non-text attachment was scrubbed... Name: merb-executable-scripts.diff Type: application/octet-stream Size: 510 bytes Desc: not available Url : http://rubyforge.org/pipermail/merb-devel/attachments/20070811/c1f6d24b/attachment.obj
2006 Dec 25
2
Merry Christmas ! and a tiny question
Hi all, I hope You have had nice Christmas Eve. My question: I've updated version 4.4, in that version of Gimp is 2.0.5 and the up-to-date version at Gimp website is 2.2.13 (stable). There seems to be 2.2.8 for FC3 but that's not the newest and thus I don't want to get it. How I should proceed when, - I want the latest stable version, - want to get some optional packages - want to