If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function install() { | |
wget https://apt.llvm.org/llvm.sh | |
chmod u+x llvm.sh | |
sudo ./llvm.sh 17 | |
locate clang-17 | |
clang-17 --version | |
} | |
function uninstall() { | |
sudo rm /etc/apt/sources.list.d/archive_uri-http_apt_llvm_org_*.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .... | |
alias sudo="sudo -A" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Explore: | |
# https://github.com/howardabrams/hamacs/blob/main/README-Linux.org | |
# https://batsov.com/articles/2021/12/19/building-emacs-from-source-with-pgtk/ | |
# https://practical.li/blog/build-emacs-from-source-on-debian-linux/ | |
# https://github.com/konstare/emacs-gcc-pgtk/blob/master/Dockerfile | |
# First determine your gcc version with gcc --version, | |
# then modify libgccjit-12-dev below to the major version number you have! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# please don't run this script as an actual script. it's not remotely error checked. paste command blocks in one by one | |
# and make sure the output looks vaguely sane. | |
# remove this once you've read below! | |
echo "You didn't actually read the instructions, did you?"; exit 1 | |
# first up, `sudo nano /etc/wsl.conf` and add this: | |
[boot] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
"""Script to draw bounding boxes and text from a Tesseract box file. | |
The script takes an image TIFF_FILE, draws the text and bounding boxes | |
of the corresponding BOX_FILE and saves the resulting OUT_FILE. | |
Tesseract box file columns: | |
<symbol> <left> <bottom> <right> <top> <page> |
- Find out where your WoW directory is installed (i.e.
C:\Blizzard\World of Warcraft\
). - Install Git for Windows.
- Download [https://gist.githubusercontent.com/mahmoudimus/24c0d7c57abf8118a67b3bf89f1308ba/raw/48cf40254f65d9f9febef4f2f3264b3c438bab27/Utils.lua.patch] to your
_retail_/Interface/AddOns/!KalielsTracker
folder. - Run
git apply --whitespace=fix Utils.lua.patch
. You can read more about this here: stackoverflow.com/a/40919520/13351
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .... | |
alias sudo="sudo -A" |
(This is a translation of the original article in Japanese by moratorium08.)
(UPDATE (22/3/2019): Added some corrections provided by the original author.)
Writing your own OS to run on a handmade CPU is a pretty ambitious project, but I've managed to get it working pretty well so I'm going to write some notes about how I did it.
NewerOlder