Displaying 20 results from an estimated 5000 matches similar to: "activerecord << operator"
2011 Feb 27
10
How to store the same key multi times in a Hash ?
given an Arra tags[]
I need to produce a resulting Hash as following ..
{ "$in" => [tags[0]], "$in" =>[tags[1], ...}
in which the key should be always the same and the value being an
Array
I tried this :
myHash = {}
tags.each do |tag|
h = {"$in" => [tag]}
myHash.merge!(h)
end
but the merge! is only
2007 Mar 19
4
Objects "uncompletely" displayed
Hello,
I would like to ask some help about the following problem:
I'm running a soft called beersmith (www.beersmith.com) with wine. The
soft is running but some lists are uncompletely displayed. Only the
first column is displayed but I can sort lists on unvisible columns.
I already have asked help from the developpers but havn't received any
usefull answers:
2007 Mar 13
7
Form with subforms
Hi,
I''m looking for a way to implement subforms. For example, a form where
you can add clients, and at the same time enter contactpersons for
this client.
I''ve been looking around, reading ebooks, etc, but can''t seem to find
a good example/tutorial for something like this. So I would be very
thankful if someone could point me in the right direction.
Thanks,
Sven
2007 Dec 12
2
possible bug in eager loading
Hello,
@users = User.find(:all, :include => {:user_data =>
:user_data_field}, :order => "username = ''someone-oHC15RC7JGTNLxjTenLetw@public.gmane.org'' desc",
:limit => 50)
This produces:
User Load IDs For Limited Eager Loading (74.648762) SELECT * FROM
(SELECT DISTINCT ON (users.id) users.id, username AS alias_0 FROM users
LEFT OUTER JOIN
2013 Nov 04
1
ggplot2: Add '+' operator for aes (uneval) objects
Dear all,
Is there a reason, why there is no +-operator for aes (i.e. uneval) objects (as there is for themes and gg objects)? I had a couple of cases where such an operator would be useful, for instance to combine the result of aes and aes_string in functions. Any flaws with the following proposition:
`+.uneval` <- function(e1, e2) {
dup <- names(e1) %in% names(e2)
if (any(dup)) {
2002 Jul 15
1
[Q] htb
Hi
Can I make htb node (class) without rate limit
For example
limit ip1/len1 to xx kb
limit ip2/len2 to yy kb
any other traffic - without limit?
--
Best regard, Alexander Trotsai aka MAGE-RIPE aka MAGE-UANIC
My PGP at ftp://blackhole.adamant.net/pgp/trotsai.key[.asc]
Big trouble - Your modem doesn''t speak English.
2006 Aug 12
1
url_for and :defaults
Hello,
in my routes there are (just for testing):
map.connect '':controller/:id/:action'', :defaults => {:action => ''alma''}
in my controller:
def alma
render :text => url_for(:id => 123)
end
so I go to:
http://localhost:3000/music/store
which generates:
http://localhost:3000/music/store/123/index
Where the
2019 Oct 31
5
Samba DC to Samba NT4 Domain Trust
Hello! I'm trying to create a two way trust between a Samba DC and a Samba
NT4 domain both are 4.10.9. The issue I'm seeing is that while I can
establish a one way trust from the NT4 PDC to the DC using the following
commands;
net rpc trustdom add sambaad thepassword
net rpc trustdom establish sambaad
I enter the password for PDC$ and the trust is established.
When I go into Domains and
2014 Feb 03
2
get current song
Hi,
I use dynamic playlist, so do not have static list of files. I sream
this play list on my mage via simple flash player,
and show this playlist in this page with ajax-ed javascript.
Here is question.
I need to get current song,
but when I ask icecast server I get wrong information. Sometimes song
is still playing,
but info from server is updated to next track. I have many short
(3-5-10
2003 Aug 30
1
packet rate limiting
Hi,
I''m currently looking for a QoS extension that allows to limit the packet
rate to a given value. As I''m using HTB at the moment bandwidth limiting works
pretty well but packet rate limiting would be superb.
I do traffic shaping on a firewalling bridge (2.4.21) using iptables mark
and HTB. Any suggestions would be appriciated!
Regards,
Mike
--
COMPUTERBILD 15/03:
2003 Jul 08
1
imq device
hi,
i cant get the -j IMQ on netfilter. The module is loaded
Module Size Used by Tainted: P
ipt_IMQ 768 0 (unused)
imq 1912 0 (unused)
but i cant find the object in /usr/local/lib/netfilter/*imq.so
i tryed recompiling manualy iptables but it didnt work to.
what could it be?
im using iptables 1.2.8, kernel 2.4.20.
Thanks!
2015 Mar 06
6
New Asterisk build
Hello Asterisk,
Back in 2009 I built a small Intel Atom based computer running
Centos 5 for my asterisk system. 5 phones, 2 people 1 POTs
line and six or so SIP numbers. So basically no load. I'm
feeling like it's time to build another machine. It's probably
silly, but it's been six years and I can't upgrade the OS
which is falling behind. I'd likely just put
2009 Mar 08
2
RESTful nested resources and polymorphism?
With ref to my previous post: http://www.ruby-forum.com/topic/180356
I am now able to access items from topics controller. However, now I
need to add sub-item e.g.: An item itself could have many sub-items. So
my items model is like:
class Item < ActiveRecord::Base
validates_uniqueness_of :title, :scope => [:topic_id]
validates_presence_of :topic_id, :title, :owner, :position
2006 Nov 29
1
actionmailer on Debian Etch
Hello,
I have two debian etch systems, both have rails. I have installed them
with apt, not gems. No problems so far.
Now I have tried to use the actionmailer. The results:
mage@miranda:~/temp$ rails mailer
create
create app/controllers
[....]
create log/test.log
mage@miranda:~/temp$ cd mailer
mage@miranda:~/temp/mailer$ script/generate mailer Letter test send
2007 Oct 15
3
JavaScript error after including Prototype library
Hello,
I''ve started seeing this error after including Prototype:
Form.Element.Serializers[method] is not a function
http://qaslweb1.crossmediaservices.com/shoplocal/scripts/prototype.js
Line 2754
You should be able to see this error, using either Firefox or IE, when
browsing to:
http://qaslweb1.crossmediaservices.com/
Any ideas? Since this is a version of our original site rebranded
2010 Jan 15
3
Latent Profile Analysis Package?
I´ve several packages for latent class analysis, but I was wondering if there is a package for continuos variables, which allows latent prfile analysis.
Thanks for your help in advance,
J Toledo
_________________________________________________________________
cial-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092
[[alternative HTML version deleted]]
2009 Aug 19
1
[PATCH] Correct checks for dup failure in guestfs_launch
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
-------------- next part --------------
>From 8f1b06f64807239d4b4c923af4db8626a866ff6f Mon Sep 17
2019 Apr 11
4
External Authentication
Hello, I've done a lot of reading and searching however; I could use some
guidance. I just started working for a school in which there are a few
Windows labs as a Linux systems administrator. Our workstation sysadmins
have asked me to look into a Samba issue for them, Windows 10 systems have
to have SMB1 turned on to authenticate against the existing Samba3 server.
This work around hasn't
2006 Feb 23
2
xm list not showing guest machines as "running"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
as the screenshot [0] shows, my virtual machines aren''t showing up as
running. This causes me a few problems. One being if I do xm shutdown
SMGL-1 it simply powers it down, it doesn''t send the "shutdown signal"
or whatever makes it go away :) I''ve done a from source install using
the instructions mentioned [1].
2008 Nov 06
3
.C(..., DUP=FALSE) memory costs depending on input size?
Hello,
I'm trying to create my own C code for use within R. While optimizing the
code I've noticed that even while only using pointers to get my data to C
the time needed still depends on data (vector) size.
To test this, I've created an empty C function to which I've send vectors
containing various sizes of elements. The time needed for each call is
measured and plotted. I would