Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:I agree Python (Score 3, Informative) 466

I've gotten a lot of mileage out of Python for cleaning and pre-processing CSV and JSON datasets, using the obviously named "csv" and "json" modules. ... However, if you are doing very much manipulation of tabular data, I'd recommend learning a bit of SQL too.

You may want to look into pandas as a middle ground. It's great for sucking in tabular or csv data and then applying statistical analysis tools to it. It has a native "dataframe" object which is similar to database tables, and has efficient merge, join, and groupby semantics. If you have a ton of data then a database and SQL is the right answer, but for a decent range of use cases in between pandas is extremely powerful and effective.

Comment Re:Programming language in 2 hours ? Yeah, right. (Score 1) 466

Because Ruby is my preference and I am more familiar with it, I can tell you that it is in continuous development, and bytecode-compiled versions are available (JRuby, which uses the JVM, and others). I do not know about Python in this respect because I haven't used it nearly as much.

Python has the default implementation CPython which compiles python to an interpreted bytecode; there's also Jython which compiles to JVM, and IronPython which compiles Microsoft's CLR. There's also Cython (which requires extra annotations) which compiles to C and thence to machine code, and numba which does compilation to LLVM. Finally there's Pypy which is a python JIT compiler/interpreter written in a restricted subset of Python.

Comment Re:Spidey: Stingray Detector App for Android (Score 3, Interesting) 253

This is interesting. I was just discussing this with my friend last night, and proposed this exact solution. However, it's still a reactive solution. It will detect that you may be the victim of a stingray attack, but it won't stop your phone from connecting in the first place. But there is another potential solution, I just don't have enough experience developing android roms to say how it would have to be implemented. The idea is this: maintain a database of all know cell towers (your link to OpenCellID would do nicely, they offer their DB for download). Using a rooted or fully custom ROM, such as cyanogenmod, have the phone compare any new tower to the database prior to connecting. If it doesn't exist in the database, red flag it and don't connect.

The question is, can this be done on the OS level, or does it have to happen on the driver level? If it can be done at the OS level, easy peasy, just modify the code to establish tower connections to include this check. If it has to happen on a driver level, it gets trickier. Most phones use proprietary binary drivers for their cell radios, so they couldn't be readily modified. However, it may be possible to load an intermediate driver, which in turn loads the proprietary driver. If it could be determined which driver calls involved connecting to a new tower, you could just pass through everything else, and only pass through calls to the tower connect function if they passed your database lookup. Trickier, but doable. Because really, you want to avoid connecting to these things at all. Nice though it is to see you're being attacked, it's better to stop the attack before it starts.

Comment Re:Seems reasonable... (Score 4, Insightful) 260

Do you live in the area? I do. The cabs here can suck. A cab in the middle of summer that smells of old smoke, with no AC, in 95F and 10% humidity in the middle of summer is a not good thing.

That said, there are some amazing cabs too - but it's a guessing game. I've been (illegally) kicked out of cabs because my destination was too far or too "dangerous". Cabs get very picky during peak hours on who they pick up and in what neighborhoods they pick up in. Only this year do DC cabs take credit cards reliably, and only because of much-hated and delayed regulation changes based on Uber entering the game.

Do I think Uber/Lyft/etc. need to join in to regulations? Sure. That's a good direction. But sorry D/M/V cab industry, maybe you should have upped your game a long time ago. I have much respect for a good cabbie, but not much for the industry.

Japan

Percentage of Elderly In Japan Continues to Grow as Number of Children Drops 283

First time accepted submitter Cornelie Roe (3627609) writes in with some bad news about the population of Japan. "The number of children in Japan has fallen to a new low, while the amount of people over 65 has reached a record high as the population ages and shrinks, the government said. There were an estimated 16.33 million children aged under 15 as of 1 April, down 160,000 from a year earlier, the internal affairs and communications ministry said on Sunday. It was the 33rd straight annual decline and the lowest level since records began in 1950. Children accounted for 12.8% of the population, the ministry said. By contrast, the ratio of people aged 65 or older was at a record high, making up 25.6% of the population. Jiji Press said that, of countries with a population of at least 40 million, Japan had the lowest ratio of children to the total population – compared with 19.5% for the United States and 16.4% for China. Last month, the government said the number of people in the world's third largest economy dropped by 0.17% to 127,298,000 as of 1 October 2013. This includes long-staying foreigners. The proportion of people aged 65 or over is forecast to reach nearly 40% in 2060, the government has warned."

Comment Re:Priorities? (Score 3, Insightful) 231

Rigorous testing is helpful, but I think it's the wrong approach. The problem here was lack of requirements and/or rigorous design. In the physical engineering disciplines, much effort is done to think about failure modes of designs before they are implemented. In software, for some reason, the lack of pre-implementation design and analysis is endemic. This leads to things like Heartbleed - not language choice, not tools, not lack of static testing.

I would also go as far as saying if you're relying on testing to see if your code is correct (rather than verify your expectations), you're already SOL because testing itself is meaningless if you don't know the things you have to test - which means up-front design and analysis.

That said, tools and such can help mitigate issues associated with lack of design, but the problem is more fundamental than a "coding error."

Comment Re:worthless top five phrases (Score 2) 38

So they mined the journal for words and phrases... meh, those aren't memes

They are memes in the sense that they are specifically finding words and phrases that are frequently inherited by papers (where "descendant" is determined by citation links), and rarely appear spontaneously (i.e. without appearing in any of the papers cites by a paper). An important feature is that their method used zero linguistic information, didn't bother with pruning out stopwords, or indeed, do any preprocessing other than simple tokenisation by whitespace and punctuation. Managing to come out with nouns and complex phrases under such conditions is actually very impressive. You should try actually reading the paper.

Comment Re:now if only people can stop calling netmemes me (Score 1) 38

But the writers of TFA are still misusing the word

Actually no, they are not. By using citations to create a directed graph of papers they are specifically looking for words or phrases that are highly likely to be inherited by descendant documents and also much less frequently spontaneously appear in documents (i.e. not used in any of the cited documents). They really are interested in the heritability of words and phrases.

Comment Re:No SD slot == No thanks. (Score 1) 196

Wow, I actually didn't notice that until I saw your post. Total deal breaker, which is tragic, I was all about this phone up until the moment of realization. I constantly walk around with at least 2 64GB cards in my wallet, Get a phone with large internal storage, keep all my apps on the internal, have bulk data and media on the cards. Without a slot, my entire mobile storage strategy goes right out the window. This seems like an incredibly foolish design decision, and one that will turn away a large part of the phone's potential market, namely people like me who actually store lots of data (video, mostly, people always trip when you connect your phone to their TV and start playing quality HD movies instead of the trifling low-bitrate shit they're used to from Netflix and the like). The ones most likely to miss this feature are probably the same kind of folks who've been playing with Cyanogenmod for years, too (again, me). And seriously, what would a slot have done to the price of the phone? I'd happily pay the extra to have an SD slot.

Comment Re:Clock Radio! (Score 1) 702

Mine is similar - I have a GE AM/FM alarm clock radio with red LED segmented display, but mine is a bit newer - I got I think in 1993. 21 years is pretty good - 100% fully functional (go go pre-ROHS analog radio!) and still keeps accurate time. Only thing wrong with it is the tab on the 9V backup battery compartment broke, so the door falls off if you lift the thing off the nightstand. I refuse to keep my phone by my bedside, so I still use the alarm function.

Contrast to a new one - it was either Emerson or Panasonic, can't remember which - I bought while on an extended work trip where I was put up in an apartment. This was in 2008, and the clock was so inaccurate it would gain 15 minutes a month.

Comment Re:Living in 1925 kinda sucked (Score 1) 516

I'd rather choose "Make it easier for people to make their own widgets or form companies to make widgets."

IP laws, some zoning laws, licensing laws, tax laws, accounting laws, and the like all make both making your own stuff or forming companies difficult; limited availability of low-cost machine tools and education makes it difficult to do stuff yourself. These are the things I would reform, not minimum wage or windfall profits tax.

Slashdot Top Deals

With your bare hands?!?

Working...