News for hackers. Stuff that matters.

pvxc

Re:I Hate Haml on Tuesday November 16, 2010 @02:53PM (#1911352)
Wow, it's the second coming of Troff!
Re:Nasa.gov: Evidence of Climate Change on Sunday October 24, 2010 @03:18PM (#1826940)
Both CO2 concentrations and the global temperature varied significantly over that period of Earth's history (~400-250 millions of years ago). Around 300 Mya, CO2 was comparable to what it is today and temperatures were likewise comparable. Around 400 Mya, CO2 was in the 4000ppm's and the temperature was likewise higher (by ~ 8 C). No contradiction.

Also, when discussing matters scientific, please cite your scientific sources --- otherwise the discussion is of little value. Like so:

http://www.nature.com/nature/journal/v449/n7159/abs/nature06...

http://dx.doi.org/10.1130/1052-5173(2004)014<4:CAAPDO...

Re:How to game the U.S. higher-education system on Friday October 22, 2010 @06:41AM (#1819179)
> The only thing the degree does is get you an interview > you should have got through networking.

And maybe you also gained some useful skills.

Re:Glibc vulnerability allows any user to get root access on Wednesday October 20, 2010 @08:10AM (#1810831)
Hard link creation can in recent Linux kernels be restricted, by SECURITY_YAMA_HARDLINKS config option which seems active by default at least on Ubuntu 10.10. So that platform is not vulnerable.
Re:Programming is for Stupid People on Monday October 18, 2010 @05:05PM (#1805146)
Standing in front of a blackboard is known to reduce IQ temporarily but significantly.
Re:2010 Physics Nobel Prize (Graphene) on Wednesday October 06, 2010 @07:00PM (#1766202)
The main reason is probably that physicists found graphene more interesting to study than buckyballs. This can be quantified by looking at the number of articles published in top physics-only journals (e.g. Physical Review Letters).

There are a couple of good reasons why so: (i) graphene has a "simple" electronic and atomic structure that has interesting features of its own (Google for the Dirac cone), (ii) graphene flakes are big compared to buckies, so it's possible to study them with common methods that physicists like -- electronic transport, crystallographic methods, you name it, and (iii) many proposed applications of graphene e.g. in electronics fall close to physics.

In short: physicist are fond of simple things, and graphene is simple. So, Nobel prize in physics.

Re:The future of R - pessimistic thoughts by R founder Ross Ihaka on Tuesday September 14, 2010 @02:28PM (#1691665)
Such large differences imply a difference in the algorithm

Indeed, you write

c = mat2.getcol(j)

norms[0, j] = scipy.linalg.norm(c.A)

which means (i) extract a sparse column vector, (ii) convert it to a dense vector, and (iii) compute the norm. Now, this should explain the speed difference. Looking at the nnz, a dense norm can take up to a factor 5e5/(1.2e8/1.3e7) ~ 54000 longer :)

The main issue here is that the linear algebra stuff under `scipy.linalg` doesn't know about sparse matrices, and tends to convert everything to dense first. You'd need to muck around with `m2.data` to go faster.