Categories
401k and Personal Finance

NerdWallet ipo

Reading Time: < 1 minute

感觉这个市场还是有些泡沫的. EV 就不说了:昨天傍晚🌆的时候开车时我的七岁小女儿说看到一个Tesla. I was thinking buy a share of $TSLA just now, but I changed to $F instead [呲牙] || Separately I noticed NerdWallet the personal finance / credit card 💳 bonus website went public last week. I worked in the credit card rewards space in the past and I used to get some sign on bonus. But the credit card bonus is a bit like snake oil. But it cannot compare to ev, green, esg, climate action and space x etc.

Btw, some engineering blogs from NerdWallet that I like.

VersionAlchemy: Tracking row changes with SQLAlchemy (VersionAlchemy at GitHub; also the original SQLAlchemy website. Note the former is based on the latter.)

Building a product platform at NerdWallet – Part 1

Building a product platform at NerdWallet – Part 2

Categories
Java Software development Technology

One set of source code – 12 factors app principle no. 1

Reading Time: 3 minutes

For 12 factor application the No. 1 principle is one source code base. Today I was thinking about this topic: one sets of source code for one app, and use configuration for language, region or other different settings for different customers. And this reminded me of some of the articles I read (such as this one: Building a versioned UI deploy system for fast, stable deploys and rollbacks, actually this one “Managing Customer Releases with Feature Flags instead of Branches“, both from Blend Labs, that’s why I was a bit confused 😐 ) and a few apps I worked on in last 3 or 4 years: note those apps include both monolithic, cloud native apps and somewhere in between.

At current place, I noticed one thing odd. We have different code bases for different locale (country) for one of our key apps: basically two sets of code (mostly identical) for apps for 2 countries. This seems to me not good architecture and a bit unusual. Without going into all the details and history (I was new to the team, and it’s also not good to point fingers anyway). So the direct cost I see now is to maintain two sets of code bases (very similar) and two apps: in other words thinking along the lines of the cost of developer, admin and infrastructure and so on.

On the contrast, at a former place I worked at, we have many white label customers, and we serve them on one set of code base and one set of apps (for the most part). All the differences between customers are addressed via System Maintenance (a web based configuration app). Web services for all the customers is running on one app on multiple servers (load balanced). The customer facing website is similar with one caveat: at one time we realized for one country the customer has traffic spikes from time to time, so that app for that country is put on dedicated “overflow” server: still the same code base with the difference in the configuration.

And at today’s world, we also increasingly hear more about multi tenant(s). The scenario I described above, as well as the medium article mentioned at the first paragraph, is along the same lines. And during Covid, at the former place I worked (a healthcare provider, to be more precise, the No. 2 US based hospital chain in terms of size), we developed a Covid screen app, for internal, as well as external customers (for example, Indiana Pacers). At the very beginning, we speed up the development by deploying the same code base to different org / spaces (essentially each customer has its own database). Later on we consolidated quite a bit, by changing the code to handle multiple customers (multi-tenant, if I may). In both cases, the source code is the same. The difference being in the early days, we used more resources because each customer has its own database, and its own app. And there is maintenance headache as well, for example, deployment and validation will take hours.

PS: one more thing. Once I did copy and paste of javascript code because I was not very good at javascript and I did not know how to do either inheritance or composition in js. The downside of doing this is also obvious: if there is bug in the code, we need to change it in 2 places. This is just a small example of why we don’t want to duplicate code.

PS 2: now I recall another company. This company is the No 1. medicaid provider in the nation, and has operations in probably 20 to 30 states in the US. Note medicaid is administrated by the stat, unlike medicare which is administrated by the federal government (CMS). I saw two issues one is re: code and another one is re: infrastructure. So because each state will have its own customization, what they did is they branch out code for each state (so basically a master branch and let’s say 20 branches for each of the state). On the infrastructure side, they scale up horizontally, so basically each state has its own database server (Oracle), and its own application server and so on (this is also dedicated by the source code). So this is their implementation of “multi-tenant”. Not very flexible to say the least. They also have a horrendous interview process and work culture too, which I won’t delve into.

Categories
Software development Technology

Raspberry Pi

Reading Time: 2 minutes

Downloaded Noobs image installer (imager_1.6.2) to Mac, unpack (or install) so that I have “Raspberry Pi Imager” on Mac, and then used it to create the bootable OS on the sd card using that software.

Burn the image for Raspberry Pi on Mac

After that insert the sd card to the appropriate slot on p3, also plugged in hdmi for monitor, and usb keyboard and mouse. Turn on the power (plug in the power adapter for iPhone with proper cable).

The Pi 3 in action, ports counter clockwise: power, hdmi (monitor), USB (2, mouse and keyboard)

Raspberry Pi Desktop first impression: I mainly used the web browser Chromium “Version 92.0.4515.98 (Official Build) Built on Raspbian , running on Raspbian 10 (32-bit)”, there is some lagging (keyboard, gmail and wordpress self host / post) compared to the MacBook, but still manageable. Keep in mind this pi 3 is probably selling for $30 or less nowadays. Btw, I tried a YouTube video (it’s the CNN Virginis moms switching from Biden to Youngkin story) in the browser too and it was a bit laggy in the beginning (video streaming?), but it worked well after couple minutes. This is pretty impressive.

Raspberry Pi Desktop

Obviously in order to use it as a desktop replacement, I would need to do some more tests. But I came across one post using pi 4 just now. Seems very promising there as well. Every Sunday morning my 2 daughters will take Chinese classes virtually via Zoom, and they uses my two personal macbooks. So in that duration I could use the pi 3. I noticed the temperature of the motherboard is not too hot either (no fans, no enclosure, just look like the picture 2 above).

Some other thoughts: there are tons of ideas regarding pi on internet. One idea is use it as home security. I will just need to dig more into it, and once I have more knowledge, I may purchase more Pi’s like my old friend Jeff Geerling (projects, blog) does. I don’t think I would be as prolific as he does. But I am just going to try.

References
Raspberry Pi OS – Raspberry Pi (Install Raspberry Pi OS using Raspberry Pi Imager)

Installing Raspbian with NOOBS – Introduction | Raspberry Pi Projects

How to set up and use a Raspberry Pi 3 with a Mac (I have a pi 3)

Categories
Life Life Tips

Mental health break

Reading Time: < 1 minute

Two more off days for the kids and teachers before thanksgiving holidays. Please note I still have 2 vacation days to cover it (also I WFH full time since March 2020 pandemic shutdown). Btw, I heard mental health break is getting popular among school districts (public schools), so there is peer pressure there. || The other day I heard from a podcast in which the author asked a bunch of billionaires (or millionaires, rich people, also with kids grown up): what’s your biggest regret? The answer is they wish they have spent more time with their kids when the kids were young. I can feel that: I think Sophia will let me hold her like a baby for at most one year or two. I enjoy every minute I spend with my kids: even if / when they consistently asks me “daddy, when will Roblox be back?” (the answer is I don’t know, as daddy don’t work for them…[捂脸])

Categories
Software development Technology Web

Roblox Outage

Reading Time: < 1 minute

(Update 4: 01-21-2022) Roblox published the root cause here.

(Update 3: 11-03-2021) I came across this website that shows nice stats for Roblox (I noticed downdetector only shows 24 hours history by default, not sure how to customize it). I vaguley recall I also see a github repo that can scan the roblox APIs, but I no longer see it when I tried to look through “roblox status” from twitter.

(Update 2: 10-31-2021) It appears the service is back as of 4:45 pm Pacific time, per Roblox status. Also the CEO blog post, and an article from Variety.

(Update 10-30-2021) Now I think that Roblox is likely hacked, unfortunately. The lack of transparency, as well as the length of outage are my main factors thinking they were hacked, btw. Now their official website says:

“We’re making things more awesome. Be back soon.”

Btw, I had a twitter thread going on this topic too.

(Original 10-29-2021) Roblox has a massive outage since yesterday, and it seems the impact is still going on as 11:35 pm US central 10-29-2021.

Downdetector :

What happens when Roblox is down?

Roblox status page

======

October 28, 2021 4:00PM PDT[Investigating] Many player experience are impacted.

stay tuned.

October 28, 2021 8:44PM PDT[Identified] We identify the root cause as internal system issue and work on the fix.

October 29, 2021 7:21AM PDT[Identified] We are actively working on recovery. Some users started to have limited access.

October 29, 2021 12:48PM PDT[Identified] The team continues active work on full site recovery.

======

Categories
advice and tips

My blunder on presenting today

Reading Time: < 1 minute

Today I made a pretty bad mistake on my presentation. Basically, I messed up my audio shortly after I got started, and I was not aware of it for about 6 minutes or so: until I realized I was kicked out the meeting. The audio issue was caused by my airpods losing battery, and I switched to the bluetooth headset. But it appears the airpods is still connected as I did not put the airpods in the pod (partially due to presenting, and I was a bit overwhelmed). Because the airpods was making noise, my colleague dropped me from the meeting, which I did not realized as I was switch between the tabs on Chrome web broswer: the meeting was just a tab and it was not obvious.

Going forward, I am going to implement two changes: no two bluetooth devices at the same time (again due to not complete switch over or disconnecting issue); also I am going to pull out the google meet tab to its own window so that I can be made aware.

Remote working brings a lot of convenience, and it brings a lot of challenges too (remember the lawyer’s I am not a cat incident on Zoom?). One thing I think it’s important is the empathy. I think the place I am working is okay, but not perfect. Without getting too much details, I feel I did not get much support, rather received some criticisms instead. There are better ways to handle that. If I am a leader, I would handle it differently.

Categories
advice and tips

Covid vaccine in St. Louis county

Reading Time: < 1 minute

St. Louis County COVID-19 Vaccines (pre-register)

Providers (hospitals in alphabetical order)

BJC

Mercy

SSM

St. Luke

Precautions / things to pay attention before taking vaccines.

Categories
Software development

GitHub 2FA and personal access token

Reading Time: < 1 minute

Even since I enabled the 2 factor authentication on GitHub, I am using the developer personal access token (PAT) for pushing the code.

The normal steps (please ignore the numbers in the beginning of each line):

  514  git remote remove origin
  515  git remote add origin https://my_developer_personal_access_token@github.com/major1xu/myNestEgg.git/
  516  git remote -v
  517  git push
  518  git push --set-upstream origin master

This works for both the public and private repo. I’m thinking another way to do it is when using “git clone” to begin with, we use the PAT. I am going to try it next time. Note I created the repo in the GitHub website first.

Categories
finance

Ark Investments

Reading Time: < 1 minute

Copied from mitbbs, link here.
======
木女神注定超越索罗斯和巴菲特,成为本世纪最大的投资传奇 Note, by Omaha aka yours truly, I disagree and I would be a bit cautious here. Warren Buffett is the best investor in the record in 20th century 1900 to 1999, no doubt about it. As to 21st century, the jury is still out, as we only had record for 20% of the century year 2000 to 2020

股海弄潮 9/916
theme_pic
secondwite
2021-01-09 12:26
楼主


这个是在10块钱买入亚马逊,30块钱买入特斯拉的女神。她在众大咖还不知道电子商务如何与物流互联网完美结合时就发现了亚马逊会一军突起;在多年前还没人能理解自动驾驶概念时就预言特斯拉的AI,大数据分析和驾驶软件会让特斯拉占据王者的地位。她甚至比马斯克自己更加看的清特斯拉的前景:在他80多(拆股前的420)想私有化时,
她再三提醒他这个价钱起码低估了10倍。幸好老马听了他的劝,不然就没有今天的世界首富。

她会是本世纪的投资女神,注定是超越利佛莫,林奇,巴菲特。索罗斯本来勉强可以与她比肩,但他过去政治化,注定无法一直在投资界伟大下去。为什么,她融合了他们的优点,但避免了他们的缺点。最重要的是,她扎住了本世纪的特质。

我知道连又些油管博主甚至本版都有许多人去年的投资汇报高于女神,但连给女神题写都
不配:她的资金接近200亿美元,以至于每个基金都被迫买入60个左右的股票,这种级
别的基金去年居然有一个月接近百分之40的回报,只能说是传奇中的传奇。

今天拜阅了木女神最新的视频


一下为她展示其投资哲学的经典视频
======

Also

Cathie Wood discusses her investing picks, plus her insight on Reddit, GameStop, Tesla and bitcoin (youtube)

A typical day for Ark Invest’s star stock picker Cathie Wood (yahoo finance)

Cathie Wood Sees 20% Returns After ‘Unbelievable’ 2020 (youtube)

Categories
advice and tips Fun kids

Holmdel BOE election

Reading Time: < 1 minute

FB

Patch

betterholmdeleducation (Platform)

data, media (social media, year sign, email etc)

Linda Zhang

Irfan Lateef

Ladue

2012

Ladue School Board Candidate Q&A With Sheri Glantz ” If funding allows, adding the option of Chinese to our foreign language department would be a priority.” (do I hear any volunteer here? Kidding. I mean a part time Chinese instructor to be serious)

2013

5 Candidates State Their Positions on Ladue School District Issues

Jeff Kopolow, Dan Regelean Elected to the Ladue School Board (data)

2014

2015

BOE results: Glantz, Goldstein won (out of 5 candidates)

2016

BOE results: Johnson, Kopolow won (out of 3 candidates)

2017

FB: Kisha Lee: The Key to a Stronger Ladue (2017 Meet the Candidates Night; won again in 2020 run #unopposed). From my recent memory Kisha is the first African American woman to be elected to Ladue BOE. As you may have read from above, she started in 2013.

2018

Glantz and Goldstein Re-Elected to Ladue Schools Board of Education

for more detailed information on election, refer to County Board of Election (citizen can request)

2019

results (county board of election): Johnson, Kopolow won out of 3 canidates

2020: there was no election on this year and the incumbent ran #unopposed (there was no new comer). The bylaw says that if there is no bond issue, and there is no new comer, there is no need for election.

2021

Marissa Rosen 4 Ladue April 6, 2021

Procedure to file for BOE

Board Briefs (blog)

Official web site