No posts found

Looks like there᾿s nothing here, sorry. You might want to try the search function. Alternatively, return to the front page.

Add a comment

  1. Edwards’s avatar

    My cousins grew up there :) If y’all knew a family of redheads in the 70’s, it’s probably them.

  2. Jim’s avatar

    This script does not work.

  3. Brian Adkins’s avatar

    @Jim, it’s quite possible the script no longer works. It was written in August of 2007, so Netflix may have made some changes that made the script incompatible. I haven’t needed the script in quite a while, but if I get some time, I may debug it if it’s no longer working.

  4. Brian Adkins’s avatar

    Yup, looks like the original script has been updated 5 times. http://userscripts.org/topics/20828

  5. Alejandro Sierra’s avatar

    Very smart, small and clean code. I would just add .downcase to gets.chomp at line 9. All words in the dictionary are downcase and so you can type in any case and get the same answer. Thanks!

  6. Chris Cera’s avatar

    The simple method in your last update solved my problem. Thank you. -Chris

  7. Tom’s avatar

    I was on Kwaj from 70-73 and used to babysit Dick Knuckey’s kids. I was at the Echo pier the
    nite his body was brought back from being found on the Prinz Eaugen

  8. Scott Moonen’s avatar

    Brian, Enumerable::inject is the Ruby equivalent of Python’s reduce. Looks like Enumerable::reduce was introduced as a synonym in Ruby 1.8.7.

  9. Scott Moonen’s avatar

    A lot of the replies used Brian’s original technique of passing in a “sofar”. My Python version avoided this and did the concatenation on the return path, which seems a little more like the “functional way”. Brian pointed out to me that my original Python version misunderstood the intentions for “ultra chocolate”. A briefer and more correct version is available here: http://scott.andstuff.org/PythonSpikes

  10. Scott Moonen’s avatar

    I’ve also tried a similar approach in Clojure. I tried to combine Clojure’s (for) macro with (gensym), but (for) didn’t like anything other than a literal vector, so I couldn’t make any progress there. Instead I took a simple recursive approach, as with many of the solutions above:

    (def choices
      '(("small" "medium" "large")
        ("vanilla" "ultra chocolate" "lychee" "rum raisin" "ginger")
        ("cone" "cup")))
    
    (defn combo [l]
      (if (empty? (rest l))
        (first l)
        (for [x (first l) y (combo (rest l))] (str x " " y))))
    
    (doseq [x (combo choices)] (println x))
    
  11. Scott Moonen’s avatar

    Brian, I gave this a try in Clojure. You can see my solution over here: http://scott.andstuff.org/ClojureSpikes.

  12. Scott Moonen’s avatar

    I’ve posted two alternate Clojure solutions here: http://scott.andstuff.org/ClojureSpikes. They take a slightly different approach from Raffael’s above. The high-level structure of my second solution is inspired by Raffael’s second solution — this is a helpful LISP idiom that I was glad to learn.

  13. ERICK’s avatar

    HEY BRO, THANK YOU SO MUCH FOR THE ADVERTISMENT, I WAS ABOUT TO INSTAL THAT [STUFF] ON (IN) MY MAC. GRACIAS

  14. Scott Moonen’s avatar

    Ha, well, turns out that the clojure-contrib library, a standard part of any serious Clojure setup, has some built-in combinatorics support. That brings the Clojure sample down to a simple call to “cartesian-product”. I use “apply” below since cartesian-product expects the choices to be supplied as a series of arguments rather than a list of lists.

    (use 'clojure.contrib.combinatorics)
    
    (def choices
      '(("small" "medium" "large")
        ("vanilla" "ultra chocolate" "lychee" "rum raisin" "ginger")
        ("cone" "cup")))
    
    (doseq [x (apply cartesian-product choices)] (apply println x))
    
  15. Slobodan Blazeski’s avatar

    Quote:
    I feel that a reasonable level of proficiency is required to evaluate a language well. I have seen many examples of someone, with only a little knowledge of a programming language, making an unfounded criticism of a programming language, or a particular feature, only to be corrected with an accurate, elegant and convincing counter argument by someone who is experienced with the language.

    I can’t agree on this. Usually after a short time I have good understanding is language worth it or not. After a while I could get used to something but it just never finds place in my heart. I’ve tried Haskell for few weeks I’m pretty sure that it’s not my kind of language. Links about my experiences are below. Beside why not giving a chance to Mark Tarver Qi http://www.lambdassociates.org/ ?

    (*) http://tourdelisp.blogspot.com/2008/03/lisper-first-look-at-haskell.html
    (**) http://tourdelisp.blogspot.com/2008/03/farewell-haskell.html

  16. Brian Adkins’s avatar

    Slobodan, I did look at Qi briefly and found it to be interesting. Mark Tarver seems to have abandoned it though which is a mild concern. I may add it to my list of Lisps to study.

    In some ways, I wish I could simply make a quick decision about Haskell – it would save me time and effort, but it might also cause me to miss out on some valuable ideas. You stated that you didn’t learn anything new from Haskell. That could be because you already know the ideas it presents, or it could be because you didn’t spend enough time with it.

    Although they may not be new with Haskell, or uniquely associated with it, I think Haskell is a good language to learn about functional purity, laziness, monads, static type inference, etc. Even if I go with Lisp in the end, I think it will be time well spent for me personally.

  17. Slobodan Blazeski’s avatar

    Since there is no huge company or community to fall on niche languages like lisp, haskell, prolog, apl & forth usually work best under very specific circumstances.
    Though things might have changed since the last time I’ve checked haskell ecosystem was worse then common lisp by very far. Though I don’t mind being outside mainstream I would really want to hear about companies making money with it before I bet my applications on it.

    BTW what kind of work the language you’re looking should be suitable for? From reading your 2009 language plan I assume you’re thinking of web applications and judging by the latest trend you should probably learn some good javascript library (like qooxdoo or dojo) and pool some data from the server back end from whatever language you’re most familiar with (be it Lisp Hunchentoot, Elang Yaws or whatever is the name of the Haskell web server). If you still prefer to avoid javascript solutions maybe weblocks http://weblocks.viridian-project.de/ might be interesting for you. It’s very well documented and tested in production use with active community and helpful maintainers.
    If you’re more into something cutting edge but don’t mid if its still into development Thomas Elam Dojo Zen http://www.box.net/shared/mxv4hqrp2p might be interesting for you.

  18. Ernst van Waning’s avatar

    A very good talk indeed, I liked it very much.

  19. Jim Forsythe’s avatar

    I was born on Kwaj and would love to go back some time. just poking around looking for info

  20. Donald Gordon’s avatar

    A slight bug in your convert_lat/long: both latitudes and longitudes can have two or three digits in the degrees part. I assume your code works in your corner of the world, but it won’t in others.

  21. Badrah’s avatar

    Thanks Brian for the quick tip .. It really helps.

    One more adjustment to add, specially when u have models in namespaces which will result in test files in sub-directories under the test different paths (Unit and Functional).

    I made these changes to paths in the task:

    test/unit/**/*_test.rb
    test/functional/**/*_test.rb
    test/integration/**/*_test.rb

    instead of

    test/unit/*_test.rb
    test/functional/*_test.rb
    test/integration/*_test.rb

    This began when I’ve noticed that RCov shows that some models and controllers are not well covered though I was sure they are properly covered. Then I discovered that all of these files are classes in namespaces with their test files in sub folders under the test/unit and test/functional.

    This is also a problem with the “shoulda:list” task, as it skips such classes saying that they don’t map to a class.

  22. Dan & Deb Trembley’s avatar

    Hi all. We are so intreged by the wonderful words we have read about living/working on Kwaj. We, too, are awaiting word regarding an accompanied position we have applied for. Any other info greatly appreciated. Feel it would be a wonderful, once-in-a-lifetime experience for us! Thanks!!

  23. Lynn’s avatar

    Don’t judge a book by its cover, lol.
    That’s the book where i first learned HTML.
    I like it a lot.
    I wish it wasn’t so falling apart.

  24. Ray Pereda’s avatar

    I know both Python and Ruby, and IMHO your Ruby edition is much more readable. As pretty as a typical elementary number theory theorem and proof.

  25. The Populist’s avatar

    Hello;

    Can you post or tell me what code you used to widen tarski? I really like the theme, and the options it provides, but it is just too narrow. I have been looking all over for a way to widen the theme, and by the way I am not a tech-savvy weblogger.

    I would appreciate any assistance.

  26. Brian Adkins’s avatar

    @The Populist – sorry, it’s been almost a year since I set it up and I don’t remember. I think I just modified the css a bit to widen a div or two.

  27. Phil Watson’s avatar

    Hi
    Sorry I didn’t catch up with you guys earlier – spent a very frustrating Christmas 2009 with lego support and they still (still Vibeke) have not solved for OSX10.6
    I have had to regress to my father’s windows laptop so that my son can use his Christmas present – I’m not smart enough to set up a virtualised machine !!
    Stuck waiting for Lego support to issue a fix…

  28. Fredrik’s avatar

    Nice, however this information can also be calculated by using a Public Domain C-library. Check out the links in my Acknowledgements. Thanks!

  29. Brian Adkins’s avatar

    @Fredrik – thanks for the link. I entered a city and a latitude/longitude into the web site for which you provided a link. I got an error both times. The web site that I interface with allows using a lat/lon which is nice if you want the info for your particular area.

    When I click on one of the cities provided on your web site though, the graphics are very nice. You might consider adding the total daylight to the slider – maybe in the date rectangle.

  30. Fredrik’s avatar

    @Brian, I’ll add both things to my todo, thanks for the tips!

  31. Brian Adkins’s avatar

    I just noticed my other blog was too narrow for the wider youtube videos, so I looked into this. Apparently, I put a special css file in the wp-content/themes/tarski/styles directory. In my case, I called it lojic.css so the contents have to match that:

    body.lojic .primary { width: 620px; }
    body.lojic .primary pre { width: 600px; }
    body.lojic #wrapper { width: 880px; }
    body.lojic .primary pre { color: #000000; background-color: #fffff0; border: 2px solid #ccc; padding: 7px; overflow: auto;
    margin: 0 0 1em 0; white-space: pre; }
    

    Then I went into the Tarski options in WP admin and chose the lojic style. That’s it.

  32. Mike’s avatar

    If you copy the link location when hovering over the star rating and paste it into the location bar, you can set half ratings.

  33. Michael Stalker’s avatar

    Brian,

    I know this post was 1 1/2 years ago, but it’s just what I needed. Thanks for the post. I’d like to ask for some tips on using rcov effectively. I’ll try to remember when I see you.

    Best,
    Michael

· 1 · 2 · 3 · 4

Comments are now closed.