search for: rogerpack2005

Displaying 13 results from an estimated 13 matches for "rogerpack2005".

2008 Apr 30
3
pretty url
I want to write a permalink like /year/month/day/title, code is as follows: self.permalink = "#{now.year}/#{now.month}/#{now.day}/#{title}" in the view, I use restful url post_path(@post). And in the html source code, the url is /posts/2008%2F4%2F30%2FTest You can see, the ''/'' is replaced by "%2F", which is not I expect. How not to replace the
2008 Apr 30
5
get_peername - start_server vs. connect
Hi, On windows, get_peername works both with connections obtained via start_server, and connections obtained via connect. On linux, get_peername seems to only work with connections obtained via start_server. (I''m using svn HEAD.) I''m wondering which is the intended behavior? (I realize get_peername is less useful for connections obtained via connect, since one should already
2007 Nov 07
4
Gracefully stopping EventMachine?
Hello all, I''ve been learning Ruby and playing with a chat server I built using GServer. After into an issue I found with GServer, that no one else seemed to notice (actually, similar to this question, GServer is hard to kill nicely, especially when you want to.), I found references to EventMachine, and rebuilt my server using it. I much prefer EventMachine''s model. The
2009 Nov 04
1
question
Perhaps it would be useful to do some parsing of the messages... it "should raise an Exception if record is invalid" do end # expects that block to raise Thoughts? -r
2007 Sep 15
2
http keep-alive?
I read this in a previous post ( http://rubyforge.org/pipermail/mongrel-users/2006-December/002354.html) .... First, Mongrel accepts remote clients and creates one Thread for each request. Mongrel also enforces a single request/response using Connect:close headers because Ruby only supports 1024 files (so far). If Mongrel doesn''t do this then people like yourself can write a simple
2007 Sep 07
35
multi threaded theoretically useful?
So here''s a random question: if a (Ruby) multi-threaded rails server could exist (bug free), would it be faster than using a mongrel cluster? (I.e. 10 mongrel processes versus 10 Ruby threads). I''m not sure if it would. RAM it might save, though. Any thoughts? -Roger -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Sep 13
0
Mongrel hangs, consumes all CPU on
Maybe just monitor it with monit and kill+restart it when it gets out of control, as a stop gap :) -Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070912/6a56fd3c/attachment.html
2007 Sep 17
0
Apache mod_proxy_balancer hang on high traffic
Try nginx + evented mongrel instead of apache + normal Mongrel. Maybe :) -Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070917/c6f6f43a/attachment.html
2007 Sep 22
0
sockets reading wrong data
I am aware of a problem with multi-threaded ruby apps, in which one socket reads from another''s input/output or what not. Zed reports this as a generic problem in Ruby multi-threaded apps, and I''ve seen the same in my own programs. I have, however, never heard of this becoming a problem for mongrel. Is this true? Is there something mongrel does to get
2008 Apr 30
0
RAM saving plugins
Thought I''d put in a plug for some plugins I noticed the other day. http://pennysmalls.com/ slim attribute plugin purports to ''lazy load'' your AR attributes, so if you never use that description, it never gets loaded. Looks nice. http://blog.chak.org/tag/hash/ hash_extension plugin Allows for you to retrieve hashes instead of instantiated AR modes.
2010 Aug 18
2
dynamic tests possible?
Sorry if this is a newbie question, but here goes. I was wondering if the following is somehow possible: for file in Dir[''*.bmp''] it "should be able to parse #{file}" do p file # test this file end end Currently rspec seems to evaluate the blocks after the fact, leading to "file" always being the last file in the list. I was unsure
2007 Feb 16
4
Ideas for rails
Here are a few suggestions, wondering what others thought: When you generate a model for a DB table, it would be nice if the model.rb contained the DB schema (kind of like # commented out schema) right in the model file. This would make reference WAY easier and put all of the DB stuff in one easy file. Thanks. also nice, of course, woudl be for rails to try and ''guess'' the
2013 Jun 26
1
some feedbacks seen on btrfs
First off, thanks for an awesome file system, it is working well for my purposes of compressing a filesystem on a small VPS. Woot! I thought I''d call out a few things (in the hopes of spurring improvements) I''d seen about btrfs (in case they weren''t common knowledge...):