Displaying 20 results from an estimated 4000 matches similar to: "Relationship not saving"
2006 Aug 12
2
Very weird counter_cache behavior
Hi All,
I''m using a counter_cache, which I believe I''m doing correctly because I
can see this SQL query being executed in the development.log file:
UPDATE gifts SET bookmarks_count = bookmarks_count + 1 WHERE (id = 276)
However, in the gifts table, the bookmarks_count field isn''t incremented
(it''s zero). If I literally copy and paste that query into the
2006 May 30
3
Rebuild Indexes Issue
Hi,
I have some code to rebuild my ferret indexes but occasionally some
stale documents remain in the index even after rebuilding. The only
way I could find around this is to manually delete the index files
from the filesystem. Here is the code I have for rebuilding one of my
indexes for Gifts:
# delete existing entries
INDEX.size.times {|i| INDEX.delete(i)}
gifts =
2006 Jun 28
1
sortable lists, database update
Hi,
I have some images and I want to be able to drag them into the order I
want and have the database updated accordingly. I have an unordered
list elsewhere in the application that works well, but for the images
I cant get it working.
In my controller I have:
def updateorder
params[:images].each_with_index { |id,idx| ProductImage.update(id,
:display_order => idx) }
render :text
2006 Jul 24
2
Thread.new with ActiveRecord under Mongrel vs. FastCGI
Hi All,
I''m going to end up hosting a site on a server in a fastcgi environment,
but I''ve been doing most of my development under mongrel. I have a bit
of code that spawns a thread, and in the thread it makes some remote
calls (openuri) and does some database inserts via activerecord.
When I do this under FastCGI, everything appears to work as expected.
When I do it under
2006 Feb 09
2
Strategies for updating multiple parts of the page with AJAX
Hi all,
I have a layout that''s evolving, but it looks like there will be several
divs. I''m trying to keep everything AJAX-y and avoid full page reloads. My
problem is, if I have the login box in a div, I''m going to want two other
divs to effectively "refresh" themselves to get data from the server now
that there is a user logged in.
I''m trying to
2007 Apr 24
2
zfs submounts and permissions with autofs
Hi,
Is it expected that if I have filesystem tank/foo and tank/foo/bar
(mounted under /tank) then in order to be able to browse via
/net down into tank/foo/bar I need to have group/other permissions
on /tank/foo open?
# zfs create tank/foo
# zfs create tank/foo/bar
# chown gavinm /tank/foo /tank/foo/bar
# zfs set sharenfs=rw tank/foo
# ls -laR /tank/foo
/tank/foo:
total 9
drwxr-xr-x 3 gavinm
2008 Mar 25
7
Facebooker::Session::SessionExpired (Session key invalid or no longer valid)
Hi All,
I''m having horrible problems with this exception, which seems to happen as
soon as I access the session object. Does anyone know what the path is to
recover from this? This post looked to be the most promising:
http://rubyforge.org/pipermail/facebooker-talk/2007-December/000047.html
And I followed all of the steps except switching my session store, and
modifying the default
2004 Nov 23
5
Fw: Gift for Mark Spencer
Why does this person have my e-mail address ?
----- Original Message -----
From: <markogift@astriholics.org>
To: <hackerwacker@cybermesa.com>
Sent: Tuesday, November 23, 2004 1:13 PM
Subject: Gift for Mark Spencer
> Hello everyone!
>
> We have been thinking about something that we could do for Mark
> Spencer as a holiday gift. We have decided to try to orgranize a
2007 Mar 06
9
bug or "feature"?
hi, i''m trying ferret, i''ve a model which has some records and two of
them have a title with the word ''again'' (one or more time), so i''ve
tried to do a search for ''again'', but i didn''t found anything...i''ve
edited the title with ''test again'', searched for ''test'', and i''ve
2012 Nov 26
1
Help on function please
Dear All,
I could use a bit of help here, this function is hard to figure out (for me at least) I have the following so far:
PKindex<-data.frame(Subject=c(1),time=c(1,2,3,4,6,10,12),conc=c(32,28,25,22,18,14,11))
Dose<-200
Tinf <-0.5
defun<- function(time, y, parms) {
dCpdt <- -parms["kel"] * y[1]
list(dCpdt)
}
modfun <- function(time,kel, Vd) {
out <-
2008 Mar 13
3
Splitting a set of vectors in a list
I have a set of character vectors of uneven length
that I have stored in a list. I can easily enough get
any column of them using lapply but what I want is to
be able to create a matrix of them. Other than some
kind of brute force looping approach I have drawn a
blank.
Would somebody please suggest something? Thanks
Example.
mylist <- list(aa=c("cat","peach" ),
2009 Jun 09
1
GIMP 2.3.15 for EL5, no newer libs required
Folks,
I've build a tiny repo to provide GIMP 2.3.15 (and 2.3.14 as a possible fallback) for EL5.
GIMP 2.3.15 is the last version of GIMP that builds with no errors with the GTK+ version that ships with EL.
2.3.15 is "almost GIMP 2.4", as 2.3.19 was the last development release prior to 2.4.0. To the extent of my knowledge, Akkana Peck wrote the first edition of her book on GIMP
2008 Jun 10
5
Rails params parsing bug?
I have a form that sends the following query string to my Rails
controller:
transaxion[category_association_attributes][][category_id]=2&
transaxion[category_association_attributes][][amount]=12&
transaxion[category_association_attributes][][category_id]=1&
transaxion[category_association_attributes][][amount]=8
But ActionController parses it as:
2009 Jun 17
6
script help
Hi
?
I have a file. list.txt (two columns)
?
column1??? column2
name??????? address
?
?
I need to put in the letter file letter.txt eg:
?
Dear: Chloe
Address: CA
?
Can I use this
?
for i `cat list.txt` | sed 's/Chloe/$i.1; /CA/$i.2/g' $i.letter.txt
?
Thank you for your help
?
?
?
?
?
__________________________________________________________________
Looking for the perfect gift?
2009 Jul 23
1
ggplot2 : commands on one line vs two lines.
I have just started using ggplot2 and I seem to be doing something stupid
in writing ggplot2 commands on more than one line.
In the example below the commands on one line are working fine, but as
soon as I put them on two lines I get an error. Can any one point out
what I am doing wrong? It must be something blindingly simple.
Thanks
Example
2005 Aug 22
3
overlaying prerecorded content over a live stream...
Hello everyone!
I've been looking into using icecast to help get some terrestrial
radio stations into Internet broadcasting. One of their requirements
is that they have the ability to overlay internet-only content over
the regional commercials that they run during their programming - ie,
during breaks between their normal programming, they don't want ads
from their advertisers
2010 Jun 29
3
Please help with advise on wine storage
Hi everyone,
I have a small problem. I bought a bottle of red wine from my home outside the UK. It is a gift for a professor who I much admire. Unfortuately I have not been able to get to her office in the last month so I had to store the wine in my bedroom. It is in a box etc and of course I am storing it lying down however I am worried that with the current weather of having 20 - 25 degrees
2013 Sep 04
1
Problem at boot
Hello to all,
I have a question, maybe it's a very newbie question. I've installed CentOS
6.4 on my notebook but sometimes when I boot it, after the screen "booting
CentOS in 4..3..2..1" I receive a black screen and not the logo of CentOS
with loading progress. Is it normal? There are some know issue about it?
Best regards,
Fabrizio
--
"The intuitive mind is a sacred
2014 Jan 16
2
Your opinion about RHCSA certification
Hello to all,
I'm currently studying (and collecting notes here
https://github.com/fdicarlo/RHCSA_cs) for RHCSA. My plan is to RHCSA
-> RHCE and then RHCSS.
What I want to ask you is:
- What do you think about it?
- Did you find it useful?
- Do you have any advices?
Best regards,
Fabrizio
--
"The intuitive mind is a sacred gift and the rational mind is a
faithful servant. We have
2009 Nov 20
2
How to use results of distribution fitting for further processing?
This is probably simple, but I have a hard time finding the solution. Any help greatly appreciated.
I would like to use the results of fitdistr(z,densfun=dweibull,start=list(scale=1,shape=1)) for further processing. How do I assign the values of scale and shape to b and a without manually entering the numbers?
TIA
__________________________________________________________________