Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Re:Bad analogy (Score 1) 185 185

Come on, you haven't looked at Python for this kind of work have you?

R as a lot more libraries, that cover specific needs, but the basics (and more) are all covered in Python, and are extremely easy to use.

You need: Python + Numpy (or Scipy) + statsmodels + Panda.
Or get a pre-packaged distribution that has all that, like Anaconda or Enthougt (haven't used them).

As for your question, you need Pandas, which is similar to R's data tables: http://pandas.pydata.org/

import pandas as pd
df = pd.read_csv('foo.csv', header=[0], sep=',')

Pretty similar.

Comment Re:Situation is a Shambles (Score 2) 239 239

The parent is right. The issue is with the memcpy(), not the malloc. Even if malloc() zeroed the memory there would still be an issue, because it is getting overwritten by memcpy. The issue is the size of the memcpy(), which is simply user-provided (up to max uint16).

Comment Re:Anyone Who Talks About Deflation...... (Score 1) 691 691

Deflation encourages hoarding wealth and inflation encourages investment and wealth creation. Ideally you don't want a huge amount of either, but a small amount of deflation is certainly better for the economy than deflation.

s/deflation/inflation

You nailed it, so i was going to mod you up, but as you are already at +5 i thought it would be more useful to point out the typo.

Comment Re:Why compromise? (Score 1) 128 128

I agree with you.

Having a unified memory is a nice thing, but i expect it will only make a difference in something like the PS4, where you can target a specific architecture, which has GDDR5 as main memory, and doesn't have a discrete GPU. These two points are relevant: if you have "normal" DDR3 you loose a lot more than you gain by having UMA, and this will not change a thing in discrete GPUs because the PCIe bus is going to always be in the way of the GPU accessing main memory.

I think it is more a "nice to have" than a big step forward. The difficulty in programing GPUs lies in the different algorithms one must employ, and while having to copy memory back and forth between the CPU and GPU is a nuisance and something to be avoided, that usually isn't a dealbreaker, though i admit it is useful in some situations.

Comment Re:What is the ARM bringing? (Score 1) 230 230

For £300 I got an Atom-based netbook with an 80GB SSD, 4GB RAM, slightly smaller screen and 9 hour battery life. It can run Chrome, and a lot of other things. What's the ARM bringing to the Chromebook, if it can't give far better battery life?

£300 GBP are $482.
That's what ARM is bringing.
BTW where do you get a netbook with an 80 GB SSD?

Comment Re:No good news in that (Score 1) 350 350

They could go Android, sure, but Android phones are almost commodity phones, where the handset manufacturer isn't adding enough value to make them differentiators. That means as a customer, I could pick up an LG or HTC or Motorola or Samsung and get a pretty similar phone. And that means they all compete on price. That puts the Nokia phones up against the manufacturing might of China, which means that margins would start out razor thin and fade quickly to non-existent.

Well, that strategy worked for Samsung, so why shouldn't it work for Nokia, given that, at the time, Nokia had a better position than Samsung?

Comment Re:Great (Score 2) 291 291

In Portugal, locked phones are the norm, but according to a recent law (which i believe is an EU directive), the carriers must unlock the phone when the contract ends, free of charge. Furthermore, during the period of the contract the customer can request the unlock for a reasonable fee (which last time i looked was indeed reasonable).

I believe this is a fair state of affairs, as the phone are effectivly subsidized.

Comment Re:Ericsson made some good phones in its time (Score 1) 64 64

I bought a T68i in 2001 i think. It still works.

My wife had a SE (don't know the model) from 2004, which she used for about 3 years. It is being used since then by my mother in law. That's 7 years of daily use!

I believe SE had better quality than Nokia in the early 2000's.

Comment Re:How long until... (Score 1) 185 185

As an example, this sentence in Portuguese: "Vamos evitar o uso de papel, gastar papel implica em gastar Ãrvores"

This sentence isn't correct Portuguese. It simply doesn't make sense in Portuguese. Maybe it makes sense in Brazilian Portuguese, but not in Portuguese.
So, i wouldn't expect Google Translate to get it right. But actually, translating it into:

"We avoid the use of paper, wasting paper implies spending trees"

is a better translation (of incorrect) Portuguese than:

"We avoid the use of paper, spending paper implies spending trees"

"Gastar" in the given context is better translated to "wasting" than "spending". At least in Portuguese.

The most difficult thing in the world is to know how to do a thing and to watch someone else doing it wrong, without commenting. -- T.H. White

Working...