Monday, June 30, 2014
Monday, March 18, 2013
Somebody on Twitter reminded me of this when he mentioned using Excel as a random number generator. Here's an alternative from the world of Python. It of course assumes Python is installed and that the interpreter is in the command path.
c:/ > PythonPython 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>> import random as r
Replace the "25" with whatever range you want.
It takes all of 20 seconds once you get the hang of it, no saved shortcuts required. Other than the shell, which any good geek will have on the desktop.
You can also specify the lower bounds of the range.
You can also do a thing with a list of items, but who needs all that typing?
Thursday, March 14, 2013
Update 2: Forget FeedDemon, they were dependent on the Google Reader API and have no idea what to do without it, so they're shutting it down.
Update: NetVibes? I can't figure you out.
In an innocuous bullet point, Google announced the end of Google Reader.
We launched Google Reader in 2005 in an effort to make it easy for people to discover and keep tabs on their favorite websites. While the product has a loyal following, over the years usage has declined. So, on July 1, 2013, we will retire Google Reader
There's also some nattering about how to export your data.
But that's it. No fanfare, no polls or other awareness efforts, just, *pouf*, it's gone. For those of us smugly secure with our gmail-as-primary-mail strategy, this is a bit like a mild temblor near the San Andreas rift. Is this just what it appears, or is something about to blow?
I could wax poetic on the injustice of it all and how this just shows how unreliable Google really are, but plenty of people are already doing that (see: slashdot). Time's a wastin', we have to find a new home!
A few years back I started writing my own RSS feed reader using Mark Pilgrim's wonderful feedparser library. There are two points of irony here: 1) he, himself, works at Google (go ahead with the conspiracy theories now), and 2) he himself abruptly disappeared from the ineternet in 2011. I think I still have that around, and possibly I might investigate.
But I'd rather have something like Google Reader that lets me read and sync up from multiple locations at once. The requires the "cloud", which is a trendy way of saying that I need one server that I can talk to from multiple points and have actions from one location reflected to all. To that end and to make my life a little easier, a list.
- Feedly – Chrome extension, IOS and Android apps. Depends on Reader's API but claim to be working on their own.
- Pulse – Another magazine-ish alternative, not sure I like the interface, and importing Reader subs looks like it might be a problem.
- NetVibes – haven't looked into this one yet, but it looks really slick and is getting a bit of buzz.
- NewsBlur – No experience with the UI yet, but the crawlers it uses are somewhat ferocious, based on my server logs. Expect this one to always have up to date feeds.
Incidentally, efforts to sign a petition or whatever in order to get Google's attention and show them just how much Reader is actually used is kinda pointless. They have the server logs. They know when you logged in, what you clicked, and how often you use it. A popularity contest won't hack it. You have to put this in terms that they will appreciate. Considering that they hadn't even updated the Reader blog since October 2011 (coincidence, Mr. Pilgrim?) I would say that internal interest is what has declined the most, and that that is what you have to get going to save Google Reader.
Wednesday, February 20, 2013
The electric car is the future of personal transportation.
Any movie you watch in which the future is depicted, cars are electric. That's just the way it is.
Like many things – transporters, FTL travel, and medscanners, to name a few – electric cars are presented as whole cloth, with no explanation as to why or how they manage to work and, most frequently, defy the laws of physics.
But we geeks are nothing if not hopeful, so we always agitate in grand fashion when one of our sci-fi tropes gets close to reality. Well, except talking computers. I never see anyone get excited about talking computers. You would think geeks would get excited about that, but no. I imagine it's our secret dread of having to hold down a conversation at work here.
Up to now, we've had precious little to choose from in the arena of electric cars. The EV1 was a moderate flop, viewed by some as a good try and others as a misguided failure. Hybrid cars have taken another crack at it, with the Toyota Prius leading the pack, and other, more interesting offerings like the Fisker Karma following in its tracks.
But our geek juices don't flow for the "almost but not quite" feeling you get from a hybrid. Yes, they have amazing mileage when you treat them right, reduced emissions, are cheaper to operate if operated right, and so forth. But they're not really electric cars, not the science fiction toys that we want to be in when firing our phasers at aliens as they buzz us in their flying saucers.
(We gots issues)
Setting the Stage
In 2003, a company called Tesla Motors was founded by Elon Musk, one of the cofounders of Paypal (thus explaining his large and prominent bankroll). The vision for the company immediately stoked geek flames around the world; nothing less than the ultimate goal of having an affordable electric car available for everyone.
Everything starts small, and Tesla was no different, starting with the Tesla Roadster, nothing less than an all-electric sports car. With ferocious acceleration and acceptable range, it put Tesla on the map and attracted just the sort of attention to get partners, investors, and potential customers to line up.
The Roadster also garnered some unwanted attention, too, but not because of any problems it had. Not directly. Famed and/or infamous BBC automotive show Top Gear tested the Roadster on their track, and ended up trashing its mileage estimates soundly.
"Although Tesla say it will do 200 miles we have worked out that on our track it will run out after just 55 miles and if it does run out, it is not a quick job to charge it up again." – Jeremy Clarkson, Top Gear, 2008
Clarkson was first to praise the car's performance, and first to point out that nobody's mileage estimates ever survived a drive on the Top Gear test track. They drive in a decidedly un-recommended fashion, trashing tires, transmissions, and batteries alike. The test track segment is to test performance, nothing more.
While he did praise the performance, however, they stood fast on is mileage issue, and Elon Musk pretty much went mad over this. They sued Top Gear, twice, and were thrown out of court, for Top Gear had an ace in the hole: while the cars that were provided for the show's taping were closely coddled and monitored by Tesla, Top Gar had gone out and bought and tested a different car weeks before, and that was where they derived the actual data from. This did not stop Tesla, or rather, Musk. But the courts did.
Here we are in 2013, and the scene plays out again. The New York Times was approached by Tesla for a review of the Tesla S, a coupe offering, along with the Tesla "Supercharger net", a network of charging stations for electric cars that can fully charge a car in around an hour.
In Top Gear's case, the team was quite familiar with dealing with pettish personalities (they do, after all, review Italian sports cars along with American electrics). They had the power and stability of the British Empire behind them, and they are incredibly competent at the whole driving and reviewing and gathering facts thing. So, Musk could threaten and cajole all he wanted, they were having none of it.
The New York Times, however, is a shadow of its past, seemingly more a collection of bloggers with financial backing than the guardian of the Fourth Estate that they used to be. And thus they can get a little bit timid when pushed. And Musk pushed. He sounded the fanboy whistle and an army of well-heeled geeks started spamming the airwaves with anger and recreations of Broder's trip and, well, just a mob scene, really. Meanwhile, Musk continued to whip it up.
So it's no surprise that the NYT threw Broder under the (electric) bus here. They do not have the capital of the BBC or the NYT of the past, and cannot just go out and buy a Tesla S and carry out their own review without the guidance, oversight, aid, and, potentially, interference of Tesla Motors. They have to rely on the good graces of companies like Tesla to test the big-ticket items, because they just don't have the deep pockets they once had.
The data themselves are inconclusive. Musk's attempts to paint the data logs on the machine in an unflattering light were only partially successful, but they do reveal some driving habits that can easily be interpreted to be malicious.
I tend to go along with the "Broder wasn't paying attention to his instructions" interpretation. Broder was under the impression that he was allowed to test this car as if it were just another car, and that he should be able to get in, drive to his destination, no fuss, no muss, no bother. Other test drivers followed the directions given by Tesla engineers in great detail, and had greater success, but considering that some of the things done were such as overriding safety interlocks, I have deep, deep suspicions. The fanboy mentality has a way of destroying reality in many ways, and moving otherwise reasonable people into irrational courses.
We're just getting started
I have no doubts that Tesla will be able to achieve the goal of an affordable electric car for all. I don't expect instant success and neither should Musk. Instead of creating all this negative drama around his company, he should be using these setbacks to define new goals to meet. His, well, tantrums are far more damaging than the NYT or Top Gear reviews ever were.
His other company, SpaceX, has had a lot of success lately, but they, too, have gotten some negative press. Nobody remembers what about. What everyone remembers is Elon Musk's reaction. He's PR poison, and he should be grateful that the US was willing to overlook his unprofessional behavior and award the contracts they have. The could easily have decided otherwise based on his behavior alone.
This, Elon Musk, is your legacy, if you don't watch it.
"One detail Sullivan didn't address is something of a well-kept secret in tech journalism: Musk is a genius, a highly successful serial entrepreneur, and indisputably an important figure doing great things. But he also has a nasty habit of busting the balls of reporters who are acting in good faith, when the reporting they produce includes any criticism of SpaceX or Tesla." – Xeni Jarden, Feb 19 2013
Friday, February 15, 2013
NASA is putting up a UStream of the asteroid as it passes, which you can watch here.
Pretty neat, eh?
There's a lot of speculation about whether the meteor in the Urals this morning is related. That particular bit of rock was around ten tons and broke up somewhere around 20-30 miles above the ground. In true Hollywood tradition, it blew out windows and littered the landscape with sonic booms. Nobody's sure if one of those booms was the it actually exploding, but probably not.
It's a curious thing; in Russia, most cars have dash cams due to the need to prove innocence against corrupt cops and the like. As a result, we have a huge offering of dash cam views of the thing entering the atmosphere and blowing up. They even have time, location, and speed information embedded. Talk about synchronicity!
Phil Plaitt, the famed "Bad Astronomer", has a few words to say about the event.
This is almost certainly unrelated to the asteroid 2012 DA14 that will pass on Friday.He adds:
For one thing, this occurred about 16 hours before DA14 passes. At 8 kilometers per second that’s nearly half a million kilometers away from DA14. That puts it on a totally different orbit.He has a few other compelling reasons as well. But, as he says, what a coincidence! Keep checking back on his blog, he's updating it as more information comes in.
Wednesday, January 30, 2013
Things of nerdish, geekish nature will be told. I can't promise politics won't sneak in, for that is the stuff that regulates our existence at times, but given the dislike many have for a contrary opinion, I'll try to reserve my pith for the really important matters.
I make no other promises. Off you go.