One of the ironies of TDD is that it isn’t a testing technique (the Cunningham Koan). It’s an analysis technique, a design technique, really a technique for structuring all the activities of development. - Kent Beck’s “Test-driven development: by example”:
5 Questions Every Unit Test Must Answer
Next time you write a test, remember to answer all the questions:
- What are you testing?
- What should it do?
- What is the actual output?
- What is the expected output?
- How can the test be reproduced?
When you stop driving your design first, and primarily, through your tests, your eyes will open to much more interesting perspectives on the code. The answer to how can I make it better, is how can I make it clearer, not how can I test it faster or more isolated. - DHH
Testing like the TSA - Thinking Skills Assessment
Should read in “Seven don’ts of testing” topic
Googling does not make you a good developer
nowadays, the most important quality of a developer is ability to learn new things quickly.
It is a pitfall to read everything.
Don’t Destroy Your Dev Team By Growing
9 women and 1 month do not a baby make
Junior engineers also don’t become senior engineers in a vacuum.
If a developer starts feeling too comfortable or too specialized, it’s time to rotate.
Knowing exactly what to code before coding transforms an intellectual and creative process into a mechanical process; in other words, it turns developers into code monkeys.
To summarize, this is wrong (because there is no “there”): Hey driver, how much will it cost to get there? And this is right: Hey driver, how much do you charge per mile, and do you have a map?
RubyConf 2015 - Hacking Spacetime for a Successful Career by Brandon Hays
Vision: Industy/Socienty Connection: People Technical skill: computer
Entrepreneur: Invention & Vision Manager: People & Strategy Technician: Tools & Tactics
# .ssh/config
# use $ssh <hostname> to connect
# Host * //setting for every host
Host <hostname>
HostName <ip>
User <username>
Port <port>
# .ssh/config
#ProxyCommand ssh someserver -W %h:%p
# With the newer versions of openssh-client you can also use the -W option to forward the connection.
#LocalCommand
# Specifies a command to execute on the local machine after successfully connecting to the server
#DynamicForward
# Specifies that a TCP port on the local machine be forwarded over the secure channel, and the application protocol is then used to determine where to connect to from the remote machine.
#IdentityFile
# Specifies a file from which the user's DSA, ECDSA, Ed25519 or RSA authentication identity is read
Host <proxy>
HostName <ip>
User <user>
ProxyCommand ssh <destination> -W %h:%p 2> /dev/null
IdentityFile <ssh_key>
# Client: generate key
$ ssh-keygen -t rsa -b 4096
# Server: put client key
# copy ~/.ssh/id_rsa.pub into ~/.ssh/authorized_keys in server
# (option: server denies passed auth)
$ sudo vim /etc/ssh/sshd_config
# /etc/ssh/sshd_config
PasswordAuthentication no
Match address 192.0.2.0/24
PasswordAuthentication yes
$ ssh -N -D 8080 user@server -p 443
# should using port 443 to avoid blocking port 22
# setting proxy on your browser
# sock host 127.0.0.1 port 8080
# .ssh/config
# use $ssh -N <proxy> -p 443
Host <proxy>
HostName <ip>
User <user>
DynamicForward 8080
$ ssh -o "StrictHostKeyChecking no" user@host
$ brew cask install mactex
figure span to one column on double column page
% In twocolumn mode, the figure* environment stretches over the entire page width
\begin{figure*}
\centering \includegraphics{figure}
\caption{This is a figure caption}
\end{figure*}
\caption{Close-up of a gull\label{fig:gull}}
\usepackage{pdflscape}
\begin{document}
\begin{landscape}
.
.
.
\end{landscape}
\end{document}
# inline equation
$ a + b $ #equation
$$ a + b $$ #equation in new line
# equation
\begin{eqaution}
\end{eqaution}
# equation array
\begin{eqnarray}
\end{eqnarray}
# read more in document
# 2.5 Copy a formula
\STcopy{>x,vy}{formula}
# 3.2 Number formatting and the fp package
# foating point numbers are rounded to 2 digits
\STautoround{2}
use setting from master latex
have own setting not using from master latex
Not abbreviate the author name
author = \{\{\relax World Health Organization\} and others\}
citation treated like one word?
Jim\-inez Mart\-inez, Val\-dez Diaz
# or using \hyphenation to cut all the documents
\hyphenation{Jim-inez Mart-inez, Val-dez Diaz}
Word Cut
using \- or < space >
\input{table.tex}
hidden character
\phantom{-} %hidden character
LaTeX tutorial: How to cite references/paper/articles in Latex
# cite to bibtex references
\usepackage{cite}
\cite{sample1234}
# referecnes from bibtex
\bibliographystyle{IEEEtran}
\bibliography{file_of_bibex}
# build latex + bibtex
$ pdflatex paper.tex
$ bibtex paper # without extension
$ pdflatex paper.tex
$ pdflatex paper.tex