def life(years):
while years > 0:
return life(years-1)
years = 110
life(years)
Nothing fancy, just a personal log with a built in search function so I can recall what is easily forgotten.
Saturday, July 30, 2022
Life in Python Recursive
Sunday, July 10, 2022
Python Fibonacci
fibs = []
for i in range(20):
fibs.append(i) if (i==0) or (i==1) else fibs.append(fibs[i-1] + fibs[i-2])
i += 1
print(fibs)
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181]
Monday, June 6, 2022
Change an Image Background to Transparent
Wednesday, April 27, 2022
Tails OS and Cryptocurrency Wallet
What I want is a cold wallet that is detached from the internet.
Since I am a geek, I do not want to purchase a cold wallet like the ones at https://www.guru99.com/best-crypto-cold-wallets.html
Instead, I would like to create a USB wallet, which turns out to be simply a live OS that has a crypto wallet installed.
List of components:
Once again BalenaEtcher flashes the USB successfully, but the USB is not bootable. Now I must fix the USB drive, so search for "diskpart" on this blog for instructions.
After cleaning and repartitioning using diskpart, I then reformatted the USB drive through Windows with NTFS as the format.
I will now trying creating a bootable USB drive with https://rufus.ie/en/#google_vignette
After Rufus succesfully flashed the USB drive, I held down the [Shift] key and clicked Windows Restart
Voila! Tails booted from the USB drive. Now on to creating persistence and installing a cryptocurrency wallet.
Sunday, April 24, 2022
Kali Linux - Failed to Launch Preferred Application for Terminal Emulator
This fixed it:
sudo apt install xfce4-settings
Install Visual Studio Code on Kali Linux
Delete Linux File with Special Characters in the Name
This is the workaround as executed through the terminal command line.
root@mya55:/etc/apt/sources.list.d# ls
google-chrome.list vscode.list vs.code.list'
root@mya55:/etc/apt/sources.list.d# ls -li
total 8
3933142 -rwxr-xr-x 1 root root 190 Nov 11 14:26 google-chrome.list
3933031 -rw-r--r-- 1 root root 129 Apr 23 18:38 vscode.list
3933030 -rwxr-xr-x 1 root root 0 Apr 24 2022 vscode.list’
root@mya55:/etc/apt/sources.list.d# find . -inum 3933030 -exec rm -v {} \;
removed './vscode.list’'
root@mya55:/etc/apt/sources.list.d# ls
google-chrome.list vscode.list
root@mya55:/etc/apt/sources.list.d#



