similar to: Ruby Koans an amazing platform for teaching programming. Would this work with R?

Displaying 20 results from an estimated 400 matches similar to: "Ruby Koans an amazing platform for teaching programming. Would this work with R?"

2012 Sep 23
1
ruby koans don't understand the principle sandwhich code
hello, Im still working on ruby koans. Now I have to do some sandwhich code. The exercise looks like this : require File.expand_path(File.dirname(__FILE__) + ''/edgecase'') class AboutSandwichCode < EdgeCase::Koan def count_lines(file_name) file = open(file_name) count = 0 while line = file.gets count += 1 end count ensure file.close if
2011 Jul 17
1
[LLVMdev] vmkit runtime errors
Hi LLVM developers, I have successfully installed LLVM 2.9 on an ubuntu linux box, with a LLVM-based frontend support of gcc and g++. After installing successfully vmkit I have tried running my java applications, but it failed. I have installed the latest stable release of vmkit (0.29) using the introduction text of the LLVM website. The application does consist of two programs. The first
2012 Sep 21
3
(koans) another problem (syntax error)
Hello, I now trying to solve this one : # Triangle Project Code. # Triangle analyzes the lengths of the sides of a triangle # (represented by a, b and c) and returns the type of triangle. # # It returns: # :equilateral if all sides are equal # :isosceles if exactly 2 sides are equal # :scalene if no sides are equal # # The tests for this method can be found in #
2010 Apr 10
0
[LLVMdev] VMKit assertion failure
Hi Konrad, I have added some diagnostic message when failing that early in the bootstrap in the VM. Please svn up and let me know what it prints. About the SIGSEGV you get with clojure.jar, I ran the code and got the same error. After investigation, it turns out that the methods you have in that .jar are quite big (50,000 bytecodes) and the static initializer of the core__init class just crashes
2013 May 14
1
PuppetDB Cannot Find Postgresql Driver
Puppet 3.3.1 // CentOS release 6.4 (Final) rpm -qa | grep puppet puppetlabs-release-6-7.noarch puppet-3.1.1-1.el6.noarch puppetdb-1.3.0-1.el6.noarch puppet-server-3.1.1-1.el6.noarch puppetdb-terminus-1.3.0-1.el6.noarch Installed from yum packages: Running Transaction Installing : puppetdb-1.3.0-1.el6.noarch
2010 Apr 09
3
[LLVMdev] VMKit assertion failure
On 09.04.2010, at 11:28, nicolas geoffray wrote: > VMKit runs multiple threads (for example for GC, finalization, etc), > so I need the back trace of other threads as well :) Here it comes: Thread 4 (process 14442 thread 0x2003): #0 0x950be44e in __semwait_signal () #1 0x950e93e6 in _pthread_cond_wait () #2 0x950e8dcd in pthread_cond_wait$UNIX2003 () #3 0x000be2d2 in mvm::Cond::wait
2012 Jan 28
2
Need very fast application of 'diff' - ideas?
Hi everyone, Speed is the key here. I need to find the difference between a vector and its one-period lag (i.e. the difference between each value and the subsequent one in the vector). Let's say the vector contains 10 million random integers between 0 and 1,000. The solution vector will have 9,999,999 values, since their is no lag for the 1st observation. In R we have: #Set up input vector
2020 Mar 17
0
new bquote feature splice does not address a common LISP @ use case?
Hi Jan, In the lisp code you provide the operators are parsed as simple symbols in a pairlist. In the R snippet, they are parsed as left-associative binary operators of equal precedence. If you unquote a call in the right-hand side, you're artificially bypassing the left-associativity of these operators. To achieve what you're looking for in a general way, you'll need a more precise
2018 Jan 18
0
reading lisp file in R
The file also has a bunch of email headers stuck in the middle of it: ..... (QUALITY-OF-LIFE SCALE:1-5 4) (ACADEMIC-EMPHASIS HEALTH-SCIENCE) ) ------- ------- >From LEBOWITZ at cs.columbia.edu Mon Feb 22 20:53:02 1988 Received: from zodiac by meridian (5.52/4.7) Received: from Jessica.Stanford.EDU by ads.com (5.58/1.9) id AA04539; Mon, 22 Feb 88 20:59:59 PST Received: from
2013 Nov 20
2
Functional Programming patterns
Hi, ' Not specific to 'R'. I search for patterns and found http://patternsinfp.wordpress.com/ which is too heavy for me. There is a 'Pragmatic Programmer' book on such patterns for Scala and Clojure. Is there anything for R ? I wanted to code this. Is there a functional pattern in R for multiple 'if' loops like this ? if(
2010 Nov 03
0
[XCP] Migration from cobbler/koan to XCP Templates
Hi All, Does anybody have any tips or suggestions for migrating from a CentOS + Xen setup and using cobbler/koan [1] for VM provisioning to an XCP setup using XCP templates (or similar) to provision VMs? cobbler/koan make use of kickstart, which It looks like XCP can do as well. Mainly, I am wondering if converting the cobbler profiles could be done automatically and reliably? Any comments,
2013 Jan 22
1
[LLVMdev] Compiling to NVPTX
I'm in the process of writing a library and giving a talk about writing compilers using LLVM (llvm-c) and Clojure. As part of my talk I'd like to give an example of a program running on CUDA. Are there any papers, tutorials, examples, on writing a custom frontend for NVPTX? For instance, I'm trying to figure out how to get access to "global" variables like blockidx. I know
2010 Apr 10
2
[LLVMdev] VMKit assertion failure
Hi Nicolas, > I have added some diagnostic message when failing that early in the > bootstrap in the VM. Please svn up and let me know what it prints. It prints: Exception java/lang/UnsatisfiedLinkError while bootstraping VM That looks like a JNI issue. > About the SIGSEGV you get with clojure.jar, I ran the code and got > the same error. After investigation, it turns out
2010 Apr 10
0
[LLVMdev] VMKit assertion failure
OK, I know why you get that UnsatisfiedLinkError. You have made symlinks of GNU Classpath libraries with the .so suffix. Since you're on MacOS, you should do symlinks with the .dylib suffix (I notice that I'm not saying that on the webpage, I'll fix that right now). I'm not sure what to do about that core__init function. I will try to create a bigger stack to see if that changes
2010 Feb 02
0
Revolutions blog: January Roundup
I write about R every weekday at the Revolutions blog: http://blog.revolution-computing.com and every month I post a summary of articles from the previous month of particular interest to readers of r-help. http://bit.ly/a4iVi5 linked to slides and video from a 30-minute "Introduction to R" talk I gave on January 28, with links to many useful R resources. http://bit.ly/cfhrO1 brought
2012 Nov 21
1
[JOBS] RoR Developer at SF Google-Backed Start Up
The Climate Corporation is a Google Ventures funded big data startup with a mission to help people adapt to climate change. We make sense of huge amounts of complicated data and run simulations <http://goo.gl/9Fv0J> to determine the risk of adverse weather, which influences 25% of GDP. We are looking for a Web Application Developer who are passionate about innovation and share the value
2009 Mar 25
5
[Cucumber] ANN: Cucumber with pure Java
Big news for all Java programmers out there. Now you can use Cucumber with pure Java! That''s right, you don''t have to write a single line of Ruby! (1) All of your step definitions can be written as annotated methods in POJOs (Plain Old Java Objects). To get a taste of what this looks like, check out the simple example in the cucumber_java project on GitHub: * README for
2013 Aug 01
0
[LLVMdev] Tail calls (TCO) in PNaCL | PNaCl Bitcode reference manual
On Wed, Jul 31, 2013 at 11:55 PM, Travis Cross <tc at travislists.com> wrote: > On 2013-07-30 22:11, Eli Bendersky wrote: > > we've published an initial version of the PNaCl bitcode reference > > manual online - > > http://www.chromium.org/nativeclient/pnacl/bitcode-abi. The PNaCl > > bitcode is a restricted subset of LLVM IR. > > > > Any comments
2017 May 09
0
A few suggestions and perspectives from a PhD student
On Tue, May 9, 2017 at 9:47 AM, Hilmar Berger <berger at mpiib-berlin.mpg.de> wrote: > Hi, > > On 08/05/17 16:37, Ista Zahn wrote: > >> One of the key strengths of R is that packages are not akin to "fan >> created mods". They are a central and necessary part of the R system. >> >> I would tend to disagree here. R packages are in their majority
2013 Aug 01
0
[LLVMdev] Tail calls (TCO) in PNaCL | PNaCl Bitcode reference manual
On 2013-07-30 22:11, Eli Bendersky wrote: > we've published an initial version of the PNaCl bitcode reference > manual online - > http://www.chromium.org/nativeclient/pnacl/bitcode-abi. The PNaCl > bitcode is a restricted subset of LLVM IR. > > Any comments would be most welcome. Hi Eli, I appreciate you for opening the process for input and comments. One question stood