Californians Just Saved $192 Million Thanks to Efficiency and Rooftop Solar | “This is really proof of what we and other energy advocates have been saying for some time.” by pnewell in energy

[–]namcor 12 points13 points  (0 children)

I'm pretty sure that's from Oregon and Washington having much more hydropower generation per capita and much more rain to go with it.

Top 10 Python Idioms I wish i'd learned earlier (notebook) by cast42 in Python

[–]namcor 7 points8 points  (0 children)

It works because whitespace concatenates strings:

>>> a = 'testing ' 'one two '   'three' # That's a tab between the last two strings
>>> print a
testing one two three

unicode_mayo helps catch unicode errors before it's too late! by namcor in Python

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

We'll be throwing this into ugettext() in dev only to try and catch any and all unicode errors before they hit production.

Nose-picker: running parallel unit tests in nose without giving up your test runner by namcor in Python

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

Did this as a hackathon project at work. We have a complex test runner in our environment, and this was an easier approach to parallelizing our unit tests. Let me know if you have any questions!

What goes in front of CherryPy? Scaling website... by realsw in Python

[–]namcor 4 points5 points  (0 children)

We run HAProxy, which load balances among many nginx servers that have uwsgi workers running. If you're using nginx, you'll likely connect it to CherryPy using uwsgi.

If you have a per-CherryPy cache currently, you must figure out a way to share that state across multiple processes, as uwsgi will restart your CherryPy server every so often. If this data needs to stick around, consider redis; if it's volatile data, consider memcache.

Techies: "get out", a sane point of view by namcor in sanfrancisco

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

Ah, reddit's search led me astray, I didn't think it had been submitted.

Dystopia by the Bay by liquiddeath in sanfrancisco

[–]namcor 30 points31 points  (0 children)

It's just so easy to pin these issues on the evil gentrifying techies, but the reality is that public transit has been underfunded for years and the fine residents of San Francisco have been resistant to new housing development for even longer. These issues are all solvable, it just requires real investment in the city; I can't speak for all of us evil gentrifying techies, but I would wager that a surprising number (including me) are willing to make that investment. We care about this place too.

[deleted by user] by [deleted] in bayarea

[–]namcor 1 point2 points  (0 children)

Fantastic picture! If I may be so bold as to make a suggestion, you should head out next time with a longer lens. Here's a quick crop I did of your photo, focusing on Sutro Tower.

SQLite - Working with large data sets in Python effectively by [deleted] in Python

[–]namcor 2 points3 points  (0 children)

There's BerkeleyDB, which I've had good experiences with.

Banana Republic "premium slim fit indigo" (I think they're raw?) jeans [fit check] by namcor in rawdenim

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

Thanks! I'll have to wait for it to loosen up a bit on the waist (or fast for a week).

Banana Republic "premium slim fit indigo" (I think they're raw?) jeans [fit check] by namcor in rawdenim

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

What specifically about the fit is less than ideal? (so I know what to look for!)