📘 language

How is each Slavic language different from each other?

I'm now in Poland🇵🇱 and have found that I really love the country😍 And now I'm considering learning Polish, although I know it is incredi

I'm now in Poland🇵🇱 and have found that I really love the country😍 And now I'm considering learning Polish, although I know it is incredibly hard to acquire the proficiency.

Then, another question hit on my head - How is each Slavic language different from each other, including Polish🇵🇱, Czech🇨🇿, Slovakian🇸🇰, Russian🇷🇺, and Ukrainian🇺🇦.

I found one interesting blog titled

-->
2 min read
🛠️ tech

[📗Review] Getting started with TensorFlow ⭐️⭐️

Not that good book in general. First, some codes are not working, possibly due to a version incompatibility but also the typos by the auth

getting_started_with_tensorflow

Not that good book in general. First, some codes are not working, possibly due to a version incompatibility but also the typos by the author. The author's English at times does not sound natural for me, either.

Also, there is no reason to use Python 2.7; TensorFlow is compatible with Python 3.x, and I don't like to use

-->
1 min read
🛠️ tech

[📗Review] Deep Learning with TensorFlow ⭐️

I don't recommend this book. Sometimes I even don't understand the author's English to begin with. I first read the chapter on Recurrent

deep_learning_with_tensorflow


I don't recommend this book. Sometimes I even don't understand the author's English to begin with.

I first read the chapter on Recurrent Neural Network but the explanation is pretty limited and it just touches on any concept vaguely. You must investigate how it works, which no longer makes this book valuable as a learning book.

And the author just

-->
1 min read
👩🏼‍💻 tech-note

How to update any cells in MySQL?

I forgot about it so, so frequently that I decided to jot down the syntax. For example, to make all the posts unpublished in Ghost: update

I forgot about it so, so frequently that I decided to jot down the syntax.

For example, to make all the posts unpublished in Ghost:

update posts set status = "draft";

Or if you want to add the condition:

update posts set status = "draft" where author_id = "1";

Source: https://stackoverflow.com/a/3024567/2360798

-->
1 min read
📘 language

Connect sentences with adverb on Mandarin

In Mandarin, not only you can connect sentences with a conjunction, you can also connect it with an adverb. For example: 我先去买书,然后去看电影。 我们先参

In Mandarin, not only you can connect sentences with a conjunction, you can also connect it with an adverb. For example:

我先去买书,然后去看电影。
我们先参观了故宫,然后又去了颐和园。

In this case, 先 and 然后 are adverbs, but you can connect the two sentences with these adverbs.

Other examples:

我听了他的解释,就明白了。
今天你很忙,那我就下个星期来吧。

In this case, å°± is an adverb but connect the two

-->
1 min read
📘 language

Don't be confused with subject and topic on Mandarin

In Mandarin, some sentences form a topic as well as a subject. For example, the following sentence starts with a topic before a subject. 这本

In Mandarin, some sentences form a topic as well as a subject. For example, the following sentence starts with a topic before a subject.

这本书我看过了。

In this sentence, 这本书 is a topic and 我 is a subject. Let's use more examples:

北京人们很多。
伙子胃很长。

If a sentence has either a topic or a subject but not both, you must detect whether

-->
1 min read
👩🏼‍💻 tech-note

How to check if an element is in the table in Lua?

This is NOT supported in Lua. So you must write your own function manually. In Python, you can write the following: if i in yourList: In L

This is NOT supported in Lua. So you must write your own function manually.

In Python, you can write the following:

if i in yourList:

In Lua, write the following:

local function has_value(tab, val)
    for index, value in ipairs(tab) do
        if value == val then
            return true
        end
    end

    return false
end

And then, use the function to

-->
1 min read
👩🏼‍💻 tech-note

How to change the default browser on Jupyter Notebook?

Open up your Jupyter config file. The default is on ~/.jupyter/ but I put it on Dropbox. Now, edit the config file to reflect the following

Open up your Jupyter config file. The default is on ~/.jupyter/ but I put it on Dropbox.

Now, edit the config file to reflect the following settings (on macOS). If you don't have a config file, you must create it first (jupyter notebook --generate-config).

c.NotebookApp.browser = u'open -a /Applications/Google\ Chrome\ Canary.app %s'

Now, try jupyter notebook and

-->
1 min read
👩🏼‍💻 tech-note

How to use a config file in R and Python?

The easiest solution The easiest solution would be just create a config.R (or something like that), and read the file in R. For example her

The easiest solution

The easiest solution would be just create a config.R (or something like that), and read the file in R.

For example here is config.R (replace <- with = in Python):

#file: config.R
user <- "root"
password <- "root"
host <- "localhost"
dbname <- "

-->
1 min read
👩🏼‍💻 tech-note

How to access an internal file of a script run by a cron job?

I have failed to access a file that should be accessed in a script run by a cron job. The problem came from the fact that the cron job coul

I have failed to access a file that should be accessed in a script run by a cron job.

The problem came from the fact that the cron job could not access the internal file due to a different path.

So you must make sure to write the file in a program in an absolute path. This is simple in

-->
1 min read
📘 language

How to switch to different languages in macOS?

Warning: Currently Karabiner doesn't work in macOS Sierra. This tip works before or on El Capitan. Switching to different languages might s

Warning: Currently Karabiner doesn't work in macOS Sierra. This tip works before or on El Capitan.


Switching to different languages might sound tedious at first, but actually, it is so simple; just assign a keyboard shortcut to each language👲

For example, since we have two command keys on our keyboard, assign the left command key to the switch to English

-->
1 min read
⚾️ baseball

What kind of pitches are harder or easier to bunt?

This article was originally posted in December 3, 2012 in my old blog and has been slightly modified by yours truly to correct gramatical an

This article was originally posted in December 3, 2012 in my old blog and has been slightly modified by yours truly to correct gramatical and spelling errors and make it more readable.


A sacrifice bunt has conventionally been featured on sabermetric blogosphere for its relative lack of importance to ballgames and often criticized when it is dreadfully abused by a

-->
11 min read
📘 language

Which country is Russian language available?

There are about 260M speakers around the world: In 2010, there were 259.8 million speakers of Russian in the world: in Russia – 137.5, in t

There are about 260M speakers around the world:

In 2010, there were 259.8 million speakers of Russian in the world: in Russia – 137.5, in the CIS and Baltic countries – 93.7, in Eastern Europe and the Balkans – 12.9, Western Europe – 7.3, Asia – 2.7, Middle East and North Africa – 1.3, Sub-Saharan Africa – 0.1, Latin

-->
1 min read
👩🏼‍💻 tech-note

How to untrack a directory in Git?

The process is pretty simple: git rm -r --cached directory_to_untrack Note that I was forced to untrack the directory as it had a .git/ wit

The process is pretty simple:

git rm -r --cached directory_to_untrack

Note that I was forced to untrack the directory as it had a .git/ within it and thus was considered a submodule. So in my case I first deleted the .git/ before untracking the directory.


Source: http://stackoverflow.com/a/30360954/2360798

-->
1 min read
👩🏼‍💻 tech-note

How to upgrade Ghost?

NOTE: This post is about the prior version of Ghost (0.x). In version 1.0 or later, the Ghost official team supports a tool to upgrade your

NOTE: This post is about the prior version of Ghost (0.x). In version 1.0 or later, the Ghost official team supports a tool to upgrade your app via ghost command line tool.


Take the following steps, which is a short summary of the linked tutorial:

  • Download the latest Ghost and extract it

  • Delete core/, index.js, package.json

-->
1 min read
👩🏼‍💻 tech-note

How to create a custom static page in Ghost?

It is simple. Take the following steps: Add a custom page from an admin page, where you enable the "custom page" checklist. Crea

It is simple. Take the following steps:

  • Add a custom page from an admin page, where you enable the "custom page" checklist.

  • Create a page-{customURL}.hbs in the root of your theme directory. The customURL must be the same as the root URL you want. If you show the page at yourblog.com/about, it must be

-->
1 min read
👩🏼‍💻 tech-note

How to replace a string in a file using sed?

According to the answer over Stack Overflow, you must create a temporary file and mv it to the original file. For example: sed -e 'script

According to the answer over Stack Overflow, you must create a temporary file and mv it to the original file.

For example:

sed -e 'script script' index.html > index.html.tmp && mv index.html.tmp index.html

This is pretty daunting... I wish there were any alternatives...

-->
1 min read
🛠️ tech

OMG!!! Karabiner doesn't work on macOS Sierra...😂

I finally purchased a new MacBook Pro with TouchBar. But I found that Karabiner still doesn't work on macOS Sierra... OMG... OMG... No, No,

I finally purchased a new MacBook Pro with TouchBar. But I found that Karabiner still doesn't work on macOS Sierra...

OMG... OMG... No, No, NO NO NO!!!

How can I be productive enough without the amazing software?

It is definitely the kind of things I could never tolerate in my working environment; it is the single most important app I

-->
1 min read
👩🏼‍💻 tech-note

How to add a custom route to your Ghost blog?

First, create a custom route directory to your root. Originally I added my custom route files under core/server/, but since it is going to b

First, create a custom route directory to your root. Originally I added my custom route files under core/server/, but since it is going to be overwritten by updates on Ghost, it might be preferrable to make them agnostic about the core directory altogether.

Then, define your own custom routes in whatever way you want. Add routes, controllers, or middlewares,

-->
1 min read
👩🏼‍💻 tech-note

What is `module.exports` in node.js?

According to the answer over Stack Overflow: module.exports is the object that's actually returned as the result of a require call. Also,

According to the answer over Stack Overflow:

module.exports is the object that's actually returned as the result of a require call.

Also, the exports variable is available on which you can add whatever variables you want to export, such as:

var thunderbolt = function() { ... };
exports.thunderbolt = thunderbolt;

, which is accessable from the exported environment:

var pikachu = require("pikachu"

-->
1 min read