Blog: Example

Shipping rates

Canada post shipping rates

https://www.canadapost-postescanada.ca/cpc/en/tools/find-a-rate.page

A book, small 20-30$

A book, large 18-30$

10lbs, $50

TTTThis

Bulk convert mp3s to wavs using ffmpeg (foss)

Put all the mp3s in a folder and open Terminal in that folder and do:

for f in *.mp3; do ffmpeg -i "$f" "$(basename $f).wav"; done

However, this will produce filenames like originalName.mp3.wav. This will cause errors on SD cards, and you might have to reformat the SDcard (it will lock all the files and folders as 'read only'.)

TTTThis

How to use secure-delete in Linux Terminal

srm -rlvz to delete a directory, like ‘srm -rlvz DIRNAME’ (r) recursively (dir and all it's contents), (l) overwrites only 2x not default 38x, (z) then with zeros, and shows progress (v verbose).

The standard way is just

srm -f myfile.txt

(f is a single pass)

or

srm -r -v myfolder/
TTTThis

Manjaro

  • Manjaro VM (after doing install inside the VM, remove the Manjaro iso from the VM's Settings > Storage
  • You need AUR (not preinstalled on Manjaro): To enable AUR on Manjaro, launch Pamac and click on the three vertical dots at the top right-hand corner. Click on Preferences and enter your password, when prompted. Navigate to the Third-Party tab. In the AUR section, enable the Enable AUR Support toggle. Let the system auto-refresh for the changes to incorporate. (takes time maybe?) and check off those under there.
  • from the AUR in package manager, download python2-gimp
TTTThis

Javascript notes

https://www.youtube.com/watch?v=hdI2bqOjy3c

2 ways to put javascript on a page

<scripttttttt>alert('Hello world');</scriptttttttt>
a second file, called main.js
No need for <scripttttttt> tags because it's in the js file, so just put
alert('Hellow world');
Done

To view this in the browser, you want Console (tab) in Developer Tools for whatever browser

You can type javascript in it, like


alert(1)

and it works

VOCABULARY The DOM is the user interface (selecting elements), as separate from the Console where actions are performed.

const = can't be changed (you can change the values of arrays variables etc though), and you have to put a value.

let = like an initial position

TTTThis