From 52dd381304bf920eeced8985e8ab1d4cb1bc40a4 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 25 Oct 2019 01:49:59 +0200 Subject: Added simple commenting system with Firebase Database integration --- src/curriculum-vitae.md | 2 +- .../encoding-binary-data-into-dna-sequence.md | 2 +- ...ng-python-web-applications-with-visual-tools.md | 8 +-- src/experiments/simple-iot-application.md | 2 +- ...digitalocean-spaces-object-storage-with-fuse.md | 2 +- ...alysis-for-click-bait-detection-in-rss-feeds.md | 2 +- src/files/python-profiling/kcachegrind.png | Bin 0 -> 88486 bytes src/files/python-profiling/profiling-viewer.png | Bin 0 -> 173672 bytes src/files/python-profiling/snakeviz.png | Bin 0 -> 59601 bytes src/index.html | 8 ++- src/notes/golang-profiling-simplified.md | 2 +- src/notes/simplifying-and-reducing-clutter.md | 2 +- .../what-i-ve-learned-developing-ad-server.md | 2 +- src/static/comments.js | 63 +++++++++++++++++++++ src/static/style.css | 40 ++++++++++++- 15 files changed, 117 insertions(+), 18 deletions(-) create mode 100644 src/files/python-profiling/kcachegrind.png create mode 100644 src/files/python-profiling/profiling-viewer.png create mode 100644 src/files/python-profiling/snakeviz.png create mode 100644 src/static/comments.js (limited to 'src') diff --git a/src/curriculum-vitae.md b/src/curriculum-vitae.md index 6900867..acbd83e 100644 --- a/src/curriculum-vitae.md +++ b/src/curriculum-vitae.md @@ -1,6 +1,6 @@ title: Curriculum Vitae date: 2018-01-16 -tags: research +type: page hide: false ---- diff --git a/src/experiments/encoding-binary-data-into-dna-sequence.md b/src/experiments/encoding-binary-data-into-dna-sequence.md index cdff15f..bfcf710 100644 --- a/src/experiments/encoding-binary-data-into-dna-sequence.md +++ b/src/experiments/encoding-binary-data-into-dna-sequence.md @@ -1,7 +1,7 @@ title: Encoding binary data into DNA sequence description: Imagine a world where you could go outside and take a leaf from a tree and put it through your personal DNA sequencer and get data like music, videos or computer programs from it date: 2019-01-03 -tags: experiment +type: post hide: false ---- diff --git a/src/experiments/profiling-python-web-applications-with-visual-tools.md b/src/experiments/profiling-python-web-applications-with-visual-tools.md index 58d85bf..cf7164c 100644 --- a/src/experiments/profiling-python-web-applications-with-visual-tools.md +++ b/src/experiments/profiling-python-web-applications-with-visual-tools.md @@ -1,7 +1,7 @@ title: Profiling Python web applications with visual tools description: Missing link when debugging and profiling python web application date: 2017-04-21 -tags: experiment +type: post hide: false ---- @@ -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](/files/kcachegrind.png) +![KCachegrind](/files/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](/files/profiling-viewer.png) +![Profilling Viewer](/files/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](/files/snakeviz.png) +![SnakeViz](/files/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/src/experiments/simple-iot-application.md b/src/experiments/simple-iot-application.md index 1543e52..c7f59cf 100644 --- a/src/experiments/simple-iot-application.md +++ b/src/experiments/simple-iot-application.md @@ -1,7 +1,7 @@ title: Simple IOT application supported by real-time monitoring and data history description: Develop simple IOT application with Arduino MKR1000 and Python date: 2017-08-11 -tags: experiment +type: post hide: false ---- diff --git a/src/experiments/using-digitalocean-spaces-object-storage-with-fuse.md b/src/experiments/using-digitalocean-spaces-object-storage-with-fuse.md index ab0079f..1d3fe48 100644 --- a/src/experiments/using-digitalocean-spaces-object-storage-with-fuse.md +++ b/src/experiments/using-digitalocean-spaces-object-storage-with-fuse.md @@ -1,7 +1,7 @@ title: Using DigitalOcean Spaces Object Storage with FUSE description: Using DigitalOcean Spaces Object Storage with FUSE date: 2018-01-16 -tags: experiment +type: post hide: false ---- diff --git a/src/experiments/using-sentiment-analysis-for-click-bait-detection-in-rss-feeds.md b/src/experiments/using-sentiment-analysis-for-click-bait-detection-in-rss-feeds.md index 1f9d400..ad0362b 100644 --- a/src/experiments/using-sentiment-analysis-for-click-bait-detection-in-rss-feeds.md +++ b/src/experiments/using-sentiment-analysis-for-click-bait-detection-in-rss-feeds.md @@ -1,7 +1,7 @@ title: Using sentiment analysis for click‑bait detection in RSS feeds description: Using Python with sentiment analysis to detect if titles in RSS feeds are click-bait date: 2019-10-19 -tags: experiment +type: post hide: false ---- diff --git a/src/files/python-profiling/kcachegrind.png b/src/files/python-profiling/kcachegrind.png new file mode 100644 index 0000000..0dc48ab Binary files /dev/null and b/src/files/python-profiling/kcachegrind.png differ diff --git a/src/files/python-profiling/profiling-viewer.png b/src/files/python-profiling/profiling-viewer.png new file mode 100644 index 0000000..a450513 Binary files /dev/null and b/src/files/python-profiling/profiling-viewer.png differ diff --git a/src/files/python-profiling/snakeviz.png b/src/files/python-profiling/snakeviz.png new file mode 100644 index 0000000..5bab395 Binary files /dev/null and b/src/files/python-profiling/snakeviz.png differ diff --git a/src/index.html b/src/index.html index c0767b0..6b987f7 100644 --- a/src/index.html +++ b/src/index.html @@ -2,8 +2,10 @@ @@ -12,7 +14,7 @@