Thursday, February 26, 2009
Notes on the previous post
Wednesday, February 25, 2009
Burnout
I would like to now make two observations that I did not realize at the time: 1) one does not have to be a child prodigy to be a theorist and 2) not being a theorist does not mean one cannot have a deep understanding and appreciation of theory. Had I known these things, I would have probably worked harder to make myself smarter at theory all these years; I would be better at certain parts of life had I done this. This supports my hypothesis that being exposed to too much too early may have negative (but not irreversibly harmful) impact on overall life productivity.
I am going to make two somewhat correlated claims:
- It is not sustainable for most people to sustain a high level of productivity for a long period of time.
- Trying to do too much too soon in life can have negative consequences on overall life productivity.
- Don't worry if you were/are not precocious. In fact, you might just be a late bloomer.
- Don't be too hard on yourself for not being as intense as people around you.
- Don't worry if you are burned out and other people are not, especially if you have been working intensely. It doesn't mean your life is over; if you stop being hard on yourself it will probably go away.
My life experiences support these hypotheses. Because I did a lot in high school, I was tired both in general terms and academically by the time I went to college. In high school, I spent my summers doing programs at Carnegie Mellon University that involved a fair amount of college-level material which required me to stretch my mind and feel like I didn't know very much. I was also always doing activities: after school I had sports, then piano, then Chinese; finally around 8 or 9 PM each day I would begin a few hours of homework. Even if I finished my homework early enough to get a good night's sleep, since I was a teenage whose existence needed to be verified in some significant way every day I would waste valuable sleep time covertly chatting on AIM, reading a novel, or writing bad poetry before I finally defeated my insomnia and shut down for the day. In high school I was always very excited about the day: I hated sleep, usually slept little, and found it nearly impossible to remain asleep for more than 7 hours a night. This was not the most sustainable of lifestyles.
After a summer of four hours of sleep a night at Governor's school, then a senior year busy with college applications, AP courses, college visits, and end-of-childhood melodrama, then a summer of 3 jobs and more adolescent gerascophobic melodrama, I showed up to college completely worn out and overstimulated. While everyone else was excited to pull weeks of all-nighters alternating between discussing Nietzsche, drinking beer, and discussing Nietzsche while drinking beer, I was trying to figuring out how to maintain a sane sleep schedule. Freshman year of college I slept from 11-7 almost every day**, taking a moderately ambitious course load and keeping my number of extracurricular activities to at most one. I picked up the intensity as the year went on, and by the middle of sophomore year I entered into a slump: I didn't know what I wanted to do in life; all I wanted was to have time to read, sleep, and run. I eventually figured things out and got wound up again enough to take on a heavy load of coursework, teaching, and Robocup, planning to continue doing as much as I can until I got a neck injury from my randomized algorithms take-home final*. The injury slowed me down a fair bit, since I couldn't sit at the computer or look down at my desk for more than an hour or so because I would get muscle spasms. Thus in college I had gone from burned out to full intensity to burned out again.
Though I am excited about grad school and my late blooming, I am taking it easier than usual and enjoying life as I go. Because of my neck injury and because of my experience with too many weeks of little sleep for reasons that seemed good at the time, I was not one of the kids who showed up to grad school excited about 36-hour coding marathons and the weeks between paper deadlines when mortality is forgotten and invincibility is assumed in the name of increasing the paper count. For a while I wondered if I should feel guilty that, instead of hanging around lab, I spent my weekends laying around, reading random non-fiction and novels, blogging, and thinking about the world. If you've been reading my blog, you might have noticed that I have collected enough reasons (your brain needs down time; stress is harmful to your creativity) to justify not feeling guilty. I hope taking it slowly in the beginning will decreases my chances of burning out. And if not, I can at least look back at this time and say that I read the books that I wanted to read and did the things I wanted to do. One of the best things that has come out of my neck injury is that practioners of the various alternative healing methods I have sought out (such as yoga) have taught me to be less hard on myself. And until I achieve something I can always take comfort in the knowledge that I am a late bloomer. :)
I am going to end this post here because I suddenly find myself despondent and unable to continue, but I hope you got the point****. ;)
* Chandra, Furst, and Lipton? Sorry; couldn't find a good source.
** Except once a week I would pull an almost-all-nighter for my math homework because all of my homework was due on the same day of the week--maybe this is why I think I am bad at math. :/
*** Apparently my monitor was too much to the right and this was irritating my neck joints. The days of staring at my computer was the last straw. This injury scared me about working too hard for a while because I am still healing over a year later.
**** Kidding; I have to go to bed.
An interesting exercise in procrastination
Instructions:
Look at the list and mark those you have read.
* = read it
** = read it, remember it.
$$ = own it, haven't read yet.
1 Pride and Prejudice - Jane Austen **
2 The Lord of the Rings - JRR Tolkien
3 Jane Eyre - Charlotte Bronte **
4 Harry Potter series - JK Rowling
5 To Kill a Mockingbird - Harper Lee **
6 The Bible ** (the old testament)
7 Wuthering Heights - Emily Bronte **
8 Nineteen Eighty Four - George Orwell **
9 His Dark Materials - Philip Pullman
10 Great Expectations - Charles Dickens $$
11 Little Women - Louisa M Alcott **
12 Tess of the D’Urbervilles - Thomas Hardy **
13 Catch 22 - Joseph Heller **
14 Complete Works of Shakespeare $$
15 Rebecca - Daphne Du Maurier **
16 The Hobbit - JRR Tolkien
17 Birdsong - Sebastian Faulk
18 Catcher in the Rye - JD Salinger **
19 The Time Traveller’s Wife - Audrey Niffenegger
20 Middlemarch - George Eliot
21 Gone With The Wind - Margaret Mitchell **
22 The Great Gatsby - F Scott Fitzgerald **
23 Bleak House - Charles Dickens
24 War and Peace - Leo Tolstoy
25 The Hitch Hiker’s Guide to the Galaxy - Douglas Adams **
26 Brideshead Revisited - Evelyn Waugh
27 Crime and Punishment - Fyodor Dostoyevsky **
28 Grapes of Wrath - John Steinbeck
29 Alice in Wonderland - Lewis Carroll $$
30 The Wind in the Willows - Kenneth Grahame
31 Anna Karenina - Leo Tolstoy **
32 David Copperfield - Charles Dickens
33 Chronicles of Narnia - CS Lewis *
34 Emma - Jane Austen
35 Persuasion - Jane Austen
36 The Lion, The Witch and The Wardrobe - CS Lewis *
37 The Kite Runner - Khaled Hosseini
38 Captain Corelli’s Mandolin - Louis De Bernieres
39 Memoirs of a Geisha - Arthur Golden
40 Winnie the Pooh - AA Milne *
41 Animal Farm - George Orwell
42 The Da Vinci Code - Dan Brown
43 One Hundred Years of Solitude - Gabriel Garcia Marquez
44 A Prayer for Owen Meaney - John Irving **
45 The Woman in White - Wilkie Collins
46 Anne of Green Gables - LM Montgomery **
48 The Handmaid’s Tale - Margaret Atwood
49 Lord of the Flies - William Golding
50 Atonement - Ian McEwan
51 Life of Pi - Yann Martel
52 Dune - Frank Herbert
53 Cold Comfort Farm - Stella Gibbons
54 Sense and Sensibility - Jane Austen
55 A Suitable Boy - Vikram Seth
56 The Shadow of the Wind - Carlos Ruiz Zafon
57 A Tale Of Two Cities - Charles Dickens
58 Brave New World - Aldous Huxley **
59 The Curious Incident of the Dog in the Night-time - Mark Haddon
60 Love In The Time Of Cholera - Gabriel Garcia Marquez
61 Of Mice and Men - John Steinbeck
62 Lolita - Vladimir Nabokov **
63 The Secret History - Donna Tartt
64 The Lovely Bones - Alice Sebold
65 Count of Monte Cristo - Alexandre Dumas
66 On The Road - Jack Kerouac $$
67 Jude the Obscure - Thomas Hardy
68 Bridget Jones’s Diary - Helen Fielding
69 Midnight’s Children - Salman Rushdie
70 Moby Dick - Herman Melville
71 Oliver Twist - Charles Dickens
72 Dracula - Bram Stoker
73 The Secret Garden - Frances Hodgson Burnett **
74 Notes From A Small Island - Bill Bryson
75 Ulysses - James Joyce
76 The Inferno - Dante $$
77 Swallows and Amazons - Arthur Ransome
78 Germinal - Emile Zola
79 Vanity Fair - William Makepeace Thackeray
80 Possession - AS Byatt
81 A Christmas Carol - Charles Dickens
82 Cloud Atlas - David Mitchell
83 The Color Purple - Alice Walker
84 The Remains of the Day - Kazuo Ishiguro
85 Madame Bovary - Gustave Flaubert **
86 A Fine Balance - Rohinton Mistry
87 Charlotte’s Web - EB White **
88 The Five People You Meet In Heaven - Mitch Albom
89 Adventures of Sherlock Holmes - Sir Arthur Conan Doyle $$
90 The Faraway Tree Collection - Enid Blyton
91 Heart of Darkness - Joseph Conrad **
92 The Little Prince - Antoine De Saint-Exupery **
93 The Wasp Factory - Iain Banks
94 Watership Down - Richard Adams
95 A Confederacy of Dunces - John Kennedy Toole
96 A Town Like Alice - Nevil Shute
97 The Three Musketeers - Alexandre Dumas *
98 Hamlet - William Shakespeare **
99 Charlie and the Chocolate Factory - Roald Dahl **
100 Les Miserables - Victor Hugo
Tuesday, February 24, 2009
I am the funny grammar friend
- An article on how AT&T apparently forces its employees to absurdly dangle gratuitous prepositions: “With whom do I have the pleasure of speaking with?” I have been known to have visceral reactions to gratuitous preposition dangling.
- An article on how President Obama should get his pronouns right, particularly in the case of "I" vs. "me" (e.g. "Michelle and me"). The article talks about the history of the grammatical correctness/incorrectness of this construct, why people might commit this grammatical error, and other grammatical errors Obama makes. There is a blog post by an almost-3-years-ago Jean about how even when labelling Facebook pictures, people should use "I" and "me" correctly.
Beware of stress!
Since I am prone to unnecessary stress, my biggest take-away from this otherwise optimistic article was OMG, prolonged periods of stress causes your medial prefrontal cortex to shrink*. The medial prefrontal cortex is associated with self-referential activity and has high levels of activity when you are not actively thinking; the prefrontal cortex is associated with "executive decisions" of good vs. bad. In conclusion, being stressed out makes you less creative and will probably ruin your career, so you should probably stress about that. ;)
* It can grow back if you are not under constant stress.
Thursday, February 19, 2009
Is verification here to stay?
Something interesting to think about is the proofs as social processes paper which supposedly killed verification for a bunch of years. This paper says that because proofs are not meant to be completely formal and only meant to be discussed among mathematicians, machine checked proofs are not going to do anything for us. While de Millo makes a good point that verification still doesn't tell us about some absolute notion of correctness, his tone is very extreme and there seem to be many red herrings. (For instance, he uses Rabin's pseudoprimes as an analogy for the concept that we should regard mathematical proofs as "probably correct.") Also, one of the main points seem to be that verification will not go anywhere because the proofs are too long and ugly he doesn't address the counterargument that maybe mathematicians have been doing it the other way because machine proof techniques were not good enough.
This paper generated some interesting discussion at the last Software Design Group tea, which I sometimes crash. There were extremes of opinion: while some people thought the paper was well-crafted and prescient, there were others who were so angry with the argument and the manner in which it was made they were ready to physically defend their principles. At this tea I learned that the de Millo paper was targetting the views of those like Dijkstra, who believed in a notion of ultimate correctness. Dijkstra wrote a colorful rebuttal comparing the de Millo paper to a "political pamphlet from the Middle Ages"--also a good read. ;)
Some notes on picking grad schools/advisors
My (undergrad) advisor said that when he had first gone to Carnegie Mellon University, he thought he was going to work with a professor who ended up going to Brown. Then he wanted to work with another professor, who had too many students at the time. He worked for a while with a professor who did not ultimately end up advising his Ph.D. thesis and did not end up with his final advisor until late in his graduate career. Despite all this advisor drama, he has been doing pretty well.
My experience so far also supports these claims. When I came to MIT I was supposed to be co-advised (at least, according to the sheet), but one of the co-advisors announced the week before fall semester that he was transferring. This was quite surprising, as he had recently gotten tenure. I have since been working with three professors, only one of whom I had thought I would work with when I first arrived. The first is one of my initial co-advisors; the second arrived at MIT as a new assistant professor 2 months after I arrived, and the third emerged during one of my group meetings and proclaimed he was joining my project. You never know what might happen.
The conclusion is not to get too attached to the idea that you'll be working with any specific person for the next n years of your life until you've worked n years with them already, and in that case you'll need to change the "next" to a "past."
I am also including some other good advice I got last year, combined with some advice I developed on my own. ;)
Some things to consider when picking advisors:
- How hands-on are they?
- How hands-on are they technically vs. big-picture? How much technical skill will your advisor imbue you with? You want an advisor who will give you a bigger picture than you have, but you don't want one who won't give any technical feedback.
- How do they deal with you picking your own project? Is this something you want?
- How many students have they produced who you want to be like? (How many students of theirs have gone on to become academic stars? Industrial stars? Why might this be?)
- How awesome are the advisor's current students? These should be people you want to talk with and learn from.
- How much funding do they have? Are their students comfortable with the level of support, or do they often find themselves needing to TA?
- How much does your advisor collaborate with other professors? Why do they or don't they, and how do you feel about this?
- How varied are the projects that your advisor's students work on?
- How much does your advisor care about your future, and how much does s/he care about advancing his/her own career?
- How much does the advisor want to be your advisor? This can make a big difference! Trying to be advised by a professor who has been around for a very long time might not work out that well since producing top-notch students probably isn't as much a big life goal as it is for someone else.
- Are the students there happy?
- Do you feel like you can learn from the students there? Can they teach you what you want to learn? (Shocking revelation: you will be spending most of your time with other students rather than with your advisor.)
- What are the course requirements like? Since course reqs range from 0 to 12, this can make quite a difference if all you want to do is research!! (MIT only has 4; that is why you should come here.)
- Do you like the energy of the place? (MIT has much more energy than many places!)
- Is there other stuff besides PL (free free to insert subfield of choice, but you don't have to--I'd understand), and do you care?
- Are you going to want to live in that place for up to 8 years?
- What is the quality of the undergrads? Do you care about this?
--
This is one of my "applying to grad school" blog posts.
- Deciding to Apply
- Standardized Tests
- Fellowships
- Applications
- School Visits
- Some notes on picking grad schools/advisors
- FAQ: Applying to Graduate School for Computer Science
Saturday, February 07, 2009
Petition to save PA governor's schools
Thursday, February 05, 2009
PA cuts funding for Governor's Schools
A 2003 alumna of the Pennsylvania Governor's School for the Sciences (PGSS), I am sad to see this happen. During the 12 weeks I spent at PGSS I had more fun per day than I have in any other time of my life: I had more stimulating conversation, socialized more, laughed more, and slept less than I ever had before and have since. Because there were so many interesting things to learn during the day and so much interesting conversation at night, I developed the skill to fall asleep anywhere and appreciation for leading balanced life. Governor's School was totally wild: after spending the evening doing organic chemistry or something else fun, we would hang out in the lounge all night in our single-sex hallways. Once we sent a bucket with a note saying "hi" down to the boys' lounge via the window. Once I had to have an early curfew because I showed up 2 minutes late to a biology tutorial. ;) In all seriousness, however, when I think about the most talented and fun group of people I know, I still think back to the govies of '03. My experience at PGSS shaped my goals in college and set the stage for the rest of my academic career.
A fellow govie reminded me the other day I have been delinquent in sending mail to Governor Rendell and alerting the media about this tragedy, but the truth is I don't know that cutting these funds is particularly unfair. I am not taking for granted the fact that the state paid for me to have a summer of mind-bending exposure to relativity theory and medical ethics, and maybe I was somewhat spoiled because I grew up across the street from Carnegie Mellon University and did programs there every summer, but I do think I am being fair when I say that the kids who went to governor's school are not the kids who need funding the most badly in Pennsylvania. These are all bright kids who are definitely going to college, and definitely going to good schools. The sort of intellectual stimulation that the governor's schools seem to provide is similar to the sort of stimulation a good university should provide. If the state must cut funds in education somewhere, I would prefer they cut funds here rather than for early education, after-school care for underprivileged children, or education in middle school sciences, where funding seems lacking and where they could potentially make a bigger differences in the lives of many Pennsylvania children.
Especially in the context of the recession, I do not know that the Governor's Schools are being particularly wronged. Though $3.2 million is nothing compared to state infrastructure costs, I expect that there are programs of equivalent value (to the state--not to me, of course!) that are getting cut. I do not think it is the case that Governor Rendell is devaluing education: he is boosting state funds for public education by $300 million and enstating the Tuition Relief Act, which provides tuition assistance for families that make less than $100,000 a year. I am glad to see that the state is paying attention to these sorts of things financially.
That said, it would be a tragedy to see the Governor's Schools die. I had some questions I hoped someone could answer:
- Why was the funding all-or-nothing? What were the debates on this topic like? Why can't the state subsidize a mostly private program of this nature?
- Could some of the schools be privately funded or require tuition (with financial assistance)? In high school I also attended Andrew's Leap, which had been privately funded until the year before I went. Since 2001 people have had to pay a few thousand in tuition to attend for the summer, but the program still seems to be going strong.
- How much money would we need to raise from private donors to keep at least PGSS going? Would someone run it?
Note: Despite my personal conflicts on this subject I really do appreciate the other alumni who did write letters to the program directors, the governor, and the media about the importance of the governor's schools.
* I learned on the PA budget website that $537 million for Rebuild PA projects that includes $200 million for bridge repairs, $294.5 million for water, sewer, flood control and dam projectsm, $42.5 million for rail and aviation improvement projects, and $1.9 billion in base Motor License Funds for bridge and highway repairs.
Tuesday, February 03, 2009
Grand challenges in programming languages
Simon Peyton Jones said to find a good way to capture effects; Xavier Leroy said continue being awesome with verification; Kathryn McKinley said to keep working on parallelism; Martin Rinard said to question what levels of correctness we want from programs; Greg Morrisett said to think about how to redesign hardware, think about how to program colonies of robots, and think about how to unify PL to educate people.
For fear of beheading I will provide my opinion off the record. :)
* Did you know one summer at Google my entire job was to [accidentally the whole thing]?
Cheesecake and music: the products of sexual selection?
Miller's book provides a definition of sexual selection, proposes a theory of sexual selection through male competition and female choice, and provides many interesting evolutionary anecdotes. Though the introduction of the book is somewhat sensationalist, suggesting that this theory runs counter to everyone we've ever thought about, this book provides quite an interesting way to look at various traits as perpetuated because they are fitness markers rather than actually contributing to the fitness of an organism. A recurring example is that of the peacock's tail, which is costly to develop and maintain but could exist because a large, symmetric, and beautiful tail indicates that the peacock has been able to expend this extra energy despite environmental challenges. The book also talks about sexual differences and how they might arise: for instance, the more polygynous and organism is, the greater differences there are between male size and female size (because when it is winner-take-all, only the strongest males reproduce). Miller explains that the model of male competition and female choice exists because female eggs are the limiting and required resource for reproduction. As a result, we find much of the sexual ornamentation across organisms in the males. One reason Miller proposes for why there is not a great difference between the human brain in males and females is that the brain evolved not only through male competition but through female choice: in order to be sufficiently discerning, the female brain had to be able to distinguish a highly fit intellect from one that is less so.
I am not sure if I believe everything Miller says, but I recommend reading this book. The first reason I decided to read it is because I am always interested in theories about sexual differences between males and females, but the second reason is because the book got a positive endorsement from Richard Dawkins and generally good reviews about being "brilliantly written, "engaging," and that kind of thing. Even if you don't learn as much as I did, it is an intereseting and enjoyable read.
Monday, January 26, 2009
More Ph.D. applications; fewer Ph.D. spots
I wonder what the specifics are for computer science, where Ph.D. programs tend to be long and many people coming out of doctorate programs go into industry.
Sunday, January 18, 2009
Some notes on cooking
In a similar vein, the bowls you choose determine how you eat. I like serving the food in larger bowls and plates and having small (some would say tiny) bowls and plates for each person: this helps me eat slowly and eat a reasonable amount of food while feeling like I've had a feast.
Of course, the cooking matters a lot, too. :) I have found it important to be attentive to detail (wash vegetables thoroughly; throw out parts of things that are less fresh; be careful with knifework) and to err on the side of too few ingredients rather than too many when uncertain about a recipe.
Cooking with vegetables
Some useful ingredients to have around the kitchen:
- garlic (I keep both garlic cloves and minced garlic; I prefer using cloves but it is faster to just used the stuff in the jar)
- hot sauces--I have chilli sauce (which is somewhat sweet), chilli sauce with black bean, and various other sauces
- various peppers: we keep around various peppercorns, whole chillis (which we sometimes grind using a coffee grinder), and ground chillis
- vinegar and rice vinegar
- scallions (fresh--you cut them up with scissors when you need them)
- packages of seitan/tofu for when you run out of fresh ingredients
Recipe sketches:
- Stir-fried greens. You can do this with bok choy, yu choy, spinach, brocolli rabe, watercress, and more. Peel apart vegetable leaves and wash thoroughly. If the leaves are large, chop them as necessary. Put oil into a shallow pan and stir fry on high heat until done. Hold off on salting until almost done; this optimizes the texture. For flavor, add some chopped garlic to the oil before adding the vegetables. For fun, I've also tried adding things like ground mustard, cayenne pepper, and anchovies. The only thing I really recommend against is adding acidic things (lemon, vinegar, etc.) because this wilts the vegetables and turns them yellow.
- Pickled radish. Prepare a sauce by putting in some amount of rice vinegar, soy sauce, and hot sauces into a bowl such that the total amount of resulting sauce is at least 1 inch deep. The vinegar and hot sauce should dominate the taste. Cut radishes into small pieces and brine in the sauce. Take them out when you've achieved a desirable flavor and serve.
- Stir-fried seitan. Prepare a sauce by adding a tablespoon of sweet potato or potato starch, 1/4 cup water, a dash of soy sauce, and optional hot sauce into a pan and bringing the sauce to a boil on low to medium heat. Cut scallions into pieces that are 2-3 inches long and cut seitan into pieces about 1/4 inch thick. Stir-fry seitan and scallions together for 2-3 minutes on medium high heat; add sauce on top when done.
- Cucumber salad. Soften cucumbers by beating them with the side of a knife. Quarter cucumbes and cut into small pieces. Prepare a sauce of vinegar, soy sauce, and hot sauces. (Make enough sauce so that the bottom layer of cucumbers can be suitable coated by sitting in the sauce.) Put sauce onto cucumbers, mix, and serve.
- Bonito spinach. Stir-fry spinach, let cool. Prepare a sauce with soy sauce, hot sauce, and bonito flakes. (If you use bonito flakes, use enough to soak up the sauce.) Once spinach has cooled sufficiently, pour sauce over spinach. (The spinach absorbs sauce surprisingly well. Don't over-flavor it!)
- Brats and onions. You might think German cuisine is out-of-bounds, but you can almost have your cake and eat it too! Cut vegetarian brats (teehee) into 2-inch pieces and cut onions into rings. Heat a pan on medium heat and add plenty of oil (the onions absorb a ton of oil!) Add black peppercorns if you desire. One onions are almost all-the-way cooked, add brats. You may also enjoy heating sauerkraut in a different pan and serving it on the side.
- Noodle soup. Boil water. To prepare a broth, cut up an onion and a carrot (if you have one--if not, you can take the stems of bok choy or yu choy and use those) and put into the water. Add bonito flakes or dried shrimp if you want. When this had been boiling for a while, add your desired kind of noodles. I particularly enjoy soba noodles, thin egg noodles (which I buy fresh), and Shanghai fresh noodles. If you want, flavor the broth with chilli sauce. The noodle soup is good with stir-fried vegetables. If you eat eggs, you may also want to add a poached egg on top. (Ramen places also like to fry diced shallots in a deep-fry kind of way and put them in the bottom of soup to flavor them.)
- Stir-fried smoked tofu. Cut smoked tofu (xiang gan), Chinese leek (jiu cai), and Chinese preserved mustard plant (za cai) into strips about 2 inches long and 1/4 inch thick. Stir-fry on high heat, adding the ingredients in the following order: za cai, tofu, leek (at end). (If you are not vegetarian, you may also enjoy this with strips of chicken. Chicken tip: pre-cook the chicken in boiling water for 1-2 minutes before cutting so you can cut smaller strips.)
Other fast, easy, and tasty things to eat that are vegetarian are Tofurkey sausages (which require microwaving/heating in a pan--I enjoy the chorizo ones for breakfast) and sliced Tofurkey sandwiches. I am also very into yogurt: I enjoy eating plain yogurt with fruit or jam, Greek yogurt, and kefir, a cultured milk product.
When I went home for winter break my dad showed me his method of making both scallion pancakes and scallion rolls. It is quite delicious; I will post that (with pictures) sometime soon!
Thursday, January 15, 2009
25 most dangerous programming errors
...experts from more than 30 US and international cyber security organizations jointly released the consensus list of the 25 most dangerous programming errors that lead to security bugs and that enable
cyber espionage and cyber crime. Shockingly, most of these errors are not well understood by programmers; their avoidance is not widely taught by computer science programs; and their presence is frequently not tested by organizations developing software for sale... Just two of them led to more than 1.5 million web site security breaches during 2008 - and those breaches cascaded onto the computers of people who visited those web sites, turning their computers into zombies.
The sensationalist tone of the article may be appropriate for discussing the very real and scary subject of how programming errors affect everyone in the world. People know how to fix these things, but consumers of software seem blissfully ignorant/tolerant of unnecessarily buggy software.
Listed errors include cross-site scripting, cleartext transmission of sensitive information, race conditions, and other classic errors. There are also things like "improper initialization" and "incorrect calculation." (The descriptions can be amusing: "Just as you should start your day with a healthy breakfast, proper initialization helps ensure...")
Tuesday, January 13, 2009
Cooking with fruit: it's sweet
I've learned that you can basically cook any kind of fruit you've seen in a dessert with any kind of sweetener and it'll taste good. Some ideas below:
- Caramelized bananas. Chop the desired amount of banana into one-to-two-inch pieces. Mix a small amount of butter (enough to coat the bottom of the pan) with brown sugar on medium to medium-high heat. Once the sugar melts into the butter, add bananas and cook for a few minutes until they are brown and have the desired level of softness. Make sure to stir during the process.
- Cinnamon apples. Cut peeled apples either into slices or small chunks. Add 3/4 cup of wine of your choice to a shallow pan. Add one to two tablespoons of honey. To enhance the taste, add a stick of cinnamon and a few cloves and remove them before adding apples. I also experimented by adding a Thai chili for a few minutes while making the syrup. This changed the aftertaste in an interesting way. Cook until the wine is reduced to a small amount (the amount of syrup you would add to cook the apples). Add apples and cook on high heat until the liquid is almost gone and the apples are soft. Stir apples, sprinkle cinnamon. I enjoyed eating this with Greek yogurt. (Instead of a wine and honey syrup, you can use butter and sugar or olive oil and honey.)
- Poached pears. Peel pears, cut into halves and scoop out the core. Make a syrup as you would for the apples. (I used Calvados, an apple brandy, and added candied ginger, cardamom, and dried cranberries for additional punch. Since the pears tend to be very sweet, something sour like cranberries is good to balance out the sweetness. Alternatively, you could make a syrup from wine or port.) Add pears to the syrup and cook, covered, on low heat until they are soft and flavored. I ate this with kefir, a cultured milk product.
Oh, oxytocin!
Rise to power: switching from bikram to power yoga
I have since discovered power yoga, another form of heated yoga marked towards competitive type A's who may not be ready for more authentic forms of yoga but who are tentatively embracing the ideas of workout alternatives to running and yoga as a form of relaxation/meditation. While power yoga doesn't drain me as much as bikram did, it is still a fairly intense workout and has an intensity level comparable to recovery day (as opposed to a training day) of running.
Power yoga is a flow yoga that takes place in a 97-degree heated room. Flow yoga seems to involve "flowing" through different positions, switching positions on inhale and exhale. (Bikram yoga, on the other hand, was static--you hold each position for ~30 seconds, depending on the position.) Each power yoga class is about an hour long and usually begins with a warmup of various things to warm up the back (rag doll, the downward dog/upward pushup combo), various things to get your heart going, core strength things, and leg stretches to cool down. At the end there is a long sabbasana where they turn off the lights and you lay still. At the beginning and end of every practice we all say "Om" together; I enjoy this very much. My first class was particularly fun because it happened to be a partners' class: the instructor showed us various poses including ones where partners do a double dog (one partner is in downward dog; the other one has his/her feet on top of the partner), somersaults over each other, and pair stretching. I was paired with a Finnish stranger who was somewhat larger than me; the experience was quite amusing. In general, power yoga involves headstands, handstands, shoulder stands, and other cool inversions I want to learn.
The experience of power yoga is quite different from that of bikram: 1) it feels much more like an aerobics class (or some sort of other group exercise class--I have never attended any group exercise besides bikram), 2) it is much less regimented (in bikram, instructors insist on the correctness of the pose; in power yoga you can do any variation), and 3) it is different each time. Power yoga, like most yoga, allows the instructor a fair amount of discretion on the positions for each class. Other differences between power yoga and bikram are that power yoga gets much more crowded (my mat was almost touching other mats on all four sides during more than once!) and the demographic is slightly different. I've seen fewer men at power yoga than at bikram, but the women who go to power yoga seem to be younger and more fit. It seems like a lot of them are runner or other kinds of athletes. (Power yoga seems to be less of people's sole workout, whereas there were people I'd see at the bikram studio every day.)
I enjoy power yoga more than bikram. Because it is more laid back and dynamic, I find it more relaxing. There are also logistic reasons: Central Square is closer, I don't have to shower at the studio for power yoga because I don't get as sweaty, and I do power yoga while still maintaining a good running schedule (instead of going to bikram every day).
Monday, January 05, 2009
Checkpoint: reflections of the second-semester first year
Synopsis. I acquired an advisor, an office, two projects**, and some repetitive stress injuries. I took a couple of classes (machine learning and algorithms), took up yoga, and spent a bunch of time writing in my blog. I highly recommend the graduate experience to those similar to me.
Full version. Due to repetitive stress injuries I should really stay away from the computer, so you must request a personalized oral retelling.
Some things I learned about graduate life... Does Russell's paradox prohibit me from being a parody of myself? :) These lessons may also transfer to real life.
- Graduate school can give you more freedom than many of your friends. I had a lot more freedom this semester than a lot of people I know. I two college roommates who do Teach for America, one who was Tim Johnson's press secretary, and one in graduate school in Oxford. I have more or comparable amounts of free time than they do, and I seem to have much more control over what I work on. (I work during the day and on nights and weekends when I need to, but the actual hours I work are fairly flexible, and if I slack the biggest letdown is to myself.) Sure, I'll be here longer than my friends will be at whatever they are doing, may get paid less, and will eventually face the end of the honeymoon period, but for now it's very fun.
- An ounce of prevention is really worth a pound of cure, or however that goes. My repetitive stress injuries still haven't gone away. I now spend all of my meager graduate stipend on healing techniques! Good ergonomics is incredibly important.
- Having a schedule can be very helpful. In the beginning I really enjoyed that I only had 6-10 hours of total commitments (classes + meetings) a week, but I soon realized that having plans for when to get up, when to go to bed, when to eat, when I was going to work on what, and when to work out is very important. Just today I spent a bunch of time trying to decide whether to run or go to yoga and when to do it and this caused me a good deal of anxiety. This is why I usually plan these sorts of things. :)
- Courses matter very little, at least at MIT. We only have 4 course requirements to get our masters', and we're not expected to put a lot of work into them. We are supposed to get at least 3 A's, but from what I have seen and heard this is not nearly as difficult (work-wise and many intellect-wise) as it was in undergrad.
- Yoga is cool. I used to think yoga was for spiritual people and trendy anorexic girls, but I'm starting to see that yoga is very nice as both physical exercise and as a relaxation activity. (Maybe I'm becoming a spiritual people.) I've tried bikram and power yoga, both of which are marketed towards type-A competitive athletic types, but I'm working my way towards the more authentic stuff. Bikram, which is static and in a 105 degree room, is very intense and got me into way better shape; power yoga is more chill, more about movement and breathing, and has more variation.
- Eating right can make you feel a lot better. I have felt much better ever since I got a kitchen and started cooking for myself rather than eating the dining hall crap. I've greatly reduced my red meat intake, greatly increased in my vegetable intake, and almost eliminated greasy gross things. I rediscovered tofurkey, tofu turkey, and seitan, wheat protein, both of which are delicious meat substitutes.
- Sleeping does prevent illness. I never had the luxury to sleep enough pretty much until now, but either I have developed immunity for Cambridge college germs or sleeping does actually help.
- It takes more discipline to maintain a healthy schedule and a good balance of work and play than to work all the time. Working all the time is not the most productive thing to do. (Gasp!)
* Graduate students are usually not proud of particularly long graduate careers, but for the time being I will embrace my future enthusiastically.
** I am working on a language for programming with uncertainty and a project involving computer-aided programming related to the SKETCH system. I'd be happy to talk at length about either project.
Friday, January 02, 2009
Yet another reason exercise is good for you
“When we think about diabetes, we think about heart disease and all the consequences for the rest of the body, but we usually don’t think about the brain,” he said. “This is something we’ve got to be really worried about. We need to think about their ultimate risks not only for cardiovascular disease and metabolic disorders, but also about their cognitive skills, and whether they will be able to keep up with the demands of education and a fast-paced complex society. That’s the part that scares the heck out of me.”
Previous observational studies have shown that physical activity reduces the risk of cognitive decline, and studies have also found that diabetes increases the risk of dementia. Earlier studies had also found a link between Type 2 diabetes and dysfunction in the dentate gyrus.The way to improve glucose regulation is to engage in physical activity. Also from the article:
Sheri Colberg-Ochs, an associate professor of exercise science at Old Dominion University in Norfolk, Va., said her research has found that regular exercise, even light physical activity, can offset the potentially negative effects of Type 2 diabetes on cognitive function. It is not clear what the mechanism is, she said, but may have something to do with the effect of insulin.
Especially since there have been few studies concluding that regular exercise is bad for you, keep this in mind when you make your new year's resolutions!