-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xml
More file actions
270 lines (217 loc) · 19.5 KB
/
index.xml
File metadata and controls
270 lines (217 loc) · 19.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>雜</title>
<link>https://byronz.github.io/</link>
<description>Recent content on 雜</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<copyright>&copy; 2018 | 朱曉清 | <small>powered by</small> <a href="gohugo.io" target="_blank">Hugo</a></copyright>
<lastBuildDate>Mon, 02 Dec 2019 22:12:43 -0500</lastBuildDate>
<atom:link href="https://byronz.github.io/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Docker Dev</title>
<link>https://byronz.github.io/posts/docker_dev/</link>
<pubDate>Mon, 02 Dec 2019 22:12:43 -0500</pubDate>
<guid>https://byronz.github.io/posts/docker_dev/</guid>
<description> commons installs RUN export DEBIAN_FRONTEND=noninteractive &amp;&amp; \ apt update &amp;&amp; apt install -y --no-install-recommends \ sudo curl iputils-ping gcc make build-essential git vim openssh-client ca-certificates wget curl sudo gnupg vim iputils-ping &amp;&amp; \ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false RUN mkdir -p /root/.ssh &amp;&amp; \ ssh-keygen -A &amp;&amp; \ chmod 0700 /root/.ssh &amp;&amp; \ ssh-keyscan github.com &gt; /root/.ssh/known_hosts chmod 600 /root/.ssh/id_rsa RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' &gt;&gt; /etc/sudoers RUN groupadd --gid 999 docker &amp;&amp; \ useradd -u 1000 -g users -G sudo,docker dev </description>
</item>
<item>
<title>PYCON 2018 Code Quality</title>
<link>https://byronz.github.io/posts/pycon_quality/</link>
<pubDate>Mon, 04 Jun 2018 23:10:13 -0400</pubDate>
<guid>https://byronz.github.io/posts/pycon_quality/</guid>
<description>PYCQA pylint vs flake8 https://code.visualstudio.com/docs/python/linting</description>
</item>
<item>
<title>Init_mac</title>
<link>https://byronz.github.io/posts/init_mac/</link>
<pubDate>Sat, 26 May 2018 00:55:53 -0400</pubDate>
<guid>https://byronz.github.io/posts/init_mac/</guid>
<description>REMIDNER copy your previous terminal history
Set up byronz.github.com ssh-keygen -t rsa -b 4096 -C &quot;byron.zhu.xq@gmail.com&quot; cat ~/.ssh/id_rsa.pub | pbcopy add ssh key in github git clone git@github.com:byronz/blog.git if you have public, need to readd as submodule git rm -f public git submodule add -b master git@github.com:byronz/byronz.github.io.git public cd themes git submodule add -b master git@github.com:mgjohansen/hucore.git hucore install hugo brew install hugo https://gohugo.io/hosting-and-deployment/hosting-on-github/
Python brew install python3 cd /tmp &amp;&amp; curl https://bootstrap.</description>
</item>
<item>
<title>Tech Tips</title>
<link>https://byronz.github.io/posts/tech_tips/</link>
<pubDate>Fri, 20 Apr 2018 17:39:15 -0400</pubDate>
<guid>https://byronz.github.io/posts/tech_tips/</guid>
<description>Mongo console pretty echo DBQuery.prototype._prettyShell = true &gt;&gt; ~/.mongorc.js</description>
</item>
<item>
<title>Riak</title>
<link>https://byronz.github.io/posts/nosql_riak/</link>
<pubDate>Thu, 22 Feb 2018 16:06:02 -0500</pubDate>
<guid>https://byronz.github.io/posts/nosql_riak/</guid>
<description>Riak KV Note: I think the official documentation quality is very poor, a lot of links are 404 and not updated
Query option Riak search via Apache Solr Secondary Index Map Reduce Riak TS CREATE TABLE GeoCheckin ( region VARCHAR NOT NULL, - state VARCHAR NOT NULL, | time TIMESTAMP NOT NULL, | --&gt; Column Definitions weather VARCHAR NOT NULL, | temperature DOUBLE, _ PRIMARY KEY ( (region, state, QUANTUM(time, 15, 'm')), &lt;-- Partition Key =&gt; group data that will be queried together in the same physical part of the cluster region, state, time &lt;-- Local Key =&gt; ) ) Note: Only one quantum function may be specified and it must be the last element of the partition key.</description>
</item>
<item>
<title>Mongo</title>
<link>https://byronz.github.io/posts/nosql_mongo/</link>
<pubDate>Thu, 22 Feb 2018 15:49:36 -0500</pubDate>
<guid>https://byronz.github.io/posts/nosql_mongo/</guid>
<description>Replication Set A replica set in MongoDB is a group of mongod processes that maintain the same data set
A replica set can have only one primary capable of confirming writes with { w: &ldquo;majority&rdquo; } write concern
election new leader takes about 10-30s before, after v3.2 ~2s
Shared Cluster https://docs.mongodb.com/manual/tutorial/deploy-shard-cluster/
shard: Each shard contains a subset of the sharded data. Each shard can be deployed as a replica set.</description>
</item>
<item>
<title>Cassandra</title>
<link>https://byronz.github.io/posts/nosql_cassandra/</link>
<pubDate>Wed, 21 Feb 2018 20:07:32 -0500</pubDate>
<guid>https://byronz.github.io/posts/nosql_cassandra/</guid>
<description>Data Model Map&lt;RowKey, SortedMap&lt;ColumnKey, ColumnValue&gt;&gt;
CREATE KEYSPACE sports WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'datacenter1' : 2}; # you can tune the r/w consistency level with keyspace Availability versus Consistency CREATE TABLE crossfit_gyms_by_city ( country_code text, state_province text, city text, gym_name text, opening_date timestamp, PRIMARY KEY ((country_code, state_province, city), opening_date, gym_name) ) WITH CLUSTERING ORDER BY ( opening_data ASC, gym_name ASC ); Cassandra RDBMS Keyspace Database Column Family Table Partition Key Primary Key Partitioner A partitioner determines how data is distributed across the nodes in the cluster (including replicas).</description>
</item>
<item>
<title>Bai XianYong</title>
<link>https://byronz.github.io/posts/bai/</link>
<pubDate>Mon, 19 Feb 2018 15:33:25 -0500</pubDate>
<guid>https://byronz.github.io/posts/bai/</guid>
<description>遊園驚夢 白先勇 錢夫人到達臺北近郊天母竇公館的時候,竇公館門前兩旁的汽車已經排滿了,大多是官家的黑色小轎車,錢夫人坐的計程車開到門口她便命令司</description>
</item>
<item>
<title>Mac Unicode</title>
<link>https://byronz.github.io/posts/mac/</link>
<pubDate>Thu, 15 Feb 2018 00:43:09 -0500</pubDate>
<guid>https://byronz.github.io/posts/mac/</guid>
<description>Switch to Unicode Hex Input and Type ⌥ +{unicode val}
Tab U+21E5 ⇥ Option U+2325 ⌥ Command U+2318 ⌘ Control U+2303 ⌃ Shift U+21E7 ⇧ Clear U+2327 ⌧ Escape U+238B ⎋ </description>
</item>
<item>
<title>NOSQL DB</title>
<link>https://byronz.github.io/posts/tsdb/</link>
<pubDate>Fri, 09 Feb 2018 18:59:44 -0500</pubDate>
<guid>https://byronz.github.io/posts/tsdb/</guid>
<description>Cassandra Cassandra’s data model consists of keyspaces, column families, keys, and columns.
Data Model Map&lt;RowKey, SortedMap&lt;ColumnKey, ColumnValue&gt;&gt;
CREATE TABLE crossfit_gyms_by_city ( country_code text, state_province text, city text, gym_name text, opening_date timestamp, PRIMARY KEY ((country_code, state_province, city), opening_date, gym_name) ) WITH CLUSTERING ORDER BY ( opening_data ASC, gym_name ASC ); Partitioner A partitioner determines how data is distributed across the nodes in the cluster (including replicas).
Murmur3Partitioner (default): uniformly distributes data across the cluster based on MurmurHash hash values.</description>
</item>
<item>
<title>Docker</title>
<link>https://byronz.github.io/posts/docker/</link>
<pubDate>Thu, 18 Jan 2018 22:48:39 -0500</pubDate>
<guid>https://byronz.github.io/posts/docker/</guid>
<description>Namespaces CGROUP IPC NET NS (MNT) PID USER UTS PID $ ps axul | sort -n -k 2 | head -n 10 USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND UID PPID CPU PRI NI WCHAN root 1 0.0 0.1 4372056 12232 ?? Ss 15Jan18 54:02.49 /sbin/launchd 0 0 0 37 0 - root 38 0.0 0.0 4351128 1756 ?? Ss 15Jan18 0:49.25 /usr/sbin/syslog 0 1 0 4 0 - root 39 0.</description>
</item>
<item>
<title>Mac Command Line Tools</title>
<link>https://byronz.github.io/posts/linux/</link>
<pubDate>Wed, 03 Jan 2018 11:48:54 -0500</pubDate>
<guid>https://byronz.github.io/posts/linux/</guid>
<description>oh my zsh alias gr='grep -Rnif /dev/stdin . &lt;&lt;&lt;' alias tri='tree -I &quot;*.pyc|__pycache__&quot;' alias youtube-dl='/usr/local/Cellar/youtube-dl/2018.01.14/bin/youtube-dl' alias y2mp3='youtube-dl --extract-audio --audio-format mp3 --audio-quality 0' # alias for git alias gs=&quot;git status&quot; alias gsv=&quot;git status -v&quot; alias gaa=&quot;git add -A&quot; alias gcm=&quot;git commit -m&quot; alias gk=&quot;git checkout&quot; alias gd='git diff' alias gdc='git diff --cached' alias tri=&quot;tree -I '*.pyc|__pycache__|__init__.py'&quot; &lt;!-- export JAVA_HOME=$(/usr/libexec/java_home) --&gt; export ANSIBLE_SSH_CONTROL_PATH='/tmp/asb-%%h-%%p-%%r' # agnoster prompt modified ZSH_THEME_GIT_PROMPT_DIRTY='±' function _git_prompt_info() { ref=$(git symbolic-ref HEAD 2&gt; /dev/null) || ref=&quot;➦ $(git show-ref --head -s --abbrev |head -n1 2&gt; /dev/null)&quot; echo &quot;${ref/refs\/heads\// }$(parse_git_dirty)&quot; } function _git_info() { if $(git rev-parse --is-inside-work-tree &gt;/dev/null 2&gt;&amp;1); then local BG_COLOR=green if [[ -n $(parse_git_dirty) ]]; then BG_COLOR=yellow FG_COLOR=black fi if [[ !</description>
</item>
<item>
<title>Go</title>
<link>https://byronz.github.io/posts/go/</link>
<pubDate>Thu, 14 Dec 2017 17:45:54 -0500</pubDate>
<guid>https://byronz.github.io/posts/go/</guid>
<description>Doumentation Go has well balanced the documentation and code by integrating a powerful eco-system within the tool sets. godoc -http=:8888 offline documentation site godoc fmt Fprintf or godoc builtin append quick terminal check comments prefix as document stub, but no specific requirements for parameters and return value, as go document tool will dynamically parse it from the source code Basics Static Types (Built In) builtin pkg bool string int int8</description>
</item>
<item>
<title>Elixir Part I - Playbook</title>
<link>https://byronz.github.io/posts/elixir/</link>
<pubDate>Thu, 30 Nov 2017 17:55:57 -0500</pubDate>
<guid>https://byronz.github.io/posts/elixir/</guid>
<description>https://joearms.github.io/published/2013-05-31-a-week-with-elixir.html
Pattern Matching equal sign = is not an assignment, is a match operator
^ pin operator forces using existing values
Immutable iex(13)&gt; l1 = [1,2,3] [1, 2, 3] iex(14)&gt; l2 = [ l1 | 'a'] [[1, 2, 3], 97] iex(16)&gt; l2 = [ 'a'| l1] ['a', 1, 2, 3] Basics Value Types
iex(23)&gt; 0o3407 1799 iex(24)&gt; 0b111100 60 iex(25)&gt; 0x33ff 13311 iex(28)&gt; :var@2 :var@2 iex(29)&gt; 1..100 1..100 iex&gt; Regex.</description>
</item>
<item>
<title>Ski Resort Clusterring near Montreal</title>
<link>https://byronz.github.io/posts/ski/</link>
<pubDate>Sat, 18 Nov 2017 23:08:20 -0500</pubDate>
<guid>https://byronz.github.io/posts/ski/</guid>
<description>Rational My 3rd ski season in montérégie is coming, and this post uses a very basic machine-learning-unsupervised-clusterring algorithm to show an interesting analysis about how to choose your next ski journey.
Algorithm Quote from wiki page
k-means clustering is a method of vector quantization, originally from signal processing, that is popular for cluster analysis in data mining. k-means clustering aims to partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean, serving as a prototype of the cluster.</description>
</item>
<item>
<title>換胎 tips</title>
<link>https://byronz.github.io/posts/tire/</link>
<pubDate>Tue, 07 Nov 2017 21:40:14 -0500</pubDate>
<guid>https://byronz.github.io/posts/tire/</guid>
<description>自己換胎的好處 省錢 看天氣看心情不需排隊等候,熟練后一套胎大約一小時左右可以完成,實際時間比去店里換要少得多 自己換必須買輪轂,減少扒胎的次數,</description>
</item>
<item>
<title>ML Week4 - Neural Network</title>
<link>https://byronz.github.io/posts/ml4/</link>
<pubDate>Tue, 24 Oct 2017 22:36:04 -0400</pubDate>
<guid>https://byronz.github.io/posts/ml4/</guid>
<description>Brain auditory cortex somatosensory cortex NN Model Neuro.IO
Dentrite =&gt; Axon
input layer &gt; hidden layer (intermediate layer) &gt; output layer
all hidden layer nodes are called &ldquo;activation units&rdquo;
$$a_i^{(j)} = \text{&ldquo;activation&rdquo; of unit $i$ in layer $j$}$$ $$\Theta^{(j)} = \text{matrix of weights controlling function mapping from layer $j$ to layer $j+1$}$$
Forward Propagation using trained parameters $\theta_{n}$ we can predict the output by calculate the output layer value</description>
</item>
<item>
<title>Continuous Delivery</title>
<link>https://byronz.github.io/posts/test/</link>
<pubDate>Sat, 14 Oct 2017 10:36:09 -0400</pubDate>
<guid>https://byronz.github.io/posts/test/</guid>
<description>Release Pipeline Everything starts from a commit, typically for a feature development. This should automatically trigger a build job on our CI server; the unit tests is also included in the job. a. If any automation test needed for the feature, the automation cases can be implemented by tester in parallel. If everything is OK, we can deploy everything in stage, this step is currently manual. Note: the deploying steps</description>
</item>
<item>
<title>詞集</title>
<link>https://byronz.github.io/posts/eng/</link>
<pubDate>Fri, 13 Oct 2017 11:02:14 -0400</pubDate>
<guid>https://byronz.github.io/posts/eng/</guid>
<description>tags: [english] stutter demystify vs elaborate make (a difficult or esoteric subject) clearer and easier to understand. develop or present (a theory, policy, or system) in detail -ent resilient (of a person or animal) able to withstand or recover quickly from difficult conditions (of a substance or object) able to recoil or spring back into shape after bending, stretching, or being compressed. transient lasting only for a short time; impermanent.</description>
</item>
<item>
<title>ML Week2</title>
<link>https://byronz.github.io/posts/ml_w2/</link>
<pubDate>Sun, 08 Oct 2017 20:08:02 -0400</pubDate>
<guid>https://byronz.github.io/posts/ml_w2/</guid>
<description>Multivariate Linear Regression Hypothesis $$ h_\theta(x) = \begin{bmatrix}\theta_0 \hspace{2em} \theta_1 \hspace{2em} &hellip; \hspace{2em} \theta_n \end{bmatrix} \begin{bmatrix}x_0 \newline x_1 \newline \vdots \newline x_n\end{bmatrix} = \theta^T x $$
Gradient Descent Practices
Scaling or normalize the range (e.g. mean normalization) learning rate $\alpha$ Ploynomial Regression typical equations:
$\theta_0x_0 + \theta_1x_1 + \theta_2x_2^2$ $\theta_0x_0 + \theta_1x_1 + \theta_2x_2^2 + \theta_3x_3^3$ $\theta_0x_0 + \theta_1x_1 + \theta_2 \sqrt{x_2}$ Normal Equation if n &gt; 1000, hard to solve the inverse of $(X^TX)^{-1}$</description>
</item>
<item>
<title>ML Week1</title>
<link>https://byronz.github.io/posts/ml/</link>
<pubDate>Fri, 06 Oct 2017 21:58:37 -0400</pubDate>
<guid>https://byronz.github.io/posts/ml/</guid>
<description>Andrew Ng&rsquo;s ML Course Note Diagram Supervised Learning In supervised learning, we are given a data set and already know what our correct output should look like, having the idea that there is a relationship between the input and the output. Supervised learning problems are categorized into &ldquo;regression&rdquo; and &ldquo;classification&rdquo; problems. In a regression problem, we are trying to predict results within a continuous output, meaning that we are trying</description>
</item>
<item>
<title>JWT</title>
<link>https://byronz.github.io/posts/jwt/</link>
<pubDate>Mon, 02 Oct 2017 10:53:53 -0400</pubDate>
<guid>https://byronz.github.io/posts/jwt/</guid>
<description>Structure JJJJ.PPPPPPP.SSSSSSSS
JOSE Payload Signature RFCs JWS JWT Usage Validation Algorithm 7.2. Validating a JWT
When validating a JWT, the following steps are performed. The order of the steps is not significant in cases where there are no dependencies between the inputs and outputs of the steps. If any of the listed steps fail, then the JWT MUST be rejected &ndash; that is, treated by the application as an invalid input.</description>
</item>
<item>
<title>Narcos</title>
<link>https://byronz.github.io/posts/narcos/</link>
<pubDate>Thu, 28 Sep 2017 17:15:20 -0400</pubDate>
<guid>https://byronz.github.io/posts/narcos/</guid>
<description>I just watched 3 seasons of netflix&rsquo;s series Narcos, really enjoyed the south american landscape scene and latino guitar. The script is about 70% Español and 30% English. kingpin - キングピン S3E1 The Kingpin Strategy a person or thing that is essential to the success of an organization or operation. smuggler synonyms: - trafficker - mule paranoid characterized by suspiciousness,</description>
</item>
<item>
<title>So Binoculars, Refractor or Reflector?</title>
<link>https://byronz.github.io/posts/telescope/</link>
<pubDate>Thu, 28 Sep 2017 13:47:27 -0400</pubDate>
<guid>https://byronz.github.io/posts/telescope/</guid>
<description>I was interested to buy my first telescope, and here are my criteria:
portable - I need to transport it to dark site and don&rsquo;t want to spend 1 hour setup everything in the cold dark planertry vs deep dark - this is hard to tell, see moon or saturn will be excited for the first time, but what about the next budget - 200$ - 500$ Optical theory Binoculars Refractor Reflector Designed by Issac Newton in 18xx to solve one common problem in refractor.</description>
</item>
<item>
<title>My blog site setup tips</title>
<link>https://byronz.github.io/posts/notes_hugo/</link>
<pubDate>Thu, 21 Sep 2017 16:10:27 -0400</pubDate>
<guid>https://byronz.github.io/posts/notes_hugo/</guid>
<description>The first mistake you might have about Github Pages is about the subtle difference between User &amp; Org Pages and Project Page. It takes me a while to realize that the first page can only point to the static content in master branch, which you don&rsquo;t have the possiblity of switching to gh-page branch or master/doc (you can do that with project repo though). So you only publish your generated static content in User Page as git submodule.</description>
</item>
</channel>
</rss>