Displaying 20 results from an estimated 8000 matches similar to: "Calculating row COUNTs"
2006 Mar 22
3
Which JavaScript effect is this?
http://canadaonrails.com/ (when you hover over news and events)
I''ve seen this implemented on a few rails sites now and I was just
wondering if it is just a simple javascript from the prototype library.
Does anybody know of any links on how to do this?
Thanks in advance!
--
Posted via http://www.ruby-forum.com/.
2006 Jun 01
7
Active Record Basics - Making it commentable
hi everyone, I hope someone can help me out with some active record
basics? I''ve been banging my head for the past 4 hours and I can''t seem
to get it to work.
I am trying to add comments to a caption (just like how one adds a
comment to a post in a blog). I seem to be able to read posts just fine
from the DB, however, I can''t use the "recordComment"
2006 Jul 04
1
Quick question: Iterate through a collection - no duplicates
Hi, is there a simple way to iterate through collection and not include
duplicates?
Thanks in advance.
Jordan
--
Posted via http://www.ruby-forum.com/.
2006 Jun 17
1
Quick Question: Random item from array
Well I think this is a quick question. I would like to select a random
item from an array. I''m thinking maybe I need to generate a random
number from 0 to array length. Actually I''m not exactly sure how to do
this since I can''t seem to find math.random/math.floor on ruby api?
Knowing ruby, there is probably a much easier way to do what I am trying
to do. Any
2005 Dec 18
2
Could someone host my 1mb rails app??
Hi Everyone,
Would someone be able to do a huge favor for me and host a very small
1mb rails app for me?? I can''t get my hosting up and running yet and I
really need it up and running by today for my professor to check it off.
I only need it up for about two weeks. You will get a lot of karma
points for it :)
Thanks in advance!!
Jordan
--
Posted via http://www.ruby-forum.com/.
2017 Dec 03
5
Rcpp, dyn.load and C++ problems
Hi,
I have written a small C++ function and compile it.
However in R I can't see the function I have defined in C++.
I have read some web-pages about Rcpp and C++ but it is a bit confusion
for me.
Anyway,
This is the C++-code:
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
List compute_values_cpp(int totalPoints = 1e5, double angle_increment =
0.01, int radius =
2006 Jul 02
11
Rails Plugin: meantime_filter for controllers (actions within blocks)
Hello, I just finished writing a plugin for Rails that I''m annoucing
the first release here: meantime_filter.
It is descibed at http://roman2k.free.fr/rails/meantime_filter/0.1.0/
rdoc/
(See the end of this message for getting it.)
ABOUT THE PLUGIN
It extends ActionController to add the functionnality of having
filters run at the action call time. This new type of filter yields
2017 Dec 03
0
Rcpp, dyn.load and C++ problems
.Call("compute_values_cpp")
Also, if you were passing arguments to the C++ function you would need to
declare the function differently.
Do a search on "Rcpp calling C++ functions from R"
HTH,
Eric
On Sun, Dec 3, 2017 at 3:06 AM, Martin M?ller Skarbiniks Pedersen <
traxplayer at gmail.com> wrote:
> Hi,
>
> I have written a small C++ function and compile it.
2008 May 28
2
Re: calculating the needed swiotlb in dom0
I just found out that setting swiotlb=128 in dom0 grub.conf allowed me to
run my mythtv domU with additonal options to ivtv:
in /etc/modprobe.d/options
options ivtv enc_mpg_buffers=8
Setting this to any higher value causes a kernel panic. I want to be able
to specify
options ivtv enc_mpg_buffers=16 enc_vbi_buffers=8
How much swiotlb do I need? Is there a way to figure this out or is it just
2009 Feb 20
6
How to mock an object defined in the before_filter function?
Hello,
I am trying to implement the following scenario, but I am stuck ...
The thing is I want to initialize a variable @comment when the stub
function "find_comment" is called.
The way I do it below doesn''t work, since
"before_filter :find_comment" returns true/false and @comment
initialization is done inside it. Could you please give me a hint how
to do it?
One
2007 Nov 12
7
schema_info always wants to be 3, even when set to 7
Hi all,
I''m having a very odd problem with db:migrate. I''m using Rails 1.2.5
on Windows XP SP2 and Ruby 1.8.6
I have seven migrations. If I run them with an empty database, it
runs the first three, then halts. When I look in schema_info, the
version is 3.
If I run db:migrate VERSION=7, then it runs through the remaining 4
migrations, and the version is 7 in the DB.
2006 Jan 10
5
Select Tag and Associations
Hi there,
I''ve been working on this for awhile and have finally decided to ask
for a little guidance.I have a slight problem trying to save a
selection.
I have two models:
A "Posting" has_many "Categories", and a "Category" belongs_to one
"Posting". With that said, in the posting model I have "has_many
:categories" and within the
2006 Jan 08
9
URL/Site structure
Greetings,
I''m fairly noob with rails and making my first DB driven site with it.
I''m using the scaffold generator to develop the admin side of my site
(admin_controller)
I have three sections that I want to have the administrator edit, and I
want to call these from the admin controller that has a layout with
navigation to these three sections.
When using the scaffold
2006 May 29
3
Timer for executing events
Hi Everyone,
I hope you guys can help me out. What is the best way to go about using
a timer to execute events? I would like to execute a block of code
every 24 hours (or at midnight - server time). Is this possible?
What I am trying to get at is that I would like to create a new page
every 24 hours and have that serve as my front page. Is it possible to
route to this ''new
2006 Jun 08
5
Displaying Calculation on Index
Hi, I am trying to create a simple point system and display the total on
my index page. So I have my db basically setup like this:
Posts
id, body, created_at, user_id
Post_points
id, post_id, user_id, created_at, value
So as you can see I am allowing other users to create points on the post
and my db will store who gave the point as well. "value" is the point
value which can
2006 May 31
6
habtm on an array (or object.habtm.habtm)
Hi,
I have three Models: User, Group and File.
User habtm groups
and
Group habtm Files
How can I find all files that a particular user has access to?
eg user.groups.files ?
As user.groups returns an array, the above doesn''t work.
Id like to find the files for all groups in that array, without adding
any code to the User model.
Thanks in advance
PS I just posted this in the
2005 Dec 18
5
restarting fastCGI process
Hi, I am very new to this so please go easy on me... I am trying to
deploy my app on dreamhost and I seem to be having problems getting it
working. One of the troubleshooting items on the wiki states:
Rails apps in production mode do not reflect changes made after they
start running. So, if you found a bug, fixed it and nothing appeared to
happen--this is probably because you
2007 Jun 03
3
Contextual Associations
No doubt this has been covered but I''ll be damned if I can find it.
References appreciated so I can add to my library.
1. I have 3 tables in my problem: changes, environments, comments
2. changes are many-to-many to environments
3. changes has-many comments
Here''s the tricky part:
4. environments has-many comments dependent on the current
environment.
Tables:
changes,
2009 Aug 11
3
SIP app for iPhone that works well with Asterisk?
Anyone have a chance to test any of the various iPhone SIP apps?
I see there are a few out there, but most of the iTunes reviews aren't
sufficiently technical to be useful.
Thanks.
2009 Aug 07
3
Anyone had any luck with SIP clients on the iPhone platform?
Hi,
I've tried two SIP clients so far and both have unusable outgoing
audio quality. Skype app sounds fine, and recording the same mic
sounds fine, so I can only assume there is an issue with the clients
themselves.
Both clients allow you to register and make calls via SIP with any
abitrary provider and credentials, so they'll work with Asterisk. I've
tried them with two good