Wednesday, August 05, 2009

The Month In Geek: July 2009

July was an interesting month for all things geeky. Here are some of my favorite stories from the last month.

Astronomy:
Jupiter got smacked by something big, probably an asteroid (because we probably would have seen it if it were a nice, bright comet). That thing left a black spot on Jupiter roughly the size of the Earth. Wow. The Bad Astronomer has been keeping me up-to-date on exactly what happened.

Entertainment:
Information came out last month about three big geek movies. First, Disney released details and clips from Tron Legacy, the sequel to Tron. I'm sure it's going to be cheesy and terrible, but it may also be awesome.

Second, the announcement came out that Sam Raimi is set to direct a World of Warcraft movie. I will cringe when they make the obligatory Leeroy Jenkins joke (those non-funny bastards were on my server, and I hated them before they made the lame movie and somehow got famous for it), but the possibility of Raimi making a videogame movie is... intriguing.

As if that wasn't enough, at the end of July it came out that Ridley Scott has signed on to direct a prequel to Alien. Ridely Scott, not just some random schmoe. Wow.

Technology/Geek Culture:
A firm in Abu Dhabi has ponied up money to Virgin Galactic. Part of the deal is to build a spaceport in Abu Dhabi (in the UAE), making it the second commercial spaceport (after the Mojave Air & Space Port in Mojave, California). I'm guessing that one will get quite a bit of use. Note to science fiction authors: Arabic will likely be spoken in space roughly as much as English, at least in the early days of space tourism.

Politics/Morality:
The UK Quakers are going to extend marriage services to same-sex couples. If that bleeds to the US Quakers, that would mean, when a state accepts one religious marriage ceremony as valid but not another, they are denying the religious freedom of that same-sex couple. I've often wondered what would happen if that tack were taken on the gay marriage issue. We might get to find out. Of course, the consequences could be dire.


I'm sure there were a number of geek stories that I didn't cover here. Let me know in the comments if I skipped any big ones.

Thursday, July 30, 2009

Blog Squishiness

Update: Fixed!

I picked a new template to reset some things that were broken... but that means my blog is so narrow now that some of my photos don't fit. I'll fix it soon... ish...

If you're reading this on RSS, you shouldn't notice any effect.

Wednesday, July 29, 2009

Multi-Parameter Firefox Keywords and Chrome Search Engines

By far, my most popular post is my guide on Firefox Keywords and Chrome Search Engines. I recommend reading that one to get caught up if you don't know what Firefox Keywords and/or Chrome Search Engines are.

Shortly after I wrote that, I found this post on Lifehacker explaining how to combine bookmarklets and keywords for some very clever and useful tricks, but it didn't work on Chrome as written, and I never got around to figuring it out. Tonight I finally took the time to figure it out.

The problem (besides the Lifehacker example being overly complicated) is that Chrome doesn't like {}'s in keywords. Those aren't really necessary unless your keywords are very complicated, though, so I got it to work. This is the code we'll be working with:

javascript:
var s='%s';
url='YOUR URL, WITH %s's FOR EACH TERM';
query='';
urlchunks=url.split('%s');
schunks=s.split(';');
for(i=0; i<schunks.length; i++)query+=urlchunks[i]+schunks[i];
location.replace(query);

As it says in the code, all you need to do is insert the url you want to use, with the usual %s's anywhere you want to insert a search term. You then set it up like any other keyword or search engine (see the other post for how to do that; note: you can just copy/paste the multi-line code into Chrome or Firefox, they don't require that you condense it down to one line first). To use it, just separate your search terms with ;'s.

This fairly simple code can let you do some very cool things. Here's an example for mapping between any two points in Google Maps:

javascript:
var s='%s';
url='http://maps.google.com/maps?saddr=%s&daddr=%s';
query='';
urlchunks=url.split('%s');
schunks=s.split(';');
for(i=0; i<schunks.length; i++)query+=urlchunks[i]+schunks[i];
location.replace(query);

I set this up as a Chrome search engine with keyword "mapp" (although something like "directions" might be easier to remember). If I type "mapp NYC; DC", I get a google map between New York City and Washington, DC.

A warning: if you include a space after the ; like I did in that example, you technically get a space before your second search term. I could probably over-complicate the code and clean that out, but it works fine for Google, and I can learn to avoid it once I set up ones that don't tolerate it. Oh, and if you include more ;'s than the keyword has %s's, the extra stuff will just be tacked onto the end (for example, "mapp NYC;DC;Other" tries to generate a map between "NYC" and "DC Other"

If you use this, please let me know in the comments if you come up with any clever ones. Remember: this works for any url that you want to insert something into, not just searches, so there are definitely some interesting possibilities out there waiting to be discovered.

Monday, July 27, 2009

Mad Science Monday, 7/27/2009

If you've been reading this blog, you might have found yourself wondering, "What exactly makes science mad?" Even if you haven't, I have quite a bit recently. I've been reading papers, searching for things that are suitably mad, and nothing seems to be up to snuff. So, both to let you know my process and to work it out a bit for myself, I decided this week I'd present:

Meta Mad Science Monday: Defining Madness

There's one definite requirement for a paper to make the cut for Mad Science Monday: it has to clearly be science, not engineering. The researchers have to be testing a hypothesis using controlled experiments, not piloting new technology.

Beyond that stipulation, there are a lot of signs that a study might be mad. Here are some of them.

1) Use of Mad Engineering as a Research Tool

When I saw a study involving implanting lasers in rat's brains, I knew there was a strong possibility that I was reading about mad science. Frikkin' laser beams are often mad engineering, and implanting them in rat's brains (and using viruses to alter those rat brains) cements that definition. Robots also often fit this rule. If the researchers are using mad engineering, there's a good chance they're doing mad science.

2) Mergers of Man and Beast

A lot of biological research involves human genes, or cognates of human genes, being tested in non-human models. But when researchers implant human genes into mice to test something unquestionably human—speech, in this case—there's a good chance we're looking at mad science. That particular paper also has another defining characteristic of mad science, which is why it launched this project.

3) Mad Quotations from the Researchers

If I see a story about some research in which they say, for example, "We will speak to the mouse," I know there's a good chance I'm looking at mad science. If you can imagine lightning flashing as the researcher shouts the quote, it's probably something I need to write about.

4) Quantum Entanglement

Any paper about quantum entanglement is mad science. Some of them are too thick to boil down into something fun to write about, but they're still mad science. That shit is just weird.

5) Research Involving Fear, Pain, Etc.

If the subjects of the research have to be scared, or pain has to be inflicted upon them, or otherwise the research sounds like it's on questionable moral standing when I first hear about it (before, inevitably, reading about the very humane protocols used in the research), it's probably mad science. This even works if the subjects aren't human, but the research has potential human applications. That borders on the next requirement.

6) Research with Clear Mad Engineering Applications

Clear applications usually aren't present in my favorite research, but if they're mad applications, they can make me take notice. If the research is aimed at, say, finding the formula for taking over the world, that's probably mad science. Research on weather control, giant weapons, doomsday devices, etc would also qualify as mad science, but I have yet to find anything good in this arena.

Those are the criteria I use right now. Right now I have a Rule 5 and a potential Rule 1 on deck, but they both look like weak applications of those rules. If you notice anything else fitting these criteria, or notice a criterion I missed, let me know in the comments.

Monday, July 20, 2009

Mad Science Monday, 7/20/2009

Are you a mad engineer looking to take over the world (or even a small section of it)? Do you also have a powerful, supervillainous ability to extend a simple example into a general principle? If so, this research is for you.

Mad Observations: In widely varying areas, animals follow leaders. This behavior ranges from ants seeking food, through birds and butterflies migrating long distances, to human politics. In all of these cases, the followers have a strong tendency (and motivation) to keep following the established leaders; if they didn't, particularly in the non-human examples, things would quickly be very bad for them.

Mad Reference: Note: This is a not-yet-published letter, not a peer-reviewed paper. It's basically raw presentation of research, which is what arxiv.org is for. "Effective leadership in competition." Hai-Tao Zhang, Ning Wang, Michael Z. Q. Chen, Tao Zhou, and Changsong Zhou. Full text available from arxiv.org.

Mad Hypothesis: As the authors state it, "is it possible for the minority later-coming leaders to defeat the dominating majority ones and how?" In other words, the hypothesis they're attempting to disprove is "It is impossible for minority later-coming leaders to defeat the majority leaders." If they manage to disprove that, they'll also have the how covered.

Mad Experiment: The researchers used a "generic model of collective behavior, the Vicsek model." As far as I can find, this is a widely used model for motion. Specifically, in this model individual motions are aligned to the average of their neighbors. In other words, if you want to think of this research in a more global context than just motion, you have to make the assumption that the individuals you're targeting will tend to follow along with whatever the people near them are doing. However, "near them" could mean "politically near them," for example, so it's not necessarily a bad assumption. Remember that translation of "near them" when pondering the rest of the findings, though.

In this model, the researchers introduced "leaders," which were simply individuals that did not simply align themselves to their neighbors. The followers obeyed the "follow your neighbor" rule, but the leaders were set to either move right (the established leaders) or left (the newcomer leaders).

After establishing the model with the right-leaders + followers, the researchers introduced late-coming left-leaders in various patterns and with various distributions. They measured how well these patterns of left-leaders were able to overcome the movement direction established by right-leaders.

They All Laughed, But: The researchers found that the late-comers were able to change the direction of the group, but that their ability to do so could be predicted based on two factors: the spatial distribution of the leaders (how far apart groups of leaders were) and the clumping of the leaders (how close together the members of a group of leaders were). Higher values for either of those factors increased the chance that the left-leaders could overtake control of the group. And, of course, it helped if the right-leaders had lower values for those factors.

Mad Engineering Applications: What these researchers found is that two factors help in taking over control of a group: wide distribution of the individuals working to change the group, but tight clumping of change-introducing individuals. In other words, it's good to spread out your leaders, but give them allies to work with locally.

It's easy to accidentally keep too much of the geographic part of this model, though. For example, if you translate the findings to politics, you should translate all of the model to politics. If you want to spread an idea throughout a group, you need people idealogically clumped to help each other influence others who are close to them idealogically, but it helps to also have such groups spread out to different places on the idealogical scale.

I'd be interesting to see other ways mad engineers could find to adapt this model to other scenarios. If you think of any, let me know in the comments.