173 karma · joined July 26, 2010
Do you have some pointers about arenas always using mmap? I'd like to know how that trick can work if that was the case.
The idea is to tweak when `mmap` or `malloc` are used by the Python interpreter. One allows memory to be released to the OS right away, whereas the other is not.
It is a useful trick if your application is generating lots of small objects.
I recommend the works by Arthur Danto (https://en.wikipedia.org/wiki/Arthur_Danto) for very interesting definitions of "art".
head :: [a] -> a
I would code it as: head :: [a] -> Maybe a
returning Nothing for empty lists. Same applies to tail.But others have very good reasons to disagree: http://stackoverflow.com/questions/6364409/why-does-haskells...
Obviously, being Italian doesn't make me an expert in corruption from a legal point of view, but I am pretty positive to know a bit about Italian mentality and facts confirm that corruption is as common in the North as it is in the South (I can cite my sources, if necessary.)
Obviously, I don't know if the accusations are true or false, but, knowing Italy, where "famous" scientists are usually very close to politicians, it would not surprise me at all.
Bertolaso first tells Stati that they did badly by saying the media that they didn't expect more earthquakes (as they did the day before, after a small shake that did no damage). Bertolaso added that he would fix this error with the media and send the most important scientists he knows to "quiet down" the population, upset by the previous message and by the continuous shakes. The accusation is that scientists didn't actually report what they knew, but they went in front of the media to "quiet" down the population.
Unfortunately, the day after the big earthquake happened and 309 people died.
I already do not understand SMS spelling: in 50 years, probably a 30 years old person will not understand things written by a 15 years old person.
Conservatism in schools has the advantage that we can still read Shakespeare (or Dante) without translation. Languages that change too quickly defy their own purpose (i.e. being a common ground for people to communicate).
Numpy has a "matrix" type, so you can write:
In [7]: A = numpy.matrix('1 2; 3 4; 5 6')
In [8]: B = numpy.matrix('1 2 3; 4 5 6')
In [9]: C = numpy.matrix('1; 2; 3')
In [10]: A * B * C
Out[10]:
matrix([[ 78],
[170],
[262]])
In [11]: (A * B) * C
Out[11]:
matrix([[ 78],
[170],
[262]])
In [12]: A * (B * C)
Out[12]:
matrix([[ 78],
[170],
[262]])http://lifehacker.com/5697167/if-youre-not-paying-for-it-you...