Older blog entries for sness (starting at number 5029)

Peekaboo: Machine Learning Cheat Sheet (for scikit-learn)

Peekaboo: Machine Learning Cheat Sheet (for scikit-learn): "As you hopefully have heard, we at scikit-learn are doing a user survey (which is still open by the way).
One of the requests there was to provide some sort of flow chart on how to do machine learning.

As this is clearly impossible, I went to work straight away.

This is the result:"

Syndicated 2013-01-27 19:53:00 from sness

Python Shortcuts for the Python Beginner - Max Burstein's Blog

Python Shortcuts for the Python Beginner - Max Burstein's Blog: "Python Shortcuts for the Python Beginner (Posted on January 26th, 2013)
The following are just a collection of some useful shortcuts and tools I've found in Python over the years. Hopefully you find them helpful.

Swapping Variables

x = 6
y = 5

x, y = y, x

print x
>>> 5
print y
>>> 6"

'via Blog this'

Syndicated 2013-01-27 18:28:00 from sness

ongoing by Tim Bray · How to Think About OAuth

ongoing by Tim Bray · How to Think About OAuth: "For ex­am­ple, Google has an au­tho­riza­tion pro­to­col for ac­cess­ing its APIs that’s to­tally OAu­th2. It meets our se­cu­rity needs and it’s been easy for us (and any­one else) to ship li­braries for app builders to use, be­cause there are start­ing to be com­mon bits and pieces of frame­work im­ple­men­ta­tion to use. And also be­cause OAu­th2 just isn’t that hard."

'via Blog this'

Syndicated 2013-01-27 18:28:00 from sness

Ben Alman » A Bit of Advice for the JavaScript Semicolon Haters

Ben Alman » A Bit of Advice for the JavaScript Semicolon Haters: "Earlier today, one of my coworkers was contributing to a cool new JavaScript lib, and complained that while he loves contributing to open source projects (who doesn’t, right?) he finds it annoying to read JavaScript code without semicolons.

Not just that, but he mentioned that he finds it amusing when, amidst hundreds of lines of otherwise pristine semicolon-less code, there is a single line that starts with a semicolon.

"

'via Blog this'

Syndicated 2013-01-27 18:27:00 from sness

MindCipher - 12 Identical Balls

MindCipher - 12 Identical Balls: "You have 12 identical balls. One of them is slightly different in weight than the rest. You have three weighs of a balance scale to determine which ball is different and whether it is heavier or lighter.

This is not easy… try hard to figure this out before looking at the answer."

'via Blog this'

Syndicated 2013-01-27 18:25:00 from sness

bpostlethwaite/colormap · GitHub

bpostlethwaite/colormap · GitHub: "Super simple just do,

options = {
colormap: "jet" // pick your colormap
, nshades: 72 // how many divisions
, format: "hex" // "hex" or "rgb"
}
cg = colormap(options)
where leaving options = {} or undefined results in the defaults given above. There is a minimum number of nshades divisions you can select since the algorithms for each colormap have different requirements. colormap throws an error if there are too few divisions for the chosen colormap and gives the minimum number required. You should be safe with n > 10 for all the colormaps, though some require much less (much simpler to implemenent)."

Syndicated 2013-01-27 18:22:00 from sness

5020 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!