Displaying 20 results from an estimated 3000 matches similar to: "how to generate calculated db fields"
2004 Nov 16
1
lme, two random effects, poisson distribution
Hello,
I have a dataset concerning slugs. For each slug, the number of
pumps per one time slot was counted. The number of pumps follows
Bi(30, p) where p is very small, thus could be approximated by
Poisson dist. (# of pumps is very often = 0)
The slugs were observed during 12 time slots which are correlated in
time as AR(1). The time slots are divided into two categories:
Resting time
2010 Sep 22
2
How to fix error: 'x' and 'y' lengths differ
Hi, im a student so still very new to R. Hope someone could help me out here
=)
They are 3 slug control products, bustaslug, product X and Y. Im ask to
explore the data by plot() and tapply(). But when i try to plot or use the
tapply command, it tells me that the x and y lengths differ. so im thinking
its because the data is unbalanced? Is there a simple command that i could
use to fix this?
2008 May 14
3
New blog application post slugs
Hello. I''m creating my own RESTful blog app. I am wondering about
creating post slugs. I think Wordpress creates a slug at post
creation time and stores the string in the database, then uses that
for URLs.
I read about the acts_as_sluggable strategy (http://
agilewebdevelopment.com/plugins/acts_as_sluggable) but I don''t like
having a number (the ID) in the URL.
Any
2013 Feb 17
1
Error on installation of Ruby On Rails on QNAP TS809U-RP [Linux]
I am not sure where I should even begin troubleshooting this. I know a
little bit about Linux and am comfortable editing files and running
commands however definitely not a Linux guru. I have ipkg already installed
on the QNAP. I know absolutely nothing about ruby on rails. Thanks for any
help.
For those that are not familiar with a QNAP, ipkg is the same as apt-get or
yum in some Linux
2006 Jun 22
1
acts_as_taggable gem problems
With acts_as_taggable 1.04...
1. how can I get a frequency of tags?
i.e. /tags/list I want to list of tags sorted and listed with
their frequency
tags_controller.rb:
def list
@tags = Tags.find_by_sql ''select name, count(*) as freq from tags
group by name order by freq desc''
End
tags/list.rb:
<ul>
<% @tags.each do |t| %>
<li><%= t.freq %>
2009 Feb 03
1
Can't compile on NSLU2 LE
Hi,
I keep getting the following on my slug no matter what version I try (1.2, 1.4, 1.6, 1.6svn):
...
make[2]: Leaving directory `/usr/portage/distfiles/svn/trunk/menuselect/mxml'
gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a
menuselect.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
distcc[19221] ERROR: compile (null) on
2002 Oct 18
6
winbind, getent and wbinfo
Guess I'll ask again . . .
[Samba] Winbind and groups Bub Slug bub1slug@hotmail.com
Sun Oct 13 02:35:01 2002
Previous message: [Samba] Strictly Private.
Next message: [Samba] Winbind and groups
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I'm trying to get a samba server which is all by itself, No Windows DCs, or
even windows shares at all, to play nice
2008 Feb 12
3
Rsync to a Read Only file system
I think your product is awesome, but I am experiencing an unexpected
behaviour.
$ rsync -avviPH /Users/alan/Desktop/rsync_test\ Folder/
root@slug::Downloads
opening tcp connection to slug port 873
sending daemon args: --server -vvlHogDtpre30.16i "--log-format=%i" --
partial . Downloads
sending incremental file list
.d..t..g... ./
rsync: failed to write xattr user.rsync.%stat for
2005 Mar 05
3
routes inconsistency?
Hello,
As a small excercise in learning rails, I''ve been porting a very
simple website from SSI to rails (yep, a bunch of static files that
were previously served with a tiny bit of SSI magic are now served by
a database-backed rails, it''s total overkill, I know). Part of the
reason is that I''m trying to move from apache to lighttpd, and
lighttpd''s SSI for
2006 Mar 16
10
Nubee Callbacks problem
I never want to alter a model(row). When a model has been changed i
want a new copy to be created.
What is the best way to implement this?
I think using callbacks might be the answer.
So model.save will create a new row, and leave the old one unchanged.
Any ideas? I can easily implement this in the controller but i''d rather
it be done transparently. Also errors should be passed back
2011 Sep 24
4
Heroku Slugsize shot up drastically
Hi,
Locally my application is 7MB without tests and logs, etc. The .git
folder is 29 MB. I also have no gems / plugins in vendor folder. 95%
of images sit on S3. However on committing to Heroku it shows ----->
Compiled slug size is 62.7MB
What is wrong? It happened?
To add more context my .gitignore file is .bundle, db/.sqlite3, config/
database.yml, log/.log, tmp/, .idea, .redcar,
2007 Nov 28
1
Cross-compiling asterisk-1.4 for Debian on a slug
Hi folks!
I planned to put asterisk-1.4 on my slug (one of these embedded devices).
Since i don't want to compile it natively on this slow processor, i need
a cross-compile toolchain. I tried out several ways such as manually
compiling binutils and gcc, or using scratchbox. All of these with the
result that i got binaries for machines except the one i wanted! :(
I then have been given a link
2006 Jun 07
2
Problem with a setter that converts euros to cents
Hi,
I have some problems with an application where I''m using custom
accessors to do currency conversions. In my model, I have a price
attribute in the database that stores the value in cents, to avoid
future problems with float arithmetic and round. But at the views, I
would like to show the price in euros, with decimal for the cents. So
I defined a new attribute called price_in_euros,
2008 Sep 17
3
Is there a way to not use an explicit loop?
I have a problem in where i generate m independent draws from a
binomial distribution,
say
draw1 = rbinom( m , size.a, prob.a )
then I need to use each draw to generate a beta distribution. So,
like using a beta prior, binomial likelihood, and obtain beta
posterior, m many times. I have not found out a way to vectorize
draws from a beta distribution, so I have an explicit for loop
2007 May 21
7
How do I stop a column being updated by model.save?
One of my models has a column that is updated very frequently from a
separate process, so it is important that when a record is saved in
rails, this column should be left alone. In the update method of the
controller I have:
@record = MyModel.find(params[:id])
@record.update_attributes(params[:my_model])
params[:my_model] doesn''t have a reference to the column I''m talking
2006 Nov 16
0
rsync-ssh problem
I am having a real nightmare getting automated login with ssh to work;
hoping someone can guide me. I am running Ubuntu 6.10.
I have a main machine (called greywolf) which has a partition for
my /home on it. I am doing backups to an extrnal usb drive attached to
a Linksys NSLU2 (called slug) running UnSlung firmware. All hosts,
networking, shares, firewall & such stuff is working fine.
2013 May 02
1
trouble-with-capybara-and-rspec-on-a-new-model-spec
I have searched a lot for a solution, but I could not find it! I am trying
to make a rails application after watching Michael Hartl''s tutorial and
when i fill data manually and submit it nothing happens and nothing records
in the Mailers table and I am facing the following error:
Failures:
1) Mailer pages mail us with valid information should send a mail
Failure/Error: expect
2006 Jan 20
47
SQL Server datetime error
i have a problem with the datetime format of rails. i am unable to save
a dataset to the db. here''s the error message -- the original error
message was in german, so i translated it -- i get:
DBI::DatabaseError: Execute
OLE error code:80040E07 in Microsoft OLE DB Provider for SQL Server
Couldn''t convert a char-Datatype to datetime
HRESULT error code:0x80020009
2008 Sep 23
3
calling save in after_create hook
Scenario:
I''m creating an image file upload service for my web site.
As well as saving the actual file I also need to create a database
record for the file.
I would like to name the file after the record id, but I also need to
save some attributes of the image (width/height/mime_type etc) which I
can''t discover until after the file is created.
The Problem:
1) The id is not
2006 Jan 25
7
join fields for list views
I am sitting with the Agile book on my desk and scratching my head at
the discussion on aggregation - perhaps that isn''t what I need.
I have a db called clients.
fields include - first_name middle_initial last_name
I want to combine them all into one name element in a list view. I can
add/edit the fields separately but in the list view, I only want the one
combo field.
Is there a