Media

This forum is for posts related to things like family-friendly books, videos (movies, TV shows, etc.), software, games, sheet music, compressed audio, art, etc. Posting in this forum requires special privileges: this is to prevent this forum from being a hotspot for rule fudging and violations. If your content seems on-topic in multiple locations, either pick the most applicable subforum, or post it here directly. See also, 'Media forum rules'.
Radishrain by Radishrain @ in Software
https://terralang.org

This language looks pretty awesome. Basically, it's a low-level language wrapped in a high-level language (Lua), and it has access to C libraries.

So, you in your code, you have Lua code on the outside, Terra code within special Terra functions, and you can access C within those Terra functions.

It's pretty awesome. It would be great if they also made something like this with Python instead of Lua, with binaries compiled for arm processors (such as for use on Termux or a Raspberry Pi). And, it would be great if they compiled Terra for arm processors, too, and coordinated with Termux, so you could install it with the package manager.
Radishrain by Radishrain @ in Software
Here's an awesome extensible MUD server for Python:

https://github.com/Frimkron/mud-pi

You don't have to use it to make MUDs, of course. It appears that you could use it to easily make text-based, interactive websites with user accounts and stuff (but yeah, telnet's not secure; so, you probably don't want to do that if the information is sensitive).
Radishrain by Radishrain @ in Software
1. Install Termux.
2. On Termux, type `pkg install openssh`.
3. On your Xubuntu desktop open a command-line and type `sudo apt install openssh-server` (if it's not already installed and running).
4. On Termux, type `ssh -Y [Your username]@[Your desktop computer's IP Address]` where your username is the same username you log into your computer normally with.
5. It will prompt you for a password; that's the password that you normally log into your computer with.

Then it should work, and you should be able to use the command-line of your desktop computer from your Android tablet.

Here's an example command one might type for item #4:

`ssh radishrain@192.168.0.3`

To test if your ssh daemon is running properly on your desktop, type one of the following:
* sudo systemctl status ssh
* sudo service ssh status

If you want to SSH into Termux from your desktop, you can do this:

On Termux:
* sshd (to launch the ssh daemon)
* Create a password to use when logging into Termux, on Termux: passwd mypassword
* whoami (to get your username)
* ifconfig (to get your ip address)

From you desktop:
* ssh myTermuxUserName@myIPAddress -p8022

For copying files see this:
* https://www.simplified.guide/ssh/copy-file
Ki
Radishrain by Radishrain @ in Software
ki.growspice.com

https://github.com/kumoshk/ki

Ki is a command-line Python program that assists you in navigating the Linux command-line quickly and efficiently. It should assist with the following tasks:

* Quickly finding and opening files, even if they're in complex directory structures, even if you don't know where they are, even if you don't know the *exact* name. The default setting is to only open one file at a time, but you can make it open all the files with that name if you really want.
* Creating files (in the directory with the most-recently accessed file) that aren't in your current working directory.
* Making a project that resembles an index or glossary wherein each file has a unique name.
* Creating hypertext fiction without a lot of navigation and file-creation overhead.
* Working with encrypted files. (You can passphrase-protect files, open them and such.) This functionality requires GNU Privacy Guard to be installed.

Ki has lots of options, which you can customize. It saves settings for many options.

You can use asterisk wildcard characters when opening files (but not question mark wildcards). So, if you have a file called `my super long and hard to type file.ki` you could just type `ki *super long*` and it should find and open it (unless there's another match that it opens instead). Asterisk wildcards match omitted characters.

One of Ki's features is base directories. Normally, Ki just searches the current working directory and all its subdirectories (recursively). However, if you're in a base directory structure, then Ki will search from the top of the base directory for files, instead of the current working directory. If you're not in a base directory, it'll search from the current working directory (or the default directory, if you have one enabled). You can make any directory a base directory as long as it's not within another base directory structure.

Ki opens most files with Nano, by default. Nano is a command-line text editor. If you're wondering, 'Why Nano?', it's because Nano is pretty nice (compared to every other option, IMO) when you're on an Android tablet using Termux, especially when you're using Ki. Nano has a learning curve, if you're used to GUI-based editors, but it doesn't take that long to learn if you have the information you need; same for multitasking in Termux.

To install Ki, you'll need to download the file called `ki`. On your first run, do `python3 ki -u` and follow the prompts to install it (use `sudo python3 ki -u` if you're not on Termux). Thereafter, you should be able to just type `ki` without manually invoking Python, and it should be in your path.

`xscheme.ki` is an xapps scheme you can optionally install with `ki --xload xsceheme.ki`. An xapps scheme is a scheme of apps used to run files of various extensions.

To learn how to use Ki, do `ki --help`.
Radishrain by Radishrain @ in Video
I was browsing YouTube in the recent past, and was watching a video with an autism theme. I read the comments. People were talking about their attempts at making eye contact, and stuff about that.

Disclaimer: I'm not diagnosed with autism, but I've never been medically evaluated for it, either, and I do have a number of traits that are common in autism. I don't have self-diagnosed autism, but I acknowledge that I could possibly be on the spectrum. I do not consider my neurology to be like that of other people I know (I feel like a new species of human or something--and not a less advanced one). I do like people with autism, though, and I find them interesting. I differ from stereotypically autistic people in a number of ways. Instead of being super literal, I tend to be metaphorical (but I'm more literal than your average person about lots of things, although I'm less literal than them at the same time); I understand and can read general emotions fine (but I know enough to realize emotional intelligence isn't something you just have or don't have; it's something you can continue to improve on, IMO; you don't have to have autism to get better at it). One trait I share with autistic individuals is that I don't like to make eye contact (at least, not with alpha types, super popular people, vociferous emotional people, people who are not satisfied with me, when there's drama, when I don't want to be [incorrectly] psychoanalyzed, when I'm bored, when my working memory is repeatedly exhausted by listening, when it's too bright, when I'm nervous, etc.)

Anyway, I thought about my own awkward experiences trying to make eye contact with people where I wasn't sure if I was looking at them too much (or where I was sure I was looking too much), or if they thought I was looking away too much, or if they sensed how I was feeling, or whatever. Someone in the comments (of the YouTube video) mentioned finding a balance. I decided finding a balance wasn't key. It's still awkward even with the right balance. The problem is, you're (figurative you--not actually you) doing it manually, and it's nerve-wrecking. It's hard to focus on what the people are actually saying when you're looking them in the eye.

So, later, I realized something. It's not about how much you look at them. It's about how you listen. I was listening with my ears/brain, but in situations where it seems awkward, I think what needs to be done is to listen emotionally, or with the heart. You'll note that it's not equally difficult with every person. Autistic people are great, because they don't care if you look at them a terrible lot. It can be more difficult with the people who really want or need the eye contact the most. I think what those people want isn't simply a mental communication pathway, but they speak with their emotions, and it's better if you receive their communication with emotions.

So, rather than stare at them with a deadpan face, listening, and being full of nerves, try to feel love for them as they speak. Try to feel their words, expressions, and body language (instead of thinking/comprehending it). Try to love them. You may find it easier to have automatic eye contact. If you listen with your emotions/heart, you may find that you actually want to look at them.

It should be noted that listening with concern is not the same thing as listening with your heart. The fact that you're listening at all shows that you have concern. Of course, you're probably trying full throttle to be concerned. Don't just try to understand or empathize. Try to listen with your emotions/feelings instead of (not in addition to) your ears (but don't turn your ears off).

Anyway, I don't know that this tip would work for someone with autism, but it worked for me the one time I tried it! :) I'll have to remember to do it more.

Of course, feelings of love aren't necessarily easy to just poof out of nowhere (especially if you happen to have emotional blunting or something), but it does get easier as you cultivate and practice, and improve your physiology (e.g. with nutrition and supplements). It helps if you observe love (and positive emotions), often (yes, TV/movies work).

You might be surprised that I mentioned nutrition and supplements. They're important for things like circulation, brain health, neurotransmitters, hormonal balance, antioxidants, toxin-handling/removal, etc. Those things can impact emotions.

I recommend staying attuned to your sensitivity. Don't do things that desensitize your emotions (e.g. such as consuming media with mature content, playing games where you kill stuff, swatting flies, using sarcasm, exaggerating, using foul language, being irreverent, making fun of stuff, watching too many parodies, name-calling, even if you're not talking about a person, pigeon-holing, judging, etc.) As you become more sensitive (in good ways), you're probably more likely to increase in emotional intelligence, compassion, and other such.

You know, I've discovered that flies are about as easy to catch as they are to swat. Just catch them and put them outside. It works, and it feels a lot better, emotionally (the trick to catching them is moving slowly/gradually). Talk to plants. Say, 'Thank you' to Alexa (don't insult her, or anyone else). Express gratitude. Pray. Let yourself cry when you cut onions. Smell some roses. Care about seemingly preposterous things that people say that matter to them (don't care too much, though, or you might upset them).

autism_
religious_
gratitude_
emotion_
eye_contact
Radishrain by Radishrain @
So, back in the day, I loved making greeting cards with PrintMaster Plus for the Commodore 64. We would print them out on a dot matrix printer (black and white). Modern custom greeting cards are a lot different. I miss PrintMaster Plus, but it's basically back in the 1980s.

So, it hit me today that it would be easy to simulate something like PrintMaster Plus without a computer. I mean, all you need is a proper collection of stencils or stamps, and away you go.

The old PrintMaster Plus didn't use photographs (which are a hallmark of commercial greeting cards and modern custom greeting cards). They didn't have pre-set taglines. They had borders, and stamp-like pictures (not huge ones, and not with scenery and stuff). You could print them on regular paper, and just fold it. Most importantly, it guided you through a wizard, had you pick a border, maybe frames or patterns, the non-photo images, and the text, and whatever else (it didn't just have a list of cards that you picked between and changed the text or added your own photographs).

Anyway, it was fun. Some modern greeting card systems might be cool and fun, too, but they're pretty photograph-centric, and you tend to need special paper to print the stuff on. They don't tend to have cool customizable borders and things, either.

So, I got to thinking and realized that PrintMaster Plus basically looked like something that could be made entirely with stencils (or stamps). So, just get some cool border stencils, and graphic stencils, and alphabet stencils--and away you go. The possibilities are endless. No computer necessary. No printer necessary. You can even make your own frame stencils, border stencils, graphic stencils, and such.

I've always been a fan of stencils and stamps--but I've rarely, if ever, had any.

stencil_
stamp_
greeting_card
homemade_
Radishrain by Radishrain @ in Book
There are various types of books that are each generally targeted at a specific age group. Let's enumerate them here:

• Adult (18+)
• New adult (18 to 30)
• Young adult (12 or 13 to 18)
• Juvenile (0 to 11 or 12)
• Tween (9 to 12)
• Intermediate (8 to 12)
• Middle grade (8 to 12)
• Junior (7 to 8)
• Easy readers (about 4 to 7; for children just starting to read by themselves)
• Picture books

Most of these categories are just publishing constructs/standards, which means publishers use them to target and market their books, in order to make money. Each may have specific requirements or conventions that aren't obvious.
Radishrain by Radishrain @ in Software
Also see:
https://www.growspice.com/A-desktop-user-s-guide-to-Nano-a-command-line-text-editor-td3471.html

Termux is basically a command-line Linux distribution that you can use on Android. You can download it here:
https://f-droid.org/en/packages/com.termux/

You can either download F-Droid and install it through that, or you can download the APK on the same page (the version of your choice). The information herein was tested on Termux 0.106, on Android 10 (but there are newer versions of both Termux and Android).

Here are some very helpful keyboard shortcuts (when you have such as a bluetooth keyboard connected to your Android device--which I highly recommend):

https://wiki.termux.com/wiki/Hardware_Keyboard

(Some important shortcuts to remember currently include ctrl+alt+down/up to switch between Termux instances, and ctrl+alt+c to create a new one. Also, ctrl+alt+r to rename a session, and ctrl+alt+right/left to open/close the sidebar, or drawer, and ctrl+alt+v to paste.)

The drawer is a sidebar that shows you all your sessions by number/name; you can click on a session to navigate to it.

To exit a session (a Termux instance), type exit.

Congratulations! Now you can multitask on Termux on Android!

You can also create a new session with a Termux widget (long press on the Termux icon in Android 10 to find the place where you can create the widget that lets you start new sessions).

I wrote this after finding these incorrect suggestions highly ranked on Google:
* https://github.com/termux/termux-app/issues/106
* https://www.gitmemory.com/issue/termux/termux-app/106/528807387

I also recommend checking out Ki if you're serious about using Termux to turn your Android tablet into a workstation:
https://www.growspice.com/ki-td3550.html
Radishrain by Radishrain @ in Software
wikiweb.growspice.com

This thread is for discussion of the wikiweb Python 3.x modules.

To download it, go here, click on the Code drop-down button and click Download ZIP.
Radishrain by Radishrain @ in Software
See also
https://www.growspice.com/Termux-tricks-td3491.html

So, now that I have an Android device and a bluetooth keyboard for it, I've decided to use Termux (downloaded from the F-Droid appstore). I've been wanting to program, write and stuff on a command-line app for Termux; so, after reviewing my options, I decided Nano was the best place to start. I've already used Nano before for small tasks, but I mostly just used my own GUI-based text editor that I programmed for Linux until now.

Before I tell you more about Nano, let me tell you about the alternatives I've discovered:

• pico
• wordgrinder (This is an actual command-line word processor. It's kind of cool, and similar to nano, although it requires heavy use of the menus for what I would want to do with it.)
• joe (I think this is another word processor,  but I didn't look at it too much.)
• jed
• jove
• Emacs
• Vim

There are a few others. Most really serious command-line gurus like either Emacs or Vim; they have a much bigger learning curve than Nano. Nano is the most similar thing I've found for the command-line to a modern standard GUI-based text editor (and it has some cool features most of those don't).

Anyway, here's a comparison of the shortcuts for doing stuff in a standard GUI-based text editor and Nano:

Standard GUI-based text editor:
• Copy: ctrl+c
• Cut: ctrl+x
• Paste: ctrl+v
• Select all: ctrl+a
• Go to the beginning of the current line: home
• Go to the end of the current line: end
• Go to the beginning of the document: Ctrl+home key
• Go to the end of the document: Ctrl+end key
• Go left one word: Ctrl+left arrow key
• Go right one word: Ctrl+right arrow key
• Go up one paragraph: Ctrl+up arrow key
• Go down one paragraph: Ctrl+down arrow key
• Select from the current position to the beginning of the current line: shift+home
• Select from the current position to the end of the current line: shift+end
• Select from the current position to the beginning of the document: Ctrl+shift+home key
• Select from the current position to the end of the document: Ctrl+shift+end key
• Select to the left one word: Ctrl+shift+left arrow key
• Select to the right one word: Ctrl+shift+right arrow key
• Select up one paragraph: Ctrl+shift+up arrow key
• Select down one paragraph: Ctrl+shift+down arrow key
• Delete previous word: ctrl+backspace
• Delete next word: ctrl+delete
• Find: Ctrl+f
• Find next: Ctrl+g
• Find previous: Ctrl+shift+g
• Replace: Ctrl+h
• Undo: Ctrl+z
• Redo: Ctrl+shift+z
• New tab (new blank unsaved file in another tab): Ctrl+t
• New window: Ctrl+n
• Close tab: Ctrl+w
• Next tab: Ctrl+tab
• Previous tab: Ctrl+shift+tab
• Open file: Ctrl+o
• Save: Ctrl+s
• Save as: Ctrl+shift+s
• PageUp: PgUp
• PageDown: PgDn
• Toggle wordwrap: alt+y
• Jump to line number: ctrl+j

Now here's how you do things in Nano:
• Copy: alt+6
• Cut: ctrl+k
• Paste: ctrl+u (If you're running nano in Termux, Ctrl+Alt+v will paste from the Android clipboard instead of nano's.)
• Select all: no shortcut for this; try Ctrl+end then Ctrl+shift+home then Ctrl+k; you can make a macro to function like select all, though: to do this, try pressing shift+alt+: then ctrl+end then ctrl+shift+home then shift+alt+: (then you can just press alt+; to select all--but you can't have more than one macro to work with at the same time; so, if you make another macro, selecting all with alt+; won't work anymore)
• Go to the beginning of the current line: home
• Go to the end of the current line: end
• Go to the beginning of the document: Ctrl+home key
• Go to the end of the document: Ctrl+end key
• Go left one word: Ctrl+left arrow key
• Go right one word: Ctrl+right arrow key
• Go up one paragraph: Ctrl+up arrow key
• Go down one paragraph: Ctrl+down arrow key
• Select from the current position to the beginning of the current line: shift+home
• Select from the current position to the end of the current line: shift+end
• Select from the current position to the beginning of the document: Ctrl+shift+home key
• Select from the current position to the end of the document: Ctrl+shift+end key
• Select to the left one word: Ctrl+shift+left arrow key
• Select to the right one word: Ctrl+shift+right arrow key
• Select up one paragraph: Ctrl+shift+up arrow key
• Select down one paragraph: Ctrl+shift+down arrow key
• Delete previous word: alt+backspace (or if you have the settings in nanorc below, Ctrl+backspace and Ctrl+h will do it)
• Delete next word: ctrl+delete
• Find: Ctrl+w
• Find backwards: Ctrl+q
• Find next: alt+w; or ctrl+w then enter
• Find previous: alt+q
• Replace: Ctrl+\
• Undo: alt+u
• Redo: alt+e
• New buffer (basically the same thing as a new tab, without a tab bar): Ctrl+t then alt+f; then press enter
• Close current buffer: Ctrl+x
• Next buffer: alt+right
• Previous buffer: alt+left
• Open multiple files, each in a buffer (at nano startup): open them with nano (e.g. nano test.txt test2.txt, or to open all txt files in a folder, nano *.txt)
• Open file (when nano is already open): ctrl+r
• Open a file in a new buffer (when nano is already open): ctrl+r; alt+f (or Esc; f); type the name of the file; press enter.
• Save: Ctrl+s
• Save as: Ctrl+o (warning: if you have something selected, it'll only save what's selected, however)
• PageUp: PgDn
• PageDown: PgUp
• Toggle wordwrap: alt+s
• Jump to line number: ctrl+shift+- (ctrl+_)
• Spellcheck: F12 (You actually need to have a spellchecker installed, and enable it with .nanorc or such.)
• Alt+c: Toggle the statusbar on and off. (If you want line numbers instead, do `set linenumbers` in the nanorc file below. I have them off since they're kind of bright.)

You may want to create the file ~/.nanorc with the following contents, to make some features closer to the modern GUI-based text editor standard:
set tabsize 4
set tabstospaces
set nowrap
set softwrap
set autoindent
set atblanks
set afterends
set zap
#set nonewlines
#set multibuffer
set speller "hunspell -x -c"
set rawsequences
bind ^H chopwordleft main
bind F1 scrollup main
bind F2 scrolldown main

Those bindings to F1 and F2 (you can change them to other F-keys, or del and ins) are to make it so you can scroll more like an e-reader (without having to scroll all the way up and down before the screen moves). You may need to disable F-keys in your terminal settings first.

Also, add this to ~/.bashrc:
echo -ne "\e[3 q" #Blinking underlined
#echo -ne "\e[4 q" #Underlined

If you keep the default block cursor it'll make it seem like you're selecting one more character than you are when you're selecting to the right.

Updating nano:
To get the latest version of nano's source code (because distributions sometimes have old versions of nano), I recommend compiling it manually (I did this on Xubuntu 18.04.5 LTS) if that's the only way to get the latest version.
• To get dependencies, if you're on Ubuntu, type `sudo apt-get build-dep nano` (and maybe uninstall the one that's already there; I did).
• Download the latest version from here: https://www.nano-editor.org/download.php (I did this with version 5.8.)
• Decompress the file
• `./configure`
• `make`
• `sudo make install`
• If you don't restart your command-line, type `bash` to get it to show up in your path.

Some issues with Nano:
• Nano doesn't delete selected text when you type, although delete and backspace will delete selected text if `set zap` above is there. If you want to delete a portion of selected text when `set zap` above isn't enabled, press ctrl+k (which will cut it, and thus delete it; but this will also put it in your clipboard). You can also press alt+delete to delete selected text without putting it on the clipboard, but be careful as it does something else if there's no selected text.
• Note that `set rawsequences` disables mouse support (if you have it enabled, which I don't above). However, it needs to be set if you want ctrl+backspace to delete the word to the left; alternatively, you can make a script that executes nano with --raw for those times when you don't care to use a mouse (don't forget to make it executable with chmod +x):

#!/bin/bash

nano --raw "$@"

Notes:
• Nano has multiple shortcuts for a lot of things (so if you don't like the ones I mentioned above, there may be others).
• This post is about GNU nano, version 5.5 on Termux, compiled options: --disable-libmagic --disable-nls --enable-utf8

Some sources:
https://www.nano-editor.org/dist/latest/nanorc.5.html
https://forums.bunsenlabs.org/viewtopic.php?id=1731
https://gist.github.com/Herteby/148b858a367baf96d38f776234af500a
12345
New Post
feeds Feeds
Feedback, Links, Privacy, Rules, Support, About