Htam::Diary http://www.htam.org/diary/ Latest entries from Htam's Diary Mechanism en High Schoolers http://www.htam.org/diary/thread.php?t=2363 htam.org,2009-01-02:/diary/thread.php?t=2363 Fri, 02 Jan 2009 21:01:36 -0800 <A HREF="thread.php?t=2363#img"><IMG SRC="img/2363t.jpg" WIDTH="150" BORDER=0 ALT="image 2363"></A><BR>This Friday, Steph and Chris came to pick me up and we drove to Alhambra.&nbsp; Beryl invited high school group kids and the teachers to come for lunch and spend some time together.&nbsp; We played some games, including my Bible Scattergories, Bible Guesstures, and Rummikub!&nbsp; I was very "unlucky" and was unable to start playing after many many rounds.&nbsp; Finally I got enough pieces to start, and I went all out, putting down all but one piece.&nbsp; Man, I was so close to winning... and the next round, I helped Rachel win, so I lost.&nbsp; But I was able to play my last piece immediately when it was my turn, so it was a pretty close game.<BR><BR>Then we drove back and sang some <ABBR TITLE="Karaoke Revolution">KR</ABBR> at my place, then Steph and Chris went to Friday Fest.&nbsp; I decided to pass, for I have had too much social interactions for a while now.&nbsp; One other thing to note: Joshua lent me his guitar today.&nbsp; I doubt I would have time to practice, though.<BR><BR>[Photo: My pathetic hand; I just got that red 4 on the 11th draw, and finally I can "form" something, yet still without a high enough value to enter.] http://www.htam.org/diary/thread.php?t=2363 Math http://www.htam.org/diary/thread.php?t=2362 htam.org,2009-01-01:/diary/thread.php?t=2362 Thu, 01 Jan 2009 20:59:39 -0800 This Thursday, I decided to let math be the major activity of the day.&nbsp; During this break, I have worked on and off in bits and pieces each day for math.&nbsp; Today, no.&nbsp; I will work much longer on mathematics.&nbsp; Tomorrow I will not have much time for it; and in some sense, break ends tomorrow.&nbsp; Indeed, school starts Monday, and since I always have church-filled weekends, there is no real reason why I should consider break to end Sunday instead of Friday.&nbsp; So today is the last day I can work hard for break. http://www.htam.org/diary/thread.php?t=2362 Volleyball! http://www.htam.org/diary/thread.php?t=2361 htam.org,2008-12-31:/diary/thread.php?t=2361 Wed, 31 Dec 2008 20:21:33 -0800 This Wednesday, when I was trying to decide what to eat for lunch, Tammy called me and said I could come over for lunch.&nbsp; A bit later, Doris called to ask for a ride to Tammy's, so that's settled.&nbsp; Afterwards, ~20 people from my fellowship played volleyball between Tammy and my place.&nbsp; Jennifer and Steve needed to work for a bit.&nbsp; Steve suggested that I should stay for a bit and then drive him to the volleyball place.&nbsp; So I read Atiyah's Commutative Algebra for an hour or two, while Steve and Jennifer worked.&nbsp; Then I drove them to the park next to my place.&nbsp; I decided to come out for a bit too.&nbsp; Later when they were lacking one person for the third team, I decided to join in and play.&nbsp; I have never really played volleyball before, so I am not sure what to do.&nbsp; Of course, I know the general idea and such, so I fit right in.&nbsp; I played 4 games, and we actually won twice (due to my teammates, of course).&nbsp; I actually hit a few balls :-)&nbsp; It was quite enjoyable, maybe I will join with them sometimes on Sundays (they play every Sunday after church). http://www.htam.org/diary/thread.php?t=2361 Curry http://www.htam.org/diary/thread.php?t=2359 htam.org,2008-12-30:/diary/thread.php?t=2359 Tue, 30 Dec 2008 20:59:22 -0800 <A HREF="thread.php?t=2359#img"><IMG SRC="img/2359t.jpg" WIDTH="150" BORDER=0 ALT="image 2359"></A><BR>This Tuesday, I cooked curry!&nbsp; Tammy showed me some ingredients and sauce packs at 99 Ranch.&nbsp; Since I am afraid of the potatoes budding, I decided to cook curry quick and not wait.&nbsp; It tasted really good, except now I have way too much food.&nbsp; I know it looks like what I often eat, but I used to just buy prepackaged curry, instead of cutting my own potatoes and carrots.<BR><BR>I was a bit bored so I counted the windows I have opened on my 12 virtual desktops.&nbsp; I have 1 of each of the following: <TT>Firefox</TT>, <TT>Thunderbird</TT>, <TT>xpdf</TT>, <TT>xdvi</TT>, 2 <TT>rxvt</TT> (console) running a text clock I wrote and <TT>pork</TT>, my <ABBR TITLE="AOL Instant Messenger">AIM</ABBR> client that I hacked.&nbsp; Then I have 31 <TT>konsole</TT> (console), with them running 2 <TT>top</TT>, 1 <TT>latex.sh</TT> (my homemade latex compilation script), 21 <TT>vim</TT>, and 21 sitting in the shells in various directories, often with meaning.&nbsp; One may say that 2+1+21+21 is bigger than 31.&nbsp; That is true.&nbsp; A <TT>konsole</TT> can have many tabs.<BR><BR>I posted photos to 13 past diary entries, dating back to 2008-12-08.&nbsp; I suggest looking at them by clicking on the "PHOTO" category at the top navigation bar.<BR><BR>[Photo: Food; curry for the first time!] http://www.htam.org/diary/thread.php?t=2359 Wing and Cameron http://www.htam.org/diary/thread.php?t=2358 htam.org,2008-12-29:/diary/thread.php?t=2358 Mon, 29 Dec 2008 21:23:31 -0800 <A HREF="thread.php?t=2358#img"><IMG SRC="img/2358t.jpg" WIDTH="150" BORDER=0 ALT="image 2358"></A><BR>This Monday, I drove to Arcadia to <A HREF="http://donut.caltech.edu/directory/?state=search&amp;nametype=3&amp;name=Wing Ning Yung">Wing Ning Yung</A>'s house.&nbsp; Wing and <A HREF="http://donut.caltech.edu/directory/?state=search&amp;nametype=3&amp;name=Cameron Taketa">Cameron Taketa</A> came back from Hawaii for Christmas, and they invited some of us to come.&nbsp; In the morning, <A HREF="http://donut.caltech.edu/directory/?state=search&amp;nametype=3&amp;name=Theodore Yu">Theodore Yu</A> drove <A HREF="http://donut.caltech.edu/directory/?state=search&amp;nametype=3&amp;name=Stephanie Chan">Stephanie Chan</A> up from San Diego and picked up <A HREF="http://donut.caltech.edu/directory/?state=search&amp;nametype=3&amp;name=Scott Hsieh">Scott Hsieh</A> on the way.&nbsp; We met at around 11 and talked for a bit.&nbsp; Then we went out to eat lunch.&nbsp; We were originally going to go to the seafood dim sum place next to 99 Ranch, but when we drove by, it was quite crowded, so we drove to Hop Li instead.&nbsp; I have actually never been to Hop Li for dim sum--when we went with <ABBR TITLE="Asian Baptist Student Koinonia">ABSK</ABBR>/<ABBR TITLE="Life Christian Fellowship">LCF</ABBR>, it was usually at night, and for Ray's graduation, it was three tables banquet style.&nbsp; It was really delicious, I have a different view of Hop Li now.&nbsp; Oh, and I have a new perspective on Stephanie too, wow, she can order and eat!&nbsp; After lunch, we went back to Wing's place, and we played a round of Bang!, and then played many rounds of Rummikub.&nbsp; We teamed up three teams, and I was with Stephanie.&nbsp; After a fierce battle, Stephanie and I won the first round.&nbsp; Subsequently, Wing and Cameron won two rounds and then Teddy and Scott one the last round.&nbsp; It was really fun.<BR><BR>[Photo: Group photo standing with the teams.&nbsp; Each team was triumphant at least once.] http://www.htam.org/diary/thread.php?t=2358 Phone Done http://www.htam.org/diary/thread.php?t=2357 htam.org,2008-12-28:/diary/thread.php?t=2357 Sun, 28 Dec 2008 21:21:47 -0800 This Sunday, I went after church to Old Town Pasadena.&nbsp; The closest Sprint store from UCLA and <ABBR TITLE="California Institute of Technology">Caltech</ABBR> happens to be there.&nbsp; So despite a normal "home zip code search" would not reveal this, I know that I go to Pasadena enough to search for stores there as well.&nbsp; I asked Sprint to transfer my contacts from the old phone to the new phone.&nbsp; It took a while for them to get my old phone to work with their equipment since it is so old.&nbsp; But eventually they got it all transferred.&nbsp; Yay, now I have contact information of so-many-people again.&nbsp; Some of them I would probably never call again, why do I keep it?&nbsp; Well, does not hurt too much, right?&nbsp; The most frequent callers I have on speed dial anyways.&nbsp; Now my phone is finally done.&nbsp; Good that it got done before school started again.&nbsp; I would not have time to deal with this. http://www.htam.org/diary/thread.php?t=2357 99 Ranch http://www.htam.org/diary/thread.php?t=2355 htam.org,2008-12-27:/diary/thread.php?t=2355 Sat, 27 Dec 2008 20:41:37 -0800 <A HREF="thread.php?t=2355#img"><IMG SRC="img/2355t.jpg" WIDTH="150" BORDER=0 ALT="image 2355"></A><BR>This Saturday, we had Bible study as usual.&nbsp; I drove myself today, no Alex still.&nbsp; Afterwards, we went to lunch.&nbsp; I ate a lot.&nbsp; Then I went to 99 Ranch in Arcadia with Tammy.&nbsp; She showed me certain things, including how to properly buy meat.&nbsp; She also showed me some ingredients for making my own curry.&nbsp; It was quite enjoyable shopping with her.&nbsp; (Steve was napping in the car.)&nbsp; I bought quite a bit of food today.&nbsp; Of course, the one that makes me the happiest is the bakery buns.<BR><BR>[Photo: The same dish I make every other day, but this time with lean pork grounded on the spot.&nbsp; I did not add enough oil to compensate.] http://www.htam.org/diary/thread.php?t=2355 Movies http://www.htam.org/diary/thread.php?t=2353 htam.org,2008-12-26:/diary/thread.php?t=2353 Fri, 26 Dec 2008 21:17:11 -0800 <A HREF="thread.php?t=2353#img"><IMG SRC="img/2353t.jpg" WIDTH="150" BORDER=0 ALT="image 2353"></A><BR>This Friday, I spent some time compiling a list of movies I want to watch.&nbsp; I went to Steve and Tammy's for dinner, and Steve gave me more suggestions, too.&nbsp; I am also asking <A HREF="http://donut.caltech.edu/directory/?state=search&amp;nametype=3&amp;name=Bing Huo">Bing Huo</A> for recommendations based on my preferences.&nbsp; In addition, Alex may want to watch some movies with me, and possibly <A HREF="http://donut.caltech.edu/directory/?state=search&amp;nametype=3&amp;name=David Barmore">David Barmore</A> too.&nbsp; Furthermore, Barmore has a lot of (possibly eccentric) opinions about what kind of movies are good, too, so I have many sources of information to compile together to form a master list of the movies I want to watch.&nbsp; This is quite a non-trivial task. :-D&nbsp; Why do I have to approach everything so academically?&nbsp; Well, I do things mathematically, and often combinatorially.&nbsp; This is who I am.&nbsp; Even my mathematical tendencies shine through in leisure activities that have seemingly nothing to do with math.&nbsp; Finally, I came up with a rating scheme for movies.&nbsp; It is quite mathematical in its description, I am afraid some people may not get even the statement of some of the categories (one of them involved open neighborhoods, which could be translated into sequences in some suitable movie-topology).&nbsp; Yay math!<BR><BR>[Photo: I think sunsets are beautiful.] http://www.htam.org/diary/thread.php?t=2353 Phone Navigation http://www.htam.org/diary/thread.php?t=2352 htam.org,2008-12-25:/diary/thread.php?t=2352 Thu, 25 Dec 2008 21:00:40 -0800 This Thursday, I tried out the GPS navigation feature on my new phone.&nbsp; I was originally going to call Sprint like the past two days, but then they are on holiday break so I decided to try to figure it out myself.&nbsp; After a lot of effort, I finally figured out how it <B>may</B> work.&nbsp; But I do not get GPS signal in my room, so I decided to go out and take a walk.&nbsp; Still no signal in the immediate vicinity.&nbsp; I could not take no for an answer, nor was I able to wait longer, so I drove to UCLA.&nbsp; Okay, I also had some errands that take me there, but it was mostly just to test out my navigation system.&nbsp; Dan and Jennifer invited a few of us over for dinner, so I was able to actually use my GPS navigation on the road.&nbsp; It worked out quite well.&nbsp; I am beginning to like my new phone, finally. http://www.htam.org/diary/thread.php?t=2352 rsync http://www.htam.org/diary/thread.php?t=2351 htam.org,2008-12-24:/diary/thread.php?t=2351 Wed, 24 Dec 2008 20:42:21 -0800 This Wednesday, I talked to Sprint for an hour in the morning again.&nbsp; Now I have web access.&nbsp; Apparently the rates are so high without a plan that basically even using Internet for a day or two would pay off the data plan.&nbsp; So I bought the data pack.&nbsp; It was suggested that I should switch to a plan with data included, but switching has an overhead in cost, so Sprint will call me back next month right before the billing period to set-up a no-fee switch.<BR><BR>For the rest of the day, I wrote a utility called <TT>hsync</TT> that mimics <TT>rsync -vprt --size-only</TT>.&nbsp; Well, I did not know that option existed on <TT>rsync</TT> (so dumb), so I wrote my own.&nbsp; I did all this because when syncing a <TT>ext3</TT> filesystem with a <TT>vfat</TT> filesystem, due to the imprecise modification time on <TT>vfat</TT>, some of the files will always be re-transmitted.&nbsp; This is really bad, so I am ignoring the modification time (incidentally, to ignore time we use <TT>--size-only</TT>, and not <TT>--ignore-times</TT>).&nbsp; After coding all this, I then realized the proper way to sync <TT>ext3</TT> with <TT>vfat</TT> is to use <TT>--modify-window=1</TT>, and it is actually documented on <TT>man rsync</TT>.&nbsp; Way to go... not reading the <TT>man</TT> page carefully.&nbsp; Not all is lost, however, since now I have a working code for basically traversing a directory recursively on a file system and performing (arbitrary) action to each file, dealing with links the way I want, and ignoring special files such as sockets, fifo, character and block devices. http://www.htam.org/diary/thread.php?t=2351