Saturday, June 13, 2009

Matlab is making me angry!

I love Matlab, but I do not love the following behavior:
>> trx = struct('firstframe',mat2cell((1:200),1,200),'f2i',cell(1,200));
>> for i = 1:length(trx),
trx(i).f2i = @(f) f - trx(i).firstframe + 1;
end
>> tic; clear trx; toc;
Elapsed time is 129.714695 seconds.
Over two minutes? I am now going to be writing a function to go through all my code and replace calls to f2i with the function's definition. It's actually even worse with the real data, for no apparent reason:
>> load(trxfilename);
>> trx

trx =

1x196 struct array with fields:
x
y
theta
a
b
id
moviename
firstframe
arena
nframes
endframe
matname
x_mm
y_mm
a_mm
b_mm
pxpermm
fps

>> for i = 1:length(trx),
trx(i).f2i = @(f) f - trx(i).firstframe + 1;
end
>> tic; clear trx; toc;
Elapsed time is 626.516941 seconds.

Monday, June 8, 2009

things that are good in stuff


I am eating oatmeal (pictured above). It is Ralph's brand Maple and Brown Sugar instant oatmeal, with added brown sugar and dried cranberries. Here is my list of stuff that is good in oatmeal:
  • Sugar
  • Syrup
  • Raisins
  • Dried cranberries
  • Milk
That is all! I used to put chocolate chips in as a kid, but I have realized now that that is wrong. Also, I really like strawberries and cream oatmeal, so whatever those strawberry flakes are is also good in oatmeal. Peach flakes too. I contend that this is the least interesting, most useless list on the entire internet.

Here is another list, almost as boring. Stuff that is good in pancakes:
  • Chocolate chips
  • Bananas
  • Blueberries
  • Cranberries
So that this post isn't completely boring, here is something I have that I'm pretty sure any sane person would want:

It is a jiggly green lobster! The legs and claws and antennae are on springs and jiggle independently! And there is even glitter on the base! It is the greatest, most useless thing ever, and it only cost $2!

Saturday, June 6, 2009

TiltShift This!


Japanese Gardens at the Huntington, miniaturized.

The TiltShift Maker lets you upload photos, then applies some kind of blurring and color enhancing transform to the photos to make them look like they're of photos of miniature stuff.


Nice 1

St. Peter's Basilica

Nice 2

Nice 3

Bathtub V from Keith Loutit on Vimeo.


Friday, June 5, 2009

kids fail at stuff

i can't get enough of these videos of kids completely failing at various stuffs:







Thursday, June 4, 2009

May 35th

Who controls the past controls the future. Who controls the present controls the past.
Hey! It's the 20th anniversary of the Tiananmen Square massacre! I've been somewhat fascinated with Chinese politics lately, after reading Oracle Bones a couple months ago and 1984 more recently. Not fascinated enough to, say, be able to tell you the name of the Chinese president. Wait, that's a lie! I do know it! Hu Jintao! [I'm smart, not like everybody says, not dumb!] It's not really politics, but the censorship and totalitarianism thing that I find fascinating.

It is so not necessary for us -- we let apathy and stupidity and capitalistic concerns censor and totalitarize us. As an American busy studying the behaviors of fruit flies in a petri dish (that's my job...), I also don't concern myself with the outrages my government committed 20 years ago and continues to commit. Maybe that is just from the hopelessness and practicality of being an individual with a firm grasp of statistics, and the pessimism of some understanding of what motivates myself and this sea of people I swim among. Maybe I have already been brainwashed into only caring whether my "team" (Go Democrats!) is winning. As Vonnegut said, "Thanks to TV and for the convenience of TV, you can only be one of two kinds of human beings, either a liberal or a conservative". The only presidential candidate I have ever wanted to vote for (vs. wanting to vote against the other guy) still gives speeches full of the same platitudes that progress the status quo.

So, how different is the state of censorship in China? As Zhang Lijia writes on the China Beat blog, "There’s still a cage in China. But for many, my fellow marchers from Nanjing included, the cage has grown so big that they can’t feel its limitations." Life is more comfortable in China, and growing more comfortable by the minute, leaving many people there with nothing to feel they need to rise up against (or so is my understanding from what I've read). The restrictions on their liberty don't interfere with their daily happiness and hope and aspirations. And if the Chinese are prospering, who am I to say that the lying and hiding information and using fear to control dissidence is wrong? Well, I guess I am Kristin, and I feel that it is very wrong, a thousand times more wrong than George Bush Jr. et al. never admitting the many egregious mistakes made by their administration. And I find that many Chinese are not bothered by their government pretty crazy and also fascinating. Maybe that's the brainwashing again -- my team in this case would be America vs China.

Random reading list:

chocolate chip pancakes


Here is the wisest thought I have had in the past 24 hours:

Chocolate chip pancakes are like cookies that you are allowed to put syrup on.

Suck on that!

why are we drinking coffee?

I've taken to drinking coffee pretty much every day now. I guess I'm addicted. I don't feel like I need it to function, but it is like a treat I allow myself everyday. I'm not even sure how much I enjoy it sometimes, or if it is just an excuse to ingest some sugar and put off work for a half hour. Perhaps I am just in a funk and I can't seem to believe that much could be enjoyable ever. No, that can't be true, cuz I enjoyed this comic strip, the real excuse for this blog post: