2018-11-29

PDOException “could not find driver”

ashley@shop1:/etc$ sudo a2enmod php7.0
Considering dependency mpm_prefork for php7.0:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.0:
Enabling module php7.0.
To activate the new configuration, you need to run:
  systemctl restart apache2
ashley@shop1:/etc$ systemctl restart apache2
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'apache2.service'.
Authenticating as: ashley,,, (ashley)
Password:
==== AUTHENTICATION COMPLETE ===
ashley@shop1:/etc$


Serveral months ago, I performed a distribution upgrade to my debian server at home.
It hosted an RSS aggregator (Tiny Tiny RSS) that I started using after Google dropped Reader.
After the upgrade, I got a PDO Exception error using the web interface for the aggregator. I did some searching at the time but had intended to move the aggregator to a Raspberry-Pi anyways. I left the MySQL (now MariaDB after the distribution upgrade) on the original host and everything worked fine.

Monday, I had need to create an invoice for some work I did for a client. I don't do a lot of side-gig at the moment so I hadn't used the invoicing (Simple Invoices) software for a couple of years. Low and behold, I was getting the same error. This time warranted a little extra effort.
Visited php - PDOException “could not find driver” - Stack Overflow

and invoicing system


Search
Visited How to Switch between Multiple PHP Version on Ubuntu – TecAdmin
7:59 am
•
Details


Search
Visited apt - How to remove php 5.6 - Ask Ubuntu
7:51 am
•
Details

Search
Visited 14.04 - How do I remove PHP 7 Completely? - Ask Ubuntu
7:51 am
•
Details

Search
Visited How to migrate PHP Code between versions 5 - 7 without rewriting ...
7:50 am
•
Details

Search
Searched for how to migrate from php 5 to php 7
7:49 am
•
Details
•
Location info

Search
Visited How to Check PHP Version: 3 Steps (with Pictures) - wikiHow
7:44 am
•
Details


Search
Searched for which version of php do i have
7:44 am
•
Details
•
Location info

Search
Visited PHP: Migrating from PHP 5.6.x to PHP 7.0.x - Manual
7:44 am
•
Details

Search
Visited php - PDOException “could not find driver” - Stack Overflow
7:42 am
•
Details

Search
Searched for php could not find driver
7:42 am
•
Details
•
Location info

Search
Visited The Simple Invoices Open Source Project on Open Hub
7:34 am
•
Details

2018-06-24

ATTiny Low Power Prank

I read this last year near Christmas and knew I would have to build one!

It was several months before I found the project details from the original creator on hackaday.io

Note to self: When it takes a while to find a link to something, copy the link and don't just assume you can find it readily again for the 2nd (or 3rd or 4th time.... though I'm pretty sure I'm up to five at the time of this writing...)

I bought similar material opting for a coin cell holder for the battery, an SMT variant of the ATTiny, and a different form factor for the piezo speaker. Going with the SMT variant necessitated purchasing a socket in order to program the device.


RickRoll Troll
Inspiration (Hackaday)
Implementation (Hackaday.io)

"The Song that Never Ends"
but it's really "The Song that Doesn't End"
https://musescore.com/user/1447551/scores/617656
https://www.youtube.com/watch?v=9ffL573XI50

Multiple devices that communicate with each other and play off of each other (possibly esp8266?)

Let's get a proper domain for this!

I created this blog to document some of the stuff I do (mostly as a reminder to myself but if it helps someone else🤷). For some work I may ...