Formatting CODE SAMPLE in Blogger

To display my code in Blogger I use this snippet of CSS in my HTML


<pre style="border: 1px dashed rgb(153, 153, 153); color: black; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; margin: 5px; width: 90%;">    
MY CODE SAMPLE
</pre>

and it looks like that:


     
MY CODE SAMPLE



As an Amazon Associate I earn from qualifying purchases.

Formatting CODE SAMPLE in Blogger

To display my code in Blogger I use this snippet of CSS in my HTML


<pre style="border: 1px dashed rgb(153, 153, 153); color: black; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; margin: 5px; width: 90%;">    
MY CODE SAMPLE
</pre>

and it looks like that:


     
MY CODE SAMPLE



As an Amazon Associate I earn from qualifying purchases.

Raspberry Pi: find IP address and SSH

To find the IP address of your Raspberry Pi:


     

pi@raspberrypi ~ $ sudo ip addr show | grep inet

inet 127.0.0.1/8 scope host lo
inet 1AA.XXX.YYY.ZZZ/24 brd 192.168.1.255 scope global wlan0


Then you can log in from another computer:




    
uki@.. $ ssh pi@1AA.XXX.YYY.ZZZ
pi@1AA.XXX.YYY.ZZZ's password: 
Linux raspberrypi 3.6.11+ .. yada, yada..


As an Amazon Associate I earn from qualifying purchases.

Raspberry Pi: find IP address and SSH

To find the IP address of your Raspberry Pi:


     

pi@raspberrypi ~ $ sudo ip addr show | grep inet

inet 127.0.0.1/8 scope host lo
inet 1AA.XXX.YYY.ZZZ/24 brd 192.168.1.255 scope global wlan0


Then you can log in from another computer:




    
uki@.. $ ssh pi@1AA.XXX.YYY.ZZZ
pi@1AA.XXX.YYY.ZZZ's password:
Linux raspberrypi 3.6.11+ .. yada, yada..


As an Amazon Associate I earn from qualifying purchases.

Changing password on PostgreSQL

When running my Java app I get...

uki@.. $ java -jar ./build/libs/XYZ-1.0.jar 
Vacuum 'gps_points' table...
org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres"


FIX:

uki@.. $ psql -d polygons --user=postgres -c "ALTER USER Postgres WITH PASSWORD 'my_secret';"

ALTER ROLE


As an Amazon Associate I earn from qualifying purchases.

apt quotation..