mousebender.wordpress.com
Including a module in Ruby | Mousebender
https://mousebender.wordpress.com/2007/11/18/including-a-module-in-ruby
8221;Let them eat Cheesecake ”. Including a module in Ruby. If we define two modules, with methods that have the same names. Module M1 def foo puts "M1" end end module M2 def foo puts "M2" end end. And then include them in a class in a specific order. Class C include M1 include M2 end. Method from the last included module will be used. Cnewfoo # = "M2". But if that was the case the following example. Module M def foo puts "M" end end class C def foo puts "C" end include M end. Cnewfoo # = "C". As C#foo c...
mousebender.wordpress.com
Minor annoyance | Mousebender
https://mousebender.wordpress.com/2007/05/19/minor-annoyance
8221;Let them eat Cheesecake ”. Map operation on sets isn’t closed. X: x* 2, set([1,2,3,4]) ). New([1,2,3,4]).map { x x* 2 }.class. At least Haskell does the right thing:. FromList([1,2,3,4 :. An obvious workaround is to operate on lists and convert to sets once you need them. You have to ask yourself whether it will cause performance problems in your application. Laquo; Accepted to Summer of Code 2007! Date : May 19, 2007. Would you want it closed with a dynamic language though? Def smap(f, s):. Fill in...
mousebender.wordpress.com
PVS architecture draft | Mousebender
https://mousebender.wordpress.com/2007/05/28/pvs-architecture-draft
8221;Let them eat Cheesecake ”. If you’re interested in my Python patch verification system project. Or want to get interested :-), check out notes on system architecture. I just added. Feel free to comment here or on the wiki, I’d love to hear your feedback. Laquo; Minor annoyance. Date : May 28, 2007. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your Twitter account. ( Log Out.
mousebender.wordpress.com
SoC 2007 Application | Mousebender
https://mousebender.wordpress.com/soc-2007-application
8221;Let them eat Cheesecake ”. Patch verification system for Python. For each new patch that appears on Python tracker. Patch conformance to common requirements. Eg is it in a unified diff format. System will detect such mistakes and report them, but will try to work around them, so a build can be made nevertheless. Whether the patch touched the documentation files or test cases. Unit test warnings and errors. As deployed in Pybots. I also make Rails. As well as in Cheesecake service. Homepage: http:/ j...
mousebender.wordpress.com
spec plugin compatible with nose 0.10 | Mousebender
https://mousebender.wordpress.com/2007/10/12/spec-plugin-compatible-with-nose-010
8221;Let them eat Cheesecake ”. Spec plugin compatible with nose 0.10. If you use the spec plugin (part of the pinocchio package. And want to upgrade to the new version of nose. You can safely do this now, because here is the new spec plugin. Laquo; PVS update. Solution to Code Kata Fifteen. Date : October 12, 2007. This is off-topic from the blog post above: but how would you back-up tumblr using this python script: http:/ time-loop.tumblr.com/post/21172056. Sudo easy install demjson. Fill in your detai...
mousebender.wordpress.com
Solution to Code Kata Fifteen | Mousebender
https://mousebender.wordpress.com/2007/11/05/solution-to-code-kata-fifteen
8221;Let them eat Cheesecake ”. Solution to Code Kata Fifteen. Just felt like doing some programming exercise. My bookmarks led me to the code kata 15. First, the problem:. Think of binary numbers: sequences of 0’s and 1’s. How many n-digit binary numbers are there that don’t have two adjacent 1 bits? For example, for three-digit numbers, five of the possible eight combinations meet the criteria: 000, 001, 010,. 100, 101,. What is the number for sequences of length 4, 5, 10, n? Now, the solution. Doesn&#...
mousebender.wordpress.com
SoC 2006 Application | Mousebender
https://mousebender.wordpress.com/application
8221;Let them eat Cheesecake ”. Cheesecake enhancements and its integration with PyPI. Benefits to the Community. Adding Cheesecake functionality to PyPI has been already mentioned. By Phillip J. Eby on catalog-sig mailing list. Together with Cheesecake maintainer Grig Gheorghiu we’ve discussed modifications needed to be done to Cheesecake code to be reliable enough so it could be incorporated into PyPI service. A working copy of our ideas is accessible on the project wiki. The remaining time will be spe...
visualcplus.blogspot.com
Lesson 10: Program Iterations - C Tutorial
http://visualcplus.blogspot.com/2006/02/lesson-10-program-iterations.html
Lesson 10: Program Iterations. Published Thursday, February 23, 2006 by Vurdlak E-mail this post. All personal information that you provide here will be governed by the Privacy Policy of Blogger.com. More. You have to think outside of the box this time, and forget regular math. Program iterations are used to process certain program’s block, multiple number of times. Number of repeats (iterations) can be, or don’t have to be previously known. We have following iterations that:. We search through other fie...
mousebender.wordpress.com
Two quotes | Mousebender
https://mousebender.wordpress.com/2007/06/16/two-quotes
8221;Let them eat Cheesecake ”. People should take responsibility and ownership of the things that they specify. If something’s wrong with the spec, there should be a designated spec owner, with their name printed right there on the spec, who. Is responsible for fixing it. Venkat Subramaniam and Andy Hunt. Blame doesn’t fix bugs. Instead of pointing fingers, point to possible solutions. It’s the positive outcome that counts. Laquo; PVS architecture draft. Date : June 16, 2007. Leave a Reply Cancel reply.