From 70baaeb4e78d12c329a03e929fd30d41730ed2b1 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 28 Aug 2022 05:39:44 +0200 Subject: Moved statis assets and converted all CSS to Tailwind --- content/pages/curriculum-vitae.md | 2 +- .../2017-03-07-golang-profiling-simplified.md | 4 +-- ...ng-python-web-applications-with-visual-tools.md | 6 ++--- content/posts/2017-08-11-simple-iot-application.md | 10 ++++---- ...digitalocean-spaces-object-storage-with-fuse.md | 12 ++++----- ...01-03-encoding-binary-data-into-dna-sequence.md | 8 +++--- ...g-sentiment-analysis-for-clickbait-detection.md | 4 +-- .../2020-03-22-simple-sse-based-pubsub-server.md | 8 +++--- content/posts/2020-09-06-esp-and-micropython.md | 2 +- content/posts/2020-09-08-bind-warning-on-login.md | 2 +- .../posts/2021-01-24-replacing-dropbox-with-s3.md | 2 +- content/posts/2021-01-25-goaccess.md | 4 +-- content/posts/2021-06-26-simple-world-clock.md | 6 ++--- ...n-based-riced-up-distribution-for-developers.md | 18 ++++++------- ...021-12-25-running-golang-application-as-pid1.md | 6 ++--- .../2021-12-30-wap-mobile-web-before-the-web.md | 4 +-- .../posts/2022-06-30-trying-out-helix-editor.md | 2 +- ...22-07-05-what-would-dna-sound-if-synthesized.md | 30 +++++++++++----------- .../2022-08-13-algae-spotted-on-river-sava.md | 12 ++++----- 19 files changed, 71 insertions(+), 71 deletions(-) (limited to 'content') diff --git a/content/pages/curriculum-vitae.md b/content/pages/curriculum-vitae.md index a4ba9e8..fe79fb3 100644 --- a/content/pages/curriculum-vitae.md +++ b/content/pages/curriculum-vitae.md @@ -16,7 +16,7 @@ draft: false
-![Picture](/cv/avatar.gif) +![Picture](/assets/cv/avatar.gif)
diff --git a/content/posts/2017-03-07-golang-profiling-simplified.md b/content/posts/2017-03-07-golang-profiling-simplified.md index d784dcc..92ff881 100644 --- a/content/posts/2017-03-07-golang-profiling-simplified.md +++ b/content/posts/2017-03-07-golang-profiling-simplified.md @@ -107,5 +107,5 @@ go tool pprof -pdf ./cpu cpu.pprof > cpu.pdf This will generate PDF document with visualized profile. -- [Memory PDF profile example](/go-profiling/golang-profiling-mem.pdf) -- [CPU PDF profile example](/go-profiling/golang-profiling-cpu.pdf) +- [Memory PDF profile example](/assets/go-profiling/golang-profiling-mem.pdf) +- [CPU PDF profile example](/assets/go-profiling/golang-profiling-cpu.pdf) diff --git a/content/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md b/content/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md index 3fe8a9d..466d838 100644 --- a/content/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md +++ b/content/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md @@ -16,7 +16,7 @@ Before we begin there are some requirements. We will need to: If you are using MacOS you should check out [Profiling Viewer](http://www.profilingviewer.com/) or [MacCallGrind](http://www.maccallgrind.com/). -![KCachegrind](/python-profiling/kcachegrind.png) +![KCachegrind](/assets/python-profiling/kcachegrind.png) We will be dividing this post into two main categories: @@ -135,7 +135,7 @@ $ pyprof2calltree -i awesome_random_number.prof This file can be opened with visualizing tools listed above. In this case we will be using Profilling Viewer under MacOS. You can open image in new tab. As you can see from this example there is hierarchy of execution order of your code. -![Profilling Viewer](/python-profiling/profiling-viewer.png) +![Profilling Viewer](/assets/python-profiling/profiling-viewer.png) > Make sure you convert output of the cProfile output every time you want to refresh and take a look at your possible optimizations because cProfile updates .prof file every time browser hits the function. @@ -158,7 +158,7 @@ $ snakeviz awesome_random_number.prof # shows visualized profile ``` -![SnakeViz](/python-profiling/snakeviz.png) +![SnakeViz](/assets/python-profiling/snakeviz.png) Reddit user [ccharles](https://www.reddit.com/user/ccharles) suggested a better way for installing pip software by targeting user level instead of using sudo. diff --git a/content/posts/2017-08-11-simple-iot-application.md b/content/posts/2017-08-11-simple-iot-application.md index b48f2fb..b34fe6b 100644 --- a/content/posts/2017-08-11-simple-iot-application.md +++ b/content/posts/2017-08-11-simple-iot-application.md @@ -27,7 +27,7 @@ Step 1. and 3. will share the same web application. One route will be dedicated Schema below represents what we will try to achieve and how different parts correlates to each other. -![Overview](/iot-application/simple-iot-application-overview.svg) +![Overview](/assets/iot-application/simple-iot-application-overview.svg) ## Simple Python API @@ -148,11 +148,11 @@ To run this simply go to folder containing python file and run ```python webapp. After testing the service with Restlet Client you should be able to view your data in a database file ```data.db```. -![REST settings example](/iot-application/iot-rest-example.png) +![REST settings example](/assets/iot-application/iot-rest-example.png) You can also check the contents of new database file by using desktop client for SQLite → [DB Browser for SQLite](http://sqlitebrowser.org/). -![SQLite database example](/iot-application/iot-sqlite-db.png) +![SQLite database example](/assets/iot-application/iot-sqlite-db.png) Table structure is as simple as it can be. We have ts (timestamp) and value (value from Arduino). As you can see timestamp is generated on API side. If you would happen to have atomic clock on Arduino it would be then better to generate and send timestamp with the value. This would be particularity useful if we would be collecting sensor data at a higher frequency and then sending this data in bulk to API. @@ -469,9 +469,9 @@ If everything goes well you should be seeing new data-points rendered on chart e If you navigate to ```http://0.0.0.0:5000``` you should see rendered chart as shown on picture below. -![Application output](/iot-application/iot-app-output.png) +![Application output](/assets/iot-application/iot-app-output.png) -Complete application with all the code is available for [download](/iot-application/simple-iot-application.zip). +Complete application with all the code is available for [download](/assets/iot-application/simple-iot-application.zip). ## Conclusion diff --git a/content/posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md b/content/posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md index 65cc7b5..504e659 100644 --- a/content/posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md +++ b/content/posts/2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md @@ -26,13 +26,13 @@ To make this work you will need DigitalOcean account. If you don't have one you Instuctions on how to use SSH keys and how to setup them are available in article [How To Use SSH Keys with DigitalOcean Droplets](https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets). -![DigitalOcean Droplets](/do-fuse/fuse-droplets.png) +![DigitalOcean Droplets](/assets/do-fuse/fuse-droplets.png) After we created Droplet it's time to create new Space. This is done by clicking on a button [Create](https://cloud.digitalocean.com/spaces/new) (right top corner) and selecting Spaces. Choose pronounceable ```Unique name``` because we will use it in examples below. You can either choose Private or Public, it doesn't matter in our case. And you can always change that in the future. When you have created new Space we should [generate Access key](https://cloud.digitalocean.com/settings/api/tokens). This link will guide to the page when you can generate this key. After you create new one, please save provided Key and Secret because Secret will not be shown again. -![DigitalOcean Spaces](/do-fuse/fuse-spaces.png) +![DigitalOcean Spaces](/assets/do-fuse/fuse-spaces.png) Now that we have new Space and Access key we should SSH into our machine. @@ -102,14 +102,14 @@ As I suspected, object size is not really that important. Sadly I don't have the **Here are plotted results** -You can download [raw result here](/do-fuse/copy-benchmarks.tsv). Measurements are in seconds. +You can download [raw result here](/assets/do-fuse/copy-benchmarks.tsv). Measurements are in seconds.