gitfiti and vcsstat.sh

gitfiti, an interesting idea to paint graffiti on GitHub’s commit history calendar, though it probably doesn’t have much practical value beside becacuse it’s fun and I can do it!

Anyway, I wasn’t going to write about it because I didn’t want to create repositories just for fun. But I remembered my vcsstat.sh project, and if you combine both, you can have:

https://lh5.googleusercontent.com/-LBxEscGbTKM/UZuNioCbXSI/AAAAAAAAE0I/6vumCkRuOv4/s800/gitfiti%2520and%2520vcsstat.sh%25202013-05-21--23%253A00%253A22.png

The creation of gitfiti wasn’t quite clear when I started. There were five repositories in the screenshot. I used five because it’s easier if I messed up with week offset, I could just delete a repository and recreate with correct week offset. Anyway, with vcsstat.sh, two extra modes.

There seemed to be some calculation issue with vcsstat.sh, some days’ colors are off, but I’m not up to fix it.

Simplest way to cook hash browns with tomato and mushroom

Life should be simple, not meaning plain, just simple. So are hash browns.

Hash browns with tomato and mushroom

1   Recipe

1.1   Ingredients

Only four ingredients:

  • One medium potato.
  • One tomato, only used partially.
  • Mushroom.
  • Cooking oil.

1.2   Directions

It takes less than 30 minutes, can be done with 15 to 20, including washing the pan.

  1. Peel and grate potato.
  2. Heat up oil at medium heat, and dump grated potato into the pan. Fry them a bit like you do with onion for about thirty seconds to get rid of some water from the potato. Lower the heat a bit, shape the potato and press down to about a quarter of inch or half a centimeter in thickness.
  3. Slice the bottom of tomato, then four sides. Slice mushroom and place them on top of cut side of tomato slices, then place them onto baking sheet, drizzle some olive oil on each stack of tomato and mushroom, and roast in oven for about 10 minutes at (maybe) 200°C.
  4. Once the bottom of hash browns has formed a crust, flip it to cook another side. Constantly to press down. Take a fork and poke through the crust vigorously to help moisture to come out, do it constantly as well. This won’t break the structure of hash browns, it will still be whole, won’t fall a part, do not worry. Have some good pokes!
  5. Once hash browns are cooked — good crust on either sides, place it on a plate. Put the tomato and mushroom on the side or on top of hash browns. Pour the roasting oil on top of the tomato and mushroom, don’t waste the flavored oil.

2   Notes on the recipe

No need to wash off starch or use paper towel to squeeze out the extra moisture. The key is to form crust on either side. For me, the inside can be a bit moist and I prefer that way because the starch would make inner have a creamy texture. I use fork to help the moisture to come out, not sure if that really helps, but it’s not mushy and the final result is good.

The hash browns in the photo have very crispy edge, they were cooked at medium or medium-high heat. If you like crunchy, you use that level of heat, or don’t go over medium heat.

I use normal tomato, you can use any tomato you like, such as cherry tomato or plum tomato. Just half it or quarter it, accordingly. You can fry them in separate pan, or the same pan after hash browns are done. Also I think asparagus is a good option, but I don’t have any in hand.

3   Thoughts come with the recipe

If you are a regular reader, you probably have noticed that I have been slacking. It’s not like I got nothing to write about, just I don’t like writing things I don’t use or need. I don’t want to write just for the sake’s of writing, I want to write because I feel it’s right.

This recipe somewhat reflects my view of things in life, that is the simplicity.

You should have noticed that there is no salt of black pepper in the recipe, you can add if you like, but there is no need. These days, people have forgot what food really taste. It’s not flavorless, just your test buds have forgot the natural flavors, drown in a ton load of condiments or ingredients.

There is nothing wrong with the fundamental salt and pepper, but you don’t need them. Even mushroom would taste great with tomato juice. However, when you fancy, you can fry tomato and mushroom with a tablespoon of good vinegar. They will taste really great.

When I eat this, I tear the hash browns into small piece, and put the stack of tomato and mushroom on top of the piece. It’s like a finger food. The juice and flavor from tomato and olive oil, the softness from mushroom and the crispiness from the hash browns. It’s a simple heaven.

Nothing against those flavor intensifier, but they make you believe you must have those in order to have a good dish. A good dish makes you appreciate the food you put into your mouth, the satisfaction you get from eating them. Simple cooking with pure ingredients, that’s all you need.

By the way, the coffee is black.

SotD: Thank You Very Much by Margaret Ashton

Warning

Don’t read on if you are not 18+ or are prude.

Haven’t done Song of the Day for months, just got a recommendation video, Thank You Very Much by Margaret Ashton, because I watched a prank video. I was wondering why a prank video triggered a music video, but it did make sense after I watched it.

The recommended video was actually a duplicate of the official upload, because the official video has age restriction and YouTube account required, and that’s why I put up the warning in the beginning of this this post, but I really think it’s more like 15+.

I decided to put this song on SotD solely because of the music video. It’s too hilarious and has twists. The first ten seconds, you may think that daughter’s clothes are fine. Yes, it’s exposing, her nails are painted black. But we all have seen worse. At least her hair wasn’t dyed in rainbow colors. Then, suddenly, it totally blew out of my mind when the camera turned to the parents and I burst into laughters.

“Just don’t embarrass us”

Although it’s funny, but the scene of her dad wrestling with someone by the pool was sort of gross. Because someone’s willy knocks off her cup and I didn’t think that’s a fake penis. Eee…yuck. Also, the Wee playing scene, couch, I meant Wii playing scene, which was gross and totally bogus. No man can have a penis that big! ;-)

But I love the family photo scene, because that bare pussy are so cute and it’s not mosaic’d, did you see the wrinkles? It’s so adorable, so is the baby! Who doesn’t like the alien-like Sphynx kittens, right?

The ending is epic. The only other person was clothed in the party was a guy. That reminds me of the ending of CollegeHumor’s Jeggings series.

“Oh, c’mon!”

Bonus: Wedding Interrupts Lecture (A Cappella Group) University of Michigan by the same prank video uploader.

Using printf %(FMT)T with Unix time for much better performance

Bash’s builtin command printf is always a fascinating one to me and it amazed me when found out it supports time format for Unix time. A quick test shows the performance comparing to using external command date:

time for ((i=0; i<1000; i++)); do date -d @0 +%c >/dev/null; done
time for ((i=0; i<1000; i++)); do printf "%(%c)T\n" 0 >/dev/null; done
real  0m2.108s
user  0m0.215s
sys   0m1.117s

real  0m0.045s
user  0m0.032s
sys   0m0.012s

More than 50 times faster if the code is to print out a formatted time with Unix time.

If you need the current time, you still don’t need to use date, printf can do that very much, with -1 as the time:

printf '%(%c)T\n' -1

printf -v now '%(%s)T' -1
echo $now
# equals to
now=$(date +%s)
echo $now
Fri 10 May 2013 02:03:59 PM CST
1368165839
1368165839

-v option is another great thing about printf.