Displaying 20 results from an estimated 172 matches for "curry".
Did you mean:
carry
2007 Nov 01
3
Curry: proposed new functional programming, er, function.
Hi all (especially R-core) I suppose,
With the introduction of the new functional programming functions into
base I thought I'd ask for a Curry() function. I use a simple one that
looks this:
Curry = function(FUN,...) { .orig = list(...);function(...)
do.call(FUN,c(.orig,list(...))) }
This comes in really handy when using say, heatmap():
heatmap(mydata,hclustfun=Curry(hclust,method="average"))
or other functions where there a...
2011 Mar 21
1
Curry with `[.function` ?
Dear all,
I sometimes use the following function:
Curry <- function(FUN,...) {
# by Byron Ellis,
https://stat.ethz.ch/pipermail/r-devel/2007-November/047318.html
.orig <- list(...)
function(...) do.call(FUN,c(.orig,list(...)))
}
... and have thought it might be convenient to have a method for [ doing
this. As a simple example,
> a...
2002 Jul 16
3
Solaris privsep and compression.
Has anybody got privsep and compression working together on Solaris
2.6 and 2.5.1? I have no problem getting it working under Solaris 8, but
on 2.5.1/2.6 it says:
# ./sshd -p 6666
This platform does not support both privilege separation and compression
Compression disabled
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Currie | |
2011 Nov 16
2
Any android source client for icecast ?
Try "XIIALive Lite", it works perfectly for my Icecast/Vorbis stream.
The 'lite' version is free and works fine (ad supported).
*xiialive*.com
//
On 11/16/2011 06:33 AM, michel memeteau wrote:
> Hi all ,
>
> Just wondering if any Android icecast source is on the Way.
>
> the point is that I build a mobile Icecast source with 3G. My choices
> are :
>
>
2009 Oct 01
1
inverse currying
Dear list,
I have the following function,
sugar = function(fun, id = "id"){
ff <- formals(fun)
if( id %in% names(ff))
stop("id is part of args(fun)")
formals(fun) <- c(unlist(ff), alist(id=))
fun
}
which one may use on a function foo,
foo = function(x){
x
}
sugar(foo) # results in the extended closure,
function (x, id)
{
x
}
Its limitation (other
2008 Jul 07
4
script.aculo.us slider - this and event handler - depending sliders
Hi,
I successfully created depending sliders with prototype and slider.js.
See the result here: http://www.soa-world.de/dev/slider/slider.html
(here''s the code: http://pastebin.com/ma1e82eb)
There is one problem with my code. What I do is I have a sliders class
"function sliders()"
inside I create the 5 sliders in a for loop and store them inside an
array which is a member of
2010 Dec 06
2
Any android source client for icecast ?
I don't have an Android phone, but if I did, I would look for a VLC
port, or a try a Java source client like JRoar.
It would be interesting to find out if either of these work!
- Leo
On 6 December 2010 12:55, <un at dom.de> wrote:
> Thomas B. Ruecker:
>> Nobody said anything about this necessarily being a GUI,
>> user-frienldy application, right?
>
> bare bone is
2017 May 05
3
A few suggestions and perspectives from a PhD student
...s, an intuitive symbol such as | would be helpful, and it sometimes bothers me that I have to parenthesize anonymous function, which would probably not be required in a native pipe-operator, much like it is not required in f.ex. lapply. That is,
1:5 %>% function(x) x+2
should be totally fine
2) currying
Currently available in package Curry. The idea is that, having a function such as foo = function(x, y) x+y, one would like to write for example lapply(foo(3), 1:5), and have the interpreter figure out ok, foo(3) does not make a value result, but it can still give a function result - a function o...
2010 Jan 26
1
ordisymbol - changing symbols used in plotting factor levels
...lue triangles
for the first factor level and red circles for the second level. What
I want to do is change the symbols so they all plot as circles, then
change the colours used to plot each factor level (e.g. I want blue
circles and red circles). Any advice on how to do this?
Thanks,
Colin Curry
--
Colin Curry
Ph.D. Candidate
Canadian Rivers Institute
Department of Biology
University of New Brunswick, Fredericton
[[alternative HTML version deleted]]
2009 Jun 25
0
[LLVMdev] Replacing instruction in LLVM IR by an intrinsics
On Thu, Jun 25, 2009 at 12:32 AM, ihusar<ihusar at fit.vutbr.cz> wrote:
> //now i need to create an instruction that represents a call to a intrinsic
> Function* FIntr = Intrinsic::getDeclaration(&M, Intrinsic::regread_i32);
>
> // here it fails: void llvm::CallInst::init(llvm::Value*):
> //Assertion
2004 Aug 06
2
[OT] Online music database
Sorry this isn't really icecast related, but
I'm looking for an online music database that will let me search by
artist+track and retrieve the likely record label / music publisher that
owns the copyright.
I want to do this from within a script as well :)
Hoping somebody might know of one off the top of their head...
Cheers
Leo
<p><p><p>--- >8 ----
List archives:
2017 May 05
0
A few suggestions and perspectives from a PhD student
...ous-function-in-a-pipeline point one can already
do this which does use brackets but even so it involves fewer
characters than the example shown. Here { . * 2 } is basically a
lambda whose argument is dot. Would this be sufficient?
library(magrittr)
1.5 %>% { . * 2 }
## [1] 3
Regarding currying note that with magrittr Ista's code could be written as:
1:5 %>% lapply(foo, y = 3)
or at the expense of slightly more verbosity:
1:5 %>% Map(f = . %>% foo(y = 3))
On Fri, May 5, 2017 at 1:00 PM, Antonin Klima <antonink at idi.ntnu.no> wrote:
> Dear Sir or Madam,
&...
2017 May 08
3
A few suggestions and perspectives from a PhD student
...y
> do this which does use brackets but even so it involves fewer
> characters than the example shown. Here { . * 2 } is basically a
> lambda whose argument is dot. Would this be sufficient?
>
> library(magrittr)
>
> 1.5 %>% { . * 2 }
> ## [1] 3
>
> Regarding currying note that with magrittr Ista's code could be written as:
>
> 1:5 %>% lapply(foo, y = 3)
>
> or at the expense of slightly more verbosity:
>
> 1:5 %>% Map(f = . %>% foo(y = 3))
>
>
> On Fri, May 5, 2017 at 1:00 PM, Antonin Klima <antonink at idi.n...
2023 Nov 11
1
New syntax for positional-only function parameters?
...in order to make such collisions
>unlikely.
Some additional workarounds can be suggested. For example,
* Take a MoreArgs argument, like in mapply(). Cons: this argument forwarding is not perfect, e.g. a missing argument will cause an error, even if the target function could have handled it.
* Curry some or all of the arguments, i.e. replace the original closure with the one calling the original function and passing it extra arguments, e.g. my_lapply(X, curry(f, X = X, f = f), ...). I think I remember someone asking for dedicated currying syntax in R. Cons: a simple curry() implementation will...
2006 Oct 02
2
How do I list in YP? icecast2 ices0
I thought the YP code was going to be fixed to use less resources so it
could be used with other stream formats. It seems to be taking a long
time.
As it is now, Icecast2 is not a good solution for those wanting to be on
a popular directory. I am forced to recommend using Shoutcast to my
clients so they can get onto a popular directory. I would prefer to
recommend Icecast2.
Ross Levis.
2002 Aug 01
0
User directory shares with Samba, Winbind, and Win2k domain - Partial solution
...emi public files, as well set the desired permissions on the semi public, where the group can see and modify, but the rest of the company can not.
This is how I am trying to make it work with Samba+winbind and Win2k authentication. I hope you are able to find a solution that works for you.
Daniel Curry
IT Manager
Cariocas
625 Second Street
Suite 201
San Francisco, CA 94107
ph: 415-348-6516
fx: 415-348-6505
cell: 510-579-6680
"If A equals success, then the formula is: A = X + Y + Z,
X is work. Y is play. Z is keep your mouth shut."
- Albert Einstein
-----Original Message-----
F...
2004 Aug 06
0
[OT] Online music database
I'd search freshmeat/sourceforge/cpan before doing anything... there might already be a library or package for general-purpose web-grepping..
If not you can probably use a "HTML to ascii" converter (or some Perl/awk tag strip construct) which will reduce fluff in the pages. I find it easier to throw away data I know I _don't_ want first (though, if I knew regular expressions
2009 Jun 24
3
[LLVMdev] Replacing instruction in LLVM IR by an intrinsics
Hi everyone,
I am trying to write a pass, that finds some instructions and replaces them with my intrinsics,
but I am having problem understanding, how this should be done.
Let's say I have this instruction:
%tmp14 = load i32* getelementptr ([32 x i32]* @gpregs, i32 0, i64 28)
and i need to read the load's operands and replace it by let's say:
%tmp14 = call i32
2004 Aug 06
1
[OT] Online music database
(Already noting the posts that say this is not available)
Are you willing to deal with "non authoritative" answers in your query?
If so, you can write some scripts that talk CGI to a commercial music vendor. I use a (no longer available) MP3 tagger called "MP3 Internet Renamer". It would go out and request a web page from the "All Music Guide" (
2011 Nov 16
0
Any android source client for icecast ?
He's asking for a SOURCE client, not a _listener_ client.
I don't think such a thing exists at the moment.
TBR
--
Sent from my Nokia N950
On 16.11.2011 19:44 TheDarkener wrote:
Try "XIIALive Lite", it works perfectly for my Icecast/Vorbis stream.
The 'lite' version is free and works fine (ad supported).
*xiialive*.com
//
On 11/16/2011 06:33 AM, michel memeteau