-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·489 lines (358 loc) · 16.4 KB
/
index.html
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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
<!DOCTYPE html>
<html lang="en">
<head>
<title>Carson's Tech Hut</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Carson's Tech Hut Full Atom Feed" />
<script>
/* Javascript code to toggle between adding and removing the
"responsive" class to nav when the user clicks on the icon */
function myFunction() {
var x = document.getElementById("nav-bar");
if (x.className === "nav") {
x.className += " responsive";
} else {
x.className = "nav";
}
}
</script>
</head>
<body>
<div class="navigation pure-menu pure-menu-horizontal">
<div class="nav", id="nav-bar">
<a href="/" class="page-container pure-menu-heading pure-menu-link nav">Carson's Tech Hut</a>
<ul class="pure-menu-list">
<li class="pure-menu-item"><a href="../archives.html" class="pure-menu-link">All posts</a></li>
<li class="pure-menu-item"><a href="../categories.html" class="pure-menu-link">Categories</a></li>
<li class="pure-menu-item"><a href="../tags.html" class="pure-menu-link">Tags</a></li>
</ul>
<a href="javascript:void(0);" class="icon pure-menu-link" onclick="myFunction()">
<i class="fas fa-bars"></i>
</a>
</div>
</div>
<div class="main-container">
<div class="pure-g">
<div class="pure-u-1 pure-u-lg-2-3">
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2020-12-18T20:00:00-07:00">Fri 18 December 2020</abbr>
in
<a href="/category/tutorial.html" class="category">Tutorial</a>
• 113 min read
</div> </div>
<h2><a href="/how-to-migrate-github-issues-to-jira.html" rel="bookmark" title="Permalink to How to migrate GitHub issues to Jira">How to migrate GitHub issues to Jira</a></h2>
<div class="post-content">
<p>A tutorial shows you how to write a script to migrate GitHub issues to Jira.</p>
</div>
<div class="post-footer">
<a href="/how-to-migrate-github-issues-to-jira.html">Read more</a>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2020-12-09T00:00:00-07:00">Wed 09 December 2020</abbr>
in
<a href="/category/django.html" class="category">Django</a>
• 7 min read
</div> </div>
<h2><a href="/display-matplotlib-image-on-html-page-using-django.html" rel="bookmark" title="Permalink to Display matplotlib image on HTML page using Django">Display matplotlib image on HTML page using Django</a></h2>
<div class="post-content">
<p>A lot of times we use matplotlib to plot images and we would like to display them on a
HTML page simply for rendering as PDF for download or just for display.</p>
<p>Fortunately this is possible for django backend, here is an example for plotting a
horizontal barchart in HTML …</p>
</div>
<div class="post-footer">
<a href="/display-matplotlib-image-on-html-page-using-django.html">Read more</a>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2020-12-02T00:00:00-07:00">Wed 02 December 2020</abbr>
in
<a href="/category/linux-system.html" class="category">Linux System</a>
• 2 min read
</div> </div>
<h2><a href="/how-to-fix-manjaro-you-are-unable-to-boot-you-need-to-load-kernel-first.html" rel="bookmark" title="Permalink to How to fix Manjaro you are unable to boot, you need to load kernel first">How to fix Manjaro you are unable to boot, you need to load kernel first</a></h2>
<div class="post-content">
<p>I have a due boot system and one day after I updated my Manjaro system, I got this error:</p>
<p><code>file ‘/boot/vmlinuz-5.7-x86_64’ not found</code></p>
<p><code>you need to load the kernel first.</code></p>
<p>After some research, here I found the solution how to fix it:</p>
<ul>
<li>Make sure internet is connected</li>
<li><code>sudo …</code></li></ul>
</div>
<div class="post-footer">
<a href="/how-to-fix-manjaro-you-are-unable-to-boot-you-need-to-load-kernel-first.html">Read more</a>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2020-04-12T00:00:00-06:00">Sun 12 April 2020</abbr>
in
<a href="/category/tutorial.html" class="category">Tutorial</a>
• 11 min read
</div> </div>
<h2><a href="/how-to-setup-github-blog-via-pelican.html" rel="bookmark" title="Permalink to How to setup Github Blog via Pelican">How to setup Github Blog via Pelican</a></h2>
<div class="post-content">
<p>There are many ways to setup a Github blog, but since I love Python I think it makes sense to use Pelican, which is a Static Site Generator, Powered by Python. </p>
<h2>Set up environment</h2>
<ol>
<li>Create a blog directory for all blog content and styles: <code>mkdir <blogname></code></li>
<li>Go into the blog …</li></ol>
</div>
<div class="post-footer">
<a href="/how-to-setup-github-blog-via-pelican.html">Read more</a>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2019-04-23T00:00:00-06:00">Tue 23 April 2019</abbr>
in
<a href="/category/tutorial.html" class="category">Tutorial</a>
• 14 min read
</div> </div>
<h2><a href="/updating-an-old-site-to-python-3-django-2-wagtail-2.html" rel="bookmark" title="Permalink to Updating an old site to Python 3.*, Django 2.*, Wagtail 2.*">Updating an old site to Python 3.*, Django 2.*, Wagtail 2.*</a></h2>
<div class="post-content">
<h2>0. Useful Links</h2>
<ul>
<li><a href="https://docs.djangoproject.com/en/2.0/releases/2.0/">Django 2.0 release notes | Django documentation | Django</a></li>
<li><a href="http:\docs.wagtail.io\en\v2.0\releases\upgrading.html">Wagtail 2.0 realease notes</a></li>
<li><a href="https://wagtail.io/blog/upgrading-to-wagtail-2/">Upgrading to Wagtail 2.0 | Wagtail CMS</a></li>
<li><a href="https://eldarion.com/blog/2017/12/26/10-tips-upgrading-django-20/">10 Tips for Upgrading to Django 2.0 — Eldarion Blog</a></li>
<li><a href="https://nezhar.com/blog/upgrade-a-django-based-application-from-1-11-to-2-0/">Upgrade a Django based application from 1.11 to 2.0 | nezhar.com</a></li>
<li><a href="https://docs.python.org/3/howto/pyporting.html">Porting Python 2 Code …</a></li></ul>
</div>
<div class="post-footer">
<a href="/updating-an-old-site-to-python-3-django-2-wagtail-2.html">Read more</a>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2018-10-10T00:00:00-06:00">Wed 10 October 2018</abbr>
in
<a href="/category/python-environment.html" class="category">Python Environment</a>
• 10 min read
</div> </div>
<h2><a href="/pipenv-tutorial-the-official-package-control-for-python.html" rel="bookmark" title="Permalink to Pipenv Tutorial - the official package control for python">Pipenv Tutorial - the official package control for python</a></h2>
<div class="post-content">
<h2>Why use Pipenv:</h2>
<ul>
<li>Pipenv is essentially a combination of pip and virtualenv (i.e. makes virtual environment), but with better version control</li>
<li>It solves the version conflict for packages and sub-dependencies</li>
<li>It could automatically install the latest package/dependency that meet all the requirements</li>
<li>It is the new <strong>STANDARD</strong> for …</li></ul>
</div>
<div class="post-footer">
<a href="/pipenv-tutorial-the-official-package-control-for-python.html">Read more</a>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2018-07-10T20:00:00-06:00">Tue 10 July 2018</abbr>
in
<a href="/category/python-tricks.html" class="category">Python Tricks</a>
• 45 min read
</div> </div>
<h2><a href="/work-with-timezone-effectively.html" rel="bookmark" title="Permalink to Work with timezone effectively">Work with timezone effectively</a></h2>
<div class="post-content">
<p>A tutorial shows you how to work with timezone in python.</p>
</div>
<div class="post-footer">
<a href="/work-with-timezone-effectively.html">Read more</a>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2018-07-04T00:00:00-06:00">Wed 04 July 2018</abbr>
in
<a href="/category/python-environment.html" class="category">Python Environment</a>
• 8 min read
</div> </div>
<h2><a href="/setup-virtualenv-for-any-project.html" rel="bookmark" title="Permalink to Setup Virtualenv for Any Project">Setup Virtualenv for Any Project</a></h2>
<div class="post-content">
<ul>
<li>Virtualenv is a very handy tool for creating separate virtual environments for python projects.</li>
<li>It is essential and probably mandatory in many cases to use Virtualenv or Virtualenv-like tools (i.e. Anaconda, Pipenv) to run a python project.</li>
<li>In this tutorial, I'll show you how to create a virtualenv for …</li></ul>
</div>
<div class="post-footer">
<a href="/setup-virtualenv-for-any-project.html">Read more</a>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2018-07-03T00:00:00-06:00">Tue 03 July 2018</abbr>
in
<a href="/category/ide-setup.html" class="category">IDE Setup</a>
• 2 min read
</div> </div>
<h2><a href="/how-to-create-sublime-text-project.html" rel="bookmark" title="Permalink to How to create Sublime Text Project">How to create Sublime Text Project</a></h2>
<div class="post-content">
<ol>
<li>Create a project folder to store all the sublime text project file <ul>
<li>Sublime Text Project file is a build file that must be saved somewhere on the disk. So a good way of doing this is to save the file into a folder something similar to <strong>Sublimetext Project</strong></li>
</ul>
</li>
<li>Open up …</li></ol>
</div>
<div class="post-footer">
<a href="/how-to-create-sublime-text-project.html">Read more</a>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u-3-4 meta-data">
Posted by
<a class="author" href="/author/carson-zhang.html">Carson Zhang</a>
on
<abbr title="2018-06-27T00:00:00-06:00">Wed 27 June 2018</abbr>
in
<a href="/category/tutorial.html" class="category">Tutorial</a>
• 5 min read
</div> </div>
<h2><a href="/install-pdftk-on-unbuntu-1804.html" rel="bookmark" title="Permalink to Install pdftk on unbuntu 18.04">Install pdftk on unbuntu 18.04</a></h2>
<div class="post-content">
<p>PDFTK is a very handy package that handles PDFs. It could open and write to existing PDFs, and a lot of other great things. However, it is missing from the Ubuntu 18 and is very tricky to install on Ubuntu 18 (but works nice and smoothly on Ubuntu 16). This …</p>
</div>
<div class="post-footer">
<a href="/install-pdftk-on-unbuntu-1804.html">Read more</a>
</div>
</div>
<div class="pagination">
<div class="post-meta pure-g">
<div class="pure-u-1-2 left">
</div>
<div class="pure-u-1-2 right">
<a href="/index2.html">More articles</a>
</div>
</div>
</div>
</div>
<div class="pure-u-1 pure-u-lg-1-3">
<div class="right-container">
<div class="right-bar">
<div class="right-head">
About Me
</div>
<div class="tags">
<p>
I'm a senior software developer, passionated with artificial intellgence and
web development.
</p>
</div>
<div class="right-head">
Links
</div>
<div class="tags">
<a href=https://blog.getpelican.com/>Pelican</a>
<a href=https://www.coursera.org/>Coursera</a>
<a href=https://leetcode.com/>Leetcode</a>
</div>
<div class="right-head">
Social
</div>
<div class="tags">
<a title=Github href=https://github.com/zmcddn><i class="fab fa-github fa-2x"></i></a>
<a title=Kaggle href=https://www.kaggle.com/><i class="fab fa-kaggle fa-2x"></i></a>
<a title=Python href=https://www.python.org/><i class="fab fa-python fa-2x"></i></a>
</div>
<div class="right-head">
Categories
</div>
<div class="tags">
<a href="/category/django.html">Django</a>
<a href="/category/ide-setup.html">IDE Setup</a>
<a href="/category/linux-system.html">Linux System</a>
<a href="/category/python-environment.html">Python Environment</a>
<a href="/category/python-tricks.html">Python Tricks</a>
<a href="/category/tutorial.html">Tutorial</a>
</div>
<div class="right-head">
Tags
</div>
<div class="tags">
<a href="/tag/python.html">python</a>
<a href="/tag/github.html">GitHub</a>
<a href="/tag/jira.html">Jira</a>
<a href="/tag/migration.html">migration</a>
<a href="/tag/matplotlib.html">Matplotlib</a>
<a href="/tag/django.html">Django</a>
<a href="/tag/web-development.html">Web development</a>
<a href="/tag/pdf.html">PDF</a>
<a href="/tag/linux.html">Linux</a>
<a href="/tag/arch-linux.html">Arch Linux</a>
<a href="/tag/manjaro.html">Manjaro</a>
<a href="/tag/boot.html">Boot</a>
<a href="/tag/pelican.html">Pelican</a>
<a href="/tag/blog.html">Blog</a>
<a href="/tag/wagtail.html">Wagtail</a>
<a href="/tag/pipenv.html">Pipenv</a>
<a href="/tag/virtualenv.html">Virtualenv</a>
<a href="/tag/setup.html">setup</a>
<a href="/tag/timezone.html">timezone</a>
<a href="/tag/ubuntu.html">Ubuntu</a>
<a href="/tag/sublime-text.html">Sublime Text</a>
<a href="/tag/environment-setup.html">Environment Setup</a>
<a href="/tag/pdftk.html">pdftk</a>
<a href="/tag/anaconda.html">Anaconda</a>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="index-footer">
<div class="footer-wide">
<p><a href="">Carson's Tech Hut</a>© Carson Zhang 2020</p>
</div>
<div class="footer-narrow">
<p><a href="">Carson's Tech Hut</a><br>
© Carson Zhang 2020</p>
</div>
</footer>
<link rel="stylesheet" href="../theme/css/pure-min.css" />
<link rel="stylesheet" href="../theme/css/grids-responsive-min.css" />
<link rel="stylesheet" href="../theme/fontawesome-free-5.13.0-web/css/all.min.css" />
<link rel="stylesheet" href="/theme/css/main.css" />
</body>
</html>