Read this list of common statements by parents: link

Elliot Temple | Permalink | Messages (0)

There Are No Shortcuts To Knowledge

At breakup, people realise, "he never knew me at all". Why were they fooled before? It's because he was running functions like this:

define-action "care": (lookup-and-say: "conventional-way-to-care")

instead of like this:

define-action "care": (lookup-and-say: "what-partner-cares-about")

So as long as the couple is roughly conventional, things seem to work. They seem to have instant knowledge of each other. But they don't actually have knowledge of each other, and that is revealed when they get into more subtle parts of their personalities and find differences from both convention and each other.

The second function will respond to the partner changing. The first will not and is thus deeply impersonal.

Elliot Temple | Permalink | Messages (0)

Elliot Temple | Permalink | Messages (0)

Islamic Insanity

In Iran, a girl was sentenced to death by hanging for defending herself against rapists. If she hadn't defended herself, she would be stoned as an adulterer.

Elliot Temple | Permalink | Message (1)

How To Get Popular

Rule 1) Do *not* second guess your memes

this applies to most forms of popularity, especially school grades k-12. it applies 10-20% less at college.

Elliot Temple | Permalink | Messages (0)

Programmer Productivity

Yannis has proposed Yannis's Law which states that programmer productivity doubles every 6 years. He gets the figure from a project that took a week or two in 1972, but would now take an hour or two. I just did it in twenty minutes using a plain text editor (with python syntax highlighting) and a unix terminal. My Python is rusty.

The KWIC index system accepts an ordered set of lines, each line is an ordered set of words, and each word is an ordered set of characters. Any line may be "circularly shifted" by repeatedly removing the first word and appending it at the end of the line. The KWIC index system outputs a listing of all circular shifts of all lines in alphabetical order. This is a small system. Except under extreme circumstances (huge data base, no supporting software), such a system could be produced by a good programmer within a week or two.
Here's my code:

#!/usr/bin/env python
def main():
    f = open("kwic.txt", "rU")
    out = open("kwic-output.txt", "w")
    final = []
    for line in f:
        words = line.split()
        count = len(words)
        for i in xrange(count):
            final.append(makestr(words))
            cycle(words)        
    final.sort()
    for ele in final:
        out.write(ele + "\n")
        
def makestr(li):
    s = ""
    first = 1
    for ele in li:
        if first == 1:
            first = 0
            s += ele
        else:
            s += " " + ele
    return s
    
def cycle(li):
    tmp = li[0]
    del li[0]
    li.append(tmp)
    return li

if __name__ == '__main__': main()


By the way, if someone knows a more elegant way to avoid having an extra space in makestr, let me know. I'm aware of the option of deleting the first character after making the string, but I don't consider that very nice either.

Elliot Temple | Permalink | Messages (4)

Silly Studies and Food Fads

Wikipedia says:

Diet. One flawed study purported that Chocolate, french fries, potato chips and sugar, among others, affect acne. A recent review of scientific literature cannot affirm either way. The consensus among health professionals is that acne sufferers should experiment with their diets, and refrain from consuming such fare if they find such food affects the severity of their acne.

But how is someone supposed to know what foods increase or decrease his acne? Try to pay attention to what he eats and what changes in diet are linked to what effects? How will he know which food did it, and how will he know what the time delay between diet changes and acne changes is? (If acne changes, was the it due to the food 2, 4, 6, or 20 days ago? Or not due to food at all?) Scientists trying to do controlled studies haven't figured anything out yet. A person who goes on his own anecdotal evidence will almost certainly be creating unscientific superstitions for himself to follow. This should not be encouraged. People have enough hang-ups about food already. The only responsible advice for scientists to give is, "don't worry about it, eat what you want."

That some scientists would encourage people to act on anecdotal evidence in this way suggests they are not competent to perform studies themselves.

Elliot Temple | Permalink | Messages (2)

can't win

kill terrorists with collateral damage, and leftists hate you

refrain, and they hate you too

"Richard Clarke has charged that fighting terrorism was not the top priority with the Bush administration"

http://in.rediff.com/news/2004/mar/25osama.htm

Elliot Temple | Permalink | Messages (0)

Widespread Support For Terrorism

Rantissi killing: World reaction

Dear God, the entire world except Israel and USA condemned killing a major player in Hamas. And USA's statement was far too weak.

My preferred statement by the USA would be something like:

Good riddance to bad men. We pray Israel will continue this policy of making the world a better place. We are currently developing methods to coordinate with Israel to aid in future strikes. We will treat any condemnation of this action as condemnation of the United States as well. We wish to stand united with Israel, and the Jews, hand in hand, if they will have us.

I realise the "wish to" and "if they will have us" is a bit weak for a public statement, but i can dream.

The most interesting quote was:

Lebanese Culture Minister Ghazi al-Aridi:

"This is an ongoing soap opera and we'll see more murders of Palestinian leaders... This is absolute terrorism in all senses of the word."


Hamas leaders are "Palestinian leaders"?

Elliot Temple | Permalink | Message (1)

What About Israel?

Scott Ott writes:

Just a month after Colorado high school teacher Jay Bennish was caught on tape by a student as he ranted against President George Bush, capitalism and the United States in general

But the rant had a large anti-Israel component that was, in my opinion, even more unfair than the anti-US comments. It included that Israel was formed by the West as appeasement to widespread Jewish terrorism and assassination.

Elliot Temple | Permalink | Messages (0)