19 Jan 2011

Wedding Program in LaTeX

Those of you that have undergone a wedding (and more of you that are currently planning a wedding yourself) know that just about every aspect -- from the food, to the flowers to the transportation -- is heavily marked up. Printed materials, like the program, are no exception -- printers charge an arm and a leg to churn out a good looking program. But what alternatives do you have? I've seen many, many ugly and stereotypical programs created with Microsoft Word that lacked the polish and pizazz that the professionally-done ones have. There is just something about the ordinary, boring fonts and predictable spacing that makes Word programs, well, less than special.

Wedding_prog1

There is a solution, although it requires a few notches on the geek scale. LaTeX is a free, professional-level software package to typeset just about anything. Academics use it to make their papers look great, publishers use it for crisp looking books -- and now you can use it for your wedding! Here are some screenshots -- check out the beautiful calligraphy font (called calligra (get it here)) and other niceties. This one is for a Catholic wedding, but you could definitely modify it to fit any style wedding. Here are the files: Download: wedding_program.zip

28 Apr 2010

Create, Don't Destroy

Jotted down in a file I keep called "life rules", I have a simple phrase. Create, don't destroy. It sounds trite, and perhaps it is. But I firmly believe that the most successful people in the world follow this principle every day, whether or not they have specifically written it anywhere. While it may not make you rich and famous, if you spend your time creating instead of destroying, it will undoubtedly make your life far better.

What does it mean, "create, don't destroy"? There are countless opportunities every day where we make decisions to add to or subtract from something. Projects at work started by an adversary that you'd rather see fail, cynical observations that don't have any constructive benefit, favors that you could easily do for someone, but choose not to -- these are all chances that we have to build on something, but instead choose to detract from it. There are all sorts of underlying roots -- jealousy, political gain, personal grudges -- but in each case the effort in the task is designed to undermine.

Instead, spend your time improving anything and everything you can. Even if you secretly want a project to fail, put that aside and contribute earnestly. It might feel good or be easy to criticize or be cynical, and often it is. Far more difficult is actually helping out and building. You'll find, however, that those that build are far better rewarded and end up far happier than those that destroy. Creation itself is an additive process -- the more you create, the more you'll be able to create. Why waste effort in making something fail when you could have a hand in making it succeed?

23 Feb 2010

Google's Privacy Dashboard

Privacy

Last week, while I was making sure my privacy settings were fined-tuned after reading all the buzz about
Google Buzz, I stumbled onto a neat feature of Google Accounts that I hadn't seen before. It's called Dashboard, and it's a great concept: most of the information that Google has accumulated about you is collected in one place, and you're given options to manage how you share it all. If you're like me, you have almost a dozen Google services -- Gmail, Picasa, Voice, Reader, Checkout, Alerts, Analytics, etc. Making sure that everything is set up correctly and not inadvertently exposed to the world is an otherwise painful task that is made easy with Dashboard. By scrolling down and glancing at the summaries of your various services, you can make sure that the pictures of Grandma's birthday party aren't visible to the world.

So, despite some other privacy setbacks (but hopefully they have all that worked out with Buzz), I think this is a leap forward for a company to expose the data they have about you and give you choices about what they do with it. Imagine the grocery store doing this with your preferred card or your phone company with the data they collect from your wireless bill (and location data they get from your GPS). It's great when consumers have the choice about how their information is used, and kudos to Google for getting this one right. They still have some work to do given how much info we end up giving them, but definitely a step in the right direction.

9 Jan 2010

What to do with all those Christmas cards? Make an ornament!

This year we got a lot of great Christmas cards, so when the season passed, we didn't quite know what to do with them. Keep them? Throw them away? Neither quite works, so we instead cut out parts of each card and made an ornament for next year. I had seen these ornaments online and in person a few times, so I found a site that detailed how to do them. The instructions are here, so I won't go through them step by step. I do, however, have a few suggestions:
  1. I used a shot glass to trace the circles. It was a perfect size.
  2. It's important to get as perfect of a triangle as possible, so that your ornament fits together correctly. The best way to make a perfect triangle is to cut out a circle, fold it in half, then in half again (so that you have a quarter circle). Unfold, and mark a strip of paper the length of the radius of the circle (see picture). Then use this to make 6 marks around the perimeter of the circle. Connect 3 of them and you've made a perfect triangle. Cut out this template triangle to use when tracing onto the other circles.
  3. Make sure that pictures and circles you glue in are facing right-side-up
  4. Glue a piece of ribbon through the hole in the top piece before you glue everything together
Our ornament turned out really well, and we'll definitely do it again!

1 Aug 2009

The Epidemic of Over Air-Conditioning

I've noticed more and more lately that there seems to be an air-conditioning problem nearly everywhere I go. Businesses for some reason think that their customers want to be kept at a frosty 68 degrees while they shop. Office buildings think that the computers and inhabitants will melt if the temperature leaps beyond the 70 mark. At the offices I've worked at, it's typically so cold that people bring sweaters or fleeces to wear during the day! The Department of Energy says that HVAC (heating, ventilation and air conditioning) account for 40-60% of the energy use in buildings. Given that it's expensive, inefficient, environmentally harmful and just plain uncomfortable, why not just turn the thermostat up a few degrees!
11 Feb 2009

On a lighter note: Calvin and Hobbes explain the financial crisis

I came across this the other day, and thought it pretty much hit the nail on the head. Published 15 years ago. (Click to make the image bigger)  

 

 

 

More at GoComics | Calvin and Hobbes

10 Feb 2009

What I Learned From My First Job on Wall Street

Cross posted on The Free Agents, a social net for people between jobs
I graduated in 2007 from MIT with dual degrees in Electrical Engineering and Management. During college, Wall Street was hitting its post-9/11 stride, with CDOs and structured financial products driving firms to record earnings and bonuses to record levels. I took an internship at a major Wall Street bank in the summer of 2006, and then signed on for a job as an equity derivatives trader for full-time. After 3 months of training, I started up in convertible bond trading in September 2007, shortly before Bear Stearns became the first big Wall Street collapse.

Read the rest of this post »

4 Feb 2009

Science Careers are "Hot" Again

With the TARP severely limiting the pay that a Wall Street banker can expect to receive in the next 5 or so years, while at the same time increasing funding for research and science in the United States, the time has never been better for students graduating from top universities to choose careers in science or industry over careers in Wall Street. In the past 10 years, Wall Street firms have drawn increasing numbers of the best students in America with the allure of making millions of dollars very quickly trading financial products of questionable merit. However, times have changed, and they have changed quickly. Only four months ago, the Wall Street dream was still alive, albeit somewhat muffled by a poor economy. Things were bad, but everyone "knew" that we were simply in a cyclical recession that would be over in a few quarters. The landscape changed with the bankruptcy of Lehman Brothers and the near failure of other major financial firms. Today, even the most golden of Wall Street firms are borrowing billions of dollars from the government to stay afloat and keep themselves from suffering a similar fate at the hands of short sellers and ratings downgrades. Mighty Wall Street, who once all-but-dictated fiscal policy for the US, is now beholden to Uncle Sam for hundreds of billions of dollars. What does this mean? The most immediate impact that will be felt by bankers over the next few years is the evaporation of bonuses. At the end of 2007, the average employee at a major Wall Street investment bank received a bonus of $175,000, according to the New York Times. Considering that this number includes everyone from the assistants to the CEO, the payout is simply staggering. Up to that point, the firms had generated the returns to justify such compensation. However, in the last 12 months, decades of profits have been wiped out, and the government now has a hand in every bank. What this means, as news outlets have covered ad nauseum, is that bonuses are no longer being paid out of profits -- instead, they come out of government subsidies. Needless to say, taxpayers will not fund such compensation. It will take years to repay the billions borrowed, and even then, regulations will undoubtedly be put in place to remedy the compensation asymmetries that led to this situation. Therefore, the days of easy money on Wall Street have passed, at least for the foreseeable future. Contrast this with careers in the sciences and technology. Several billion worth of TARP funding is going towards research in areas like battery technology, fuel cell research and alternative energy. While all of these areas are extremely important and have a very bright future, alternative energy in particular is poised to become the next billion-dollar industry. Although the plunge in gas prices has taken the market-driven component out of ideas like fuel cell cars and biodiesel engines, the push from the government for technologies like this is bringing them closer and closer each day to the cost-effective level needed to supplant oil for much of our energy. Bloomberg News had an article yesterday titled Obama’s Billions for Energy Fuel Stanford, MIT Research Dreams where it highlighted the research labs that will benefit from TARP funding. The paragraph I found perhaps most interesting:
Balsara, a chemical engineer, has assembled a team of 15 scientists that applied for $25 million over five years from the U.S. Department of Energy to improve batteries by modifying their materials. Money for energy projects is part of an $819 billion stimulus, passed by the U.S. House of Representatives, that Obama says is critical to saving the economy.
$25 million, over five years is what it takes to get research for improved batteries on track at some of the top research institutions in the world! Why not triple it and fast-track these technologies. How much will a battery that lasts twice as long as current models contribute in revenues to our economy? I guarantee that you'll be hard pressed to find a better way to spend that money. This is one project -- there are a dozen more that all are starved for cash but once funded would be tremendously valuable to our economy if we got them moving. Ultimately, the great thing about technology is that it is by nature accretive and self-catalyzing. Discoveries that you make today are the basis for new developments tomorrow. The best example of this is microprocessors, which are created with sophisticated algorithms to lay out the circuits on the chips. More complex algorithms can create faster chips. But faster chips can run more complex algorithms! So the processor that you create today will run better software than last years model, and as a result you can keep ratching up your production because what you produce becomes an input to the system. Because of this positive-feedback, technology grows exponentially with time. Contrast this with investment banking or trading, where the deals or trades you did last year only contribute in a minor way to the trades or deals you do this year. Finance, therefore, grows linearly. In many ways, the doldrums of Wall Street will help to put our nation back on the same playing field with our competitors. If the events of the last six months had never happened, and our brightest minds continued to choose Wall Street over careers in technology, nations like India and China would quickly outpace us because the linear growth rate of finance would soon fall behind the exponential growth rate of technology. Therefore, although it will create much short-term pain, the current economic situation will ultimately help the USA by encouraging the smartest minds to seek out a variety of careers. By removing the short-term incentive of massive paychecks in favor of longer-term goals of progress and value creation, the recession will end up spurring a new generation of entrepreneurs who will develop the science and technologies vital to keeping the USA at the forefront of progress.
28 Jan 2009

SealedMedia Rights Management DRM is hijacking my computer

For several months, I'd been having a problem with my Macbook where the fan ran around 6000 rpm constantly and the battery life was about a third of what it should be. I tried everything -- physically cleaning out any visible dust or debris from the vents, zapping the PRAM, looking for stray user processes that might be using the CPU constantly -- but nothing seemed to consistently work. Rebooting helped for a short period, but after a few minutes, the fan came back on. [caption id="attachment_112" align="alignleft" width="300" caption="SealedMedia using nearly 100% of my processor"]
[/caption] Finally, I gave up and chalked up the battery problems to an older (about 1.5 years) computer and the fan problems to poor heat management in my laptop. It wasn't the perfect Apple experience that Steve Jobs maybe have liked, especially with a noisy fan running constantly, but it worked. One day, I was poking through my process viewer, and changed the filter to show 'All Processes'. Lo and behold, I noticed that one process was taking up 97% of my processor. Since at that time I was only browsing the web with Safari, this was entirely unexpected. After a bit of Googling, I found out that the process, titled 'SealedMedia Righ' belonged to some sort of DRM installed on my computer. Whether it came with the system somehow or was installed with a program remains a mystery, but what I do know is the following:
  • It was started by launchd, which is a system process kicked off by the kernel
  • Killing it immediately brings the processor usage back to normal, the fan almost immediately from 6000 rpm to under 2000 rpm, and the battery life moves to over 3 hours from about 1hr on a full charge
  • It doesn't come back (that I've noticed) after I kill it
  • It does come back a short time after a reboot.  
  • Killing it doesn't seem to have any undesired effects whatsoever
  • I'm running OSX 10.4, not sure if its unique to this version or not
Given that 100% processor usage generates a lot of heat, which is particularly bad for the expensive battery and hardware inside, this malware DRM app is destroying my computer. Googling for a while didn't turn up much to solve the problem, so I'm asking users -- anyone else have any more information about this program, what it does, how it got there, or how to stop it? [caption id="attachment_113" align="alignleft" width="300" caption="SealedMedia killed, CPU usage back to normal."]
[/caption] Unfortunately, while I've come to expect nasty DRM from Apple, this takes the cake because ultimately it will greatly reduce the life of my laptop.
27 Dec 2008

Where are the US bullet trains?

As I write this, I'm sitting in Newark airport, waiting for our airplane to emerge from its holding pattern and land so that we can board and get on our way. We're already 5 hours delayed (might be a new record for me), and
Media_httpwwwmetaeffi_xjaje
its Christmas Eve, so at this point, I'm just glad there is some end in sight to the waiting. As I'm sitting here, I'm thinking about my other options to Chicago if the flight were to be cancelled. Flight-wise, there isn't much. A bus takes about 18 hours, so thats not really feasible. A train isn't much better -- it takes around 12 or so when you factor in all the stops. So really, its fly or nothing. In Japan and parts of Europe, people have another viable option for quick and efficient medium-distance travel. The high-speed trains in these areas can travel 300km/hr (186mph), which would get me from NY to Chicago in under 4 hours. A flight is 2.5 hours in the air plus another 2 hours or so of security and delays, so 4 hours by train certainly gives air travel a run for its money. There are other advantages too -- a train can take far more people at at time, so on really high-traffic routes (like NYC to Chicago), plenty of seats are available and they can [conceivably] be sold for a lower price. Weather isn't nearly as much of a concern, and congestion during crowded times can be solved by simply adding more cars to the train, instead of trying to pack more planes into a finite amount of runway and airspace. Energy efficiency is a huge upside as well. When oil was above $140/barrel, the airlines couldn't raise fairs and cut costs enough to make money. Trains don't have nearly the same voracious energy demands -- to put it in perspective, a freight train move 1 ton of cargo 423 miles on 1 gallon of diesel fuel. Admittedly, there is a definite difference between a diesel freight train and a electric magnelev train, but the scope is similar. A story on inhabitant.com (linked below) says that these trains use 1/3 of the energy of planes and 1/5 of the energy of cars. The greenhouse gases that a network of trains would save is huge, and the benefits would go beyond just environmental. Obviously the main concern with building such a system is the huge cost of creating such an infrastructure. The solution? Start small. California recently approved 800 miles of high-speed rail that will connect every major city in the state. How about a similar system for the east coast? Connect very high-traffic routes between DC, NY and Boston. These routes are heavily trafficked by business travelers, and airline routes such as the Delta Shuttle between New York and Boston are consistently among the most profitable routes in the industry. Replacing a 1hr plane ride subject to delays and security hassles with a 1.5 hour train ride that is essentially "hop on, hop off" will certainly be attractive to many or most of these travelers. Once these routes are established and profitable, build out capacity to other cities. Air travel ultimately is an inefficient means of transportation for short distances. Allowing a plane to use an airport slot for a 500 mile trip is a very poor use of resources, and certainly something that could be improved upon. As the government looks for the best possible ways to productively spend money to stimulate the economy, rail improvements should be near the top of the list.