search for: daines

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

Did you mean: haines
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.94479...
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 functio...
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
All~ I recently started coding an SFTP client in Qt, since i noticed their seemed to be a lack of one with a gui for really any platform that didn't cost money. I wrote most of the FTP portion, and then I decided to begin working on the SFTP part. I couldn't really find documentation for an sshlib to use for developing this portion of my program. Sorry if i'm sending this email to
2005 Jun 19
3
ADS member server w/ winbind on debian sarge
ok, i've been buggering on and off with this for way too long now. I'm just plain stuck. The objective is to get full authentication working for a samba machine by integrating it into and existing AD system as a member server. The domain is windows 2003, in native mode. There are two domain controllers. The samba box is running debian sarge, using only the official sarge packages.
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
* distro: ubuntu breezy ( 6.06 ) * samba version: shipped version with updates ( 3.0.22-1ubuntu3.1 ) * no ssl * openLDAP is running on the same machine as samba, and referenced as localhost/127.0.0.1 where applicable ( 2.2.26-5ubuntu2.1 ) * nscd is not installed, much less running I've set up a samba pdc with ldap by following the Samba Guide very closely, adapting it to Ubuntu/Debian where
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)
Dear List, I have been wrestling with getting Samba 2.2.5 on Redhat 7.1 working on a Windows NT network containing W2K, W98 and Mac machines. I can see the Samba server (gargoyle) from the Win machines fine, but cannot browse any shares (Network unreachable error message). This seems a relatively common problem, but seems harder to resovle in my case :-) I have walked through the toubleshooting
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
I have two different systems (on different networks) showing this behavior. Both are running Ubuntu Dapper/606.1 LTS with samba version 3.0.22 and windows 2003 sp1 servers (not R2). AD integration is done via winbind, with nss using winbind. At some point in time (which is unknown to me), the samba server stopped seeing new users, groups, machines which are added to AD. scenario: I add a new
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