SQL - Fix error "Attempt to fetch logical page in database DataBaseName belongs to object TableName, not to object..."
Run in SQLExpress:
ALTER DATABASE DataBaseName SET SINGLE_USER with ROLLBACK IMMEDIATE
DBCC CheckTable ('dbo.TableName', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE DataBaseName SET MULTI_USER
I recently needed to hide the cursor upon boot in the GUI on a Raspberry Pi running Raspbian. I found the following method which is easy to install and works great.
Install Unclutter and edit the LXDE autostart script:
Turn the cursor Off by adding the following line:
Then you can reboot and cursor will disappear.
I recently purchased a PIR Detector HV-SR501 and here is a simple program to use it in Python with a Raspberry Pi 3.
Let's look at the wiring:
CAUTION: Verify on the PIR sensor's board that it has to be wired as displayed, the pinout on the PIR sensor is, on some models, inverted compared to the picture.
Once wired, below is a Python program that reads from the Raspberry Pi 3's GPIO ping #11 and prints every second if a movement has been detected.
You can change the two resistances on the other side of the PIR sensor using a screw driver to vary the delay and sensibility of the sensor.