Recently I've was researching online different topics when I found out about Amazon KPD-- Kindle Direct Publishing
and it struck me, this might be a truly awesome idea, why don't I take my handbooks and turn then into .epub or .doc formats, should be simple enough.
Well of course, I was wrong, it's simple to do but the way GitHub stores it's information and the way I've structured
the RaspberryPiHandbook wiki has left me with +12 .md files
that should go into 1 .docx document.
You can do it manually, but one thing I hate most is repetitive, boring, manual work.
I simply don't have the patience and it drives me nuts.
Good thing I know how to code and you can literally find just about anything online. A few searches and BAM!
the perfect library, exactly what I was looking for, pandoc.
This tutorial is for Mac(s), but process should be the same for Linux distros.
Install pandoc
brew install pandoc
Besides this library there are no other prerequisites that need to be installed, but before we can run the script
we have to make it executable.
vim convert_to_docx_pwd.sh
#!/bin/bash
# Step 1: List all .md files in the current directory
md_files=$(find "$(pwd)" -type f -name "*.md")
# Step 2: Create .docx counterparts for each .md file
for md_file in $md_files; do
docx_file="${md_file%.md}.docx"
touch "$docx_file"
done
# Step 3: Convert .md files to .docx
for md_file in $md_files; do
docx_file="${md_file%.md}.docx"
pandoc -s "$md_file" -o "$docx_file"
done
echo "Conversion completed."
To exit vim and save changes to the file, you can follow these steps:
Press the Esc key to ensure you're in normal mode (not in insert or command-line mode).
Type :w and press Enter. This command will save the changes to the current file.
Type :q and press Enter. This command will quit Vim.
If you want to save changes and quit in one command, you can use :wq instead of :w and :q.
If you made changes but want to quit without saving, you can use :q! to force quit without saving.
Now to make the file executable:
chmod 755 convert_to_docx_pwd.sh
Handbooks
ML models for User Recognition using Keystroke Dynamics
The keystroke dynamics that are used in this article’s machine learning models for user recognition are behavioral biometrics. Keystroke dynamics uses the distinctive way that each person types to confirm their identity. This is accomplished by analyzing the 2 keystroke events on Key-Press and Key-Release — that make up a keystroke on computer keyboards to extract typing patterns. The article will examine how these patterns can be applied to create 3 precise machine learning models for user recognition.
Keystroke Dynamics — Predicting the User — Lambda App
The keystroke dynamics that are used in this article’s machine learning models for user recognition are behavioral biometrics. Keystroke dynamics uses the distinctive way that each person types to confirm their identity. This is accomplished by analyzing the 2 keystroke events on Key-Press and Key-Release — that make up a keystroke on computer keyboards to extract typing patterns. The article will examine how these ML Models can be used in real-life situations to predict an user.
Unlock the full potential of your Raspberry Pi 4B as I guide you through transforming it into a versatile coding machine or even a web server. In this concise handbook, I'll punctually and minimalistically outline the steps to install Ubuntu Desktop, essential software, packages, and applications, while also exploring fine-tuning options. Get ready to unleash the power of your Raspberry Pi!
Discover the power of Pi-hole, your ultimate tool for reclaiming control over your internet browsing experience. In this comprehensive handbook, I'll take you through each step of the process, from understanding the basics to setting up your very own Pi-hole ad blocker.
In this tutorial, I'll show you how to create a Twitter bot that can intelligently reply to mentions. Whether you're a developer looking to explore the possibilities of automation or just curious about Twitter bots, I've got you covered.