Displaying 20 results from an estimated 3000 matches similar to: "Noughts and Crosses layout with a variable number of entries"
2008 Jan 01
7
in_vertical_groups_of
Hi all,
Here''s another contribution for anyone interested.
In Railscast episode 28, Ryan Bates showed us in_groups_of which
allows you to group array members such as
>> list = [1, 2, 3, 4, 5, 6, 7]
=> [1, 2, 3, 4, 5, 6, 7]
>> list.in_groups_of(3)
=> [[1, 2, 3], [4, 5, 6], [7, nil, nil]]
This allows you to iterate over the groups and, for example, display
a list
2006 May 31
7
Getting 22 elements
Hello,
I''ve done
===
class HomeController < ApplicationController
def index
@country = Country.find(:all, :include => "cities")
end
end
===
And rhtml is:
===
<% @country.each do |country| %>
<h1><%= country.name %></h1>
<% country.cities.each do |city| %>
- <%= link_to city.name, :action =>
2006 Jul 20
11
3 columns
Hi all,
Not really sure what to put in the title so hope people still open this!
What I want to do is produce something like this
Col1 Col2 Col3
data1 data2 data3
data4 data5 data6
data7 data8 data9
data.. data.. data..
data.. data.. data..
data-n data-n+1 data-n+2
I can get the data back from my db
2009 May 27
4
Scaffolding Results Format
Hi Everyone,
I built a scaffold and I''m having trouble getting results properly
formatted. (I need to get the data into multiple columns instead of just
one big column) I can''t get all of my CSS to work properly in
scaffold.css, layout/books.rhtml, or the books/index.rhtml.erb Anyways,
maybe you have a suggestion.
Default view (127.0.0.1:3000/books)
Title Abstract
2006 Apr 09
6
Write/Display AR query as Grouped Results?
I''ve got a publications table that contains an author_id foreign key and
a pubrole_id foreign key. What I want to do is query the DB using AR so
that I can get a list of all publications that belong_to a particular
author, and group the results by the pubrole.role_name (Author, Joint
Author, Editor, etc.) so that the results look something like:
Author
book1 info
book2 info
etc.
2005 Mar 29
4
slide show with R
Trying to use R to build an interactive "slide show", to be displayed on a
projector. The purpose of the presentation is to show how one could
construct a simple graph using R. It is meant as a general overview rather
than as detailed instruction.
For example, something like the following sequence of commands. At
lecture time, I want the interpreter to read these commands one at a
2009 Mar 08
1
Working with in_groups_of
I''m trying to build a table out using in groups of, but I''d also like to
be able to customize the first and last rows.
Apart from the actual formatting, is there an efficient way to figure
out how many total groups there are and what group the iteration is in?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this
2006 Jul 19
1
Displaying data in a table
I''m trying to display a series of pictures in a table. Rather than just
house each of the pictures in separate rows, I''d like to have 5 pictures per
row. So, basically after I iterate through five columns in my table, I need
to start a new row and show the next 5 pictures.
Could someone help me with the looping structure I''d need to create to do
this?
Thank you!
Sarah
2017 Feb 11
2
Wich web browser on CentOS6 ?
Yes David, I'm using a release 32 of Firefox to reach my olds C6100
IDRAC7 interface.
The problem is for latest Firefox versions as they require libgtk-3 not
available in Centos6/RHEL6 distribution.
Today I use a very very bad solution to reach my switch with latest
firmware version from the latest Firefox available in CentOS: I disable
https and use http....
Even if it is on a private
2017 Jan 09
4
How to downgrade gtk2 libs in CentOS 6.8?
Hi all. I'm using a CentOS 6.8 VM to do volunteer builds for an open
source project. I want to build Pale Moon with a gtk2 library older
than 2.24, to allow people with older linuxes to run it. Short summary,
if built against version gtk2-2.24 and/or higher, the binary will use a
function that does not exist in gtk2-2.23 and lower. Net result is that
the program dies with an
2006 May 03
2
grouped output
hello,
Suppose I have a table that looks like this:
center name email
Health Jon jon@test.com
Health Bob bob@test.com
Admin Jane jan@test.com
Admin Jill jill@test.com
I would like the output to look like this:
Health
Jon jon@test.com
Bob bob@test.com
Admin
Jane jan@test.com
Jill jill@test.com
when i using cold fusion, this was easy via a tag called cfoutput.
when i was using java, this was
2007 Apr 12
3
[LLVMdev] Compiler Name
Suggestions:
Zembla - It's a fictional northern European country in "Pale Fire"
by Nabokov.
Pala - The island utopia in Aldos Huxley's "Island".
Thra - The world of The Dark Crystal.
-bw
2002 Mar 21
2
Formatting the output of pairs()
Would anyone be able to give me some ideas on how to go about changing
the output of pairs()?
What I want to do is :
* plot each value as a point (instead of those hollow circles)
* remove the gap between each scatter plot
* make the frame around each scatter plot pale grey
Thanks for you time,
Hadley
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help
2001 Oct 28
0
YASNPP - Yet Another Stupid Newbie Printing Problem
Hi all,
I have a small peer-to-peer network of machines (3 * W98, 1 * Redhat7.1)
with two printers (1 * HP6L, 1 * Lexmark Z22) hanging off the back of
one of the W98 machines and have an odd problem. I am still a newbie
with Linux, finally getting things up and running (sort of) after
several weeks of fiddling around and innumerable reinstalls. I've
finally seemed to have got Samba
2004 Oct 01
3
controlling colour in Trellis histogram
Hello. I am sorry for posting a (seemingly) simple question, but I have
just spent 2 hours trying to find the answer, without success. I want
to make a histogram with conditioning on a factor, using Trellis
graphics. However, I do not want any colours (only black and white)
either in the histograms or in the strip. There must be some simple
argument but I can’t find it. Here is my code so
2006 Jun 15
6
[OT] Tables VS divs for form layout.
I''ve been using tables to get my forms to line up. ( I have usually one
column for labels, and a column for values ). Should I be using divs
instead? I''ve been reading some CSS design books lately. They tend to
recommend divs over tables for general page layout stuff. But, what about
the forms elements? What''s the ''best practice'' in this regard?
2011 May 28
1
ggplot pale colors
Hello i am new to ggplot and i observed a strange behavior.
I want to display two groups of points, each group with a different color.
But i encountered a problem with the colors.
Here is a first example:
dataset <- data.frame(Main = c("A", "A", "B", "B"), Detail = c( "b", "c", "1", "2"), resp = runif(4, min
2009 Dec 05
3
Referencing variable names rather than column numbers
I apologize for how basic a question this is. I am a Stata user who
has begun using R, and the syntax differences still trip me up. The
most basic questions, involving as they do general terms, can be the
hardest to find solutions for through search.
Assume for the moment that I have a dataset that contains seven
variables: Pollution, Temp, Industry, Population, Wind, Rain and
Wet.days. (This
2017 Jan 09
3
How to downgrade gtk2 libs in CentOS 6.8?
On 01/09/2017 07:54 AM, Jonathan Billings wrote:
> On Jan 9, 2017, at 4:08 AM, Walter Dnes <waltdnes at waltdnes.org> wrote:
>> Hi all. I'm using a CentOS 6.8 VM to do volunteer builds for an open
>> source project. I want to build Pale Moon with a gtk2 library older
>> than 2.24, to allow people with older linuxes to run it. Short summary,
>> if built
2017 Feb 11
2
Licence text questions
I'm running a CentOS 6.5 chroot to build Pale Moon (a Firefox fork)
for older machines running distros like Puppy linux. Before anyone
asks...
* Yes, even though the older machines are using "ancient" glibc, etc,
they do have security patches back-ported, e.g.
http://www.murga-linux.com/puppy/viewtopic.php?t=90461
"Lucid Puppy Revitalized as 5.2.8.7 - December,