| Perfil de Careymoved to www.codingbandi...FotosBlogListas | Ayuda |
|
27 abril Euler Problem No.2 in IronRubyEach new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... Find the sum of all the even-valued terms in the sequence which do not exceed four million. Here is my IronRuby solution (2 ways): or download it here Euler Problem No.1 in IronRubyI came across a site that contains mathematical problems that can be solved programmatically. The site is http://projecteuler.net . I thought this was a good site to frequent so that I can learn how to apply my new found love for IronRuby. Running this samples requires that you download and build IronRuby, I also added the location of rbx.exe to my Path environment variable. To run this file type "rbx Euler1.rb" from a command prompt in the folder that contains your source file. After solving the first problem from Project Euler, I am officially 1% genius :) Here is two solutions that I came up with: or download the file here 25 abril Getting Started With IronRuby, the DLR and Silverlight (Beta 1)Recently I presented this talk at the Central Ohio Day of .Net. It was an excellent experience, the sessions were all top notch, and the attendees were great! I'm sure to do this again next year. If you missed out, there are other Day of .Net events scheduled in nearby areas, to get a list, you can access the event schedules here. Anyway, as promised, I said I would post my presentation material. Keep in mind, to get started with IronRuby on Silverlight, you will need to download the "beta bytes" of Silverlight 2 Runtime, the Silverlight 2 SDK,as well as the Silverlight Dynamic SDK. You will not be required to pull IronRuby from RubyForge because it is included in the Silverlight Dynamic SDK. If you do decide to pull IronRuby to take a look at it's implementation, you will also need the full-fledged Ruby installed on your machine. It is also recommended that you include the folder that contains Chiron.exe into your path. To run the demos, run in the root folder from the command prompt "Chiron \b", this will run chiron and open internet explorer with your IronRuby/Silverlight program loaded, click on "index.html" to run the demo. Future blog posts will share IronRuby concepts in further detail, stay tuned! Presentation Slides (sorry, forgot the war kittens) (Demo1 - Rounded/gradient rectangle, Demo 2 - Mirror image, Demo 3 - spinning text) |
|
|