<![CDATA[Zack Apiratitham]]>https://vatthikorn.com//favicon-196x196.pngZack Apiratithamhttps://vatthikorn.com/GatsbyJSSun, 04 Jun 2023 04:05:50 GMT60Zack Apiratitham<![CDATA[WWDC 2023 Wish List]]>All my other WWDC wish list posts: 2016, 2017, 2019, 2020, 2021, 2022.

I've been closely following WWDCs and their announcements for at least ten years now. And every year I wish I could visit the conference in person, but due to various reasons I never made it happen. Well, this year is going to be different as I will be traveling to Cupertino for the WWDC23 week!

Though unfortunately I was not one of those lucky few who got the golden tickets to Apple Park (maybe next year 🤞), I figured it would still be fun to go meet fellow Apple nerds and join in on all the communities events happening that week in the area. So far I know I'll be attending RevenueCat's pre-WWDC Barcade Bash, iOSDevHappyHour, and perhaps the Dub Dub Climb.

Before we get to all that fun, as per tradition, here is my wish list for updates and announcements:

VR/AR Headset

All the reports around this have picked up so much in recent months that I think we'll really see it this year. At this point, it would be the biggest story of the week if Apple did not announce the long-awaited headset. I am for sure excited to see this finally, but sitting here right now I honestly don't exactly know why I would want one. The only experience I have with VR headsets is the original Oculus Quest, and that was mostly just for gaming. And we know how Apple is with gaming. What I'm expecting is for Apple to wow us in this regard like they did many times before when they introduced new product categories and give us compelling reasons why we might want one.

The rumored price tag of up to US$3,000 is unfathomably high and I will almost certainly not get one if that ended up being accurate. Perhaps we will be pleasantly surprised like with the original iPad where the actual price was half of what was rumored at the time.

iPhone Security Issue

If you've been following Apple-related news at all, you would have surely come across this bombshell report from WSJ of how thieves shoulder surf for people's iPhone passcodes before stealing them. And with just the passcode, they were able to change the Apple ID password and effectively locking the owners out of their iCloud accounts.

The implication of this goes deep and can really mess up more than just your digital life. Not only would thieves get access to all your iCloud stuff (photos, email, files, etc.), but if you also use the built-in password manager, the thieves could gain access to your bank account and other sensitive information. They really should not let people change the Apple ID password just by using the iPhone passcode. The chain is only as strong as its weakest link, and a 6-digit passcode is too weak for something as important as the iCloud account. I know that people forget their Apple ID passwords all the time and I can kind of get why Apple decided that it is worth the risk to make it easier for those people to gain back access to their accounts. But I think the risk here is too great.

I do hope they address this flaw in the system and come up with a mechanism to make this less likely to happen. For now given how we do so much on our phones, we would be better off switching to an alphanumeric password and treating typing it in on our phones as a sensitive operation, like for ATM PIN or bank account password, so that people can't easily shoulder surf for it.

Apple Music and Music App for macOS

Apple Music the service and Music.app on macOS are in dire need of some big improvements. The macOS app is just overall a terrible app (iOS app isn't much better either): songs would refuse to play for no apparent reason, navigation is incredibly slow and clunky, searching feels broken and slow. For the Apple Music service itself, it needs to improve on the recommendation algorithms, playlist curation, and just the overall stability and reliability of the service. I think it fails to meet some basic baseline-level features that its biggest competitor, Shopify, has been doing so well for years. Having said all that, with the recent release of Apple Music Classical, I am not holding my breath that they will do much, if anything at all, about this.

Safari Tab Groups Improvements

I really want to use this feature more as I always have so many Safari tabs and windows open at any given time. But the most annoying issue with this for me is the fact that if I am actively browsing using a specific tab group, opening a link from another app will always open it using a non-tab group window. I just want a way to control where I want links to be opened in. I have countless times run into this and then had to move that tab over to the tab group window I want. In the end I just gave up and stopped using tab groups entirely. I know that you can associate a Focus with a tab group and make external links open in that tab group, but I have a lot of tab groups and they don't nicely map one-to-one with Focus modes I have.

Home App and HomeKit

One thing about HomeKit that I would like to see is the ability to create more complex conditionals for automations. Right now automations are still based on simple and limited set of triggers, but I would very much like to be able to create conditionals to perform certain automations. For example: if the humidity is below 30% and somebody is home, turn on the humidifier, except between 10pm and 8am.

And strangely the Home app still doesn't have Home Screen widgets. I hope to see these in iOS 17.

Lightning Round

  • Something needs to be done with Siri with how terrible and unreliable it is. I want to see some meaningful and substantial changes to it this year.
  • The Photos app does a pretty good job with facial recognition for people. But unlike Google Photos, it still does not recognize pets. I just want to assign names to photos of my pets.
  • The Apple Silicon Mac Pro is still a thing right? It's been well over a year since John Ternus teased us that it's coming. I believe.
  • I find Spotlight on iOS really useful and frequently utilize it for things like unit/currency conversions or dictionary. But what's missing for me is the ability to quickly translate words (or maybe even sentences) to another language. I want to just type in "Tuberculosis in Thai" and get an answer that way. Plus now that iOS comes with Translate app, I don't see why they can't do this.
  • The workout streaks should not have to be every day. Give us the ability to define weekly streaks for workouts.
]]>
https://vatthikorn.com/wwdc-2023-wish-listhttps://vatthikorn.com/wwdc-2023-wish-listSun, 28 May 2023 22:00:00 GMT
<![CDATA[2023 Thai Election]]>Reuters:

Thailand's opposition secured a stunning election win on Sunday after trouncing parties allied with the military, setting the stage for a flurry of deal-making over forming a government in a bid to end nearly a decade of conservative, army-backed rule.

The liberal Move Forward party and the populist Pheu Thai Party were far out in front with 99% of votes counted, but it was far from certain either will form the next government, with parliamentary rules written by the military after its 2014 coup skewed in its favour.

Incredible result for progressives and those of us who believe the military has no role in a democratic government. The current dictator prime minister's party only received 13% of the total votes. It’s clear that the majority of Thai population does not want military rule to continue.

But we can’t celebrate too soon. The system is rigged in favor of the pro-military camp and a minority government is within the realm of possibility.

The New York Times:

As of early Monday, it remained unclear who would ultimately lead the country. The junta rewrote the country’s Constitution in 2017 so that selecting the prime minister would come down to a joint vote between the 250-member military-appointed Senate and the popularly elected House of Representatives. The decision could take weeks or months.

Such is the story of Thai politics. We’ve had more military coup d’états than any other country in the world. Since absolute monarchy was abolished in 1932, there have already been thirteen successful coups, averaging one for every seven years. I’ve had the pleasure of living through two of those myself.

On Thursday, Narongpan Jitkaewthae, Thailand’s army chief, took pains to assure the public that things would be different this time.

He said that the country had learned its lessons from its past, and that “politics in a democratic system must continue,” although he added that he “cannot guarantee” that another coup would not happen.

What a fucking joke.

]]>
https://vatthikorn.com/2023-thai-electionhttps://vatthikorn.com/2023-thai-electionTue, 16 May 2023 00:00:00 GMT
<![CDATA[Photos from Thailand]]>At the end of last year, I went on a long overdue trip back to Thailand after three years. Like any other big trip, I lugged my Canon EOS 6D with me all the way there, but this time I barely used it (the reason for which is a topic for another day). So all of these were taken on my iPhone 14 Pro.

I suppose it's about time I share some photos from the trip, only just four months after I came back as per tradition. A large portion of these are, unsurprisingly, photos of food and they deserve their own separate post. So for now, these are the non-food photos that I like the most:

Picture of Phra Thinang Chakri Maha Prasat
Phra Thinang Chakri Maha Prasat (พระที่นั่งจักรีมหาปราสาท) at the Grand Palace in Bangkok

A view down the Chao Phraya river with the sun close to the horizon
The Chao Phraya river (แม่น้ำเจ้าพระยา)

A view of 4 small islets out in the ocean

A close-up view of little sand pellets on a beach
Sand pellets from sand bubbler crabs

A view of a beach with limestone cliff in the background

A view of two mountains on both banks of a river
Khao Khanab Nam (เขาขนาบน้ำ) with the Tiger Cave temple on top of a peak to the left

A bow of a long-tail boat in a mangrove forest
On a long-tail boat in the mangrove forest

A view from an airplane with a sea of cloud and mountains below it at sunset

A long-tail boat traveling in the distance with mountains in the background

A sea of yellow tents of a night market seen from a high vantage point
Weekend night market in Krabi town

]]>
https://vatthikorn.com/photos-from-thailand-2022https://vatthikorn.com/photos-from-thailand-2022Tue, 09 May 2023 02:20:00 GMT
<![CDATA[Back to Tournament Golf After Eight Years]]>Now that it's finally getting warm again after a brutal winter here in Colorado front range, I'm really itching to do more outdoor activities. One of those activities with the lowest barrier of entry for me is golf. I recently played at a nearby city-owned golf course and quite enjoyed it. So as a way to incentivize myself to play more this season, I figured I should sign up for their men's league.

Last time I played in anything resembling tournament golf was over eight years ago in college. I also hadn't swung a club since last July, so I'm definitely quite rusty. Now with this league, I also get my USGA handicap properly established with my current index at 8.5. Today was the first event I participated in and the format was a 2-Man Modified Stableford. My team didn't do too well, finishing tied for last in our flight with -23 points.

My own performance was quite poor: I hit 39 out 48 in for an 87 (+15). The worst offender by far was the tee shot. I could not hit a tee shot to save my life at pretty much every single hole as I kept hitting it thin or not anywhere near the fairway. I hit fairways only five times (36%) and that in turns had a cascading effect to my green-in-regulation, which I only hit seven times (39%). Even though I hit one stroke better than the last round I played here, that round I had 64% fairway hits and 61% GIR.

One saving grace today was that I didn't putt as atrociously as I did last time out: my per-hole average today was 1.9 (35 putts) compared to 2.5 (45 putts). I only three-putted 3 times today, and while that should be zero, it was at least much better than 3 four-putts and 5 three-putts.

A golf scorecard showing a score of 87

Today was frustrating at times, but it was still a fun day out on the course and I met some interesting people in the community. Getting to play in a tournament again put me in a bit of a different mindset and also helped exercise my golf rules muscles (and real muscles too as I walked the whole round). I'll definitely be back doing this some more in the coming months.

]]>
https://vatthikorn.com/back-to-tournament-golfhttps://vatthikorn.com/back-to-tournament-golfMon, 01 May 2023 05:30:00 GMT
<![CDATA[My Top 5 Books of 2022]]>See my other top books of the year posts: 2020, 2021.

Since I began setting concrete reading goals in 2018, I was always able to meet and exceed those goals of around twenty books per year. In the past couple of years, I even felt that I was setting a pretty low bar for myself and that I should increase the number. But last year I failed to even meet my typical twenty-two-book goal, having only read sixteen books by year’s end. I’m not trying to make excuses for my shortcoming here, but my reading habit fell by the wayside in the summer due to my move to Colorado and a new job. I also read a few big novels which took me a long time to get through.

The sixteen books I read in 2022 translate to a 30% drop from 2021. But a better comparison would be the number of pages which came to 7,053, a 13% decrease.

A line graph showing the number of books and pages read since 2017

While I did not meet my expectations for the amount of reading, I did better at my other goals: to read more fiction and physical books. Last year I read six novels which made up 38%1, a healthy jump from recent years. And all but one book I read last year were physical books.

An area chart showing the split between fiction and nonfiction books read each year since 2017

On the topic of physical books, last year I also set a goal to stop buying books and focus on reading the ones I already owned to eliminate unread books on the shelves. So how did I do with that goal? Well I definitely did not stop buying books and ended up adding nine more books to my library2. But I did pare down the number of unread books by reading seven out of eight I had at the start of 2022. Accounting for new books I bought and haven’t read, the number of unread books is now down to five. I was on track to complete this goal by having already read those seven unread books by the summer, but I lost sight of that and ended up buying and reading new books from then on. We’ll revisit this again and see how I do with this in 2023.

Anyway, enough with all the numbers. Here are the top five books I read in 20223.

A stack of five books mentioned in the blog post

The Lord of the Rings by J. R. R. Tolkien (1954–1955)

This came as no surprise to me. I love the Peter Jackson’s films and have watched them through many times but I never read the book. Going into this already knowing all the main story beats did not take away from my enjoyment of the book. I was enthralled from start to finish and there was rarely any dull or slow moment. For years I had been avoiding reading this as I had this preconceived notion that it was going to be difficult to read and the plot would proceed at a glacial pace, and that it would take me months to get through it. I was happy to not find that to be the case.

"I wish it need not have happened in my time," said Frodo. "So do I," said Gandalf, "and so do all who live to see such times. But that is not for them to decide. All we have to decide is what to do with the time that is given us." (p. 51)

Braiding Sweetgrass: Indigenous Wisdom, Scientific Knowledge, and the Teachings of Plants by Robin Wall Kimmerer (2013)

You normally wouldn't find me reading a book about botany or indigenous experiences but putting those two together and combine with the author's background as a scientist made me curious enough to check it out. And I'm really glad I did.

In this book, she tells stories from her life and work as a botanist and member of the Citizen Potawatomi Nation while interleaving with insights into indigenous ways of thinking about ecology and other species on this planet. Her writing really shows off her deep love for nature and the land. I loved when she talks about how the scientific community generally ignore and look down on indigenous knowledge but they are often proven wrong, as told in her discussions of sweetgrass thriving more if harvested and trees talking to each other. A constant theme throughout the book is the emphasis on the importance of generosity and gratitude for what the land gives us, and the responsibility we bare as a species benefiting from — or, more accurately, exploiting — that generosity. It wasn't the easiest read, certain chapters could be quite a slog, but the perspectives I gained from this book really made this worth the read.

In the Western tradition there is a recognized hierarchy of beings, with, of course, the human being on top—the pinnacle of evolution, the darling of Creation—and the plants at the bottom. But in Native ways of knowing, human people are often referred to as “the younger brothers of Creation.” We say that humans have the least experience with how to live and thus the most to learn—we must look to our teachers among the other species for guidance. Their wisdom is apparent in the way that they live. They teach us by example. They’ve been on the earth far longer than we have been, and have had time to figure things out. (p. 9)

Rationality: What It Is, Why It Seems Scarce, Why It Matters by Steven Pinker (2021)

I read both The Better Angels of Our Nature and Enlightenment Now, and personally found his writing style and topics right up my alley. Rationality is a follow-up to the series and it takes a deep dive into rationality and related fields of study. A large part of this book reads like a college textbook and requires intense focus. The chapter on logic — with discussions of concepts like truth tables and "modus ponens" — took me back to my freshman year when I took "Intro to Logic" course. Same thing can be said with most of the other chapters covering probability, Bayesian reasoning, statistical decision theory, game theory, and more. Surprisingly, I still found reading those chapters engaging as I tried to keep up with them.

After nine highly technical chapters, the last two discuss the effects rationality, or the lack thereof, have in our society. He discusses conspiracy theories and offers psychological and sociological explanations into why people believe them and how they seem so widespread in today's hyperconnected world. This book is not what I expected going into it but it still taught me so much in the end.

The dream at the dawn of the internet age that giving everyone a platform would birth a new Enlightenment seems cringeworthy today, now that we are living with bots, trolls, flame wars, fake news, Twitter shaming mobs, and online harassment. As long as the currency in a digital platform consists of likes, shares, clicks, and eyeballs, we have no reason to think it will nurture rationality or truth. (p. 316)

Immune: A Journey into the Mysterious System That Keeps You Alive by Philipp Dettmer (2021)

Overall a very informative and approachable book for such a mindblowingly complex subject. The text is easily digestible and engaging in the Kurzgesagt style I’ve come to know and love. Throughout the book he uses a lot of analogies to illustrate scale or purpose of certain features of the immune system like helpful bacteria living on our skin as barbarian horde outside of the gates, the lymphatic system as superhighways and megacities, and the flu virus as soldiers in the Trojan horse. Some chapters can be long and involve multi-step in-depth explanations, but he also does not shy away from shorter chapters when the topics require it. Highly recommended for those wanting to get a better understanding of such a critical part of you staying alive.

Right now your Adaptive Immune System has a specific weapon against every possible enemy in the universe. For every single infection that has ever existed in the past, for all of them in the world right now, and for every single one that might emerge in the future but does not even exist yet. In a way, the largest library in the universe. (p. 103)

Numbers Don’t Lie: 71 Stories to Help Us Understand the Modern World by Vaclav Smil (2020)

This book is a collection of essays the author originally wrote for the IEEE Spectrum magazine which are grouped into seven main themes: people, countries, inventions, transportation, food, and environment. Full of numbers and graphs, this is a very fact-based book with no lengthy philosophical ruminations. The chapters are all succinct with no more than a few pages each which made for a quick and easy read. I cannot count how many new facts and understandings I gained from this book as it covers such a wide range of topics. Some really interesting ones are: why electric container ships are still not viable, diversity of animals vs. human-made artifacts, rational meat-eating, and better home insulation4.

Human minds have many irrational preferences: we love to speculate about wild and crazy innovations but cannot be bothered to fix common challenges by relying on practical innovation waiting to be implemented. Why do we not improve the boarding of planes rather than delude ourselves with visions of hyperloop trains and eternal life? (p. 136)


  1. Eight if you count The Lord of the Rings as three separate books, making the share of fiction 50%. ↩︎

  2. Not counting three cookbooks. ↩︎

  3. I know picking five out of sixteen isn’t that much of a curation but I’m sticking to that same number for consistency’s sake. ↩︎

  4. Brick and stone walls do not provide anywhere near as good insulation as "flimsy North American wooden things with hollow walls". And the easiest thing we can do to improve insulation and reduce energy consumption is to simply replace single pane windows with triple-paned ones. ↩︎

]]>
https://vatthikorn.com/top-5-books-of-2022https://vatthikorn.com/top-5-books-of-2022Mon, 23 Jan 2023 03:00:00 GMT
<![CDATA[Focuses for Thailand Trip]]>The last time I traveled outside of the US was late 2019 in the beforetime, but earlier this month that thankfully came to an end. I am now spending the last month of 2022 in Thailand. To make the long journey and the stay in Thailand more streamlined, I created a few Focuses on my Apple devices to help with that.

Travel

Traveling between Colorado and Thailand takes at least 24 hours, so it was essential for me to set up my devices in a way that will help make that arduous journey less stressful. For this I created a “Travel” Focus with the following Lock Screen and Home Screen1:

iPhone screenshots of the Travel Focus

From the top, the Lock Screen shows the time in Bangkok. The widgets are Flighty, Battery, and CARROT Weather. I find the battery one to be especially useful as it’s set to automatically switch to show battery status on different devices like the Apple Watch, AirPods, and their case, depending on the context. Flighty‘s Live Activity UI also helps with more detailed information of current or upcoming flight.

For the Home Screen, on the top stack I have Delta’s widget to show my trip information and CARROT widget. The top small widget stack contains Find My to keep track of my luggage with AirTags, and Flighty for my flight status. The bottom widget stack is for time zones and battery status for my different devices.

I think the coolest part about this Focus is the “Astronomy” wallpaper which I have set to “Earth Detail” variant so it shows a close-up of my current location on the Lock Screen. It’s not that I need the Lock Screen for me to know where I am on my journey but I just think traveling across the globe is the perfect use case for this wallpaper.

Apple Watch Face screenshot of the Travel Focus

For the Watch Face, there isn’t a lot of things I could put that I don’t already have on the Lock Screen. The top left complication is for sound levels which isn’t that useful, but I didn’t know what to put there. Nonetheless it’s interesting to see the sound levels on my flights, and how much the AirPods Pro were able to cancel out.

For the middle complication, I wish I could put Flighty there but surprisingly Flighty does not have a watch app so I put CARROT there instead. On the bottom row: left is for the watch battery, middle is for TrayMinder to keep track of my Invisalign wearing time, and right is a Watchsmith complication for the current time in Thailand.

Thailand

As I am spending over a month in Thailand, the apps I use regularly here are different from apps I have on my default Home Screen in the US. And so I created a “Thailand” Focus.

Screenshots of the Thailand Focus

Similar to the “Travel” Lock Screen, the top shows the time in Denver. The widgets are:

  • Temperature, to help me make sure the apartment doesn’t get too cold for the cats
  • Flighty, to show when my next flight is
  • Google Maps, to quickly launch the app to search for places
  • Halide as an app launcher

I use the “Weather” wallpaper to show the current condition.

Also similarly, the Home Screen has the CARROT widget on top and Flighty below it. The apps here are the ones I know I’ll use most frequently while in Thailand:

  • Home app to help check on the apartment while we’re away
  • Rover for our cat sitter
  • A folder for food-related apps like Line Man and Food Panda
  • Translate since my Thai is garbage these days
  • SCB Easy is my Thai bank’s app and it gets used a lot to initiate bank transfers to pay for stuff
  • myAIS is for my AIS SIM I use while I’m here
  • Line because that’s the app everybody here uses for messaging
  • Grab for finding rides while in Bangkok

For the Watch Face, the main differences are the Activity rings on the top left and the Watchsmith’s step count complication on the bottom right.

Singapore

I will also be visiting Singapore for a quick weekend trip so I figured why not set up another Focus for it.

Screenshots of the Singapore Focus

The Lock Screen isn’t all that different from Thailand: it still uses the weather wallpaper, and the widgets are CARROT, Activity, and battery status. I have humidity on top and the widget below is set to show current temperature, precipitation chance, and air quality index.

As we will be mainly using public transportation, Citymapper widget is prominently featured on the top of the Home Screen. This should hopefully help with quickly finding transit directions. Below it are the usual CARROT and battery widgets. As for apps, I just threw in some Singapore-specific apps I may or may not use while I’m there plus the usual: Google Maps, Photos, and Halide.

The Watch Face again is very familiar with the main difference being the Citymapper complication in the middle.


Focus is now such a powerful and useful feature so I think it’s definitely worth the time and effort to set up my devices to best suit my needs for these different situations. This is becoming my favorite feature Apple has introduced in recent years.


  1. Shoutout to Federico Viticci’s incredible Shortcut to put Apple device frames around these screenshots. ↩︎

]]>
https://vatthikorn.com/focuses-for-thailand-triphttps://vatthikorn.com/focuses-for-thailand-tripThu, 29 Dec 2022 06:55:00 GMT
<![CDATA[Migrating from Heroku to Linode]]>Back in August, Heroku announced that they will no longer offer a free tier for their services starting on 28 November. That would become an issue for me since I have a small Spring Boot service with a Postgres database deployed there, and they would end up costing more per month than I wanted to pay for.

In the past few months, I have been hearing more good things about Linode, so I decided to check them out. I don't need anything powerful for this purpose, so their cheapest $5/month shared CPU "Nanode" plan is more than enough. And since this is just a regular Linux server unlike Heroku's "dynos", I'm not required to use the managed database solution, making it cheaper. Plus the cheapest managed Postgres database on Heroku has a limit of 10,000 rows.

So I took on the challenge of migrating my Heroku setup over to Linode, and I'd like to share how I accomplished that here.

Table of Contents


Configuring the Server

Linode put together a very helpful guide on the basic initial configurations one should do when setting up a new instance. For the distro, I went with Ubuntu 22.04. I then just followed the guide and ran the system updates, created a limited user account, and set up SSH access from my local machine. I also set up an A record to point my custom domain to the server's IP address.

Configuring Cloud Firewall

Linode comes with a free firewall service which made it easier than configuring all these rules on the server itself. I set up the following rules to limit access to only SSH and HTTP/HTTPS traffic.

Screenshot 2022 11 26 at 11 34 12 AM

Installing Docker and Docker Compose

To help with deploying this little service, we will use Docker and Docker Compose. Installing these was easily done by following this guide for Docker and this for Docker Compose.

Docker Files

The Dockerfile I had previously for Heroku didn't require a lot of changes: it just copies the JAR from the build directory and sets up the startup command for the image:

FROM amazoncorretto:11-alpine VOLUME /tmp COPY build/libs/*.jar app.jar CMD ["java", "-Xmx300m", "-Xss512k", "-jar", "/app.jar"]

Now we need to create a new docker-compose.yml file to set up both the application image and Postgres database:

version: '3' services: estel: image: 'estel:latest' build: context: src/main/docker container_name: estel depends_on: - db ports: - 127.0.0.1:8085:8085 restart: unless-stopped environment: - SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/estel - SPRING_DATASOURCE_USERNAME=${DB_USER} - SPRING_DATASOURCE_PASSWORD=${DB_PASSWORD} db: image: 'postgres:15.0-alpine' container_name: db ports: - 127.0.0.1:8955:5432 restart: unless-stopped volumes: - ${DATA_DIR}:/var/lib/postgresql/data/ environment: - POSTGRES_DB=estel - POSTGRES_USER=${DB_USER} - POSTGRES_PASSWORD=${DB_PASSWORD}
  • The Postgres container is named db and is added to depends_on in the Spring application (estel) container to make sure the service starts after the database.
  • The SPRING_DATASOURCE_URL environment variable points to the db service at estel database as specified in POSTGRES_DB variable.
  • The username and password are specified via a .env file on the server, and are used in both containers.
  • The DATA_DIR variable points to a directory on the server to ensure data persistence between database restarts. Without this, all the data would be lost when we rebuild the database container.
  • I'm specifying the container ports with 127.0.0.1 to ensure that they are not exposed outside of the server. I'll take care of proxying the API using Nginx below.

Configuring Nginx

For the web server, I opted to use Nginx. Here I'm setting up the api.liftoffapp.space subdomain to have it point to the Spring service I set up previously by using the proxy_pass directive. Requests coming in to api.liftoffapp.space will now get routed to port 8085 that the service is running on.

server { server_name api.liftoffapp.space; location / { proxy_set_header Host $host; proxy_pass http://127.0.0.1:8085; proxy_redirect off; } }

Configuring SSL

One thing I couldn't do on Heroku was enabling SSL on my dyno as that was only available with the paid plans. But now that's easily done with our plain old server. I was blown away by how easy setting up SSL was using Certbot. It configured everything correctly with my Nginx configurations, and was up and running in just a few minutes. It's also all free thanks to Let's Encrypt!

Accessing the Database

As you can see in the docker-compose file, the database is only accessible locally on the server. This made it impossible to connect to it from my local machine. I don't want to expose the database to the entire world, so the approach I went with is to connect to it via an SSH tunnel.

I use TablePlus as my database client and it supports connections over SSH. This is what my connection looks like:

Screenshot 2022 11 26 at 10 58 26 AM

If you'd like to connect via command line, the SSH tunnel can first be set up by running:

ssh -L 9955:localhost:8955 <SSH User>@<Server IP Address>
  • 9955 is the port on our local machine we will need to connect to.
  • 8955 is the port on the remote server that the database is running on.

We can then connect to the database using psql:

psql -h localhost -p 9955 -U estel estel

Configuring SSH Access with GitHub

As the docker-compose.yml is part of the project repo, to ensure we use the most up-to-date version of the file for deployments, we need to be able to pull down the latest from GitHub onto the server. This requires setting up SSH access with GitHub by following this guide. I cloned mine to ~/estel/ directory.

Creating a GitHub Actions Workflow for Deployments

Now that we have the infrastructure set up, the last thing we need is a strategy for deploying the Spring service. I came up with a GitHub Actions workflow to handle deploying this service with pushes to the main branch.

1. Setting up SSH Access

First off, we need a new SSH key so that our workflow can interact with the server. Navigate to ~/.ssh/ directory on the server and run the following to generate a new SSH key pair:

ssh-keygen -t rsa -b 4096 -C "your-email@domain.com"

When prompted, name it something different from the default "id_rsa" as to not conflict with existing key. I named mine "github-actions".

We need to add the new public key to the authorized_keys file so that the workflow using this key can access our server. In the same directory, run the following to append it to authorized_keys:

cat github-actions.pub >> ~/.ssh/authorized_keys

Now that we have a new SSH key for our workflow, we need to add this to the repository's secrets. In the repo, navigate to "Settings" > "Secrets" > "Actions" and select "New repository secret". I named it "SSH_PRIVATE_KEY" and the value is the private key created earlier (in ~/.ssh/github-actions).

2. Adding Other Secrets

While we're here adding secrets, we need to add a few more to be used by the workflow:

  • HOST: the IP address of the Linode server
  • SSH_PORT: the SSH port on the server
  • SSH_USER: the SSH user

Here's what my Actions secrets look like now:

Screenshot 2022 11 26 at 2 10 42 AM

These three aren't necessarily secrets but I find it easier to manage them here. You can choose to hardcode these in the workflow file itself as environment variables.

3. Building the Workflow

This deployment workflow will only have one job called "build-and-deploy" which will take care of building the JAR, Docker image, transferring the image to the server, and rebuild the container with the latest image.

First we configure the environment to use Ubuntu, actions/checkout@v3 to check out our repo, and actions/setup-java@v3 for our Java environment:

jobs: build-and-deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: distribution: corretto java-version: 11

Next we install the SSH key we added to the secrets earlier:

steps: # ... - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.SSH_PRIVATE_KEY }} known_hosts: unnecessary

We're leaving known_hosts as unnecessary here as we will configure that in the next step:

steps: # ... - name: Add Known Hosts run: ssh-keyscan -p ${{ secrets.SSH_PORT}} -H ${{ secrets.HOST }} >> ~/.ssh/known_hosts

We're generating this using ssh-keyscan command and appending it to the known_hosts file.

With that setup out of the way, we now run the Gradle build:

steps: # ... - name: Setup Gradle uses: gradle/gradle-build-action@v2 - name: Execute Gradle build run: ./gradlew build

This will create a JAR file to be used in building our Docker image, which is done with the following step:

steps: # ... - name: Build the Docker image run: docker build . --file Dockerfile --tag estel

Now to get this image to our server, we could publish this to Docker Hub and have our server pull down the latest image. Unfortunately the Docker Hub free plan only allows public repositories and we'll need to upgrade to the $5/month Pro plan to publish private repositories. Instead, we're going to save the Docker image as a tar archive to be directly transferred to the server:

steps: # ... - name: Create tar archive run: docker save --output estel.tar estel

This creates an estel.tar file in our working directory. We then transfer this over to the server using scp:

steps: # ... - name: scp tar archive run: scp estel.tar ${{ secrets.SSH_USER }}@${{ secrets.HOST }}:/home/estel/docker-images/estel.tar

Lastly, we execute some commands to deploy this image:

steps: # ... - name: Execute remote commands to deploy the image uses: appleboy/ssh-action@master with: host: ${{ secrets.HOST }} username: ${{ secrets.SSH_USER }} key: ${{ secrets.SSH_PRIVATE_KEY }} port: ${{ secrets.SSH_PORT }} script: | docker load --input docker-images/estel.tar cd /home/estel/estel git fetch && git pull docker-compose up -d
  • The docker load command creates a Docker image using the tar archive we transferred over in the previous step.
  • The git commands ensure that we have the most up-to-date docker-compose.yml file from the repo.
  • docker-compose up -d then rebuilds the estel container using the latest image.

And that's it! Now every push to main branch will trigger this workflow and deploy our Spring service to the server automatically. The final workflow file can be found here.

]]>
https://vatthikorn.com/migrating-from-heroku-to-linodehttps://vatthikorn.com/migrating-from-heroku-to-linodeSat, 26 Nov 2022 19:40:00 GMT
<![CDATA[iPhone 14 Pro]]>As I said in my Apple's Far Out event post, this year is my iPhone upgrade year. Coming from iPhone 12 Pro, the iPhone 14 Pro is not that huge of an upgrade. But it's different enough for me to have a few things to say about it.

Pre-order

The pre-ordering experience itself appeared to have gotten quite an update. After the announcement, I could pre-configure the phone with all the details from obvious ones like color and storage to carrier and even the payment method to use. This pre-order "staging" flow gets a big thumbs up from me.

As for the pre-order itself, I seemed to have won the CDN lottery which let me in right at the top of the hour. So I had the phone arriving on release day. I went with a Deep Purple one with 256GB of storage.

Setup

The conventional wisdom these days when it comes to setting up a new iPhone is to do the direct iPhone-to-iPhone transfer. I had used up about 180GB on the old phone and the initial estimate for the transfer was 50 minutes. Not too bad. Turned out that estimate was surprisingly close to reality: it was done in just over an hour and pretty much everything came over just fine. Apps needed to be re-downloaded but all of the login info, preferences, and game progresses were in place, except a couple of stragglers.

Two iPhones side-by-side doing a migration

What did not go so well was the Apple Watch transfer. I decided not to upgrade this year so I just needed to transfer over my Series 6. During the setup process, it asked me if I wanted to transfer my watch over to the new phone which I promptly said yes to. After the transfer was done and the phone was usable, I got this alert saying that there was an important software update to address iMessage and FaceTime activation issue. Wanting to avoid this and then forgetting that my watch was being transferred, I foolishly went ahead and ran the update. And sure enough, that completely messed up the watch. So I had to hard reset the watch and re-paired it from scratch. Fortunately all the watch faces I had previously were restored.

Chassis

The Deep Purple color looks pretty muted, you wouldn't be able to tell it's purple unless it's in bright sunlight. I really hope one day Apple will make pro iPhones in fun colors.

The back of a purple iPhone 14 Pro

Comparing to my iPhone 12 Pro, the iPhone 14 Pro is 0.8mm (0.03") taller, 0.45mm (0.02") thicker, and 17g (0.61oz) heavier. The increase in weight was noticeable right away and I wish the iPhone would stop getting bigger. But that's not even the worst part. This phone is 7.85mm thick, which honestly isn't that thick, but that is only for the phone body, ignoring the camera "mesa" and the lens "turrets" protruding out of it. The height of that "bump" alone is more than half the thickness of the phone body! There is no way to lay this phone flat even with the case on. I hate it so damn much.


Display

The first time I noticed the dimmed always-on lock screen, I thought that the phone wasn't locked. So I instinctively pressed the lock button expecting the screen to turn off but instead it lit back up. And when I was aware that it's supposed to be on, I expected that I could interact with the lock screen widgets or swipe down for Control Center, but in reality I first have to tap it to wake up the screen from the dimmed state, and then I could interact with it. So that took a bit to get used to. One exception to this is that if you swipe up to unlock the phone when it's in a dimmed state, it will try to do the Face ID unlock, so that's a nice touch. All these I have since gotten used to in about a week.

One aspect of the always-on display that I had forgotten to consider was around bedtime. As I put the phone on my nightstand when I go to bed, the always-on display would be entirely too bright even in its dimmed state. One easy solution is to just put the phone screen side down. But that would be impractical if you use a MagSafe charger or a regular Qi wireless charging pad. The best solution to this is to enable the Sleep Focus mode as it will automatically disable the always-on display. Oddly enough, while there is a Shortcuts action to set the Apple Watch always-on display mode, there is none for the iPhone. This is quite a glaring miss on Apple's part and I do hope they will add this in a future software update. It would be nice to have for those who don't want to use the Sleep Focus mode.

The ProMotion display was immediately obvious as soon as I picked up the phone. This was something I always noticed and wished I had every time I had to use Jess's iPhone 13 Pro Max. I love it, everything just looks and feels so smooth. The difference feels almost to the level of going from non-Retina display to Retina display.

The 2000 nits peak brightness was also really handy the handful of times I was out in super bright sunlight.

Dynamic Island

The outline around the Dynamic Island and the instruments inside were more noticeable than I expected, even with indoor lighting. But I have since gotten used to that and don't see it anymore.

Since the introduction of the notch with the iPhone X, I formed a habit of tapping on that area as a shortcut to scroll to the top of a list or webpage. But now if I have an active Live Activity session like music or timer, tapping on the Dynamic Island just sends me to the app for that activity instead of scrolling up to the top which was pretty jarring. I had to adapt to tap on either side of it instead.

Unfortunately the Live Activities API wasn't available until iOS 16.1 which was just released earlier this week. So there wasn't much interaction with Dynamic Island in the weeks I've had this phone. I'm sure in coming weeks and months we'll start to see a lot more apps utilizing this.

Camera

The new camera system is a substantial upgrade from my iPhone 12 Pro. The picture quality and low light performance are noticeably improved. I love that the 48MP sensor allows for a decent 2x digital zoom at 12MP. So now we have four focal lengths we can shoot at with 0.5x, 1x, 2x, and 3x at a good resolution.

Shooting 48MP is limited to the ProRAW mode and when doing so I could notice some sluggishness with the camera. I sometimes have to wait for a split second between shots for it to process, so I can't shoot them in as quick succession as I'd like. And previewing the photo usually takes a few seconds to become available. I'm a bit disappointed by the performance here given how great Apple touted their new A16 chip to be. I don't know what the bottleneck could be, perhaps it's the memory bandwidth. The phone also gets hot pretty quickly after shooting several 48MP photos in quick succession. This definitely will affect battery life.

But that is by no means a deal-breaker, I still love the fact that with 48MP I could crop and reframe the photo to how I like it. The size of these ProRAW DNG files comes out to around 80-90MB which is pretty hefty. I'm used to working with my 20MP Canon EOS 6D's 20MB RAW files so I'm gonna have to be a bit more mindful of how fast I'm filling up my phone storage with these.

Overall I am really happy with the incredible image quality this camera system produces. Below are some of the photos I took over in Rocky Mountain National Park using Halide. These are straight out of the camera with no post-processing done by me.

IMG 4505
Main Camera, f/1.8, 1/7000s, ISO 100

IMG 4510
Telephoto Camera, f/2.8, 1/270s, ISO 32

IMG 4549
Ultra Wide Camera, f/2.2, 1/460s, ISO 40

IMG 4603
Telephoto Camera, f/2.8, 1/99s, ISO 250

]]>
https://vatthikorn.com/iphone-14-prohttps://vatthikorn.com/iphone-14-proWed, 26 Oct 2022 02:30:00 GMT
<![CDATA[My Experience wih eSIM]]>I said in my previous post that I was not thrilled Apple decided to remove physical SIM card slot from the new iPhone 14 models sold in the US as that would make traveling outside of the country more troublesome. But that wasn't big enough of an issue for me to not pre-order the new iPhone 14 Pro. I'm sure I could figure something out when the time comes.

So to get ahead of the iPhone release day, I figured I should convert my current physical SIM card in my iPhone 12 Pro to be eSIM. iPhones have had support for eSIM since the iPhone XS released in 2018, I just never bothered to get on the bandwagon.

Apple has a handy support page outlining pretty much all you need to know about eSIM on iPhone. All I had to do was following the instructions on that page on how to convert physical SIM to eSIM and I was done in less than 5 minutes. For some carriers you would have to go through hoops to do this conversion, but with my AT&T SIM there was that "Convert to eSIM" button that took care of everything I needed right in the Settings app. So credits to AT&T on that.

The iPhone day came and I was able to transfer the eSIM to my iPhone 14 Pro without a hiccup even though AT&T service at my place has been utterly garbage since moving to Colorado.

Switching Carrier While on eSIM

Since AT&T service was so bad and full of dead zones here in Colorado, I decided that it's time to switch. My plan wasn't that great either as I only got 4GB of 4G data, and to upgrade to 5G with more data would cost more than I was willing to pay for.

Jess uses T-mobile and she is getting much better coverage around these parts, including 5G. Verizon Wireless was a no-go as I need a GSM phone for traveling so T-mobile was really my only option. But their cheapest plan was still more expensive than I'd like.

I had been hearing about Mint Mobile recently, and since it uses the T-mobile network I decided to check it out.

Trial with Mint Mobile

Mint Mobile offers a free 7-day trial and it could be activated right within their app (which is a much better app than AT&T app). It walked me through the steps and installed a new eSIM on my phone. Within minutes, I had a brand-new network active on my phone alongside my existing AT&T plan. No need to wait for the physical SIM card to arrive in the mail.

This was my first experience with dual SIM on my phone and I was really impressed at how nice and easy it was to configure and manage the two eSIMs on iOS. I could select which number to use for voice or data. So I could use my AT&T number for voice and Mint Mobile for data. The coolest part was the phone can automatically switch the data network depending on which one currently has better service.

Transferring Number and Activating Mint Mobile Service

It didn't take much for me to be convinced by Mint Mobile. The bar was already pretty low to begin with (no pun intended). Their plan is significantly cheaper too. I picked their 10GB plan with 5G that costs only $20 a month for the first 3 months, and $35 a month for 3 months after that. One thing to note is with Mint Mobile, you have to pay 3, 6, or 12 months in advance, which makes sense given how low their prices are.

I was paying AT&T $55 a month for my measly plan. So I’m now paying almost 2 times less per month and get more than twice the data, including 5G.

Similar to the trial, after I purchased the plan, I did the number transfer and activation right in the app. Again, the process was really smooth. I'm documenting it here in case it might be useful to others.

In your AT&T account, go to your profile page, and select the "People & permissions" tab.

Scroll down to the "Transfer phone number" section and select "Request a new PIN". This will generate a six-digit PIN that you'll need to provide to transfer the number to another provider. Also take note of the account number at the top of the page.

In the Mint Mobile app, in the activation flow, put in your AT&T account number and PIN when prompted. They will submit the number transfer request with AT&T.

You should receive a text from Mint saying that the number failed to transfer. But don't retry yet as you should also get a text from AT&T saying that they received a request to transfer your number. Follow the instructions by replying with the code in the text.

Now that you've authorized AT&T to transfer the number, resubmit the transfer request in the Mint Mobile app. This now should go through successfully.

It's probably a good idea to restart your phone at this point.

Now in Settings > Cellular, you should see two eSIMs listed both with your number. You can tell that the transfer went successfully since your number is now associated to an eSIM on Mint network, and the AT&T line shows no service. You can turn off and/or delete the old eSIM and everything should now be working.


From buying the plan to transferring my number and activating it on my phone, the whole process took less than an hour in the comfort of my home. There was no customer representative I needed to talk to, no waiting for the SIM card in the mail, or visiting a store to activate the plan. I must say I am pretty sold on the eSIM lifestyle.

I imagine once this is more widely adopted in the coming years, we’ll all look back and think how archaic it was that we needed a hole in our phone for a tiny plastic card so that we could get cell service on it, just like needing a CD drive in computers so we could play movies.

It would no doubt be a bit annoying when I go to Thailand. This Apple support page does list a couple of carriers in Thailand that support eSIM, and my research on their websites seem to suggest that I should be able to activate a phone plan with eSIM while I’m there. I’ll update this post with my experience on that.

]]>
https://vatthikorn.com/experience-with-esimhttps://vatthikorn.com/experience-with-esimSun, 25 Sep 2022 02:20:00 GMT
<![CDATA[Apple's Far Out Event Initial Reactions]]>Like a lot of Apple nerds, I'm on a two-year cadence with my iPhone purchases and this means my iPhone 12 Pro I bought in 2020 is due for an upgrade this year. So I was pretty eager to see what Apple would announce today at their annual iPhone event.

But before we go any further, September is Childhood Cancer Awareness Month and for the past 4 years the fine folks at Relay FM podcast network put together a fundraising for St. Jude Children's Research Hospital. We all know a whole lot of us are about to drop an absurd amount of money on new tech that we definitely do not need. To steal the pitch from ATP: a new iPhone 14 Pro starts at $999 and then we add a couple of hundred bucks more on upgrades, accessories, and tax without giving it that much thought. So if you could spend $1,000+ on unnecessary gadgets, you can certainly throw at least a couple of hundred bucks at St. Jude. I can't think of a better cause to support to than this.

Apple Watch Series 8

The Apple Watch Series 8 is a bit underwhelming to be honest. The new temperature sensor is really neat and I love that they focused its use towards ovulation tracking. They didn't make it clear in the keynote whether we can use this sensor for general body temperature tracking. It makes sense that this would be limited to only measuring body temperature changes from the baseline and not absolute body temperature since the wrist is a terrible spot for that. That's really the only update to the Apple Watch which is why I'm likely not going to upgrade this year and just stick with my Series 6.

Side note: With its diversity and inclusion efforts, I found it a bit surprising that Apple did not use a more inclusive language when discussing menstrual and ovulation tracking. They exclusively refer to only women when talking about this feature when not every woman ovulates and women aren't the only people who ovulate. So hopefully they'll do better next time.

Apple Watch Ultra

The highlight of the event for me was the Apple Watch Ultra. I've seen the rumors for months now about this new "rugged" version of the Apple Watch and never really thought much about it as it didn't sound that applicable to my use. But it really impressed me. The coolest part of this Apple Watch Ultra is its ability to be a full-featured dive computer. Before I started wearing the Apple Watch I used to wear my analog watch when scuba diving, and since the Series 2 with its 50 meters water-resistance rating I've always thought it would be cool to wear my Apple Watch while diving and potentially use it as a dive computer. And this Apple Watch Ultra pretty much delivers on that.

It has the EN 13319 certification which makes it a proper dive computer. This upcoming Oceanic+ app sounds like it's going to be doing the heavy-lifting here. They say the app will handle calculating no-decompression limits, safety stops, and providing ascent rate warning. The bare minimum for a dive computer. I love that it also tracks water temperature, GPS locations, and dive profile and can sync all that to your iPhone. Though I couldn't find any mention of no-fly time or nitrox so they might not be supported yet at launch. But the beauty of this being a smart watch is that I don't see a reason why Oceanic couldn't provide future updates to add support for those and other functionalities.

I'm curious if they're going to provide an API for developers to access data from the depth gauge and develop apps for diving purposes. Or perhaps this could also be a partnership just with Oceanic since they're a reputable company with a history of making dive computers who know what they're doing. Allowing any third-party developer to access this data to develop apps for such a critical purpose might not be a very smart thing to do.

This is also only rated for 40 meters (130 feet) which is right around the limit for recreational diving. For comparison my Suunto Zoop Novo, which is also for recreational diving, is rated for 80 meters and has no-fly time and nitrox. Its CR 2450 battery also lasts years compared to just a couple of days at most for the Ultra. If I were to get this $800 Apple Watch and use it for scuba diving, I would still bring my $300 Suunto dive computer down with me just for peace of mind.

Aside from the diving capabilities, the Ultra has a pretty cool new compass app that not only lets you mark waypoints but also keeps track of your GPS locations so that you can retrace your steps. They also really try to sell this for off-the-grid kind of adventures, but the supposed 36 hours battery life is comical for trips like those.

As someone who enjoys hiking in the mountains and scuba diving, I feel like this would be perfect for me. But it's really bulky so I don't think it will work as a day-to-day watch. It's also as expensive as the base iPhone 14. So I don't think I'm going to be getting this any time soon.

AirPods Pro 2

I love the original AirPods Pro and have been using them almost daily for the past three years. Most people who bought them a few years back would probably feel the pain of the reduced battery life by now. But I recently had mine replaced due to sound issues so the batteries on them are still fresh. This means I don't really have a reason to upgrade.

The 2x noise cancellation sounds great. But the current one already sounds so good, I can't imagine what doubling that would be like. Adding the capacitive touch to the stems for volume adjustment is for sure a big quality-of-life improvement. Allowing charging via Apple Watch charger or MagSafe gets a big thumbs up from me.

All in all, a decent update when looking at them together. I don't really see any single feature that makes me want to get these right away. I'm probably going to wait a while before upgrading.

iPhone 14

I'm glad they finally bring the larger size to the non-Pro iPhone. Also I think this is the first time ever on a brand-new iPhone that it doesn't get a new chip. But I think for those buying the regular iPhone 14, they probably wouldn't notice (or care about) a performance difference anyway. The camera upgrade looks like it's going to take much better low-light photos.

The emergency SOS via satellite is really a nice feature to have that you hope you never need. This and the car crash detection in both the Apple Watch and the iPhone make for pretty interesting marketing messages. The Find My via satellite feature sounds much more useful to me. They say this is available for free for the first two years but didn't reveal how much it will cost after that. I'm guessing it's going to be included in either iCloud+ or Apple One bundle.

Gone is the SIM tray as it now only supports eSIM, at least in the US. I'm really annoyed by this removal as it's going to be such a pain in the rear to travel abroad.

iPhone 14 Pro

iPhone 13 Pro's camera bump (mesa?) is already too big. And it's even bigger on the 14 Pro. It's now more than half the thickness of the body itself! This has gotten way out of hand and it has to stop. As good as the cameras might be, they’re not worth this obnoxious design imperfection. I just want my phone to be able to sit flat without wobbling, and cases won't fix that either. I really hope this is the end of it and that they move to periscope lens design or something else that get rid of this bump in future iterations.

The 48MP is a huge jump from 12MP, but the 4x increase makes sense with their use of the quad-pixel sensor. It also looks like the Pro has the exact same camera system as the Pro Max model which is great for me as I cannot do with the Max size. I hope they keep it this way in coming years.

The rumors were spot-on with the hole-punch notch dubbed "Dynamic Island". I think it has one big regression from the notch: compared to the iPhone 14's notch, the screen space intruded on by this pill is quite a bit lower than the notch. So you end up getting less usable vertical screen real estate. We'll find out when it's actually out and in people's hands to see how much of an issue that is. Still, the software for it is so clever and I can't wait to see what developers are going to do with it. It also looks like it's not just the screen surrounding the hole-punch that is tappable but the hole-punch itself as well. The fact that they put so much thought and attention into this made me a bit discouraged since that probably means this design imperfection is not going anywhere any time soon.

The always-on display has been pretty obvious since WWDC earlier this year with the introduction of the Lock Screen widgets. This is a long-overdue feature as it's been available on Android phones for a while now.

Unfortunately the colors of these Pro iPhones are so dull and boring again this year. I just want some fun colors for my iPhone. I'm probably going to get the deep purple one as that's the most fun color we have.

]]>
https://vatthikorn.com/apples-far-out-event-reactionshttps://vatthikorn.com/apples-far-out-event-reactionsThu, 08 Sep 2022 06:45:00 GMT
<![CDATA[Experimenting with DALL-E]]>I recently got an invite to DALL-E so I'm here to share some of the images it generated with my prompts.

Two Formula One cars driving through snowy Yellowstone National Park at sunrise

dall e f1

Not bad, but those don't look at all like F1 cars.

An orange tabby cat driving a Formula 1 car in Monaco at night

dall e monaco

Looks like he's having a blast in that Ferrari.

Now I figured I'd try something that might be easier.

Various Thai dishes laid out on a table viewed from top down

dall e thai food

I was pretty impressed with this one. You can see rice, curries, some sort of fried dishes, and maybe salads? What's pretty cool is three of them have fork and spoon which are required for a proper Thai meal.

A table full of Isaan dishes with a backdrop of mountains from northeastern Thailand

dall e isaan

These look almost real. I suppose there are a lot of example images on the internet just like these.

Let's see how well it knows this one Thai dish.

Authentic panang curry

dall e panang

These look quite photorealistic, have the correct color, and some even have makrut lime leaves. Though unfortunately it seems to only know what panang curry is like from a western perspective as they all look too soupy.

I couldn't find any information about running DALL-E with non-English prompts, but to my surprise it accepted my Thai prompts and attempted to generate somewhat relevant images.

แกงพะแนง

(panang curry)

dall e panang thai

Not even close. But at least they look like they were photos taken in Thailand.

ข้าวมันไก่

(chicken rice)

dall e chicken rice

Now these look better as they're at least images of food. But they're no where near what chicken rice is supposed to look like.

I figured I should try something easier by giving it the same prompt as one of their examples, but in Thai.

เก้าอี้เท้าแขนในรูปของอะโวคาโด

(An armchair in the shape of an avocado)

dall e avocado chair

Way off again. But again, they look like they could be sceneries from Thailand... and some gyozas?

Now let's try something completely fictional and/or absurd.

Gandalf, Dumbledore, and Spock having a hotpot meal aboard the Millennium Falcon

dall e hotpot

A group of adventurers consisting of four hobbits, two men, an elf, and a dwarf in boats traveling down a great river towards an ominous volcano looming off in the distance, digital art

dall e lotr

A man with long brown beard, blue eyes, face as red as a ripe apple, wearing an old battered hat with a tall crown and a long blue feather stuck in the band, blue coat, and yellow boots hopping and dancing down a path carrying a large leaf as a tray for a pile of white water lilies

dall e bombadil

Two Allomancers wearing cloaks flying through an ash-covered city at night by jumping off coins

dall e mistborn

A bulbous and elongated creature with smoky, translucent skin that its bones can be seen, with dozens of limbs that look like they come from different animals

dall e mistwraith

Charles Leclerc winning the 2022 Formula One World Championship

dall e charles

A Lascaux cave painting of a space shuttle

dall e shuttle

Star Wars as Egyptian hieroglyphs

dall e star wars

Welp, there goes all my credits. That was fun.

]]>
https://vatthikorn.com/experimenting-with-dall-ehttps://vatthikorn.com/experimenting-with-dall-eWed, 31 Aug 2022 04:00:00 GMT
<![CDATA[Photos from Colorado]]>Back in March Jess and I took a trip out to Colorado. As per usual it took me forever to process the photos I took and get around to sharing them. Here are some of my favorite shots.

View of the Flatirons from the beginning of the Flatirons trail
iPhone 12 Pro, 26mm, f/1.6, 1/3500s, ISO 32

View of the Flatirons from the beginning of the trail. This was our first hike on the trip. We went from sea level in Florida to 5,700 feet above sea level at the start of this trail, and then hiked up to almost 7,200 feet. The top of this trail was right under the peak of First Flatiron, which is the rightmost slab seen here. Needless to say we were struggling, but we got there and it was worth it.

View of Second Flatiron on the way to First Flatiron
Canon EOS 6D, 50mm, f/8, 1/100s, ISO 100

Looking over to Second Flatiron on the way to First Flatiron.

View of the west from right under the peak of First Flatiron
Canon EOS 6D, 50mm, f/22, 1/400s, ISO 400

Looking out west from right under the peak of First Flatiron.

Sapphire Point Overlook
iPhone 12 Pro, 26mm, f/1.6, 1/25000s, ISO 40

View from Sapphire Point Overlook. You can see Breckenridge Ski Resort off in the distance on the left.

The Stanley Hotel
iPhone 12 Pro, 14mm, f/2.4, 1/126s, ISO 25

The Stanley Hotel that inspired the Overlook Hotel in Stephen King's The Shining.

The Central Garden Area at Garden of the Gods
Canon EOS 6D, 50mm, f/22, 1/125s, ISO 200

The Central Garden Area at Garden of the Gods.

The Kissing Camels from the west side
Canon EOS 6D, 50mm, f/5.6, 1/1000s, ISO 50

The Kissing Camels.

Pikes Peak from Garden of the Gods
Canon EOS 6D, 50mm, f/22, 1/160s, ISO 400

Pikes Peak seen from Garden of the Gods.

Photo of snow-packed trail
iPhone 12 Pro, 52mm, f/2, 1/1597s, ISO 25

We hiked the Emerald Lake trail the day we visited Rocky Mountain National Park. Even in late March, the trail was covered in feet of snow. But we did come prepared with traction devices strapped on our shoes, otherwise there was no way we would make it up there.

Longs Peak and Glacier Gorge seen on the way to Dream Lake
Canon EOS 6D, 50mm, f/16, 1/320s, ISO 100

This view of Longs Peak and Glacier Gorge seen on our way to Dream Lake really blew me away.

Hallet Peak from Dream Lake
Canon EOS 6D, 50mm, f/22, 1/80s, ISO 100

Hallet Peak seen from Dream Lake.

]]>
https://vatthikorn.com/photos-from-colorado-2022https://vatthikorn.com/photos-from-colorado-2022Fri, 01 Jul 2022 06:10:00 GMT
<![CDATA[Scribble in Thai on iPadOS 16]]>As I mentioned in my WWDC 2022 reactions post on Monday, one surprise feature for iPadOS 16 is Scribble in Thai. Strangely there is no mention of this anywhere on the feature list page and only shown briefly on the feature tiles slide at the end of the iPadOS section in the keynote.

Screenshot of the feature tiles slide

I would not have guessed Thai to be the third script to gain support after Latin and Chinese. There are so many other scripts that would have gotten more use by way more people like Arabic or Devanagari. Why Thai? I don’t get it but I’m certainly happy to see it.

I decided to live dangerously and installed iPadOS 16 developer beta 1 so that I could try this out.

Animated GIF of the Try Scribble

I’m super impressed at how well it could detect and convert my chicken scratch handwriting.

Animated GIF of the scribble saying 'Hello WWDC' in Thai
"Hello WWDC!"
Animated GIF of the scribble saying my full name in Thai
It even got my Thai name correctly, except the space

This is not the only Thai-related new feature this year. The Translate app now supports Thai, which means Safari web page and system-wide translation support!

Added support for Turkish, Thai, Vietnamese, Polish, Indonesian, and Dutch in Safari web page translation.

[…]

The Translate app and system‑wide translation add support for Turkish, Thai, Vietnamese, Polish, Indonesian, and Dutch.

]]>
https://vatthikorn.com/scribble-in-thai-ipados-16https://vatthikorn.com/scribble-in-thai-ipados-16Thu, 09 Jun 2022 05:50:00 GMT
<![CDATA[WWDC 2022 Initial Reactions and Thoughts]]>Overall Event Impression
  • Over the weekend and today, my Twitter feed has been filled with people going to the event at Apple Park. They get to tour the new Developer Center and visit the Ring Building itself. I’d be lying if I said I didn’t feel some serious FOMO.
  • Craig really took it up a notch with his showmanship during the presentation. They’re definitely really playing up and leaning into our obsession with him. And I’m here for it.

iOS 16

  • The new Lock Screen personalization is a really refreshing change as the old one hasn’t really changed much since the original iPhone aside from notifications.
  • Face ID on iPhone now also works in landscape. Hopefully this means it will be easier to unlock the phone without having to adjust our heads too much, if at all.
  • I think the CarPlay sneak peek blew everybody away. This is a clear major sign from Apple that they have been working on a car. This may be the first thing that they revealed to the public that was developed as part of that project. I wish Tesla would support this.

watchOS 9

  • I always track my workouts with my Apple Watch and all these new workout views look incredibly useful: heart rate zones, detailed workout summary, customizable workouts, and running-specific metrics like stride length and ground contact time.
  • The medication tracking is going to be really useful as I take allergy meds every year when spring comes around. With this I won’t have to use a reminders app to remind myself anymore. The drug interactions warning is also a very nice touch.
  • I love to see those new sleep tracking features. It’s been a long road but now the watch is finally a full-featured sleep tracker.
  • Sadly still no custom watch faces. At this point I feel like that’s never going to happen.

MacBook Air

  • This is the second Mac laptop that’s designed specifically for the Apple silicon era. Like the MacBook Pro, it also comes with MagSafe. But unlike the MacBook Pro, the MagSafe connector and cord color match that of the MacBook Air itself.
  • Speaking of colors, I am disappointed that it only comes in four bland colors. With this being the world’s best-selling laptop, they really should have followed the iMac approach and gone with more colorful choices.
  • For their cheapest Mac laptop (aside from the M1 MacBook Air), it even comes with the Liquid Retina display. This makes me feel worse about my brand-new Studio Display that only has a basic LCD display but is much more expensive.

macOS Ventura

  • Continuity Camera using the iPhone is neat. But it does feel clunky and inelegant. It’s almost as if they admitted that the built-in cameras suck. Especially with the Studio Display camera being awful, this is almost like an apology feature. The real solution is to just fix the camera hardware on the display. I’d rather have a good built-in camera than using this. Though the desk view thing is damn impressive but I personally don’t see a use for it.
  • RIP the old Mac System Preferences design. I’ll miss the classic layout but a refreshed design was for sure needed. And now it’s also more consistent with iOS and iPadOS.
  • No new Music app. This app is so bad and I hope they address this next year.

iPadOS 16

  • Full external display support is long overdue and we finally have it!
  • The display zoom adjustment to get more space is something I didn’t know I need. But I am writing this on my 11-inch iPad Pro using split screen with the “More Space” option and this feature certainly makes everything feels less cramp.
  • A big surprise for me is Scribble in Thai. This is not mentioned anywhere on the feature list page, but it was featured on a slide. I'm going to have to check this out.

Screenshot of the feature tiles slide

Everything Else

Notice that the list for each of those OSes above are only features that are specific to each of them. That is something I want to highlight with this year’s announcements: almost all of the headlining features are now available on all three of Apple’s major OSes. These are the fruits of Apple’s labor in the past several years of building APIs and frameworks to allow for easier cross-platform development like Mac Catalyst and SwiftUI. This creates an OS ecosystem that contains more feature parity and I must say that I do like the direction this is going.

Here are my thoughts on these headlining features that are available on all platforms.

  • Not only did I get what I asked for with marking messages as unread, Messages also comes with the ability to edit and unsend messages! Though you can only do it for up to 15 minutes after sending the message. An interesting rule but I suppose I can understand why.
  • I don’t think this was mentioned in the keynote, but Focus mode setup now includes the ability to choose whether to allow notifications or silence them! I am super excited to use this.
  • The Home app finally got the redesign it so sorely needed, and it looks pretty slick.
  • The iCloud Shared Photo Library is such a long time coming and it is so much better than what I had imagined. It took them quite a long time to add this feature but now I can clearly see that they put a lot of thought into this and wanted to do this right. It’s not just a simple sharing of your entire photo library and there are many ways to control how you share them, like starting from a specific date, only including photos of certain people, doing it right in the Camera app, or when members are nearby.
  • Stage Manager seems nice but I’m not sure if it will be useful for me on the Mac since I like the freedom of putting my windows wherever I want. Though it might come in handy now that I am using just a single Studio Display where before I used to have two smaller monitors. However, this on the iPadOS makes much more sense and I’m looking forward to using it.
  • Passkeys look promising. There’s no doubt this is better than passwords. And with the recent announcement that they’re working on this standard with Microsoft and Google, I am hopeful for the future without passwords. But for now, during this transition period, I wonder what kind of support and troubleshooting headaches this will cause for apps and websites that choose to add this.

Some Interesting Tidbits from the Feature List Pages

Added support for Turkish, Thai, Vietnamese, Polish, Indonesian, and Dutch in Safari web page translation.

[…]

Siri processes more types of requests offline without an internet connection, including Home Control (HomeKit), Intercom, and Voicemail.

[…]

Apps need your permission before accessing the pasteboard to paste content from another app.

[…]

The Hidden and Recently Deleted albums are locked by default and can be unlocked using your iPhone authentication method: Face ID, Touch ID, or your passcode.

[…]

Photos identifies duplicate photos in Albums > Utilities so you can quickly clean up your library.

[…]

Save a list as a template to reuse it for routines, packing lists, and more. Create a link to publish and share a template with others, or download templates that others have shared.

[…]

The Translate app and system‑wide translation add support for Turkish, Thai, Vietnamese, Polish, Indonesian, and Dutch.

[…]

Fitness+ subscribers who use AirPlay to see their workouts can now get real-time personal metrics from their Apple Watch on compatible displays.

Wish List Performance

My wish list this year did not do so well. I only got the marking messages as unread and Focus mode block list.

  • For the full resolution photos in Shared Albums, I tested on beta 1 and they’re still resized to 2049px.
  • Same with the Home Control tiles in Control Center. They still ridiculously shuffle around when I interact with them.
  • Studio Display camera fix is unknown. I don’t run the beta on my Mac and haven’t seen any reports on whether there’s an update to the display.
  • Sadly no Mac Pro sneak peek but we got the M2, so that pretty much confirms that the Mac Pro will come with a variant of the M2 instead of the M1.
  • Screen Time for tvOS is not only missing, tvOS itself wasn’t mentioned at all during the keynote which is discouraging for the platform.
  • Still no interactive widgets. Maybe next year.

So I only got two (maybe three) out of the eight on my list. But as you can see, I am quite excited with a lot of these features announced today. Let the beta season begin and happy WWDC!

]]>
https://vatthikorn.com/wwdc-2022-reactionshttps://vatthikorn.com/wwdc-2022-reactionsTue, 07 Jun 2022 05:45:00 GMT
<![CDATA[WWDC 2022 Wish List]]>All my other WWDC wish list posts: 2016, 2017, 2019, 2020, 2021, 2023.

We're less than two weeks away from WWDC 2022! Like the past two years, this year's WWDC is going to be fully online which I think makes for a much better and more accessible way to hold this conference. Last year was the first year that I participated in surrounding events and met people in the Apple developer community with events from Diversity in Swift, iOS Dev Happy Hour, and WWDCCommunity Week as well as the Digital Lounges. So this year I'm looking forward to participating in those again.

But before all that, we have the keynote on Monday to start off the week, and like years past, here is my wish list for this year's updates and announcements.

Mark Messages as Unread

For such a popular app on the Apple platform, Messages is quite lacking compared to its competitions. One big glaring miss is that there's no way to mark messages as unread. Look, we've all been there. Sometimes we can't reply to certain messages right away or we accidentally opened a message that we planned to look at later. And with the Messages app, once a message is opened there's no way to mark them as unread, and this results in people forgetting to reply to those messages. Imagine how much anxiety and hurt feelings would have been saved if this feature existed.

Full Resolution Photos in Shared Albums

I love using iCloud shared albums to share photos with friends and family when going on trips. But photos added to those albums get resized down to 2049px. While this might be sufficient when viewing on a phone or tablet, it's too small for viewing on a 4K TV or 5K monitor. And it's entirely unusable if you want to make large prints out of them. It would be ideal if they allow for uploading full resolution photos in shared albums. And yes, this would require more storage and we know how much Apple hates giving away free storage. So I would be perfectly happy if they make this feature only available to paid iCloud+ users, or count that extra space towards your iCloud storage quota. When you think more about it, the current approach of resizing and uploading a copy to the shared album doesn't really make much sense. If my entire photo library is already stored in full resolution in iCloud, it would be more efficient to just use that original copy of the photo for the shared album instead of having to make another copy just for sharing.

Studio Display Camera Fix

My long-awaited wish was granted back in March when Apple released the Studio Display. But the big brouhaha around this display is its webcam with the embarrassingly bad picture quality. I was excited when this was announced and reserved my judgement when reviews came out critical about the camera. After two full months of waiting, I finally got mine and the camera really is not great. My $70 Logitech webcam looks much better than this built-in one. For a $1,600 monitor, the camera hardware should be at the very least the same as front-facing camera on the latest iPhone, and ideally the back camera. But they decided to use a lesser camera that somehow looks worse compared to the exact same camera in the iPad. The recent software fix they released barely made it better so I do hope that with macOS 13, they will further improve this.

Focus Mode Block List

iOS 15 introduced Focus which allows for better control of notifications and alerts. As a person who limits the amount of notifications to be as few as possible, I was super happy that they added this feature. But there's one huge pain point that I need them to address when it comes to setting them up. Currently when setting up a Focus, you have to select individual apps you want to allow notifications while in that mode. So if I want to prevent a small set of apps from sending me notifications at a certain time of day (like work-related apps), I have to manually select every single app except those few. It's incredibly cumbersome. So I hope with iOS 16, we would be able to define a block list for a Focus mode. This would make this feature significantly more useful.

Home Controls in Control Center

Home Controls in Control Center is a really convenient way to interact with HomeKit devices. But it is frustrating using those tiles. The first offense is that I cannot specify the position of each of the device tiles. That's a bit annoying but whatever, I could just get used to their "recommended" positions. But no I can't do that either, because these damn tiles never stay in the same place! Every time I make adjustments to a device, they literally shuffle around in front of my eyes! So I can't rely on muscle memory and have to carefully look for what I want. Just take a look at this screen recording of me interacting with HomeKit in Control Center. They seriously need to address this.

Some Other Stuff

  • The Mac Pro was teased during the spring event back in March, so we know for sure that it's coming. I really hope we get a sneak peek of it during the keynote, but I don't expect it to ship until the end of the year.
  • I sound like a broken record at this point but I would really like Screen Time for tvOS. I thought this wouldn't be that big of an ask but Screen Time has been around since 2018 and we still don't have it for the Apple TV.
  • Home Screen widgets are great but I really think they need to make them more interactive.
]]>
https://vatthikorn.com/wwdc-2022-wish-listhttps://vatthikorn.com/wwdc-2022-wish-listSat, 28 May 2022 22:55:00 GMT
<![CDATA[The Lord of the Rings by J. R. R. Tolkien]]>Not many people will disagree with me when I say that The Lord of the Rings trilogy by Peter Jackson is the greatest film trilogy of all time. Despite having watched all three films through many times (including the extended edition), I had never read the book. For years it was a goal of mine to do so, and in my top books of 2021 post I committed myself to read The Hobbit and The Lord of the Rings this year. Last month I finally accomplished that goal, having read both of them back-to-back. It took me just over a week to read The Hobbit and five weeks for The Lord of the Rings.

There’s no shortage of The Lord of the Rings reviews and analyses on the internet, so in this post I’m not going to go that much into my thoughts on the story. What I want to focus on instead is the actual physical copy I read this on.

Some Quick Thoughts on the Story

Even though I already knew all the main story beats so well from the films, it did not at all take away from my enjoyment of the book. I was enthralled from start to finish and there was rarely any dull or slow moment. For years I had been avoiding reading the book as I had this preconceived notion that it was going to be difficult to read and the plot would proceed at a glacial pace, and that it would take me months to get through it. I was happy to not find that to be the case.

These days I don’t read much fiction, and almost never something that is this long. This is one of those rare books that made me feel this huge sense of loss after finishing it. I sat down to read this book every single day for over a month, and I was truly immersed. It felt like I was on this adventure with these characters and went through thick and thin with them. Reaching the end of their story and having to leave them behind just left me feeling sad and empty. As dramatic as it might sound, it was almost as if I had lost some purpose in life now that I won’t get to sit down and continue on the journey with them. I know this phenomenon is not uncommon among fiction readers, but I honestly don’t remember the last time I felt this way; I read the entire Harry Potter series a few years back—which is more than doubled in word count—and I don’t recall feeling this way after completing that.

The 2021 Illustrated Edition

Going into this, I knew that I wanted to read it with a physical copy. I also specifically wanted a single-volume edition with all three parts contained in one binding. The one I ended up getting is the illustrated edition released late last year. This is a hardcover and includes illustrations in full color done by Tolkien himself.

With a $60 price tag, this is not a cheap book, probably the most expensive book in our humble home library (excluding college textbooks of course). It is quite a fancy book, and I know that “you’re not supposed to read fancy books” as John Green said. But this is the only good copy I have and I just wanted to read with it.

The Lord of the Rings book with dust jacket on

On the outside, this book is just gorgeous. The dust jacket comes in gray and features the original illustration from the first edition of the book with Tolkien's signature. The page edges are colored red which gives out a nice contrast. The best part about the exterior design is the Ring Verse on the fore-edge. It almost made me want to shelve this book backwards so this would be visible.

The fore-ege of the book with the Ring Verse

With the dust jacket off (as I always do when reading hardcover books), you will find that the Eye of Sauron illustration is actually printed on the cloth hardcover itself and not on the dust jacket which I think is a nice touch. The same illustrations on the dust jacket spine can also be found on the hardcover.

The Lord of the Rings book with dust jacket off

Close-up photo showing the binding
The book is nicely case bounded which allows for it to lay flat.

With 1,178 pages, this book is not light: it weighs 1,585 grams (yes, I did put it on a scale). So it’s not one of those books that you would want to bring with you to read in a park or on a flight.

Inside there are 32 illustrations (excluding the maps) inserted throughout the book, between relevant pages. It also comes with a nice little bookmark.

The book laid flat on a table on a page with an illustration of Orthanc

I actually purchased a box set of The Lord of the Rings a while back, but it comes in three separate paperback books. The main reason I didn’t want to read those was the low print quality of the text. I don’t know what the correct term for this in publishing world, but it looks almost like these pages were photocopied from older, lower-quality edition of the book. On the other hand, this single-volume illustrated edition has high print quality and sharper text which made for a much more pleasant reading experience.

Side-by-side comparison of the text with the paperback edition

There are two 10.5”×14.5“ fold-out maps drawn by Christopher Tolkien. One of the west of Middle-earth and the other of a more close-up area near Rohan, Gondor, and Mordor. I found these maps tremendously helpful with establishing spatial awareness when it comes to the plot and character movements throughout the story.

Two included maps laid out on the table

This 2021 illustrated edition of The Lord of the Rings is indeed a fancy book. To me it is well worth the premium price for the entertainment value I got out of it. Given the quality of this printing, I’m sure it will remain in good condition in my book collection for many years to come.

]]>
https://vatthikorn.com/books/the-lord-of-the-ringshttps://vatthikorn.com/books/the-lord-of-the-ringsSun, 17 Apr 2022 21:40:00 GMT
<![CDATA[Thoughts on Apple’s Peek Performance Event]]>I didn’t think this event was going to be anything that exciting. Just a regular spring event for iPhone SE, iPad Air, and perhaps MacBook Air refresh. But boy, was I really in for a treat this time. As you may know, for a few years now I had been pleading for a new less expensive Apple-branded display. Here’s what I wrote most recently back in June of last year:

Again, here is all I'm asking: take out that 5K 27-inch panel in the discontinued iMac Pro (or the one you're putting in the new 27-inch Apple Silicon iMac), put it in an external display chassis, maybe add some bells and whistles like a webcam, USB-C ports, fancy speakers, etc., slap a $1,300-1,500 price tag on it (knowing Apple), and take my money.

And look at what they announced:

[Studio Display] features an expansive 27-inch 5K Retina display, a 12MP Ultra Wide camera with Center Stage, and a high-fidelity six-speaker sound system with spatial audio.

[…]

With 600 nits of brightness, P3 wide color, and support for over one billion colors, images come to life with spectacular detail. True Tone technology automatically adjusts the display’s color temperature as the environment changes for a more natural viewing experience. An industry-leading anti-reflective coating enables incredibly low reflectivity for better comfort and readability.

[…]

Studio Display also includes a studio-quality, three-microphone array with an especially low noise floor for crystal-clear calls and voice recordings.

[…]

Studio Display has three USB-C ports that deliver speeds up to 10Gb/s to connect high-speed peripherals, storage, and networking right into the display. A Thunderbolt port enables users to connect Studio Display and any connected peripherals to their Mac with a single cable. The same cable also delivers 96W of power to a Mac notebook, allowing Studio Display to even fast-charge a 14-inch MacBook Pro.

Never before in my time of following Apple had my wish been granted almost so spot-on. The Studio Display has everything I asked for, and then some. Not only that it has a webcam, it also supports Center Stage. Not only that it has speakers, it also supports spatial audio.

The announcement itself was such a roller coaster of emotion. They showed the Studio Display and went into all of its features, talking about the camera, speakers, built-in A13 Bionic chip, etc. And that’s when I (and my bank account) got really worried: this thing is packed full of features and I thought that it for sure was going to be at least $2,200-2,500. So when it was revealed to be $1,599, I never celebrated so hard for something that is still so expensive. But given the precedent with the $5,000 Pro Display XDR with a $1,000 stand, this Studio Display price tag is quite reasonable in my opinion.

Annoyingly the base configuration comes with a non-height adjustable stand which is such a cheap move from Apple given how much it already costs. To upgrade to a height-adjustable stand without the nano-texture coating is extra $400, making it a nice rounded $2,000. Way too much for a computer monitor, but that configuration is what I ordered.

Not to make excuses for how ridiculously expensive this monitor is, but for comparison the Thunderbolt Display that came out in 2011 had a $1000 price tag which, adjusted for inflation, would cost around $1,250 today. That monitor came with a non-retina 1440p panel and 720p camera. So the new Studio Display costing $350 more with all of these extra features is not out of character for Apple.

Mac Studio

This was another surprise for this event. This Mac and the M1 Ultra look like a beast of performance. I definitely don’t have that kind of need and I am very happy with my 14-inch M1 Max MacBook Pro. The tease at the end about the Mac Pro is so very cheeky and I can’t wait to see what they’re going to do with it.

]]>
https://vatthikorn.com/thoughts-on-apples-peek-performance-eventhttps://vatthikorn.com/thoughts-on-apples-peek-performance-eventThu, 10 Mar 2022 01:00:00 GMT
<![CDATA[An Unsolicited Streaming App Spec]]>John Siracusa wrote up this great post listing out what he thinks are the very basic functionalities every streaming app should have:

Obviously, a list of even the most rudimentary features can’t help but also be opinionated. Though my tastes have surely influenced this list, I really do think that any streaming app that fails to implement nearly all of these features is failing its users. Again, these are not frills. These are the bare-bones basics.

He also pointed out this little feature with Siri on Apple TV which blew my mind:

I can ask “What did he say?” and the Apple TV will skip backwards, enable subtitles, play for a short duration, and then disable subtitles again, all on its own. Surprise and delight!

Surprise and delight, indeed! My ears are not as well-tuned to English dialogues as compared to native speakers so I often miss lines when watching movies. But I also don’t want subtitles on all the time either. This trick is going to be life-changing.


There is one Apple TV-specific thing I would like to add to this list. When a video is paused with a UI overlay with some informational text and/or scrubber, and I hit play to resume playback, I would like to be able to then hit the back button on my remote to dismiss that overlay. Having to continue watching with that overlay still obstructing or dimming the video, even for a few seconds, is a terrible experience. Or better yet, the app should just dismiss the overlay the instant the playback resumes.

The worst part is that this behaves differently on different apps which drives me up the wall. In YouTube and TV app, you can hit back and it will dismiss the overlay while still playing the video. In apps that use the native player you have to tap (not click) on the touchpad on the remote to do so. In apps like Netflix and Disney+ when you hit back it just exits out of the video player entirely! They’re all so inconsistent and it’s just pure maddening!

I don’t know what the solution should be here. It would be great if all these apps use the same native video player so the experience would be consistent across the board, but that’s never going to happen.

]]>
https://vatthikorn.com/an-unsolicited-streaming-app-spechttps://vatthikorn.com/an-unsolicited-streaming-app-specWed, 16 Feb 2022 02:50:00 GMT
<![CDATA[Some Thoughts on the 2021 14-inch MacBook Pro]]>After years of anticipation, Apple officially announced at WWDC 2020 that they were beginning the transition of the entire Mac lineup to the ARM architecture. Since then I had been itching to get my hands on one, but the MacBook Air and 13-inch MacBook Pro with the M1 chip did not fit the bill. I was waiting for that long-rumored all-new MacBook Pro.

Fast forward one and a half years later to January 2022, my wait was finally over!

MacBook Pro welcome screen

The configuration: 14-inch MacBook Pro with M1 Max with 10-core CPU, 24-core GPU, 64GB of RAM, and 2TB SSD. I upgraded to the M1 Max for the 64GB RAM option as I don't have the need for that much GPU performance which is also why I didn't max out to the 32-core GPU option. The extra memory bandwidth is a nice perk, but I doubt it would be that useful to me.

About This Mac window

I was originally going to get the 16-inch model, having only ever owned the 15-inch models in the past. But at 2.2 kg (4.8 lbs) compared to 1.8 kg (4 lbs) of my 2017 15-inch MacBook Pro, it would be too heavy for me on the rare occasions that I need to bring it somewhere. And since most of the time I run it docked at my desk connected to external monitors, I figured I could get by with the smaller 14-inch model. On paper, the screen is only an inch smaller than the one it's replacing anyway.

Don't get me wrong, this 14-inch MacBook Pro is still plenty heavy for a small laptop at 1.6 kg (3.5 lbs), almost as heavy as my old 15-inch.

The Migration

Transferring everything over from the old machine instead of setting this one up brand-new is definitely the way to go. I didn't want to have to spend time reconfiguring it from scratch with all the files, applications, and countless settings.

Everybody else seems to have no issue whatsoever with the Migration Assistant these days, but it ended up not being as painless as I was hoping for.

Two MacBook Pros connected with a Thunderbolt cable

With these two connected to each other using the Thunderbolt 3 cable that came with my CalDigit TS3 Plus dock, at first the Migration Assistant refused to use the wired connection and instead insisted on using the wireless "Peer-to-Peer" connection. I definitely was not going to let it transfer the data wirelessly as I knew that was going to be flaky. Here's what I ended up doing in trying to get them to use the wired connection:

  • Turned off Firewall on both machines
  • Made sure both Macs were on the same latest macOS Monterey 12.1 (at the time)
  • Turned off Wi-Fi on both machines (I don't think this this mattered)
  • Made sure in the Network preference pane that they could detect each other via Thunderbolt
  • As a desperate attempt, erased all contents and settings on the new Mac and reinstalled macOS (also don't think this mattered)

The final thing I tried—and what I should have done from the beginning—was to put the old Mac in Target Disk Mode. Right away, the Thunderbolt connection showed up so I began the transfer.

My old 2017 Mac used up about 440GB so there wasn't that much stuff to move over. I was hoping that I would see around 200MB/s transfer speed and that this process wouldn't take more than 45 minutes to complete. But to my bewilderment, it wouldn't transfer more than on average 50MB/s with a lot of time spent with less than 10MB/s. It also peaked at only 70MB/s. I quadruple-checked that the cable I used was in fact a Thunderbolt 3 cable. Having already spent too much time and energy going in circles trying to get the wired connection to work, I cut my losses and just let it do its thing, hoping that maybe it would speed up (it never did). I had already waited 18 months for this, surely I could wait a couple of hours more.

Picture of the migration in progress

In the end, it took almost three hours to complete the transfer of over four million individual files.

Screenshot showing the migration is completed

General Observations

I do love the hardware design of this model; it has somewhat of a retro look to it, reminding me of the titanium PowerBook G4. The "MacBook Pro" etching on the back is a really nice touch. I also don't mind that it's thicker.

Picture an engraving on the back

Since the 14-inch one can be configured all the way up just like the 16-inch, I figured I could save some money just getting the smaller size without having to compromise on the specs I want. And as I alluded to earlier, the screen doesn't feel that much smaller than my 15-inch one.

In a little over a month that I've been using it, I didn't run into any compatibility issue (that I could tell) with this being on a completely new architecture; Rosetta 2 is doing a fantastic job translating x86 to ARM. What an amazing feat of engineering that is.

I never had an Apple desktop computer and only ever used MacBook Pros. In all those years, I've gotten used to hearing the fans spinning up when doing anything remotely computational intensive (or even randomly). But now I've discovered the pleasure of working at my desk without that incredibly obnoxious fan noise. It is an absolutely blissful experience.

The notch was no doubt an unexpected feature with this redesign. I'm choosing to look at it not as a protrusion into my screen, but as extra screen real estate extending up to the very edge. Plus I think macOS is the perfect operating system to have to support this quirk since the menu bar, which is the fundamental part of the Mac, is already always at the top. I can't imagine how they would even support this on Windows (not that Apple's support for this was anywhere near perfect).

This also gave us a couple of fun apps like Notchmeister and NotchCam.

I wish this notch included the Face ID sensor. There's no reason why macOS wouldn't be able to support it since it's using pretty much the same chip as the iPad Pro which comes with Face ID. My guess is that they probably don't have the room to fit it as the screen lid is unbelievably thin whereas the iPhone and iPad Pro do have quite a bit more thickness to accommodate it.

This generation of MacBook Pros also sees the triumphant return of the beloved MagSafe connector. I can look past the mismatched color, but it would have been nice if they matched. I really do love the braided cable that comes with it though.

The interesting part about this is that the magnet is significantly stronger than the MagSafe connector I remembered from my 2010 MacBook Pro. Yanking it straight out is pretty much impossible as it's really on there. But pushing it at an angle up or down pops it right out. It definitely still functions as intended, as somebody tripping on the wire would almost certainly not going to be pulling it straight out. Nevertheless, I still feel like this is a slight regression from the old MagSafe we had.

Also props to Apple for still allowing charging via the three Thunderbolt ports because being able to charge on either side is definitely a big win.

Picture of the MagSafe connector connected to the laptop

Good riddance to the butterfly keyboard. These new keys do feel mushier but in a good way. They definitely provide a much better experience to type on, and more reliable too.

I never found the Touch Bar all that useful since I rarely used the built-in keyboard. As much potential as it may have had, Apple clearly did not want to invest in it, seeing that since its introduction in 2016 they did not make a single improvement to it. Unexpectedly, I did find myself missing it when I was filling out forms and not being able to quickly tap to autofill the fields. But other than that, I don't miss the Touch Bar.

With the Touch Bar gone, this means we now have back the physical escape key! No longer do I need to remap my escape key to the caps lock key to make it touch-typable. The inverted-T arrow keys are another greatly-missed affordance for touch typing and I do very much welcome their glorious return.

Performance Tests

I ran some tests to find out for myself how much faster this thing is. For comparison, my 2017 15-inch MacBook Pro came with the 2.9GHz quad-core i7, 16GB of RAM, and AMD Radeon Pro 560. The numbers are averages of multiple runs I did for each of these tools.

Xcode

I am rewriting Liftoff in SwiftUI so these tests were run using this fairly small project. Each after cleaning the build folder, of course. The build times came from Xcode directly, thanks to this neat trick (via ATP):

defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES

M1 Max: 10s
Core i7: 25s
Delta: 2.5x faster

Node.js (via Gatsby)

This was conducted using this very site with the gatsby build command with Node version 16.13.1.

M1 Max: 1m 5s
Core i7: 1m 34s
Delta: 1.4x faster

Flutter

Flutter still doesn't support Apple Silicon natively so the performance improvement seen here is not the most we could have gotten out of it. With this I'm running flutter build ios with flutter clean before each run.

M1 Max: 2m 18s
Core i7: 7m 25s
Delta: 3.2x faster

This test was the first time that I heard the fans on this machine, which kind of disappointed me a little to be honest.

Lightroom Classic

This was conducted on the Apple Silicon version of Lightroom Classic (v11.1). From my understanding, Lightroom doesn't really take advantage of the GPU when importing or exporting photos. But it appears to mostly be using it for displaying and processing the images. So the advantage of the M1 Max here would be around previewing and applying edits to photos, unfortunately not something that I could quantitatively measure and compare.

For import, I used 100 raw 20-megapixel photos taken on the Canon EOS 6D. There were three options enabled:

  • Copy as DNG
  • Build 1:1 previews
  • Apply lens correction

This also resulted in the fans going at full speed from what it sounded like.

M1 Max: 2m 53s
Core i7: 6m 42s
Delta: 2.3x faster

For export, I have a recent project with 44 raw 20-megapixel photos, all with various edits and color corrections. The export files were 80% JPEGs and no image resizing was done. The fans did not spin up for this.

M1 Max: 46s
Core i7: 2m 37s
Delta: 3.4x faster

Some Annoyances

My setup is through the CalDigit TS3 Plus dock connected to two 1080p monitors: one via Thunderbolt → HDMI and the other via DisplayPort → HDMI. While the connection and windows rearranging are almost instantaneous, the majority of the times only one of the monitors would display anything. The one connected via DisplayPort is the troublesome one as it rarely ever works. Every time I connect the laptop to the dock, I also have to reach back and reconnect the DisplayPort on the dock. And even that doesn't always work on the first try either, I frequently have to try multiple times for both monitors to be displaying properly.

This is clearly something specific to the M1 as this was rarely ever an issue with the Intel laptops with the exact same setup. Perhaps it's some sort of driver issue. The recent macOS 12.2 update did not improve the situation either. I think I'm going to have to try swapping out these cables to see if that helps.

What makes this all the more annoying is that it wouldn't be a problem if I had an Apple-made monitor connected to my Mac. I keep these stupidly bad monitors around because there are no good retina external monitors in the market to replace them with. This is a huge gap in the lineup that should have been addressed years ago.

This is not unique to the M1 model but there's one tiny UI issue that has been bugging me since I updated to Monterey. In the menu bar, I want hide the stock clock menu item as I prefer to use the one from iStats Menus. Unfortunately, there's no way for me to completely remove the clock so the next best thing I could do was to change the digital time to be an analog clock so that it would take the least amount of space at the very right edge of the menu bar.

Screenshot of the menu bar showing a clipped clock icon

Do you see what I'm seeing? The clock icon is clipped on the top and right side by just a pixel! Every time I look at the time and glance up to that top right corner of the screen, I'm greeted with this badly-rendered clock icon. It's worth noting that this is only visible on external monitors and not the built-in screen. I'm actually not sure how long this has been there. Maybe it's been around since the big redesign they did with Big Sur in 2020. Either way, I filed a bug report (FB9886279) so hopefully this will get fix in a future release.

Final Thoughts

Despite those complaints, I do love this machine. After long dark years of disappointing MacBook Pro lineup, what we now have is truly great and truly pro. It's not lost on me that I'm celebrating getting back what they took away from us in 2016. But it is more than just that: the M1 Max is a powerhouse, the Liquid Retina display is stunning, and the overall industrial design is just gorgeous.

With the modular 2019 Mac Pro, the redesigned Siri remote, and now the 2021 MacBook Pro, Apple showed that they do listen and are willing to give us what we want. The trend has been very encouraging in recent years. My only hope now is that they heard us begging for an external monitor that doesn't cost six grand. I'm cautiously optimistic that this year might be the year.

]]>
https://vatthikorn.com/some-thoughts-on-the-2021-14-inch-macbook-prohttps://vatthikorn.com/some-thoughts-on-the-2021-14-inch-macbook-proThu, 10 Feb 2022 01:05:00 GMT
<![CDATA[My Top 5 Books of 2021]]>See my other top books of the year posts: 2020, 2022.

A couple of years back, I rediscovered the joy of reading physical books after having exclusively been buying ebooks for years prior. Since then I had bought more and more books, which filled up my bookcase faster than I could read them. So in an effort to not have shelves full of books I haven't read, I made a decision to suspend all my book buying activities until I clear out those I had piled up. Therefore a lot of books I read in 2021 were from this backlog, and this will remain the case going into 2022.

By pure coincidence, I read 23 books in 2021 with 17 of them being hard copies, the exact same numbers as in 2020. But I read 5% fewer pages than in 2020 with 8,078 pages, dropping the average book length to 351 pages and pages per day to 21.

Below are five books that made my 2021 top list, ranked by how long it took me to read from shortest to longest.

Conditional Citizens: On Belonging in America by Laila Lalami (2020)

Conditional Citizens cover

In this book Laila Lalami covers her experiences of being a naturalized US citizen and points out the various contradictions and ways immigrants are treated unfairly in the US. She shows how non-white citizens still face challenges and prejudices in this country despite the fact that they should have the same rights and privileges as any other citizen. As a person of color and noncitizen living in the US, it wasn't hard for me at all to relate to her stories and essays.

One starkly revelatory point she made was how the US labels its non-white citizens. Even after years or decades of assimilation and generations later, they are still labeled as hyphenated Americans such as Mexican-Americans or Chinese-Americans. But descendants of white immigrants are simply referred to as Americans and not English-Americans, French-Americans, etc.

This is a poignant book everybody should read to get a better view into the immigrant experience and what it means to be a conditional citizen in the US.

a white woman told McCain that “I can’t trust Obama. I have read about him, and he’s not, he’s not, he’s a—an Arab.” “No, ma’am,” McCain replied, taking away her microphone. “He’s a decent family man, a citizen that I just happen to have disagreements with on fundamental issues.”

[...]

The woman said Obama couldn’t be trusted because he was an Arab, and the rebuttal wasn’t about the lack of causality between the two; it was a reassurance that he wasn’t Arab, he was a family man. The second contradiction was between being “an Arab” and being “a citizen.” Clearly, Obama could only be the latter if he was not the former. (p. 17-18)

The End of Everything (Astrophysically Speaking) by Katie Mack (2020)

The End of Everything cover

Cosmology and astrophysics have always been subjects that captured my imagination since I was a kid. But as just a layperson, I find the subjects exceedingly difficult to get into with all of the advanced mathematics and equations. I've read quite a few popsci astrophysics books like Stephen Hawking's A Brief History of Time and Michio Kaku's Parallel Worlds, which truthfully were not light and easy reads for me. But The End of Everything by Katie Mack provided a refreshing perspective on the genre.

This book addresses the topic of how the universe could end, where most popular science media and discussions on astrophysics I've come across usually focus on the beginning. We all know that the Earth and all of its inhabitants will die a fiery death when the sun eventually engulfs us in five billion years. But Mack isn't interested in our insignificant rock's end and instead presents us with five ways the universe as we know it could meet its demise. With enthusiasm and humor, she takes you on a journey through each of them with all the astrophysics and quantum mechanics nitty-gritty details (some of which were not easy to grasp, I must admit). My personal favorite of the bunch has to be the incredibly anxiety-inducing vacuum decay with the expanding "quantum bubble of death" traveling at the speed of light destroying everything in its path by taking apart all of the elementary particles that are held together.

Being quite a short book with just over two hundred pages, it is by no means lacking in substance. She just doesn't go off on tangents and remains straight-to-the-point which was one of the reasons that made this book an enjoyable read to me. I highly recommend it for any space nerd out there.

Something coming at you at the speed of light is invisible — any little glint warning you of its approach arrives at the same time as the thing itself. There is no possible way to see it coming, or even to know that anything has gone wrong. If it approaches you from below, there will be a couple of nanoseconds during which your feet no longer exist while your brain still thinks it is looking at them. Fortunately, the process is also entirely painless: at no point will your nerve impulses be able to catch up with your disintegration by the bubble. It's a mercy, really. (p. 145)

The Anthropocene Reviewed by John Green (2021)

The Anthropocene Reviewed cover

I am no stranger to John Green as I've been a dedicated vlogbrothers viewer for years. But I've only read two other of his books: Looking for Alaska and Turtles All the Way Down. Though young adult genre isn't really my cup of tea these days, I nevertheless still find myself drawn to his writing, not for the plot or romance aspects, but for his nuggets of wisdom and ways of looking at the world. That's why I was so excited for The Anthropocene Reviewed, his first nonfiction book1.

This book is a collection of essays, adapted from his podcast of the same name. In each essay he reviews a facet of our human-centered planet on a five-star scale, kind of like Yelp reviews. But unlike Yelp reviews, the subject is used as a jumping off point for him to tell a more personal story and offer his perspectives on being human. Some essays are autobiographical and can be quite heavy in subject matter, some lighthearted, but all endlessly thoughtful. While I quite enjoyed the humor, of which this book does not lack, I couldn't help but also get emotional reading some of his more reflective and touching essays. Some of my favorites are: Harvey, Auld Lang Syne, googling strangers, and Super Mario Kart.

This is a personal love letter to planet Earth, to celebrate humanity and the wonders of being alive on this rock.

What does it mean to live in a world where you have the power to end species by the thousands, but you can also be brought to your knees, or to your end, by a single strand of RNA? I have tried here to map some of the places where my little life brushes up against the big forces shaping contemporary human experience, but the only conclusion I can draw is a simple one: We are so small, and so frail, so gloriously and terrifyingly temporary. (p. 273)

Project Hail Mary by Andy Weir (2021)

Project Hail Mary cover

The Martian was such a fun read for me with all of the space and science nerdiness. I knew then that I had to keep an eye on Andy Weir. With Artemis, I opted to skip it due to lackluster reception. But after seeing so many rave reviews about Project Hail Mary, I figured I would give it a go.

Without spoiling too much, the premise of this book is that our protagonist woke up all by himself with amnesia on an interstellar mission to save humanity. What followed was a thrilling ride not unlike The Martian with incredible wit, humor, and such care into details any science and space nerd will surely appreciate. This novel puts the "science" of "science fiction" in the forefront and where there's fiction involved with the science, it's not too wacky or ridiculous that it took me out of the immersion of the story. My brain was willing to play along and remained engaged through to the end. This one is definitely a must-read if you enjoy a good sci-fi adventure.

Broadly speaking, the human brain is a collection of software hacks compiled into a single, somehow-functional unit. Each “feature” was added as a random mutation that solved some specific problem to increase our odds of survival.

In short, the human brain is a mess. Everything about evolution is messy. (p. 202-203)

If Then: How the Simulmatics Corporation Invented the Future by Jill Lepore (2020)

If Then cover

I've heard quite a bit about Jill Lepore, especially from her widely-acclaimed These Truths (which I still plan to pick up one of these days), but it wasn't until when I acquired a signed copy of her most recent book If Then that I finally got a taste of her writing. This book tells a story about the now-defunct Simulmatics Corporation and its mission to target and manipulate US voters and consumers using behavioral data and prediction algorithms. Sounds pretty familiar right? It wasn't Facebook or Google who pioneered these techniques we've all become so familiar with in recent years. Over half a century before Donald Trump with Facebook and Cambridge Analytica, there was John F. Kennedy with Simulmatics Corp., both men succeeding at the same audacious goal with the help of machines exploiting the same kinds of voter data.

This book wasn't originally going make my top list as I felt that large parts of it were quite dry and dragged on a bit too long with all the political details of the day and lives of men who I didn't particularly care about. I also wished that she had touched more on the technical details of the algorithms they used to do these predictions. But in the weeks since I finished this book, it has been stuck with me and I kept catching myself thinking back to it, especially the epilogue which I think was the strongest chapter. She draws parallels to what's happening now in the 21st century, and shows us that these hubristic ad men in the 60s were not all that dissimilar from tech execs in Silicon Valley today. This story also serves as a cautionary tale, reminding us that we've been through this before and that we shouldn't only just look forward to the future but to also look back at our history and not repeat the same mistakes again.

But the study of the human condition is not the same as the study of the spread of viruses and the density of clouds and the movement of the stars. Human nature does not follow laws like the law of gravity, and to believe that it does is to take an oath to a new religion. Predestination can be a dangerous gospel. The profit-motivated collection and use of data about human behavior, unregulated by any governmental body, has wreaked havoc on human societies, especially on the spheres in which Simulmatics engaged: politics, advertising, journalism, counterinsurgency, and race relations. Its rise also marked the near abandonment of humanistic knowledge. [...] The future was everything, the past nothing: a void, the humanities obsolete. Apollo reached the moon. Icarus reached the sun, and his wings did not melt. Instead, the light blinded him. (p. 324)


What I'm Looking Forward to in 2022

  • The Hobbit and The Lord of the Rings by J. R. R. Tolkien. I have been putting off reading these for too many years. So now I am publicly committing to reading them this year.
  • Crying in H Mart by Michelle Zauner. I can always read more about the Asian American experience in the US. But I've also heard a lot about this book as it showed up in so many lists, and won the Goodreads Choice Awards for Best Memoir.
  • Klara and the Sun by Sir Kazuo Ishiguro. Another book that I've seen a lot of people recommending, including by my friend Indira. It sounds like it's going to be a really thought-provoking read.
  • Rationality by Steven Pinker. I read both The Better Angels of Our Nature and Enlightenment Now, and personally found his writing style right up my alley. This is a follow-up book to that series with a topic that I'm already quite interested in.

  1. The signed copy I have is a delight in itself as not only that it has such a beautiful cover but there are also Easter eggs hidden throughout: from the circle drawings on the endpapers to his review of the copyright page. ↩︎

]]>
https://vatthikorn.com/top-5-books-of-2021https://vatthikorn.com/top-5-books-of-2021Mon, 24 Jan 2022 06:51:00 GMT
<![CDATA[Immune by Philipp Dettmer]]>Overall a very informative and approachable book for such a mindblowingly complex subject. The text is easily digestible and engaging in the Kurzgesagt style I’ve come to know and love. There are a lot of analogies to illustrate scale or purpose of certain immune cell features which I found tremendously useful. And those beautiful graphics throughout the book really help visualize what our microscopic helpers look like and what they do.

However these immune cells are heavily anthropomorphized which I don’t like seeing too much with scientific subjects, but I understand that to not do so would make the book much less approachable.

I still highly recommend this for those looking to get a solid understanding of this system that keeps you alive.

Some interesting things I learned from this book:

  • It’s difficult for us to create medication against viruses because the way a virus works is that it needs to connect to our cell to infect it. And to do that, it needs to mimic the shape of the receptors. A drug that attacks the receptors on the virus has a high likelihood that it will also attack our own cells.
  • Developing an allergy is a two-step process. First the body needs to encounter the new allergen first, which our immune system will activate and create antibodies against the new allergen. But nothing happens this first time. The next time it encounters that allergen again is when our immune system starts attacking and that's the allergic reaction.
  • There are no scientifically-proven ways to boost your immune system. People that say so are just trying to sell you stuff.
]]>
https://vatthikorn.com/books/immunehttps://vatthikorn.com/books/immuneThu, 13 Jan 2022 19:00:00 GMT
<![CDATA[Mindset by Carol S. Dweck]]>I totally agree with the main thesis of this book and she gives a lot of good advice and examples on how to apply it. And there lies the problem I have with this book. A large portion of it is just dedicated to examples and stories that I don’t really care about or add much to the central theme of this book. I found myself skimming through a lot of them so that I can get to the actual good parts.

]]>
https://vatthikorn.com/books/mindsethttps://vatthikorn.com/books/mindsetThu, 16 Dec 2021 19:00:00 GMT
<![CDATA[Internationalized Domain Names Are Still Not Well Supported in 2021]]>Domain names are the face of the web and any time I had to register one my brain always defaulted to using Latin letters. For my own personal site here, despite its domain name being my first name I opted to use the romanized version of it, never thinking that there was actually another option. That was the case until recently when I realized that I could register a domain name entirely in my native Thai script.

This post chronicles the journey I took to get an internationalized domain registered and configured for this website.

Goals

I am by no means an expert in this domain (excuse the pun), so this is more of a documentation of my learning and the problems I ran into when trying to set this up for myself.

Here are the things that I'll go over:

  • The basics of internationalized domain names and how they work
  • Domain registration and configurations
  • Challenges and pitfalls I encountered
  • Support for them on the web

The Internet's Great Oversight

The creators of the web were mostly English-speaking Americans and this resulted in most of the standards and practices only being thought out from that standpoint. This has a lasting effect until today where the vast majority of domain names we see on the web use the limited ASCII character set, which consists of only Latin letters. This is due to the fact that the Domain Name System (DNS) was designed to only support ASCII which leaves out many languages and their native alphabets and scripts. While the Latin alphabet is the most used character set in the world, it certainly should not be the only character set supported for domain names. In order to correct this oversight, the standard for internationalized domain names was introduced.

Internationalized Domain Name

An internationalized domain name (IDN) is a domain name that contains one or more non-ASCII characters. This means it can contain Unicode characters which allows for domain names in various non-Latin alphabets and scripts. Since only ASCII characters are supported by the DNS due to its design, supporting IDNs is just a mechanism to work around this limitation without having to overhaul the deep-rooted infrastructure for the internet. The important goal the designers behind this standard had was to ensure that IDNs are interoperable with the existing infrastructure so its introduction would not break existing user-facing applications, such as web browsers or email clients. This standard was approved by ICANN and deployed in 2003.

The solution is just a matter of converting the Unicode domain name into its ASCII representation before submitting the DNS query. Doing so involves using an algorithm called Punycode which, as described in RFC 3492, "uniquely and reversibly transforms a Unicode string into an ASCII string". Everything from that point on remains the same. This means that browsers don't necessarily have to support this standard and they should still be able to locate resources specified at the ASCII version of the IDNs.

Internationalized Country Code Top-level Domain

Country code top-level domains (ccTLDs) have been around since the early days of the internet. You have probably come across them as domain hacks with the likes of .io (British Indian Ocean Territory), .fm (Federated States of Micronesia), and .ly (Libya) among many others. These are subjected to each country's requirements which means they can limit who can register them and for what purpose. A number of these ccTLDs also have non-Latin counterparts in their country's native script such as .cn + .中國 (China), .eg + مصر. (Egypt), and of course .th + .ไทย (Thailand). These are referred to as internationalized country code top-level domain (IDN ccTLD). Surprisingly they are quite recent additions to the internet, having only been available starting in 2010.

Converting Unicode to ASCII in a Domain Name

Converting an IDN into its ASCII counterpart involves a few steps:

  1. Split up the domain name into individual labels.
  2. Encode each label using the Punycode algorithm.
  3. Add a special prefix xn-- to each label.
  4. Put the full domain name back together using . to separate the labels.

As an example: for an IDN คน.ไทย, the individual labels are คน and ไทย. Encoding those labels yields 42c6b and o3cw4h, respectively. Adding the prefix and putting them together into a full domain name we get xn--42c6b.xn--o3cw4h.

You can visit http://xn--42c6b.xn--o3cw4h in your browser now and you should see that it gets decoded back to the Unicode form of คน.ไทย. Even though your browser displays the domain name in Unicode to you, in the background it first converts it to ASCII before submitting the DNS query, and everything from that point works the same way as any ASCII domain.

Registering วัทธิกร.ไทย

Having an uncommon name in English-speaking world, the domain name of this site is just my romanized first name: Vatthikorn. I would say that in itself is already pretty cool. But I think what's even cooler is to also have the domain name of my actual first name in Thai script with a Thai IDN ccTLD: วัทธิกร.ไทย. Not many people can say that they have not only one, but two domain names for their site that are literally just their first name.

To find the registrar for a ccTLD, you can of course just do a quick internet search, there's this list for every single one of them, each with its own Wikipedia page. You can also visit IANA's Root Zone Database page that lists all of the available TLDs with more details for them than you'll ever need. But a fun trick I discovered is to simply go to your terminal and use the whois command for your TLD:

whois ไทย % IANA WHOIS server % for more information on IANA, visit http://www.iana.org % This query returned 1 object domain: ไทย domain-ace: XN--O3CW4H [...contact details omitted for brevity...] whois: whois.thnic.co.th status: ACTIVE remarks: Registration information: http://www.thnic.co.th created: 2010-08-19 changed: 2020-08-24 source: IANA # whois.thnic.co.th Whois Server Version 2.1.6

So to thnic.co.th I went, and sure enough, my Thai name was not yet taken. To register it, I had to provide both the Thai name as well as its Latin counterpart. So I'm basically getting two domain names at once. They offer a few TLD options such as .co.th + .ธุรกิจ.ไทย (business entities) and .ac.th + .ศึกษา.ไทย (academic institutions). But the one I'm eligible for is .in.th + .ไทย which is designed to be used by Thai citizens.

Due to the fact that they have to verify my identity and eligibility, the registration was technically just a request which needed human review and approval before they handed the domain name over to me. After submitting the request, I then had to email them a proof of payment which I had to make via PayPal. The price was 856 baht/year (around 27 USD). And just mere five hours later — on a Sunday morning in Thailand too — I received an email back from one of their representatives saying that my request was approved!

A screenshot of an approval notice email

Setting up DNS Provider

My intention with this newly-acquired Thai domain name was to set up a basic 301 redirect to the main site. The forwarding service is not included with the purchase of the domain and they charge extra 428 baht/year (14 USD) for it which is ridiculous if you ask me. Having already spent a bit more than I wanted to on the domain name, I had to take matters into my own hands.

The DNS provider for this site is currently AWS Route 53. But in trying to set up วัทธิกร.ไทย on it, I learned that it doesn't accept domain names with Unicode characters and you have to convert them to ASCII first. That was a bit disappointing as I expected AWS to be more global and inclusive than this. On top of that, using Route 53 was going to cost me additional 50 cents a month. After some searching, I found that Cloudflare supports IDNs directly in their UI without requiring you to convert them to ASCII. Setting up an account and adding the domain name was such a smooth sailing process compared to AWS. Best of all, it's completely free for what I'm using it for.

Setting up Forwarding

Setting up forwarding using only the DNS can be done with a CNAME record but there are a couple of caveats. First, you can't do this on the apex of a domain. So while you can do:

www.example.com IN CNAME another-domain.com

You can't do:

example.com IN CNAME another-domain.com

This on its own was already a no-go for me since I didn't want to have to use www in my site's URL.

Second, this method cannot perform a proper redirect where the path and/or query components from the original domain are appended to the target domain. Say you want to have example.com/about forward to another-domain.com/about, this is not possible with a CNAME record. Doing that is a web server’s responsibility.

While you could absolutely go with a DIY route and set up a web server (like Apache or Nginx) to just do HTTP redirects with all the customizations you want, to me that seems overkill for what boils down to just a vanity domain redirect for my own amusement. There are also several free URL redirection services out there but I didn't want to add another link in the chain that could potentially break my setup.

As it turned out, Netlify, where this site is hosted, provides a domain alias feature that I can leverage to make this work the way I wanted to. Unfortunately, they also don't natively support IDNs in their UI so it has to be in its ASCII form.

A screenshot of a list of domain names with one being in Punycode

The next step is to add an A record for this domain to point to Netlify's load balancer IP address. Since I only want Cloudflare to act as a DNS provider, I made sure that this record is marked as "DNS only" instead of "Proxied". This keeps it strictly a DNS record and bypasses Cloudflare's other functionalities.

A screenshot of A record configuration on Cloudflare

After the A record was propagated, trying to load https://วัทธิกร.ไทย resulted in an error as the subject name in the TLS certificate returned didn't match the requested Thai domain name:

curl -I https://xn--12c7bd9bq4dxa.xn--o3cw4h curl: (60) SSL: no alternative certificate subject name matches target host name 'xn--12c7bd9bq4dxa.xn--o3cw4h' More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.

The problem here was that after adding an alias domain name on your Netlify site, the TLS certificate needed to be renewed so that the alias domain would be included.

A screenshot of TLS setting on Netlify showing the IDN included

After that was regenerated, วัทธิกร.ไทย finally loaded the content of this site. However, it didn't perform a redirect to vatthikorn.com (วัทธิกร.ไทย remains in the URL field in the browser). For this you can certainly set up redirect rules with Cloudflare but since I already have an existing _redirects file to have Netlify handle them for me, I wanted to keep all the configurations in one place. Doing this is just a matter of adding an entry for the domain name (of course it needs to be in ASCII as Unicode characters also aren't allowed here either):

https://xn--12c7bd9bq4dxa.xn--o3cw4h/* https://vatthikorn.com/:splat 301!

So now sending a curl to วัทธิกร.ไทย correctly returns a 301 response code with the location header pointing to the main domain name with the same path:

curl -I https://xn--12c7bd9bq4dxa.xn--o3cw4h/wwdc-2021-wish-list HTTP/2 301 cache-control: public, max-age=0, must-revalidate content-length: 64 content-type: text/plain; charset=utf-8 date: Thu, 02 Dec 2021 19:48:08 GMT strict-transport-security: max-age=31536000 server: Netlify location: https://vatthikorn.com/wwdc-2021-wish-list x-nf-request-id: 01FNYB1CN3F46QVZ4B5RS7T51Q age: 6

Some Finishing Touches

To finish this off, I figured why not add a little more fun to this by also creating a special URL for my About page all in Thai: วัทธิกร.ไทย/เกี่ยวกับ. The goal is to have this redirect to vatthikorn.com/about. This was easy enough to do using the same _redirects file, though it requires those Unicode characters in the path to be URL-encoded first.

Now the final configurations for these redirects look like the following:

https://xn--12c7bd9bq4dxa.xn--o3cw4h/%E0%B9%80%E0%B8%81%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%A7%E0%B8%81%E0%B8%B1%E0%B8%9A https://vatthikorn.com/about 301! https://xn--12c7bd9bq4dxa.xn--o3cw4h/* https://vatthikorn.com/:splat 301!

And that's all there is to it! You can now visit วัทธิกร.ไทย and it should take you to vatthikorn.com, and วัทธิกร.ไทย/เกี่ยวกับ to the About page.

Adoption and Support in the Wild

As I mentioned earlier, IDNs were first deployed back in 2003 so it's been around long enough to vote now. Thankfully, web browsers have had support for this since very early on. But what I wanted to know is if some of the popular social sites allow my newly-configured Thai domain to be added on my profile.

Instagram isn't having any of it. (But hey, you can put Unicode characters in the bio. So yay for emoji, right?)

A screenshot of a URL error on Instagram

While Twitter isn't even trying and just throws up this badly-formatted error message.

A screenshot of a URL error on Twitter

LinkedIn accepts it but converts it to the ASCII form for you, which is just lovely to look at.

A screenshot of LinkedIn with ASCII IDN

But GitHub and Letterboxd work very nicely on the web (though both of their mobile apps won't display it).

A screenshot of my GitHub profile with IDN

A screenshot of my Letterboxd profile with IDN


All in all, if there's one thing I took away from this exercise is that when developing software, we should really consider diversity and inclusion aspects from the beginning and not just take the path of least resistance and only support what we're familiar with. At the very least, making sure our apps are localized and have proper accessibility support should be on top of that list. For IDNs, the fact that it was an afterthought made adding support for it just a hack that is neither ideal nor elegant. The internet — with its great promise of allowing everyone equal access to information — should have been designed to work for everyone, not just those who speak English.

Thanks to Indira for proofreading and helping improve this post.

Further Reading

]]>
https://vatthikorn.com/setting-up-an-internationalized-domain-namehttps://vatthikorn.com/setting-up-an-internationalized-domain-nameSat, 04 Dec 2021 22:13:00 GMT
<![CDATA[Thinking, Fast and Slow by Daniel Kahneman]]>All you need to know about this book: replication crisis.

Which is a shame because there are a lot of great ideas here.

]]>
https://vatthikorn.com/books/thinking-fast-and-slowhttps://vatthikorn.com/books/thinking-fast-and-slowThu, 23 Sep 2021 18:00:00 GMT
<![CDATA[WWDC 2021 Wish List]]>All my other WWDC wish list posts: 2016, 2017, 2019, 2020, 2022, 2023.

It's becoming such a cliché now during this pandemic when we say that time is a weird concept. But the other day I was in for a rude awakening when I found out that it's almost June. I say this every year but this year really did fly by. On the bright side, we all know what this means: it's WWDC time! To keep on the tradition, here is my wish list for this year:

16-inch MacBook Pro with Apple Silicon

We all know it's unlike Apple to announce new hardware during their big event for new software, but I think this is the right crowd to announce this for. As previously mentioned, my current 2017 MacBook Pro is starting to make me feel like I could use an upgrade. And with how well-received the M1 chip has been, I have never been more eager to see the larger MacBook Pro get a refresh. The rumors this time around have started to really pick up with a couple of recent reports saying that there is a new 16-inch MacBook Pro with Apple Silicon coming very soon with "a redesigned chassis, magnetic MagSafe charger and more ports for connecting external drives and devices" as well as the HDMI port and the SD card slot. If these all turned out to be true, this would be the best MacBook Pro update in recent memory. It also would be an unprecedented backtracking from Apple. We just saw a similar thing happened with the new Siri Remote dubbed "The Apology Remote". So I think we stand a good chance of getting "The Apology MacBook Pro" at WWDC which would make a lot of people very, very happy.

Affordable External Display

I already said this last year, and I'm going to say it again: Apple needs a less expensive external display in their product line-up. The five-thousand-dollar Pro Display XDR is an amazing feat of engineering, but at that price nobody can justify that unless you are a media production company. We sorely need an Apple-branded display that is aimed more for the mass market. Think the 27-inch Apple Thunderbolt Display. They cannot honestly expect us to use the M1 iPad Pro (with Thunderbolt 3, no less) or these new Apple Silicon Macs with this insanely expensive monitor. Apple knows that the MacBook Pro is very popular among developers — no doubt among those in attendance at WWDC — and they connect their laptops to one or more external displays, myself included. I have been holding off on replacing my monitors in hope for a new Apple monitor for years. I am still using these two ugly mismatched 24-inch 1080p ASUS monitors (one of them being a hand-me-down) from my college days as my setup.

Again, here is all I'm asking: take out that 5K 27-inch panel in the discontinued iMac Pro (or the one you're putting in the new 27-inch Apple Silicon iMac), put it in an external display chassis, maybe add some bells and whistles like a webcam, USB-C ports, fancy speakers, etc., slap a $1,300-1,500 price tag on it (knowing Apple), and take my money.

Catch Up iPadOS with the Hardware

The iPad Pros are such powerful devices, and now with the M1 chip in them, they're as powerful as the brand-new iMac. iPadOS, on the other hand, needs a lot of work to catch up with the incredible hardware it's running on. I am really hoping that this year will be the year we see some significant improvements to iPadOS to unlock the device's potential. As a developer, I would absolutely love to be able to do some sort of software development on it. The multitasking model on it also needs some rethinking/refinements to make it easier to use and manage. I have been eyeing these new M1 iPad Pros ever since they were announced in April but am still holding out on them to see what they do with iPadOS 15.

Home Screen Widgets

The popularity of iOS 14's widgets surprised a lot of people, even Apple themselves. Knowing this, I'm fairly certain that Apple will iterate more on this feature in the upcoming iOS 15. My wish for that is for them to be more interactive as right now the only possible action is launching the app (or launch the app to perform actions in it). These widgets would be vastly more useful if we were able to use them to do things like checking to-do items off or controlling media playback right from the home screen. They could also go a step further and do away with the left-to-right top-to-bottom grid for the home screen and let us place items wherever we want on there.

HomeKit

I've recently added more smart devices to the Home app and found some of the controls and automations lacking. For example, the camera automation includes options to turn the camera on or off based on the location of the members of the household. But there is currently no way to do that based on time of day. This would be really useful as I would like my indoor cameras to record when I'm at home but only during the time when I would be asleep to keep an eye on the house at night. Also the HomeKit Secure Video only saves recorded clips at 1080p and I think there should be an option for us to store them at full resolution. Sharing the Home with household members could also use improvements as I found things like notifications and access to settings to be real flaky.

Shortcuts

While Apple made some good additions to Shortcuts in iOS 14, there is still a lot to be desired. Location-based automations need to run automatically without requiring user input. Right now by requiring confirmation, they fail at the very thing they're supposed to do. These automations need to also stop popping up as notifications every time they run, cluttering up Notification Center. Please just make it an option to turn these off.

Memories Management in Photos

I love the Memories feature that resurfaces old photos grouped based on people, places, or events into nicely curated collections. And putting this as widgets on my home screen makes it all even more delightful. However, I wish there were more controls built into this such as changing cover photo for each Memory or hiding Memories based on people, time periods, or places. I also wish they would add more inclusive holiday Memories to the mix like Chinese New Year or Diwali as the ones I've ever seen are only for days like Christmas or Independence Day.

Screen Time for tvOS

We already have Screen Time for iOS, iPadOS, and macOS, so adding this to tvOS is a no-brainer. I spend a lot of time on my Apple TV so I would really like to see some data here. I'm not sure what's taking them so long, it seems like it shouldn't be that hard to implement. I've been waiting for this since 2019 so I really hope this year is the year.

]]>
https://vatthikorn.com/wwdc-2021-wish-listhttps://vatthikorn.com/wwdc-2021-wish-listTue, 01 Jun 2021 06:01:00 GMT
<![CDATA[Apple Event Coverage on ATP]]>If you listen to Accidental Tech Podcast, you are probably aware of the running joke on the show about how incredibly long episodes covering Apple events usually are. During the most recent episode the hosts talked about how they were about to spend such a disproportionate amount of time discussing the Apple Podcasts announcement (which Tim Cook spent precisely one minute and quarter covering). That had me wondering about the exact ratios of time the guys typically spend talking about the event vs the event itself.

Unbeknownst to me, Apple in fact publishes their event videos with its own public RSS feed just like any other podcast. Now with the exciting realization that I won't have to manually comb through the archive of Apple media event videos, I whipped up a quick and dirty script to pull the duration data from the respective feeds and do the calculation for every ATP episode that covers an Apple event.1

So let's get the big question out of the way: which Apple event did they spend the most disproportionate amount of time discussing? That honor goes to the Mac event in November 2020.

A graph depicting the ratios between Apple Event vs ATP episode durations

The event itself clocked in at just under 49 minutes2 and the ATP episode discussing this came in at 2h 43m 45s making the ratio 3.34. This means that for every minute of that event, the guys spent 3 minutes and 20 seconds discussing it. That really should not come as a huge surprise as this was the shortest event they have covered so far. Plus what's more exciting to talk about than the very first Macs for the ARM transition that all of us Apple nerds have been anticipating for years?

And funny enough, in second place is the most recent episode from this past week's event, with the ratio of 2.57 (2m 34s per minute). If you're curious and too lazy to look it up, they spent 43 minutes and 34 seconds talking about that minute-and-a-quarter podcast announcement alone.

A graph depicting Apple Event vs ATP episode durations

Now let's look at some stats for all of the events they have discussed on the show. From the very first Apple event they covered (the WWDC 2013 "can't innovate anymore my ass" keynote) to the most recent one this past week, there were 27 events in total. Those events average at 1h 41m 9s while ATP episodes come in at 2h 12m 5s. This results in the average ratio of 1.47 (1m 28s for every minute of the event).

Since the pandemic, Apple transitioned to doing their events entirely online with shorter-yet-still-packed pre-produced events. The pre-COVID number is 1.24 (1m 14s) and the pandemic-era number, starting with WWDC 2020, is 2.38 (2m 28s). These recent short events really did come loaded with tons of stuff to talk about.

So in summary:


  1. I'm using the main feed of the show instead of the ad-free member or bootleg feed in order to keep the numbers consistent for its entire catalog. ↩︎

  2. Apple's shortest event ever in the archive actually. The second shortest being the October 2008 event with 52 minutes where Steve Jobs announced the unibody MacBook Pro. ↩︎

]]>
https://vatthikorn.com/apple-event-coverage-on-atphttps://vatthikorn.com/apple-event-coverage-on-atpWed, 28 Apr 2021 05:16:00 GMT
<![CDATA[How to Avoid a Climate Disaster by Bill Gates]]>Engaging read with lots of insights and data as to be expected from him. I finished it feeling more optimistic that we can tackle this climate problem.

]]>
https://vatthikorn.com/books/how-to-avoid-a-climate-disasterhttps://vatthikorn.com/books/how-to-avoid-a-climate-disasterMon, 15 Mar 2021 18:00:00 GMT
<![CDATA[My Top 5 Books of 2020]]>See my other top books of the year posts: 2021, 2022.

If there was one good thing that came out of the horror of 2020 for me, it's that my reading habit got more solidified. Given that we can no longer go out to restaurants, sitting down to read a book after dinner has become a must-do daily routine. Even though I did not read as many books as I'd like with all the time available, this year I tried to read more widely by selecting novels and non-fiction topics I hadn't usually chosen. Trying to be a more critical reader, I also started taking better notes and highlights, and spending more time thinking about the ideas presented to me.

This year I read 23 books with 16 nonfiction and 7 fiction. While the number of books matches my 2019 number, the number of pages increased by 45% to 8,519 pages in total. This averages to 23 pages per day and 370 pages per book. In years past I almost always bought ebooks, but in an effort to build up a home library, I started buying mostly physical copies this year, so 17 of these I bought as hard copies.

The following are the five books that made my 2020 top list. Note that these are not necessarily books that came out this year, but just the ones that I read and found to be the most affecting and interesting to me personally.

How to Be an Antiracist cover

How to Be an Antiracist by Ibram X. Kendi (2019)

Like a lot of people this year, I was prompted to inquire more into racism in the US and to be better informed when it comes to these racial issues. Dr. Kendi argues that we cannot just simply be "not racist" as inaction against racism equates to helping perpetuate racism itself, and therefore we must actively be anti-racist to dismantle it. As a foreigner who spent a better part of my adolescent years in the US, his take on assimilation and "Americanization" as being inherently racist ideas hit me on a personal level and made me question my past actions in trying to fit in.



The Age of Surveillance Capitalism cover

The Age of Surveillance Capitalism: The Fight for a Human Future at the New Frontier of Power by Shoshana Zuboff (2019)

The Netflix documentary The Social Dilemma pushed me to check this one out. Before reading this, I had already been ardently against the shady practices tech giants like Google and Facebook put in place to make billions with our behavioral data, but this book opened my eyes to so much more. It is a deeply troubling but incredibly important book for our time and goes way beyond the issue of privacy. There is no doubt that these companies — especially Facebook — are in no small part responsible for the spread of anti-intellectualism, conspiracy theories, the rise of extremism, and the overall political discourse in recent years. We are living in a dystopian world where these companies know so much more about us than we realize and effectively have the means to control us. This was the longest book I read this year, coming in at 691 pages. It is not a light read but it covers a lot of ground, exploring virtually every facet of what these surveillance capitalists are doing to our society, how they're undermining democracy, and what it could mean for the future.


Dune cover

Dune by Frank Herbert (1965)

This one has been on my list for a long while, and earlier in the year I finally picked it up in preparation for the film adaptation that has since been delayed. I have not read that many sci-fi novels, so I figured if I were to change that I definitely have to read Dune. It became clear to me not long into the book that Star Wars was heavily inspired by Dune: The desert planet, dew gatherers on Arrakis vs moisture farmers on Tatooine, Bene Gesserit's Voice vs the Jedi mind tricks, to name just a few. I don't think I need to say much more about this book as we all know how original and highly-regarded it is.



Letters from an Astrophysicist cover

Letters from an Astrophysicist by Neil deGrasse Tyson (2019)

This is a collection of his responses to people who wrote to him. His perspectives, ways of thinking, and outlook on the importance of science and reason deeply resonate with me. I have a long list of quotes from this book so I'll let his words speak for themselves:

Once you confess to not knowing what you are looking at1, no logical line of reasoning allows you to then declare that you know what you are looking at. [...] To go from “We don’t know” to “It must be God” is another example of an argument from ignorance.

True science literacy is less about what you know and more about how your brain is wired for asking questions.

But one must always recognize the difference between knowing that something is true, knowing that something is not true, and not knowing one way or another. It’s the not knowing part that leaves singular events susceptible to inventive accounts (especially from conspiracy theorists) of what may have happened.

The world is no stranger to religious warfare—with abject slaughter of countless innocents in the name of one god or another. So [the] supposition that one needs God to behave or to give meaning to life—while it may be true for many people—is certainly not a pre-requisite to a fulfilling, law-abiding life.


Chasing New Horizons cover

Chasing New Horizons: Inside the Epic First Mission to Pluto by Alan Stern and David Grinspoon (2018)

This book chronicles the decades-long fight to get the New Horizons mission off the ground against all odds, and I must say that I did not expect it to be such a thrilling read. Truly almost a missed opportunity for generations to come, the mission was a race against time as Pluto traveled further away from the sun and, had they waited too long, would cause the atmosphere to dissipate, preventing any kind of atmospheric study from being conducted. It is also an amazing underdog story as the team at the Applied Physics Laboratory competed against the more experienced Jet Propulsion Laboratory to get their mission selected with such tight budgetary constraints and all the red tapes. The second half of the book went over fascinating insights and science behind the eventual fly-by in all of its glorious details. The story gave me such admiration for these people doing the remarkable work of advancing humanity's scientific knowledge.


What I'm Looking Forward to in 2021

  • A Promised Land by Barack Obama. This is what I am currently reading and will be into 2021. I was too young (and too far away) to pay much attention to US politics during the 2008 election or his first presidential term, so it's been such an insightful read so far.
  • How to Avoid a Climate Disaster by Bill Gates. I have been waiting for Bill to write a book for a long time now so I am eagerly looking forward to this one.
  • The Anthropocene Reviewed by John Green. As a Green brothers fan and Nerdfighter, this is a must-read for me.
  • To Sleep in a Sea of Stars by Christopher Paolini. I loved the Inheritance Cycle and have been looking forward to this for years. Despite that, I had no idea this came out earlier this year! Definitely will be the next novel I read.

Thanks to Jess for proofreading and helping improve this post.


  1. In answering a question about a UFO sighting, reminding us what the "U" stands for. ↩︎

]]>
https://vatthikorn.com/top-5-books-of-2020https://vatthikorn.com/top-5-books-of-2020Sun, 27 Dec 2020 05:41:00 GMT
<![CDATA[Apple's App Tracking Transparency Feature]]>MacRumors:

Apple in iOS 14 is planning to introduce a new App Tracking Transparency feature that will let users know when companies want to track them across apps and website. Following outcry from developers like Facebook and ad networks unprepared for the change, Apple delayed the implementation of the anti-tracking functionality until early 2021.

Craig Federighi, in an interview with The Independent (via MacRumors):

“If we sell cars with airbags, and we decided to put airbags in our cars before someone else did, and customers want to buy those, I think it's great that we've provided that that choice,” he said. “We're not waiting for someone to require we do it, we're we're making that part of what it means to use our platform.”

I think Apple should have shipped this feature already. They are not outright banning this practice but only giving users the awareness and option to opt out. These companies have been operating these data mining and surveillance operations for way too long without much oversight. They are now complaining because they know that they are collecting users' data without their consent. And they know that most users, if given the option to opt out, would do so.

This is not about small businesses or whatever bullshit they come up with, it's about them needing as much raw materials as possible to extract behavioral data from. And those data are then turned into "personalized experiences" which in reality just means figuring out what we want, think, and feel and then selling that information to advertisers or worse.

]]>
https://vatthikorn.com/apple-app-tracking-transparencyhttps://vatthikorn.com/apple-app-tracking-transparencySat, 21 Nov 2020 05:09:00 GMT
<![CDATA[M1 MacBook Air Benchmark]]>MacRumors (via Hacker News):

The M1 chip, which belongs to a ‌MacBook Air‌ with 8GB RAM, features a single-core score of 1687 and a multi-core score of 7433. According to the benchmark, the M1 has a 3.2GHz base frequency.

[...]

In comparison to Macs, the single-core performance is better than any other available Mac, and the multi-core performance beats out all of the 2019 16-inch MacBook Pro models, including the 10th-generation high-end 2.4GHz Intel Core i9 model. That high-end 16-inch MacBook Pro earned a single-core score of 1096 and a multi-core score of 6870.

That is crazy talk. The entry-level laptop without a fan beating out top-of-the-line 16-inch MacBook Pro! Imagine what the higher-powered variant of this chip could do in a desktop Mac with more thermal envelope and wattage.

My current 2017 15-inch MacBook Pro has been feeling slightly long in the tooth and I was considering upgrading to the then new 16-inch model until Apple announced back in June that they are transitioning to ARM. Now I am certain that my next Mac will be an Apple Silicon Mac. My hope is that before or during WWDC next year, they will announce a 16-inch model of this.

]]>
https://vatthikorn.com/m1-macbook-air-benchmarkhttps://vatthikorn.com/m1-macbook-air-benchmarkThu, 12 Nov 2020 06:04:00 GMT
<![CDATA[Introducing WidgetLink]]>A few weeks ago after iOS 14 came out, the App Store was suddenly flooded with apps designed specifically around the new Home Screen widgets and customization. Some of them are Widgeridoo, Widgy, and the most notable one being "Underscore" David Smith’s wildly successful Widgetsmith.

An idea with a simple premise popped into my head: I wish I can have customizable Home Screen widgets that can open any URL. Since I had already been looking for an excuse to properly learn SwiftUI, I figured why not just try to make this myself as a learning exercise.

widgetlink icon small

WidgetLink is a very basic app that lets you create widgets on your Home Screen that can launch any URLs. This is not limited to just web URLs but also any app’s URL scheme. This means that not only can it open web links but any app or action can also be performed with their provided URL schemes.

Now I’ll be the first to admit that this is not a very useful or unique app with its functionality. There’s probably only one other person who might even find this remotely useful. The way it works is also not very elegant due to a technical limitation that's not within my control: when the link is tapped, instead of opening the URL, it first launches the app before opening the URL in a browser.

You might also be thinking “but Zack, you can already do all this with a Shortcuts widget” and you would be absolutely right. But with that you can only fit at most 4 actions on a medium widget with little customization on how they look.

Customization is a big deal with iOS 14 and WidgetLink allows you to pick text and background color, number of rows and columns, link image and its shape to suit your Home Screen aesthetics.

This currently supports small and medium widgets. The small one, again, due to limitation of the OS, can only be used to launch a single URL. You can long press on the widget to edit and choose which URL to display.

On the medium widget, up to 15 URLs can be shown (albeit looking pretty crowded). You can reorder the links inside the app by tapping the Edit button in the list view. This ordering will arrange the links on the widget in a left-to-right top-to-bottom manner.


Special Thanks

This wouldn't be possible without the incredible 100 Days of SwiftUI tutorials which helped me tremendously at learning the basics of SwiftUI enough to get me started on developing this app. Also I'd like to thank my girlfriend Jess for a small but important contribution she made by picking the main color for this app (#FF613D) because I could not decide for the life of me what color to use.

These past few weeks have proved to be a great learning experience for me with SwiftUI. The declarative syntax was little difficult to wrap my head around at first and Core Data was not the most fun to work with. But my brain is now in SwiftUI mode and it’s going to feel strange to context switch it back to work on UIKit again.

Anyway, if you happen to be that one other person who thinks this might be something you could make use of, I would be delighted and honored if you give it a try. And please don’t hesitate to send any feedback my way.

]]>
https://vatthikorn.com/introducing-widgetlinkhttps://vatthikorn.com/introducing-widgetlinkWed, 14 Oct 2020 04:55:00 GMT
<![CDATA[Post Round Review: Wekiva Golf Club]]>Course: Wekiva Golf Club, Longwood, FL, USA Par: 72 Tee Box: White - 6,427 yards Course Rating: 71.5 Slope Rating: 129

Date: 26 September 2020 Tee Time: 2pm Condition: Mostly sunny Heat index: 40ºC (105ºF)

It’s been a long while since I played any golf, with the last full round of 18 holes being back in March. But at last, in recent weeks, I started picking it back up and going back to the range as well as walking the short par-33 back 9 at a local club after work. This past weekend was my first full round of 18 holes back after a 6-month hiatus.

I hadn’t hit my driver in months and that club had always given me much anxiety: mostly due to my own lack of confidence. And with the course being a par-72 at a little bit over 6,400 yards, using my driver was all but inevitable. Before the round, I just warmed up quickly with my 56-degree, 7 iron, and the driver, which actually felt pretty good.

Hole #1 - Par 4 - 384 yards

The round was off to a good start with a drive perfectly down the middle of the fairway, maybe around 250 yards from the tee. I got on the green in 2 but three-putted for a bogey 5.

Current Score: +1

Hole #2 - Par 4 - 341 yards

Second hole saw another great drive down to about 70 yards, which I then overshot the hole by 20+ yards. Luckily, I was able to save par with an up-and-down.

Current Score: +1

Hole #3 - Par 5 - 500 yards

This was when things started to go downhill. The tee shot hooked into a bush and after an embarrassing lay-up flub, I was chipping my 5th shot from front-left of the green then two-putted for a double bogey 7.

Current Score: +3

Hole #4 - Par 3 - 169 yards

This par-3 saw me pulled way left of the green with a 6 iron. A noncommittal chip trying to avoid a tree branch put myself in a bunker which followed by a pretty decent shot out to about 5 feet. I then missed the putt and walked off with a double bogey 5.

Current Score: +5

Hole #5 - Par 4 - 369 yards

Now I got the pull bug in my head and ended up pushing the drive way out of bounds into a nearby neighborhood. I eventually got on the green in 4 but proceeded to three-putt for a triple bogey 7.

I just played the last 3 holes 7 over par. But I didn’t really have any expectation anyway and didn’t really care all that much.

Current Score: +8

Hole #6 - Par 3 - 142 yards

An easy GIR with a 9 iron followed by a two-putt par.

Current Score: +8

Hole #7 - Par 4 - 367 yards

A fairway hit, another GIR, and a two-putt par.

Current Score: +8

Hole #8 - Par 4 - 410 yards

Another fairway hit. I missed my approach shot just short of the green but managed another up-and-down for par.

Current Score: +8

Hole #9 - Par 5 - 480 yards

A fairway hit, green in 3, and a two-putt par.

Current Score: +8

Hole #10 - Par 5 - 529 yards

I pulled my driver left of the fairway again but a good lay-up got me on the green in 3 and two-putted for par.

Current Score: +8

Hole #11 - Par 4 - 409 yards

This hole saw a great drive to around the 150-yard marker with the pin tucked behind a front-left bunker. A soft 8-iron shot nicely drew from right edge of the green down to about 6 feet above the hole. That approach was the shot of the day for me. I sank that putt for the first birdie of the day.

Current Score: +7

Hole #12 - Par 3 - 178 yards

Coming up on this hole, I was feeling pretty good with my game, realizing that I just played the last 6 holes at 1 under par. This quickly resulted in a thinned 5-iron hooking 30-yard left of the pin. I managed to chip over a bunker on to the green but three-putted for a double bogey 5.

Note-to-self (for the hundredth time): Stop thinking about the score, especially when you’re doing well and feeling in the zone, because you almost always ended up messing it up right after.

Current Score: +9

Hole #13 - Par 4 - 374 yards

Hit another solid drive to about 100 yards, my favorite approach distance. A well-practiced 56-degree shot put myself about 15 feet short of the hole. I missed the birdie putt and walked away with a par.

Current Score: +9

Hole #14 - Par 4 - 432 yards

I again pulled my driver into the rough and had to hit the second shot around a tree with my 4 iron. Chipped on to the green and missed an 8-foot par putt for a bogey.

Current Score: +10

Hole #15 - Par 5 - 488 yards

Attempting to avoid the chronic hooking, I pushed my tee shot to the right edge of the fairway. It was a par-5 so I was able to lay up, got on the green in 3, and two-putted for par.

Current Score: +10

Hole #16 - Par 4 - 320 yards

My tee shot yet again pushed right into the rough but luckily I had a shot at the green with about 100 yards left. Put that on the fringe and walked away with a two-putt par.

Current Score: +10

Hole #17 - Par 3 - 145 yards

This was a par-3 over water with a deep bunker front of the green. Put my 9-iron tee shot left of the green and chipped on with a two-putt for bogey 4.

Current Score: +11

Hole #18 - Par 4 - 390 yards

On this last hole, I piped it straight down the fairway with about 130 yards left. A PW shot put that on the green about 20 feet short of the hole. I then unexpectedly drained that uphill putt for a birdie to end a solid back 9 at +2.

Round Summary

A golf scorecard showing a score of 82

In total I hit 44 out and 38 in for a ten-over 82. For the first round of 18 after a long break and almost no practice sessions, I am quite pleased with the result.

Fairways hit: 8 of 14 (57%) Greens in regulation: 10 of 18 (56%) Up-and-downs: 2 of 6 (33%) Putts: 35 Three-putts: 3

Some Takeaways

  • My irons and approaches felt pretty good without any catastrophic miss-hits, except on the two par-3s which costed me 4 strokes.
  • My putting did save me quite a few stokes. On those holes that I parred, there were several 4-5 feet knee-shakers as well as a couple of 6-8 feet ones.
  • The driver definitely needs work to straighten out these push/pull inconsistency.
  • Mentally, I need to stop worrying about the score and just relax and focus on one hole at a time.
]]>
https://vatthikorn.com/post-round-review-wekiva-golf-clubhttps://vatthikorn.com/post-round-review-wekiva-golf-clubWed, 30 Sep 2020 07:28:00 GMT
<![CDATA[Apple Central World Opens Friday in Thailand]]>Apple Newsroom:

Apple Central World’s distinctive architecture is brought to life with the first-ever all-glass design, housed under a cantilevered Tree Canopy roof. Once inside, customers can travel between two levels via a spiral staircase that wraps around a timber core, or riding a unique cylindrical elevator clad in mirror-polished stainless steel

Really great looking store. The all-glass exterior with the canopy is pretty much identical to that of the Steve Jobs theater at Apple Park.

apple nso bangkok forum 07282020

The Apple logo on the Video Wall also has a cool design, spelling out “Krung Thep” in Thai.

In the Thai-language news site MangoZero, Patta.pond got a chance to do a quick tour of the store and has some more photos from the inside, including the Boardroom in the basement. And if you look closely, I think one of the framed photos is the Steve Jobs theater.

]]>
https://vatthikorn.com/apple-central-world-opens-friday-in-thailandhttps://vatthikorn.com/apple-central-world-opens-friday-in-thailandThu, 30 Jul 2020 15:22:00 GMT
<![CDATA[Some WWDC 2020 Thoughts]]> Apple WWDC20 keynote tim cook 06222020

This year's WWDC keynote felt much denser than in years past. I think this is partly due to the fact that the entire keynote was prerecorded ahead of time, and compared to regular live stage keynote, this allows for a more fast-paced presentation. I surely felt quite overwhelmed afterwards with all the information that was bombarded at me for almost 2 hours. But despite everything that's going on in the world, Apple managed to put together such an amazing set of new features and functionalities to their software lineup.

iOS

The Home Screen update is probably the most striking by far for this release. And it is, no question, sorely needed. During iOS's 10+ years lifespan, the Home Screen remained virtually untouched and looked outrageously archaic in recent years. Until now. As a person who dislikes having the iPhone filled with pages and pages of apps, but prefers a clean single-page Home Screen, I am elated to finally hide all the folders away and replace that space with the new Widgets. I never need all those apps to always be visible anyway since using the search functionality is way more efficient.

Another feature that also made me really happy was the inline replies in Messages. The official word on the iOS 14 preview page says that this can be done "to a specific message in a group conversation". But now that I am running the beta on my devices, I am happy to report that this also works in one-to-one conversations too! I've been waiting for this day since WWDC 2017 and my wish has finally been granted!

The new Translate app is pretty neat but Thai is not even an option. Can't say I'm surprised though. Hopefully that will come soon in the future.

iPadOS

I don't use my iPad nearly enough but there are quite a few exciting changes coming to iPadOS this year. First off, the new search ability, which is taken right from macOS's Spotlight, looks amazing. This will further elevate iPadOS closer to the productivity machine that Apple has been striving for.

But the most exciting feature by far for iPadOS for me is Scribble. This is such a simple and obvious feature but it's going to make using the iPad a much more pleasant and natural experience. You can even scratch to delete and circle to select! In hindsight, this feature feels like it's a long time coming given the fact that Apple has had this handwriting recognition technology since the Newton in early 1990s.

AirPods

The two updates to the AirPods are the two best features they could have picked for them. The spatial audio sounds awesome and no doubt contains some amazing technology behind it. I definitely look forward to trying it out.

The one feature that took the trophy for the AirPods is the automatic switching between devices. This has definitely been one of the biggest pain points when using the AirPods since I tend to use them with a few different devices. Whatever Apple magic they're doing behind the scene to detect the device being used, I really hope it works seamlessly.

watchOS

I finally get my watchOS sleep tracker! I can't believe it took them this long to include sleep tracking capabilities to the Apple Watch. The Face Sharing is also pretty neat. Sadly still no custom watch faces.

Also the handwashing detection is probably the most 2020 feature there is. I don't think I'll personally find it that useful since I tend to just take off my watch whenever I'm washing my hands.

macOS

The star of the event by far is the macOS. As we all expected, Apple announced that they're transitioning to use their own SoCs for their Mac lineup. They seem to have a pretty aggressive timeline with the first ARM Mac debuting later this year and that this transition will complete in just two years. Not sure what Tim's definition of "complete" is. Does this mean in two years they will stop making new Intel-based Macs? Or stop supporting them?

This release also comes with probably the biggest redesign of the macOS UI that I can remember. I'm not entirely sure how I feel about this design language yet. It almost feels like they're doing this UI refresh in anticipation of a touchscreen Mac. It clearly has a lot of iOS elements in it, just look at the new Control Center. A lot of the buttons and controls look bigger and have more space between them. But all in all, I think I kinda like it? We'll see.

And apparently macOS Big Sur is officially macOS 11.0! Or is it...?

]]>
https://vatthikorn.com/some-wwdc-2020-thoughtshttps://vatthikorn.com/some-wwdc-2020-thoughtsFri, 03 Jul 2020 23:18:00 GMT
<![CDATA[WWDC 2020 Wish List]]> wwdc 2020

See my other posts in this series: 2016, 2017, 2019, 2021, 2022, 2023.

My favorite Apple event of the year is finally upon us! This year's WWDC is all virtual due to COVID-19 but that doesn't mean the main event is not going to be full of exciting announcements. Here are the things I wish to see tomorrow, in no particular order:

ARM Mac Transition Plan

This is not anything new to those who have been following Apple news. But with this recent report from Bloomberg that Apple is planning to release a Mac with their own processor soon, WWDC is a perfect event for them to discuss the transition plan with the developers in (virtual) attendance.

There are a lot of talks about a completely re-imagined macOS, or possibly a brand-new iMac to go alongside this transition. But I think Brendan Shanks puts it best on what is probably going to happen when this eventually happens:

My core prediction: The Mac is getting a re-engining, not a re-imagining.

Much like the Mac’s switch to Intel, this transition will be fundamentally simple and, ideally, invisible to end users.

This means:

  • No massive hardware changes, like adding touchscreens.
  • No massive software changes, like requiring apps to be sandboxed, or come from the App Store, or be written with UIKit and Catalyst.
  • No complex schemes, like hybrid ARM/Intel Macs that run apps on both processors.

Screen Time for macOS and tvOS

This was on my 2019 wish list and unfortunately nothing was mentioned. So please Apple, this feature would be so useful to so many of us.

New Affordable External Display

Last year I was hoping for a new Apple external display and that became a reality. But we all know how absolutely ridiculous the price is for the Pro Display XDR, and nobody needs this thing unless you're John Siracusa or a movie studio.

So to clarify from last year, I would like an affordable Apple external display. All I want is for them to grab that 5K panel they use for the iMac Pro, put that in an external display package, and sell it.

More Stable iOS 14

Saying iOS 13 was a buggy release is to say the least. I believe they should do something similar to what they did with iOS 12 and just make iOS 14 less feature-rich but more stable and optimized overall.

SwiftUI Improvements

The biggest surprise for me from last year's WWDC was SwiftUI. So this year I'm hoping to see some more improvements with the framework.

Updated Apple TV and Remote

It's been nearly 3 years since the latest Apple TV was released. I do think it is now time for some updated hardware, especially the remote. But I think this is a longshot. It's more likely to be announced during the fall event.

Updated HomePod

The HomePod was announced 3 years ago at 2017's WWDC and since its release in 2018, there has been no update to the hardware. I'd like to see some new hardware, ideally a new smaller and cheaper model and perhaps a price cut to the main one.

macOS 10.16 Avalon

I quite like this name that Myke picked during the Upgrade's WWDC Keynote Draft episode.

]]>
https://vatthikorn.com/wwdc-2020-wish-listhttps://vatthikorn.com/wwdc-2020-wish-listMon, 22 Jun 2020 04:50:00 GMT
<![CDATA[George Floyd Protests vs Anti-Lockdown Protests]]>Li Zhou and Kainaz Amaria on Vox (via Axios):

Images from these protests — including protesters dousing their faces with milk in order to temper the sting of the tear gas — underscore not only the intensity of the response, but a major contrast with the lack of force that’s been used in anti-lockdown protests at state capitols around the country, when the protesters were armed white men.

[...]

“Unarmed people, many of whom are people of color, protest police brutality and are met with police brutality — flash grenades, tear gas, and rubber bullets,” says Georgetown Law professor Paul Butler, the author of Chokehold: Policing Black Men. “But when armed, mainly white protesters storm the Michigan state capitol, the police just let them be.”

Truly pisses me off. Scary to imagine what could happen if these protesters were armed like those white anti-lockdown protesters.

]]>
https://vatthikorn.com/george-floyd-protests-vs-anti-lockdown-protestshttps://vatthikorn.com/george-floyd-protests-vs-anti-lockdown-protestsSun, 31 May 2020 20:47:00 GMT
<![CDATA[SpaceX Crew Dragon Launch]]>Loren Grush on The Verge:

After nearly two decades of effort, Elon Musk’s aerospace company, SpaceX, successfully launched its first two people into orbit, ushering in a new age of human spaceflight in the United States. The flight marked the first time astronauts have launched into orbit from American soil in nearly a decade, and SpaceX is now the first company to send passengers to orbit on a privately made vehicle.

What a momentous accomplishment for SpaceX and American human spaceflight.

On a personal note, I am deeply disappointed that I did not get see this launch in person despite living not more than 50 miles away from Cape Canaveral. But I was actually able to hear and feel the rumbling all the way from here, albeit after quite a few minutes of delay. Under usual circumstance, I definitely would have been there since the crack of dawn today to catch a good view of the launch.

Chris Gebhardt on Twitter:

Endeavour! They named it Endeavour! Endeavour was my personal favourite Shuttle Orbiter because it is actually her maiden voyage that is my first memory. This day just keeps getting better and better. #SpaceX #CrewDragon #Endeavour

From the live stream during the tour of the capsule, Doug Hurley said that they picked this name because both his and Bob Behnken's first flight was on the Space Shuttle Endeavour. Interestingly, Endeavour was also the name given to the command module on Apollo 15 and the lunar module on that mission was named Falcon.

]]>
https://vatthikorn.com/spacex-crew-dragon-launchhttps://vatthikorn.com/spacex-crew-dragon-launchSun, 31 May 2020 04:19:00 GMT
<![CDATA[Women in Thailand Parliament]]>Caroline Criado Perez in her book, Invisible Women:

As of December 2017, women made up an average of 23.5% of the world's parliamentarians, although this figure hides significant regional variation: Nordic parliaments are on average 41.4% female while Arab parliaments are on average 18.3% female.1 Women account for 10% or less of parliamentarians in thirty-one countries, including four countries that have no female parliamentarians at all. And in most countries precious little is being done to remedy this. (p. 272)

Naturally, this made me wonder what the figures are like in Thailand parliament.

From my research on the Thai National Assembly website, there are 78 women out of 489 MPs in the House of Representatives, making it 15.95% female. Note that this figure does include the first transgender MP elected to the Thai parliament, Tanwarin Sukkhapisit, but they actually identify as non-binary. I'm counting them in as the stat I'm looking for is about how male-dominated the parliament is.

On the Senate side — where senators are not elected but appointed by the military government — there are 26 women out of 250 senators, making it 10.4% female.

In total, there are 104 women out of 739 MPs. This makes the Thai parliament as a whole only 14.1% female.

Now let's see how Thailand fares against other countries2. Keep in mind the world average as of 2019 is 24.5% and in Asia it's at 19.7%.

Thailand's House of Representatives is ranked 132nd (out of 188 countries) in terms of percentage of women in the lower chamber or unicameral parliaments. Within South East Asia, it comes in at 8th out of 11 countries, beating out just Malaysia, Myanmar, and Brunei. The irony is that a lot of Thais often look down on their neighboring countries such as Laos, Vietnam, Indonesia, and Cambodia as being less developed.

sea women in parliament house

Now for the Senate (again, not elected but appointed by the junta), out of 78 countries with an upper chamber, Thailand's is ranked 71st, only beating out countries such as Nigeria, Yemen, and Haiti. And amongst the 5 South East Asian countries with an upper chamber, it comes in dead last.

Needless to say, this is embarrassing for Thailand. But then what isn't embarrassing about this country's current political situation?


  1. http://archive.ipu.org/wmn-e/world.htm ↩︎

  2. The percentage for the House is going to be a bit lower here since the IPU's figure does not include Tanwarin. ↩︎

]]>
https://vatthikorn.com/books/women-in-thailand-parliamenthttps://vatthikorn.com/books/women-in-thailand-parliamentMon, 20 Apr 2020 00:53:00 GMT
<![CDATA[On Post-processing a Photograph]]>Francesco Carucci on PetaPixel:

The RAW image, which comes from reading the Bayer Filter Mosaic, can not be visualized without a transformation to create an RGB image that can be displayed on a screen or printed on paper.

The interpretation of the raw file to reconstruct colors from the Bayer Filter Mosaic (what is often referred to as “Color Science”) and produce the final image applies a number of subjective transformations and selectively throws away information. The subjective interpretation must happen somewhere between capturing an image and displaying it. Someone has to take the subjective decisions about what information to throw away, what information to keep and how to transform the information to be able to visualize it.

[...]

When you read “no filter” or “straight out of camera”, what you are really reading is “I’m leaving the post-processing choices to the engineers who designed the camera”.

Very well-put here by Carucci. I am a firm believer that a large portion, if not in some cases the majority, of the time it takes into creating a photograph is in the post-processing1. But in this day and age of digital photography, where any image can be conjured up in Photoshop, the words "post-processing" and "editing" have gotten the connotation that the producer of the work is not being truthful. It sometimes feels almost as if those who are so in-your-face about their "no filter" photos think they have some sort of moral high ground for not touching up their photos.

Now with great cameras being so ubiquitous thanks to smartphones, these "no filter" images are in fact so incredibly post-processed that there are probably way more adjustments done to these smartphone photos than how much an average photographer does to process their RAW images.

From Apple's press release for iPhone 11 back in 2019:

Next-generation Smart HDR uses advanced machine learning to capture more natural-looking images with beautiful highlight and shadow detail on the subject and in the background. Deep Fusion, coming later this fall, is a new image processing system enabled by the Neural Engine of A13 Bionic. Deep Fusion uses advanced machine learning to do pixel-by-pixel processing of photos, optimizing for texture, details and noise in every part of the photo.

So yeah, every image everyone takes nowadays is very much so post-processed.


  1. Of course, with the exception here being photojournalism. ↩︎

]]>
https://vatthikorn.com/on-post-processing-a-photographhttps://vatthikorn.com/on-post-processing-a-photographSat, 21 Mar 2020 22:49:00 GMT
<![CDATA[International Space Station LEGO Set Announced]]>Brickset (via Ars Technica, tweet):

Build and display this spectacular LEGO Ideas 21321 ISS (International Space Station). Packed with authentic ISS details, including a posable Canadarm2 and 2 rotating joints that coincide with 8 adjustable ‘solar panels’, this 864-piece set is a wonderful gift idea for space enthusiasts, adult LEGO fans or any experienced builder.

And:

This ISS (International Space Station) toy building kit for adults, measuring over 7” (20cm) high, 12” (31cm) long and 19” (49cm) wide, makes a beautiful display model that will catch the eye of every passer-by.

Announcement tweet from the official LEGO account:

An out-of-this-world building experience is coming! 🌙⭐️ The LEGO International Space Station is available February 1st!

Listed for $70 on the product page on LEGO website.

Just take my money already.

]]>
https://vatthikorn.com/lego-iss-announcementhttps://vatthikorn.com/lego-iss-announcementTue, 21 Jan 2020 19:27:00 GMT
<![CDATA[Crew Dragon In-Flight Abort Test]]>TechCrunch:

SpaceX completed a crucial test of a key safety system of its Crew Dragon spacecraft today. The test involved launching its Crew Dragon using a Falcon 9, though without any actual crew on board. The launch was then intentionally cut short, with the In-Flight Abort (IFA) system triggered to separate the Crew Dragon from the rocket about about a minute and a half into the launch process.

And:

The Falcon 9 rocket used her [sic] had flown on three previous missions, and was in fact the first booster produced as part of SpaceX’s run of human-rated variants of the Falcon 9 design. As intended, the Falcon 9 broke up once the Crew Dragon ejected, with the on-board fuel generating a pretty impressive explosion.

The best clip of the separation from SpaceX:

Crew Dragon separating from Falcon 9 during today’s test, which verified the spacecraft’s ability to carry astronauts to safety in the unlikely event of an emergency on ascent

Then the subsequent explosion of the booster, from Spaceflight Now:

This spectacular series of photos shows the Crew Dragon abort and the expected explosion of the Falcon 9 rocket during today’s launch escape test over Florida’s Space Coast (📷: Katie Darby).

Loren Grush:

RIP Falcon 9. We saw it clearly fall from the sky

]]>
https://vatthikorn.com/crew-dragon-in-flight-abort-testhttps://vatthikorn.com/crew-dragon-in-flight-abort-testMon, 20 Jan 2020 03:31:00 GMT
<![CDATA[Once Upon a Time... in Hollywood | Tarantino at his Most Meta]]>Fantastic video essay on the new Tarantino film. This channel got an instant-subscribe from me with this video.

Side note: I saw this film in the theater when it came out and really enjoyed it. Regrettably, I actually had never heard of Tate–LaBianca murders or Charles Manson before seeing the film. Only after I came out of the theater did I finally learn from my girlfriend what that whole subplot was actually about.

Now I'm going to have to rewatch this film with this newfound perspective and context...

]]>
https://vatthikorn.com/the-discarded-image-once-upon-a-time-in-hollywoodhttps://vatthikorn.com/the-discarded-image-once-upon-a-time-in-hollywoodSun, 19 Jan 2020 03:47:00 GMT
<![CDATA[Some Thoughts on the AirPods Pro]]>I never owned the regular AirPods. It's not that I didn't want them — I really did — it's just that I never had good enough reasons to get them given my audio listening habits and what they had to offer. Plus a pair of regular EarPods with wires chopped off didn't really sound all that special to me. But since the release, the people on the web and those that I know in person who own them all say that the AirPods are some of their favorite Apple products. I think I would have gotten a pair if they had something more: perhaps noise cancellation or if they don't fall out of the ears so easily. After all, I loved those classic Apple's wired in-ear headphones.

Enter the AirPods Pro. After months of speculations, Apple announced in a press release and made available the long-awaited upgrade to their wildly popular and loved product, all within a two-day period. This pushed me over the fence, and I am now an owner of these headphones.

It just so happened that I was going to be on some long-haul flights not long after I got the AirPods Pro, so they were the perfect testing grounds for comfort and noise cancellation. Prior to the flights, my initial guess was that my Bose QuietComfort 35 (Series I, ver. 3.0.3) would be more comfortable for such an extended usage, but it turned out the AirPods Pro were way more comfortable. It must be something to do with my ears because after a couple of hours with the Bose headphones on, my earlobes would always start to hurt as the earpads were pressing on them. With the AirPods Pro, that is not an issue. I'm not as sensitive as some people might be with this type of in-ear earbuds — I actually prefer them over regular earbuds that just sit on the edge of the ear canals — so I was able to wear them hours after hours on those flights. I even went to sleep and woke up with them still in my ears feeling no discomfort around or in them.

As you might know, there are usually quite a few announcements during long flights like these. With the Bose, I would have to either take them off completely, or move an earcup up off one of my ears onto the temple to be ble to hear the announcements. With the AirPods Pro, a click to pause followed by a 1-second hold to activate the Transparency mode was all it took to be able to hear the surroundings. Alternatively, I could just take one out of my ear and it would pause whatever media playing as well as turning on Transparency mode for the other ear. I personally found it to be a much more seamless and less of an annoyance than traditional headphones are in this situation.

The noise cancellation is way better than I expected. In the aircraft cabin at cruising altitude, the ambience noise was, according to my Apple Watch's Noise app, around 70-75dB, which was a perfect environment to test this. I compared them with the Bose headphones with no music and, to my surprise, the AirPods Pro did better at canceling out the noise than the Bose headphones. I did not at all expect this to be the case. And to get a similar level of isolation, I had to turn up the volume a bit more on the Bose. I believe this is due to the nature of the in-ear earbuds creating a seal in your ears blocking much of the noise, combined with the superb Active Noise Cancellation system.

Though when the music is playing, I find that the Bose headphones perform better when it comes to sound quality. This isn't really a fair comparison to begin with and I am no audiophile or have that acute a sense of hearing, but I can tell that the AirPods Pro do sound a bit flatter than the Bose. However, the AirPods Pro do produce quite a lot of bass in such a tiny package.

During one of those flights, I was pleasantly surprised that there was a baby crying a few rows ahead of me which I was completely oblivious of until I turned off the noise cancellation. I happily turned it back on again. The transition from Transparency mode to Active Noise Cancellation is super satisfying. It feels almost literally like the world disappearing right in front of you and you're now in your own world. By the time I flew back in another stint of flights totalling over 24 hours, I ended up just using the AirPods Pro the majority of the time. The only time I had to use my Bose headphones was when the AirPods Pro needed recharging.

The Transparency mode is interesting. With my Bose headphones, I'm used to this "headset" mode that happens sometimes during conference calls in which it relays the sounds the microphones pick up back into the headphones. It is a very off-putting experience since the headphones are canceling out the ambience noise but at the same time that very same ambience noise they're cancelling out, plus your own voice as you talk, is being played back. It kind of makes you feel like you have hyper-hearing or something. And with the AirPods Pro, I was half-expecting Transparency mode to be something like that. Again, to my surprise, it's better than I had anticipated. I can definitely tell that they're playing back what the microphones pick up but the effect is definitely not as startling an experience. To me it's very close to sounding perfectly natural, except it sort of has this quiet background static noise added to it. I can definitely hear the surrounding way more compared to when the Transparency mode is off. This is a very useful feature if you want to have a conversation while wearing them or be mindful of your environment when you're out and about.

The AirPods Pro also work with the Find My app (I actually have no idea if the regular AirPods do). What's really cool about this is that in the app there's a "Play Sound" option to help with locating them, just like with the iPhone and iPad. It starts with a quiet beeping that gets progressively louder. I thought this would only work if there's a device currently connected to them because clearly the AirPods Pro themselves are not connected to the internet to be able to receive the command to play the sound wherever they are in the world. But I did some testing by disconnecting them from my phone and going outside so they are out of range. I hit the "Play Sound" and after a few seconds the app said the sound was being played on them. A little puzzled, I came back inside and indeed the beeping sound was playing, and yet they were still disconnected from my phone. A notification then popped up on my phone saying that they were found by my iPad which was sitting in range of them.

IMG 5862

So I think what happens when you hit "Play Sound" on the Find My app is that the phone would first try to connect to the AirPods and play the sound on them. If it cannot find them, it would cycle through other devices you have signed in to your iCloud account and try to connect to them to play the sound. I tested this theory by bringing both my phone and my iPad out of range of the AirPods Pro and doing the same thing in the app. And sure enough, no sound was played. This is such a little thing but I find it so thoughtful and delightful. For all I know, this might already be the case with the regular AirPods and I'm just finding out about it now.

When you go into the Bluetooth setting and tap on the little "i" icon on the AirPods Pro, it brings up a custom settings page that allows for quite a bit of customization. This includes changing the name, select the noise control, and pick if you want the press-and-hold on the stem to trigger Siri or switch between noise modes, which can be set differently between the left and right ones.

Towards the bottom of the page, there is this interesting little option labeled Ear Tip Fit Test with caption "Check the fit of your AirPods1 ear tips to determine which size provides the best seal and acoustic performance". The test itself just plays this 6-second sound and uses the microphones to determine if the seal is optimal for best noise cancellation. It would tell you if the seal isn't perfect in one or both of the ears. Amusingly for me, I ran this test with all three ear tip sizes and they all reported perfect fits. So I'm just using the medium ones and saving the others as spare parts.

Some other nuggets:

  • The tip takes much more force to pull off than I thought. It felt like I was definitely going to break it.
  • The force buttons on the stems work great and require no getting used to. I thought the act of pressing on the stem would have pulled out or loosen the seal in my ears but they remain unaffected even after repeated pressing.
  • Despite the case being a bit larger than the regular AirPods, they fit perfectly in the tiny change pocket on my Levi's 511 jeans.
  • The case and the AirPods themselves do get dirty quite easily. And now with the in-ear earbuds, it's gonna be earwax town all up in there.
  • When you're charging the case on a wireless charging pad, you can tap on the case near the indicator light and it would lit up showing the charging status. Green for charged and amber for charging. Interestingly, this doesn't work if you're charging it via Lightning cable.
  • There were no Apple stickers in the box.

  1. Interesting omission of the "Pro" here despite the press release never calling the AirPods Pro just generic AirPods. Not sure what the official Apple style guide for this is. ↩︎

]]>
https://vatthikorn.com/some-thoughts-on-the-airpods-prohttps://vatthikorn.com/some-thoughts-on-the-airpods-proThu, 09 Jan 2020 06:17:00 GMT
<![CDATA[Fully Decked Out Mac Pro]]> mac pro decked out

So now that the new Mac Pro is available for sale, I figured I would go take a look at how much it costs with everything upgraded to the highest possible configuration. And as you can see in the screenshot above, it will cost you $52,748.

Apparently there is an 8TB SSD option coming soon so it will definitely be well over $53,000. For context, the MSRP for a brand-new BMW 5 Series is $53,900.

Then we can also add the Pro Display XDR with nano-texture glass with a Pro Stand which will add $6,998 to it. And why not make it a dual-monitor setup while we're at it.

So now this whole setup will set you back $66,744, excluding taxes.

mac pro cart

Well, at least the shipping is free.

]]>
https://vatthikorn.com/fully-decked-out-mac-prohttps://vatthikorn.com/fully-decked-out-mac-proWed, 11 Dec 2019 21:16:00 GMT
<![CDATA[16-inch MacBook Pro First Impressions Roundup]]>Marco Arment:

I’m on cloud nine. Look at this glorious keyboard! An Esc key! Inverted-T arrow keys! A millimeter of key travel! Enough spacing between the keys for our fingers to accurately orient themselves! And keystrokes will probably work, 100% of the time, for years!

[...]

The biggest change is that I finally don’t feel like it’s constantly fighting me. Its design doesn’t feel spiteful. It’s a computer that doesn’t seem to hate being a computer. I’m not afraid to use it in the world, and I’m not avoiding using it because it’s unpleasant. The butterfly keyboard was the opposite, it never got better, I never got used to it, and good riddance to it.

Following in the footsteps of the fantastic iMac Pro, updated Mac Mini, and upcoming Mac Pro, the release of the 16-inch MacBook Pro ends a painful chapter of neglect and hubristic design of the Mac. Apple has finally turned the ship around.

John Gruber:

Really, I don’t think there’s anything I can write here that will convince you how good these speakers sound. However good you think I’m saying they sound, they sound way better than that.

[...]

We shouldn’t be celebrating the return of longstanding features we never should have lost in the first place. But Apple’s willingness to revisit these decisions — their explicit acknowledgment that, yes, keyboards are meant to by typed upon, not gazed upon — is, if not cause for a party, at the very least cause for a jubilant toast.

This is a MacBook you can once again argue is the best laptop hardware money can buy.

A lot of high praises for this new 16-inch MacBook Pro. The 15-inch MacBook Pro has been my main personal computing device since the 2010 model and now the 2019 model for work. So I spend a lot of time on them. This upgrade sure does look like it has almost everything I wish for.

Jason Snell (via Michael Tsai):

[D]espite the reduction in bezel size, this is a larger laptop than the 15-inch MacBook Pro—14.09 inches wide (up .34 inches or about 9 millimeters) and 9.48 inches deep (up .2 inches or about 5.2 millimeters). The 16-inch MacBook Pro is also thicker, by less than a millimeter, at 0.64 inches (1.62cm) thick.

[...]

Clearly Apple’s design philosophy here was to optimize for performance and battery life and allow the laptop to get a little larger if needed. After many years of Apple seemingly prioritizing thinness and lightness even in its products targeted at professional users, this is a refreshing shift.

[...]

The new studio-quality mic array has a signal-to-noise ratio that is so high, it rivals that of popular professional-grade standalone digital microphones. With 40 percent less hiss than before, recordings sound superclean and capture much more of the quieter detail

[...]

If you’re someone who was waiting to throw out the industrial design of the MacBook Pro for something that looks different, or to add back MagSafe and a card slot, this laptop will disappoint you. Apple apparently didn’t have those features high on its priority list, if they were even there at all.

And a little bit of insight from Phil Schiller in an interview with Roger Cheng:

To make this new scissor mechanism work appropriately in a notebook, we had to adapt it to the angle, which is different in a notebook than in a slanted desktop design for ergonomics. And it had to work in a design that had a backlight, which the notebook has that desktops do not.

]]>
https://vatthikorn.com/16-inch-mbp-first-impressions-rounduphttps://vatthikorn.com/16-inch-mbp-first-impressions-roundupFri, 15 Nov 2019 09:25:00 GMT
<![CDATA[Lewis Hamilton Won the F1 2019 World Championship]]>formula1.com:

Lewis Hamilton has stepped out of the great Juan Manuel Fangio’s shadow to join Michael Schumacher as one of only two drivers in history to have won as many as six F1 world championship titles.

What an incredible achievement. One more to go to match Schumacher with the most world titles of seven. I hope Hamilton will surpass him though I don't think it will be easy with the regulation changes coming up in the next couple of years.

Side note: I'm a complete newcomer to F1 but I highly recommend Netflix's documentary series Formula 1: Drive to Survive. It's what got me started with this sport.

]]>
https://vatthikorn.com/hamilton-f1-2019-championshiphttps://vatthikorn.com/hamilton-f1-2019-championshipMon, 04 Nov 2019 03:36:00 GMT
<![CDATA[John Gruber's AirPods Pro First Impressions]]>John Gruber of Daring Fireball:

[T]here’s no question how AirPods Pro compare to regular AirPods. The difference is like night and day. Amtrak trains are pretty noisy — especially at what we in the U.S. so adorably consider “high speeds” — but with AirPods Pro the clackety-clack rumble was effectively blocked out.

[...]

My corner store has a noisy refrigeration unit. With AirPods Pro on — playing nothing — I couldn’t hear it at all. I couldn’t tell that my dishwasher was running even though I was sitting right across from it in my kitchen.

The AirPods Pro's noise cancellation seems to be better than expected. Even MKBHD thought so too. I'm pretty sure it's no better than those in Bose and Sony over-ear headphones. But I'm going on some long haul flights soon and they are perfect testing grounds for this. I'll report back in a couple of weeks.

Also, an interesting tidbit:

The force sensor — the flat section on the earbuds stem that faces forward when in your ear — is effectively a button. But it’s not a button. It doesn’t actually move, and it doesn’t provide haptic feedback. But it acts like a button and — most importantly — sounds like a button. When you press it, the AirPod Pro plays a click. I use the singular AirPod there because the click only plays in the bud whose force sensor you pressed. The effect is uncannily like clicking a real button. In a similar way to how force touch trackpads on modern MacBooks and Touch ID iPhone home buttons feel like they truly click, the AirPods Pro force sensors feel like actual clicking buttons. They actually have more of a premium clicky feel than the truly clicking buttons on Apple’s wired EarPods, even though they don’t actually click. It’s uncanny, and Apple at its best.

]]>
https://vatthikorn.com/gruber-airpods-prohttps://vatthikorn.com/gruber-airpods-proWed, 30 Oct 2019 18:14:00 GMT
<![CDATA[Ultralearning by Scott H. Young]]>Great book with a lot of useful tips and interesting anecdotes about how to learn effectively. A lot of these principles can be applied directly to your own learning goals. I'm quite inspired by it and planning to start my own ultralearning project soon using these techniques I learned from the book. A must-read for any lifelong learners.

Check it out on Goodreads.

Highlights

  • Directness is the practice of learning by directly doing the thing you want to learn. Basically, it’s improvement through active practice rather than through passive learning. The phrases learning something new and practicing something new may seem similar, but these two methods can produce profoundly different results. Passive learning creates knowledge. Active practice creates skill.
  • First, deep learning provides a sense of purpose in life. Developing skills is meaningful. It feels good to get good at something. Ultralearning is a path to prove to yourself that you have the ability to improve and to make the most of your life. It gives you the confidence that you can accomplish ambitious things.
  • The opposite of this is learning optimized for fun or convenience: choosing a language-learning app because it’s entertaining, passively watching trivia show reruns on television so you don’t feel stupid, or dabbling instead of serious practice.
  • Your deepest moments of happiness don’t come from doing easy things; they come from realizing your potential and overcoming your own limiting beliefs about yourself.
  • Professional success, however, was rarely the thing that motivated the ultralearners I met—including those who ended up making the most money from their new skills. Instead it was a compelling vision of what they wanted to do, a deep curiosity, or even the challenge itself that drove them forward.
  • The best ultralearners are those who blend the practical reasons for learning a skill with an inspiration that comes from something that excites them.
  • The first problem that many people have is starting to focus. The most obvious way this manifests itself is when you procrastinate: instead of doing the thing you’re supposed to, you work on something else or slack off.
  • Make a mental habit of every time you procrastinate; try to recognize that you are feeling some desire not to do that task or a stronger desire to do something else. You might even want to ask yourself which feeling is more powerful in that moment—is the problem more that you have a strong urge to do a different activity (e.g., eat something, check your phone, take a nap) or that you have a strong urge to avoid the thing you should be doing because you imagine it will be uncomfortable, painful, or frustrating?
  • If you actually start working or ignore a potent distractor, it usually only takes a couple minutes until the worry starts to dissolve, even for fairly unpleasant tasks. Therefore, a good first crutch is to convince yourself to get over just the few minutes of maximal unpleasantness before you take a break.
  • Flow is the enjoyable state that slides right between boredom and frustration, when a task is neither too hard nor too easy.
  • Researchers generally find that people retain more of what they learn when practice is broken into different studying periods than when it is crammed together.
  • Multitasking may feel like fun, but it’s unsuitable for ultralearning, which requires concentrating your full mind on the task at hand. It’s better to rid yourself of this vice than to strengthen bad habits of ineffective learning.
  • When we learn new things, therefore, we should always strive to tie them directly to the contexts we want to use them in. Building knowledge outward from the kernel of a real situation is much better than the traditional strategy of learning something and hoping that we’ll be able to shift it into a real context at some undetermined future time.
  • Many ultralearners opt for projects rather than classes to learn the skills they need. The rationale is simple: if you organize your learning around producing something, you’re guaranteed to at least learn how to produce that thing.
  • One strategy I’ve seen repeatedly from ultralearners is to start with a skill that they don’t have all the prerequisites for. Then, when they inevitably do poorly, they go back a step, learn one of the foundational topics, and repeat the exercise.
  • [S]omething mentally strenuous provides a greater benefit to learning than something easy.
  • Whether you are ready or not, retrieval practice works better. Especially if you combine retrieval with the ability to look up the answers, retrieval practice is a much better form of studying than the ones most students apply.
  • Fear of feedback often feels more uncomfortable than experiencing the feedback itself. As a result, it is not so much negative feedback on its own that can impede progress but the fear of hearing criticism that causes us to shut down.
  • Ultralearners carefully adjust their environment so that they’re not able to predict whether they’ll succeed or fail. If they fail too often, they simplify the problem so they can start noticing when they’re doing things right. If they fail too little, they’ll make the task harder or their standards stricter so that they can distinguish the success of different approaches. Basically, you should try to avoid situations that always make you feel good (or bad) about your performance.
  • One of the pieces of studying advice that is best supported by research is that if you care about long-term retention, don’t cram. Spreading learning sessions over more intervals over longer periods of time tends to cause somewhat lower performance in the short run (because there is a chance for forgetting between
  • Psychologists theorize that the difference between grand masters and novices is not that grand masters can compute many more moves ahead but that they have built up huge libraries of mental representations that come from playing actual games.
  • Simply spending a lot of time studying something isn’t enough to create a deep intuition.
  • One way you can introduce this into your own efforts is to give yourself a “struggle timer” as you work on problems. When you feel like giving up and that you can’t possibly figure out the solution to a difficult problem, try setting a timer for another ten minutes to push yourself a bit further.
  • Explaining things clearly and asking “dumb” questions can keep you from fooling yourself into thinking you know something you don’t.
  • In a fixed mindset, learners believe that their traits are fixed or innate and thus there’s no point in trying to improve them. In a growth mindset, in contrast, learners see their own capacity for learning as something that can be actively improved.
  • Experimenting is based on the belief that improvements are possible in how you approach your work.
  • Experimentation is the principle that ties all the others together. Not only does it make you try new things and think hard about how to solve specific learning challenges, it also encourages you to be ruthless in discarding methods that don’t work. Careful experimentation not only brings out your best potential, it also eliminates bad habits and superstitions by putting them to the test of real-world results.
  • The biggest obstacle to ultralearning is simply that most people don’t care enough about their own self-education to get started.
  • I recommend setting a consistent schedule that is the same every week, rather than trying to fit in learning when you can. Consistency breeds good habits, reducing the effort required to study.
  • Finally, take all this information and put it into your calendar. Scheduling all the hours of work on the project in advance has important logistical and psychological benefits.
  • [I]n my own experience, I’ve noticed that enjoyment tends to come from being good at things. Once you feel competent in a skill, it starts to get a lot more fun. Therefore, although a tension between the two can exist in the short term, I think pursuing aggressive ultralearning projects is often the surer way to enjoy learning more, as you’re more likely to reach a level where learning automatically becomes fun.
  • A hungry person can eat only so much food. A lonely person can have only so much companionship. Curiosity doesn’t work this way. The more one learns, the greater the craving to learn more. The better one gets, the more one recognizes how much better one could become.
]]>
https://vatthikorn.com/books/ultralearninghttps://vatthikorn.com/books/ultralearningSat, 05 Oct 2019 23:27:00 GMT
<![CDATA[How I Framed My Landscape Photo]]>I have a confession to make. I never actually printed out any of my landscape photos, framed it, and hung it on my wall before. So I embarked on a little project with a goal to do just that.

Picking the Photo

In the collection of landscape photos I took over the years (you can see some of them at the gallery), I was looking to pick out one that's unique and has that, dare I say, fine art quality, worthy of being hung prominently on a wall.1 There were a couple of candidates, but I landed on this one (still a camera-processed JPEG):

IMG 0631 camera raw

This photo was taken back in summer of 2015 in Krabi, Thailand. To get this shot, I had to get up early enough to be at the trailhead by 4 in the morning, then hike in the dark for 2.5 hours on a mostly unmarked trail for about 4 km (2.5 mi) with around 500 m (1,600 ft) elevation gain up to this relatively unknown viewpoint to catch the sunrise. The effort it took to capture this made it so gratifying, and that's part of the reason why I chose this photo.

Re-processing the Photo

Back when I first took this photo, I already did the post-processing and uploaded it online. Though looking at that photo now 4 years later, I don't really like how I had done it; it felt a bit too cool for my liking. So I took another shot at it, and this time with proper preparation for prints.

1

Printing

After some research, I settled on ordering the print from Mpix. I wanted the highest quality they had to offer so I went with a 10"x20" Giclée print on their matte "Fine Art Photographic" paper. I considered doing 12"x24" but with a mat board and a frame, I figured it would be too large.

Framing

I had absolutely no idea how to even start with this. My initial plan was to just have it framed by Mpix with the print order, but unfortunately it's not very customizable and they can get quite pricey. Researching for some local frame shops revealed that they can also get expensive quick and the turnaround time could be a few weeks. In the end, a couple of guides online convinced me to go with the semi-DIY route. So I ordered the frame kit from Frame Destination.

frame customization

The kit is a custom-sized 14"x24" Black Wood Frame with a 2 1/8" mat board. For the glazing, I picked the acrylic over glass as I wanted to keep this relatively light. It's also more optically pure than glass and shatter resistant.

At the risk of looking super pompous, I signed the print before framing it. I went back and forth on this for a while because, for starters, I don't really have an actual signature and I thought maybe this print isn't of fine art quality enough that it warrants a signature. Plus this project was for my own enjoyment, it's not like I was planning to sell it at an art show or anything. But in the end, after some reading around and stumbling upon this video, I went ahead and signed it. This acid-free Decocolor gold paint marker worked out nicely.

IMG 7114 Of course, even after pages of practice, not only did I not sign it as nicely as I'd like, I also didn't even space it properly from the corner. Oh well...

When it came time to actually put it all together, I would soon learn that I should have taken that B&H guide more seriously — especially around how acrylic can become statically charged — and gotten myself some anti-static gloves or cloths. Being in a small-ish apartment with two cats, I could not believe how much cat hair and dust particles are floating around in the apartment which, to my dismay, all chose to hang out on the acrylic. After frustratingly fiddling around for an hour, feeling utterly defeated trying to get all the cat hair off of the acrylic, the frame was ready to be assembled.

Using this linen hinging tape, I did the T-hinge to mount the print to the foam board, and the foam board to the mat board. Everything had to be in the right order: first the empty frame, then the acrylic, the mat board, the print, and the foam core. Securing all the frame points, then attaching the wire to the frame, and it was completed. Lastly with a basic picture hanging kit, it is now proudly displayed on the wall.

IMG 5583 2

It finally feels finished that this photograph takes up physical space in the world and is no longer just 1s and 0s on a hard drive or in the cloud somewhere to only be double-tapped on and forgotten about after a couple of seconds of being looked at. If you haven't printed out your favorite photos, I highly recommend it.


  1. Obviously a sunrise shot like this isn't by any means unique but I'd say given the location which is relatively unknown to the wider world, it's unique enough for my purpose. ↩︎

]]>
https://vatthikorn.com/how-i-framed-my-landscape-photohttps://vatthikorn.com/how-i-framed-my-landscape-photoThu, 03 Oct 2019 02:43:00 GMT
<![CDATA[American Wolf by Nate Blakeslee]]>Truly fascinating read about the wolf reintroduction project to Yellowstone, which I've never heard of until I came across this book. Now my appreciation of these majestic creatures is higher than ever before. And Yellowstone National Park just moved up to the top 3 of US national parks I must visit.

Check it out on Goodreads.

Highlights

  • Every pack in Yellowstone had at least one wolf that had been darted from a helicopter, collared, and assigned a number by the park’s small team of wolf biologists.
  • Territorial conflict was the most common cause of death for the park’s wolves, most of whom didn’t live beyond four or five years. Life for wolves was an adventure, but it was usually not a long one.
  • O-Six’s great-grandmother had been one of the first wolves reintroduced to the park, captured on the plains of western Canada, eight hundred miles to the north, and ferried south by plane and truck in the winter of 1995. By that time, Yellowstone had been essentially devoid of wolves for almost seven decades.
  • Once found in virtually every habitat between the Arctic Circle and present-day Mexico City, gray wolves had been the target of a centuries-long campaign of trapping and poisoning—a war waged both for their valuable pelts and to protect livestock. They were all but eliminated by the 1920s across the vast majority of the Lower 48.
  • Rangers patrolling on horseback finished the job the trappers had started: finding active dens, destroying the pups, and then trapping or tracking the returning adults so they could be killed as well.
  • As a science, wildlife management was still in its infancy, and park officials genuinely believed that predators would eventually decimate the park’s prey population if left to their own devices. They didn’t realize that wolves and elk had coexisted in Yellowstone for thousands of years, that the two species had in fact evolved in tandem with each other—which explained why the elk could run just as fast as the wolf but no faster.
  • Hunting was big business in the Northern Rockies—not just for the professional hunting guides who relied on a steady stream of clients to earn a living, but also for the restaurants and motels that hosted the influx of out-of-town hunters who arrived every fall.
  • Now, just fourteen years after the first pens were opened in the Lamar Valley, the wolf population in the Northern Rockies had grown to over seventeen hundred animals.
  • Ensconced in the sparsely wooded Lamar Valley since the early days of reintroduction, the Druids were the easiest pack to spot for researchers and park visitors alike, making them the face of the reintroduction program for over a decade.
  • As the years went by and Yellowstone wolf-watching became a full-blown phenomenon, Rick became something of a celebrated figure himself, with all the perks—and headaches—that appertained. Visitors interested in seeing wolves learned by word of mouth that their best course of action was to look for Rick’s yellow Nissan Xterra.
  • Rick never quite got used to being followed, but he grew resigned to the routine: if he so much as paused in a pullout or parking lot, it was just a matter of time before one car would stop, then another. Soon a dozen cars would be squeezing in. Like a grizzly or a bald eagle or any of the park’s traffic-jam-inspiring attractions, he had been sighted.
  • Wolves had an evolutionary imperative to become attuned to the emotions of others because they lived in packs, where cooperation—for hunting, for protection from rivals—was paramount. Sociability enhanced the chances for survival.
  • Over years of watching wolves, Rick had become convinced that empathy was the single most important trait that an alpha could have, and 21’s capacity for it continued to amaze him.
  • Alpha wolves with Druid lineage were now spread throughout the Northern Range, including the female who would eventually lead the Agate Creek Pack and give birth to O-Six. To Rick, the Druids were like the Kennedys, American royalty.
  • Rick mourned 21’s death for a long time. In the years he’d watched the wolf, he felt he’d learned everything there was to know about him—his quirks, his moods, his strengths and weaknesses. He could guess what 21 would do before he did it. Rick liked to tell visitors that “21 never lost a fight, and he never killed a vanquished rival.” In fact, Rick sometimes called him “Superman,” because he’d always felt that 21, of all the wolves he’d known, had the perfect blend of valor and nobility. He hung a poster-size print of the enormous silver male on the wall above his writing desk in his cabin. Captured at full sprint, he appeared to be flying.
  • But O-Six, since leaving her natal pack, had become surprisingly adept at single-handedly bringing down prey.
  • Experiencing Yellowstone through a spotting scope was an entirely different experience from seeing the park from a car or even from a hiking trail. Only when you tried scanning the entire length of Specimen Ridge or Druid Peak one two-hundred-yard diameter circle at a time did you get a sense of how big the Lamar Valley really was.
  • The Lamar Valley boasted the highest prey density of anyplace on earth outside the African Serengeti.
  • From a high of 174 wolves just seven years before, the number of wolves had plummeted to roughly 100.

    Project biologists had long suspected that such a drop would occur as a kind of equilibrium was reached between predators and available prey, but it was still hard for veteran watchers to accept. Wolves were now harder to spot than they had been in years, and Rick resigned himself to the inevitability of an occasional day without a sighting.

  • Every year since reintroduction, they’d seen more wolves and fewer elk, as Louie had known they would. In the last count taken before wolves were reintroduced in 1995, over nineteen thousand elk were roaming Yellowstone’s Northern Range. By 2010, that number had plummeted to six thousand, roughly what it had been back in the 1960s, before rangers stopped culling the park’s herds.
  • In the rest of America, hunting was dying. Rates of participation had been declining for decades—only 6 percent of Americans still hunted. But in the Northern Rockies, it remained integral to the culture—Montana had the highest number of hunters per capita, and Wyoming wasn’t far behind.
  • For some, it was less a sport than a means of supplementing the family food budget. Butchering a five-hundred-pound elk yielded upward of 250 pounds of meat for the freezer, enough to last an average family nearly a year, all for the price of a fifty-dollar hunting permit.
  • Wolves were once the most widely distributed land mammal on earth, and every early pastoral civilization in the northern hemisphere outside of Africa competed with them for land on which to run livestock—and for the livestock themselves. Wolves very rarely attacked people, but a single wolf could ruin a shepherd’s livelihood if he developed a taste for cattle, sheep, or goats.
  • Humanity’s most beloved animal and its most despised were essentially the same creature, but the wolf’s threat to the shepherd’s livelihood poisoned relations between men and wolves, and the wolf’s reputation never recovered.
  • One brother would sometimes show up at the den carrying a large piece of elk, such as a leg assembly, but this process was clumsy, involving frequent stops to renew his grip. More commonly the males used their stomachs as grocery bags, swallowing up to twenty pounds of meat and making the long journey back to the den. When they arrived, their sides bulging noticeably, they regurgitated the meat for the pups, like birds feeding chicks in a nest.
  • The most common practice was to ride for several days in an enormous circle, leaving poisoned buffalo meat all along the route. By the time the wolfer came back around to the beginning of his circuit, dead wolves—along with countless other predators and scavengers, including eagles and other raptors—littered the ground. The wolves were skinned on the spot; the rest of the carcasses were left to rot.
  • His commitment to reintroduction was about science, not sentiment. Wolves belonged in the Northern Rockies because they played a vital role in the ecosystem, not because they were beautiful or fun to watch.
  • Wolves had become one of those polarizing issues, like abortion or gun control or war in the Middle East, about which the country could not seem to reach a consensus.
  • The real struggle was over public land—what it should be used for and who should have the right to decide. The federal government owned almost half of all the land in the West, in large part because nineteenth-century homesteaders found much of it too arid or too rugged to settle, unlike the more hospitable Midwest, which settlers had made into the nation’s breadbasket.
  • Rick knew that in the field of wildlife biology, imputing human characteristics to a creature that it doesn’t really have—anthropomorphizing, as the habit is known—is considered a cardinal sin and a hallmark of amateurism.
  • But wolves, Rick felt, were more like humans than they were given credit for, in their tribal ways and territoriality; in their tendency to mate for life; and in the way male wolves provided food and care for their offspring, so unusual in the animal world.
  • More than anything, what wolf advocates fought against was the long-held notion that wolves were nothing more than killing machines.
  • O-Six, as Laurie frequently pointed out to her readers, was rarely “cuddly.” But that wasn’t why she and so many other watchers had come to admire her. It was her stunning blend of confidence and competence that inspired them, her indomitable will, her ability to bend a harsh landscape to her own ends, to do what needed to be done to provide for herself and her family every day, without fail. Seeing her in action was like watching a gifted athlete,
  • More wolves, it seemed, meant more beavers, but that wasn’t all: the return of Yellowstone’s top predator was having repercussions up and down the park’s food chain.
  • In short order, Yellowstone’s newly dominant canines reduced the Northern Range’s coyote population by half.
  • hunters could shoot a hundred wolves on the other side of Alaska without engendering a peep of protest. But shoot one park wolf that people had come to know and love, and suddenly everyone in the state was talking about the evils of wolf-hunting.
  • When an alpha died, especially a female, packs tended to splinter.
  • By the time the hunting and trapping seasons around the park concluded, twelve Yellowstone wolves had been lost, including six collared animals.
  • In the five years since legal hunting began, trophy hunters had taken over 2,500 wolves in the Northern Rockies, 1,500 of them in Idaho alone. Wolf populations are notoriously difficult to estimate, but official counts showed that the total in Montana at the end of 2014 was 554, down about 100 from pre-hunting levels. In Idaho, game officials had managed to reduce the population from a high of 893, in 2009, to 770.
  • Hunting was an intellectual pursuit for him. You had to know your prey, and you had to take them ethically. He spoke often about the principle of fair chase and what it meant to him. He wanted me to know he’d followed the Lamar wolves’ movements for weeks before he found them, driving around Crandall looking for tracks and listening for their howls. “I put in my time to get that wolf,” he said.
  • Humans might not have become humans, in other words, without wolves.
  • Wolves have larger brains, and studies of captive wolves have found them to be demonstrably smarter than dogs; they are better able to distinguish quantities, for example.
  • After the death of O-Six, the mantle of world’s most famous wolf fell to a gray female who had been collared by Wyoming game officials near Cody. In October 2014, she showed up at the north rim of the Grand Canyon, the first wolf sighted in the area since the 1940s.
]]>
https://vatthikorn.com/books/american-wolfhttps://vatthikorn.com/books/american-wolfMon, 15 Jul 2019 23:27:00 GMT
<![CDATA[The Moment of Lift by Melinda Gates]]>I have been a big fan of what Bill & Melinda Gates Foundation has been doing for a while now. In this book, Melinda tells stories about the women she met through her work and how empowering them improves the society as a whole. She touches on a range of topics including birth control, women education, child marriage, unpaid work, and women in workplace. Some of these stories are incredibly sad and shocking but also very eye-opening at the same time. This is a terrific and important book that I think everybody should read.

Check it out on Goodreads.

Highlights

  • How can we summon a moment of lift for human beings—and especially for women? Because when you lift up women, you lift up humanity. And how can we create a moment of lift in human hearts so that we all want to lift up women? Because sometimes all that’s needed to lift women up is to stop pulling them down.
  • Being a feminist means believing that every woman should be able to use her voice and pursue her potential, and that women and men should all work together to take down the barriers and end the biases that still hold women back.
  • The reasons are simple: When the women were able to time and space their pregnancies, they were more likely to advance their education, earn an income, raise healthy children, and have the time and money to give each child the food, care, and education needed to thrive.
  • When children reach their potential, they don’t end up poor. This is how families and countries get out of poverty. In fact, no country in the last fifty years has emerged from poverty without expanding access to contraceptives.
  • Whenever you include a group that’s been excluded, you benefit everyone. And when you’re working globally to include women and girls, who are half of every population, you’re working to benefit all members of every community.
  • Women’s rights and society’s health and wealth rise together. Countries that are dominated by men suffer not only because they don’t use the talent of their women but because they are run by men who have a need to exclude. Until they change their leadership or the views of their leaders, those countries will not flourish.
  • “What do you know now in a deeper way than you knew it before?” I love this question because it honors how we learn and grow. Wisdom isn’t about accumulating more facts; it’s about understanding big truths in a deeper way.
  • Vishwajeet told me, “Their cup is not empty; you can’t just pour your ideas into it. Their cup is already full, so you have to understand what is in their cup.” If you don’t understand the meaning and beliefs behind a community’s practices, you won’t present your idea in the context of their values and concerns, and people won’t hear you.
  • We tend to push out the people who have qualities we’re most afraid we will find in ourselves—and sometimes we falsely ascribe qualities we disown to certain groups, then push those groups out as a way of denying those traits in ourselves.
  • But condoms are often unhelpful for women trying to avoid pregnancy. Women have told me over and over again, “If I ask my husband to wear a condom, he will beat me up. It’s like I’m accusing him of being unfaithful and getting HIV, or I’m saying that I was unfaithful and got HIV.”
  • When women can time and space their births, maternal mortality drops, newborn and child mortality drops, the mother and baby are healthier, the parents have more time and energy to care for each child, and families can put more resources toward the nutrition and education of each one. There was no intervention more powerful—and no intervention that had become more neglected.
  • That judge, who sentenced Sanger to thirty days in a workhouse, was expressing the widespread view that a woman’s sexual activity was immoral if it was separated from her function of bearing children. If a woman acquired contraceptives to avoid bearing children, that was illegal in the United States, thanks to the work of Anthony Comstock.
  • In Comstock’s eyes, and the eyes of his allies, women were entitled to very few roles in life: to marry and serve a man, and bear and take care of his children. Any detour from these duties brought disrepute—because a woman was not a human being entitled to act in the world for her own sake, not for educational advancement or professional accomplishment, and certainly not for her own pleasure.
  • A woman’s pleasure, especially her sexual pleasure, was terrifying to the keepers of the social order. If women were free to pursue their own pleasure, it would strike at the core of the unspoken male code, “You exist for my pleasure!” And men felt they needed to control the source of their pleasure. So Comstock and others did their best to weaponize stigma and use it to keep women stuck where they were, their value derived only from their service to men and children.
  • I’ve come to learn that stigma is always an effort to suppress someone’s voice. It forces people to hide in shame. The best way to fight back is to speak up—to say openly the very thing that others stigmatize. It’s a direct attack on the self-censorship that stigma needs to survive.
  • The United States has also been successful in bringing down teen pregnancy rates. The country is at a historic low for teen pregnancy and a thirty-year low for unintended pregnancy.
  • The people who push these policies often try to use the Church’s teaching on family planning for moral cover, but they have none of the Church’s compassion or commitment to the poor. Instead, many push to block access to contraceptives and cut funds for the poor.
  • It’s the mark of a backward society—or a society moving backward—when decisions are made for women by men. That’s what’s happening right now in the US. These are not policies that would be in place if women were making decisions for themselves. That’s why it’s heartening to see the surge of women activists across the country who are spending their time knocking on doors, supporting family planning, and changing their lives by running for office.
  • Just twenty years after the program began, Mexico has achieved gender parity in education—not only at the primary school level but also in high school and college. And Mexico has the world’s highest percentage of computer science degrees awarded to women.
  • A girl who is given love and support can start to break the self-image that keeps her down. As she gains self-confidence, she sees she can learn. As she learns, she sees her own gifts. As she develops her gifts, she sees her own power; she can defend her own rights. That is what happens when you offer girls love, not hate. You lift their gaze. They gain their voice.
  • In India, women spend 6 hours a day doing unpaid work, while men spend less than 1. In the US, women average more than 4 hours of unpaid work every day; men average just 2.5.
  • That is hugely significant because it is paid work that elevates women toward equality with men and gives them power and independence. That’s why the gender imbalance in unpaid work is so significant: The unpaid work a woman does in the home is a barrier to the activities that can advance her—getting more education, earning outside income, meeting with other women, becoming politically active.
  • If there is any meaning in life greater than connecting with other human beings, I haven’t found it.
  • Bill said, “I had a better exposure to software development at a young age than I think anyone did in that period of time, and all because of an incredibly lucky series of events.”
  • You can’t dedicate your life to the principle that all lives have equal value if you think you’re better than others. Bill, at his core, doesn’t think that way at all, and that is one of the qualities I love most in him.
  • I’ve never held the view that women are better than men, or that the best way to improve the world is for women to gain more power than men. I think male dominance is harmful to society because any dominance is harmful: It means society is governed by a false hierarchy where power and opportunity are awarded according to gender, age, wealth, and privilege—not according to skill, effort, talent, or accomplishments.
  • Child brides are often under intense pressure to prove their fertility, which means that their use of contraceptives is very low. In fact, the percentage of women using contraceptives is lowest where the prevalence of child marriage is highest. And low use of contraceptives by girls is deadly: For girls age 15 to 19 around the world, the leading cause of death is childbirth.
  • Tradition without discussion kills moral progress. If you’re handed a tradition and decide not to talk about it—just do it—then you’re letting people from the past tell you what to do. It kills the chance to see the blind spots in the tradition—and moral blind spots always take the form of excluding others and ignoring their pain.
  • One sign of an abusive culture is the view that members of the excluded group “don’t have what it takes.” In other words, “If we don’t have many women engineers here, it’s because women are not good engineers.” It is unimaginable to me both how flawed the logic is and how widely it’s believed. Opportunities have to be equal before you can know if abilities are equal. And opportunities for women have never been equal.
  • Tech is the most powerful industry in the world. It’s creating the ways we will live our lives. If women are not in tech, women will not have power.
  • The percentage of computing graduates who are women has plunged since I was in college. When I graduated from Duke in 1987, 35 percent of computing graduates in the United States were women. Today, it’s 19 percent.
  • There are likely a lot of reasons for the drop. One is that when personal computers made their way into American households, they were often marketed as gaming devices for boys, so boys spent more time on them and it gave boys exposure to computers that girls didn’t get. When the computer gaming industry emerged, many developers started creating violent war games featuring automatic weapons and explosives that many women didn’t want to play, creating a closed cycle of men creating games for men.
  • The United States is one of only seven countries in the world that do not provide paid maternity leave—joining the company of Papua New Guinea, Suriname, and a handful of other island nations. This is startling evidence that the United States is far behind the rest of the world in honoring the needs of families.
  • The lack of paid leave in the US is symptomatic of a workplace culture that also struggles with sexual harassment, gender bias, and a general indifference to family life. All these issues are aggravated by one reality: fewer women in positions of power.
  • Every society says its outsiders are the problem. But the outsiders are not the problem; the urge to create outsiders is the problem. Overcoming that urge is our greatest challenge and our greatest promise. It will take courage and insight, because the people we push to the margins are the ones who trigger in us the feelings we’re afraid of.
  • Women must leave the margins and take our place—not above men or below them, but beside them—at the center of society, adding our voices and making the decisions we are qualified and entitled to make.
]]>
https://vatthikorn.com/books/the-moment-of-lifthttps://vatthikorn.com/books/the-moment-of-liftThu, 13 Jun 2019 02:23:00 GMT
<![CDATA[WWDC 2019 Wish List]]> wwdc 2019

See my other posts in this series: 2016, 2017, 2020, 2021, 2022, 2023.

We're less than a week away from Apple's most exciting event of the year, WWDC. And these are the things I hope to see announced on Monday, in the order of how much I want them:

Dark Mode for iOS

This one has been in the list the longest for me. And it looks like my wish will finally come true this year.

Mac Pro

Just please, Apple. It's been a long time since we heard anything about this. I was really hoping they would show it off during WWDC 2017, and then still nothing in 2018. Now is the time we see it.

Screen Time for macOS and tvOS

I love Screen Time for iOS and monitor mine often. But I also spend a lot of time on these two other platforms and I would really like to know how I spend them, especially on the Apple TV.

New External Display

They also promised that a new Apple display is in the works. Showing this alongside the new Mac Pro during an event aimed at developers doesn't sound like a bad idea. So far looks like I might be in for a treat.

Apple Card

Apple Card was announced back in March of this year. It was probably the one I was most surprised and impressed by during the event. So I hope to get a date for this so I can apply for one.

Sleep Tracking on Apple Watch

I wear my watch to sleep sometimes, and having a first-party sleep tracker on it would be really nice.

macOS 10.15 "Sequoia"

Okay, it's obvious we're getting macOS 10.15. I'm just putting it here because I think Sequoia is a pretty dang good name for it.

]]>
https://vatthikorn.com/wwdc-2019-wish-listhttps://vatthikorn.com/wwdc-2019-wish-listFri, 31 May 2019 04:36:00 GMT
<![CDATA[Falcon Heavy Test Flight]]>On February 6, 2018 at 3:45pm EST, SpaceX’s Falcon Heavy lifted off for the first time from Kennedy Space Center Launch Complex 39A. Atop the three Falcon 9 boosters—two of which were flight proven1—mounted Elon Musk’s personal midnight cherry Tesla Roadster carrying a dummy passenger “Starman” wearing SpaceX’s spacesuit.

Seeing that this is a once-in-a-lifetime opportunity, and that I live only a mere hour-and-a-half drive away from Cape Canaveral, I went to see it in person. And all I can say is that it was hands down the most breathtaking thing I’ve ever seen in my entire life.

Here are some of the photos I took from about 4.3 miles north of the launch pad at Playalinda Beach.

IMG 2108

IMG 2125

IMG 2131

IMG 2154

I also mounted my phone on top of the camera to capture the video of the launch. Please excuse the shakes from the shutter clicks and the lack of aim since I was trying to stop taking photos and instead taking it all in as this big beautiful rocket flew into space.


The crowd, myself included, just couldn’t hold it together when it finally took flight. It was impossible not to get excited. Most of us had looked forward to this for years and waited in the Florida sun for over 7 hours that day.

IMG 0937

IMG 0945

One thing that almost all of launch videos lack is the sound and rumbles. They were remarkably loud and powerful that I could feel it in my body. This video by Destin from the YouTube channel Smarter Every Day conveys it almost perfectly of what the experience was like.


The launch itself is not the only thing that blew my mind. As I have said above, the two side boosters were, in fact, reused and they managed to land them both simultaneously.

And to top it all off, SpaceX live-streamed the fairing deployment directly from space to David Bowie's Life On Mars with the Earth in the background.


starman

Just look at how absolutely preposterous and amazing that is. It gives me a giant smile across my face every time.

I am incredibly excited for what this could bring, not only in SpaceX’s future, but in the future of space exploration as a whole. Like Elon said, “We want a new space race. Space races are exciting.” So I still hope that one day I will get to see humans walk on Mars.


  1. SpaceX’s fancy way of saying “reused”. ↩︎

]]>
https://vatthikorn.com/falcon-heavy-test-flighthttps://vatthikorn.com/falcon-heavy-test-flightFri, 09 Feb 2018 06:42:00 GMT
<![CDATA[Starting on a New Mac]]>I have been rocking my 15" MacBook Pro since 2010 and after nearly 7 years of use, it’s finally time for it to retire1. Unfortunately it’s been plagued with near-constant GPU panics for the last year or so, which makes it almost unbearable to use since it would just crash and restart every so often. I have been extending its lifespan for as long as I could. I upgraded its storage twice, first to a 1TB hard drive and later to an SSD. The RAM was also upgraded to 8GB and both of the fans were replaced.

But a laptop upgrade was long overdue and I couldn't be more excited.

In setting up my new MacBook Pro, I made a checklist of all the applications and settings I need to be able to use it normally:


  1. Not really, since I’ll be using it as a dedicated Plex Media Sever. ↩︎

]]>
https://vatthikorn.com/starting-on-a-new-machttps://vatthikorn.com/starting-on-a-new-macThu, 17 Aug 2017 03:23:00 GMT
<![CDATA[Saturn V LEGO Build]]>48 years ago today, Neil Armstrong and Buzz Aldrin landed at the Tranquility Base on the surface of the moon, marking the first time in history for the human species to set foot on another celestial body. Here is the time-lapse of myself building the majestic Saturn V LEGO set to commemorate this historic day which took me over 5 hours to complete. Consisting of 1969 pieces, the rocket stands at exactly 1 meter in height making it approximately 1:110 scale to the actual Saturn V rocket.

The time-lapse was taken with my DSLR camera at 5-second intervals. The entire video is made up of over 3,400 images totaling over 30GB of data. Check it out below:

]]>
https://vatthikorn.com/saturn-v-legohttps://vatthikorn.com/saturn-v-legoFri, 21 Jul 2017 02:15:00 GMT
<![CDATA[WWDC 2017 Wish List]]> wwdc17 og 800x420

See my other posts in this series: 2016, 2019, 2020, 2021, 2022, 2023.

It's that time of the year again! Among all of Apple annual events, WWDC is probably my favorite. This year is already looking to be quite different since they are moving back to where they began in San Jose, instead of Moscone West in San Francisco which had been there go-to location since 2003.

This week is all about developers, and as a developer myself, I cannot wait to find out what Apple has in store for us in new software capabilities, APIs as well as potential exciting new hardware. So without further ado, here is my wish list for the WWDC 2017 keynote:

iOS 11

Last year, the Photos app was made smarter by machine learning, letting it search for specific objects, detecting faces, and automatically creating photo albums and slideshows with the Memories tab, all without sacrificing user privacy. This year with iOS 11, I expect the app to gain new features to better compete with Google Photos which is getting even better with recent announcements during Google I/O.

There's no doubt that iOS 10's headlining feature was the Messages app, thus I don't think there's going to be much on this for iOS 11. Though, the ability to reply to specific messages and rich text formatting are the top two features I wish Apple would add to iMessage. Telegram has a really good example on the former.

iOS 11 should also bring about more productivity and automation features to allow for more professional tasks on the iPad Pro, as shown in their ads. Since a popular iOS app Workflow was just acquired by Apple in March, I hope this means that they are indeed improving productivity and automation abilities on iOS. If I could only pick one feature in this category, the ability to manage clipboard history would be it. I suggest you check out Federico Viticci's recently published concept video of the direction he thinks Apple should take its iOS platform on the iPad.

Just this past week, there was a report that Apple is working on an AI-specific chip and might unveil it during WWDC. I think it's quite likely given the timeliness of this report. Knowing their philosophy, they would definitely highlight the security and privacy aspects they've achieved that Google or Amazon haven't with their AIs, and hopefully announce an API alongside it. This would also tie in very well with their existing AI efforts for the Photos app and their smart assistant Siri.

SiriKit, in my opinion, is still very limited and missing some really obvious features. An integration with audio library that would enable third-party apps such as Spotify and Overcast to be voice-controlled is on the top of that list. I'm pretty sure that they would add some new domains to allow more developers to integrate their apps with Siri.

Conveniently, this is a perfect segue to the next item on my list…

Siri In A Can

In my WWDC 2016 Predictions, I expected them to announce the Siri Speaker. Let's just call it Apple Home as Mr. Jason Snell cleverly suggested. It has been well over a year since this rumor first surfaced, and so far we still have nothing. I believe they will really do it this year. With Amazon announcing two new Echo devices within two weeks of each other, Google Home gaining some new capabilities, and even Microsoft getting in on this with the Cortana-powered Harman Kardon speaker, Apple really has to be working on something to bring itself into this market. It is definitely not too late.

Though, Siri still needs a lot of improvements if it were to compete with what's currently out there, and I'm sure that Apple certainly has the technical and marketing prowess to blow those out of the water with this Apple Home. Their vision on HomeKit as shown in this video indicates that they are invested in the smart home space, and a device that brings it all together makes a perfect sense. Though knowing Apple, I wouldn't be one bit surprised if this device starts at $299.

Refreshed MacBook Pro

Another recent report says that Apple will refresh the MacBook Pro as well as MacBook Air at WWDC to compete with the recently-announced Microsoft Surface Laptop, and to "win back disappointed loyalists". I doubt that will happen. And even if it does, the reason is definitely not because Apple needs to compete with Microsoft in the laptop market. MacBook Pro's sales number dwarfs that of Microsoft Surface's (or any other company's for that matter). I really don't think Apple cares very much at all about them.

However, this doesn't mean that they should just forget about their MacBook Pro for the next foreseeable future (like the Mac Pro). Quite the contrary, in my opinion. An updated MacBook Pro would certainly make a lot of people very happy, especially myself since I'm writing this very sentence on my mid-2010 15-inch MacBook Pro (that is plagued with occasional GPU panics). I have been holding off on getting a new MacBook Pro due to the current generation having received a mixed response, and I hope that this hypothetical refreshed MacBook Pro would address some of the main criticisms such as the outdated Intel Skylake chip, lack of 32GB RAM option, inconsistent battery life, and the flawed keyboard. All they need to do is to have Phil Schiller say something along the line of "While the new MacBook Pro with the revolutionary Touch Bar was a great hit among our users, we also listen to those of you who say that there are still rooms for improvements. Today we are making our best laptop even better."

New Mac Pro Sneak Peak

In a stunning turn of events, Apple invited a selected group of journalists over to its campus to discuss the future of the Mac Pro back in April. They admitted that their current "trash can" Mac Pro has critical design flaws that have been preventing them from sufficiently updating it, and revealed that they are hard at work on designing the new Mac Pro which will not be ready this year. There is a lot of speculation as to when Apple came to this decision, but all signs seem to point to that this decision was made no longer than 3-6 months prior to the announcement (and quite possibly mere weeks). This means that it's likely that we won't see the new and "completely rethought" Mac Pro until the end of 2018, or even 2019.

This doesn't mean that they have nothing to show during WWDC. I really hope that they have at least the design of this new Mac Pro to show off to developers. It would definitely soften the "Apple doesn't care about professional Mac users anymore" narrative it's been getting lately.

They also revealed that an updated iMac aimed at professionals is coming this year, so I guess this is when they would show off the hardware and announce the release date.

New iPad Pro

This rumor has been around for quite a while, but it seems like they might announce a 10.5-inch iPad Pro at WWDC, which would then ship later in the fall. I'm indifferent to it but like I have said above regarding iPad productivity, and iOS in general, this product would be a perfect device to showcase iOS 11 as well as an indication to what the updated 9.7-inch and 12.9-inch iPad Pro might look like.

macOS 10.13

I honestly cannot think of features that are really needed in the next version of macOS. The current generation of Mac operating system has been around since the turn of the millennium and it is already a feature-complete, fully matured platform. Of course there are small things they can improve here and there such as a system-wide dark mode (please?), but gone are the days of frequent major updates to the OS.

One thing I definitely would count on them to talk about — if not during the keynote then one of the sessions — is the new Apple File System (APFS). It was only last year when they announced that they were developing an entire new file system to replace its now ancient HFS+, and promised to roll this out for all of their platforms in 2017. With the recent iOS 10.3 update, hundreds of millions of iOS users worldwide are already using APFS. macOS Sierra, however, has only gotten a beta version of that. I think the release of macOS 10.13 later this fall is a perfect opportunity for this.

Oh and can we get rid of that antiquated iTunes and come up with something better?

Apple Park

I know this is not an Apple product per se. But, in a way, this is a product by Apple. Its most expensive one in fact. I highly encourage you, dear reader, to check out this excellent article by Steven Levy on Apple Park and what an incredibly ambitious project it is. This will either be at the very beginning or the end of the keynote where Tim Cook tells us more about the campus and how beautiful, innovative, and environmentally-friendly this building is. There's no doubt that this has been distracting a lot of important design talents within the company, including its design chief Jony Ive himself. It makes you wonder if this is what has been causing Apple to release some arguably lackluster products in recent years, doesn't it? Still, this is one hell of a building and I cannot wait to pay a visit one day.

So would all these really fit within the two-hour window? Probably not. I suspect they would spend most of their time going through new features in iOS, watchOS, and macOS and leave little time to announce new products. But all this is just a speculation, we will find out for sure comes June 5th.

]]>
https://vatthikorn.com/wwdc-2017-wish-listhttps://vatthikorn.com/wwdc-2017-wish-listSun, 28 May 2017 16:30:00 GMT
<![CDATA[An Animal of No Significance]]> Early human history book illustration 800x545

In Sapiens: A Brief History of Humankind, Yuval Noah Harari attempts to tell the entire history of humans in a length of a book. He started off around the time when modern humans first appeared, two million or so years ago when we were not that different from apes. In the first chapter, he writes, "The most important thing to know about prehistoric humans is that they were insignificant animals with no more impact on their environment than gorillas, fireflies or jellyfish."

Of course Homo sapiens, or "The Wise Man", was not the only human species roaming the earth at the time. There were Homo neanderthalensis in Europe and western Asia, Homo erectus in Asia, Homo soloensis in Java, a dwarf species Homo floresiensis on another Indonesian island, Homo deniosova in Siberia, Homo rudolfensis, and Homo ergaster in East Africa. They were all human beings. Imagine if one or a few of those species survived until today, what would religions, human rights, nations, or laws be like?

Interestingly, all other human species vanished and Sapiens is the only one left. Harari proposed several theories as to why that is the case with one being the competition of resources which turned into violence and genocide. "Tolerance is not a Sapiens trademark", Harari writes, "In modern times, a small difference in skin colour, dialect or religion has been enough to prompt one group of Sapiens to set about exterminating another group." So it is safe to assume that our ancient ancestors would not be so friendly towards an entirely different human species. The meeting between Sapiens and Neanderthals and the resulting extinction of the latter could very well be the first and most significant genocide in human history.

Just how then did Sapiens manage to push a stronger species with bigger brains like Neanderthals to extinction? It was just another human species with nothing more special than others. Harari believes that this has to do with its unique language. Around 70,000 years ago, Sapiens experienced a Cognitive Revolution which scientists commonly believe happened due to some accidental genetic mutations that changed certain wirings in the brains. This caused Sapiens to be able to think in an unprecedented level and develop its unique type of language found in no other human species. This did not only enable them to gossip about tribe members or warn them about predators in the area with details beyond a mere ape can, it also allows them to transmit information about things that do not exist at all. Things such as gods, heavens, or nations.

These fictions maybe seem useless for surviving in the wild, but they enabled Sapiens to collaborate and work towards common goals unlike any other species. Sure, wolves, bees or killer whales do cooperate and have their own languages, but they only do so with a small number of closely related members. Believing in the 'common myths' such as the biblical creation story, the divine rights of kings or popular sovereignty gave Sapiens the ability to cooperate with a large number of people which led to our affluent society today.

Modern Sapiens walking the earth now may see certain rituals such as dancing around a campfire during a full moon or praying to a lion god as 'primitive', but our society today functions on the exact same basis. These ideas such as business corporations, financial institutions, nations, democracy, human rights, freedom, gods, and laws only exist in our collective imagination and yet we act as if those things really exist. Lawyers today are just modern sorcerers who tell far more complex and stranger tales.

Without imagined realities or social constructs, the society as we know it would certainly cease to function. If everyone stopped believing in financial institutions, limited liability companies, laws, or governments, the economy would collapse and nations across the globe would fall into chaos. The world we live in today is the result of a successful storytelling effort to convince millions of people across millennia to believe in these common myths. It would be impossible to build great mosques or empires spanning half a continent if we could only talk about things that really exist in the world such as trees, mountains or tigers.

We are all living in dual reality. One is the objective reality of things that we can see, touch, and smell and the other is an imagined one of things that only exist in our minds. As Harari puts it, "As time went by, the imagined reality became ever more powerful, so that today the very survival of rivers, trees and lions depends on the grace of imagined entities such as the United States and Google."

]]>
https://vatthikorn.com/books/an-animal-of-no-significancehttps://vatthikorn.com/books/an-animal-of-no-significanceTue, 13 Dec 2016 10:31:00 GMT
<![CDATA[An Investigation Into Google Photos Compression]]>Recently, I’ve been hearing lot of praises about Google Photos, especially from Casey Liss of ATP, about how wonderfully accurate its algorithm is at finding images of places, objects or people you want from your photo library. With my iPhone almost running out of storage, mainly because of my photo library, I decided to give Google Photos a shot.

But upon setting up the backup, I was faced with a very hard decision: whether to upload the images in high quality or original quality. With high quality, it offers an unlimited free storage with a reduced file size as long as the photos have the resolution of 16 megapixels or less. This should be enough for everyday images taken with smartphones. With the original option, the photos will be uploaded in full size with no compression. However, it will be limited to how much storage space is available on the Google Drive.

UPDATE: On 11 November 2020, Google announced that they will no longer offer the free unlimited High quality storage starting 1 June 2021. So the benefit of doing that over original quality only comes down to storage savings for your Google Account (which comes with 15GB of free storage).

The “reduced file size” part is what I wanted to know more about since I was definitely going to take advantage of that free unlimited storage. However, I was worried that the compression algorithm would be too aggressive at reducing the file size, and thus lowering the image quality below the acceptable level. In order to figure this out, I decided to do a little investigation on how much quality, if at all, was lost by the compression, and if we can see any visual differences between the original and the compressed one.

Before we go any further, I must put forth a disclaimer here that I am by no means an expert when it comes to image compression algorithms. What I'm about to show here is a non-scientific experiment conducted on a cheap, uncalibrated, 1080p monitor using a couple of random photos I took. So please do further research and tests before making your decision on this.

To run this experiment, I selected two images: one with the resolution of 20MP taken with my DSLR and the other at 8MP with my iPhone 6.

First, let’s look at the image taken by the DSLR. Since this image has the resolution of 20MP, Google Photos downsized the image to 16MP, so it definitely lost the actual pixel count in the process.

Original at 20MP

20MP

Compressed to 16MP

Compressed by Google Photos

Now let's take a look at them with a 100% crop and compare them side-by-side.

Original (left) and compressed (right) side-by-side Original (left) and compressed (right) side-by-side

Apart from the obvious difference in the resolution, the image quality seems to not have been affected at all.

Singapore Info

If we take a look at the information of the two images, we see that the resolution has been reduced to 16MP and the file takes up only 3.6 megabytes. That's over 75% reduction in file size! I'm really impressed at how high-quality the image still looks after having gone through this aggressive compression.

Now let’s compare the images taken by the iPhone 6’s back camera. Unlike earlier, the image here did not get downsized because the resolution is way below the 16MP limit.

Original at 8MP

IMG_0822 Original

Compressed at 8MP

IMG_0822 Compressed

They look virtually the same to me. Now let's look at them side-by-side at 100% crop:

Original (left) and Google Photos Compressed (right) at 100% zoom side-by-side Original (left) and compressed (right) at 100% crop

Can you notice any differences in the details at all? Because I can’t.

Here is a look at the properties of the two images: iPhone Info

Notice that the resolutions are exactly the same and all the metadata is still intact after being compressed by Google Photos. So the only difference here seems to be the 30% reduction in file size.

This visual inspection reveals that there seems to be no loss in image quality at all. So we have to go a bit deeper to find out what's going on.

Given that the original and compressed image have the same resolution, the reduction in file size has to result in some quality loss or else it would be impossible to make it smaller. So to look for that, I brought the images into Photoshop in order to drill down to the very smallest of details that our mere monkey eyes can’t see.

What I did was to open them in Photoshop on two different layers, one on top of the other.

Screen Shot 2016 07 04 at 12 20 36 PM

Now the trick here is to change the blending mode to “Difference” which will show any differences between the two images. If they are exactly the same, this will result in a completely black image. Here is the resulting image after applying the blending mode:

IMG 0822 Diff 1

If you don't look closely (or if your screen is not at the brightest setting), you won’t see anything other than the complete blackness. But if you really look for it, you will start to see faint outlines of the image. But here is when the histogram becomes handy.

Screen Shot 2016 07 04 at 12 21 37 PM

Let’s take a quick detour and talk about histogram. A histogram is a graph representing pixels of different color range/tones in an image. Now the histogram we see here is a simplified version that only shows the greyscale range from black (left) to white (right). The higher the graph at a given point along the x-axis, the more pixels there are at that specific color/tone.

If the two images are exactly the same, we would only see a single vertical line at the very left of the histogram. That would mean the image is entirely composed of black pixels. Here we can clearly see that there are pixels of other colors as well. This reveals that the two images are in fact different.

To make this clearer to see. I adjusted the histogram level to show only those pixels that are present in the image. Here is the result:

Screen Shot 2016 07 04 at 5 25 10 PM

And there it is! The evidence of quality loss I’ve been looking for. What we see here is called compression artifacts, and to simply put, they are junk that got added to the image from the lossy nature of the JPEG compression. The brighter the pixel, the more different they are.

If we zoom in closer, we can see how nasty these compression artifacts are.

Screen Shot 2016 07 04 at 12 26 32 PM

So with all these in mind, I decided that the high quality option will suffice with photos taken by my iPhone camera. Even though we found out that there are quite a lot of compression done to the image, in reality those quality loss just cannot be seen with naked eyes. I figured that I don’t need the highest of quality for these day-to-day photos since I won't be post-processing them anyway, unlike those taken with a DSLR. The 16MP limit won't be a problem either since it's more than large enough for photo album printing or even framing. I would, however, keep images with a resolution higher than 16MP away from it if you want to take the advantage of free unlimited storage. Even if the image quality is visually the same, I don't think it's worth getting your images downsized to only 16MP.

]]>
https://vatthikorn.com/google-photos-compressionhttps://vatthikorn.com/google-photos-compressionTue, 05 Jul 2016 17:51:00 GMT
<![CDATA[My WWDC 2016 Predictions]]> wwdc2016

See my other posts in this series: 2017, 2019, 2020, 2021, 2022, 2023.

With WWDC 2016 just right around the corner, here are products I think (and hope) we will see during the keynote on Monday:

Change from "OS X" to "macOS"

There have been a lot of rumors (and evidence) regarding the name change of OS X since all of Apple operating systems use the uncapitalized-name-followed-by-‘OS’ convention (i.e. iOS, tvOS, watchOS). So it only makes sense that they would change OS X to macOS (or MacOS) to make their OS lineup's branding style more consistent. We hear people mispronounce OS X as "oh-es-EX" all the times when it is supposed to be "oh-es-TEN.” But we really can’t blame them because who uses Roman numerals on a regular basis anymore?

Now there is a debate going on between macOS and MacOS. Personally, I prefer macOS because it’s just more consistent and MacOS looks like it’s a typo of Mac OS, because that is what they called it before rebranding it to OS X. I understand that they might want to capitalize the word “Mac" for trademark reasons and what not but I’m hoping that they would just go with macOS. It just looks better, in my opinion.

As far as the name for the next version goes, I believe they will continue with the same naming convention after California natural landmarks. So… macOS Half Dome? macOS Red Wood? Or maybe just drop it and go with macOS 11?

New iTunes

iTunes is in a dire need for an overhaul. It has become so dreadful for me to have to use it from time to time. It is too clunky. It tries to do too much in one app. And it doesn’t even work that well. Perhaps, breaking it down into different apps for Apple Music, iOS devices syncing and backing up, and iTunes Store could solve this problem.

Dark Mode

A more universal dark mode that is not only for the menu bar and the dock, but also for apps like Finder or Safari, would be nice. I really wouldn't complain if that's all they add for 10.12.

Siri for Mac

Siri is heavily rumored to be coming to the next version of OS X, which I personally would never use. I really can’t see myself talking to my Mac asking for stuff or launching apps when using Spotlight already lets me launch apps, search for files, do maths or unit conversions very quickly. But who knows, maybe they came up with a really interesting implementation that will make me want to use it.

Siri API

I do hope that Apple would release the Siri API to developers as a part of iOS 10 SDK. I think this would really drive the usage of the feature. For me, the reason why I rarely use Siri is because its lack of support for third-party apps. If they choose to give developers to tools to integrate Siri into their apps, this year’s WWDC would be a perfect stage to do so. It’s been a long time coming. Apple usually loves releasing APIs to developers such as CloudKit, HomeKit or HealthKit, I don’t know what is stopping them from doing the same thing with Siri.

Siri Speaker

By this I mean a speaker with a microphone that sits in your living room and always listens to you. This would be a direct competitor to Amazon Echo and the upcoming Google Home. Honestly, I am a bit skeptical on how well they can improve Siri given the competition. Apple is not a company that is known for their expertise in machine learning unlike Google. I mean, look at how bad the search feature on the App Store is (but then there are also rumors that improvements are coming). Also, their firm stance on customers' privacy and data collection only makes it more difficult for them to improve on such feature that heavily relies on user data. With all that said, I trust that they will find a way to do so without compromising their views on privacy, and hopefully surprise us all.

watchOS 3

I think the watchOS will see quite a significant update since they did not announce a new Apple Watch during their spring event. One single most important thing they need to address with the new watchOS is the load time for the watch apps. These apps take forever to fetch the data, even those not required network connection. With watchOS 3 (or perhaps, Apple Watch 2), I hope that they somehow find a way to let the watch directly fetch data without having to rely on the iPhone to download it first and pass it along to the watch.

Another thing I think they should add is to allow developers to create custom watch faces. We have this smart watch technology, I don’t want to be stuck with the mimicking of a circular mechanical watch face or simple digital time-telling. Since it was shown off to the public almost two years ago, the Apple Watch has not received a new watch face and now it really needs some fresh ones. Of course, these third-party watch faces will have to be approved by Apple just like any other thing but the possibility of some developers coming up with new and clever ways of telling time is a very intriguing prospect.

And one more thing: Maybe it’s time to get rid of that clunky, honeycomb home screen design that makes it an impossible task to look for apps. I just hope that they are not too proud of it to change that.

2014 09 09 13 30 08 1433863440 kKho column width inline

A New MacBook Pro Retina

The last time the MacBook Pro lineup received a significant upgrade was more than two years ago. So it is safe to say that a big upgrade is definitely coming. Though I hope that they would announce it during WWDC, I am not holding my breath for it since WWDC tends to be more about software. On the other hand, I wouldn’t say it’s impossible since they have announced a lot of hardware during WWDC in the past including the retina MacBook Pro itself as well as the Mac Pro. Considering that all of Apple’s third-party developers have to use Macs, it would make perfect sense if they plan to announce one during the keynote.

The new retina MacBook Pro is rumored to feature Intel’s new microarchitecture, Skylake, which improves the performance and reduces power consumption. Now this might be the reason why we will see a change in the form factor with this new model since they can make it thinner while not sacrificing battery life. And we all know how much Apple loves making their products even thinner and lighter. Personally, I would not mind them keeping the same form factor and just increase the battery life instead.

AMD’s upcoming Polaris GPU is also expected to be featured in the high-end 15” retina MacBook Pro. However, the company said the GPU would not be ready until Q4 of this year, so that might be a reason why we won’t see a new MacBook Pro next week.

Another big rumor floating around is the OLED display panel that will be replacing the row of function keys. At first, I was not so sure how this will work since we rarely look down to our keyboards anyway when we type, and to have a touch surface instead of physical keys might not work as well either. However, this recent concept rendering by Martin Hajek made me think that this might actually be a really cool feature. But we'll just have to wait and see.

27292118240 c4897c6c02 b Credit: Martin Hajek

Swift 3.0

According to Swift.org, Swift 3.0 is expected to be released “sometime in late 2016” so I believe it’s possible that we would see some sort of a preview for that. This is a developer conference after all. But since Swift become open-source last year, the announcement would not be that exciting given that we already know what new features of the language are. However, if they choose to have maybe a slide or two for Swift, they would probably only highlight a few important features and changes such as the Swift Package Manager that will also be available for Linux and Darwin, Swift Core Libraries, more imported Objective-C APIs, and some refinements to the language including the removal of ++ and -- operators, and C-style for-loops.

]]>
https://vatthikorn.com/wwdc-2016-predictionshttps://vatthikorn.com/wwdc-2016-predictionsThu, 09 Jun 2016 22:53:00 GMT
<![CDATA[ทำไมเราถึงควรไปสร้างอาณานิคมบนดาวอังคาร]]> 21236949258 b9b916f54f k

การพัฒนาเทคโนโลยีอวกาศเป็นสิ่งที่สำคัญสำหรับเผ่าพันธุ์มนุษย์เรามาก ถึงแม้ว่าดูระยะสั้นมันไม่เห็นจะมีประโยชน์อะไรเลย จริงที่ว่าในโลกนี้ยังมีเรื่องปัญหาปากท้อง ก่อการร้าย หรือโรคภัยไข้เจ็บอีกเยอะที่คนควรจะสนใจและแก้ปัญหามัน (ตอนนี้ก็มีคนใส่ใจไปทำพวกนี้เยอะแยะอย่าง Bill & Melinda Gates Foundation หรือ World Food Programme) แต่นี่มันเป็นเรื่องของระยะยาวและต้องมองมันในภาพใหญ่จริงๆ รู้สึกเสียดายที่คนไม่ค่อยให้ความสำคัญกับมัน

ถ้าย้อนกลับไปดูในประวัติของโลกนี้ ตั้งแต่เริ่มมีสิ่งมีชีวิตมา มันมีเหตุการสูญพันธุ์ครั้งใหญ่ (mass extinction) มาประมาณ 5 ครั้ง ตอนล่าสุดคืออุกกาบาตพุ่งเข้าชนโลกในยุคไดโนเสาร์ (จริงๆเป็นอุกาบาตขนาดเล็กมาก ถ้าเปรียบขนาดโลกเท่ากับตึก 3 ชั้น อุกกาบาตที่ทำให้ไดโนเสาร์สูญพันธ์ุทั่วโลกมันมีขนาดเท่าลูกถั่วเม็ดนึง) ถ้าเราดูเหตุการสูญพันธ์ุตั้งแต่เริ่มแรกเราจะเห็นเป็นแนวโน้มว่าอีกไม่นานคงจะเกิดขึ้นอีก1

1062px Extinction intensity1 600x416 Credit: waitbutwhy.com

ที่จริงมีสิ่งอันตรายมากมายที่สามารถทำให้สัตว์โลกสูญพันธ์ุแบบทันทีทันใดได้ ไม่ว่าจะเป็นอุกาบาต, supernova, solar super flare, หลุมดำที่หลุดมา, โรคระบาด (epidemic) แบบที่ไม่ได้มีแฮปปี้เอ็นดิ้งเหมือนในหนัง Hollywood, หรือ superintelligence ซึ่งสิ่งพวกนี้มันเป็นภัยที่เกินเอื้อมมือมนุษย์เราแน่นอน เราเข้าไปแทรกแซงอะไรมากไม่ได้ โดยเฉพาะภัยจากอวกาศ

ถ้ารู้อย่างนี้เราก็ควรจะเตรียมตัวไว้หรือเปล่า?

ลองดูวิธีคิดที่ทำให้นึกภาพง่ายๆนะ...

เปรียบว่าโลกนี้เป็นคอมพิวเตอร์และสัตว์โลกรวมถึงมนุษย์เราเป็นข้อมูลต่างๆในฮาร์ดไดรฟ์ (เทียบว่าเวลาหนึ่งเดือนในเรื่องนี้เท่ากับเวลาจริง 50 ล้านปี) ตั้งแต่ที่เราซื้อคอมพ์เรามาตอนเดือนพฤษภาคมปีที่แล้วฮาร์ดไดรฟ์มันพัง (crash) ไปแล้ว 5 รอบ ในเดือน สิงหาคม, กันยายน, ธันวาคม, มกราคม, และเมษายน พอรีบูตกลับมาข้อมูลหายไปประมาณ 70% ทุกครั้ง ยกเว้นตอนเดือนมกราคม ที่ข้อมูลหายไป 95%

แล้วตอนนี้คือปลายเดือนพฤษภาคมปีปัจจุบัน เอกสารชื่อ HomoSapiens.docx เพิ่งถูกสร้างเมื่อประมาณ 2 ชั่วโมงที่แล้ว คิดดู เรามีฮาร์ดไดรฟ์ที่เต็มไปด้วยข้อมูลสำคัญมากๆพวกนี้ แล้วจากการที่เราเคยใช้งานคอมพิวเตอร์เรา เรารู้ว่าทุกๆ 2-3 เดือน ข้อมูล (i.e. สัตว์โลกทั้งหมด) จะหายไปประมาณ 70% โดยครั้งสุดท้ายที่มันพัง (i.e. การสูญพันธุ์ครั้งใหญ่) คือตอนเมื่อเดือนกว่าๆที่แล้ว

เราควรจะทำอะไรหละ?

เราควรจะทำสำรองข้อมูล (back up) ไว้ใน external hard drive โดยเฉพาะไฟล์ HomoSapiens.docx

โครงการอวกาศต่างๆอย่าง NASA, ESA หรือโดยเฉพาะบริษัทเอกชน SpaceX นี่แหละที่จะเป็นตัวช่วย back up สายพันธุ์เราโดยการที่วางแผนจะเอามนุษย์ไปตั้งหลักปักฐาน สร้างอาณานิคมที่ดาวอังคาร (แล้วดาวอื่นๆอีกต่อไปในอนาคต) จริงอยู่ว่าดาวอังคารไม่ได้ปลอดภัยหรืออยู่อาศัยง่ายกว่าเลย (เรื่องความเป็นไปได้นี้ยังต้องทำวิจัยและคิดเทคโนโลยีใหม่ๆอีกเยอะ)

เค้ามีคิดที่จะส่งไปรอบละ 100-200 คน พอผ่านไปซัก 4-5 ทศวรรษ เทคโนโลยีเดินทางอวกาศจะดีขึ้นทำให้ส่งไปได้รอบละมากคนขึ้น และทำให้ตั๋วค่าไปถูกลง และหวังว่าอาณานิคมเล็กๆ จะกลายเป็นเมืองใหญ่ที่มีคนอยู่ซักล้านคน เต็มไปด้วยสิ่งอำนวยความสะดวกและสถานบันเทิงต่างๆเหมือนโลกเรา

เท่านั้นเราก็ได้ทำ backup ของสายพันธุ์มนุษย์เราอย่างเสร็จสมบูรณ์ กลายเป็นสายพันธุ์ต่างดาวเคราะห์ (interplanetary species). นั่นแหละคือ “ก้าวกระโดดที่ยิ่งใหญ่ของมนุษยชาติ” (giant leap for mankind) ที่นีลอาร์มสตรองเคยพูดถึงอย่าแท้จริง ถ้าโลกโดนอะไรขึ้นมา มนุษย์เรายังคงมีดำรงอยู่ต่อไป

1412161797318 wps 12 article 2238944 163A07800 1 ในอนาคตเราอาจจะอยู่อาศัยบนดาวอังคารแบบนี้ก็เป็นได้

ถ้าจะถามว่าจะมีเหรอคนที่บ้าจะยอมทิ้งโลก ทิ้งบ้าน ทิ้งครอบครัวเพื่อที่จะไปอยู่ดาวอังคาร มีอยู่แล้ว ดูตอนปี ค.ศ. 1605 คนยุโยปที่เริ่มย้ายไปก่อตั้งอาณานิคมที่ทวิปอเมริกา (New World) มีน้อยคนมาก มีแต่พวกบ้าๆ ที่กล้าทิ้งบ้านเกิดตัวเอง ขายบ้านขายของเพื่อที่จะไปเริ่มต้นชีวิตใหม่ที่ Jamestown หรือ Plymouth คนกลุ่มแรกที่จะไปดาวอังคารก็จะเป็นเหมือนกันนี่แหละ

ตอนแรกอาจจะไปอยู่ซัก 2 ปีก่อน2 แล้วคนเหล่านั้นก็จะกลับมาทำให้คนบนโลกรู้ว่าจริงๆแล้วการไปดาวอังคารไม่ใช่เป็นตั๋วขาไปอย่างเดียว เราก็เดินทางกลับได้

คนบนโลกจะเห็นบางคนกลับมากลายเป็นคนดังเพราะความกล้าหาญของเค้า บางคนอาจจะเขียนหนังสือยอดขายอันดับหนึ่ง บางคนอาจจะทำเป็น YouTube, รายการทีวี หรือภาพยนตร์ — คนก็เริ่มอยากจะไปมากขึ้น

คนบนโลกจะเห็นรูปถ่ายสวยๆจากการไปเดินขึ้นภูเขาที่สูงที่สุดในระบบสุริยะ (Olympus Mons) ที่ทำให้ Mount Everest เป็นเหมือนกับเขาขนาบน้ำ หรือแคนย่อน Valles Marinaris ที่ทำให้ Grand Cayon กลายเป็นเหมือนคลองแห้ง — คนก็อยากจะไปมากขึ้น

คนบนโลกก็จะรู้ว่ากระโดดลงจากเหวสูง 6-7 เมตรลงมาได้โดยที่ไม่บาดเจ็บอะไรเลย และเห็นคลิป YouTube ของพวกกีฬาผาดโผนใหม่ๆที่เล่นได้โดยเฉพาะบนดาวอังคาร เพราะมีแรงโน้มถ่วงแค่เท่ากับ 38% ของโลก — คนก็อยากจะไปมากขึ้น

อีกอย่าง อาจจะมีระบอบการปกครองแบบใหม่ที่ทันสมัยมากขึ้น ที่ไม่มีรัฐบาลปกครองเลยก็เป็นได้ ทุกคนสามารถโหวตเรื่องต่างๆได้โดยตรง ทำให้บรรลุฉันทามติ (achieve consensus) ได้ง่ายขึ้น

แต่ก็แน่นอนอยู่แล้วว่าไม่ใช่ทุกคนจะมีปัญญาไปกลับได้ง่ายๆ ยังไงก็อาจจะต้องขายบ้านขายของเพื่อที่จะได้ไป เหมือนตอนที่คนเริ่มไปอยู่ที่อเมริกา แต่เรื่องพวกนี้จะทำให้คนตื่นตัวมากขึ้น เพราะมันมีความแปลกใหม่อยู่เยอะ แล้วคนก็อยากจะไปเป็นคนแรกที่ทำอะไรบนดาวอังคาร เช่น เปิดร้านส้มตำร้านแรก สนามฟุตบอลแห่งแรก เป็นคนแรกที่พิชิตยอดเขา Olympus Mons หรือเป็นคนแรกที่นำยางพาราไปขายตามที่ท่านนายกฯเคยกล่าวไว้

photo 2016 05 25 13 09 55

ส่วนเรื่องค่าตั๋วไปดาวอังคารมันแพงแน่นอน ก็เลยมีบริษัทที่พยายามทำให้การบินอวกาศถูกลง ตอนนี้แพงมากเพราะจรวจใช้ได้แค่ครั้งเดียวแล้วถูกโยนทิ้งหมด เขาเลยพยายามหาวิธีนำจรวจที่ใช้แล้วกลับมาใช้ใหม่เพื่อที่จะช่วยลดต้นทุน (cost-per-launch) นึกดูว่าตอนเราบินจากกระบี่ไปกรุงเทพฯ เรานั่งเครื่องบินลำใหม่เอี่ยม พอถึงแล้วสายการบินโยนมันทิ้งทุกไฟล์ท แล้วมาสร้างลำใหม่สำหรับแต่ละไฟล์ท ค่าตั๋วมันคงจะแพงมากๆ

26405462060 81f8289687 k ภาพจำลองจรวด Falcon Heavy ที่จะนำออกมาใช้ปลายปี 2016 และสำหรับส่งยานอวกาศไปดาวอังคารในอีกไม่กี่ปีข้างหน้า Credit: SpaceX

แน่นอนอยู่แล้วว่าสำหรับคนทั่วไปฟัง(อ่าน)ดูคงจะหัวเราะเยาะว่ามันเป็นเรื่องแค่ในนิยาย sci-fi, เพ้อฝัน, ไร้สาระ, ไม่มีทางเป็นไปได้, "บ้าหรือเปล่า มันไม่เกี่ยวกับเรา" แต่ลองนึกภาพดูว่าถ้าเราบอกคนสมัย 30-40 ปีก่อน ว่าในอนาคต เราจะสามารถคุยเห็นหน้ากับคนอีกฝั่งนึงของโลกได้โดยใช้แผ่นสี่เหลี่ยมในฝ่ามือแผ่นนึง เค้าก็คงจะหัวเราะเยาะเราเหมือนกัน เข้าใจว่ามองดูตอนนี้อาจจะเป็นเรื่องที่เป็นไปไม่ได้ แต่ถ้าเราไม่กล้าคิดจะทำสิ่งที่เป็นไปไม่ได้ Christopher Columbus คงจะไม่ได้ล่องเรือข้ามมหาสมุทรมาพบโลกใหม่ (New World), พี่น้องไรต์ (the Wright brothers) คงจะไม่ได้สร้างเครื่องบินลำแรก หรือสหรัฐอเมริกาคงจะไม่ได้ส่งคนไปเดินบนดวงจันทร์ คืออย่างที่กล่าวไว้ เรื่องนี้มันเป็นปัญหาระยะยาว มันอาจไม่ได้กระทบกับเราหรือลูกๆหลานๆหรือเหลนๆเราด้วยซ้ำ จะให้คนทุกคนมาสนใจก็คงจะเป็นไปไม่ได้ แต่ยังไงเราก็ควรที่จะมองเรื่องนี้ในมุมของเผ่าพันธุ์มนุษย์ทั้งหมด รวมถึงรุ่นต่อๆมาในอนาคต ไม่ใช่แค่ภายในช่วงชีวิตเราทุกๆครั้งที่เห็นรัฐบาลประเทศต่างๆหรือนักวิชาการออกมาบอกว่า...

เห้ย อย่าไปสนใจเรื่องโครงการอวกาศหรือไปสร้างอาณานิคมอยู่ดาวอังคารเลย เรามีปัญหาอีกตั้งเยอะแยะบนโลกเราที่เราต้องจัดการกับมัน

มันเหมือนกับพวกเขาบอกว่า...

เดี๋ยวเราค่อยดูแลสุขภาพทีหลัง ตอนนี้เราต้องทำงานผ่อนบ้านผ่อนรถให้หมดก่อน

คือยังไงมันก็ต้องมีเรื่องสำคัญที่ต้องเข้าไปดูแลก่อนอยู่แล้ว แต่ถ้ามัวแต่ไปใส่ใจเรื่องด่วนๆพวกนี้จนลืมคำนึงถึงเรื่องที่สำคัญในภาพใหญ่ ก็จะทำให้ความเสี่ยงต่อการอยู่รอดของมนุษย์ (existential risk) ยิ่งสูงขึ้นไปอีก

เท่าๆที่เรารู้ โลกอาจจะเป็นดาวเคราะห์ดวงเดียวที่มีสิ่งมีชีวิตอยู่ในจักรวาลนี้ก็เป็นได้ คิดดูมันน่าเศร้านะที่ว่าดาวเคราะห์สีฟ้าลูกเล็กๆลูกนึงกลางอวกาศที่กว้างขวาง ไม่มีทางเลยที่ใครจะมาเจอได้โดยบังเอิญ ที่อุตส่าห์ได้โอกาศมีสิ่งมีชีวิตอยู่อาศัย โดยเฉพาะสิ่งมีชีวิตที่มีสติสัมปชัญญะ (consciousness) จะหายไปได้แค่ในพริบตา เหมือนชะตากรรมไดโนเสาร์และสัตว์พันธุ์อื่นๆสมัยก่อน

แล้วเราคิดว่ามนุษย์เรามันต่างกับสัตว์อื่นๆยังไงที่จะเป็นข้อยกเว้นจากการสูญพันธุ์ครั้งใหญ่กระทันหันที่หนีไม่พ้นนี้ได้...


อ้างอิงบางส่วนจาก waitbutwhy.com


  1. นักวิทยาศาสตร์หลายคนคิดว่าจริงๆแล้วตอนนี้เรากำลังอยู่ในช่วงเวลานั้นเลย สัตว์โลกหลายพันธ์ุตอนนี้กำลังจะสูญพันธ์ุและก็สูญพันธ์ุไปเยอะแล้วเพราะกิจกรรมของมนุษย์เรานี่แหละ ↩︎

  2. เพื่อรอให้ดาวอังคารกับโลกอยู่ในตำแหน่งที่เหมาะสมสำหรับการเดินทางกลับ ↩︎

]]>
https://vatthikorn.com/ทำไมเราถึงควรไปสร้างอาณานิคมบนดาวอังคารhttps://vatthikorn.com/ทำไมเราถึงควรไปสร้างอาณานิคมบนดาวอังคารWed, 25 May 2016 20:26:00 GMT
<![CDATA[A Cleaner Home]]>A few months ago, after listening to a conversation between Myke Hurley and CGPGrey, I was inspired to start taking control of what is on my home screen, a screen that I literally see everyday. So I decided to give it a major overhaul.

Here is what I had before:

File May 24 4 04 39 PM Cringing at the badge on the Mail app

And here is what I have now: Photo May 24 3 57 01 PM A much better sight to see

Of course I did not suddenly go from that original one to this within a day. This is the result of a few iterations spanning across several weeks involving tough decisions whether or not to keep an app on the home screen.

The process went something like this: First, I wanted to reduce the number of pages to only one page so it is easier to find apps I want. Second, I got rid of all the apps I never used but somehow just left it there because I could not bother to do anything about them. The first ones to go were Clock, Camera and Calculator apps, because I can quickly access them in the control center. Then I realized that I never (or rarely) touched iTunes Store, Game Center, Contacts, Phone, Wallet and iBooks. So they are gone too. After awhile, all the built-in apps were put into one folder. And long story short, it became what I have now.

The Dock

I put three most important ones in the dock. Now the reason why it has only three has to do with the Launch Center Pro app. Since it is an app that contains all the actions I frequently perform on my phone (such as starting a timer, Google search, FaceTime or launching apps), similar to a folder, putting it in the middle of the dock right above the home button gives an impression of it expanding up into a secondary home screen. And it just looks nicer. The 2Do app is quite new to me, I have been searching for a decent to-do apps for a while. I tried the built-in Reminders, Things, Trello, Todoist and many others, but 2Do did it for me. Though I have been wanting to try OmniFocus, the price tag kind of scared me away. Then I have Telegram which is a free messaging app I found to be much faster and overall a more pleasant experience than WhatsApp.

The Folders

This top row is purely influenced by CGPGrey’s. What he did is genius and I really love the aesthetic of it; everything is just looks nice and clean. It is pleasure to look at. Only having one app in the first page of each folder indicating what the folder is about made the title irrelevant, so they became just periods for simplicity (though I wish I can leave them blank). From left to right they are social, games, development and others.

The Rest

Here are a few notable ones:

  • Quartz has just became my favorite news reading app recently, the iMessage-like interface really streamlined the news reading experience. I never found myself going back and check a news app like this one before.
  • Instapaper is where I store all the articles I found from various places to read later. It is really nice to have a hub for everything you find online here to sit through and read them. And you get a dark mode too.
  • Spark is an email client which has just demoted my previous email app, Email. I like this over the others due to its New, Pins and Newsletters sections and its support for all the email providers.
  • Sleep Cycle tracks my sleep at night. It display really cool and insightful data and trends, which I love to see. It also integrates with Life Cycle, an app that shows my daily activities, places I visit and how much time I spent there.
  • Overcast is my podcast listening app of choice. It blew the built-in podcast app out of the water. The killer feature has to be Smart Speed which so far has saved me an extra 18 hours on top of my speed adjustments alone.
  • Level Money helps me track my spending and shows how much spendable money I have left for each month. My favorite feature of this app is ability to add trackers to each merchant based its category. It will then aggregate all the purchases and show me how much I spend on each category each month. Again, I love seeing data and trends.

This has been a really nice change for the better. I can do frequent tasks faster especially with the help of Launch Center Pro. For those of you who are thinking of cleaning up your home screen but could not find time or the motivation to, I encourage you to take no more than an hour to do this. Trust me, it is worth it.

]]>
https://vatthikorn.com/a-cleaner-homehttps://vatthikorn.com/a-cleaner-homeWed, 25 May 2016 08:22:00 GMT
<![CDATA[The Solid State]]> IMG 0436 1024x682

Yesterday, I finally got myself a Solid State Drive (SSD) for my 2010 MacBook Pro. It has been using traditional hard drives for more than 3 years and now it is really slow. The price of an SSD now is relatively cheap compared to how much it would cost 2 years ago.

I was surprised to find out that a 120GB SSD now only cost $90 on Amazon. That was also one of the reasons why I decided to upgrade from a traditional hard drive to a much faster and less energy-consuming SSD.

I got a 250GB SSD from Samsung, which is the best-selling SSD on Amazon.com, for only $145. At the beginning, I was contemplating between the Crucial m500 and Samsung 840 EVO. Despite the fact the Crucial is one of the first companies that entered the SSD market since around four years ago, I still prefer the Samsung over it because it received more positive reviews and has much faster transfer speed.

IMG 0441

I already had some experiences changing the RAM and hard drives on my MacBook, so upgrading it to an SSD was rather an easy task for me to do.

There are 10 screws on the back of a unibody MacBook which need a 0 size screwdriver to unscrew them.

IMG 0446 1024x682

IMG 9691 1024x682 The back cover can get really dusty. So this was a good chance for me to clean it up.

IMG 0448 1024x682

The drive is located on the bottom left corner. There are 4 more screws to be screwed off before I could lift the hard drive up and disconnect the SATA cable. The SATA cable is really fragile so I had to be extra careful disconnecting it from the hard drive because if I ripped it I would need to look up the tutorial on how to replace one. Once the hard drive came off, there are 4 more mounting screws on each corner of the drive which I must use them on my SSD for it to be able to be installed. These are not normal screws, I needed a Torx screwdriver to work with them.

IMG 0460 1024x682

After the mounting screws are in place, I just carefully connected the SATA cable to the SSD, put it down and secured it in place. Then I put the back cover back on and ta-da! That was it! Pretty easy right?

Next part was the nerve-wrecking part. I booted up the computer and hoped that it would recognize a new SSD in its system because if not I would need to open the back cover up again and re-install the drive or worse, return the drive and get a different one. But luckily, it recognized the new drive! So now the very last part was to install the operating system. I already created a bootable USB drive to use as an installer for OS X Mavericks.

IMG 0471 1024x682 The USB flash drive with OS X Mavericks on it.

IMG 0474 1024x682 The installation took a reasonable amount of time but still really fast compared to installing one on a hard drive.

After about half an hour of installation process, my MacBook booted up the a new SSD and freshly installed OS X Mavericks! Its boot-up time was less than 15 seconds! I tested the read/write speed it clocked in around 250MB/s for writing and 270MB/s for reading.

Screen Shot 2014 02 15 at 6 59 34 PM Not the fastest but still impressive nonetheless.

And that was it! My journey through upgrading my laptop to a SSD. If any of you guys are thinking of upgrading your computers to a SSD, I strongly recommend it.  Though I haven’t gotten a lot of experiences with it but so far it has been great (I’ll post some updates later). My applications launch in matter of seconds rather than minutes. The boot-up and shutdown time are also insanely fast. I can easily say that this is one single best upgrade for my laptop so far.

]]>
https://vatthikorn.com/the-solid-statehttps://vatthikorn.com/the-solid-stateSat, 15 Feb 2014 16:33:00 GMT
<![CDATA[My Michigan Vacation [Part 1]]]>So I finally got around to write about this... First thing I wanna say is that my classes started last week, so for that reason I didn't have time to write on my website here. But this week, I have some more free time in the afternoon, so I'm just gonna write about my winter break vacation! I will try to write about it as much as I can. Hopefully some of you will find this somewhat interesting. Now sit back, and enjoy...

As some of you might already know from my previous post that I went to Michigan to visit my host family and friends for the winter break. It was a 10-day trip, we mostly just hanging around the area, didn't do anything much. (Except a lot of driving and skiing/snowboarding) So I flew in to Grand Rapids on the 17th of December, about one and a half year since I flew out here back to Thailand after I finished my exchange program during 2010-2011. The trip was about 6 hours long, I had to make a connecting flight in Cincinnati. It was about 9pm when I arrived. To be honest, it was a strange feeling coming back here again. Now I'll just assume that most of you probably don't know my story when I was here as a exchange student. So just to clear things out, I had an awesome time here. It was one of the best years of my life.

As I walked out of the gates down to the waiting area. I already knew that my host family was gonna be here to pick me up. So I was kinda looking for them, and I honestly didn’t even know how to react, it’s been too long but still, I was really excited. In the summer of 2011, when I was here the last time, they dropped me off at this exact place. And one thing I think you should know, and I’ve never written about this before, is that I bursted into tears saying goodbye to my host parents here. It was tough to say goodbye. We all know that feeling. On that day I knew that we will meet again, it’s just the matter of where and when. So here I was, back at the place where I said goodbye, where I saw them for the last time. Then I saw them waiting for me on the bench. I let out a huge smile, walked right to them and gave them both a big hug. After a little greetings, we walked down to the baggage claim area and off to their place, which is about an hour north of Grand Rapids.

After a long ride with a lot of chit-chatting, we finally arrived at the same house that I was staying at for almost a year. It all looked pretty much the same, I felt lucky that I had a chance to come back here again at last.

Next day, my host dad, Brad, took me out deer hunting. But before I could be inside the woods to look for deer, I needed to wash off all my human scent with special soap and sprayed every pieces of clothing I was going to wear with this hunting spray.

There was this place we called ‘the cabin,’ it was the place where he usually hunts and it was in the middle of the wood. Perfect place for deer hunting. We then went inside the woods and out to the open field where he told me that he always sits and wait for deer to show up here.

IMG 4714 The cabin

IMG 4725

IMG 4739

Since I was there with him that day, we need to sit and wait inside that little cabin (seen in the photo above). Brad had his muzzleloader loaded and ready to shoot at any second the deer show up. It was about 3pm when we went inside and started waiting for deer, and that was all we did; sit and wait. We needed to be extra quiet and still. We couldn’t make any noises because that might scare the deer away. We would never know when they will show up, they are too quiet. We just had to sit there, looking out the window and hope that deer would show up soon. But we can play with our phones though, as long as they didn’t make any sound. Surprisingly, AT&T had 4G coverage in the middle of the woods...

IMG 4747

It was about 5:30 pm when it got dark and we couldn’t see anything anymore, so we packed our things and went back home. I was a little bit disappointed though. I even brought my DSLR with me, hoping that I would get a chance to take a picture of a living deer in the woods. But we didn’t have any luck. Continue to part 2...

]]>
https://vatthikorn.com/my-michigan-vacation-part-1https://vatthikorn.com/my-michigan-vacation-part-1Wed, 09 Jan 2013 03:19:00 GMT
<![CDATA[Some of the Photos from My Vacation]]>Here are just some of the photos I took while I'm here so far.

The view from backyard The view from backyard

The Woods

There is gonna be a lot more to come!

Check out the whole set here.

]]>
https://vatthikorn.com/some-of-the-photos-from-my-vacationhttps://vatthikorn.com/some-of-the-photos-from-my-vacationThu, 20 Dec 2012 07:23:00 GMT
<![CDATA[Loy Krathong Festival 2012]]>Hi everybody!

So last week I went to a Thai festival called, Loy Krathong at a Thai temple here in Auburn. It's a festival that we celebrate every year. According to Wikipedia, the name's meaning could be translated to "Floating Crown" or "Floating Decoration."

Image: Wikipedia Image: Wikipedia

In Thailand, we celebrate this festival by floating these "Krathong" (Crown/Float/Decoration) on the evening of the full moon of the 12th month in Thai lunar calendar. So it's someday in November. This year it is on the 28th of November.

Since I'm going to college here in USA, I didn't get a chance to celebrate this in Thailand (for 4 years in a row). So the Thai Student Association created an event for not only Thai student but for anyone who was interested to celebrate this tradition at a Thai temple.

Inside the temple Inside the temple

We went to this Thai temple called, Wat Washington Buddhawaram on Sunday last week. The temple hold a Loy Krathong event for anyone to join and learn our tradition, so there are a lot of Thai people as well as some Americans at the temple on that day. A lot of them brought food, some of brought their homemade Krathongs. For those who didn't make one, the temple was also selling their handmade Krathongs.

LKT-20121202-22 Delicious Thai Food

The food are just really good. Maybe that's also because I haven't had any Thai food in a while and I really miss how delicious Thai food is. So, yeah, I enjoy the food a lot.

Oh and we prayed too. It's been a long time since I attended the praying at the temple.

Then in the afternoon, it's the time for us to float our Krathongs, at the swamp nearby. Actually in Thailand, we float our Krathongs in the river at night. But since there's no river near the temple and the night in December would be so cold, we just did it at the swamp in the afternoon.

LKT-20121202-41 Out at the pond

My Krathong!! My Krathong!!

We came back to the campus in the late afternoon. It was a really fun event. I got to meet some other Thai people/students in the area, floated my Krathong, and most importantly, savored the deliciousness of homemade Thai food. Let's do it again next year!

Check out my full gallery on Flickr here.

Until next time.

]]>
https://vatthikorn.com/loy-krathong-festival-2012https://vatthikorn.com/loy-krathong-festival-2012Sun, 09 Dec 2012 04:00:00 GMT