Nothing fancy, just a personal log with a built in search function so I can recall what is easily forgotten.
Sunday, December 31, 2023
Oracle VM VirtualBox and Linux Parrot OS
Go to network settings | Adapter 1 attached to NAT
password is "parrotos"
Los Angeles Renegade Repeater 147.435
Output: 147.435 Mhz (103.5 Hz PL)
Input: 146.400 Mhz (103.5 Hz PL)
Saturday, December 30, 2023
Asus Zenfone 2 (ASUS_Z00MD) and Android Fastboot
NOT! Here is how I got it back to working order.
Voila. Now this phone has no Google Play Services and thus no Google Play, but I want that. I code and install my own apps.
One can also root this device following this https://lineageosroms.com/Z00L/
Thursday, December 28, 2023
Wall of Flippers
https://www.timesnownews.com/technology-science/python-project-wall-of-flippers-aims-to-detect-and-address-bluetooth-spam-attacks-article-106327023
Friday, December 22, 2023
Cryptocurrency Back in the Hype Phase
Friday, December 15, 2023
KW6USA 147.4500 MHz Renegade Repeater - Los Angeles
Offet - (1.035)
Speak - 444.005
Hear - 445.040
Speak - 146.415
Hear - 147.450
https://play.google.com/store/apps/details?id=com.s33me.hamsandwich&hl=en_US&gl=US
Thursday, December 14, 2023
Raiders 42 Chargers 0 - Fanduel Odds
Watching inside the Oracle Virtual Machine running Ubuntu. Go to https://reddit1.nflbite.com and then to https://buffstreams.app/. Need to click the link and close the resulting open tab several times before the browser settles on the desired stream.
Sunday, December 10, 2023
Oracle VM VirtualBox - Missing Dependencies Python Core / win32api
Now quite frankly, I may have installed Python from the Microsoft Store and also from https://www.python.org/downloads/, but at this point, I do not want to spend time figuring out which is which and cleaning things up, so I opt to use the directory with the more recent date modified of 12/7/2023
I also see that directory 2 has Python312 and so I will edit the Windows Environment Path variable for User and System by addding the following directories:
Then I open a user level command prompt and run: pip install pywin32
Thursday, December 7, 2023
Verify USB 2.0 or 3.0?
Run and install only "Debugging Tools for Windows"
Double click C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\usbview.exe
Saturday, November 25, 2023
ReCore Definitive Edition on Steam
Found the executable in the folder C:\Program Files (x86)\Steam\steamapps\common\erimia,
right clicked to check "Run this program in compatbility for 'Windows 8'"
and then created a desktop shortcut to replace the one that Steam created.
Next, downloaded and installed VC++ 12.0 from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2013-vc-120
Launched successfully to enjoy graphics and Logitech controller practice.
Monday, October 2, 2023
Verify TOR Browser on Windows.
https://gpg4win.org/download.html
Open command line inside Downloads folder
gpg --auto-key-locate nodefault,wkd --locate-keys torbrowser@torproject.orggpg --output ./tor.keyring --export 0xEF6E286DDA85EA2A4BA7DE684E2C6E8793298290
gpgv --keyring .\tor.keyring torbrowser-install-win64-12.5.6_ALL.exe.asc torbrowser-install-win64-12.5.6_ALL.exe.
Sunday, September 24, 2023
XAMPP - MySQL Load Table with 8000 rows, 1.16 GB
The back up .SQL file seems to be excessively large at 1.16GB, but nevertheless I would like to load it locally on my laptop running the XAMPP server
First I alter the php.ini file so that the back up SQL file can be uploaded through XAMPP's PHPMyAdmin.
Also had to overcome a time limit constraint by editing C:\xampp\phpMyAdmin\config.inc.php with $cfg['ExecTimeLimit'] = 0;
Lastly use the command line to override mySQL settings.
After loading the table, reset mySQL settings
Perhaps rather than all this, maybe I should create and load the table with a batch program outside of PHPMyAdmin.
Sunday, September 17, 2023
Saturday, September 16, 2023
Whistler TRX-1 Digital Scanner
For the past two years, I have been using a linux pc, CubicSDR and a dipole wire antenna to monitor police frequencies in Los Angeles. But since RFK Jr. was scheduled for an appearance about a mile away, I decided to dust off an actual hard wired scanner, which then made me realize that the software inside was probably out of date. Therefore, I downloaded TRX-1Install_3.45.0.700 from https://whistlergroup.com/pages/trx-1-downloads-1
Friday, September 8, 2023
Thursday, September 7, 2023
Android Studio Error: Unable to make field private final java.lang.String java.io.File.path accessible
Unable to make field private final java.lang.String java.io.File.path
accessible: module java.base does not "opens java.io" to unnamed module
Resolved with:
dependencies {
//classpath 'com.android.tools.build:gradle:4.1.2' classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.google.gms:google-services:4.3.15'
classpath("com.android.tools.build:gradle:7.0.0")
}
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
Wednesday, September 6, 2023
Kali Linux Dual Boot on Lenovo Desktop
SigintOS in dual boot keeps failing. Will see if 2013 desktop hardware accepts Kali dual boot
Use Windows Disk Management, to shrink C volume to allow at least 100GB of free space after the Windows partion. I call it D: LinuxI could format it as ext4 and label it D: Linux, but the Linux installer will likely not recognize it anyway and I'll have to set up a / root partion and swap during the Linux install.
I do this anyway: There is now a C: Windows and D: Linux
Download smaller installer boot image from https://www.kali.org/get-kali/#kali-platforms
Create bootable USB with https://rufus.ie/en/ Turn on Lenovo desktop while holding or tapping F1 to access BIOS
In BIOS, disable Secure Boot, disable CSM, change boot priority to UEFI
Insert bootable USB and restart with F2 or F12 keys held down to ensure booting from USB.
With USB booted, select graphical install.
Install in contiguous free space, but installer does not see the ext4 set up earlier.
So select manual install and partition the free space as / and swap
The following is covered in https://www.section.io/engineering-education/setting-up-kali-linux-for-dual-boot/ and here https://www.kali.org/docs/installation/dual-boot-kali-with-linux/:
partition disks, erase disks, write changes to disk, install base system
The manual partition of D: Linux resulted in immediate fail of "Install the base system"
Using partitioning to delete my Linux partitions created with Windows.
Now it is free space
Select partition and select automatic partition
Now "Install the base system" is proceeding with a progress bar
After a long while of progress, the install fails on busybox
Go back and recreate bootable USB with larger "installer-everything" image
Do not select all in one partition but rather select "/home, /temp et. al." option Install the base system Select and install software If fail, abort installation, delete ext4 partitions, reboot. Select automatic partition with one / Select only default tools and top 10 Install the base system Select and install software
Installation complete - success after several fails seems to be due to installing off the larger Kali Linux, selecting fewer tools to install.
But now GRUB does not load. Need to go back into BIOS, disable CSM, enable UEFI boot. When hitting F12 during start up I see Kali option.
Can I live with this?
Also dual boot worked for me a couple years ago on a 2016 laptop. Search this blog for "dual boot"
Immediately install these:
sudo apt install hackrf
sudo apt install realtek-rtl88xxau-dkms
https://www.briansantacruz.me/2019/07/27/how-to-install-alfa-awus1900-on-kali-linux/
Boot from USB
Start desktop machine with F1 to enter BIOS
Under Startup, enable CSM and set Boot Priority to [Legacy first]
Turn off desktop machine and then turn on with F12 to boot SigintOS USB
Adjust Text Entry settings to make English keyboard versus Turkish
Tuesday, September 5, 2023
SigintOS Live USB on Lenovo Desktop
Using Rufus Portable https://rufus.ie/en/, create a bootable USB with persistance
Access Lenovo desktop BIOS by hitting F12 while booting.
Disable Secure Boot, disable CSM, change Boot Priority from Legacy to UEFI
Plug in SigintOS USB and boot while hitting F2 or F12 to point to USB drive
Dual boot SigintOS
Disk Management on Windows desktop: Shrink C to create a D: Linux exFat partition.Right click on C: and D: to access Properties. Turn on "Shared" for each partition.
Turn off Windows and plug in SigintOS USB.
Turn on Windows machine while hitting F12 to point to USB boot.
While in live SigintOS, search "install"
Select option to "Install SigintOS alongside Windows"
Click on "advanced partitioning tool"
Highlight the free Linux partition, format as ext4, reduce size by 4000 and specify / mount point.
Highlight the remaining 4000 MB, format as swap.
Install
Damn, installer crashed.
Sticking with the live USB flashed as DD image and no persistant storage
Monday, August 28, 2023
Hard Reset Password Locked 2012 iPod
This hard reset with iTunes also worked on a locked iPad
Procedure to factory reset a 2012 iPod version 4.2.1, Model: MB528LL:First, make sure iPod is somewhat charged
Start iTunes on PC
Turn off iPod
Hold iPod home button while plugging USB cord into computer
Look for iPod icon in iTunes
On iTunes, click restore iPod
If get pop up message about DFU and restart, shutdown iPod
Restart iPod by holding down power button and home button.
iTunes should recognized the iPod
On iTunes, click restore iPod
Wait while iTunes is "Restoring iPod software...", "Verifying iPod restore...", et. al.
Sunday, August 27, 2023
GNU Radio, HackRF and WiFi Jam
Installed WiFi Analyzer on Android phone. https://play.google.com/store/apps/details?id=com.vrem.wifianalyzer
The app showed the phone to be on WiFi channel 1.
Created GRC graph with channel 1 frequency.
Execute, adjust gain and wait a few seconds.
Android phone knocked off WiFi.
Saturday, August 26, 2023
Server, Virtual Machine and Container
https://www.ibm.com/blog/containers-vs-vms/
Monday, August 21, 2023
Dell Latitude D530 - Install Linux
Attempting to resurrect old laptop with 2GB RAM and 120 GB hard drive
Sunday, August 13, 2023
Simple Python Machine Learing Example
from sklearn.linear_model import LinearRegression
from random import randint
#Training Dataset
TRAIN_SET_LIMIT = 1000
TRAIN_SET_COUNT = 100
TRAIN_INPUT = list()
TRAIN_OUTPUT = list()
for i in range(TRAIN_SET_COUNT):
a = randint(0, TRAIN_SET_LIMIT)
b = randint(0, TRAIN_SET_LIMIT)
c = randint(0, TRAIN_SET_LIMIT)
op = a + (2*b) + (3*c)
TRAIN_INPUT.append([a, b, c])
TRAIN_OUTPUT.append(op)
#Train the Model
predictor = LinearRegression(n_jobs=-1)
predictor.fit(X=TRAIN_INPUT, y=TRAIN_OUTPUT)
#Send test data to the model
X_TEST = [[10, 20, 30]]
outcome = predictor.predict(X=X_TEST)
coefficients = predictor.coef_
print('Outcome : {}\nCoefficients : {}'.format(outcome, coefficients))
Wednesday, August 2, 2023
Linux - Get public IP address
dig -6 TXT +short o-o.myaddr.l.google.com @ns1.google.com
dig +short myip.opendns.com @resolver1.opendns.com
Monday, July 31, 2023
Friday, July 28, 2023
Star Wars Jedi: Fallen Order - not launching
Double Click SwGame-Win64-Shipping
The default is starwarsjedifallenorder, which requires the buggy EA app
Sunday, June 25, 2023
W.A.R. Heads Up Display Opened at Kremlin
Friday, May 26, 2023
Tuesday, May 2, 2023
How I know Google is Watching My App
Is is a personal heads up display for geospatial social networking. Your handle is anonymous and disposable. I use it to mark my travels locally, nationally and virtually.
This is a system generated geotag that indicates that the app was opened at Googleplex.
Sunday, April 30, 2023
Tuesday, April 25, 2023
Tor Browser - Verify Signature on Absolute Linux
Absolute Linux has gpg2 installed so ...
Dell Latitude D520 and Absolute Linux
So far so good, Absolute Linux seems to fit the bill with Firefox preinstalled.
First issue was sound. Opened terminal and ran "pavucontrol" to turn it on.
Monday, April 10, 2023
Thursday, March 30, 2023
Python Brute Force Solution to Euler Project Problem 60
import math
from math import sqrt
def isPrime(n):
prime_flag = 0
if(n > 1):
for i in range(2, int(sqrt(n)) + 1):
if (n % i == 0):
prime_flag = 1
break
if (prime_flag == 0):
return True
else:
return False
else:
return False
# main sequence
concatprime = False
start = 2
for a in range(start, 10000):
if isPrime(a) and concatprime == False:
for b in range(a+1, 10000):
if isPrime(b):
ab = str(a)+str(b)
ba = str(b)+str(a)
if isPrime(int(ab)) and isPrime(int(ba)):
#print(str(a)+","+str(b))
for c in range(b+1, 10000):
if isPrime(c):
ac = str(a)+str(c)
ca = str(c)+str(a)
bc = str(b)+str(c)
cb = str(c)+str(b)
if isPrime(int(ac)) and isPrime(int(ca)) and isPrime(int(bc)) and isPrime(int(cb)):
#print(str(a)+","+str(b)+","+str(c))
for d in range(c+1, 10000):
if isPrime(d):
da = str(d)+str(a)
ad = str(a)+str(d)
db = str(d)+str(b)
bd = str(b)+str(d)
dc = str(d)+str(c)
cd = str(c)+str(d)
if isPrime(int(da)) and isPrime(int(ad)) and isPrime(int(db)) and isPrime(int(bd)) and isPrime(int(dc)) and isPrime(int(cd)):
#print(str(a)+","+str(b)+","+str(c)+","+str(d))
for e in range(d+1, 10000):
if isPrime(e):
ea = str(e)+str(a)
ae = str(a)+str(e)
eb = str(e)+str(b)
be = str(b)+str(e)
ec = str(e)+str(c)
ce = str(c)+str(e)
ed = str(e)+str(d)
de = str(d)+str(e)
if isPrime(int(ea)) and isPrime(int(ae)) and isPrime(int(eb)) and isPrime(int(be)) and isPrime(int(ec)) and isPrime(int(ce)) and isPrime(int(ed)) and isPrime(int(de)):
print(str(a)+","+str(b)+","+str(c)+","+str(d)+","+str(e))
print(a+b+c+d+e)
concatprime = True
#start = 10000
break
Sunday, March 26, 2023
Python - Count Winning Poker Hands in File
import time
start = time.time()
pokerhands = open("p054_poker.txt", "r+")
#pokerhands = open("p054_poker_hand.txt", "r+")
print("File to read: ", pokerhands.name)
# Read single line in file
two_hands = pokerhands.readline().strip()
#---------------- functions -----------
def convertPic(c):
if c == "T":
c = 10
if c == "J":
c = 11
if c == "Q":
c = 12
if c == "K":
c = 13
if c == "A":
c = 14
return c
def stripNums(player):
nums = []
for card in player:
nums.append(int(convertPic(card[0])))
return nums
def stripSuits(player):
suits = []
for card in player:
suits.append(card[1])
return suits
def isFlush(s):
if([s[0]]*len(s) == s):
return True
else:
return False
def isRoyal(nums):
nums.sort()
if (nums == [10, 11, 12, 13, 14]):
return True
else:
return False
def isStraight(nums):
if sorted(nums) == list(range(min(nums), max(nums)+1)) or sorted(nums) == [2,3,4,5,14]:
return True
def lowStraight(nums):
if sorted(nums) == [2, 3, 4, 5, 14]:
return True
def countSimilar(cards):
#see groupcards.py
likecnt = 1
groupings = []
grouped = []
for index in range(0, len(cards)):
if index < 4:
if cards[index] == cards[index+1]:
likecnt+=1
else:
if likecnt > 1:
grouped = [cards[index], likecnt]
groupings.append(grouped)
likecnt = 1
grouped = []
else:
if likecnt > 1:
grouped = [cards[index], likecnt]
groupings.append(grouped)
# no combos
if len(groupings) == 0:
hand = 1
high = max(cards)
# one combo of either pair, three or four
if len(groupings) == 1:
if groupings[0][1] == 4:
hand = 8
high = groupings[0][0]
if groupings[0][1] == 3:
hand = 4
high = groupings[0][0]
if groupings[0][1] == 2:
hand = 2
high = groupings[0][0]
# two combos - two pair or full house
if len(groupings) == 2:
pairs = []
threes = 0
for g in groupings:
if g[1] == 2:
pairs.append(g[0])
if g[1] == 3:
threes = g[0]
# two pairs
if threes == 0:
hand = 3
high = max(pairs)
else:
# full house with high of 3 combo
hand = 7
high = threes
result = [hand, high]
return result
#---------------------
def calcHand(player):
hand = 1
high = 1
nums = stripNums(player)
suits = stripSuits(player)
#check for flush first
if isFlush(suits) == True:
hand = 6
high = max(nums)
if isRoyal(nums) == True:
hand = 10
high = 15
if isStraight(nums) == True:
hand = 9
high = max(nums)
if lowStraight(nums) == True:
hand = 9
nums.remove(14)
high = max(nums)
#fall through to all other possible groupings including none
#scored 1,2,4,3,7,8
if hand == 1 and high == 1:
hand = countSimilar(nums)[0]
high = countSimilar(nums)[1]
return [hand, high]
def nextHigh(player, high):
#get next high if hands identical
nums = stripNums(player)
newnums = [i for i in nums if i != high]
return max(newnums)
# ------ start main
rec_cnt = 0
player1wins = 0
player2wins = 0
while two_hands:
cardarray = two_hands.split(" ")
player1 = cardarray[0:5]
player1.sort()
player1hand = calcHand(player1)[0]
player1high = calcHand(player1)[1]
###################
player2 = cardarray[5:10]
player2.sort()
player2hand = calcHand(player2)[0]
player2high = calcHand(player2)[1]
# compare and count wins
if player1hand > player2hand:
player1wins+=1
else:
if player1hand < player2hand:
player2wins+=1
else:
if player1hand == player2hand:
if player1high > player2high:
player1wins+=1
else:
if player1high < player2high:
player2wins+=1
else:
if player1high == player2high:
if nextHigh(player1, player1high) > nextHigh(player2, player2high):
player1wins+=1
else:
player2wins+=1
############ continue reading file #######
# use readline() to read next line
two_hands = pokerhands.readline().strip()
rec_cnt+=1
end = time.time()
print("execution time : ", (end-start) * 10**3, "ms")
# print scores and close opened file
print("record_cnt = "+str(rec_cnt))
print("player1 wins = "+str(player1wins))
print("player2 wins = "+str(player2wins))
pokerhands.close()
File to read: p054_poker.txt
execution time : 627.8073787689209 ms
record_cnt = 1000
player1 wins = 376
player2 wins = 624
[Program finished]
Friday, March 10, 2023
Saturday, March 4, 2023
Updating Kali NetHunter on Nexus 7 Android Tablet
My last posts regarding Nethunter were back in August and October 2018.
Now I can run "sudo apt install netdiscover". Beats downloading a Google Play network mapping app with ads and other neat stuff.
Wednesday, February 22, 2023
HackRF and the Ceiling Fan
Tuesday, February 21, 2023
Kali Linux: HackRF, CubicSDR and DSDPlus on Dell Laptop with 4GB RAM
sudo dpkg --add-architecture i386
dpkg --print-foreign-architectures
sudo apt update && sudo apt -y full-upgrade
reboot
sudo apt-get install wine32:i386
Create DSDPlus folder
Put all DSD files in that folder (see reference links below)
Open terminal in DSDPlus folder
wine DSDPlus.exe
If get wine: could not load kernel32.dll, status c0000135
then
rm -R ~/.wine
wine DSDPlus.exe
exit
Install SDR software
sudo apt install hackrf
sudo apt install gnuradio
sudo apt install gr-osmosdr
sudo apt install cubicsdr
sudo apt install gqrx-sdr
Start CubicSDR from App menu
wine DSDPlus.exe
pavucontrol
Playback tab is:
CubicSDR Audio Output on [Virtual Sink]
DSDPlus.exe:audio stream... on [Built-in Audio Analog Stereo]
Recording tab is:
DSDPlus.exe ... from [Monitor Virtual_Sink]
Test police frequencies 506.939 or 506.739 MHz
Reference Links
https://techviewleo.com/how-to-install-wine-on-kali-linux/ https://hagensieker.com/2018/04/29/dsd-in-ubuntu-18-04/
Monday, February 20, 2023
Tuesday, February 14, 2023
Color mode was changed from color because of a conflict with another printer setting
Using a Windows 11 PC, I was printing just fine to a WIFI direct printer HP 4520. All of a sudden, the printer would not print color nor could I change Monochrome to Color in the printer options. I would get the message that is the title of this post.
Went back to printing color after I did these things.
Saturday, February 11, 2023
Monday, February 6, 2023
Wednesday, February 1, 2023
WiFi Connect with Android Studio and adb debug
Monday, January 30, 2023
Fallout 4
Retrieve lost companions via the tilde command console
Cait: 00079305
Codsworth: 0001ca7d
Curie: 00102249
Paladin Danse: 0005de4d
Deacon: 00045ac9
Dogmeat: 0001d162
John Hancock: 00022615
Robert MacCready: 0002a8a7
Nick Valentine: 00002f25
Old Longfellow: 02006e5b
Piper: 0002f1f
Porter Gage: 0500a5b1
Preston Garvey: 0001a4d7
Strong: 0003f2bb
X6-88: 0002e210a