Friday, October 30, 2015

iOS-keyboard as Trackpad

iPhone 6s: 키보드를 매직 트랙패드처럼

iPhone 6s: 키보드를 매직 트랙패드처럼


이 문서는 e[⎋esc]m[⌥⌘meta]a[⌥alt]c[⌃ctrl]s[⇧shift] org-mode로 작성된 글입니다.

이번 포스트는 윤지만(Yoon JiMan)씨의 블로그에 올라온 "아이폰 6s 사용자를 위한 11가지 특별한 팁"을 보고 쓴 글입니다.


System Environments

  • Main- : OS X El Capitan (10.11.1)
  • Sub- : Debian GNU/Linux Wheezy (7.9)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 9.1

iOS 키보드를 트랙패드처럼 쓰기 는 "3D Touch"가 가능한 iPhone 6s에서만 가능하다. 키보드가 뜨기만 하면, 어디든 사용할 수 있다.

작동시키는 방법:

  1. 키보드가 올라오면, 그 위에 어디든 꾹 누른다.
  2. 손가락을 띄지 않은 상태로 움직이면, 마치 트랙패드에서 하듯이 포인터가 움직이는 것을 볼 수 있다.

아래 GIF나 동영상을 참고하자.

Yoon Jiman씨의 글을 보기 전까지 전혀 몰랐던 기능이다. 정말 너무 잘 쓰고 있어서 이 포스트를 쓰게 됐다. 이것 말고도 유용한 기능들이 잘 정리되어 있으니, iPhone 6s 사용자라면 꼭 한번 원문을 읽어보기를 바란다.

이 기회를 통해 Yoon Jiman씨에게 감사를 드립니다.

22582413165_00c91218e5_o.gif

iOS-Trackpad from Yonggoo Heo on Vimeo.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Created: 2015-10-30 Fri 22:04

Emacs 24.3.1 (Org mode 8.2.10)

Thursday, October 29, 2015

OS X El Capitan (10.11.1)

OS X El Capitan

OS X El Capitan


This post is written with e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode.


System Environments

Operating Systems

  • Main- : OS X El Capitan (10.11.1)
  • Sub- : Debian GNU/Linux Wheezy (7.9)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 9.1

Finally, new OS X El Capitan (10.11.1) is released behind its buggy version 10.11.0. This is my short list presenting what applications (or scripts) is working on OS X El Capitan (10.11.1).

Applications Version Status(O/X) Comment
Emacs(cocoa) 24.3 O  
Quicksilver 1.3.2 O text-mode crashes
Skim 1.4.14 O  
Oracle VM VirtualBox 5.0.6 O Seamless mode crashes
MacPorts 2.3.4 O El Capitan compatible
BibDesk 1.6.4 O  
Baram(바람입력기) 1.5.2 O  
EzPlusforMac(신한은행)   O  
GPG Tools 1.5 O  
Malwarebytes Anti-Malware 1.1.3 O  
Keka 1.0.4 O  
Cyberduck 4.7.2 O  
Veusz 1.23.1 O  
X2Go Client 4.0.5.0 O  
XQuartz (X11) 2.7.8 O  
DjVuLibre DjView 4.5 O  
AppCleaner 3.0.2 O  
Skype 6.17 O Old version on purpose
Telegram 1.96 O  
f.lux 36.3 O  
Sigil 0.8.0 O  
PhotoScape X for Mac 1.8 O Old version on purpose
Notational Velocity 2.0 β5 O  
nvALT 2.2b O  
Sublime Text 2 O  
Atom 1.0.19 O  
TextMate 2.0-beta.8 O  
MacDown 0.5.2 O  
LibreOffice 4.3 O  
HandBrake 0.10.2 x8664 O  
Max 0.9.1 O  
MPEG Streamclip 1.9.2 O  
VLC 2.2.1 O  
MPlayer OSX Extended rev15 O  
Screeny 2.2 O  
KeyCastr 0.8.0 O  
Steam   O  
Machinarium   O  
DOSBox 0.74 O  
iStat Menus 4x X  
DEVONthink Pro Office 2.8.7 O  
EasyFind 4.9.3 O  
Mathematica 8x O After Java installed
Acrobat Pro 9x O  
Prizmo 3.1.4 O  
Disable Startup Sound   O  
Colored ls   O  
QLStephen.qlgenerator   O See the Link

FYI)

  • Ports you installed via MacPorts before OS 10.11 such as texlive work w/o reinstallation of MacPorts for El Capitan. But, it is of course impossible to use MacPorts command like port selfupdate till it's properly installed.
  • Quicksilver crashes in text-mode: you have to use Bezel(Default) Interface for the time being1
  • Disable Startup Sound script: Go to the post
  • Colored ls script: Go to the post

Created: 2015-10-29 Thu 20:53

Emacs 24.3.1 (Org mode 8.2.10)

Sunday, October 18, 2015

Tags disappear after saving a buffer in emacs

Tags and Emacs

Tags and Emacs


This post is written with e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode.


System Environments

Operating Systems

  • Main- : OS X Yosemite (10.10.5)
  • Sub- : Debian GNU/Linux Wheezy (7.9)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 9.0.2

Softwares mentioned here

Tags disappear after saving a buffer in emacs, OS X

If your tags disappear sometimes, I bet you are an emacs and OS X user like me. It could happen under your .emacs file manually (il-)modified, particularly the backup file configuration.

It turns out that the reason why my tags disappear is caused by emacs. My il-modified .emacs had the following elisp code inside.

(setq backup-directory-alist `(("." . "~/.emacs.d/auto-save-list")))

That made all automatically generated backup files, i.e. file_name.extenson~, moved into the directory ~/.emacs.d/auto-save-list. I set it up, because file_name.extenson~ was nothing but bothering me. If an original file has a tag, then its emacs backup is gonna have the same tag as well. Whenever I tried to access such files via tags such as quicksilver's File Attribute Plugin, emacs backups also are there. Even further worse. So I decided to move them all to one directory by the elisp code above. However it was a wrong choice. According to this, a file with tags had its tags killed after saving it(^x ^s or ⌘s) in emacs.

I don't know why or how it technically happens, but it is true that the above elisp is the reason. Instead of putting all emacs backups to one directory, I simply disable all automatic backup precess by adding the following into my .emacs.

(setq backup-inhibited t)

There will be no tags disappearing again.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Created: 2015-10-18 Sun 22:56

Emacs 24.3.1 (Org mode 8.2.10)

Wednesday, October 14, 2015

A simple LaTeX editor in iOS: MMD

LaTeX with MMD or Org-mode with MathJax

LaTeX with MMD or Org-mode with MathJax


This post is written with e[ ⎋Esc ]m[ ⌥Meta ]a[ ⌥Alt ]c[ ^Ctrl ]s[ ⇧Shift ] org-mode.


System Environments

Operating Systems

  • Main- : OS X Yosemite (10.10.5)
  • Sub- : Debian GNU/Linux Wheezy (7.9)
  • Server: Debian GNU/Linux Wheezy || Squeeze
  • Mobile: iOS 9.0.2

$$ \newcommand{\dd}{\mathrm{d}} $$


A brief comment on MultiMarkdown

MultiMarkDown(MMD) with LaTeX, particularly mathematical formulae, isn't hard in any text editor supporting markdown preview. All we need is adding the following code probably on the beginning of your MMD file.

<script type="text/javascript"
  src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

It's gonna automatically render a mathematical formula written in LaTeX into HTML by means of MathJax engine. List of softwares I've tested is

Remember that an equation has to be enclosed by $ and $, \( and \), \\[ and \\], or etc. as suggested by MathJax or Fletcher T. Penney. For the others, you can follow the usual Markdown or Multi-markdown syntaxes.

Rendering MMD with LaTeX to HTML may not work properly as expected. Sadly, usage of LaTeX in MMD is not recommendable (yet) by comparison with Org-mode working perfectly. For example, an HTML output rendered from any of above first three would be seen appropriately in Safari (or Mobile Safari), but might not in the others like Firefox(or even not in Safari sometimes).

Nevertheless, it is worth mentioning that an MMD editor supporting MD preview would be a great alternative to use LaTeX in iOS, such as Nebulous Notes.

22154811262_9daab98c1e_o.gif

Figure 1: LaTeX and its rendering in Nebulous Notes


LaTeX example and a tip

In order to use a manual command you want, it can be easily done by putting the following code somewhere in your MMD file or Emacs Org-mode file. It works in both.

$$
\newcommand{\dd}{\mathrm{d}}
$$

I here present the almost same output from the one LaTeX expression w/ two different markup languages: MMD and Emacs Org-mode.

Output

The famous Euler formula is $${e}^{i\pi }+1=0\,.$$

……………………………………………………

The Wigner function \(d^{(J)}_{mn}(\theta)\) satisfy the orthogonality and the completeness relation respectively as follows

\begin{align} (2\,J+1) \, \int_{-1}^{1}\frac{\dd\cos\theta}{2}\,d^{(J)}_{mn}(\theta)\,d^{(J')}_{mn}(\theta) = \delta_{JJ'} \,,\\ \sum_{J}(2J+1)\,d^{(J)}_{mn}(\theta)\,d^{(J)}_{mn}(\theta') = 2\,\delta(\cos\theta - \cos\theta') \,. \end{align}

It relates to the Legendre polynomial as

\begin{align} d^{(l)}_{00}(\theta) & = {} P_l(\cos\theta) \,, \qquad d^{(l)}_{10}(\theta) = - \frac{\sin\theta}{\sqrt{l(l+1)}}\,P_l'(\cos\theta) \,, \end{align}

where \(P_l'(z) = \dd P_l(z)/\dd z\). Using these altogether, we can recover the orthogonality and the completeness relation of the Legendre polynomials.

Source for MMD

<script type="text/javascript"
  src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

$$
\newcommand{\dd}{\mathrm{d}}
$$

The famous Euler formula is $${e}^{i\pi }+1=0\,.$$

***............................................................***

The Wigner function \\(d^{(J)}_{mn}(\theta)\\) satisfy the orthogonality and the completeness relation respectively as follows
\\[
\begin{align}
  (2\,J+1) \, \int_{-1}^{1}\frac{\dd\cos\theta}{2}\,d^{(J)}_{mn}(\theta)\,d^{(J')}_{mn}(\theta) = \delta_{JJ'}
  \,,\\
  \sum_{J}(2J+1)\,d^{(J)}_{mn}(\theta)\,d^{(J)}_{mn}(\theta') = 2\,\delta(\cos\theta - \cos\theta')
  \,.
\end{align}
\\]
It relates to the Legendre polynomial as
\\[
\begin{align}
  d^{(l)}_{00}(\theta)
  & = {}
  P_l(\cos\theta)
  \,, \qquad 
  d^{(l)}_{10}(\theta)
  = 
  - \frac{\sin\theta}{\sqrt{l(l+1)}}\,P_l'(\cos\theta)
  \,,
\end{align}
\\]
where \\(P_l'(z) = \dd P_l(z)/\dd z\\). Using these altogether, we can recover the orthogonality and the completeness relation of the Legendre polynomials.

Source for Emacs Org-mode

#+HTML_HEAD: <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>

$$
\newcommand{\dd}{\mathrm{d}}
$$

The famous Euler formula is $${e}^{i\pi }+1=0\,.$$

*............................................................*

The Wigner function $d^{(J)}_{mn}(\theta)$ satisfy the orthogonality and the completeness relation respectively as follows
\begin{align}
  (2\,J+1) \, \int_{-1}^{1}\frac{\dd\cos\theta}{2}\,d^{(J)}_{mn}(\theta)\,d^{(J')}_{mn}(\theta) = \delta_{JJ'}
  \,,\\
  \sum_{J}(2J+1)\,d^{(J)}_{mn}(\theta)\,d^{(J)}_{mn}(\theta') = 2\,\delta(\cos\theta - \cos\theta')
  \,.
\end{align}
It relates to the Legendre polynomial as
\begin{align}
  d^{(l)}_{00}(\theta)
  & = {}
  P_l(\cos\theta)
  \,, \qquad 
  d^{(l)}_{10}(\theta)
  = 
  - \frac{\sin\theta}{\sqrt{l(l+1)}}\,P_l'(\cos\theta)
  \,,
\end{align}
where $P_l'(z) = \dd P_l(z)/\dd z$. Using these altogether, we can recover the orthogonality and the completeness relation of the Legendre polynomials.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Created: 2015-10-14 Wed 18:16

Emacs 24.3.1 (Org mode 8.2.10)