Edit GIT runtime information
This should be the action after Move EmacsConfig from Dropbox to GIT - Shammerism.
Change Editor
$ git config --global core.editor "/Applications/Emacs.app/Contents/MacOS/Emacs -nw"
On my Mac, this should be defined with full path. If determined just "emacs", it will be failed to run.
Change Committer information
GIT generates automatically committer information based on the current login user account on the host and it's hostname. This information can be edited by "git config --global --edit" and edit it.
Git operation after modified some files
This is a continuation of Move EmacsConfig from Dropbox to GIT - Shammerism.
I modified some files getting from My GIT repository and executed following commands.
- git commit -v -a -m "Message about this commit"
- git push -u origin master
But, nothing has been changed in my remote repository.
In this case, -u option should NOT be added. Following commands are updating local and remote repository and other git environment can pull the updated resources.
- git commit -v -a -m "Message about this commit"
- git push origin master
- At other git environment, git pull
Move EmacsConfig from Dropbox to GIT
I use https://bitbucket.org/, and this is a procedure how to move EmacsConfig files to git repository of bitbucket.org from Dropbox.
- Create repository on bitbucket.org
- git clone https://$bitbucketUserName@bitbucket.org/$bitbucketUserName/$bitbucketRepositoryName.git
- cd $bitbucketRepositoryName
- echo "# ReadMe of $bitbucketRepositoryName" >> README.md
- git add README.md
- git commit -m "Initial commit with ReadMe"
- git push -u origin master
- cp -r $DropboxEmacsConfigDir .
- find . -name '*.el' -exec git add {} \;
- git commit -m "EmacsConfig files initial commit"
- git push -u origin master
New directory whose name is same as a repository name would be created when git clone command done. So I did above commands in $HOME/Workspace.
After above action done, change $HOME/.emacs.d symbolic link.
Karabinarのオプション
これまで、セミコロンをsticky shiftとして使用してきた。KarabinarでFor JapaneseのChange Semicolon(;) Keyを開き、Semicolon to Sticky Shift_L(effective only when input source is Japanese)にチェックを入れることでこれをやっていたが、久々に起動してみると同じFor Japanese配下に「Simultaneous Key Presses」なるものが追加されており、この中に「日本語入力時にF、Jキーの同時押しをSticky Shiftにする(SKKと一緒に使うと便利です。)」なる設定が追加されていた。いつの間に・・・
そもそも、久々にKarabinarを起動したのは、SKKで日本語入力モード中にコロンを打てなくなってしまっていたからだ。日本語入力モード中にコロンを打ちたいときは、一度SKKをオフにしてコロンを入力、再度SKKをオンにするということをやっていたが、ついにこの作業が面倒になってのこと。どうにかうまくSticky Shiftを有効にしたままコロンを打つことができないか考えてみようと思っていたところだったが、Semicolon to Sticky Shift_Lのチェックを外し、F+JのSticky Shiftをオンにすることでコロンの問題は解決。
まだたまに;を打ってしまうが、これは慣れが解決してくれるだろう。Emacsでも同様にできれば完璧か。今はEmacsはKarabinarによって変更されたキーバインドの影響を受けないようにしているが、Emacsでも同様のことができないか、後日調べてみようと思う。
Debian Stretch Install Procedure
In this article, I said that I would try Debian Stretch installing my Thinkpad. This is a procedure.
- Download ISO included non-free firmware from this site
- Burn this ISO into CD-R or DVD-R
- Boot from this CD-R or DVD-R
- Select Expert Install
- Choose language
- Language is English
- Location is Tokyo/Asia
- Locale is C
- Keyboard is American English
- Select default values until host configurations
- Network configuration is Auto
- Configure hostname and domain
- Configure user
- Enable shadow password
- Don't allow root login and define root password
- Configure normal user
- Using NTP and Locale is Tokyo/Asia
- Configure partition, using all disk with automatically partition size
- Install base image is linux-image-amd64
- Device driver is installed only for this machine
- Configure package manager
- Install Software Selection
- Join popularity contest
- Only System Tools selected
- GRUB Installation
- Select YES at Install the GRUB boot loader to the master boot record
- Next question is NO(default)
- At last phase, asked if changing NTP location to UTC from Tokyo/Asia, select No
- Choose language
- After reboot, changing Keybinding CapsLock to Ctrl, edit /etc/default/keyboard like below and reboot
XKBMODEL="pc105" XKBLAYOUT="us" XKBVARIANT="" XKBOPTIONS="ctrl:nocaps" BACKSPACE="guess"
- After reboot, configure wifi
- ip link set wlp3s0 up(wlp3s0 might be different on each environment)
- iwlist wlp3s0 scan and check the ESSID to connect
- wpa_passphrase $ESSID $PASSPHRASE>>/etc/network/interfaces
- edit /etc/network/interfaces like below
iface $WifiName inet dhcp wpa-ssid $ESSID wpa-psk $wpa_passphrase_result
QUERY is very useful!!!
I have never been digging GoogleSpreadSheet, but this product(should say as service?) has great functions. I amaze Query.
This function requires at least 3 parameters, 1st is the range, 2nd is a condition which values I would like to filter, 3rd is something I am not sure. Here is a simple Query command.
=QUERY(A:D, "SELECT B WHERE C = 10")
What I amaze is supporting filter syntax like SQL. I am not familiar with the application like Excel, Numbers, Google Spread Sheet, so other application has a function kind of like Google Spread Sheet "QUERY", but I'm not sure about it. At least, this point reinforces me to use Google Spread Sheet.
Everybody knows that Google Spread Sheet can be used if there is a Internet Connection from all kind of devices. This point must be required in these latter days. Everything around me seems to say "You should use Google Services and Products more!!!".