similar to: ducktyping ruby

Displaying 20 results from an estimated 20000 matches similar to: "ducktyping ruby"

2010 May 04
3
Idiomatic looping over list name, value pairs in R
Considering the python code: for k, v in d.items(): do_something(k); do_something_else(v) I have the following for R: for (i in c(1:length(d))) { do_something(names(d[i])); do_something_else(d[[i]]) } This does not seem seems idiomatic. What is the best way of doing the same with R? Thanks. Luis
2005 Aug 19
13
Enumerations (again): Comments please
Some of my earlier questions may have hinted ever so slightly in the direction that I''m trying to implement "enumerations". By an enumeration here I mean a class that has a fixed number of immutable instances, which in turn have essentially only a name and a position. Requirements I''ve tried to meet are - Enumeration instances should only be loaded once from the
2006 Mar 06
7
Set base url?
I have an application running on a Lighttpd instance which is proxied by an Apache server. It seems to work fine but my urls are incorrect: all urls reference / which is not where my application runs at the Apache server. How do I set the base url of a Rails application? My Apache has the following proxy rules: ProxyPass /hieraki http://localhost:3001 ProxyPassReverse /hieraki
2018 Apr 09
3
InductiveRangeCheckElimination and BranchProbabilityInfo
Hi, extractRangeChecksFromBranch uses BranchProbabilityInfo to decide whether its worth trying the InductiveRangeCheckElimination transformation. For the following example: void split() { for (int i = 0; i < 100; ++i) { if (i < 99) do_something() else do_something_else() } } But the reported BPI is reported as 50/50 to whether do_something will be called, but we
2004 Aug 06
3
parsing icecast 1 and icecast2 logs in GUI web format
I know this was mentioned some time back, but I am curious if anyone has had any further success with this. My radio station is looking for a nice clean comprehensive overview of all connections to our icecast 1 and 2 servers. Someone had tweaked the webalizer program to render all the stats in a nice GUI format. However, there were still a couple items missing. Just wondering what everyone else
2010 Jan 28
3
Using tcltk or other graphical widgets to view zoo time series objects
Dear all, I am looking at the R-help entry below: http://finzi.psych.upenn.edu/R/Rhelp02/archive/26640.html I have a more complicatedt problem. I have a zoo time series frame with 100+ sequences. I want to cycle through them back and forth and compare them to the 1st column at any time. I need also a button to click when I need the viewed-selected sequence (that is being compared to the
2015 Dec 01
10
[RFC] Intrinsic naming convention (words with dots)
Hi everyone, We seem to have allowed our documented target-independent intrinsics to acquire a somewhat-haphazard naming system, and I think we should standardize on one convention. All of the intrinsics have 'llvm.' as a prefix, and some also have some additional prefix 'llvm.dbg.', 'llvm.eh.', 'llvm.experimental.', etc., but after that we lose consistency. When
2018 Apr 27
5
Bug in RScript.exe for 3.5.0
Thanks Tomas, I confirm the R Under development (unstable) (2018-04-26 r74651) version works for Rscript when the file name has a space, and no arguments are specified. C:\>"C:\Program Files\R\R-devel\bin\x64\Rscript.exe" "C:\foo bar.R" R Under development (unstable) (2018-04-26 r74651) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601)
2006 Jun 14
7
open source sip softphone (Window OS version )
are there any open source sip softphone (Window OS version )?
2013 Sep 13
0
[LLVMdev] llvm.meta (was Rotated loop identification)
On Thu, Sep 12, 2013 at 4:52 PM, Hal Finkel <hfinkel at anl.gov> wrote: > > If we only try to solve your immediate problem of > > builtin_assume_aligned, isn't that good enough for now? > > The thing that most concerns me about __builtin_assume_aligned and this > scheme is the control dependencies. In gcc, it is the return value of the > intrinsic that carries
2006 Apr 05
23
how to create RJS visual effects callbacks
I''m trying desperately to get visuall effects callbacks working in rjs templates to no avail What I''m trying to do is fade an image, change the div with the image to a new image, and then fade the new image back in. How would I go about this in RJS Here''s a simple line from my rjs that I can''t get to work. It is not using callbacks so the
2018 Jan 09
4
IdentityFingerprint feature request
The IdentityFile config (or -i argument) lets you insist on (or prioritize, at least) a particular key file on disk. The key can be retrieved from ssh-agent without decrypting the file on disk, but it must be found at the specified path. I have a use case in which keys are added to ssh-agent on a forwarded connection, but are not present on disk locally. There is currently no way to refer to a key
2018 Apr 26
2
Bug in RScript.exe for 3.5.0
Hi Tomas, Thanks for the info about the binary builds; I did install it, however the bug still seems to be there in the current build. The workaround you suggested does work: C:\>"C:\Program Files\R\R-devel\bin\x64\Rscript.exe" "C:\foo bar.R" Fatal error: cannot open file 'C:\foo': No such file or directory C:\>"C:\Program
2006 Feb 14
22
Teaching Models to Render Themselves in the Controller
I am trying to teach my models how to render themselves, i.e. <%= my_model_object.render() %> Let me explain my reasoning and proposed method before this gets shot down as anti-MVC. Let''s say I am writing a contact-management application. I have a class Contact. I will need to display this class all over the application. My first choice is to use a partial. Now I can
2013 Sep 12
2
[LLVMdev] llvm.meta (was Rotated loop identification)
----- Original Message ----- > > > > On Sep 7, 2013, at 7:41 AM, Hal Finkel < hfinkel at anl.gov > wrote: > > > > > On Feb 7, 2013, at 10:58 PM, Hal Finkel < hfinkel at anl.gov > wrote: > > > > > As long as this is brainstorming time, I actually like the idea of > an > llvm.invariant intrinsic that the optimizers know to
2004 Aug 06
6
Unofficial Icecast HOWTO posted
Howdy. I just posted an unofficial HOWTO on configuring icecast2 on a Linux or other UNIX machine. It's just a draft in DocBook format, but I was hoping it might help someone. I've worked enough with icecast over the past few years that I thought it time to share what I've learned. The URL is as follows: http://quasi.ksl.com/icecast/ I have older documentation in
2004 Aug 06
2
Unofficial Icecast HOWTO posted
Absolutely!! That was one thing that I was missing and would have like to have included. You can either send me the data or let us know the link. If you wouldn't mind adding to this HOWTO and I will post a link to your page so that people would know where I got the original files. Sounds good. KJ <p>On Wed, 2003-02-12 at 10:37, adam wrote: > looks great! :-) > > if you like i
2004 Aug 06
3
Icecast 1.3??
According to this list I was told that it was available to download? The only thing on the download page is the info on icecast 2 from cvs? Perhaps I'm missing something?? -- Ted Lynn <ted@linuxmds.com> --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to
2006 Apr 10
5
SPA-941/942 Bulk provisioning
Has anyone got any information on bulk provisioning of Linksys SPA-941/94s? There is an overview in the admin guide but it refers to a different provisioning guide that I haven't found anywhere. Kerry Garrison Director of Technical Services Tech Data Pros - Orange County's Mobile IT Service Provider (949) 502-7819 x200 - <mailto:kerryg@techdatapros.com> kerryg@techdatapros.com
2006 Apr 27
7
Polycom NTP issue
I am ready to pull my hair out. I cannot seem to get the Polycoms to read the time properly. Regardless of the server they are pointed to our the offset, i am getting the correct time, but 24 hours ahead. So for today it is showing Friday April 28 but with the correct time. Any clues? Kerry Garrison Director of Technical Services Tech Data Pros - Orange County's Mobile IT Service Provider