Category: Programming

  • Excel VBA – Can’t find library or project.

    Here is the solution to the puzzling error “Can’t find library or project.” after opening a macro enabled WorkBook. The issue isn’t references or anything like that. Close the WorkBook, don’t need to save changes, and then open the WorkBook up in Safe Mode by holding down the Ctrl key at the same time. This…

  • Updated 2017 PHP code to automatically bid/buy an eBay auction item

    Updated code to automatically bid on an eBay item, I’m currently using it myself if a loop of searched items. Most of the changes are the query strings which is a lot more involved now. For testing use one cent items with free shipping.

  • CloudSight API PHP example

    Here is an example PHP function for the CloudSight API, given there are not many examples online. Simply input your API key and the url which could be either a local or internet file, the function will return the string description of the image.

  • Automatically reboot a TP-LINK TD-W8960N Modem through PHP script

    I recently got a bit fed up of the ADSL2+ speeds I was getting and constant line resyncing. I thought I would set up a script to automatically reboot the modem when sleeping. It turns out that previously it was very simply to reboot TP-LINK modems, but it has got a lot more difficult recently.…

  • PHP code/script to automatically purchase a Buy it Now (BIN) eBay item

    Similar to my previous eBay bidding script, here is PHP code to automatically purchase a BIN item. Note the script fails if immediate PayPal payment is required. Payment still needs to be performed manually. Function takes item number only, so be careful with it. Misc functions below;

  • Export Android contacts contacts2.db to vCard vcf on Windows

    The other day I need to restore some contacts on an Android phone, I had Titanium Backup files, though restoring the contacts through there didn’t seem to work. I searched for a solution but there wasn’t really anything for Windows to restore the contacts so I developed my own VBA script. I will assume you already…

  • Automatically start and run LabVIEW VI

    Here is an AutoIT script and executable that takes a LabVIEW VI path, opens the VI and then runs the VI. Script and download below. Open and Run LabVIEW VI AutoIt Open and Run LabVIEW VI EXE Use as follows;

  • Log solar generated to PVOutput with LabVIEW

    Here is the full LabVIEW code to read a CMS2000 inverter solar generation, including power, voltage and temperature, and then logging it to PVOutput. The data is read from the CMS2000 every 1 second and averaged over 5 minutes, as PVOutput only supports 5 minute intervals. The averaged value gives a better representation of the parameter…

  • Connect to CMS2000 solar inverter with LabVIEW and read power

    After a few weeks of ‘chasing the sun’, finally got something I am happy with, LabVIEW connects to the CMS2000 via serial interface and reads the parameters. Programmed as a state-machine, basic error checking and fail safes. Note, I am using a RS232 to TCP/IP adapter, I am guessing a lot of the peculiarities are due…

  • Updated PHP code to automatically bid/buy an eBay auction item

    This code is now obsolete and has been updated again. Updated code to automatically bid on an eBay item, I’m currently using it myself if a loop of searched items. Most of the changes are improved return status checking. For testing use one cent items with free shipping.