Displaying 20 results from an estimated 378 matches for "shorthand".
2010 Apr 18
1
Add shorthand support for routes like /projects/status(.:format)
Hi, when trying to migrate Signal to Rails 3 I tried to use the shorthand
route for:
match ''/projects/status(.:format)''
but it thrown an error because the controller was not specified. This
happend because actually the shorthand routes only work with routes without
optional parameters. The modification to support routes ending with a
optional paramete...
2008 Apr 20
2
[Bug 15621] New: Support CSS color shorthand
http://bugs.freedesktop.org/show_bug.cgi?id=15621
Summary: Support CSS color shorthand
Product: swfdec
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: library
AssignedTo: swfdec at lists.freedesktop.org
ReportedBy: candrews at...
2007 Jul 21
1
Testing shorthand array push <<
Hi everyone,
I''m trying to test the shorthand way to push objects into an array. My
controller looks like:
current_user.foos << @foo
and I keep getting an error like Mock ''foos'' received unexpected message :<<
with <FooClass>
does anyone have a good solution for this?
I tried controller.send(:current_use...
2020 Jul 14
0
[PATCH v4 03/75] KVM: SVM: Use __packed shorthand
From: Borislav Petkov <bp at alien8.de>
Use the shorthand to make it more readable.
No functional changes.
Signed-off-by: Joerg Roedel <jroedel at suse.de>
---
arch/x86/include/asm/svm.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h
index 0420250b008b.....
2020 Aug 24
0
[PATCH v6 04/76] KVM: SVM: Use __packed shorthand
From: Borislav Petkov <bp at alien8.de>
Use the shorthand to make it more readable.
No functional changes.
Signed-off-by: Borislav Petkov <bp at alien8.de>
Signed-off-by: Joerg Roedel <jroedel at suse.de>
---
arch/x86/include/asm/svm.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/x86/include/asm/svm....
2020 Mar 01
0
[Bug 1412] New: ip6tables-nft not accepting "icmp" as shorthand for "icmpv6"
https://bugzilla.netfilter.org/show_bug.cgi?id=1412
Bug ID: 1412
Summary: ip6tables-nft not accepting "icmp" as shorthand for
"icmpv6"
Product: nftables
Version: unspecified
Hardware: x86_64
OS: Debian GNU/Linux
Status: NEW
Severity: minor
Priority: P5
Component: iptables over nftable
Assign...
2020 Apr 28
0
[PATCH v3 03/75] KVM: SVM: Use __packed shorthand
From: Borislav Petkov <bp at alien8.de>
I guess we can do that ontop.
Signed-off-by: Joerg Roedel <jroedel at suse.de>
---
arch/x86/include/asm/svm.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h
index e4e9f6bacfaa..9adbf69f003c 100644
--- a/arch/x86/include/asm/svm.h
+++
2008 Jul 25
1
Minor Bug in Documentation of merge()
Dear all,
I would like to point to a minor bug in the documentation of merge().
The documentation (?merge) says
all logical; all = L is shorthand for all.x = L and all.y = L.
I think the correct description should be
all logical; all = T is shorthand for all.x = T and all.y = T.
The source file which needs to be fixed is
src/library/base/man/merge.Rd
To be sure that it hasn't been fixed in the meantime, I checked the
merge.Rd in R-pa...
2025 Jan 22
1
Depends: R (>= 4.1) for packages that use |> and \(...)
>>>>> Kurt Hornik writes:
I just committed c8761[2-4] to the trunk which adds an internal utility
for finding package code using the pipe or function shorthand, teaches R
CMD build to add a dependency on R >= 4.1.0 as necessary, and teaches R
CMD check to NOTE a missing dependency on R >= 4.1.0, based on Ivan's
code.
Currently, we seem to have about 1149 packages on CRAN with package code
using the pipe or function shorthand, with only 415 dep...
2011 Nov 04
2
Error in documentation of "merge"
Hi
there seems to be an error in the documentation of the "merge" function:
Arguments:
x, y: data frames, or objects to be coerced to one.
by, by.x, by.y: specifications of the common columns. See ‘Details’.
all: logical; ‘all = L’ is shorthand for ‘all.x = L’ and ‘all.y =
L’.
The "L" should be a T or a TRUE.
Cheers,
Rainer
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel...
2005 Aug 17
7
Need help with the rubyonrails wiki - instiki filters
I am trying to do a tutorial improvement on the wiki but I am having
some problems with the auto formatting. Using httdp.conf produces
http://httpd.conf when filtered. Using *.so produces .so and bold text
there after.
Is there any shorthand for the user for making text appear as it should
without the linking and re-writes? Or does the admin have to change the
filters in Instiki?
Tesla
2011 Mar 21
3
Replacing Period in String
Dear R Users,
I am working with gsub for the first time. I am trying to remove some
characters from a string. I have hit the problem where the period is the
shorthand for 'everything' in the R language when what I want to remove is
the actual periods. In the example below, I simply want to remove the
periods as I have removed the comma, but instead the complete string is
wiped out. I would appreciate it if someone could let me know how I
communicate th...
2010 Dec 07
4
increase or decrease variable by 1
many languages have shorthands for that operation like:
variable += 1
or
++variable
is there something like that in R ?
--
View this message in context: http://r.789695.n4.nabble.com/increase-or-decrease-variable-by-1-tp3076390p3076390.html
Sent from the R help mailing list archive at Nabble.com.
2011 Sep 11
2
where to use colon (:) and where to not use it?
Hi,
I am a bit confused with ruby syntax with colon. You see
in controller "render :nothing => true"
and in routes " resources :books"
and in model "validates :name, :presence => true:"
everywhere so is that a key value pair or something else?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2025 Jan 19
1
Depends: R (>= 4.1) for packages that use |> and \(...)
...ing for empty or unneeded directories
>>> NB: this package now depends on R (>= 4.1.0)
>>> WARNING: Added dependency on R >= 4.1.0 because some of the source
>>> files use the new syntax constructs.
>>> Files making use of R >= 4.1 pipe |> or function shorthand \(...):
>>> biplotEZ/R/biplot.R biplotEZ/R/translate_axes.R
>>> * building ?biplotEZ_2.2.tar.gz?
>>>
>>> A more extensive test could also look at the tests, demos, and
>>> \examples{}, but that may take longer and open the door for false
>>> po...
2018 Jul 31
2
Re: [PATCH nbdkit 3/4] Add map filter.
...erefore we have to
> + * split existing intervals as required. Earlier mappings are
> + * discarded where they overlap with later mappings.
since this paragraph is all about maintaining the invariant in favor of
each subsequent mapping, and thus the file format itself permits
overlaps for shorthands for special-casing subregions.
Is there a syntax for explicitly mentioning a subset is unmapped even
after a larger mapping is applied first (perhaps useful for redacting a
portion of a disk containing sensitive information)?
> +static int
> +insert_mapping (struct map *map, const struct...
2014 May 08
2
[PATCH v10 09/19] qspinlock: Prepare for unfair lock support
...M -0400, Waiman Long wrote:
> If unfair lock is supported, the lock acquisition loop at the end of
> the queue_spin_lock_slowpath() function may need to detect the fact
> the lock can be stolen. Code are added for the stolen lock detection.
>
> A new qhead macro is also defined as a shorthand for mcs.locked.
NAK, unfair should be a pure test-and-set lock.
> /**
> * get_qlock - Set the lock bit and own the lock
> - * @lock: Pointer to queue spinlock structure
> + * @lock : Pointer to queue spinlock structure
> + * Return: 1 if lock acquired, 0 otherwise
> *
>...
2014 May 08
2
[PATCH v10 09/19] qspinlock: Prepare for unfair lock support
...M -0400, Waiman Long wrote:
> If unfair lock is supported, the lock acquisition loop at the end of
> the queue_spin_lock_slowpath() function may need to detect the fact
> the lock can be stolen. Code are added for the stolen lock detection.
>
> A new qhead macro is also defined as a shorthand for mcs.locked.
NAK, unfair should be a pure test-and-set lock.
> /**
> * get_qlock - Set the lock bit and own the lock
> - * @lock: Pointer to queue spinlock structure
> + * @lock : Pointer to queue spinlock structure
> + * Return: 1 if lock acquired, 0 otherwise
> *
>...
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
2023 Apr 12
3
converting to date object...
...ct. I tried as_Date() from lubridate, but it is not working:
> as_date("12 APR 2023")
[1] NA
Warning message:
All formats failed to parse. No formats found.
> as_date("12-APR-2023")
[1] NA
Warning message:
All formats failed to parse. No formats found.
I am looking for a shorthand way of doing it. Of course, one can convert APR to 4 and get the job done, but I ma looking for a short and elegant code
please help...
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
[[alternative HTML version deleted]]