Go to advanced search

by DougieLawson
Fri Feb 22, 2019 9:27 pm
Forum: Java
Topic: Ili9341 java touchscreen
Replies: 1
Views: 50

Re: Ili9341 java touchscreen

Once you get the screen running it's Xwindows that drives it, not Java.

As long as the windowing system works on a full size screen with your Java program there's no reason to assume it won't work on your smaller screen.
by DougieLawson
Fri Feb 22, 2019 9:24 pm
Forum: Java
Topic: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Replies: 11
Views: 634

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

The question should be "why does DebIan never upgrade a release except at at version change?"

Buster will have newer versions of lots of packages.

It's the DebIan way and Raspbian mostly follows their dogma.
by DougieLawson
Thu Feb 21, 2019 11:21 am
Forum: Troubleshooting
Topic: Newly purchased RPI 3B+ wont boot from older image
Replies: 9
Views: 200

Re: Newly purchased RPI 3B+ wont boot from older image

oh boy, that is a lotta messing.... cant believe the peeps at RPI would make it so difficult to upgrade... The NoobS installer / chooser has always been an issue when upgrading. That's why PINN (the NOOBS fork) added so much in the way of additional functions including the ability to upgrade PINN w...
by DougieLawson
Mon Feb 18, 2019 6:57 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 108
Views: 19439

Re: Moving Linux kernel to 4.19

My 3B+ isn't happy. The WiFi network is very flaky. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.23-v7+ ([email protected]) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1202 SMP Mon Feb 18 15:55:19 GMT 2019 [ 0.000000] CPU: ARMv7 Processor [41...
by DougieLawson
Mon Feb 18, 2019 5:32 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 108
Views: 19439

Re: Moving Linux kernel to 4.19

dom wrote:
Mon Feb 18, 2019 4:37 pm
We have now bumped the master branch of rpi-update to 4.19 kernel for wider testing.
I've justed tested that OpenVPN bug and it's fixed in 4.19.23+.
by DougieLawson
Mon Feb 18, 2019 5:11 pm
Forum: Raspbian
Topic: Where is the Raspbian Jesse 8 manifest?
Replies: 5
Views: 174

Re: Where is the Raspbian Jesse 8 manifest?

Nobody knows. Time to sharpen your coding pencil.
by DougieLawson
Mon Feb 18, 2019 3:49 pm
Forum: Advanced users
Topic: Trigger script on sunset and -rise
Replies: 9
Views: 181

Re: Trigger script on sunset and -rise

B.Goode wrote:
Mon Feb 18, 2019 11:42 am
Copy the sunwait executable to a location where it will be found by default by Cron.
That's what I did.
sudo cp /home/pi/sunwait /usr/local/bin
by DougieLawson
Mon Feb 18, 2019 6:01 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Which GPIO pins do I mount my DS3231 to?
Replies: 2
Views: 83

Re: Which GPIO pins do I mount my DS3231 to?

Vin connects to pin#1
GND connects to pin#6
SCA connects to pin#3
SCL connects to pin#5

https://pinout.xyz
by DougieLawson
Sun Feb 17, 2019 9:23 pm
Forum: Beginners
Topic: Running python from rc.local / systemd service - files
Replies: 10
Views: 185

Re: Running python from rc.local / systemd service - files

If you run from a systemd service file add

Code: Select all

[Service]
WorkingDirectory=/home/pi
User=pi
Group=pi
by DougieLawson
Sun Feb 17, 2019 8:40 pm
Forum: Troubleshooting
Topic: PostgreSQL updated now what?
Replies: 5
Views: 140

Re: PostgreSQL updated now what?

Kali isn't supported here and there's very few folks running Postgresql.

You are more likely to get a sane answer at https://forums.kali.org
by DougieLawson
Sun Feb 17, 2019 8:36 pm
Forum: Beginners
Topic: Running python from rc.local / systemd service - files
Replies: 10
Views: 185

Re: Running python from rc.local / systemd service - files

You should use os.rmdir() os.remove() or os.unlink(). They're the python way.

In each case pass the fully qualified filename or directory name. Don't rely on the shell environment as it won't be the same as running under idle/thonny or in a command window.
by DougieLawson
Sun Feb 17, 2019 8:30 pm
Forum: Off topic discussion
Topic: Should the Pi Forum switch to Discourse?
Replies: 24
Views: 739

Re: Should the Pi Forum switch to Discourse?

The real issue with phpBB3 is the truly awful database design that doesn't scale well and lousy SQL that can't be improved by throwing indexing at it.
by DougieLawson
Sun Feb 17, 2019 1:16 pm
Forum: Raspbian
Topic: Where is the Raspbian Jesse 8 manifest?
Replies: 5
Views: 174

Re: Where is the Raspbian Jesse 8 manifest?

What are you doing? Why are you continuing to beat Jessie to death (She's been dead since August 2017)? What's stopping you upgrading to Stretch (or using a fresh install of Stretch)?

Note: in Autumn 2019 Stretch will be replace by Buster and Jessie will be two versions out of date.
by DougieLawson
Sun Feb 17, 2019 1:13 pm
Forum: Python
Topic: Introducing a large quantity of Variables
Replies: 13
Views: 229

Re: Introducing a large quantity of Variables

PeterO wrote:
Sun Feb 17, 2019 12:07 pm
:o It's the same answer, just with more detail and a useful link to a tutorial ! :roll:
Because Peter has more desire to do your Googling for you.
by DougieLawson
Sun Feb 17, 2019 11:21 am
Forum: Python
Topic: Introducing a large quantity of Variables
Replies: 13
Views: 229

Re: Introducing a large quantity of Variables

Code: Select all

hours=[0,0,0,0,0,0,
0,0,0,0,0,0,
0,0,0,0,0,0,
0,0,0,0,0,0]

hours[0] = hours[0]+1
by DougieLawson
Sun Feb 17, 2019 9:59 am
Forum: Advanced users
Topic: Which Rasp for "pro" project?
Replies: 13
Views: 324

Re: Which Rasp for "pro" project?

@ fruitoftheloom I think you're right, this module is perfect for production. The bad point is the motherboard size... You are supposed to design and fabricate your own CM3+ carrier board. The big "motherboard" is intended for development only as it includes all the CM3+ interfaces. When you design...
by DougieLawson
Sat Feb 16, 2019 8:30 pm
Forum: Troubleshooting
Topic: Raspberry Pi won't boot up anymore (Kali)
Replies: 1
Views: 60

Re: Raspberry Pi won't boot up anymore (Kali)

You are much more likely to find someone who can help at: https://forums.kali.org
by DougieLawson
Sat Feb 16, 2019 8:28 pm
Forum: Beginners
Topic: MySQL problem: PHP extension “pdo_mysql” is disabled
Replies: 5
Views: 84

Re: MySQL problem: PHP extension “pdo_mysql” is disabled

Then you'll need to hack at the php config files in /etc/php/7.0
by DougieLawson
Sat Feb 16, 2019 4:27 pm
Forum: Advanced users
Topic: Trigger script on sunset and -rise
Replies: 9
Views: 181

Re: Trigger script on sunset and -rise

Everything in /usr/local/... is locally created.
by DougieLawson
Sat Feb 16, 2019 2:45 pm
Forum: Advanced users
Topic: Trigger script on sunset and -rise
Replies: 9
Views: 181

Re: Trigger script on sunset and -rise

I run sunwait from a crontab twice per day. 45 4 * * * root /usr/local/bin/sunwait civ up +0:00:00 51.200000N 1.130000W ; /usr/local/bin/sunny.sh light; 30 15 * * * root /usr/local/bin/sunwait civ down -0:00:00 51.200000N 1.130000W ; /usr/local/bin/sunny.sh dark; That gets the sunny.sh shell script ...
by DougieLawson
Sat Feb 16, 2019 12:41 pm
Forum: Troubleshooting
Topic: Gpio pins dying on my Rasp 3
Replies: 7
Views: 120

Re: Gpio pins dying on my Rasp 3

If you feed a GPIO with more than 3.3V or 16mA you will burn it out. If you feed it with back EMF from a motor or solenoid it will die.

You should be switching a MOSFET with the GPIO then switching your load with that MOSFET.

Time to buy a new RPi3B+ as your existing one will soon be 100% dead.
by DougieLawson
Sat Feb 16, 2019 12:38 pm
Forum: Troubleshooting
Topic: wacom bamboo ctl-470 has no pressure
Replies: 2
Views: 43

Re: wacom bamboo ctl-470 has no pressure

If you want the kernel headers use rpi-source from https://github.com/notro/rpi-source that will pull the kernel source and headers for your current running kernel.
by DougieLawson
Sat Feb 16, 2019 10:32 am
Forum: Advanced users
Topic: Can not get RPI3B+ to boot from SD after program_gpio_bootmode=1
Replies: 9
Views: 227

Re: Can not get RPI3B+ to boot from SD after program_gpio_bootmode=1

The best guidance I can offer is DON'T DO THIS. It doesn't make enough difference to boot time.

Go to advanced search