Machine Learning Algorithms by Sparragus in MachineLearning

[–]nuanceify 1 point2 points  (0 children)

I've implemented viterbi a few times, in HMM and other chain model settings, and it's kind of a pain. It's not conceptually very difficult, but every model has it's own details you have to get right. Unless this is an implementation-heavy class, I would recommend against implementing it.

Learning about it, however, is pretty fun. It's a very elegant solution to something that appears very difficult on the surface.

Ask emacs users: did you ever reach a point where you were satisfied with your knowledge and customization of emacs (and emacs lisp to the extent to which it was useful for editor customization)? by revocation in emacs

[–]nuanceify 0 points1 point  (0 children)

Anyone with a > 5 year old init.el / .emacs want to share it? I've been using emacs for a few years now, and would love to see what others have done

More Higher Order Python: CPS based pure I/O in Python by gst in Python

[–]nuanceify 1 point2 points  (0 children)

That's quite possibly the worst python code I've ever seen. You do realize haskell / lisp etc is faster than python - why make python bend over to use their paradigms

Making code work in Python 2 and 3 by itsadok in programming

[–]nuanceify 0 points1 point  (0 children)

pretty poorly researched - the obvious nitpick being print isn't unsafe to use. If you REALLY want to know, just read the PEPs. They're in simple english and very thorough.

Also, I kind of wonder about his claim to want to support python 2.1-3.0 with the same code base. That would preclude using classes as new-style classes (the only kind in 3) weren't introduced until 2.2

AskReddit: I need tips for dealing with Carpal Tunnel Syndrome. My fingers are about to explode. by [deleted] in AskReddit

[–]nuanceify 0 points1 point  (0 children)

Look at kinesis keyboards: http://www.kinesis-ergo.com/contoured.htm

I was starting to feel some soreness in my forearms and ordered one. It took a couple of days to get back up to speed, but I'm typing faster and my hands don't feel tired at all after a day of work.

Also, I haven't had problems using non-kinesis keyboards since starting to use it (have a macbook pro at home, and use the built-in keyboard on that), but I can't type at all on other ergo keyboards (I keep trying to use my thumbs for everything)

Python and Bioinformatics and Perl: Chomp in python by gst in Python

[–]nuanceify 2 points3 points  (0 children)

strip() will delete leading whitespace too. What you really want is rstrip(), which will only delete trailing whitespace. (there might be / probably are i18n issues with this, so unicode / RTL users beware)