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
You try to start Google Chrome, window opens up but content of pages, tool bars...etc are not visible (some black some white) but you can't do anything else than moving the window or closing it.
I tried deinstall/reinstall, reboot, still the same...
Finally there seems to be an issue with GPU parameters for Chrome version > 45.x.
To fix it: start Chrome with parameter --disable-gpu.
Right click on your Chrome shortcut > Properties, at the end of the box called "Target" add a white space and "--disable-gpu", see picture below. Then it works !
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.
Planning a two days trip to Vermont from Montreal on the bike:
- friendly weather... check
- extra battery pack for the phone... check
- pre-cached map on the phone... check
- hotel booked... check
- paper road map, just in case... check
- tire repair kit, just in case... check
- bike "Canadianized"... check
Left in the morning ahead of schedule, beautiful weather. I get to Plage-Desranleau border's, turn the bike off while second in line to pass the CA/US border because a mini-van in front seems to have issues with immigration as it's taking a long time in the US office.
I try to start the bike... Battery's dead ! So close to the US ! Probably the only thing I do not have a backup for !
I try to start it several times, I try to push start it... Nothing works. I decide to turn around and pushed the bike back to Canada through Canadian border office.
I tried to push start the bike several times next to the border, so hard that I dropped the bike and broke a turn signal light, bike is ok though thanks to protection bars.
With some help from a super nice guy (Sasha) and his family to who I asked for help, he went back to his home get cables and went back to boost the battery. Bike starts, I am super happy even though at that point the trip is cancelled, at least I'll be able to go back home, buy a new battery and a new turn signal light.
But it isn't over yet. I thank Sasha an his family for helping me, he leaves. I engage first gear on the bike and... the kick stand protection triggers and stalls the bike ! I forgot the remove the kick stand . FML !
At that point I take a break on the side of the road, good thing the weather was really nice this day. I try to push start the bike again... Does not work. I refuse the help of a friend from Montreal to come and help me since it's more than an hour away from Montreal. Me stubborn ? Maybe a little =)
Asked for help to another local who help me boost the battery again. This time I was on my way back to Montreal for real without stalling.
Road trip #1, postponed.
La Presse's news, McDonald's job offers' website has been hacked: www.lapresse.ca/techno/actualites/201703/31/01-5084192-le-site-dembauche-de-mcdonalds-canada-pirate.php
From Windows XP to lastest Windows 10 affected by the DoubleAgent vulnerability allowing to inject custom DLL into applications even antiviruses: see the full article on The Hacker News and also a link to the Youtube demo:
Very good API for MAC address lookup, free, fast and reliable macvendors.com/
A pretty big flaw has been release under CVE-2016-5195 that allows a privilege escalation attack in the Linux Kernel that has been there since 2007. The conditions are almost impossible to reach in normal operations but some programs have been released to force those conditions by using two threads.
To reproduce it:
1. Download the dirtyc0w.c file from https://github.com/dirtycow/dirtycow.github.io
2. Compile it using gcc for example:
gcc -pthread dirtyc0w.c -o dirtyc0w
3. Use it as follow:
./dirtyc0w <file_to_modify> <new_file_content>
4. Obviously, thanks to Dirty Cow, the <file_to_modify> can be a file on which the user does not have permission to modify, including root files !
The flaw works by writing to memory the new content so you cannot write content longer than the original size. If you attempt to write "123456" to a file containing "456", it will write "123".