Well, kind of.
I'm moving my blog into the newly renovated lekanwang.com. Over the next few days, I'm planning to consolidate my blog, the old lekanwang.com, and some of my photography and music web properties all in the same place. It should be exciting.
Hope you enjoy.
Sorry, Blogger, it was nice while it lasted.
Tuesday, September 21, 2010
Thursday, July 29, 2010
365 - The First Three Weeks
It has been three weeks and three days since I began my quest for a photo a day, for a year, and already, I have noticed how difficult it is to take a quality shot every day, especially when you often return from work after sunset. However, I have also started noticing all sorts of small details in my daily routine as I constantly search for interesting subjects and patterns of light for my daily photos. The way the light shines on the neighbors' hedges as I go for a run, the patterns of steel girders on a building in downtown Palo Alto, the way the sidewalk seems to subtly change shades depending on the color of reflected light from the buildings nearby--it's so easy now to get lost in a world of detail.
Here are my favorites from the first three weeks.
(Edit: the edges of a lot of these are cut off when viewed from the post. Click through to the album to see the full pictures.)
Here are my favorites from the first three weeks.
(Edit: the edges of a lot of these are cut off when viewed from the post. Click through to the album to see the full pictures.)
Sunday, July 18, 2010
365 Photos
A little over a week ago, I decided to start my attempt at taking an interesting photograph a day, for a year. It's a little frightening to commit to this, considering that I have never failed to renege on a majority of my summer plans, but I hope that by doing this, and announcing to everyone that I'm doing this, I will, (1) have an excuse to take my camera to even more places than I am already--yes, I know it's hard to believe, but it's possible; (2) hopefully improve my photography, and practice thinking about the three D's of photography: destination, determination, deliberation; and (3) quickly run out of the easy things to photograph--the cats, the housies, the flowers, Big Sur--and will start having to think about using more unique subjects.
Every once a while, I'll post the highlights here.
And all the pictures can always be found at http://lekan.smugmug.com/Photography/365/
Every once a while, I'll post the highlights here.
And all the pictures can always be found at http://lekan.smugmug.com/Photography/365/
Tuesday, July 6, 2010
Refound Love...for Microsoft's Command Prompt
Almost all Windows power users use the command prompt from time to time. cmd.exe can execute precision commands, browse, and filter very efficiently if used correctly. However, for Unix users, the command prompt is just plain weak, prompting many to install Cygwin.
But just today, I discovered that cmd.exe has some awesome keyboard shortcuts. They have again made the daily experience of using Microsoft's command prompt bearable again. Even interesting.
Here's a summary of my discoveries:
F2: Pastes whatever is in the cmd buffer up until the character you type next, and advances the cursor there.
F3: Pastes the rest of the buffer from the buffer's cursor.
F4: Deletes from the current cursor to the specified character you type next.
F5: Copies the buffer to the command line.
F7: Displays a reverse-sorted, selectable history of recent commands.
F8: Super useful tool that displays a list of all commands you've typed that have a similar beginning to your current command. I actually wish Unix had something similar.
F9: Choose a command to run (from the list in the F7 list). This one is really useful if you have a sequence of commands that you run over and over again. You could write a batch script, but with this shortcut, you could just use the same combination of F9-x over and over again, where x is the number of commands in your sequence.
Let me know if you know any others!
Friday, June 18, 2010
The % Operator in Java and C/C++
The % operator is colloquially called the mod or remainder operator, and most people assume that its behavior is the same in all languages. I mean, 8%5==3 in pretty much any language with a C-style syntax, including Java. But what if you have -8%3? Or, -8%-3? Or let's get really funky and what -8.03%-1.88 will be.
So here are the rules.
Both Java and C/C++ follow the ISO/IEC 1539:1991 standard, which maintains that (a/b)*b + a%b==a.
Hence, the % functions much more like a remainder operator than a modulus operator in mathematics. In addition, the ISO/IEC 1539:1991 standard states that quotients always round toward 0 when there are negative numbers invovled, which is why we sometimes end up with negative remainders.
The only difference between C/C++ and Java is that the % operator in Java accepts floats as arguments, while the C/C++ operator only accepts ints.
So here are the rules.
Both Java and C/C++ follow the ISO/IEC 1539:1991 standard, which maintains that (a/b)*b + a%b==a.
Hence, the % functions much more like a remainder operator than a modulus operator in mathematics. In addition, the ISO/IEC 1539:1991 standard states that quotients always round toward 0 when there are negative numbers invovled, which is why we sometimes end up with negative remainders.
The only difference between C/C++ and Java is that the % operator in Java accepts floats as arguments, while the C/C++ operator only accepts ints.
Friday, April 16, 2010
Circumhorizonal Arc?
Sunday, February 28, 2010
Yeasayer - Odd Blood
I am so fascinated with new music. When I get old, I completely see myself as that weird, cheery, white-haired senior citizen at the end of the cul-de-sac in a house with a room lined full of mahogany bookshelves filled with "those old-fashioned CD things." And when people stop by that room, they would always ask me, "Have you really listened to all of those?" to which I would answer, "Yes, I've listened to them all, but most, I've realized, are pretty mediocre."
That's my real problem. The first time I listen to most albums, I try to keep an open mind, and for the vast majority of them, perhaps because of personal selection bias, I tend to like them. A few I can even say I love right from that first time. But, most of those albums wither after applying the infamous test of time.
Albums that I love right from the start, and can withstand over a month of heavy listening are truly rare, and generally stand a good chance of making one of my "ALL TIME BEST" spreadsheets. This Yeasayer album is one of them. I haven't been listening to an album this much since In Rainbows came out.
The album has that strange and classic Yeasayer experimental sound driving each track, but it is as if the synths and laptop loops and drum machines gained sentience and decided to all go party together in a back alley while trying to sing pop songs. After just listening to the album once while skiing at Mammoth, I already felt like I could and wanted to sing along to half the songs. They're totally infections, and inventive enough to keep any musically analytical mind fixated.
Get their album. Go see them live. (If you're in the Bay Area, they'll be at the Fillmore on April 17th.) Sit back, listen, and smile.
That's my real problem. The first time I listen to most albums, I try to keep an open mind, and for the vast majority of them, perhaps because of personal selection bias, I tend to like them. A few I can even say I love right from that first time. But, most of those albums wither after applying the infamous test of time.
Albums that I love right from the start, and can withstand over a month of heavy listening are truly rare, and generally stand a good chance of making one of my "ALL TIME BEST" spreadsheets. This Yeasayer album is one of them. I haven't been listening to an album this much since In Rainbows came out.
The album has that strange and classic Yeasayer experimental sound driving each track, but it is as if the synths and laptop loops and drum machines gained sentience and decided to all go party together in a back alley while trying to sing pop songs. After just listening to the album once while skiing at Mammoth, I already felt like I could and wanted to sing along to half the songs. They're totally infections, and inventive enough to keep any musically analytical mind fixated.
Get their album. Go see them live. (If you're in the Bay Area, they'll be at the Fillmore on April 17th.) Sit back, listen, and smile.
Thursday, August 13, 2009
Picking a Meeting Time
I'm constantly annoyed with how difficult it is to schedule a meeting time with people outside of work. At a company or organization with a decent IT backbone, there's usually Exchange or Google Apps or some other servers set up so that you can easily see other peoples' busy/free schedules. However, outside of that company or organization, scheduling becomes a huge chore, especially if you have many people to invite. Sure, it's possible to share busy/free information with Google Calendar, but that quickly overflows your "Other Calendars" section, and is annoying to navigate because many people tend to use the same generic calendar names--"committments," "schedule," "classes," etc.
There are three solutions to this that I have come to use regularly.
The first is perhaps the most popular, and for most people, is easy enough to set up, and with enough options. This is, of course, the ever-popular Doodle scheduler. The pros to Doodle is that it is relatively intuitive to use, relative quick to set up, sports a rich feature set, and chances are the recipients of your invite will have used Doodle before. However, as we move on to our next two solutions, you'll see that Doodle is not the easiest to use, nor is it the most convenient to set up.
The second is a cute little startup called Congregar. The thing with this is that there are no time options, but dead simple to setup and spread and track. So, if you have an event where all you're worried about is the date, Congregar's the one to beat.
The third is my personal favorite, and one that most people have not heard of. This one's called when2meet. It looks like it was taken out of an HCI (Human-Computer Interaction) textbook. All you need to do is to give the event a name, then drag through the times when you're available. Then, send the page link to everyone else, and they can easily drag. Available times are instantly available in the color-coded chart off to the side. This is so easy and convenient that I now use when2meet over 80% of the time I need to schedule something. The only real downside is that there is no way of directly inviting from the page, nor a way to keep track of people who have not responded, but typically, with a meeting of fewer than 5-6 people--most of my meetings--it doesn't really matter.
There are three solutions to this that I have come to use regularly.
The first is perhaps the most popular, and for most people, is easy enough to set up, and with enough options. This is, of course, the ever-popular Doodle scheduler. The pros to Doodle is that it is relatively intuitive to use, relative quick to set up, sports a rich feature set, and chances are the recipients of your invite will have used Doodle before. However, as we move on to our next two solutions, you'll see that Doodle is not the easiest to use, nor is it the most convenient to set up.
The second is a cute little startup called Congregar. The thing with this is that there are no time options, but dead simple to setup and spread and track. So, if you have an event where all you're worried about is the date, Congregar's the one to beat.
The third is my personal favorite, and one that most people have not heard of. This one's called when2meet. It looks like it was taken out of an HCI (Human-Computer Interaction) textbook. All you need to do is to give the event a name, then drag through the times when you're available. Then, send the page link to everyone else, and they can easily drag. Available times are instantly available in the color-coded chart off to the side. This is so easy and convenient that I now use when2meet over 80% of the time I need to schedule something. The only real downside is that there is no way of directly inviting from the page, nor a way to keep track of people who have not responded, but typically, with a meeting of fewer than 5-6 people--most of my meetings--it doesn't really matter.
Tuesday, July 14, 2009
New House and Kitties
Life moves too quickly.
A few weeks ago, I graduated, and moved off campus to a five bedroom house with a few friends. Sarah also got two kittens.
Here's Ada, the girl.
And here's Babbage, the boy.
Here's a virtual tour of the house:
(These pictures were taken two weeks ago, so there's more furniture in the house now, and things the spaces are much more cleaned up!)
What you see when you first walk in the door:
Looking to the right, the living room. The biggest differences now between the picture and real life are (1) there's a couch behind the bean bag, and (2) there's a speaker system set up on the mantle and the little entertainment table.
The kitchen! It's blue!
Our garage turned game room. This room has also been significantly cleaned up.
And along the side of the house is lots of space and a storage shed!
The backyard. Notice the palm tree on the right edge! There is also a plum tree and a nectarine tree in the backyard!
My room:
A few weeks ago, I graduated, and moved off campus to a five bedroom house with a few friends. Sarah also got two kittens.
Here's Ada, the girl.
And here's Babbage, the boy.
Here's a virtual tour of the house:
(These pictures were taken two weeks ago, so there's more furniture in the house now, and things the spaces are much more cleaned up!)
What you see when you first walk in the door:
Looking to the right, the living room. The biggest differences now between the picture and real life are (1) there's a couch behind the bean bag, and (2) there's a speaker system set up on the mantle and the little entertainment table.
The kitchen! It's blue!
Our garage turned game room. This room has also been significantly cleaned up.
And along the side of the house is lots of space and a storage shed!
The backyard. Notice the palm tree on the right edge! There is also a plum tree and a nectarine tree in the backyard!
My room:
Friday, May 15, 2009
Wolfram Alpha Launches Today
As I mentioned before, Wolfram Alpha will launch some day in May. That day is today. Watch for it at 5PM PST!
Subscribe to:
Posts (Atom)