Read up on UUIDs
Generated UUIDs
Added personUuid and accesors on GWPerson
chatted in ProjectPharo
Used Fencer objects for real
Used Fuel to save objects to files, and retrieved them
Found where Fuel saves by default
Thought of ways of getting initials
Currently, setInitials uses firstMiddleInitial which assumes that there is a middle name
Amended it to cope with empty middle names
Watched a video on how Smalltalk died
Discovered that UUIDs are much much much much much slower to work with as keys than incremented integers / set objecttype id string + incremented integer.
toto now reboots with vnc running, as per:
https://learn.adafruit.com/adafruit-raspberry-pi-lesson-7-remote-control-with-vnc/running-vncserver-at-startup
Monday, 2 November 2015
How do get rid of invalid characters from ClubKnight data input
String>>findIn:startingAt:matchTable:
Finds any string matching a character in the table
Will be great to do whitelists for chars in pool and competition and Round names.
Finds any string matching a character in the table
Will be great to do whitelists for chars in pool and competition and Round names.
To reboot a Pi from ssh
sudo reboot
To close down the Pi
sudo shutdown
or
sudo halt
To close down the Pi
sudo shutdown
or
sudo halt
SSH from Chromebook
Use the Secure Shell app from the Chrome app store
The native shell (Ctrl-Alt-t) is called crosh. It used to have a ssh app, but no longer does.
If there is a problem with the setup stored for the Chrome's ssh for a given remote host, you can:
From the connection dialog, select an identity from the dropdown and press
the DELETE key. This will remove both the private and public key files from
the HTML5 filesystem
Or you can use the Javascript console from the Secure Shell tab, and then type in:
Progress! Using Gawain Directoire to do stuff.
Today, I've got Gawain to do some real work
I've created a Fencer
Stored the Fencer to disc
Loaded the fencer in from disc
:-)
In a Workspace.
The Fencer had a DoB, given name, family name, and his full name was generated by a method.
Still needed - a method to generate a short name, and a method to generate initials.
a UUID
I've created a Fencer
Stored the Fencer to disc
Loaded the fencer in from disc
:-)
In a Workspace.
The Fencer had a DoB, given name, family name, and his full name was generated by a method.
Still needed - a method to generate a short name, and a method to generate initials.
a UUID
Sunday, 1 November 2015
Mount a MyBook drive partition on toto
tot now works to mount the folder.
First I had to
sudo mkdir /mnt/shares
then
sudo mkdir /mnt/shares/mongoose
then
sudo mount -t cifs //192.168.0.251/mongoose /mnt/shares/mongoose -o username=NasLogin,password=NasLoginPsswd
First I had to
sudo mkdir /mnt/shares
then
sudo mkdir /mnt/shares/mongoose
then
sudo mount -t cifs //192.168.0.251/mongoose /mnt/shares/mongoose -o username=NasLogin,password=NasLoginPsswd
then sudo nano /etc/fstab
and add the line
//192.168.0.251/mongoose <tab> /mnt/shares/mongoose <tab> cifs username=NasLogin,password=NasLoginPsswd<tab>0<tab>0
It's better to have the login name and password stores in a separate credentials file.
It's better to have the login name and password stores in a separate credentials file.
(Re)Setting up toto - ssh and vnc
k - the user login is pi, and now is std +1 on raspberry. root has the same password.
Tried to update the installed Raspbian to the latest version.
Raspbian is now 3660MB , and the memory card only has a 3519MB capacity
Re-installed the 2014 Raspbian onto the card
using SDFormatter, the image files stored in Downloads/Raspberry Pi and Win32DiskImager
(There was a problem getting the SD card or either of the two card readers to work, but eventually they did, and I uncompressed the image to D:\GrlTemp, then wrote it to the card.
I used the Pi-config boot tool to set the Pi name to toto, the pi user password, and to enable SSH.
I installed tightvncserver
std psswd for VNC
the desktop is toto:1
tightvncserver set up a default startup script in /home/pi/.vnc/xstartup
with a log to /home/pi/.vnc/toto:1.log
success with logging in on VNC to toto
Each number for the window e.g. the 3 in "New 'X' desktop is toto:3" should be added to the 5900 base port, to get the port number for the session. port 5900 only works if there is a :0 window.
To make the Maplin wireless mouse responsive on teh Pi, I had to:
add
usbhid.mousepoll=0
to /boot/cmdline.txt
And I had to be superuser to save the amended file - so I had to
sudo nano /boot/cmdline.txt
Putty is now set up on the PC to SSH in to toto. At which point I can type vncserver in at the command prompt, and it will run, at which point I can VNC in to the Pi
VNC still does not work on bootup, but at least I do not ever need to connect toto up to the monitor, even after a reboot
Tried to update the installed Raspbian to the latest version.
Raspbian is now 3660MB , and the memory card only has a 3519MB capacity
Re-installed the 2014 Raspbian onto the card
using SDFormatter, the image files stored in Downloads/Raspberry Pi and Win32DiskImager
(There was a problem getting the SD card or either of the two card readers to work, but eventually they did, and I uncompressed the image to D:\GrlTemp, then wrote it to the card.
I used the Pi-config boot tool to set the Pi name to toto, the pi user password, and to enable SSH.
I installed tightvncserver
std psswd for VNC
the desktop is toto:1
tightvncserver set up a default startup script in /home/pi/.vnc/xstartup
with a log to /home/pi/.vnc/toto:1.log
success with logging in on VNC to toto
Each number for the window e.g. the 3 in "New 'X' desktop is toto:3" should be added to the 5900 base port, to get the port number for the session. port 5900 only works if there is a :0 window.
To make the Maplin wireless mouse responsive on teh Pi, I had to:
add
usbhid.mousepoll=0
to /boot/cmdline.txt
And I had to be superuser to save the amended file - so I had to
sudo nano /boot/cmdline.txt
Putty is now set up on the PC to SSH in to toto. At which point I can type vncserver in at the command prompt, and it will run, at which point I can VNC in to the Pi
VNC still does not work on bootup, but at least I do not ever need to connect toto up to the monitor, even after a reboot
Subscribe to:
Posts (Atom)