Hacker Newsnew | past | comments | ask | show | jobs | submit | smokey42's commentslogin

I remember seeing something like this in Matellis' Python Cookbook.


My pet problem after FizzBuzz has been this for some time now:

    You are given a text in a file. Count all the words in the
    text and print out the words with their number of occurences
    in descending order.
This can be depressing at times.


Define "word". However, strings separated by space:

Print number of words:

    wc -w <filename>
Print words with counts in decreasing order:

    cat <filename>  \
    | gawk '{for (i=1;i<=NF;i++) print $i}' \
    | sort          \
    | uniq -c       \
    | sort -rn      \
    | less
There are optimizations to be made, but that would be my go to solution in the first instance.


As some suggested a correlation with obesity, I'd like to highlight another correlation.

Recent findings showed that obesity can be an side-effect of stress. [There is a genetic component to it, such that people who can compensate detrimental effects of stress to the brain, become obese as a side-effect. People who can't, don't become obese but have detrimental effects to their brain. They're fucked both ways. :-( But this is merely a second hand recitation of what I heard a scientist say. Grain of salt, blah blah.]

Nevertheless, the biggest source of stress is socio-economic stress. It's way more stressful than any "direct" stress.

Trying to find some of the relevant resources:

* http://www.cdc.gov/nchs/data/databriefs/db50.htm shows correlation between socio-economic status and obesity

* http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2831158/

Linkage between obesity and some dopamine pathways are also known since 2001.

My own speculation: The location where mortality of women is highest produce the highest socio-economic stress to women.

Additional speculation: This ought to happen in high or in low income areas and may be linked with income inequality within the community.


Nothing grows as fast and crazy as Photovoltaics right now. It's doubling roughly every 2 years (slightly less than 2 years). I don't know if we can scale up coal/nuclear at the same rate, but I guess that's not even possible.

So when PV prices fall to the bottom (trends indicate they will), electricity prices produced by PV will fall as well. Coal/Nuclear/etc will become unviable. What do we do then? Electricity will be basically free then.


No. What is missing is batteries. Remember, photovoltaics only work part of the day, and not every day. Same with wind.

In reality, what is happening is that because of "alternative" sources of energy, electricity is plentiful during the day, and scarce during the evening. Also, only turbines (hydro/thermo power plants) can be adjusted to keep current and voltage in the network constant, so we still need them, but because of the "green" sources, they are becoming less profitable for the operators.

TL;DR: alternative energy sources cause us to have too much electricity during the day and too little during the evening, both of which is costing us money.


At some point the turbines may have to be treated as part of the infrastructure, rather than part of the production.

If you produce energy, you get paid for it, but also pay a levy depending on how well your supply fits the demand. The levy goes to whoever fills in the gaps.


Some deregulated markets are already paying for the turbines as infrastructure.

For example, the PJM interconnection holds an annual capacity auction. This essentially pays for the capital costs of keeping gas turbines around, at idle. The cost of actually running the turbines is covered by a separate daily auction for actual electricity production.


PV is a very long way from being free right now. Even with subsidies, it's out of most people's budget to put up solar panels, and then you have to replace them every 20 years, and pay for an inverter to use the power (inverter prices and installation costs are not coming down, rather they are going the other way).


You realise there's a big difference between 'basically free' and 'actually free' right?


Nobody seems to get that this is the first 3D printer with which printing can be easily parallelized! This is going to be huuuuuuuge!


Not going to help. Cloning some public repo will expose all emails you commited with anyway.


Which is why you shouldn't put a real email address in commits [1].

[1] https://help.github.com/articles/keeping-your-email-address-...


Good point. I mistakenly thought that they were going to rewrite the email addresses in git commits, it appears that is not the case.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: