similar to: Call for patterns...

Displaying 20 results from an estimated 130 matches similar to: "Call for patterns..."

2009 Jul 12
11
get DB data to rhtml file
I am trying to get data out of a database to my rhtml file. The files look like this: Model ------- mystuff.rb class Mystuff < ActiveRecord::Base set_table_name "mytable" set_primary_key "id" end Controllers -------------- mystuff_controller.rb require ''Mystuff'' class MystuffController < ApplicationController def read @me =
2006 Aug 17
3
file_column do download from URL
Is there a simple way of forcing file_column to download file from given (ex. in form) url instead of uploading it manualy? I know: http://blog.caboo.se/articles/2006/01/09/file_column-magick-and-versions require ''open-uri'' Attachment.find_first.filename = open(url) if not working as expected... what is interesting is that: >> @a =
2006 Mar 31
1
SortHelper Question
I''m trying to install the SortHelper module, and for some reason I''m getting a NoMethodError when I try to view the list. I''m a relative newbie to rails, but the controller and the helper seem to be pointing to the right places. I named the controller sort_controller.rb and the helper is sort_helper.rb, and list is list.rhtml Thanks for any help!
2006 Apr 25
2
has_many :through
I have: class Country < ActiveRecord::Base has_many :states has_many :cities, :through => :states has_many :places, :through => :cities end What is the query RoR is using when I type: @places = @country.places Is it only one query with joins? -- Posted via http://www.ruby-forum.com/.
2009 Oct 27
2
Porting Custom Packages from Linux to Windows
On my linux workstation I have a nice, very little project in a directory called "mystuff" I installed "mystuff" into site-library with R CMD build, R CMD check and R CMD install. This was all with the file mystuff.tar.gz. Now I want to install "mystuff" on my windows workstation. Can I use the same file mystuff.tar.gz. Do I need to do something different with R
2002 Jul 02
1
subscript out of bounds
Hello As I'm beginning to write functions, I decided to have my personnal R library named MyStuff located in /home/fred/R.Lib/MyStuff/ The library file itself is at /home/fred/R.Lib/MyStuff/R/MyStuff evrything seems ok since > library() gives : Packages in library `/usr/lib/R/library': KernSmooth Functions for kernel smoothing for Wand &
2002 Feb 11
1
problem getting just a single dir !
I am trying to fetch a single dir using the following command but all I get is a empty dir: rsync -av www.myServer.com::myStuff --include=myDir --exclude=* . Here is the rsync output: receiving file list ... done myDir/ ./ wrote 119 bytes read 392 bytes 92.91 bytes/sec total size is 0 speedup is 0.00 The command looks simple and straight forward but somehow I am not getting the expected
2007 Nov 22
2
Wayward Directories
Seems that any program that has a default data directory, or previously selected directory preserved, has the directory duplicated/nested: That data is in c:\mystuff\mydata It is shown as c:\mystuff\mydata\mydata The files appear and maybe can be read. Any attempt to write produces an error (obviously, there is no such directory). Some programs will crash/abort wine trying to navigate this
2007 May 14
2
How to write data to astdb?
Hello, I'm trying to fill CID data into the astdb using AsteriskWin32's asterisk.exe, to no avail: The batch file stops after the first line, and just waits: ---------------------------------------- rem c:\cygroot\mystuff>import.bat rem rem c:\cygroot\mystuff>C:\cygroot\bin\asterisk.exe -rx 'database put cidname 123 "My cellphone"' rem rem Asterisk module
2014 Jun 04
2
Few questions about members
We are experimenting with two different scenarios here. The one I'm asking about this time is this: We have a samba4 AD set up. It seems to be fine as far as we can tell. We are trying to set up a member, and have followed the wiki page https://wiki.samba.org/index.php/Setup_a_Samba_AD_Member_Server. The first question I have is why is the start script we use on the AD not work on the
2005 May 17
2
ajax insertion sort
Is there support yet for adding something to a list in sorted order? For example, you have a form to add a new item and you want the new item to be inserted in the list in the proper order. I''ve noticed the :position option in the form_remote_tag but it doesn''t seem like you can use it to keep things in sorted order. Rod Schmidt http://rodschmidt.blogspot.com "Do or
2008 Dec 09
4
HABTM checkboxes insert but don't delete
I have a problem related with the HABTM relationships with checkboxes. I''ve got a profile and a service model, both related with has_and_belongs_to_many. The problem is that i can insert new data in the profiles_services table, however, i cant delete already existing data. What could be the problem? --~--~---------~--~----~------------~-------~--~----~ You received this message
2007 Oct 15
5
Very simple code throwing "uninitialized constant" error
This code works on an older version of Ruby and Rails but not with Ruby 1.8.6 and Rails 1.2.5. The code is so simple that I can''t figure out where the problem is. profile_controller.rb class ProfileController < ApplicationController def show @profile = Profile.find_by_school_id(params[:id]) end end ----------------------------------------------------------- profile.rb class
2006 Apr 12
2
where to put utility code.
Hi All, I am new to "ruby on rails". I have some common utility classes. I am not sure where to put this kind of code. components\ or lib\ ? Any comment is appreciated! -Jon _________________________________________________________________ It?s the future of Hotmail: Try Windows Live Mail beta http://www2.imagine-msn.com/minisites/mail/Default.aspx?locale=en-us
2011 Nov 16
1
Deleting a mailbox and all its children
I'm looking at scripting a mechanism to delete a mailbox, which is easy with 'doveadm mailbox delete' -- however it gets complicated when there are children of arbitrary depth, for example, I may have this: restored.daily1.INBOX restored.daily1.Sent restored.daily1.Mystuff restored.daily1.Mystuff.foo I would like to delete the 'restored' mailbox and all its children (and
2009 Aug 06
1
specify lattice black-and-white theme
Is there a simple way to specify a theme or trellis (lattice) parameters so that, in a multipanel (conditioned) plot, there is no color and in the strips there is no shading? This is the effect achieved on page 124 of Deepayan Sarkar's "Lattice" (figure 7.2). I managed to trick lattice into making a grayscale plot on my interactive display as follows: > graphics.off() >
2007 Sep 06
5
Find by contents and missing ferret_score method
Hi, i m using acts as ferret via the find_by_contents, and then i my trying to get the score of each results... But the score of ferret_score method is missing... I ve got the @total_hits in the array, but not the @score one :/ What s going on ? Is this method disappear in acts_as_ferret ? thanks Guillaume. -- Posted via http://www.ruby-forum.com/.
2015 Feb 19
2
CentOS 7: software RAID 5 array with 4 disks and no spares?
On 2/18/2015 8:20 PM, Chris Murphy wrote: > On Wed, Feb 18, 2015 at 3:37 PM, Niki Kovacs<info at microlinux.fr> wrote: >> >Le 18/02/2015 23:12, Chris Murphy a ?crit : >>> >> >>> >>"installer is organized around mount points" is correct, and what gets >>> >>mounted on mount points? Volumes, not partitions. >> >
2010 Aug 22
2
Strange Apache log entry
Hey everyone, Logwatch flagged something in my Apache logs, and it says it was a possible successful probe. Hmmm. Here's what it says: --------------------- httpd Begin ------------------------ A total of 1 sites probed the server 66.249.137.70 A total of 2 possible successful probes were detected (the following URLs contain strings that match one or more of a listing of
2017 Nov 10
2
Sieve global path?
On Thu, 9 Nov 2017 21:02:44 -0500 Bill Shirley <bill at KnoxvilleChristian.org> wrote: > Set the sieve_global_dir like this. > /etc/dovecot/conf.d/99-mystuff.conf: > . > . > plugin { > ? sieve???????????????? = ~/Maildir/dovecot.sieve > ? sieve_dir???????????? = ~/Maildir/sieve > ? sieve_global_dir????? = /etc/dovecot/sieve/global/ > ? sieve_before????????? =