Displaying 20 results from an estimated 30000 matches similar to: "running console commands in rails"
2006 Dec 04
1
backticks
I noticed just now that
package.skeleton() produces R files in which
the function names are escaped with backticks.
?Quotes says that "The preferred quote is the backtick (`)",
but I don't understand _why_ this is preferred.
?formula gives some clues but points out that there
are no guarantees that formulae using non-syntactic names such as
`like this` will be accepted.
What
2007 Oct 09
5
Backticks wrapping SQL values in polymorphic associations...
Hopefully the subject line didn''t scare you. That said...
I have a simple polymorphic relationship (is that possible?):
class Part
has_many :attachments, :as => :attachable
end
class Attachment
belongs_to :attachable, :polymorphic => true
end
Calling Part.find(:first).attachments yields this SQL error:
ActiveRecord::StatementInvalid:
Mysql::Error: Unknown column
2010 Aug 17
1
prompt () and backticks for default arguments
Dear all,
I just noticed, that prompt () looses backticks that protect default arguments:
f <- function (FUN = `*`) {}
cat (prompt (f, NA)$usage)
yields:
\usage{ f(FUN = *) } %- maybe also 'usage' for other objects documented here.
without the backticks, which is of course found by R CMD check as syntax error.
While this is easily fixed if the .Rd is further edited manually, I
2009 Sep 28
3
rjb: Java classes in Rails
Hi,
For those who might not be aware, rjb is a killer gem for using java
classes inside your rails app (or any ruby code). Check it out at:
http://rubyforge.org/projects/rjb/
I was able to successfully use it in one of my apps that required some
code that is only available in java. And it''s much nicer than having to
compile a java app, then shell out using backticks, get back the return
2017 Aug 02
2
can llvm-lit pass output of one RUN command as an argument to another RUN command
Is there a way to do this with llvm-lit, i.e., use the equivalent of
backticks?
foo takes a single argument, but doesn't read from stdin.
// RUN foo some_arg > %t; FileCheck %s < %t
// RUN foo `cat %t` | FileCheck --check-prefix=INVERSE
// CHECK: {{^[0-9]+$}}
// INVERSE: some_arg
thanks...
don
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jul 09
2
DOS box popping up under rubyscript2exe
Hello
My email has been broken for a week and some of it seems to have gone
astray - so if there are other unanswered wxruby queries kicking about,
please repost or forward me them.
I have encountered this problem with a DOS box popping up under rubyw /
rubyscript2exe; I don''t think it''s related to wxruby. I found them
popping up when shelling out with backticks - I believe
2006 Mar 25
4
the textilize method
I saw the guy in the 15 min blog video calling a method called textilize
however when i call it rails says it cant find this method. Is this
somehting extra i have to install to ruby... like a gem or somehting
--
Posted via http://www.ruby-forum.com/.
2007 Oct 08
5
Flat code block syntax
>>> I'm not sure the indentation feature is so useful. After all, you
>>> can use the old syntax if you want indentation. What do you think?
>>
>> I'd prefer to keep it simple and leave out the indentation feature.
I would also prefer to leave this out.
>>> Perhaps an alternative would be to use ++++s instead of ~~~~s.
>> Advantages: Not
2004 Sep 06
3
multiline IP hardphone w/ FDX speakerphone?
Could someone please recommend a reasonably priced IP phone
that works well with *, has a decent (full duplex, echo canceling)
speakerphone, has at least two line appearances, and can
transfer / conference reliably?
The Wiki lists 35 brands of hardphone, but:
1. Most seem to be toys.
2. For many, there is no info on e.g. speakerphone characteristics.
3. When one seems technically promising, e.g.
2006 Mar 25
67
Your Ruby IDE
Just a poll here i am looking for a good IDE for rails and wondering
what you guys use?
features i like in an ide
code highlites
auto code complete
file browser
Currently i am using dreamwever but the code highliting is really bad
its also a pain to set up other doucment types such as .yml data config.
--
Posted via http://www.ruby-forum.com/.
2009 Jul 30
3
update.formula and backticked colons
I just noticed the following in update.formula and I'm wondering if
this behavior is the intention of the developers. Here's an example:
update(`a: b` ~ x, ~ . + y)
Note now that the response has no backticks and is interpreted as a:b
(i.e. ":" is now an operator). This is because in update.formula the
call to terms.formula uses simplify = TRUE. I'm working with data that
2009 Jul 13
1
Running a single fixture.
Hello. I need to run a single fixture on my server as part of an
update to my application. I noticed that the other tables lost their
data when I run "rake db:fixtures:load". How do I make it so that only
a single fixture runs and ignores the rest?
2007 Aug 08
2
Backtick Hickup
I'm using Michel Fortin's MDTest cases to rewrite my html2text.php script.
Just now I stumbled upon this bug (in PHP Markdown at least):
# Input:
Backtick: ``\```
# Output:
<p>Backtick: `````</p>
# Should-Be Output:
<p>Backtick: <code>`</code></p>
If you (Michel) are already aware of this, just ignore me ;-)
--
Milian Wolff
2023 Mar 01
1
tab-complete for non-syntactic names could attempt backtick-wrapping
Consider:
x <- list(`a b` = 1)
x$a<tab>
(i.e., press the 'tab' key after typing 'x$a')
The auto-complete mechanism will fill the buffer like so:
x$a b
This is not particularly helpful because this is now a syntax error.
It seems to me there's a simple fix -- in
utils:::specialCompletions(), we can wrap the result of
utils:::specialOpCompletionsHelper() with
2006 Mar 25
0
Re: Rails Digest, Vol 18, Issue 654
Radrails! Certainly complies with what you are looking for and much more.
(Ctrl-Shift-V to toggle the editor between Model and View, for example).
Runs as a standalone application, or as a feature (plugin) on the Eclipse
platform. Cross platform either way.
Then there''s the cost: it''s free!
RadRails: http://www.radrails.org/
(Just one the award for best open source Eclipse
2006 Dec 30
4
Escaping inside code blocks?
I am doing unit-tests for Maruku and every once in a while I run into
some doubts.
I am posting a lot to the list, but all of these messages should be
in-topic (tell me if not).
Consider the input:
---
`There is a literal backtick (\`) here.`
`There is a literal backtick (\\`) here.`
``There is a literal backtick (`) here.``
---
The documentation says that line 2 and 3 are equivalent.
2009 Jun 16
7
Rsync, SSH and authorized_keys problem
Hi,
I'm trying to backup from one machine to the other (automatically via
cron) using rsync and ssh password-less public key authentication.
I having been trying to set this up following an article in a Linux
magazine[1] by only allowing the specific rsync command to run on the
remote box.
I am using the following rsync command:
$ rsync -avz -e "ssh -i ~/.ssh/backup-key" /backup
2006 Apr 17
7
MySQL backticks and column names
The upgrade to Rails 1.1 hurt my ability to run tests because it
generated the following MySQL error:
Mysql::Error: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near ''key ON config (key)'' at line 1: CREATE UNIQUE INDEX key ON
config (key)
I have a table called `config` with a column
2011 Apr 07
2
replace an expression with its value, or read macros
I know my subject line seems odd, but I want to replace an expression—such as a variable—with its value. For example, I want to paste() some strings together, assign the result to a variable s, then use the value of s as a variable to hold another value. Something like this:
import_subjects <- function (start, iterations) {
for (i in 1:iterations) { # iterate from start to end
s <-
2010 Jun 17
1
Rails won't execute backticked OS commands
I''m at a loss as what to look for...
I can issue a command result = `some_os_command_string` on my dev system
just fine in both a pur ruby test file, and from Rails in dev mode.
When I push that code to my server, the backtick command doesn''t work.
No failure message -- even if I wrap it in begin/rescue so I have no
specific clues to work from.
I can run that same back ticked