Displaying 20 results from an estimated 500 matches similar to: "Consecutive code blocks"
2011 Feb 17
16
Unindent ERB output
Hi all,
I''d like to unindent a block of ERB specifically to combat the extra
spacing being added to content inside <textarea> by the browser. Is
there such a feature in ERB?
I shall denote indentation with underscores in the pseudo code example
below.
Thanks in advance,
Khoan.
myview.erb:
<html ...>
__<%= render ''form'' %>
</html>
2005 Aug 10
2
extend question
Is it possible to call the super class''s version of a function from a subclass?
SuperClass = Class.create();
SuperClass.prototype = {
initialize: function(){
this.varA = '''';
this.varB = '''';
}
}
SubClass = Class.create();
SubClass.prototype = (new SuperClass()).extend({
initialize: function(somevar) {
this.somevar = somevar;
}
2005 May 31
1
Add Columns and Order for Rbind?
I am using rbind to add one list with one row to another master list. The
problem is that not all columns exist in both lists.
What methods would you recommend to reorder one list based on the column
names of another? If both sets have the same order and columns, I can
then use rbind. I can live with columns being added to the master list set
it makes the task easier using something like
2007 Dec 26
2
Importing Markdown posts to WordPress
I apologize for being off-topic, but I think there's more expertise on
this list than I'll find elsewhere.
I'm thinking about moving my blog from Movable Type 3.2 to WordPress.
As a test, I've set up a local WP installation and imported my old
posts--all of which are written in Markdown. They look awful,
primarily because the blocks of source code in many of my posts are
not being
2010 Oct 20
2
Job for senior quantitative analyst in Dublin
Senior Quantitative Research Analyst
Based in Irish Life Investment Managers, Lower Beresford Place, Dublin 1
Irish Life Investment Managers (ILIM), the investment management company within the Irish Life & Permanent Group manages assets of circa EUR30bn and provides fund management services to a large domestic and multi-national client base. We provide investment products to both
2005 Sep 30
5
Converting text into a javascript array
Hey Guys,
I know this isn''t specific to scriptaculous libraries but it''s something
that I''m exploring as I use the ajax functions in prototype. My
application server is not rails but java and I was thinking of returning
a javascript array in the ajax response. When I get back my response is
it, of course, text and I''m not sure how best to convert it into
2004 Nov 16
2
changing character to a vector name
Dear R People:
I would like to generate a vector/variable name from within a loop to be
passed to a table
function.
This is what I have so far:
>assign("p1",paste("raw3.df$",rw2$V1[3],sep=""))
>p1
[1] "raw3.df$CITIZEN"
>
Essentially, I want to use the raw3.df$CITIZEN along with another value to
generate a table.
However, I'm stuck here. I
2012 Aug 07
1
Unable to download R package
Hi,
I'm new to R. I'm using the R Gui and have tried to install additional packeges.
When I choose Packages/Install package(s) I get the following error...
utils:::menuInstallPkgs() Warning: unable to access index for repository http://cran.ma.imperial.ac.uk/bin/windows/contrib/2.15
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.15
2004 Nov 29
2
proper way to process dataframe by rows
This is a best practices / style question.
The way I use RODBC is I something like this:
> foo <- sqlQuery(db, "select * from foo")
> apply(foo, 1, function{...})
That is, I use apply to iterate over each result -- row -- in the
RODBC-produced dataframe. Is this how one generally wants to do this?
My concern is that when apply iterates over the rows, it uses
as.matrix()
2005 Apr 29
3
generalized matrix product ?
Is there available in R a generalized inner product or matrix product,
similar to 'outer(x,y, fun)', where one can specifiy an arbitrary function
in place of ordinary multiplication?
Here's my application. I frequently analyze user questionnaires from our
HR/training department. These have questions of the form
"please rate your skill in task X",
and other questions
2004 May 16
4
X100P Ireland Red Alarm (AR Tarzi)
Ahhh this could be my problem! I just checked which
wires on the RJ11 cable had a voltage across them and
it was the yellow and green (3 & 4?). From what
someone posted the other day it's supposed to be
Bumble Bee and Christmas Tree.
I did have to get a technician out to fix my line when
it was first installed because it was dead. Maybe he
wired it up incorrectly or maybe they just do it
2016 Feb 19
2
Re: problem cloning storage pool volume
On Fri, Feb 19, 2016 at 12:12 PM, Martin Kletzander <mkletzan@redhat.com>
wrote:
> On Fri, Feb 19, 2016 at 11:12:32AM +0000, Andrei Perietanu wrote:
>
>> I'm trying to clone a volume in a storage pool and I'm following the steps
>> described here:
>>
>>
2006 Mar 10
2
Sharing of Libraries (S+ and R)
Hi,
Can anyone please advise if there is a neat way to 'share' libraries of
(previously developed) S+ code with R?
Specifically, within S+ I can use the attach(what = "<Chapter Directory>",
pos = 2) command, to retrieve previously developed functions and variables
to position 2 in the search list. [Some may be intentionally masked by
what's in the current working
2005 Oct 11
1
Hmisc latex function
I'm using R 2.2.0 on an up-to-date version of Fedora Core 4 with the
latest version of Hmisc. When I run an example from the latex function I
get the following:
> x <- matrix(1:6, nrow=2, dimnames=list(c('a','b'),c('c','d','enLine
2')))
> x
c d enLine 2
a 1 3 5
b 2 4 6
> latex(x) # creates x.tex in working directory
sh:
2005 Jun 30
1
request/suggestion: modified names
For some time now I use a modified version of names (extract direction) of the following type:
Names<-
function (x,filter="^")
{
grep(filter,names(x),value=TRUE)
}
Request:
Has anyone already written a version which goes the other way (that is, which allows assignment of the type Names(x,filter)<-...). Naive versions are obvious, but I think something would have to be done
2006 Jan 12
0
re: Good OOP and JS books / tutorials?
>>Can anyone recommend good books, online tutorials, or any other learning
>>materials for Javascript - specifically Object Oriented Programming using
>>JS?
I''ve found the following site is a nice introduction for javascript
newbies who have an OO background:
http://www.multitask.com.au/people/dion/
Of course, the real ugly truths about javascript are a less
2023 Oct 10
5
[PATCH libnbd 0/4] Miscellaneous Rust cleanups
Add an overview libnbd-rust(3) man page pointing to the real
documentation. This is like OCaml & Golang.
When reviewing the real rustdocs I noticed they basically converted
the man pages into plain text, resulting in lots of problems such as
internal links not working, no `code` annotations, etc. So I wrote a
simple POD to rustdoc translator. It is by no means perfect, but it
fixes many of
2016 Feb 19
2
problem cloning storage pool volume
I'm trying to clone a volume in a storage pool and I'm following the steps
described here:
http://libvirt.org/docs/libvirt-appdev-guide-python/en-US/html/libvirt_application_development_guide_using_python-Storage_Pools-Cloning.html
My code looks like:
destXML = """
<volume>
2007 Aug 03
2
Bug: Code block after list
Maybe this has been reported before, but I can't find it in the
archives.
A code block immediately following an ordered or unordered list
breaks both the list and the code block. Badly.
Tab or spaces for the block don't matter, legal indentation variants
of the list don't matter. Tried a bunch of casual workarounds,
extra newlines, etc., but no joy. Needs explicit
2006 May 17
1
Announcement: Markdown-0.2 for PmWiki
Announcing a new release of the PmWiki Markdown extension.[1] This
release introduces an improvement in page rendering, examples of
syntax,[2] and better support for Atx (up from none). I have also
established a page to help keep interested parties informed of
changes, to include a discussion group.[3] There are still problems
with loose lists and blockquotes, but this is a 0.2 release. The
syntax