Posts

Cytron Heatsink Review for Raspberry Pi4 with Stressberry

Image
The Raspberry Pi4 had some thermal issues in the past and people were advised to add at least a heatsink when running CPU intensive workloads. A firmware update has improved the situation to a great extend, but decided to attach a heatsink with a fan, just to be sure.
So let's see if the heatsink+fan from Cytron is actually doing anything good on the Raspi. So I wanted to gather stats for the following situations No heatsinkHeatsink with fans turned ofHeatsink with fans turned on.And I wanted then to look nice make sure that they also capture the temperature before and after the stress test. That's why I used Stressberry and loosely followed the tutorial from Core Eletronics.
But first things first: Update your system sudo apt update sudo apt full-upgrade
And install Stressberry sudo apt install stress pip3 install stressberry --user Detour #1Should the above command fail with an error similar to the one below, your are missing some packages to be able to build from source …

Powerful Image to PDF Conversion with OCR for free with WSL

Image
I decided to move as much as possible to cloud and I'm quite happy with the decision. Especially the OneDrive mobile app helps with scanning of paper documents. Its free for up to 10 pages and includes  OCR
But what about the tons of images that are actually scans from documents? Sure, converting images to PDF is easy, and there are a lot of tools (usually already included in your favorite OS or browser as a virtual PDF printer). So what's the catch then? Well, encapsulating a image in a PDF does actually not really utilize the strengths of the PDF format which is storing text. And without text, no modern OS will be able to index your files to make your digital archive searchable.
My requirements were relatively simple Run OCR on existing PDF files and save the text in the existing PDF (or replace it)Convert on a image file and convert it to a PDF with embedded text from OCRConvert and merge multiple image files to one PDF with embedded text from OCRRunning the above use cases …

Use Bodmer TFT_eSPI Library with PlatformIO

Image
If you start playing around with TFT on your ESP8266 or ESP32, you will arrive at the excellent TFT_eSPI Library by Bodmer. It's not only magnitudes faster than the Adafruit driver, it's also comes with support for a wide range of display drivers.

Unfortunately it has one catch: The library is not really ready to be included as a library in your projects as it requires adjustments in the library itself. While it's not uncommon to define your settings with #define directives, this library expects you to patch files to configure it. The official way goes like this Locate the library folder (Windows would be Documents\Arduino\libraries\TFT_eSPI) and create your own setup in the library sub folder User_SetupsTo use your configuration, patch the file User_Setup_Select.h to include your configurationThis has obviously some disadvantages. At latest when you wan't to update the library or work with different screens at the same time. A couple of people have highlighted that as i…

Migrating from Arduino IDE to Visual Studio Code to PlatformIO

Image
Like every other beginner on ESP8266 I started with my first steps in the official Arduino IDE. I was impressed by the simplicity and easy to use examples that were build-in to the UI. Also the simple UI made it easy to start in uncharted land, especially for someone that did never develop embedded firmware. The library manager let me install additional libraries to play around with, and it also mostly worked.


Needless to say, I missed a lot of the features that I was used to from more powerful IDE's like IntelliJ or Visual Studio. I think even Visual Basic 6 had a better IntelliSense support than the Arduino IDE. In fact, Arduino IDE has none. Also, the lack of a dependency management (for libraries) makes it really hard to share code between multiple peers, as you have to manually install the correct version of a library in the global libraries folder. Guess what happens if you use different versions?
But overall the Ardunio IDE is a good place to start, and I'm st…

Synology Presto Review

Image
I still run my NAS in Switzerland while I'm living abroad in Singapore. I frequently run backups of for my files where I leverage my Switzerland NAS as an off-side backup location. After all, keeping my NAS in Switzerland is cheaper than the costs for international shipping from Switzerland to Singapore. But it comes with two draw-backs:
Average internet connection speed is still worse in Switzerland compared to other places, especially the upload speedLatency is typically around 370ms, which unfortunately has a huge impact on file transfer speeds. While the first issue can be solved with money, the second is more expensive. During some analysis on the topic, I found that Synology actually came up with an extension called Presto for their DSM. It's based on the somewhat mysterious technology called "SITA" which should solve the issue of high latency transfers.

According to their explanation on YouTube (video below), they are able to use the available bandwidth more ef…

Fixing CrashPlan Upgrade to 4.8.2

Image
I recently got a E-Mail from Crashplan indicating that my NAS is not backing up data for more then 3 days. Since I don't check all the other backup state e-mails, this definitely got my attention

An they weren't wrong. My local installation did not connect to the NAS anymore and the java process was also missing in the Synology's task manager.

Staring the package in the "Package Canter" didn't work, but at least the log was somehow interesting
I 05/02/17 04:30PM Downloading a new version of CrashPlan. I 05/02/17 04:57PM Download of upgrade complete - version 1436674800482. I 05/02/17 04:57PM Installing upgrade - version 1436674800482 I 05/02/17 04:57PM Upgrade installed - version 1436674800482 I 05/02/17 04:58PM CrashPlan stopped, version 4.8.0, GUID XXXXXXXXXXXXXXXXX I 05/06/17 10:16AM Synology extracting upgrade from /var/packages/CrashPlan/target/upgrade/1436674800482_4.jar According to the discussion on the package owners blog post, this seems to…

Synology DS1815+ with Crashplan

Image
I recently bought a very nice new Synology DS1815+ to replace my self-made NAS which was based on a HP Miniserver and OpenMediaVault. Although the performance was no issue, I had to spend too much work in fixing thinks after software upgrades, apt-get this and apt-get that, etc.


So, here we are are: A brand new Synology DS1815+. It comes with
8 bays (extendable to 18 bays with 2 extension-boxes with 6 additional bays each)2 GB RAM (extenable to 16GB)2.4 GHz (Atom C2538)A management UI that helps to run your NAS smoothly A own an existing CrashPlan+ accounts which means I pay $$$ to backup all my data to their datacenter. Fortunately, there is already a Package that helps installing Crashplan on a Synology NAS.
Installation I used the installation guide from https://blog.rylander.io/2016/11/28/install-crashplan-on-synology/ and worked with Mike Tabor's guide when it comes to the windows client installation https://miketabor.com/install-crashplan-synology/. However, installing Java ex…