03/26/08

There can only be one…

Sandwich Shop.

If the sandwiches from the various sandwich places around SOMA were to duke it out, the sandwiches from The Snack Depot would reign supreme.

Hidden inside an office building on the 300th block of 2nd Street, The Snack Depot is a small convenience type store which sells one of the largest sandwiches you would find in SOMA at an unreasonably low price. Finding the place is probably the most difficult part.
Continue reading

03/26/08

Using POST and XML in AJAX

In an earlier entry, Missing Data After AJAX Call, I threw a hack together to return multiple values which required parsing based on a separator on the client side.

After testing, I realized using a character as a separator is a bad idea. The data returned could have the character as part of its value and screw up the parsing later on the client side. Storing the data as XML and returning the data as such makes for a more elegant solution.

I also wanted to send a large amount of text through AJAX and the GET request was not getting the job done. Using POST instead of GET works well; the reason behind it is similar to why it works for forms or forum postings.

Talking about the what’s and why’s does not make it very clear. That is why I brought an example with me including the corresponding code. w00t!
Continue reading

03/25/08

Pet Peeve #4

I am not sure what triggered my peeve-ness this past week; but, I seem to be getting unusually frustrated during the day especially when using public transportation is involved.

Today I was in line to take the escalator from BART to the street. There is an unwritten rule when using an escalator. The right-hand side of the escalator is for those who want a stationary climb. The left-hand side are for those who want to walk up to expedite the process.
Continue reading

03/24/08

Pet Peeve #3

People who exit the train and stand in front of the door deciding which way to turn.

Not only should they have already figured it out beforehand; the least they could of done was move further into the middle of the platform instead of blocking the exit way.

There are signs all around the subway station imploring passengers to “keep a look out” and “be aware of your surroundings”. Yet, there are still a stubborn few who believe the world revolves around them.

This problem isn’t localized to just the subway. This phenomenon  occurs at department stores, elevators, escalators, restrooms, airports, etc.  Wherever there is a chance to annoy others, these people will be there.

03/22/08

Movie Review: Bee Movie

bee_movie.jpgBee Movie is an enjoyable coming of age movie through the eyes of a bee. The lead character, Barry B. Benson, is about to start the rest of his life as a worker bee. But Barry doesn’t want to live the boring, monotonous life of a honey-making bee. He sets out to explore the rest of the world, including the treacherous humans.

As with most animated animal or creature films, the animal species are given human traits and abilities. The bees speak English, work blue collar jobs, and of course, will sue anyone and anything that moves.

Continue reading

03/20/08

I don’t pretend to know anything

English is a tough language to learn when you’re learning it as a second language.

Take for instance this phrase, “I don’t pretend to know anything”.

What does it mean?

“I know” means “I have knowledge about a subject”.

“I pretend to know” means “I have no idea what you are talking about but I am just going to fake it and hope no one sees through my charade”.

“I don’t pretend to know” means “If I have no idea, I will not lie about knowing the subject at hand”.

“anything” means “what people really mean when they say everything”.

Thus, “I don’t pretend to know anything” means “I have no fricking clue what you are talking about and I won’t even waste an ounce of energy faking that I do”.

So what have we learned today, class?

If you are drawing a blank when in a conversation, just visualize them in their underwear and zone out.

03/19/08

Pet Peeve #2

I am not sure if this is just something done in San Francisco, but is there a point in putting sparkling dust into the concrete on the sidewalks?

In the mornings when I am heading towards my workplace, the sidewalk reflects the rising sun’s light right into my eyes forcing me to squint as I walk.

Walking in San Francisco in the morning is like snowboarding without goggles.

03/18/08

Pagination with PHP

The other day, I was looking for a decent tutorial on creating pagination using PHP. I did a couple Google searches, but the results did not fit my criteria. I was looking for a caterpillar pagination where there is a head, a tail, and a middle section that moves along as you click through the pages.

Previously, the site I was working on had used a previous/next deal where the user would just keep clicking next to get further through the records. But, this type of navigation takes too long to get to the end and is not very search engine friendly.
Continue reading

03/18/08

Pet Peeve #1

People who sit in the single seats on MUNI that have the audacity to cross their leg so that it sticks out into the walkway path.

I am totally fine if the leg is partially in the walkway since some people may have long legs and have trouble fitting into the space provided.

But, no way should the leg be so far out there that I need to swerve to the edge and walk sideways to get pass.

And when you bump or trip over their leg, they get pissed. Well, duh. The leg is so freaking far out there, it would be impossible to avoid.

03/11/08

Missing Data After AJAX Call

I was working through the night last night, burning the midnight oil as they say, trying to get this AJAX deal to work. I had to fill a select field with options once the user selects an option from a second select field. But, every time I made the AJAX call to retrieve the data, the target select field remained empty… in IE. Argh! IE! Why do you haunt me so?!
Continue reading