My favorite Git Command

My favorite Git command is:

git lola

This is an alias of the git log command

 git config --global alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local"

I like it a lot because it shows the log of all the commits in the repository, and it also has some color to highlight the different branches.

Output of a Git command

I learned about this command when I started working full time as a software engineer and I think that it has saved me a lot of time and headache. I hope it is useful to you too!

Various Referral Links

Financial Related

Amex: https://americanexpress.com/en-us/referral/gold-card?ref=JEFFRS5fWl&XL=MNANS

Capital One: https://capital.one/3hqtJjp

Coinbase: https://www.coinbase.com/join/sham_4gh

GPay: https://g.co/payinvite/am5ra9f

Wefunder: https://wefunder.com/jeffsham/discount

Venmo: https://get.venmo.com/la88l1OG1pb

Rewards Apps

Claim: https://join.claim.co/i/32M5WR

ExxonMobil: $EX8I2S3

Fetch Rewards: https://fetchrewards.onelink.me/vvv3/referraltext?code=1GQ7N

GetUpside: https://upside.app.link/H9UZA

GoMyWayVA: https://2iwpb.app.link/11Ui4ovST0b , the code is dJrj8VqgXY

Honey: https://www.joinhoney.com/ref/4fko78o

ibotta: https://ibotta.onelink.me/iUfE/8cc13c64?friend_code=yblsmmo

Microsoft Rewards: https://account.microsoft.com/rewards/rafwelcome?rh=D49404A3&ref=1000

Microsoft Start App: https://startapp.microsoft.com/start?adjust=11v3jpxl_112lcvtd&referId=DPQD8Y

Seated: jeff1004

Other

Etsy: https://etsy.me/3NpHjUm

Lyft: https://www.lyft.com/i/JEFFREY05615?utm_medium=p2pa_iacc

Grubhub: https://www.grubhub.com/referral/0fe59920-88c7-11f0-a587-8fc6964febb7?utm_source=grubhub_androidapp&utm_medium=content_owned&utm_campaign=growth_refer-a-friend_share-link&utm_content=promo_discover-rewards

Gyukaku Japanese Barbeque: https://engagement.punchh.com/b/gyukaku

Originature: https://loox.io/z/Z9BHToJuA

Rover: https://www.rover.com/sit/jeffrs78135

Shutterstock: https://submit.shutterstock.com/?rid=339294597&language=en https://www.shutterstock.com/en/g/Jeff.+S?rid=339294597

WordPress: https://wordpress.com/refer-a-friend/3z4Kel9S6or8lq87BPbA/

Eating at restaurants

Throughout the years, I have eaten at restaurants on numerous occasions. I’m not a very picky eater so I enjoy most of what I eat. I feel that my eating personality can change vary depending on the people and the situation. When I eat with family, I’m usually not the one paying the bill. So, I’m a bit more comfortable at the table and I eat like normal. I would say that’s the usual eating personality – eating until I’m full and not talking too much. When I am with friends and we have to pay for ourselves, I might talk a bit more but I definitely eat less than with family. I try to order food that will cost a similar amount or less than the other people, which makes it good for either splitting the check evenly or paying for my own food. I don’t know other people’s comfort level with their own finances, so I try to avoid any unpleasant situation. If I’m with family and family friends, I eat a lot. Like I usually don’t have anything to contribute in the conversations and I let the more sociable people shine in the spotlight. I’m completely content with cleaning up the table. I don’t like it when it comes to the end and then people try to force me to eat more. In general people forcing me to do something I don’t want to do is unpleasant. Perhaps that’s why I’m not where I thought I could be in life, but that’s probably for a different blog post. Another eating personality that I have is when I try to facilitate the conversation. This doesn’t happen very often since the requirements for this to occur don’t usually pop up. But I have done it in the past. I don’t end up eating too much and the conversation lasts for a decent amount of time until I run out of things to talk about. Then, I sit there eating, hoping that they pick up the conversation, regretting that I made the decision to make conversation, dying slowly. Then of course there is the eating alone. I almost never eat at a restaurant alone. I think that I usually take the food to go in those situations. But it has happened before. I buy a normal entree (and a side if it’s a fast food restaurant). I just eat the food while people watching for a few minutes. Then I leave. People watching can be rather relaxing.

In terms of stuff I eat and don’t eat, I would say that I enjoy most cuisines. There are some dishes in each cuisine that I might not prefer, but I’ll at least try a bit of the dish. Some dishes that I don’t like from Chinese food includes that salted duck egg yolk dish and the thousand year egg. I just don’t get why people like preserved eggs. Also, eating ginger when it’s cut like bamboo shoots is another thing I dislike. I’m like “Wow, I found a tasty bamboo shoot – what a great scenario for my stomach.” but then I put it in my mouth and then it’s like “Oh. This is ginger.” and then I put it in my napkin. I think ginger is a good plant for making food taste a certain way and maybe for medicinal purposes. But I do not enjoy eating it straight. Another dish that isn’t Chinese but I don’t think I would try is the chicken egg dish where the chicken is like a fetus and then you eat the egg with the fetus. I think it’s called balut. Just the look of it deters me from trying it out. When you think of other exotic foods, I think I would give them a try, but I don’t know if I could do balut.

11 minute workout

I read about an 11 minute workout on NYTimes and I thought I would try it out. After a few weeks of doing it once per week, I think that it has been pretty nice. I can definitely feel the workout the day of and the day after. Also, I think that my cardio has improved in part because of this workout. The amount of necessary space is pretty minimal, which is great for working out in the apartment. The split squat jumps are the toughest part for sure, but after that passes, I feel like the second half of the workout is manageable and I feel somewhat accomplished. For a couple weeks, I would do another cardio workout by running around a track, but I stopped doing that since it got colder outside. I don’t think that this workout can be a complete replacement for other workouts like running, swimming, and stuff like that, but it is a solid workout to do during the pandemic when going outside is tougher and space is limited. I am a relatively athletic person so I don’t think that I am drastically more fit, but I plan on doing this workout every Monday until I don’t. I thought about increasing the frequency of the workout per week, but I thought that it’d be better to be consistent. I might do more in the future. Before the pandemic like in 2017 – 2019, I used to work out 2 to 4 times a week for about 30 minutes to an hour. Nowadays, I just don’t feel motivated to work out that much so I’m committing to at least 1 workout per week.

Workout details:

1 minute of easy jumping jacks, to warm up

1 minute of modified burpees (without push-ups)

1 minute of walking in place

1 minute of high-knee running in place

1 minute of walking in place

1 minute of split squat jumps (starting and ending in the lunge position, while alternating which leg lands forward)

1 minute of walking in place

1 minute of high-knee running in place

1 minute of walking in place

1 minute of squat jumps

1 minute of walking in place, to cool down

Investing

I would consider myself as risk averse. I haven’t capitalized on any of the trendy stocks and whatnot, but in general I am comfortable with my investment strategy. I think that is one of the more important things about investing. There are tons of investment videos and articles out there, but if I try a strategy that I am not comfortable with, if it does bad then I would dwell on it for a while. If it does well, then perhaps I get overzealous and make even riskier decisions.

I had a conversation with a friend recently that I should probably take more risks at least financially. After thinking about my current strategy and how I can iterate on it, I think that I would be comfortable with contributing more.

My thinking is that I’ll have the majority of my investments in mutual funds and index funds. Then, I’ll have some stocks that I’m tracking just for fun. I’ll choose these based on random articles that I read or advice from friends/family and after some research. I don’t really know much about the various metrics that are in financial reports and such. I try to read a little bit about the company mission and their products. If I am comfortable with what they are doing, then I am willing to buy some shares. After that, I want to get a core of dividend stocks. I keep reading about passive income and multiple revenue streams and blah blah blah. I sat on the information for a while, but I finally decided that it could be a good thing to consider. For these stocks, I’m probably just going to get companies that I think are solid and stable. Since these stocks will not be a large percentage of my portfolio, I’m not going to be gaining much from the dividends in the near future. Then, over the months and years, I’ll contribute more to each of the investments and I hope that they’ll grow enough to the point where I will have enough for retirement.

Over the long term, I’ll consider adding real estate to my investment strategy. I’m not really sure where I want to spend the rest of my life and I don’t think I’m settling down any time soon. I am pretty against investing in real estate that I am not living in. I’ll start investing in real estate when I am ready to buy a place and live there for an extended period of time. If I ever move from that place, I’ll think about renting it out. Renting comes with some headaches, but that’ll be a problem to think about for future me.

Chess

I’ve played chess recreationally for a bunch of years. I don’t remember when I first learned how to play, but I think I was in a chess club in elementary school. There weren’t very many other people in the club, but it was neat to learn the basics with other people using a chess board on a wall – it was a vertical hanging board that had little pockets so you could place the flat pieces without falling off (if that makes any sense). Anyways, I think our club had a mini tournament and I did pretty well. After elementary school, I didn’t pursue it any further, just playing with my family on occasion and perhaps a few times with my middle school and high school friends. My memory is pretty horrible when it comes to this sort of thing. In college, one of my roommates was really interested in chess. He had played when he was young as well and he actually competed in local tournaments. His enthusiasm for the game reignited my interest in the game and led me to play more, online and in person. I never beat him, but it was fun nevertheless. I find the puzzles / tactics of these chess websites really fun. lichess and chess.com have really nice puzzles that only require a few moves to complete, but they aren’t trivial. Also, they have a nice feature where they try to give you puzzles that match your chess “rating”. Nowadays, I spend more time playing these puzzles than I do against real people. I think that the puzzles have helped me think a bit more critically about the game, but I also feel that in a real game, I am unsure when I am in a puzzle scenario or not. This definitely arose when I recently played a high school friend in a game with a 10 minute time limit. I could definitely think of some good moves to play to take advantage of the board, but I wasn’t thinking quick enough to win. That is why I prefer the longer style of games. I plan to only play chess for fun, but we’ll see – if I do somehow unlock the secret of the game through these puzzles, I may consider playing more frequently.

Some pictures of the food I made between jobs

Eating ramen with an egg

Usually when I eat ramen, I would like an egg to be included. The egg is usually available by default in restaurants or as an add on. When making ramen at home, that is not always the case. But, I try to buy eggs before making ramen so then I can have the combo. In high school and college, I ate ramen regularly and I’ve improved my technique of making ramen with an egg. Of course you can cook the egg separately in an eggsized pan and then put the egg on top of the noodles, but sometimes having a poached egg is better. Through trial and error, I have been able to accomplish this task.

  1. Boil water
  2. Put ramen noodles into water (don’t separate the noodles)
  3. After a couple minutes, gently separate the noodles, but keep them closely packed together. The goal of this step is to form a “pocket” that will hold the egg in the center of the noodles.
  4. Crack the egg and put it in the noodle “pocket”. If you did it correctly and if you are lucky, the egg will stay in the pocket long enough for it to get poached.
  5. Cover the pot for a few seconds to get the top of the egg gently cooked.
  6. When the ramen is done cooking, eat the food. The egg should be poached and ready to eat. This may take a few times to get down since the timing in which you add the egg matters and making the noodle “pocket” can be tricky.

Hopefully by the end of it, you have a nice poached egg and some ramen to enjoy!

Love Island UK Season 1

I wasn’t sure what to expect when I watched this show. I knew it was a reality TV show, but I wasn’t sure if I would like it or not. I thought it was actually pretty entertaining. The people on the show were generally quite attractive and I enjoyed listening to all the slang and their different accents. Also, all the drama that came up was great to follow. It’s too bad that these people had a total lack of privacy and literally nothing to do at the villa until they received a text message from the producers, but I guess I can’t really feel that bad for them since they probably knew these things going into the show. It was a bit weird how they kept talking about the “outside”. It was like they were in prison or something and they were waiting for their freedom. This was exemplified by the islanders’ reactions to when they were able to talk to their family and friends back home. In general, I would recommend the show for people who like to not have to think and just sit down and watch people gossip. Another thing that struck me was how much the people cared about their public image. Zoe went on for a few days about how her parents and church would look down on her and Max was always worried about how the audience viewed him. I guess it makes sense since the audience decided who won the show, but I thought that it was a bit excessive. If there was a Love Island US, I don’t think I would’ve enjoyed the show as much. A big chunk of why I liked it was because of the difference in culture between me and the people on the show. Watching this show with friends is a lot more fun than watching by myself. That is probably true about a lot of shows, but just being able to crack jokes and experience their stupidity with others was wonderful.

minifyEnabled = true

In my Android app, I wanted to try to minify the apk because it would reduce the size of the deployable and it would make it slightly harder for other people to read the code and understand how it worked. For some of the external libraries I used, they gave instructions on what to add to the Proguard file, which was pretty helpful. However, I also used the Android Couchbase Lite 1.4 library. There were no Proguard instructions for this version of the library – there were instructions for Android Couchbase Lite 2.0, but when I tried those, the deployable still crashed when running. After searching the web for a while, I discovered something that helped. I added a few lines to the Proguard file to keep some libraries and it turned out to work.

-keep class com.fasterxml.jackson.core.** { *; }
-keep interface com.fasterxml.jackson.core.** { *; }
-keep class com.fasterxml.jackson.databind.** { *; }
-keep interface com.fasterxml.jackson.databind.** { *; }
-keep class com.fasterxml.jackson.annotation.** { ; } 
-keep interface com.fasterxml.jackson.annotation.* { ; } -keep class com.couchbase.lite.** { *; }
-keep interface com.couchbase.lite.** { *; }

After adding these lines, I was able to run the built minified apk on my phone without any problems. After uploading the apk to the Google Play developer console, I noticed that there were a lot of warnings saying that the apk was using non-SDK interfaces (https://developer.android.com/distribute/best-practices/develop/restrictions-non-sdk-interfaces). I didn’t receive that warning in the build I uploaded that wasn’t minified, so I assumed that it must’ve been because it was minified. I’m not sure if I am going to push the minified apk out to the production Google Play store because I don’t want the app to potentially crash for users. However at the very least, Android Couchbase Lite 1.4 is able to be minified.

Design a site like this with WordPress.com
Get started