The best way for critics to earn enduring fame is to lavish their worst criticism on the best art of the day. Later generations will remember them as examples of sheer boneheadedness.
Posterity
July 10th, 2011Brazilian Jiu-Jitsu
June 24th, 2011I’ve been practicing Brazilian Jiu-Jitsu at UCLA for the last few months. I’m so new I don’t even have the funny pajamas. And I always hurt after class. Today is no exception. I feel like I was hit by a truck.
Last night we were taught the twister roll! That should have been exciting, but my knee popped the first time my partner rolled me and I think that put a damper on the rest of my evening. It doesn’t hurt, and I can walk on it just fine, so I have no idea what happened in there.
The class meets in Wooden Training Center at UCLA, in the blue room. The mat (floor padding) in that room is covered with some very rough vinyl, so whenever you rub your skin against it, some of that skin is going to stay on the mat. I have a chunk of skin missing out of my right foot. Scraped off by the mat. Stingy!
This summer there are about 50 people in the class, and the room can only handle about 20 people comfortably. That means for most of the class, we’re standing around watching others do drills, or we’re trying to practice techniques in a tiny area while keeping a constant eye out for neighboring groups.
We’re two classes into the first summer session now, and I don’t feel like I’ve improved at anything. I’m up against vastly more experienced partners than in my beginner class last Spring, so they’re illustrating my lack of experience and technique. Hopefully some of theirs will rub off on me over the next couple months.
regular expression to check for prime numbers
June 23rd, 2011http://www.noulakaz.net/weblog/2007/03/18/a-regular-expression-to-check-for-prime-numbers/
The way it works in checking if n is prime is to make n copies of some character. (The original article uses 1′s to confuse us with the \1 pattern match, so I’ll use “x” instead.) It first trivially checks for 0 or 1 of those (0 and 1 are not prime). Then it checks for (xx+?)\1+ which will iterate over successively minimal matches of two or more x’s, and then see if the remaining x’s can be matched by copies of that minimal match from the beginning. If it can be matched, the number was obviously not prime (we just divided it into some unknown number of equal segments). If it can’t be matched, it tries the next most minimal initial matching.
As an example, let’s take 15. We create the test pattern “xxxxxxxxxxxxxxx” and run it through its paces to see if it matches our composite pattern.
- Does it match “” or “x”? Nope.
- Does it match “xx”\1+? Hmm. “xx” “xx” “xx” “xx” “xx” “xx” “xx” “x” Nope!
- Does it match “xxx”\1+? “xxx” “xxx” “xxx” “xxx” “xxx” YES! NOT PRIME!
If we used 17 instead, we’d never find any substring that could be repeated to match the rest of the pattern, and our match would fail, meaning that 17 is prime!
Racing Bruce Lee
June 23rd, 2011I dreamed I was racing Bruce Lee up a hill. There were a bunch of stairs separated by open spaces. Kind of like a terraced parking lot, or the stairs going up the hill at Pierce College. Anyway, Bruce Lee was faster than me, but my long legs let me catch my stride better on the stairs, so I’d be able to catch him and start to pass him on the stairs. But every time I got ahead of him, he’d reach out and pull me back while he pushed himself forward against me! So I started grabbing his arm and pulling him back while I pulled myself forward. We were laughing and grappling with each other all the way up the hill. Neither one of us got tired.
has it been that long already?
June 14th, 2011Apparently I forgot how to post on here for a while. I’ve been condensing my thoughts into Facebook-style snippets, and that’s becoming unrewarding. I’m going to start posting here more regularly, I swear!
Are Humans Really Intelligent?
August 19th, 2010I was stumbling around the Internet when I came upon this article, with its provocative title. Aha! Maybe here is someone else who’s also figured out what I’ve figured out.
http://www.darshanchande.com/2010/01/are-humans-really-intelligent.html
Alas, it was not. However, it did get me thinking and wanting to respond in two different directions. First, what’s wrong with this author’s assumptions, reasoning, and conclusions? Second, why is this really a good question to start getting at some really big issues that concern me deeply?
I’ll begin by pointing out some of the author’s statements that made me cringe:
“One of the proven observations by the naturalists is that life on the planet is being governed by an immaculate mechanism of Nature according to which no species of organism would grow so much in population that it wipes out any other species and no species of organism would shrink so much in numbers that it gets wiped out by some other.” WTF?!? All my observations show that this is the opposite of true. Sometimes entire populations go extinct, and no it’s not always because of the actions of people. Sometimes the environment changes and the organisms can’t adapt fast enough to survive. Sometimes this causes a chain reaction in which many species become extinct and a whole biosphere dies off. Oh well.
“It is evident from the process of natural selection in evolution that Nature takes due care that every species of organisms on this planet is best equipped to survive in its environment.” Another statement that is the opposite of true. If I were to rephrase this to make it correspond more with my view of Truth, it would say: “It is evident from the process of natural selection in evolution that Nature takes due care that every species of organisms on this planet that is not equipped to survive in its environment will be extinguished.”
It’s hard to keep this process going, but let me end part one by examining the author’s claim as to the purpose of intelligence. “the main function of intelligence is to make life better; to bring ease to life.” In this, I heartily disagree. This claim trivializes the purpose of intelligence. The purpose of intelligence is to allow an organism (or group of organisms) to adapt to a changing environment faster than would be possible if the only means of adaptation were via genetic evolution.
Still, we may reasonably ask “Are Humans Really Intelligent?” as did the original author. Well, I guess that depends on what time scale you use to look at it. At the timescale of riddles, word problems, and toy puzzles, we seem to be the benchmark for intelligence. We’re able to learn to see patterns in the world, and use them to predict outcomes and consequences. The better we are at this process, the more intelligent we are able to behave.
But then I read comments on YouTube, and they were like little windows allowing me to peer in on sadly crippled minds. So depressing.
weirdest and most disturbing dream of my life
April 28th, 2010It started with a phone call from work, late on Sunday night. Phil couldn’t get a web application to work on his new computer. It kept trying to open the web page with a nonexistent application on his Mac. Turns out he had gotten into my source code and installed some abandoned programs that didn’t work and I’d just given up on them, and then tried to run them over the web using Windows ME on his Mac.
But the whole experience was bizarre. On the conference call with Phil and Joel I kept forgetting what I was talking about while I was talking, then I’d stop talking and nobody would talk for half a minute. I would then ask whether or not anyone else felt disjointed and phased out.
Then I met my old friend Travis, who was in the process of moving from just down the street. I met his neighbors, one girl and one guy, while we talked about his plans. Next thing I knew, I was out in front of his old house in my car and the police were there, arresting Travis. He tried climbing out the window but they stuffed him back into the car. Then they took him down the block to what I thought was a rehab clinic. Some lady told me to get the fuck away from the place or I would be next.
Then Travis’ neighbor approached me and told me that she’d been dropping hints like crazy that I shouldn’t get involved in the game. Travis presumably had been involved in the game and had gone astray. I asked wtf she was talking about, and she told me that if you were invited to play the game, and you were chosen, it was like ultimate happiness. But if you played and screwed things up, well, nothing would ever work out for you anymore and your life would end up a disaster in every way. If you chose not to play, you’d just stay oblivious to the whole thing going on all around you, but you wouldn’t ever get the big payoff or pay the big price.
But if you play, she said, things will definitely get weird. She showed me her snake hair and snake fingers. She told me that maybe I didn’t have a choice about playing, and she turned into a walrus with praying mantis wings and tentacles, one of which stung my hand. It hurt like a bitch! I sort of went into a daze.
Next thing I knew, I was transported to a garage and kind of abandoned/imprisoned. A car pulled in next to us, and it contained a man with what appeared to be some kind of pilot’s helmet and mask on his face, with two small children on his lap. The car was a 2-seater sports car type, and the method of transportation (with no child restraint) was definitely illegal. Then I saw the little alien in the passenger seat. He was tiny! Small like a leprechaun, and encased in some kind of a space suit like Darth Vader. He kept repeating a mechanical sounding “Greetings, Earth. We come in peace.” or something to that effect. The driver got out and handed the alien off to a guy on a racing bike, who had a special freezer compartment in the back of the fairing that looked specially built for aliens. The bike left in slow motion.
Then the guy who brought the alien started puttering around the garage, and I noticed he started changing shape. He was muttering about how it was a mystery how some creatures, who were supposedly slaves, could seem to have free will; while others, who were supposedly free, couldn’t will themselves out of a wet paper bag. Slowly I realized he was talking about demons and humans, and that the game was a sort of “deal with the devil” where you’d take on a demon as part of you, and you’d have to do what it told you to do. The “game” part was that the human had to devote his/her will to following the demonic instructions and nothing else.
Then I realized that the tentacle sting I’d received was just such a demonic injection, but my demon wasn’t talking to me yet. I was still dazed, just sitting in the garage. The guy was moving around behind me, and I realized that he was completely a demon.
Another demon came in and they talked about me; asked if I could hear them and understand. I didn’t respond. Then the first one asked me to tell me what I thought of some things. The words he wanted me to talk about were nonsense words as far as I could here, so I tried to repeat them (and failed pretty badly). He told me that he wanted me to play word association with him instead. “Heart attack” – um, call 911? “Fire” – stop, drop, roll, um, water or foam, call 911…? “Electrocution” – wtf?!? Uh, turn off power?
He pointed to a long cable leading to an installed motor and some machinery, where suddenly sparks and soon also smoke began to erupt from the casing. I wandered around ineffectually, looking for the breaker panel, until in apparent disgust he made the whole thing just disappear. I got the impression that my demonic possession had been tested and deemed a failure.
Then I woke up.
Fuck Off
April 1st, 2010I quit.
Monster Commute
March 25th, 2010My new house is 35 miles from UCLA. This takes me 45-90 minutes to drive, depending on traffic. I think I need to invest in some more audio books if I’m going to make this trip regularly.
Home Ownership (stress)
February 22nd, 2010We bought our new house!
I didn’t realize it would be such a huge hassle to move into the place, though. Because it isn’t just moving – it’s getting the place habitable and moving! I’m struggling with both.
I still haven’t been able to figure out which phone company offers local phone service, let alone Internet connectivity. Neither Verizon nor SBC (AT&T) show support on their websites.
After that, there’s gas (handled), electric, trash, and water to deal with.
Leaving here, there’s a whole big list of people and organizations that need my new address.
Before we move, we wanted to fix the place up, and upgrade a couple things. A tankless water heater, a new sliding glass door from the master bedroom to the back yard, some wood repair, some plumbing repair, and a new front door. All barely necessary but it’s probably easier to get them done now rather than after we’re moved in.
We went out Saturday and bought new washer/dryer and refrigerator from Best Buy. The guy at Home Depot sent us there to check their refrigerator selection, and we got the same washer/dryer for less money. We also got a dented refrigerator for cheap. :)
So things are going along. I’m stressed out of my normal morning routine for the duration of the move, and I’m eagerly looking forward to being able to relax in my new house!