An accurate way to find out the remaining ink in the cartridges is to print off a diagnostics sheet, which will include the ink remaining in each cartridge as a percentage (listed under LEFT CHUTE/RIGHT CHUTE on the printout).
PHP RFC3339 date for Google Calendar API
$date = new DateTime();
echo $date->format(DATE_RFC3339);
PHP Find end of the month/last day of month
<?php echo date("t-m-Y"); ?>
The ‘t’ option of date returns the number of days in the month.
Windows XP fix firewall that cannot be displayed
Error message:
“Windows firewall settings can not be displayed because the associated service is not running. Do you want to start windows firewall/internet connection sharing service?”
Issues with a corrupted firewall can sometimes be fixed by rebuilding the Windows Management Instrumentation (WMI).
On Windows XP (at least SP2), open cmd and type:
rundll32 wbemupgd, UpgradeRepository
More info here:
http://smallvoid.com/article/winnt-wmi-config.html
Pi – Convert Raw H264 Video Data To MP4
sudo apt-get update sudo apt-get install -y gpac
MP4Box -fps 30 -add myvid.h264 myvid.mp4
Raspberry Pi – Install FTP
Install FTP client:
sudo apt-get install ftp
Set time zone Raspberry Pi
sudo dpkg-reconfigure tzdata
HTTP Compression
Test if a site has compression enabled:
http://www.whatsmyip.org/http-compression-test/
Enable compression by adding the following line to .htaccess:
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript
RTM
Optimum Time Sailing Watch (OS Series 1):
To set the time: press MODE to display the time, hold down CLEAR for two seconds. Press the PROG key to change the hour. (To change from 12 to 24 hour mode press START/STOP). Once hour is correct, press MODE to set minutes, then press MODE again to set month. Press CLEAR to exit/finalise.