search for: csn

Displaying 20 results from an estimated 112 matches for "csn".

Did you mean: can
2006 Feb 07
17
Easy way of dealing with nil properties in templates?
Is there an easy way to deal with nil properties in templates? All I''m aware of are these methods, and it''s quite tedious and surely violates DRY. <%= @member.name unless @member.name.nil? %> <%= @member.name.to_is %> <%= "#{@member.name}" %> csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2008 Aug 21
1
Kruskal.test() on lists
Hi, I am trying to do a kruskal wallis test on two lists, fVisited and cSN: fVisited[[1]] [1] 0.17097623 0.30376141 0.17577266 0.14951855 0.03959753 0.08096217 0.05744888 0.02196257.... .... cSN[[1]] [1] 0.08557303 0.36477791 0.19601252 0.12981040 0.05351320 0.10385542 0.03539577 0.03106175.... So if I just want to do a test on just one of the entries this is simple e...
2006 Jan 21
6
Redirecting in a view?
Is there a way to do this in a view? <% redirect_to ''http://url.com'' %> All I can think of is outputting a link and using Javascript to click it, or probably do something like ''doc.location(url)''. csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2005 Nov 06
11
Ideal Rails / Apache config?
Hi All, Just about to set up RoR on our server and was wondering what the ideal setup for RoR is these days? Apache 1? Apache 2? fCgi? Any guidance would be helpful! Thanks, -Adam
2006 Feb 04
4
Page caching feeds and cache file extensions
...#39;'Base.page_cache_extension'' globally, but I don''t want to do that for everything. I also tried setting that option just in the show method, but that doesn''t work. How can I get the cached pages for just Feeds#show get saved with xml/rss/atom extensions? Thanks csn -- Posted via http://www.ruby-forum.com/.
2006 Feb 13
2
categories and admin/categories - different controllers and templates?
...''public''|''admin'' in many functions. And I have several other contollers - yuck. I thought about putting everything in one big monolithic admin controller (list_categories, edit_category, destroy_category, list_members, list_links, etc.). Thanks for any thoughts! csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2005 Dec 28
4
undefined method `include''
...ay be a problem with GCC 4 on OSX, but I''m using Redhat with GCC 3.2. http://weblog.rubyonrails.org/articles/2005/12/22/is-gcc-4-0-incompatible-with-ruby-on-os-x-and-elsewhere I''ve tried the above code with the command line and it works fine. Any idea what the problem is? thanks csn __________________________________ Yahoo! for Good - Make a difference this year. http://brand.yahoo.com/cybergivingweek2005/
2006 Jan 11
2
map.connect - redirect with 302?
Is it possible to write map.connect rules in route.rb that externally redirect (HTTP 302) to other actions? thanks csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2005 Dec 01
12
Difficult process of restarting SCGI, Lighttpd, Apache, sessions
...; errors on Rails'' pages, ''Web server may possibly be configured wrong.'' in scgi''s log, nothing in Rails'' logs, and only proxy connection errors in apache''s logs if it can''t connect. Is there an easier and less problematic way? thanks csn __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
2005 Nov 22
11
Building a conditions clause (for find) of multiple optional params?
...m.find(:all, :conditions=>["category_id=? and member_id=?", @params[''category_id''], @params[''member_id'']) elsif ... end Is there a simpler way? Such as just adding to a conditions array, then joining and passing it to find() as :conditions? thanks csn __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
2006 Feb 07
4
ruby-forum.com problems?
Anybody else experiencing problems accessing ruby-forum.com ? For the past week or so I''ve mostly not been able to access it. It either never loads, or displays a 500 error message. I prefer it though to direct email, or the Mailman archives. csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006 Jan 11
2
Handling ''recognition failed''?
How can I handle ''recognition failed'' errors so they act like typical 404 errors? By displaying a message, page and/or redirecting. thanks csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
1999 Jan 02
1
SAMBA digest 1924
Hello, > I have the following entries, among others, in my smb.conf file: > ===== cut here ===== > logon path = \\%L\profiles\%U > [profiles] > comment = User Profiles > path = /usr/home/profiles > public = yes > writable = yes > browseable = yes > ===== cut here ===== > So, I expect 'net use z: /home' on a win95 machine to map z: to >
2006 Feb 09
2
select options for HABTM?
...I have a ''parks'' table and the park model has a HABTM to the ''states'' table. On the park edit page, I''d like a multiple select box to appear with all states show, and those in the parks_states table selected. Does anybody have some example code? Thanks! csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006 Jan 14
12
Dedicated Host Recommendations?
...d server at ev1servers, but it''s getting rather antiquated (Redhat 9) and am looking to upgrade. I''m thinking about serverbeach.com - one of their CentOS servers. Anybody have any recommendations for dedicated servers on which to run Rails? Hopefully less than $200/month. Thanks! CSN __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006 Jan 26
4
Override has_many :order at run-time?
Is it possible to override has_many''s :order attribute at run-time? e.g. something like: <% for category in @site.categories(:order=>''name'') %> ... <% for category in @site.categories(:order=>''rank'') %> ... thanks csn -- Posted via http://www.ruby-forum.com/.
2006 Feb 13
1
Paginate @member.items?
...5, :order=>''datetime desc'' And even more so if it could all be done in the template: <% for item in @member.items(:limit=>25, :offset=>params[:page]*25) %> ... <% end %> <%= pagination_links @member.items, offset, limit, ... %> Any ideas? Thanks, csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006 Jan 30
2
Finding grandchildren with has_many?
...even sure if '':include'' does anything - I thought it was supposed to cause a join, but the query log shows just ''comments'' being queried. Anybody figured out how to do this? (Besides adding ''site_id'' to ''comments''.) Thanks! csn -- Posted via http://www.ruby-forum.com/.
2004 Nov 21
1
Analysis of pre-calculated frequency distribution?
Sorry for the dumb question, but I cant work out how to do this. Quick version, How can I re-bin a given frequency distribution using new breaks without reference to the original data? Given distribution has integer valued bins. Long version, I am loading a frequency table into R from a file. The original data is very large, and it is a very simple process to get a frequency distribution
2006 Jan 21
4
Ruby processes consuming 1,000 megs of swap space
Hi all. The subject pretty much says it. I''m running on a VPS-style shared server at pipespring.com. I''ve got Typo setup, and have been running it fine for about a month. However, today I got an e-mail from my host saying they disabled Ruby (chmod 000) because it was using waaay too much swap space. I haven''t changed anything with my server at all (Rails or otherwise)