Displaying 20 results from an estimated 500 matches similar to: "get an arbitrary collection from gems?"
2011 Aug 10
3
STI Devise, remove sign up for admin
Hi,
If I''m using STI with Devise, I have a Admin model inheriting the base
Devise User model. I would like to remove ''registerable'' from the
Admin model but it inherits registerable from the user model. How
would i disable registration for admins?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2009 Nov 15
4
PHP Add-on
Dear my friends...
I want to install Magento but the installer asks me several PHP Add-on:
PHP Extension "pdo_mysql" must be loaded
PHP Extension "mcrypt" must be loaded
PHP Extension "curl" must be loaded
PHP Extension "gd" must be loaded
Anybody would be so nice to tell me the way to install the PHP add-on-s?
Thank you very much.
2013 Mar 08
1
Debian Squeeze packages available for Gluster 3.4.0-alpha2
I've made packages for Debian Squeeze for Gluster 3.4.0-alpha2,
they are available on
http://torbjorn-dev.trollweb.net/gluster-3.4.0alpha2-debs/.
They built and installed successfully, and have been running nicely
for a couple of hours,
but your mileage may vary.
The Debian packaging is on
http://torbjorn-dev.trollweb.net/gluster-3.4.0alpha2-debs/glusterfs-3.4.0-debian.tar.gz.
I took the
2010 Oct 13
2
list comprehension to create an arbitrary-sized list with arbitrary names/values
In python, one can do this
mydict = dict([(keyfun(x), valfun(x)) for x in mylist])
to create a dictionary with whatever keys and values we want from an
input list of arbitrary size. In R, I want to similarly create a list
with names/values that are generated by some keyfun and valfun
(assuming that keyfun is guaranteed to return something suitable as a
name). How can I do this?
2008 Aug 26
1
lattice: plotting an arbitrary number of panels, defining arbitrary groups
R Friends,
I'm running R2.7.1 on Windows XP.
I'm trying to get some lattice functionality which I have not seen
previously documented--I'd like to plot the exact same data in multiple
panels but changing the grouping variable each time so that each panel
highlights a different feature of the data set. The following code does
exactly that with a simple and fabricated air quality data
2011 Mar 11
4
Server locking up everyday around 3:30 AM - (INFO: task wget:13608 blocked for more than 120 seconds) need sleep, help.
This may or may not be CentOS related, but am out of ideas at this
point and wanted to bounce this off the list.
I'm running a CentOS 5.5 server, running the latest kernel 2.6.18-194.32.1.el5.
Almost everyday around 3:30 AM the server completely locks up and has
to be power cycled before it will come back online.
(this means someone hat to wake up and reboot the server, oh how I
love being
2007 Aug 27
2
Testing arbitrary SQL
Hi,
I would like to know how would you test a method in a model that uses
complex a SQL query that joins several tables in order to make a
calculation.
I suppose that I need fixtures, although my approach with rspec is to
avoid fixtures and isolate model specs, but none of both seems
possible in this case. Is there another way than fixtures?
Thanks.
2006 Jul 11
0
Arbitrary elements in form_for?
I would like to use form_for in my project so that I can easily change
the style of many forms at once. However, it seems to me like
FormBuilders only support certain kinds of form elements(!). Surely
there must be a way to add arbitrary labels/form elements to a form.
Let''s say I had a form that looks like:
ID: (plain-text label)
Name: (text field)
Birthdate: (date chooser)
Picture:
2006 May 09
1
How do you execute arbitrary SQL with ActiveRecord?
How do you execute arbitrary SQL with ActiveRecord?
I need to insert 40,000+ records, and the usual way is way too slow.
I''m using Oracle
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Apr 05
0
Providing limited CRUD access to arbitrary tables through a web interface.
Hi There
I''m starting Rails a project for the first time (used to work with PHP).
I have to provide administrator ("super-user") access to a large number of tables. The access should be available through a web interface (the tables rendered as HTML forms on the browser, probably through HTML tables inside the form). From the CRUD set mostly R(etrieve) and U(pdate) are
2006 Apr 25
0
Submit a form_remote from arbitrary JS
What I want to do is trigger an AJAX form submit from an event handler
for a form element. The form is named, and I tried calling
formname.submit() from the onblur handler. However, instead of using the
settings from the form_remote_tag above it, the form ends up submitting
the whole browser.
I know what you''re thinking, why not use an observer? I tried that, and
I ran into some
2007 Jun 11
1
Arbitrary backups
Anyone think it would be useful to have files backed up to the
filebucket even if they are not controlled by Puppet?
1 vote here.
Derek
------------------------------------------------------------------------
For important statutory and regulatory disclosures and more information about Barclays Capital, please visit our web site at http://www.barcap.com.
Internet communications are not secure
2007 Dec 29
0
[SECURITY] Patch For Bug Serving Arbitrary Files
This is a proposed patch for the security hole reported today. You can
just add the test for @path being at index 0 in the exanded req_path as
shown below. Take heed of the comment I''ve added too, and there was a
test for this very attack in the unit test suite, so it was removed by
someone as well. I didn''t test this but I''m pretty sure it''s the fix.
===
2005 Apr 05
1
Secunia / Firefox Javascript "Arbitrary Memory Exposure" test
I just confirmed the following bug on my firefox.
http://secunia.com/advisories/14820/
Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050219 Firefox/1.0
(I think my firefox is a month or two behind, from ports, but the
advisary indicates both 1.0.1 and 1.0.2 are effected.)
FreeBSD localhost 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004
1998 Feb 25
0
Quake 2 Linux 3.13 (and lower) allow users to read arbitrary files [Forwarded e-mail from kevingeo@CRUZIO.COM]
------- start of forwarded message (RFC 934 encapsulation) -------
From: kevingeo@CRUZIO.COM
Sender: Bugtraq List <BUGTRAQ@NETSPACE.ORG>
To: BUGTRAQ@NETSPACE.ORG
Subject: Quake 2 Linux 3.13 (and lower) allow users to read arbitrary files
Date: Wed, 25 Feb 1998 05:49:58 -0500
Reply-To: kevingeo@CRUZIO.COM
Vulnerable:
Everyone who followed the installation instructions and made Quake2
2005 Dec 19
0
has_one mapping with arbitrary right and left hand side keys
I have two tables:
table_1:
tab1_id,
other_id
table_2:
id,
tab2_id,
something_else
I would like to specify a has_one mapping from table_1 to table_2 but
specifying that the join is based on (table_2.tab2_id =
table_1.other_id).
I am half way there with:
class Table1 < ActiveRecord::Base
set_table_name "table_1"
set_primary_key "tab1_id"
has_one :Table2, :class_name
2003 Nov 10
0
Extending function symbols() to handle arbitrary shapes
Currently the function symbols() permits plotting of circles, squares, rectangles, stars,
thermometers, and boxplots.
Can anybody suggest an approach for extending/cloning this function to handle arbitrary shapes specified, perhaps, as bitmaps, or as postscript primitives?
Thanks, Steve Dutky
[[alternative HTML version deleted]]
2005 Dec 16
0
tools to edit vorbis/theora/speex comments & icecast server adding arbitrary comments
Hi Mihamina,
Indeed I'm looking for the same thing.
I've looked at CMML/Annodex which looks very promising for what it is, but total overkill (and overly complex) to simply add meta-data (comments) to arbitrary ogg/theora/vorbis/speex (does speex have different comments then vorbis?)
Does anyone have any simple C code that can just retreive and set arbitrary meta-comments in
2009 Sep 29
0
arbitrary network unreachable problems
Hi all,
Recently I''ve faced a trouble about some networking problem in a Xen server.
dom0
debian lenny kernel 2.6.26-1-xen-686 #1 SMP
xen_caps : xen-3.0-x86_32p
4 domU all the same
debian lenny kernel 2.6.26-1-xen-686 #1 SMP
with 256M memory
dom0 has access to 4 CPUs:
xm vcpu-list
Name ID VCPU CPU State Time(s) CPU
Affinity
Domain-0
2001 Apr 03
0
Executing arbitrary commands, preexec, etc
Hi there.
First, I'm not subscribed to the list, so if anyone actually replies to
this, please CC me. Thanks.
I have a problem which I feel sure can be solved with cunning use of
Samba, CVS, and the like. Basically, I need a shared document repository
with some sort of version control or sign-off. It has to be accessible
to both Windows and *NIX users.
Currently we have a home-grown system.