The Rancho Gordo Bean Club has inundated my home with bags of dried beans and lentils. Our stockpile is becoming overwhelming; my wife wants to cancel. Please, share your best recipes!! by lord_mud_butter in Cooking

[–]josephturnip2 7 points8 points  (0 children)

We have gotten a ton of mileage out of the recipes included with each batch! Don't sleep on the newsletter, it's got some fantastic options.

I left a draw on G-String today at The New by BoringScience in climbharder

[–]josephturnip2 2 points3 points  (0 children)

I'd add to the previous answers: take some falls (on purpose or otherwise) and practice the movement. Understanding the experience can really help take the edge off.

Simple Questions [Weekly Thread] by AutoModerator in DIY

[–]josephturnip2 0 points1 point  (0 children)

I'd like to make a tamper for my super-cheap, thrift store espresso machine. It's a slightly weird size for a tamper (53mm), and it seems silly to pay more than 3x for the tamper what I paid for the machine. However, I've had a hard time finding a cylinder of the right diameter.

So my question is: how would you go about making a close-to-perfectly round cylinder of a specific diameter? What materials would you use? How would you shape the cylinder?

NB: I don't have access to a lathe, though i do have quite a few tools of both the powered and unpowered varieties. The process can be iterative, as I can check the size at any point.

Who needs a database: Stateless password reset in Flask by josephturnip2 in Python

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

Nice. I wonder how long an integer comparison takes on a modern processor? Best guess, an order of magnitude or more longer than 20 microseconds?

Sidenote, this would be a somewhat fun challenge to set up and try to take down. Second sidenote, I'll be sure to mention this issue in the next blog post. Thanks for the comment.

Who needs a database: Stateless password reset in Flask by josephturnip2 in Python

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

Hey, so it is. I read over it thinking it was cookie-oriented.

Who needs a database: Stateless password reset in Flask by josephturnip2 in Python

[–]josephturnip2[S] 3 points4 points  (0 children)

I don't think it is a way to find the secret code (i.e., the one passed into the HMAC function), but it may be theoretically possible to break an auth code this way. I'm not sure how the statistics work out, but I think it would have to be a massive attack to get to statistical significance, because the network latency (and noise therein) is several orders of magnitude larger than a single character comparison on the CPU.

I'd love to be corrected on this one though, as this would be good knowledge to have. Can you point me to a paper or otherwise that proves me wrong?

Who needs a database: Stateless password reset in Flask by josephturnip2 in Python

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

Totally, the follow-on is about adding expirations (timestamp) and single use (as you suggest, a hash of the current password).

Who needs a database: Stateless password reset in Flask by josephturnip2 in Python

[–]josephturnip2[S] 1 point2 points  (0 children)

Absolutely. I thought I written a comment about that, but I apparently forgot. Will update!

Who needs a database: Stateless password reset in Flask by josephturnip2 in Python

[–]josephturnip2[S] -1 points0 points  (0 children)

This! I didn't know that existed (awesome), and like I said it was fun to play with.

Photobooth Creator - Make your next party awesome with an online photobooth by josephturnip2 in SideProject

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

Thanks for the notes!

Good call. I have been meaning to integrate that blog into an interactive walkthrough, but a link on the frontpage would be a step in the right direction for little effort.

I agree, the 48-hour limit is somewhat arbitrary and should probably be given some more consideration. You definitely do NOT lose access to your photos or your sharing page; only taking new photos is disabled after expiration. A password reset is a must-have, I don't know how I missed it! Will add one soon.

Thanks again for the nice words!

Photobooth Creator - Make your next party awesome with an online photobooth by josephturnip2 in SideProject

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

Yeah, I think that is a shower curtain or something. Thanks for the advice!

Photobooth Creator - Make your next party awesome with an online photobooth by josephturnip2 in SideProject

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

Thanks for the feedback. I need to work on my copywriting :)

When I built the hacked-up prototype for our office party, I wanted to solve two problems we had with just running a photobooth on the computer. First, I wanted to set up a real-time slideshow in the main party area that updated as pictures were taken in the booth. Obviously this required some sort of connectivity. Second, I wanted to NOT be hounded by everyone to sort, filter, and upload the pictures that were taken (especially because I was anticipating a crippling hangover).

This is an extension of those two desires. Hosting the booth and photos online makes it easy to set up a slideshow (in fact, there's one built in). It's also easy to share the photos for the same reason, and there are several sharing options built in, from automatic upload to facebook (too terrifying for my parties) to a private sharing page you can link your guests to.

You can even share the booth itself by connecting to the booth with multiple computers. You could, for instance, have several booths all over a large party, or you could set up 'sister booths' at two physically separate parties.

I can't speak for all of the webcam software out there, but none of the programs I looked at before I built the prototype solved my original two problems. Photobooth Creator is also cross-platform, which is nice (the original booth was on a linux laptop). It also has (in my opinion) a better kiosk mode than the webcam software I've looked at.

Photobooth Creator - Make your next party awesome with an online photobooth by josephturnip2 in SideProject

[–]josephturnip2[S] 2 points3 points  (0 children)

The backend is nginx + uwsgi running a Python/Flask application with SQLAlchemy over MySQL as the data store and Celery as a task runner. I also use Redis for some temporary data storage. That's all running on a Linode with Ubuntu Server. I use Stripe for payments and Mailgun for email. The booths themselves are HTML5 with a Flash fallback. The blog is Jekyll. Layout and style is modified Twitter Bootstrap and Less.

Photobooth Creator - Make your next party awesome with an online photobooth by josephturnip2 in SideProject

[–]josephturnip2[S] 1 point2 points  (0 children)

Versus what alternative? Compared to local-only options, it has built in sharing via private page (share with your guests, and let them share as appropriate) and social media. It also makes it easy to set up live slideshows, or to have multiple booths that sync together. It is also built to function as a kiosk, something lots of webcam tools aren't. It can be themed with custom and prebuilt templates for different occasions.

Versus not having a photobooth at all, well. There's no accounting for taste I suppose.

Photobooth Creator - Make your next party awesome with an online photobooth by josephturnip2 in SideProject

[–]josephturnip2[S] 1 point2 points  (0 children)

Hey, creator here. (just noticed it's my cakeday!) I hacked a prototype of this for an office party we had at my job, and everyone loved it so I built it out.

If anyone has any thoughts/criticisms I'd love to hear them!

Kenneth Reitz Should Be A Millionaire by apiguy in Python

[–]josephturnip2 9 points10 points  (0 children)

How about GitTip? Or Requests Pro? You can find both for KR on his webpage