Month: July 2021

  • Git: The Ultimate Tool for File Version Control — A Beginner’s Guide

    Git: The Ultimate Tool for File Version Control — A Beginner’s Guide

    What is Git?

    Many of you have probably heard of GitHub before you ever heard of Git.
    When looking for a program or a piece of software to use as a reference, you often land on a GitHub page, and I suspect many of you have simply downloaded something without really understanding how the site works.

    GitHub is indeed a place where programs are shared, but it is more than just a sharing site: it is a tool for using a tool called Git online.

    Git is a tool for version control of files.
    By modifying files and recording those changes, you can return to any recorded version at any time.

    When you ask someone to review a presentation draft, you probably save the file before the review, the reviewed file, and the file you revised based on the comments as separate files.
    With a tool like Git, you can handle those changes easily, and all within a single file.

    The link to Git is here

    The three areas in Git

    A record made with Git, and the act of making that record, is called a “commit”.

    The place where commits accumulate is called a “repository”.
    In other words, a repository is the place that holds the change history.
    A repository on your own computer is called a “local repository”, while one hosted remotely, such as on GitHub, is called a “remote repository”.

    When you want to manage files with Git, you specify the folder that Git will manage.
    Within that folder there are three areas:
    the working tree, the staging area, and the Git directory.

    The working tree is where your files live, and simply editing a file here does not yet save the change history as a commit.

    The staging area is where you register the files to be committed.
    Files on the stage likewise have not had their change history saved yet; think of it as the place where you declare, “I am going to commit this file.”

    The Git directory is where commits are stored.
    Files committed here are stored as files that will never be altered.
    In principle, the content recorded by a commit cannot be changed or deleted afterward.
    Once something is committed to the Git directory, it has been recorded as part of the change history.

    Basic use of Git

    I will leave the detailed usage for you to look up, but here I give a rough overview of the actual operations.

    Git is generally operated using Git Bash on Windows (installed together with Git) and the terminal on macOS and Linux. (Here I will refer to both simply as the terminal.)

    There are GUI tools that may feel more familiar, but once you get used to it, using Git from the CUI is extremely convenient, so I recommend starting with the CUI from the beginning.
    You should get the hang of it within an hour.

    First, to start managing files with Git, create a local repository.
    Begin by moving to the directory you want Git to manage in the terminal.
    Then,

    git init

    Entering this gets you ready to use Git for version control.

    Next, to record changes in the staging area,

    git add ファイルパスもしくはディレクトリパス

    Running this registers the specified file in the working tree to the staging area.

    Next,

    git commit

    This commits the files in the working tree.

    To check which file is currently in which state,

    git status

    run this.
    The commit history can be

    git log

    checked by running this.

    Basically, the workflow is to run git add, then git commit to create a change record, and to use git status to check the current state whenever you run into trouble.

    Below is a reference.
    It is a book that is very easy to follow even for beginners, and I referred to it while writing this article.
    If you want to study this in more depth, I recommend it.

  • Side Effects of COVID-19 Vaccines: A Science Student’s Careful Review of the Evidence — Based on Japan’s Ministry of Health, Labour and Welfare Website

    Side Effects of COVID-19 Vaccines: A Science Student’s Careful Review of the Evidence — Based on Japan’s Ministry of Health, Labour and Welfare Website

    With misinformation circulating about the side effects of COVID-19 vaccines, and media coverage that often stokes anxiety, it can be hard to know which information to trust.

    The most reliable source of COVID-19 vaccine information in Japan is, I believe, the content posted on the Ministry of Health, Labour and Welfare (MHLW) website.
    However, materials such as the health status surveys are quite difficult to follow, so few people are likely to read them.

    The MHLW’s Q&A on COVID-19 vaccines is written very clearly, so I will quote from it here.

    Vaccine basics

    First, two COVID-19 vaccines are currently being administered in Japan: the Pfizer vaccine and the Moderna vaccine.

    Both are mRNA vaccines that work through essentially the same mechanism, and their efficacy in preventing symptomatic COVID-19 is nearly identical: about 95% for Pfizer and about 94% for Moderna.

    Both are given as intramuscular injections.
    Intramuscular injection may look painful because the needle goes in fairly deep, but in practice most people I know said it hurt about the same as a subcutaneous injection such as a flu shot, or even less.

    There are some other minor differences, but fundamentally both offer comparable efficacy, and current data indicate that neither is superior to the other.

    Main side effects of the vaccines

    Side effects that may occur with both the Pfizer and Moderna vaccines include fever, headache, joint and muscle pain, pain at the injection site, fatigue, and chills.
    Injection-site pain more often appears the day after vaccination than immediately afterward, and side effects can be somewhat delayed, so take good care of yourself on the day after your shot.

    In rare cases, serious reactions such as shock or anaphylaxis (a severe allergic reaction) may occur.
    Very rarely, mild myocarditis and pericarditis have been reported after vaccination.

    If a health problem arises from side effects after vaccination, you may be able to use the Relief System for Injury to Health with Vaccination; contact your local municipality for details.

    A common side effect of the Moderna vaccine is what is popularly known as “Moderna arm.”
    This refers to pain and swelling at the injection site appearing about a week after vaccination.

    In general, side effects subside within a day to a few days.

    Side effects are also said to be more likely after the second dose than after the first.

    Health survey reported by the MHLW (as of July 7)

    The link to the health survey is here

    Pfizer vaccine

    Please see the link for the detailed data.
    Here I will give a rough summary of what the data show.

    As for local reactions at the injection site, the proportion of people with redness or swelling did not differ greatly between the first and second doses, at roughly 10–12%.

    However, about 90% of people reported pain at the injection site after both the first and second doses, so nearly everyone experiences some pain.
    The proportion reporting a sensation of heat at the injection site was about 10% after the first dose and about 16% after the second.

    These symptoms peak on the day after vaccination, and the proportion affected roughly halves on day 3 and again on day 4.

    Regarding systemic reactions, fever above 37.5°C occurred in under 10% of people after the first dose, compared with about 40% after the second.
    Fever was more common in younger people (about 50% among those in their 20s), and roughly 5 percentage points more common in women than in men.

    Fever peaks on day 2, but by day 3 the proportion affected drops to about one-quarter or less, and by day 4 it has resolved in nearly everyone—so it clears up quickly for most people.

    General fatigue occurred in about 25% of people after the first dose and about 70% after the second, while headache occurred in about 20% after the first dose and about 55% after the second. As with fever, the trend is that younger people are more likely to experience these symptoms, and women more so than men.

    The Moderna vaccine

    The rates of side effects for the Moderna vaccine were largely the same as for Pfizer, as were the symptoms themselves.

    As for “Moderna arm,” which is characteristic of the Moderna vaccine, it occurs in about 5% of people after the first dose.
    Five percent may sound rare, but it works out to one in twenty people, so most of us probably know one or two people who have experienced it.

    Summary

    I have covered a lot of ground on the rates of side effects, so let me summarize here.

    • Almost everyone experiences pain at the injection site
    • Local symptoms such as pain, redness, and swelling at the injection site occur at roughly the same rate after the first and second doses
    • Systemic reactions occur more often after the second dose than the first
    • Fever and fatigue can occur in many people
    • Side effects are more common in younger people, and more common in women than in men
    • Side effects peak the day after vaccination, and for most people symptoms subside within one to three days

    A great deal of media coverage is framed in ways that stoke anxiety.
    By looking at the actual data with your own eyes, you can get a clearer sense of what the concerns about COVID-19 vaccines really amount to.

    I hope this article is helpful to you.

  • PC or PS5 for Gaming?

    PC or PS5 for Gaming?

    When you decide to play APEX, Call of Duty, or other big-name titles, you’ll probably wonder whether to play on a PC or buy a PlayStation 5.
    As someone who owns both, I’d like to walk through the advantages of each and who I’d recommend them to.

    About gaming PCs

    Who they suit
    ・People who want to do plenty of things besides gaming
    ・People who plan to stream their gameplay
    ・People who can spend a fair amount of money

    The biggest advantage of a gaming PC is, without a doubt, that you can customize it to your own taste.
    You can pick your own parts and build it yourself, or you can buy a pre-built machine from a shop like Dospara.

    The more you spend, the higher-performance a PC you can build.
    If you want to game in 4K, expect to pay at least around 200,000 yen for a full setup.
    That works out to roughly 150,000 yen for the PC itself, plus about 50,000 yen for accessories like a display and mouse.

    It costs money, but you can add lighting, fuss over your peripherals, and really express your own style.
    Choosing a PC also requires a certain amount of knowledge, so you’ll deepen your understanding of computers along the way.

    Speaking from experience, the knowledge I picked up while building my own PC has come in handy in all sorts of situations—I can do a quick diagnosis when a friend’s PC acts up, and I can handle maintenance on my own machine myself.

    Also, since it’s a computer at heart, you can do things other than gaming.
    In particular, programming requires a machine with reasonably good specs, and a gaming PC easily clears that bar.

    Some people may worry about game availability, but you can generally buy games on a site called Steam.
    Most of the well-known titles sold on the PlayStation Store are also available on Steam.
    So there’s not much to worry about.
    If anything, you can also play PC-exclusive games, which greatly widens your options.

    Next, about the PS5 (home game consoles)

    Recommended for
    ・People who aren’t comfortable with computers or electronics
    ・People who just want to play games
    ・People who don’t want to spend that much
    ・People who want to play with friends

    Here I’ll use the PS5 as my example.
    PlayStation has a friends feature, which makes it extremely easy to play games while chatting over voice.
    Because it’s a dedicated gaming machine, these gaming-oriented features are very easy to use.

    By buying games on disc, you can sell them at a used shop like Book Off once you stop playing, which saves you money overall.

    The console is also smaller than a PC, and a single unit draws less power than a PC. (PCs consume about as much electricity as a hair dryer at this point.)

    It doesn’t get brought up much, but the thing I personally liked best was how the controller feels to use.

    You can use a PS5 controller on a PC too, but problems come up easily—you have to remap buttons, and connecting wirelessly introduces lag, so I ended up using a wired connection. On the PS5, I barely noticed any lag even over a wireless connection.
    You might think that goes without saying, though.

    Precisely because it’s a dedicated gaming machine, it’s inexpensive, yet its gaming performance is on par with a PC costing around 300,000 yen—I honestly have no idea how they pull it off.
    The PS5 is built to unbelievably high specs.

    This has only been a small slice of the comparison, but I hope it helps you see which one is right for you.
    Personally, I think deciding based on your purpose—whether you just want to game or want to do other things too—leads to the decision you’ll feel best about.

  • I bought an electric air duster. Seriously, it’s amazing

    Air dusters come in handy in all sorts of situations—working on a computer, tinkering with junk parts, messing with electronic circuits, and more.
    The problem is that a single can is surprisingly expensive and runs out almost immediately.
    On top of that, disposing of the cans is a hassle.

    So while air dusters are highly versatile, they also come with plenty of drawbacks.
    My can had just run out, and while shopping online for a replacement, I came across an electric air duster.

    Being electric, I was skeptical about whether it could match the power of a canned air duster and whether it would really be practical.
    The reviews were fairly good, though, with many comments saying it was stronger than expected.

    It was about 7,000 yen, so I decided to just go ahead and buy one.

    It’s the Sanwa Supply electric air duster.

    The first thing that surprised me when I used it was just how strong the air pressure is—more than enough.
    It has enough force to blow an ordinary sheet of paper away, which is more than sufficient for clearing dust off a computer.

    The battery lasts a long time, and unlike a canned duster, it never gets cold and loses power when you keep it running.

    The unit charges via USB Type-C, and a cable is included.
    These days a Type-C cable is surprisingly useful to have around, so that’s a nice bonus.

    One drawback is that the response is a bit slow.
    After you press the switch, it ramps up over about a second, and it takes one or two seconds to reach full power.
    You end up going “hmm, hmmm…” while you wait.

    I’ve uploaded a video so you can see the power and the response for yourself.

    https://youtu.be/Nu6S6vfROhg

    For me, the slow response isn’t stressful at all, and there’s no situation where I’d need faster response, so
    this turned out to be a purchase I’m glad I made.

    Now I can say goodbye to disposing of cans, and I no longer have to worry about the cost of air dusters.
    I’d definitely recommend picking one up.

  • A Visit to the Starbucks at Toyota Kuragaike Park

    A new Starbucks recently opened at Kuragaike Park in Toyota City.
    Kuragaike Park is a large park with attractions like a free zoo, and on weekends families with children come to play there.

    It has grassy open areas, so you can have a picnic or get some light exercise.
    Since a Starbucks had opened in that very Kuragaike Park, I simply had to go — so I went.

    The Kuragaike Park Starbucks faces the pond, with terrace seating on the pond side, and outside that there are steps leading down.

    Inside there are also various types of seating — sofas, tables for two, a large communal table — so it works for all sorts of purposes.

    On nice days you can enjoy your Starbucks outdoors, on the terrace, on the steps facing the pond, or out on the grassy lawn. It’s a Starbucks that feels at one with nature.

    Conversely, the indoor space is also well suited to studying a bit, reading a book, or just spending time relaxing.

    Kuragaike Park is a large park well known as a place for children to play, so there is often a line on holidays.
    When I went it was around midday on a Saturday, and the line stretched out the door.

    Even though it takes a while before you get your drink, the store is relatively spacious and there is outdoor seating too, so even when people are lined up you can still find a few open seats inside.
    The turnover is also good ♪
    It’s really nice not to have to worry about buying a drink and then having nowhere to sit and enjoy it.

    The last time I went it was an extremely sunny day, and I read a book out on the terrace.
    That said, it was so bright that my eyes started to hurt, so indoors may be better for reading or studying.

    My biggest concern is that Aichi Prefecture gets extremely hot — outdoor temperatures top 40 °C in summer.
    So once summer really sets in, a lot of people may come inside just to cool off.

    The Kuragaike Park Starbucks is a wonderful Starbucks that blends right into its natural surroundings.
    Definitely give it a visit.