similar to: Dynamic assignment - a Ruby question

Displaying 20 results from an estimated 60000 matches similar to: "Dynamic assignment - a Ruby question"

2007 Jul 19
0
[mongrel_cluster] hosting multiple web sites via apache mod_proxy_balancer
I''m newbie to mongrel, I''m not able to config mongrel_cluster in order to host multiple web sites added/remove as apache VirtualHost. I followed codahale http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/ mixed with Wiki Radiant (I use Radiant as a rails apps to be deployed, 1 domain 1 radiant sites with its own document tree
2015 Apr 13
0
suspend / hibernate via lid / button doesn't work
Damjan, Glad to hear that worked for you. I don't know if the gnome people can make this very much easier. Different version of different linux distros might invoke hibernate differently. How would they know which one to map to the lid button? Also, some people might want to invoke sleep rather than hibernate. If there were system commands which were persistent over all distros and
2010 May 08
0
Survey on Web Geo-Spatial Open-Source Technologies: Questionnaire on Ruby On Rails
[Sorry for cross-posting] Hi everybody, I am part of the Spatial Information Systems Group in University College Dublin. We are conducting a survey on Open-Source technologies with particular focus on Geo-Spatial projects. Our goal is to collect first-hand knowledge about a number of Open- Source projects active on the Internet. With this work we hope to identify strong and weak points of each
2009 Feb 09
2
dynamic constant assignment
I have a constant set up like that : ALL_LOCALES => {"it"=>"Italian", "fr"=>"Français", "de"=>"Deutsch", "en- GB"=>"English (UK)", "es"=>"Español (España)", "pt-PT"=>"Português", "pl"=>"Polski", "en-US"=>"English
2006 Jun 27
5
setting up mongrel..
okay, i have officially given up on: apache with fastcgi lighttpd with fastcgi and now i am working on getting mongrel running.. not that i don''t think that the above two are viable options, i have just spent more time trying to get this app live than i did actually writing the app.. and i need to have something working for beta testing... i installed mongrel according to:
2006 Jun 27
0
How to model Hibernate multi-table inheritance with ActiveRecord?
Hi I have this "old" database mainly modeled for Hibernate. The java model has something called Asset. Asset is inherited by SomeAsset and AnotherAsset and the similar stuff is in the asset table and the specific data for SomeAsset is in table some_asset and for AnotherAsset in another_asset. This is then reflected in hibernate using a <joined-subclass/> element. What would
2007 Sep 22
1
Job trend cross-over for Ruby/Rails and Java combo
See the graph at http://tinyurl.com/35rnx4 For some time, I''ve been watching the three combinations ruby + rails, ruby + developer, java + hibernate + tomcat using the www.indeed.com job-trend grapher. They have (after a long climb), finally reached parity. Of course, you can pick different combinations and get entirely different results. -- Mike Berrow -- Posted via
2007 Jul 16
0
problem after mongrel_cluster 1.0.2 upgrade
Dear all, In the past, I''ve been successfully using mongrel_cluster following codahale setup [1]. Now I updated mongrel_cluster through gem to 1.0.2, and my previosly worked config is not working anymore. I report below a snip of one of logfile, it seems to me it is a missing gem problems, but this sounds strange to me, because my config was ok before the upgrade. Does
2013 Aug 14
1
local variable assignment: first copies from higher frame?
hi all -- this might not be the correct list for this question/discussion, though R-help didn't seem like the correct venue, either, so... i'm looking for just some extra clarification of how local variables are defined/bound, beyond the simple cases given in the Language document. the particular instance is when there is variable assignment inside a function. normally, this creates a
2006 Jul 31
0
Patch for #3438: Eager loading doesn''t respect :order of associations
Hello all, I still have a patch for #3438 (eager loading doesn''t respect association orders); it passes all unit tests, and has additional unit tests with full coverage. The patch is attached. == The Bug == Author.find(1).posts != Author.find(1, :include => [:posts]).posts if Author has_many :posts, :order => anything. This means that either one must avoid eager loading or
2008 May 29
2
Render partial yields "dynamic constant assignment"
I''m getting a syntax error when rendering a partial. This is a simple html partial with one instance variable inside it. Rendering as a "template" instead of as a partial works just fine. The error occurs 3 lines after the last line of HTML code in the partial. There is no line 72! Here is the error: SyntaxError in Building_blocks#preview Showing
2015 Aug 24
3
IMAP hibernate feature committed
http://hg.dovecot.org/dovecot-2.2/rev/64c73e6bd397 Today I finally committed the "imap-hibernate" feature that I first started developing about a year ago (and had been thinking about for several years before that). The main purpose here is to reduce the number of imap processes and the amount of memory they use by moving IDLEing connections into imap-hibernate processes where they are
2018 Sep 24
1
Centos on Dell XPS15
On 09/24/2018 01:00 AM, anax wrote: > > > On 9/24/18 3:20 AM, H wrote: >> On 09/21/2018 03:59 PM, H wrote: >>> On 09/18/2018 08:58 PM, H wrote: >>>> On 09/07/2018 04:01 AM, H wrote: >>>>> On September 4, 2018 10:51:09 AM GMT+02:00, Patrick Laimbock <patrick at laimbock.com> wrote: >>>>> >>>>> ???? -----Original
2018 Oct 23
0
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
Aki, is it configuration error or dovecot bug ? Can I use imap-hibernate on FreeBSD ? Alex ????? 2018-10-19 10:31: > Yes, > > After I changed mode and user/group > > Oct 18 19:17:50 server dovecot: > imap(email at example.com)<57613><VVXuZ4N4avOASO/q>: Error: kevent(-1) > for notify remove fail > ed: Bad file descriptor > Oct 18 19:17:50 server dovecot:
2018 Oct 23
0
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
Yes, but my configuration is FreeBSD 10.4 and ZFS I\'ll try to reconfigure. Thanks Aki Tuomi ????? 2018-10-23 10:48: > I tested with FreeBSD 11 and it worked just fine... did you follow > https://wiki.dovecot.org/IMAPServer/Hibernation this to set it up? > > Aki > >> On 23 October 2018 at 10:15 Alex <alex at jili.ga> wrote: >> >> >> Aki, is
2006 Jan 11
0
Issues with dynamic finders ruby-1.8.4 / rails-1.0.0
Hi all, I am not certain this is a 1.8.4 related issue, but I think it might be. I''m trying to use dynamic finders for my Category and Post models, such that a request /blog/categories/general would detect the slug and do a find_by_slug() instead of find(params[:id]). My have_slug?() method works fine, and the dynamic finders *were* working fine until I moved it off my local machine
2018 Oct 24
0
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
kevent(10,0x0,0,{ 7,EVFILT_READ,0x0,0x0,0x1,0x4207a140 },4,{ 2147483.000000000 }) = 1 (0x1) accept(7,{ AF_UNIX \"\" },0x7fffffffe7fc) = 11 (0xb) getsockname(11,{ AF_UNIX \"/var/run/dovecot/imap-hibe\" },0x7fffffffe7fc) = 0 (0x0) fcntl(11,F_GETFL,) = 6 (0x6) fcntl(11,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0) getpid()
2006 Jan 31
2
Relationship navigation issue
class Event < ActiveRecord::Base belongs_to :venue belongs_to :category end class Venue < ActiveRecord::Base belongs_to :city end class City < ActiveRecord::Base belongs_to :state end I want to retrieve all event records belonging to a state. Coming from hibernate background I tried something like this: def self.list_for_a_state(state_id) find_by_sql(["select e.*
2015 Aug 25
0
IMAP hibernate feature committed
> On 25 Aug 2015, at 20:55, Thomas Leuxner <tlx at leuxner.net> wrote: > > * Timo Sirainen <tss at iki.fi> 2015.08.25 17:28: > >>>> ==> /var/log/dovecot/dovecot.log <== >>>> Aug 25 09:42:07 nihlus dovecot: imap(tlx at leuxner.net): Error: net_connect_unix(/var/run/dovecot/imap-hibernate) failed: Permission denied >>>> Aug 25
2006 Apr 13
3
Java/J2EE DAO/model objects vs. Ruby/Rails model objects
In typical Java/J2EE applications, domain model object do not have much logic, they are basically data holders. It seems to be considered a sin to put persistence logic in the domain model objects, instead it should be put a DAO (Data Access Object). I have always thought this seems funny, after all, what seems more natural/object-oreiented?: user.save() or userDao.save(user) In Ruby/Rails,