At this very moment, miles beneath the surface of the ocean, there is a British nuclear submarine carrying powerful ICBMs (nuclear-armed intercontinental ballistic missiles). In the control room of the sub, the Daily Mail reports, "there is a safe attached to a control room floor. Inside that, there is an inner safe. And inside that sits a letter. It is addressed to the submarine commander and it is from the Prime Minister. In that letter, Gordon Brown conveys the most awesome decision of his political career ... and none of us is ever likely to know what he decided."
The decision? Whether or not to fire the sub's missiles, capable of causing genocidal devastation in retaliation for an attack that would—should the safe and the letter need to be opened—have already visited nuclear destruction on Great Britain. The letter containing the prime minister's posthumous decision (assuming he would have been vaporized by the initial attack on the homeland) is known as the Last Resort Letter.
Comments [0]
Comments [0]
Strangely disturbing. Pre-1920 American. New York. From Duke University's Emergence of Advertising in America archive.
Comments [0]
From Duke University’s Emergence of Advertising in America archive comes this beautiful advertisement for Diamond Dyes, published sometime between 1853 and 1920. The ad illustrates the negative after-image optical illusion.
Comments [0]
To the People of Wall Street: Did you know? The siren you have been hearing is designed to warn the people of Grandview Woodland that the chemical plant is leaking chemicals into the atmosphere. I have been looking for the source of this siren for twelve years.
---
No, This is not true. The siren started in July of 2009. And I found out that it is a stupid warning that the train is backing out to the dock. Complain to get it Stoped!
----
THE REAL SOURCE OF THE SIREN IS A HOLE IN THE SPACE-TIME-CONTINUUM! WHY, YOU MUST BE FROM THE FUTURE!
Comments [0]
Comments [0]
Say you have a large number of files (hundred or thousands) where the names of the files contain useful data — like dates or names — that you would would like to extract and use elsewhere (for example, as metadata). I recently found myself in this situation and found some neat tricks to get the job done and while I am sure there are more elegant ways to do this, the following worked great for me.
Lets say your files have the following format:
word1_number1_number2_number3.txt
Conceptually you could think of such filenames as having 4 information-containing fields delineated by an underscore symbol. What we want to do is extract the data contained in these fields and store it in a seperate file as a columns so that it can can be manipulated or imported into a database or spreadsheet.
This can be done using standard linux commands like “echo” and “cut” in a shell script. Here is the shell script, then I will explain what each part means and how to change it to suite your needs:
#!/bin/bash
for f in *.txt do;
s=`echo $f | cut -d “_” -f1`;
echo “$s” » newdatafile.out;
done
The above will:
What you should end up with is a file called newdatafile.out that has a single column like so:
word1
word2
Then you can change the script slightly to extract your second field (into a new file) and so on until you’ve extracted all the information you need from the filenames. Then use the paste command (or whatever, cut and paste, etc.) to combine the files. You should then have a single file with columns for each field where the fields in each column come from the same filename
Comments [0]
Comments [0]