Better HN
topnewbestaskshowjobs
Log inSign up

jbox

96 karma · joined Feb 6, 2009 (17y ago) · 33 submissions

cto @ superpilot.com
Submissions

comment 10y ago · link · parent

Heroku's Interagent is a set of practical guidelines for building APIs based on their Platform API: https://github.com/interagent/http-api-design

comment 11y ago · link · parent

If you're going across the network, a slow timeout is often trickier than an explicit failure.

I wrote about handling this in Python: http://www.mobify.com/blog/http-requests-are-hard/

comment 11y ago · link · parent

No worries! It worked, we just got a lot of emails :)

Could you aggregate the messages and post an update when the entire task is complete?

Seeing the commits come seems to be a good progress indicator.

If you are "watching" a repo, you get an notification for every comment, not every commit.

You could also just create the PR with a link to the job on ShrinkRay and have the progress updates there...

comment 11y ago · link · parent

Cool tool!

I gave it a shot on one of our private repos this morning and it did what it said on the box.

In the process it also generated ~150 comments on the repo.

For folks watching the repo, this is a fair amount of email.

Is there anyway to aggregate the comments? Perhaps into the Pull Request description?

comment 13y ago · link · parent

"As a general rule, it's not possible to securely allow arbitrary user-provided content on a subdomain."

This rule is also good to keep in mind when choosing a domain for non-production environments!

comment 14y ago · link · parent

Reminds me of the iPad app Prism: http://itunes.apple.com/ca/app/prism-the-image-browser/id488...

comment 14y ago · link · parent

Especially when parts are straight copies out of Zepto.

Zepto Closest Implementation: https://github.com/madrobby/zepto/blob/master/src/zepto.js#L...

JQ.Mobi: https://github.com/appMobi/jQ.Mobi/blob/master/jq.mobi.js#L3...

Zepto End Implementation: https://github.com/madrobby/zepto/blob/master/src/zepto.js#L...

JQ.Mobi: https://github.com/appMobi/jQ.Mobi/blob/master/jq.mobi.js#L4...

That said, it's all open source and there are only so many ways to write these functions succinctly.

comment 14y ago · link · parent

Mobify, Vancouver, Canada.

Director of Engineering

Mobify is a growing, profitable, bootstrapped startup. Our goal is to build a web where every website delivers and amazing experience on every device. We serve millions of pageviews for companies like Starbucks, Threadless and Conde Nast using a combination of client/server side JavaScript.

We're looking for an experienced technical manager with a history of delivering successful web products.

We have a glee club, yoga classes and an awesome team.

http://mobify.com/company/jobs/#job-list

comment 15y ago · link · parent

It's been fun watching these features play out in libraries over the last year.

I particularly like the idea of TemplateResponse - the earliest implementation I saw was in simonw's:

https://github.com/simonw/django-openid/blob/master/django_o...

This approach makes template rendering much more flexible!

For example, it would be easy to swap out a template for a mobile one ... or to A/B test a template. Or choose the content type of the output (HTML, JSON etc.)

comment 15y ago · link · parent

Vancouver, BC, Canada - Mobify

http://mobify.me/jobs/

We're building great mobile experiences using HTML5.

Looking for smart people with a background in web development.

We're based out of downtown Vancouver - right by the water, mountains and nightlight. Weekly yoga classes, flexible schedules and all the latest gadgets :)

Mail me a john at mobify dot me.

comment 16y ago · link · parent

JavaScript Developer (Wearer of Many Hats) - Vancouver, Canada

http://mobifymedia.com/jobs/

Mobify is a mobile web company. We're changing the way people surf the mobile web. We work with traditional publishers like Wired and SPIN Magazine as well as top websites like BoingBoing and Smashing Magazine.

We're looking for more devs to help us take our client side interactions to the next level. If it's your dream to optimize the performance of top mobile websites drop us a line!

john at mobify dot me.

comment 16y ago · link · parent

customizing auth.User to accept an email based login

This app solves the problem by allowing users to log in using their email address.

It's not a bug that it doesn't deal with account creation - it's outside the scope of the app.

That said, it is fairly trivial to create a registration form that enforces the constraints you mentioned.

comment 16y ago · link · parent

Re. customizing auth.User to accept email based login - There isn't a completely DRY solution for this, but it's got much better - here is a tiny app that will do it for you:

http://github.com/johnboxall/django-email-auth

comment 16y ago · link · parent

The URL of the CSS file and the contents are POST'ed as a key/val pair back to a endpoint you specify in the configuration.

You'll need to setup a listener on your server to process the request and save the contents to file.

15.

Superstylin, a JS plugin to edit and save CSS in browser(johnboxall.github.com ↗)

2 points · by jbox · 16y ago · 2 comments

comment 16y ago · link · parent

Acquisition, investment or acceptance into an incubator are all great things but don't build your startup in such a way that success is dependant upon them.

Ultimately, your success will depend on one thing - you. Build your business for profitably and don't count on money until it's safely cleared in your account.

comment 16y ago · link · parent

Steve's final conclusion:

“For most web sites, the possible performance gains from optimizing CSS selectors will be small, and are not worth the costs. ”

http://www.stevesouders.com/blog/2009/03/10/performance-impa...

comment 16y ago · link · parent

Happy that their status page stay up this time. Last time (236 days ago) this happened, it was not.

http://news.ycombinator.com/item?id=685093

comment 16y ago · link · parent

None.

Having worked on mobile web applications that serve a wide range of devices, I can honestly say that this is not the case.

I would challange ppk to cite examples of this behaviour.

comment 16y ago · link · parent

I think you guys nailed the look and feel, nice work!

A few months ago I was looking for a Django forum. Of the existing solutions, I liked Snapboard best for it's clean code, relative simplicity and test coverage. In the end I used it but rewrote a substantial part. This code is available on GitHub: http://github.com/johnboxall/snapboard/tree/dev/snapboard/

It's currently used to host the Mobify forums: http://community.mobify.me/

21.

Django Pattern: get_allowed_or_404(3oh2.com ↗)

1 points · by jbox · 16y ago · discuss

comment 17y ago · link · parent

Not to be cheeky but if you're familiar with programming and JavaScript I'd start with the jQuery source:

http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js

Be patient and focus on understanding one part that your are familiar with - perhaps handling AJAX requests.

comment 17y ago · link · parent

This is a very crowded space. The involved players market themselves towards carriers rather than the end user so it's unlikely simple searching will turn them up.

For example airG (http://corp.airg.com/) has deployed white label social networks on most North American carriers. They don't come up for "white label mobile social network" :)

comment 17y ago · link · parent

If you're interested in Django Design Patterns check out James Tauber and Brian Rosner's talk "Django Design Patterns": http://eldarion.com/talks/2009/05/eurodjangocon_djangopatter...

comment 17y ago · link · parent

I disagree. The GAE status page was down for hours: http://code.google.com/status/appengine

What's the point of having a status page it's only up as long as your service? We shouldn't have to hunt around a Google Group for information about what's going on.

comment 17y ago · link · parent

"Metaclasses won't fly in this case, since the order of struct members has to be kept."

Couldn't you use a creation counter in a metaclasses and assign order to the attributes as they are added? (like Django's forms use to keep track of field order)

comment 17y ago · link · parent

There be dragons in the Python: http://code.google.com/p/dajaxproject/source/browse/trunk/da...

If all that importing is really necessary then you might want to check out Django's new preferred import method, importlib, it might clean that up a bit: http://code.djangoproject.com/ticket/8193

And here in the J/S - lots of evals - is that really necessary?: http://code.google.com/p/dajaxproject/source/browse/trunk/da...

comment 17y ago · link · parent

Good conference - Too heavy on scalability.

Best slides from the bunch IMHO:

James Tauber's Django Patterns - an in depth overview of common patterns found throughout a Django Project:

http://eldarion.com/talks/2009/05/eurodjangocon_djangopatter...

Alex Gaynor's Form's presentation included many interesting ideas including a few 'ohhhh' moments using some functional hotness to get things done fast:

http://www.slideshare.net/kingkilr/forms-getting-your-moneys...

Paul Smith's talk on the EveryBlock stack dives into map tile generation and rendering using Django.

http://www.slideshare.net/pauladamsmith/the-web-map-stack-on...

Simon Willison's talk was excellent though you might not get as much out of the slides. Turtles all the way down!

http://www.slideshare.net/simon/django-heresies

comment 17y ago · link · parent

Looks awesome!

I think class implementations of Directories & Files would probably go a long way to helping cut down cruft in the view code:

http://code.google.com/p/django-filebrowser/source/browse/tr...

12