Valentine’s Day 2013: What Twitter Thinks About Love

Every year, I create some sort of computer art project for Valentine’s Day. This year, I created another video, and I think this may be the coolest one yet.

Two years ago, my video was an attempt at capturing the spirit of valentine’s day by processing a video I took on my bus ride to school. I wanted to go back to that theme this year, but the whole “searching for colors thing” was played out. This year, I decided to get my computer to describe love.

Basically, I had my computer suck down every tweet on Twitter for a certain time period that had the word “love” in it, and then processed it, looking for the most common chains of words. I did this using a method called Bigram Probability, which basically calculates the probability of one word coming after another in a sentence. The more often the word “you” comes after the word “love”, the higher the probability assigned to the word “you” coming after “love.” It’s simple enough, but it produced some beautiful results.

Because of this method’s simplicity, I had to do a little “post processing,” which involved taking out the garbage sentences that the program produced. In the end, this became “picking the good ones.” Now, that’s not to say that I’m only picking the cute ones. No no, I’m picking the ones that are grammatically correct; the computer is doing the cute all by itself. Or rather, Twitter is.

Then I shot some video of a hike to the top of the mountain (story after the video,) added the text over it, and set the whole thing to some awesome music by Broke For Free that I found on Free Music Archive.org.

Before we get to the video, let’s have some stats. Of all the words the computer processed, the most common (other than love, which was the search query,) was “I”, and the next most common was “you.” Starting with “I”, the sentence with the highest probability was “I love you”. (D’awwwww.) The most common word after “you” was “love,” but if we ignore that one (because it creates an infinitely cute loop of infinite “love you”s),* the next most common sentence was “I love you too.” And if you think it’s cute that the sentences with the highest probability resulting from a search for the word “love” on Twitter are “I love you” and “I love you too,” wait until you see the ones I used in the video.

Note that the video is a bit shaky. If I had a better camera and/or a Steadycam, I might have been able to record more stable footage, and track the text better. The music is by Broke for Free.

A Story

As I walked up the mountain, I was honestly worried that the video would be a little boring. The computery stuff is cool, and I love playing with video editing sofware, but my idea for the background footage seemed a bit boring. Fate brought me the heart-shaped balloons in the trees, which I thought was a pretty cool end to my journey. But actually, that was the beginning of a different, far more exciting journey.

Coming from the direction of the heart-shaped balloons (make of that, symbolically speaking, what you will,) I heard the song “If I Had a Million Dollars” by the Barenaked Ladies. It seemed to be coming from the woods, but I had no idea who would be playing music that loudly near the park. I thought about trying to find it, and then decided against it. As I was leaving the great patio that forms the lookout on the mountain, something turned me back. Where’s my spirit of adventure, I thought to myself. So I turned about face, and I went in search of the music.

Because I value the integrity of my limbs, I decided against filming my hike through the woods and snow, which took place entirely off the paths in the park that are maintained during the winter (the first thing I did was boot-ski down a staircase that was “closed for the winter”) and mostly off the few paths beaten into the snow by other daring travelers.

I ran through the woods, slid down slopes, and hung on to trees. It was an exhilarating feeling. I’ve always loved running through the woods, and I haven’t done it in a long time. Every so often I would stop, prick my ears, and listen for the music. Sometimes it would fade out, and I had to try to head toward where I thought it had been the last time. My best guess is that someone had set up an outdoor skating rink, as towns and schools commonly do in Quebec during the winter, and that they were playing music for people skate to. But I didn’t come across a skating rink.

Eventually, I reached the road. There was no sign of the music, or where it was coming from. I knew where I was, and I had an appointment in an hour and a half, and I thought I’d head back. The adventure was fun, and I had gotten something out of my search, even if I hadn’t solved my puzzle. So I started walking home, and after a block or so, the music piped up again. It was louder this time. I could tell that it was bouncing off the buildings, so it was hard to say exactly where it was coming from. I hesitated, then took my best guess and started after it again. As I walked down the street, the music got louder, and louder, and louder, until I could finally see where it was coming from.

It was coming from a protest at the Montreal General Hospital. One of the unions there is on strike, and they were picketing and playing music. My mystery music was coming from an amp strapped to the back of a pickup truck. The mystery was solved.

It’s amazing how, sometimes, if you look hard enough, life gives you exactly what you want. I was cranky that day, my mood sharpened by not wanting to get out of bed, and my usual frustration with the commercial assumption that all people everywhere are paired off on Valentine’s Day. Something was telling me, right before I had started my trek, that life was holding out exactly what I needed at that moment. And whether you believe in fate, God, synchronicity, or probability, I felt that one or all of them were giving me an opportunity; a free pass to improve my mood and learn something.

The lesson I learned (or relearned) is this: what you’re looking for is out there somewhere. It applies very well to those of us who are single during this season, and to love, but it also applies more generally to any other pursuit in life. You’ll hit rough patches, you’ll get lost, you’ll have fun, you’ll face adversity, and maybe you’ll even give up a few times, but if you keep your ear to the ground and your goal in mind, you’ll find what you’re looking for eventually.

*Those familiar with bigram probabilities will probably realize that there shouldn’t be repeats. However, the data structure I used to store the bigram probabilities made the usual manner of iteration somewhat difficult, and I wanted to allow some repeats.

Anger

People today have a lot to be angry about. Politics, cars, news, work, construction, bicycles – there are a lot of things that piss us off. What’s weird is that some people seem to actually enjoy being angry. A few years ago, I realized that I was becoming one of those people, and it scared me. I think we’re all that person sometimes. We’ve all clicked on a negative review of a movie we liked just to see “what this jerk is talking about,” or confronted someone about a topic we know will get them riled up, even when we know we should just let it slide.

It really occurred to me that I was embracing my inner dark side while I was riding my bike to school. I was pissed off about something – someone was biking too slow, or a car almost hit me – and I got angry. I didn’t grow huge muscles and turn green and yell “HULK MAD!! HULK SMASH!” But I probably peddled off furiously and muttered something scathing under my breath. Great. The kicker is, I sort of liked it. Being angry felt like some kind of revenge, and I felt secure in the knowledge than next time… next time I would say something or throw a glare, or do something to show the person that I was really mad. And then we’d be even… but would we really?

At the time, I recognized that this wasn’t helpful. After all, the only person with any negative emotion about that encounter was me. The other person went on being their jack-ass self, not caring about the world around them. Maybe it would get them in trouble some day, or maybe not. Either way, in my little world, the only person who was angry was me. A more immediate concern, however, was that I knew I had accidentally been a jack-ass a few times. Sometimes you lose your head, and you cut someone off. It doesn’t mean you’re a bad person, it just means you made a mistake. So how can you be so sure that the person who just cut you off is a jerk, and that they didn’t make a mistake?

So I tried to change. If someone was going to be a jerk, I would deal with the situation dispassionately, secure in the knowledge that they were a douche-canoe, and they had to live with themselves. If they decided to do something stupid, good for them.

I ran into a story on Reddit a while ago that really changed my feelings about anger. I might not retell it exactly correctly, but the gist is there:

The Buddha was walking in a market one day. A man on the street noticed him, and started cursing him, insulting him, and jeering at him. He threw horrible insults at the Buddha. The Buddha looked at him with a peaceful smile, and walked on. The next day as the Buddha walked through the market, the man saw him and again, he insulted him, insulted his family, and cursed his beliefs. Again, the Buddha smiled peacefully, and walked away. On the third day, the man did the same, but before the Buddha walked away, he stopped and said, “I have stood here insulting you for three days. I have said horrible things to you, and all you do is smile and walk away. Aren’t you offended? Aren’t you mad?” The Buddha looked at the man and said, “If I were to give you a gift, would you accept it?” “No!”, said the man,”I would never accept a gift from someone like you!” “Then to whom would the gift belong?”, asked the Buddha “Well, you would still own it.” “Exactly,” said the Buddha, “and if I don’t accept your anger? To whom does it belong?” (paraphrased from a Reddit comment thread here.)

My effort over the past two years or so is to let other people hang on to their anger, rather than taking it on myself. An extension of this is that if someone is being inconsiderate or selfish, I try to let them wallow in it, rather than letting it make me upset. I let them shoulder the burden of their own dickishness. And if they just made a mistake, then I won’t blow up at them for no reason. It’s tough to do sometimes, but I feel a lot better about myself for it.

A good example of this happened a little while ago. I was walking home (having just bought Assassin’s Creed II: Brotherhood, I might add,) when I was almost hit by a pickup truck, driven by a man who was clearly not paying attention. “Jesus!” I yelled instinctively, as I turned around and glared at the man. “Excuse-moi! Excuse-moi!” he shouted back to me (he was francophone; he wasn’t being cheeky). I turned around and walked away, slightly shaken, but not angry at all. In fact, I was struck by how little anger I felt. The thought occurred to me that maybe I should turn around and yell at him, curse him out, and tell him to watch where he’s going. But something else occurred to me that was even better:

What I did was worse for him than getting angry. If I had gotten angry at him, I would be angry, and he would have cause to be angry at me for not being understanding of his mistake. It would have given him the slightest excuse to deflect his anger at himself toward me. But I didn’t leave him room for that. The only options I left open to him were to forget about the incident, and to be angry at himself. If he forgets about it, then he wasn’t going to listen to my swearing anyway. And if he’s angry at himself, he might just be more careful next time. But either way, I felt fine, and I went home to play my new video game, completely unfazed.

It might sound like I’m peddling some kind of weird hippy crap that makes no sense. You might assume that you would eventually blow up at someone, releasing all kinds of pent-up anger that you had been storing for years. But I really believe that – like the Buddha said in the story above – the anger stays with the person who created it. When you open yourself to the possibility that 1) the person might have simply made a mistake, or 2) that becoming angry will only make you feel worse, you start to catch yourself becoming angry, and you start to let it go. It’s not about letting anger go completely – sometimes anger can be a useful emotion – it’s about not getting angry destructively. It’s about only getting angry when it counts, and letting yourself enjoy the rest of the time.

I may write more about this subject, since it’s an important part of my life. If you have comments, suggestions, questions (although I don’t pretend to be an expert on this,) or anger deflection stories of your own, please do leave them in the comments.

No Resolutions 2013

Every year, it seems, I write a blog post about how I’m not making New Years Resolutions. It’s getting a bit old, a bit monotonous, and I feel like I’m repeating myself. I feel like I’m berating my readers with the same drivel over and over again… but I’m doing it again this year, so suck it up!

Month: January, Year: 2013, Resolutions: None. Not one. Let’s review. The main reasons I don’t do make New Year’s Resolutions are because 1) if I need to make changes in my life, I make them in “real time;” that is, as soon as I realize there is a problem. 2) I think people use New Year’s Resolutions as an excuse. How’s that? Most people don’t follow through with New Year’s Resolutions. Sure, they go to the gym for a few days, maybe even weeks, but eventually they stop. There are a variety of reasons for this, but for the purposes of this discussion, what’s important is that most people don’t follow through. I think people use that as an excuse. Stopped going to the gym? So did a bunch of other people. Stopped “eating healthy?” You’re not alone. Still drinking too much coffee? Next year…

This is not to say that I don’t believe in making lifestyle changes at certain intervals, it’s just that I don’t think the first day of the New Year is a good day to start, especially when there are so many other people to fail with. I set goals at the beginning of semesters, especially after the summer break. After the semester is over, I’m in a better place to sit back and think about what I want to do in the coming term. What do I want to improve on? How am I going to do it? How will I know I have improved? Then I implement, and hope for the best. If it doesn’t work, I try again next term, or later in the same term.

Those two bold questions are important. Motivation research (and common sense) shows that specific goals with specific measurements are more likely to lead to success, and that most people set fuzzy goals with no measurement of success. Many people, for example, set the goal of “eating better.” What does that mean? If you eat one less burger in 2013 than 2012, you have technically eaten “better” according to some arbitrary standard. If you fail to bring fork to mouth one less time in 2013 than in 2012, you have – by some standard – succeeded in eating more skilfully (i.e. “better”) than you did in 2012. Congratulations. A specific goal is this: “Eat meals comprised mostly of vegetables three times a week.” Even that’s a bit fuzzy. How about this: “Eat white carbohydrates less than two times a week.” That’s a great goal. That’s a goal you can monitor. That’s a goal you just might be able to stick to.

Now that I’ve done my pedantry bit, let’s talk about my goals for this term. If you’ve read my previous posts, you know that I’ve been working on discipline. I’m pleased to say that I’ve done well. One of my specific goals last term was to get two A’s. I did not meet that goal. I did, however, boost my grades compared to previous terms. This semester, same goal: two A’s. Second goal: do all the assignments. My weak point in school is that at some point during the semester, I get frustrated and bored, and I stop doing assignments. I don’t just do them half way, I stop doing them altogether. That changed last semester, and in all but one of my classes, I turned in all or most of the assignments. This semester, ALL the assignments. Everything I am assigned, I will turn in. And not only will I turn it in, I will do it right. How will I do that? (Forming a plan of action for achieving your goal is also important.) I’ll do the assignments early, and I’ll check my answers. The details of this goal are still in the making, since I’m still fitting into my schedule, but that’s ok. Another goal was to brush and floss my teeth every single night. I used to brush most nights, and floss frequently, but I wanted to do it every night. Done. I think I’ve missed one day since a week before the start of last semester. This semester, I’m adding a morning brushing to that goal.

Those are a few goals I’m continuing to work on and I’ve added another: meditation. I want to be more disciplined, and more focussed. Meditation does just that sort of thing. There are lots of ways to meditate, but the one I’m going to focus on is the one found here. From what I’ve read, this type of meditation strengthens the pre-frontal cortex, which is the part of your brain that delivers willpower. So I’m going to meditate this way every night before I go to sleep. So far, I have meditated every night this semester, and I’m still going strong. I started out with 5 minutes, then 10, and I think I’m going to kick it up a notch and go for 20 tonight. It’s tough, but that’s what I’m looking for.

Finally, I do have some fuzzy goals. There are some things I want to do that I don’t really care to define properly, because they’re things that I want to work on, but that I don’t want to interfere with my other goals. If you pick too many goals, all of them suffer, and the three goals I’ve mentioned here are more important and concrete. I want to encourage my curiosity. Instead of just reading about a concept – mead making, say – and glossing over it, I want to immerse myself in it. I want to dig in, and learn some cool things about it. If someone were to come up to me after I read an article about mead, and ask me what I learned, I want to be able to tell them something cool, not just say, “Uh… well…” That’s just a waste of time. I also want to keep my room cleaner, do the dishes more frequently (which I’ve been doing,) and go to sleep earlier.

And yes, I want to blog more often. I’ve been neglecting my blog again, but some day I hope to get back to it. My life has been changing a lot lately, and blogging didn’t really fit in my mind. Now, I’m hoping that I’ll be able to focus on it a bit more. But who knows. One reader suggested that I add a donate button to my site, and I think I may well do that. I don’t want you to feel pressured to donate, and I won’t add it unless I start blogging more often, but it would certainly encourage me to blog more often (and contribute to the Help Me Pay My Rent And Things fund) if people threw some change my way every once in a while. If you have thoughts or opinions on this (or any) subject, please do leave them in the comments.

Also, if there are things you want me to talk about (or not talk about) in 2013, please let me know.

Discipline Week: Hindsight

To be honest, I’ve been rather dreading writing this post. The biggest failure of Discipline Week was my lack of blogging, and while there were many successes, the fact that I haven’t blogged in around three months has been weighing on me. Sometimes I feel like the segments of our lives have a theme. If you could put years of your life in a folder, you might label these years after something you learned to do, and these months after someone you were dating, and this week after one idea that completely changed your way of thinking. This semester’s theme has definitely been “Motivation” or, as a friend of mine might call it, “Learning to School.”

In learning how to school, I have learned not only about motivation, but also about priorities, forgiveness, and ardor. I use the word ardor in reference to a quote I read a while ago: “Learning is not attained by chance; it must be sought for with ardor, and attended to with diligence.” – Abigail Adams. When I copied this quote and taped it above my desk early in the semester, I knew it was significant, but it took me a while to learn exactly how it was significant. To me, seeking learning with ardor means that you have to use whatever means are at your disposal to complete your work. If that means staying up late, or asking a friend how to do a problem, or even skipping class, then so be it. It’s not enough to simply be at school, you have to fight for the knowledge you want.

Prioritizing is sometimes part of fighting for knowledge. I have skipped many a Linear Algebra assignment this semester, but I’ve done all but two of my assignments in every other class. In two of my classes, the assignments are worth 10% to 12.5% of my grade, and in another class, I know that I’ll get very far behind if I don’t do the assignments. Given a limited time – for whatever reason – I have to choose which assignment to do based on which is more important.

I’ve also learned to forgive myself. I can’t expect myself to study as diligently as some of my peers – at least not at the moment. After a while, I shut down, and I’m not able to continue studying. Once in a while, I’ll realize that I just can’t study, and I’ll put everything down and watch TV. And I’ve learned to tell myself that that’s ok sometimes.

Scheduling is also important. I’ve realized that most of the time I’ll plan to work on something “later” and not really allocate any time for it. Then “later” arrives, and the assignment is already past due. I have to give myself a time and a place in which to study: at home, at my table, with a pot of tea, at 4:30pm. Now I stack up my day in my mind, like a stack of dishes that need to be done. Sometimes I realize I won’t have time for all of them, and I re-prioritize.

Finally, one of the most important things: I’ve gotten rid of my “smart complex.” I read an article a while ago about how children who are told they are “smart” tend to give up more easily on intellectual challenges, and I realized that describes me to a tee. It sounds like an excuse or a an attempt at diagnosing an imaginary affliction, but I think it’s a useful tool for analyzing myself. If your parents told you all your life that you were stupid, chances are you would start to believe them after a while, and you would relegate yourself to a life of intellectual boredom. So what happens when your parents constantly tell you that you’re smart?

I think you start to believe it in just the same way. You do well in school, because maybe you are smart, until you reach a point where smart doesn’t cut it anymore; now you have to do real work, and you’ve never had to do that before. That’s when the identity crisis hits. You start looking for a way to reconcile the idea that you’re “smart” and the fact that you’re performing poorly in school. “Maybe I’m not cut out for this,” you think to yourself, “maybe I’m in the wrong program,” “I’m not enjoying this, so maybe this isn’t my subject.” When grades don’t agree with your vision of the world, you start comparing yourself to other people, trying to see where you stand on the intellectual spectrum. But it’s all in vein, because intellect doesn’t matter here: work is what matters, and you’ll get nowhere until you realize that.

The trick is to realize that you cannot afford yourself the luxury of being smart. Smart does not exist in this scenario, for all intents and purposes, and the sooner you can force yourself to realize that, the sooner you can start working on the real problem: how to do the work. Pushing “smart” out of your mind will help you succeed.

It took me a few days to stop comparing myself to other people, and to stop thinking about how my performance reflected on my intellect. For a while I was even annoyed with some of my friends who I perceived to be “smarter” than I, because I was the smart kid once. Soon, I realized that they merely have more self-discipline than I do. This problem is by no means fixed, and I’m still getting a feel for how to deal with it. But I am dealing with it.

For those who would like to read more about what I have called the “smart complex,” here is the article: http://nymag.com/news/features/27840/