Monday, October 22, 2012

Nightmare Final

I have seen this and variations many places on the web but no credit for authorship. Too bad as this is awesome - pretty sure I had to take a test or two like this in collegge.

Good luck!

Instructions

Read each of the following fifteen questions carefully. Answer all the questions. Time limit: 4 hours. Begin immediately.

1. HISTORY

Describe the history of the papacy from its origin to the present day, concentrating especially, but not exclusively, on it social, political, economic, religious, and philosophical impact on Europe, Asia, America and Africa. Be brief, concise and specific.

2. MEDICINE

You have been provided with a razor blade, a piece of gauze, and a bottle of Scotch. Remove your appendix. Do not suture until your work has been inspected. You have 15 minutes.

3. PUBLIC SPEAKING

2500 riot-crazed aborigines are storming the classroom. Calm them. You may use any ancient language except Latin or Greek.

4. BIOLOGY

Create life. Estimate the differences in subsequent human culture if this form of life had developed 50 million years earlier, with special attention to its probable effect on the English parliamentary system. Prove your thesis.

5. MUSIC

Write a piano concerto. Orchestrate it and perform it with flute and drum. You will find a piano under your desk.

6. PSYCHOLOGY

Based on your knowledge of their works, evaluate the emotional stability, degree of adjustment, and repressed frustrations of each of the following: Alexander of Aphrodites, Ramses II, Gregory of Nicea, and Hammurabi. Support your evaluation with quotations from each man's work, making appropriate references. It is not necessary to translate.

7. SOCIOLOGY

Estimate the sociological problems which might accompany the end of the world. Construct and experiment to test your theory.

8. ENGINEERING

The disassembled parts of a high-powered rifle have been placed on your desk. You will also find and instruction manual, printed in Swahili. In ten minutes a hungry Bengal tiger will be admitted to the room. Take whatever action you feel appropriate. Be prepared to justify your decision.

9. ECONOMICS

Develop a realistic plan for refinancing the national debt. Trace the possible effects of your plan in the following areas: Cubism, the Donatist controversy, and the wave theory of light. Outline a method for preventing these effects. Criticize this method from all possible points of view. Point out the deficiencies in your point of view, as demonstrated in your answer to the last question.

10. POLITICAL SCIENCE

There is a red telephone on the desk beside you. Start World War III. Report at length on its social-political effects, if any.

11. EPISTEMOLOGY

Take a position for or against truth. Prove the validity of your position.

12. PHYSICS

Create a small rapidly rotating black hole. Investigate and report on its effects on the optoelectric properties of Seaborgium (element #106). Clean up your experiment after you've finished.

13. PHILOSOPHY

Sketch the development of human thought and estimate its significance. Compare with the development of any other kind of thought.

14. ASTRONOMY

Define the universe. Give three examples.

15. GENERAL KNOWLEDGE

Describe in detail. Be objective and specific.

Sunday, September 30, 2012

Friends don't let friends use Aero Peek with Alt Tab!

Hey! Windows Aero Peek! Ya I'm talking to you!


HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AltTab
LivePreview_ms(REG_DWORD): 0

Just sayin!

Saturday, June 30, 2012


Recently I needed to use NetBeans to work on a project that needed HTTP access to a set of static files. The way I did it was to edit the embedded Tomcat server.xml like so:

    <Engine defaultHost="localhost" name="Catalina">
        <Realm className="org.apache.catalina.realm.LockOutRealm">
            <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                   resourceName="UserDatabase"/>
        </Realm>
        <Host appBase="webapps" autoDeploy="false" name="localhost"
              unpackWARs="true">
            <Valve className="org.apache.catalina.valves.AccessLogValve"
                   directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b"
                   prefix="localhost_access_log."
                   resolveHosts="false" suffix=".txt"/>
            <Context path="/sdk" docBase="z:/Data/Foo" />
            <Context path="/web" docBase="z:/web" />
        </Host>
    </Engine>

Enjoy!

Saturday, June 23, 2012

HowTo - get directory of executing bash script

    BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

HowTo - read a value from a Java Properties file in Bash

    # Reads property $2 from properties file $1 and echos the value. To call this method do:
    #
    #     V=$(getProp filename property)
    #
    function getProp () {
        # ignore lines with '#' as the first non-space character (comments)
        # grep for the property we want
        # get the last match just in case
        # strip the "property=" part but leave any '=' characters in the value

        echo `sed '/^[[:space:]]*\#/d' $1 | grep $2  | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'`
    }

Friday, June 8, 2012

Difficult Tasks

This is what is meant by "pulling a Brave Sir Robin" when assigned a difficult task... for the curious people.

Brave Sir Robin

Brave Sir Robin Ran Away
Bravely ran away away
When danger reared its ugly head
He bravely turned his tail and fled
Yes Brave Sir Robin turned about
And gallantly he chickened out
Bravely taking to his feet
He beat a very brave retreat
Bravest of the brave Sir Robin