search for: bitsweat

Displaying 20 results from an estimated 58 matches for "bitsweat".

Did you mean: bitset
2006 Aug 08
12
Rails (internals) architectural question
Hi Another newbe here..... I was wondering if someone could please help me understand the controllers/view inner working in Production 1. If xxx_controller.rb is only loaded once does it mean there is only one instance of Controller serving all requests? 2. If only one instance of controller is there then how are controllers instance variables protected from data corruption when serving multiple
2006 Jul 07
1
Rails AR/Oracle Unit Test: [4578] failed (but getting better)
"bitsweat" has given AR/Oracle some love, but it''s still unhappy... http://dev.rubyonrails.org/changeset/4578 ------------------------------------------------------------------------ r4578 | bitsweat | 2006-07-07 10:34:45 -0700 (Fri, 07 Jul 2006) | 1 line find_one uses find_every.first instea...
2008 Jan 02
0
Re: RubyOnRails build 8525 failed
Fix for the bad (failing) test here: http://dev.rubyonrails.org/ticket/10664 On Jan 2, 5:33 pm, alexey.verkhov...@gmail.com wrote: > The build failed. > > CHANGES > ------- > Revision 8522 committed by bitsweat on 2008-01-02 09:03:56 > db:sessions:clear task uses session_table_name method. Closes #10631 [Cheah Chu Yeow] > > M /trunk/railties/lib/tasks/databases.rake > > Revision 8523 committed by bitsweat on 2008-01-02 09:08:14 > Ruby 1.9 compat: add #raise to AS::BasicObject, fixup Du...
2007 Nov 13
4
question about activerecord test_numeric_fields in base_test.rb
There''s a test for activerecord called test_numeric_fields in base_test.rb. here''s the test def test_numeric_fields m = NumericData.new( :bank_balance => 1586.43, :big_bank_balance => BigDecimal("1000234000567.95"), :world_population => 6000000000, :my_house_population => 3 ) assert m.save m1 =
2010 Apr 27
2
how to start an edge rails app
I want to check out an issue in edge rails. I''ve never used edge before and am having a lot of trouble getting it up and running. Following modified instructions from http://ariejan.net/2009/01/04/how-to-start-a-rails-edge-app-the-easy-way/ $ mkdir -p app/vendor $ cd app $ git clone git://github.com/rails/rails.git vendor/rails $ ruby vendor/rails/railties/lib/rails/cli.rb .
2006 Mar 20
0
Only 8 tickets remaining for Next Final Drive (Rails 1.1)
...8 tickets remain in the FD report. Next Final Drive (what will be fixed before Rails 1.1) http://dev.rubyonrails.org/report/14 #4234 AR serialization broken with PostgreSQL/Ruby 1.8.2 ActiveRecord David 03/14/06 #4155 type_name_with_module fails, throws Uninitialized Constant ActiveRecord rails@bitsweat.net 03/09/06 #4090 Redirect to index from an action with an id makes /index explicit ActiveRecord nseckar@gmail.com 03/05/06 #3909 ACID migrations for databases which support it. ActiveRecord nzkoz 02/21/06 #3517 [PATCH] allowing url_for to work with just created controller - great for actionma...
2007 Dec 21
0
[CruiseControl] RubyOnRails build 8464 failed
The build failed. CHANGES ------- Revision 8463 committed by bitsweat on 2007-12-21 11:51:01 Ruby 1.9 compat: url helper encoding M /trunk/actionpack/lib/action_view/helpers/url_helper.rb Revision 8464 committed by bitsweat on 2007-12-21 11:51:17 Ruby 1.9 compat: text helper M /trunk/actionpack/test/template/url_helper_test.rb M /trunk/actionpack/test/testin...
2008 Mar 29
0
[CruiseControl] RubyOnRails build 9128 fixed
The build has been fixed. CHANGES ------- New revision 9128 detected Revision 9128 committed by bitsweat on 2008-03-29 00:26:15 Revert spurious commit from [9126] M /trunk/actionpack/lib/action_view/helpers/active_record_helper.rb Revision 9127 committed by bitsweat on 2008-03-29 00:04:27 Track changes to unsaved attributes M /trunk/activerecord/CHANGELOG A /trunk/activerecord/test/cases/dirty_...
2008 Jan 03
2
Interresting Changeset for Rails Trunk...
>From http://blog.codefront.net/2008/01/02/whats-new-on-edge-rails-the-pilot/ A native Mongrel handler has been introduced. This is so that it can be worked on independent of Mongrel?s release cycle (the Rails handler is currently in the Mongrel codebase). Jeremy Kemper (bitsweat) has already made a minor performance improvement by moving the mutex from the handler itself into the dispatcher. This means that as Rails gets more threadsafe, the Rails team can push the mutex further down so that it?s not a (scary) giant lock (the existing Mongrel Rails handler has a synchroniz...
2006 Aug 24
9
[slightly offtopic] A small, fast Apache2.2 (if there is such a thing)
Hi. I''m using Apache2.2 built from source + mod-proxy + ssl + svn. Everything works fine but I''m sure you I could disable a ton of modules during the build process and in httpd.conf to speed things up and run a tighter memory footprint. Has anyone bothered building Apache2.2 from source disabling all the unneeded modules. I am planning on going through the Apache docs but I
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
"bitsweat" has kicked AR/Oracle while it was down... http://dev.rubyonrails.org/changeset/7769 ------------------------------------------------------------------------ r7769 | bitsweat | 2007-10-06 22:29:37 -0700 (Sat, 06 Oct 2007) | 1 line MySQL: speedup date/time parsing. ---------------------------...
2006 Apr 10
4
has render_component changed?
I have an application that worked fine, but after the recent updates has broken in some calls to render_component from views. I might be missing something but as far as I remember Rails updates is the only thing I''ve done in between. See the log: *** START LOG SNIPPET Start rendering component ({:params=> {:center_id=>10, :id=>25},
2007 May 31
0
Rails AR/SQLServer Unit Test: [6912] failed (but getting better)
"bitsweat" has given AR/SQLServer some love, but it''s still unhappy... http://dev.rubyonrails.org/changeset/6912 ------------------------------------------------------------------------ r6912 | bitsweat | 2007-05-31 10:15:56 -0700 (Thu, 31 May 2007) | 1 line Fix an edge case with find with a...
2008 Jun 17
6
x_send_file sends a 1 byte file
Hello, sorry if creating a dupe... I''m trying to download files to authenticated users in my app. I''ve set up x_send_file. All seems to be correct to me, however when I try to download any file, I get a 1-byte long file downloaded. I am getting this already in development - so no Apache, no lighthttpd, just a mongrel_rails start in the root of my app. Any help/hint would be
2006 May 10
4
validates_uniqueness_of and create atomicity
Hi folks, I have a question regarding validates_uniqueness_of, and similar before-filter-like events attempting to guarantee some DB state prior to modification. >From my reading of ActiveRecord, validate_uniqueness_of appears to cause a SELECT on the underlying table attempting to ensure that a record with ID(s) specified in the validates_uniqueness_of statement is not already present, prior
2006 May 25
5
[OT] Rails hosting question -- video centric
This is OT in the sense that it''s yet another hosting question and not strictly a problem I''m having with Rails. Basically, I trust and appreciate the knowledge of the folks on this list so I''m hoping for some insight. I have a new project that I''ll be starting up soon. It''s basically going to feed videos. The webapp piece is trivial. I''m
2006 Jun 27
2
Avoiding race conditions
I want to be able to display a number of messages, and guarantee that they''re only displayed once. Something like this : def get_new_messages @messages = Message.find(:all, :limit => 5, :conditions => ''new = 1'') @messages.each do |msg| msg.new = 0 msg.save end end However, there''s a race condition in the above code if two users try to access
2006 May 07
2
Can I find what time the current session was created?
I want to get the time at which the current session was created. It doesn''t have to be exact - I''m not worried about the fact that a user may not actually be on, yet the session is still active. I''d just like to be able to do session.created_at
2006 May 09
2
Disabling FOREIGN KEYs in a Rake task
Hi, How could I disable my database FOREIGN KEYs in a Rake task? Or, how could I call the execute() method in a Rake task? I''m trying to perform something like: task :delete_the_cippalippa => :environment do require RAILS_ROOT+''/lib/marsian.rb'' # FIXME: execute() is undefined execute "SET FOREIGN_KEY_CHECKS = 0" Cippalippa.delete(-1)
2007 Jun 23
0
[CruiseControl] RubyOnRails build 7089.1 fixed
The build has been fixed. CHANGES ------- Revision 7089 committed by bitsweat on 2007-06-23 01:58:41 Mock the beginning of the transaction also. References #8642. M /trunk/activerecord/test/transactions_test.rb M /trunk/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb See http://cruisecontrolrb.thoughtworks.com/builds/RubyOnRails/7089...