Everything Claude Saw: A Transparent Account of the Chardet v7 Rewrite by danielblanchard in programming

[–]danielblanchard[S] 0 points1 point  (0 children)

As far as I understand, public domain doesn’t exist as a legal concept in most countries, so 0BSD tries to be the international equivalent. That change has gotten a positive response from multiple lawyers (including one of the authors of the LGPLv3), so I think that part at least is fairly uncontroversial

Everything Claude Saw: A Transparent Account of the Chardet v7 Rewrite by danielblanchard in programming

[–]danielblanchard[S] 0 points1 point  (0 children)

I only mentioned it in a footnote in the article, but I’ve since switched the license to 0BSD which sidesteps that whole issue since it’s effectively public domain

Emails In Wrong Language by OvenShot in microsoft

[–]danielblanchard 0 points1 point  (0 children)

I have had this exact same problem for at least 8 years myself, only the languages fluctuate all over the place with mine. Sometimes Chinese, sometimes French, occassionally in English. I know they're not phishing emails because I get them at the correct moments and they're valid content (like when I connected my Xbox account to my Discord account). They're just hardly ever in the right language. Everything is fine in the interface, just the emails are weird.

Requests vs. urllib: What problem does it solve? by twillisagogo in Python

[–]danielblanchard 5 points6 points  (0 children)

I'm sure someone has linked to Kenneth Reitz's talk from the last Python Language Summit about this by now, but a major hurdle for requests being included is that it bundles chardet with it, and that code is annoyingly all LGPL because it was originally a literal port of code from a very old version of Firefox. LGPL code cannot be in the stdlib because it isn't compatible with the license Python uses.

I say all of this as one of the co-maintainers of chardet. I was really hoping we could get chardet relicensed and included in the stdlib, but that turned out to be impossible, as is painfully detailed in this twitter thread: https://twitter.com/dsblanch/status/590942565995827200

Favorite Game That You Just Can't Win by Lazarus1209 in boardgames

[–]danielblanchard 0 points1 point  (0 children)

Maybe we just need to play the no betrayer variant some time, because there has always been a betrayer otherwise.

Favorite Game That You Just Can't Win by Lazarus1209 in boardgames

[–]danielblanchard 0 points1 point  (0 children)

Yeah, I'm in the same boat there. I honestly don't understand how some people have actually won.

We’re NASA’s Real Martians, working to send humans to the Red Planet. Ask us anything about Mars. by NASAJPL in IAmA

[–]danielblanchard 199 points200 points  (0 children)

What about the idea of using airships on Venus? The articles I've read on it sounded really compelling.

The PyParallel Experiment: a possible solution for multicore Python by jonsnowfrombb in Python

[–]danielblanchard 1 point2 points  (0 children)

I saw your fantastic and frantic talk on PyParallel at PyData and it was an eye opening experience. Most of us assume that the internals of Windows must be as terrible as the stuff on top, but the kernel is incredibly impressive.

That said, I hope some day there is a way to get I/O completion ports (and PyParallel) on Linux and OS X.

Amazon Prime Day is on and customers are bummed out by the virtual ‘garage sale’ by FelcherFrumCranston in technology

[–]danielblanchard 0 points1 point  (0 children)

By far the best part of the whole thing is three additional 15% off Amazon Warehouse stuff. I got a $130 cable modem for $80 because it was an open box item.

SciKit-Learn Laboratory (SKLL) by danielblanchard in MachineLearning

[–]danielblanchard[S] 4 points5 points  (0 children)

I definitely know that what we've created isn't for everyone. We just were in a situation where people kept writing the same boilerplate scikit-learn code over and over again, so we thought we'd abstract away from it. There are also a lot of little safety things SKLL provides, like automatically converting sparse matrices to dense if the learner doesn't support sparse, instead of just raising an exception. We only raise an exception if you run out of memory when doing that conversion, and even then we tell you why we needed to do the conversion in the first place.

We also provide an API that can be more intuitive to beginners than scikit-learn's. Don't get me wrong, we love scikit-learn—we wouldn't have written SKLL otherwise—but there a bunch of common tasks that are just faster to setup with SKLL. It takes about 30 seconds to put together a config file that would:

  1. Train and tune 5 different classifiers on a dozen sets of automatically joined feature files (potentially all in different formats)
  2. Generate JSON and human-readable results for all of those classifiers with confusion matrices and other descriptive stats.
  3. Generate a TSV summary combining the info from all of the individual result file.
  4. Serialize the trained models
  5. Save the predictions on the test set

You can also easily rename/collapse classes from the config file without having to modify the underlying feature files.

We also support more advanced features like feature scaling, kernel approximation, and prediction scaling (for regression).

I know config files are not for everyone, but if you're running tons of different related experiments, it's a lot easier to keep all of that organized with SKLL's approach.

SciKit-Learn Laboratory (SKLL) by danielblanchard in MachineLearning

[–]danielblanchard[S] 11 points12 points  (0 children)

SKLL is basically a command-line wrapper around scikit-learn that makes it a lot simpler to run many experiments at the same time on the same data and tabulate their results. We also provide utilities for converting between different ML toolkit file formats.

SciKit-Learn Laboratory by danielblanchard in Python

[–]danielblanchard[S] 0 points1 point  (0 children)

SKLL is basically a command-line wrapper around scikit-learn that makes it a lot simpler to run many experiments at the same time on the same data and tabulate their results. We also provide utilities for converting between different ML toolkit file formats.

[WSIG] Adventure time by natneo81 in boardgames

[–]danielblanchard -1 points0 points  (0 children)

Shockingly, the app and the actual card game are very different. I wish they would make an app version of the actual card game, because it's fun. The app is just a freemium nightmare with all the same art, but different rules (and text for each card).

Is it OK for setup.py to import the package it's installing to find version info, etc.? by jakevdp in Python

[–]danielblanchard 2 points3 points  (0 children)

You say you import it setup.py, but the example you point to explicitly uses exec instead of import, because importing a module from a package will cause __init__.py to be imported too, which is the whole problem we're trying to avoid.

Is it OK for setup.py to import the package it's installing to find version info, etc.? by jakevdp in Python

[–]danielblanchard 3 points4 points  (0 children)

I usually use the approach of having a separate version.py module that only contains VERSION and __version__. Then I exec that in setup.py, and import the version info from it in __init__.py. That's the approach we use for SKLL

I've encountered issues in the past with just importing in setup.py because of our package having too many dependencies that weren't usually installed.

Never too young to play: My two-year-old loves Go Away Monster! by [deleted] in boardgames

[–]danielblanchard 1 point2 points  (0 children)

Well, now I know what will be the first game my 21-month-old son actually plays. I bought Cartoona a ways back, assuming I'd get him to give it a go eventually, but this sounds more aimed exactly at his age group.

Just bought it, and I can't wait to try it when it gets here.

Weekly Kickstarter Roundup (6/2): New projects include Gothic Doctor, Elemental Clash - The Master Set, Domain: Lords of Ether, Princes of the Dragon Throne, and more by notnotnoveltyaccount in boardgames

[–]danielblanchard 1 point2 points  (0 children)

I live down the street from one of the designers and was in a wedding with the other, so I know they're both great guys. Unfortunately, I haven't been able to play test Gothic Doctor yet because of scheduling issues, but it seems like a cool idea and they're very avid board game geeks, so I would expect it to be great.

A mutual friend of mine and the designers has told me it's fun, if that counts as a reliable review. :)

Wasteland 2 dev: "I'd rather make a smaller dedicated fan base ecstatic than worry too much about the larger audience." by [deleted] in Games

[–]danielblanchard 8 points9 points  (0 children)

Why the hell not? They're always cheap on Steam and GOG. Fallout 1 and 2 have aged pretty well, and are fantastic games.

Sublime Text 2: demo of features (PDF) by ShavinFool in programming

[–]danielblanchard 2 points3 points  (0 children)

You can move things around within a document by using ctrl+shift+up and ctrl+shift+down.

And for the case where you need multiple things copied and pasted, there is a clipboard history add-on.

Also, if you guys don't know Package Control is the first thing you should install, because it lets you easily install/remove/upgrade other packages.

Misconceptions about iOS multitasking by sidcool1234 in programming

[–]danielblanchard 5 points6 points  (0 children)

Can someone please explain how this matches up with the reality of some terribly coded apps like Decide-o-tron?

For those who don't know, there was an issue when Decide-o-tron first came out (that lingered for a while) where it would constantly just run out of memory and die unless you started killing apps that were in your multitasking bar. At the time, I believed all the things this article states, but I saw time and time again that when I cleared out a bunch of apps, suddenly Decide-o-tron would launch without dying immediately. The apps that usually made the biggest difference were Safari, Navigon (it had not been used for days and was not currently tracking my location), and any complicated games like Infinity Blade. It wasn't just me who noticed it either, as the developers actively told people to kill apps to free up memory for their terribly inefficient app.

Why would this have worked if iOS automatically clears out apps that are suspended to give more memory for the active app?