search for: dain

Displaying 20 results from an estimated 43 matches for "dain".

Did you mean: dail
2006 Apr 04
6
Console for Testing Routes?
Hi, when the "Agile Web Development" book talks about routes, there are what looks like console transcripts like the following: URL> store @params = {:controller => ''store'', :action = ''index''} Is there something like a console for testing routes (where you could put in a url and see how rails would route it)?? Ingo -- Posted via
1999 Dec 10
2
[David Huggins-Daines <dhd@plcom.on.ca>] Bug#52414: ssh-add uses ssh-askpass, but ssh doesn't
Damien, Here's a forwarded bug for you. Cheers, Phil. --[[message/rfc822]] Subject: Bug#52414: ssh-add uses ssh-askpass, but ssh doesn't Reply-To: David Huggins-Daines <dhd at plcom.on.ca>, 52414 at bugs.debian.org Resent-From: David Huggins-Daines <dhd at plcom.on.ca> Resent-To: debian-bugs-dist at lists.debian.org Resent-CC: Philip Hands <phil at hands.com> Resent-Date: Fri, 10 Dec 1999 04:18:07 GMT Resent-Message-ID: <handler.52414.B.944...
2006 Apr 23
3
ANN: Polygons library + sweet demo
...releasing an extraction from an application I''m currently working on. It''s a small library for dealing with points and polygons, called Polygons. It really just implements some textbook algorithms w/ Prototype-style JavaScript classes. Check it out here: http://polygons.mdaines.com/ The demo on that page (Firefox/Safari only right now) uses the point- in-polygon function and a little trickery (nothing too involved, though) to make dragging non-rectangular objects way more natural. In the application I''m working on, I combine that with the rotation funct...
2006 Jun 02
6
Set instance variable for all actions in the Controller
Can I set an application wide instance variable that is available for all actions...and their views? eg. class ApplicationController < ActionController::Base @current_user = User.find(session[:user_id]) end and everywhere I can call @current_user.id and I can get that object? Even down in the views? I could not get this to work... Thanks in advance, Jeff -------------- next part
2006 Jun 06
1
Default value plugin
...lated somehow. So you can do something like this: (repeated from an earlier post and the README) class Mixture < ActiveRecord::Base serialize :color default_value :color, [255, 0, 0] end m = Mixture.new m.color # => [255,0,0] Here''s the README: http://mdaines.com/svn/plugins/default_value/trunk/README To install: (as usual) script/plugin install http://mdaines.com/svn/plugins/default_value/ trunk Thoughts, comments? -- Michael Daines http://www.mdaines.com
2006 May 22
3
rails naming convention for model: community
Hello, How does Rails deal with the pluralization of community. I have "community" as my model name. Will Rails automatically look for a table name "communities" or do I have to name the table "communitys"? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 14
2
Can pagination work with caching
I am currently caching a page that indexes blog entries. Paginate was used to break the entries up. Now when you click on next at the bottom of the page it is only reloading the first page. Im hoping, against odds, that someone here knows of a way to make paginate and cache play together. -- Posted via http://www.ruby-forum.com/.
2002 Mar 10
1
libssh
...tion for libssh? From looking through the openssh code, it seemed that i might have to write my own based of libssl using some of the openssh code as an example. If there is already something that i could use, then i'd much rather do that =). Any direction or help would be great, thanks. --dain
2005 Jun 19
3
ADS member server w/ winbind on debian sarge
...md5 password sufficient pam_winbind.so use_first_pass <EOF> /etc/pam.d/common-session: session required pam_unix.so session sufficient pam_winbind.so use_first_pass <EOF> there are security audit entries of the samba machine logging on and off, using kerberos. ?? -- Noah Dain noahdain@gmail.com
2006 Sep 11
1
samba ldap pdc w/unix accounts: local unix and ldap unix users can't resolve uids to names on the server
...r respective shares. However, when logged into the samba/ldap server, local users other than root cannot resolve names in ldap. No ldap accounts show up for 'getent passwd' or 'getent group'. I can login to the system with an ldap user account, but when I do so I get: NOTE: 'ndain' is a local account. 'dainn' is an ldap account. ndain@sambapdc:~$ su dainn Password: id: cannot find name for group ID 513 id: cannot find name for group ID 512 I have no name!@sambapdc:/home/ndain$ /var/log/syslog records: Sep 11 11:32:49 sambapdc bash: nss_ldap: could not search LD...
2006 May 31
7
Getting 22 elements
Hello, I''ve done === class HomeController < ApplicationController def index @country = Country.find(:all, :include => "cities") end end === And rhtml is: === <% @country.each do |country| %> <h1><%= country.name %></h1> <% country.cities.each do |city| %> - <%= link_to city.name, :action =>
2002 Oct 07
2
FireWall Effects on Samba (Newbie)
.../spool/samba browseable = no guest ok = yes writable = no printable = yes [tmp] comment = Temporary file space path = /tmp read only = no public = yes [public] path = /iconshare public = yes only guest = yes writable = yes printable = no -- Alexander C. Le Dain, PhD Manager of Programming ICON Technologies Pty Ltd www.icon-tech.com.au
2007 Jan 26
10
Camping and DBI
Hi, I''ve been playing around with using DBI instead of ActiveRecord ''cause I just love to beat myself up! ;) Is this an okay way to do this, or is there any other more creative ways? require ''dbi'' module MyApp:Models class DB def self.dbh DBI.connect(''DBI:Mysql:dbname'', ''username'',
2006 May 03
4
default values
Hello, I''m working with a postgresql table CREATE TABLE elements ( id serial primary key, c1 text default f1(), ... cN text default fN() ); But if I use de lines @element = Element.new @element.save the values that element take are the nextval in the id field and nules in all the other fields. How can I get the defaults? (but without rewriting the
2005 Aug 17
2
CumulativeOffset
Hey All, I have a fairly basic question about the prototype.js library. First, I''ve been looking for documentation on this and I have yet to find it. If any of you know of any, please let me know. Since I''m new to both the scriptaculous and prototype libraries could someone explain why I would want to use the cumulativeOffset method and not to just grab the offset off
2007 Feb 12
1
AD integration: "getent passwd" can't see *new* users, but "wbinfo -u" can
...f: passwd: compat winbind group: compat winbind shadow: compat winbind hosts: files dns mdns networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis /end nsswitch.conf -- Noah Dain "The beatings will continue, until moral improves" - the Management
2006 Jun 01
3
more questions: human_name
One more question: Is there some way to set the human_name of a column? e.g.: human_name for column address1 shouldn''t be Address1 but "Address, line 1". If not, should I make a hash with my custom names? Best regards, -- ---------------------------------------------------------------------- Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien UCL/INMA-MEMA
2006 May 22
6
which kind of deployment has the best performance
In the following deployment of web app on ONE pc-based server,running linux,which can support the most amount of concurrent users as well as the shortest latency? 1 apache+mongrel 2 apache+mongrel_cluster 3 lighthttpd+mongrel 4 lighthttpd+mongrel_cluster 5 lighthttpd+fastcgi Thanks charlie -- Posted via http://www.ruby-forum.com/.
2006 Jun 15
13
Best Approach to a ''Down for Maintenance'' Page?
What is the best way to implement a ''Down for Maintenance'' page across your Rails app? Ideally I would like to have a button in my admin section that toggles the display of a ''currently under maintenance'' page to every public request to the app (possibly with some dynamic content like estimated down-time) except for: - - requests from a specified IP
2005 Nov 13
3
Adding Nested Partitions To A Mount Point
I was wondering if anyone can tell me if it is possible to mount a drive (single partition) to a nested directory on an existing Samba mount point and have the entire structure considered one drive? The situation is this. I have a large drive mounted to a share called "/pub". This has been identified as my Samba mount point and all works as it should. What I would like to do is