Monthly Archives: November 2011

Very short stories

I wrote a couple 140-character stories for one of the final assignments in CS 404 and found it quite a satisfying experience.

The first details one of the strange aspects of meeting in person for the first time someone you only “know” via Twitter:

He sat across the room, his face familiar, his voice strange. Despite resembling his avatar, this man could speak more than 140 characters.

The second deals with a theme I’ve pondered for quite a while—living life through a screen.

She danced gracefully while I watched through a 3.5″ piece of glass. It’s all in 1080p video, but I missed the higher-def live performance.

Real life

I spend a lot of time online every day, partly by choice and partly by profession. But being online never replaces “real life.” Last week, I disconnected for a few days to spend time with my family and friends. We relaxed and enjoyed each other’s company. We strengthened friendships, laughed, and played. Those “real life” relationships will last. Love, friendship, a hug, and a pat on the back are things I don’t find online. The concept of “life” doesn’t change by sticking “real” in front of it. Life is lived in the world where I can see and hear and interact with the people I love. No game or chatroom or network will ever replace that.

A call for moral leadership

The brutal police violence that ended the peaceful protests at UC-Davis last week is appalling and frightening. While I can understand Chancellor Katehi’s concern about the health and safety risks of allowing students to camp overnight on their campus, she’s out of touch with the situation. Katehi sent a letter to the protestors informing them of university policy and asking them to dismantle the encampment. When that failed, she tried to solve with policy and police force a problem she should have addressed by going there herself and engaging the students in a dialog about the issues.

In an interview with AggieTV, Katehi talked and talked about the task forces they would form and the dialogs they would have (for at least a year) and the systems they would implement. She’s approaching the problem entirely the wrong way, trying to control it with bureaucracy. That is not the solution for a peaceful protest.

I’m proud of the students who stood their ground, sitting on that sidewalk with linked arms, meekly accepting police violence without retaliation. Katehi and her police cowardly tried to repress them but only brought strength to the students’ cause and dishonor to their administration.

I sincerely hope the University of California dismisses Katehi and brings in a chancellor who will exercise moral leadership, someone who will esteem the students as allies and work with them to change the world. I have the same hope for universities across the country, including my own Brigham Young University. We need strong, moral leaders to work with the rising generation to ensure this country is in good hands.

Quick start guide to mod_rewrite

The Apache mod_rewrite module turns out to be a very useful tool when you’re building PHP applications. The unfortunate souls who chose to do the CS 462 project in PHP last winter semester had to learn it. I had never touched it myself until this semester when I needed it for a project in CS 360. It turned out to be pretty easy to use. Here’s a simple quick start guide:

First, make sure Apache has the mod_rewrite module installed. In Ubuntu, you can execute this command:

sudo a2enmod rewrite

Now, create an .htaccess file in your site’s root folder. Here’s an example:

RewriteEngine On
RewriteRule ^list/popular(.*)$ index.php?list-popular$1[QSA]
RewriteRule ^list/recent(.*)$ index.php?list-recent$1[QSA]
RewriteRule ^$ index.php

The [QSA] at the end of the line means “query string append”. You can find a list of the other possible flags here. You’ll find good documentation on the whole module there as well.

Technology and the economy

This is a “position statement” vlog for CS 404 about technology’s role in changing the world economy

The inspiration was largely drawn from Phil Windley’s “Productivity and The Distribution of Wealth.”

Webcams at BYU

UPDATE (12/9/11): The BYU iOS app now includes a “Campus Cameras” feature. The cameras listed in that feature are exactly the ones I discovered with this Google search. Looks like I was successful.

Out of curiosity, I went searching for all the webcams at BYU that I could find online. I found nine locations with a total of fourteen cameras.

Exterior webcams:

Interior webcams:

  • Bookstore The Bookstore has three functioning cameras. Two show line conditions on the text floor and one shows the courtyard outside the Wilkinson Center.
  • Testing Center Shows the line conditions at the Testing Center.
  • ID Center Shows line conditions at the ID Center and WSC information desk.
  • My friend recently helped install a new webcam in the student fitness facility in the Richards Building, but it hasn’t been published yet.

The subdomain webcam.byu.edu is operated by the university for the south campus construction cameras. The subdomain webcams.byu.edu is operated by the Bookstore. All the rest of these are hosted on department subdomains. Most of these can be found with a simple Google search: “webcam site:byu.edu“.

Those who take the present for granted

Clay Shirky writes in Here Comes Everybody about the social changes effected by the evolving tools of the Internet. Here is one particularly insightful bit from his book:

[T]he future belongs to those who take the present for granted. . . . [Y]oung people are taking better advantage of social tools, extending their capabilities in ways that violate old models not because they know more useful things than we [Generation X and older] do but because they know fewer useless things than we do. (p. 303)

The people who are revolutionizing society with technology are the people who grew up taking it for granted. Changing society on this grand a scale would have taken disruptive, unconventional vision in the corporate world of twenty years ago. Today it happens as the result of many small companies innovating in their own spheres, building on each other and creating interesting platforms and services. Generation Y lives in the perfect environment to revolutionize while requiring only the limited experience, capital, and influence they have.

Music piracy beneficial for artists

Music piracy increases an artist’s reach in his target market. Record labels publishing the music complain about lost revenues, even though most of those revenues never get paid to the artist anyway. Musicians “regard live performances as their almost exclusive source of income”. The more people with copies of a musician’s work (legitimate or otherwise), the higher the demand for live performances. By that metric, artists stand to benefit from music piracy, even while music publishers, the middle men of the industry, do not.

UPDATE: Here’s an infographic that describes the pitiful amount of money an artist earns from legally-sold digital music. Musicians can’t live on royalties alone.

Digital textbooks: Still falling short

Last year, I wrote about some of the reasons the iPad wasn’t suitable for students. One of the biggest reasons I gave at the time was unsatisfying experience of trying to study a textbook on the device.

Audrey Watters wrote today about why students aren’t using ebooks for textbooks. One reason is availability. This has proved not to be a problem for me as a computer scientist; most of the textbooks I’ve needed for the past two semesters are available for the Kindle. But Audrey mentions a few other points that are universally applicable:

  • “[I]t’s still not quite as easy to mark up a digital text as it is a printed one.”
  • Most digital textbooks cost only slightly less than the physical versions. The relative TCO of an ebook is higher since it can’t be sold back at the end of the semester.
  • Ebooks aren’t integrated with social tools that students want to use for research and homework.

The tools available for working with ebooks are ill-suited to the needs of a student. For example, when studying a textbook, my memory is often aided by linking a concept with its physical location on a page, relative to figures and other visual elements. Ebooks by nature remove these artifacts of typesetting.

The biggest problem, however, is the ebook reader paradigm: read one page, advance to the next page, repeat. A textbook must allow me to flip back and forth between chapters, look things up in the index, and mark and write notes in the margin. Some books, like two that I am using this semester (Mythical Man-Month and Peopleware), don’t require that; I can read them a page at a time and still extract sufficient value. Having the device foist sequentiality on the user is not burdensome for books that are read straight through. But for textbooks, which are used more for reference than sequential reading, that paradigm is ruinous.

Until we develop better ways of reading, marking, referencing, and sharing ebooks, the textbook market will continue to make up only a small segment of ebook sales.

Eternal value of education

One of my core beliefs is the eternal nature of the soul. When we die, we’ll take with us the knowledge gained in this life. The question, then, is what things are most important to learn in a short human life. Cecil O. Samuelson, a retired physician and current president of Brigham Young University, remarked once that he doubted there would be a need for rheumatologists in the next life. Will there be a need for computer programmers? I highly doubt it. But there will be a need for scientists of all disciplines to understand and teach principles of chemistry, biology, physics, and mathematics. While specifics of the engineering disciplines may not be necessary there, the general scientific knowledge they apply will be invaluable. Beside that, if nothing else, engineers help improve our world while we’re still here.