I’m trying to get my head around the electronics I have been building recently. I have put together a web page which I can use to compare the implementations of the brightness and darkness detectors from the Maxitronix 20in1 projects I have built lately: Brightness and Darkness.
Tag Archives: comparison
PHP type comparison tables and tokens
This is handy: PHP type comparison tables.
And this is interesting: List of Parser Tokens.
Time for Next-Gen Codecs to Dethrone JPEG
In Time for Next-Gen Codecs to Dethrone JPEG various graphical formats are compared and contrasted.
MySQL Engines: MyISAM vs. InnoDB
On my TODO list: MySQL Engines: MyISAM vs. InnoDB.
To use mysqli or PDO?
I’m trying to make my mind up about whether I should be using mysqli or PDO for a project I’m just starting and I’ve found a few relevant articles:
- PDO vs. MySQLi: Which Should You Use?
- mysqli or PDO – what are the pros and cons?
- When to use MySQL, MySQLi, or PDO in PHP
- Should I use mysql, mysqli or PDO?
- Why you Should be using PHP’s PDO for Database Access
- Not Convinced PDO is Everything It’s Hyped Up to Be
- PHP Driver: MySQL vs MySQLi vs PDO MySQL
- PHP mysqli overview
- The diffrence beteen PHP’s PDO bindParam & bindValue
- PHP, PDO, MYSQLI opinions please
And based on all of that I think I’ve decided to use PDO.
Don’t use memcmp to compare structs or classes
Structs and classes can be laid out with padding between the data members for alignment purposes, and this padding doesn’t get initialised unless you specifically zero it out yourself. So if you’re using memcmp and comparing memory at pointers to structs you might have a problem if you’re expecting structs with equal data members to always be equal.