How to use simple OCR to read Japanese text from an image.
How to use OCR to read the text from an image in Japanese easily with the command line.
How to use OCR to read the text from an image in Japanese easily with the command line.
How to extract the title and URL from an RSS feed and put them one one line.
How to print text on a billboard in Arma 3. This could be very useful.
How to detect AI written essays easily with an online app.
How you can use a simple tool to detect ChatGPT text.
More useful sed tips.
A very useful AI app that can evaluate business ideas and give feedback.
There is yet another way to print useful code to the terminal in C. This program below shows a very simple way to print text to the terminal and this is not using printf(). simple.c1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include <sys/uio.h> int … Read more
This very nice one-liner will print some information about your mounted drives on Linux and also print a column header to dress up the output. ┌──[[email protected]]─[~/Downloads] └──╼ ╼ $ df -Hla | grep "[0-9]% /" | awk -F, ‘NR==1 {print "Device","Capacity","Free","Usage","Percentage","Mount"} {gsub(/"/,""); print $1,$2,$4}’ | column -t Device Capacity Free Usage Percentage Mount dev 13G … Read more
This is a very cool Linux one-liner, this is using the Tesseract OCR engine to read an image generated by a script and then read the time from it. ┌──[[email protected]]─[~/Pictures/letter] └──╼ ╼ $ curl -s ‘https://securitronlinux.com/api/servers.php’ -o – | tesseract stdin stdout –dpi 150 | grep –color CDT 05:33:13pm Sun Aug 22, 2021 CDT┌──[[email protected]]─[~/Pictures/letter] └──╼ … Read more
The Twin utility for Linux allows a user to open a text-mode environment and then use multiple terminal windows within this simple environment. This could be very useful indeed when working in a Virtual Terminal. This would allow a user to watch multiple terminal windows at once. Download the source code. ┌──[[email protected]]─[~/Documents/twin] └──╼ (master) ╼ … Read more
This is an improved version of my random monster program. This shows how to get the size of a const char array and then select a random entry from the array. monsters.c1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 … Read more
Using the grep utility to search through source code can take a long time when you are searching for certain text. But this can be made easier if you use grep. The command below: grep -rn –include "*.*" "winlogon" .grep -rn –include "*.*" "winlogon" . Will search recursively through a source code tree and find … Read more
Finding files in your home directory is very easy. The command below will search inside all files in your home directory and find all files that contain the text “linux”. find . -type f -exec grep -niH linux ‘{}’ ‘;’find . -type f -exec grep -niH linux ‘{}’ ‘;’ This is a good example of … Read more
Extracting text from a website can be hard to do, but there are easier ways to get around this. The curl utility is used to view the contents of a website in the terminal. This is part of the solution. But we need to filter the output for a particular DIV layer. That is where … Read more
The grep utility is very useful for searching for text in files on a Linux system. It is possible to search for text or files recursively. This is very easy to do. This example is how to search for a text string recursively with grep. I have double quotes in the query, so I have … Read more
The grep utility is very useful when searching for text in files. This can be used recursively to find matching files. This tip will return the full path to all files containing the text you are looking for. 4.4 Thu Apr 23 jason@Yog-Sothoth 1: $ grep -r -H "noclip"4.4 Thu Apr 23 jason@Yog-Sothoth 1: $ … Read more
The sed command can be used to reverse text. This is a very interesting feature. Provide a text string, and it will be reversed. jason@jason-Virtual-Machine:~$ sed ‘/\n/!G;s/\(.\)\(.*\n\)/&\2\1/;//D;s/./Hello. /’ <<< ‘This is a long sentence in reverse. This is a lot of fun.’ Hello. .nuf fo tol a si sihT .esrever ni ecnetnes gnol a si … Read more
Windows has quite a few useful utilities for searching text. The findstr utility allows searching through a folder full of text files for a certain string. Here is an example. >findstr /S /R "money_quest_update" *.*>findstr /S /R "money_quest_update" *.* And this is how to search for text strings in a folder. E:\shadowofchernobyl\gamedata>findstr /S /R "money_quest_update" … Read more
I have a text file containing this string. deusexmachina:Documents jason$ cat out Darwin deusexmachina.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64deusexmachina:Documents jason$ cat out Darwin deusexmachina.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64 And I want to replace one instance of the word … Read more