Displaying 20 results from an estimated 1000 matches similar to: "prevent duplicate inserts with has_many :through ??"
2008 Jun 13
2
subsetting data-frame by vector of characters
Hi,
I have a very simple problem but I can't think how to solve it without
using a for loop and creating a large logical vector. However given the
nature of the problem I am sure there is a "1-liner" that could do the
same thing much more efficiently.
bascially I have a dataframe with characters in, eg
>names.and.numbers
(index) Name Fave.Number
1 John 7
2
2002 Apr 17
3
not quite a shorewall question but..
does anyone know how to enable the "udp loose" function in kernel 2.4.x? one
of my fave games requires this to work on the net and i''d really like to
move away from the 2.2 series kernels.
tia
2013 Feb 26
3
Sporadic Issues
The problem is not icecast streaming, its trying to stream through a
browser. It is very complicated to do. Each browser has it quirks
depending on OS, version and what other audio programs that are
installed. Having the external player link should resolve the
issues. We gotten from using a browser player to letting the customer
choose there fave audio player to use :) Even this has cause
2006 Dec 05
6
Switching from FreeBSD to Linux - which distro?
Does there seem to be a popular Linux distro folks use specifically for
Asterisk? I'd like to move off of FreeBSD but I'm not too familiar with
Linux distros. In particular, I'm looking for a free, stable, well
supported distro that has a friendly community. Any advice appreciated.
Sorry for asking a question that I'm sure has been asked thousands of
times.
Best regards,
2007 Jul 21
3
unable to get "has_many :after_add" to work - need help
Can someone tell me what I''m doing wrong? I''ve spent way too much
time on this
--------------------------------------------------------------------------------------
class Picture < ActiveRecord::Base
has_many :ratings, :after_add => :increment_rating, :after_remove
=> :decrement_rating
def increment_members(rating)
self.rating += rating.amount
save!
2014 Jan 22
2
Question about Asterisk 12
Okay - maybe I'm just suffering from a moment of horrible ADD - but, I'm a
little lost.
I see that Asterisk 12 has a nice REST API - very nice - something I can
use. However, and this is gonna sound dumb - but all the CLI commands are
different now. What did I miss?
Can anyone, please, anyone point me to a good, simple to understand
tutorial on the new CLI? I am so, so freaking lost!
2006 Jul 09
8
Can the has_many create() method return an ID?
Hi all,
I have a has_many relationship, Cookbook :has_many Recipes
If I want to create a new recipe in my cookbook I do:
cookbook.recipes.create(data)
It would be nice if I could then easily get the id of the new recipe,
but the create() method doesn''t seem to return anything. Any ideas how?
Thanks in advance!
Cameron
--
Posted via http://www.ruby-forum.com/.
2012 Aug 10
2
Regular Expressions + Matrices
Hi all,
My code looks like the following:
inname = read.csv("ID_error_checker.csv", as.is=TRUE)
outname = read.csv("output.csv", as.is=TRUE)
#My algorithm is the following:
#for line in inname
#if first string up to whitespace in row in inname$name = first string up
to whitespace in row + 1 in inname$name
#AND ID in inname$ID for the top row NOT EQUAL ID in inname$ID for the
2013 Feb 26
2
Sporadic Issues
Hi I think a part of your story was not clear :
- You talk about an "upgrade" , it's an upgrade of icecast ? the OS icecast
is running on ? Your HTML5 web player ?
<----------------------------------------------------------------------------------------------------------->
web perso : http://memeteau.org
<xmpp%3Afreechelmi at jabber.fr>
2013/2/26 Judd, Taylor
2014 Nov 26
4
Wiki-edit-request
On 26 November 2014 at 17:28, Akemi Yagi <amyagi at gmail.com> wrote:
> On Wed, Nov 26, 2014 at 9:18 AM, Christoph Galuschka
> <tigalch at tigalch.org> wrote:
>> Hi Alan,
>>
>> Am 26.11.2014 um 16:13 schrieb Alan Bartlett:
>>>
>>> On 26 November 2014 at 10:23, Michael Beck <eliteknipser at gmail.com> wrote:
>
>>> According to
2009 Mar 14
3
Only partial installation? Context menu items missing :-(
Hi!
I am very new to Ubuntu and thus also Wine. I installed, uninstalled and re-installed Wine a couple times while trying out Wine and some third-party apps like Wine-Doors.
Now my trouble is... I just installed 1.1.16, but my context menu entry for Wine is missing. Moreover, when I now select "Open with other Application" from the context menu for a Windows app, Wine is not in the
2013 Feb 24
3
Sporadic Issues
Hi,
I help run an NPR/PBS station. We were running ice cast before our most recent upgrade. However after the upgrade we have now been receiving sporadic reports of people being unable to connect. The only confirmed issue is with Saffari on Windows. We are working on that specific one. But I've also received sporadic reports from users on chrome, firefox, mac, and windows and various other
2006 Feb 28
2
Conference bridge dimensioning
We are using an Asterisk box to do conferencing right now. I have had
about sixteen active lines in conference and the quality was acceptable.
We now have a need for 50 people to conference at one time. Does anyone
have enough experience doing this to give me some pointers. Will it even
be reasonable to try this? Is the mixing done on the the hardware, I
plan on using a quad span t-1 card from
2006 Dec 16
5
Linux distro + Asterisk or Trixbox?
Hey all,
I've been doing a lot of playing, and a lot of reading, and it seems
people are split as to whereas if they're running their favorite Linux
distro and asterisk or Trixbox. I'm getting closer to really looking at
a production environment and I'm just looking for any opinions. I'm
really enjoying learning linux and asterisk, so initial "ease of use"
2013 Oct 04
4
Best Book 4 RoR
Hello,
Is there a great book for Ror. I am looking for a book with a step by step
approch and by PROJECTS!!
RoR needs to be ''practiced'', and i didn''t find those WORKING PROJECTS.
Am i dreaming or is this paper exists. All the books on amazon are not
amazING. They talks only about
theory. Theory is fine, i mean this is RoR. But then...
Thanks for those who, first,
2004 Sep 27
8
Complete newbie seeks start . . .
Hi ..
I've just received in the post my Wildcard card with a single FXO and
three FXS daughter cards.
I've identified a dedicated PC to function as the * machine and
installed the card. I've installed Fedora Core 2 on that machine.
I've downloaded the * software and the zaptel drivers.
And now, to be quite honest, I haven't got much of a clue what to do next!
I've
2014 Nov 28
5
Wiki-edit-request
Hi Alan,
After read your reply , I think that I should do something. So I want to
help Timothy to translate some pages to chinese language.But I don't know
how to start, whether should I send a email to Timothy or request access
permission . Could someone give me some tips?
Thanks!
On Thu, Nov 27, 2014 at 1:53 AM, Ekkehard Pummer <ekkehard at pummer.net>
wrote:
> Hi,
>
>
2009 May 25
4
after_create and has_one association bug?
Hello,
I''ve come across an issue that I''m sure is a bug when using after_create
with a has_one association, but I''m not 100% certain if I''m missing
something.
This is pretty much exactly the code I''m using. Two simple classes
(Account and Contact) and I create the contact after I create an account
(via after_create). I''m not passing in a
2006 Mar 15
4
help with DRY violation
I''m trying to be a good rails developer and fix DRY violations as i find
them. However, i''m trying to fix this one, i cant seem to get it to work.
I have two tables A and B that have a one-to-one relationship. Table B
belongs_to Table A. Table A has_one Table B. I''m creating instances of
Table A in different places, depending on the controller. However, for each
2006 Jul 18
7
Observer not working
Help please.
I''m trying to observe a User class, but I can''t get this to work, the
after_create method never gets called... (the breakpoint never gets
called)
app/models/user_observer.rb:
class UserObserver < ActiveRecord::Observer
def after_create(user)
breakpoint
setting =