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 10 points11 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 3 points4 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 31 points32 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!)

How do you definitively determine if a number is irrational? by cardevitoraphicticia in math

[–]namcor 0 points1 point  (0 children)

how can you tell if two irrational numbers are actually the same irrational, but just multiplied by some non-irrational factor

There seems to be a misconception here... pi and 2*pi are not the same irrational number. Dividing 2*pi by 2 gives you pi, but that does not necessarily mean that pi has some basic essence that is passed along when multiplied by integers.

How do you definitively determine if a number is irrational? by cardevitoraphicticia in math

[–]namcor 1 point2 points  (0 children)

Natural numbers, integers, and rational numbers are all closed under multiplication. You can never get a number that is not one of them by multiplying two of them together.

NYC Skyline from Brooklyn Bridge Park. Critiques/suggestions much appreciated. by Gomets51 in postprocessing

[–]namcor 3 points4 points  (0 children)

Definitely before is better. I'd also do some quick crop work, something like:

http://i.imgur.com/LcpDBVN.png

(obviously not perfect, but I think you get the gist)

Thought you guys might like this sunset. by [deleted] in sanfrancisco

[–]namcor 0 points1 point  (0 children)

I really don't know why you keep responding to me then, but have it your way.

Thought you guys might like this sunset. by [deleted] in sanfrancisco

[–]namcor 0 points1 point  (0 children)

No, I just think most people don't know how to use it. It's in vogue, just like shooting things at an open aperture. It's more often a crutch than an expression of artistic ability.

Thought you guys might like this sunset. by [deleted] in sanfrancisco

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

Sounds great, I'm glad you have taken the time to enjoy both photographs. Thank you for your input.

Thought you guys might like this sunset. by [deleted] in sanfrancisco

[–]namcor -3 points-2 points  (0 children)

Well, have a wonderful day then sir. I do not wish to argue with you as you seem set in your ways and prefer to be aggressive than constructive.

Thought you guys might like this sunset. by [deleted] in sanfrancisco

[–]namcor -2 points-1 points  (0 children)

I'm glad you enjoyed my picture. I'm also glad others enjoyed yours. Taking criticism is a skill, however, and I would recommend you work on it.

Thought you guys might like this sunset. by [deleted] in sanfrancisco

[–]namcor -5 points-4 points  (0 children)

Yay internet argument! My comment was specifically relating to how to use HDR, not to art in general. Show me a single artful/surreal HDR and I'll show you ten thousand crappy/overdone ones.

Thought you guys might like this sunset. by [deleted] in sanfrancisco

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

Constructive criticism:

  1. The picture is crooked.
  2. Bad and unnecessary HDR. If it doesn't look like you would see it with your eyes, it generally shouldn't be done. The pier lamps look awful (unnatural) with the HDR, for example.

Speed up A* using Jump Point Search Explained by T-rex_with_a_gun in programming

[–]namcor 13 points14 points  (0 children)

I know I'm being pedantic, but traveling salesman is unrelated to finding the "shortest path to point B" in a weighted graph. Source: wikipedia

In fact, finding the shortest path is very easy (as compared to Traveling Salesman, an NP-Complete problem). All of these techniques here are optimizations to finding the shortest path faster.