Category: Programming

  • Working zero config php xdebug 3.1.1 and phpStorm 2021.3 RC

    php 7.4 w/xdebug 3.0 phpStorm 2020.3 zend_extension=”xdebug.so”xdebug.mode=debug;xdebug.file_link_format=”http://localhost:63342/api/file/%f:%l” This now makes xdebug output links that open phpstorm (which is actively listening on port 63342… phpstorm:// wasn’t working for me anymore… [UPDATE 2021-01-14]zend_extension=”xdebug.so”xdebug.mode=debug;xdebug.file_link_format=”phpstorm://open?file=%f&line=%l“ phpStorm 2020.3.1php 8.0.1xdebug 3.0.1 [UPDATE 2021-11-29] Seems like phpstorm/intelliJ have changed the mechanism, and phpstorm:// protocol no longer works. After much troubleshooting I have…

  • Mac OSx High Sierra Homebrew switching between PHP@7.2 and PHP@5.6

    Homebrew recently deprecated the repo https://github.com/Homebrew/homebrew-php as of March 31st, 2018. So, how do you install PHP@5.6, and/or PHP@7.2 (or @7.0, or @7.1, these are untested, but I assume will work). I work on some legacy sites, that require switching between the versions.   So, lets run through this… I’m going to assume you cleaned…

  • Automation…

    Controllers: Raspberry PI for the logic. it’ll have it’s own 802.11n USB adapter   Project Ideas: The promise, is to use an ESP8266, to control a bunch of relays.  Using the Raspberry PI for logic control. DIY 1 plug relay – HRV control. Check to see (via the NEST) if the humidity is high or…

  • Debugging a segfault in PHP

    debugging segfaults is not fun. My low key technique: place a printf(“made it here: %s, %s+ %sn”, __METHOD__, __LINE__, __FILE__); everywhere… put “DIE(‘something’);” to figure out the exact line that fails.  If dies, good.  move it further down.  If it segfaults, move the die statement up.  Until you’ve found the exact line that fails. Figure…

  • little project ideas

    Just found a need to access my home server… however, it’s powered down… how can I overcome this problem in the future.  To answer my own question…  I should go lookup how to send a wake-on-lan command to the box. As well as know what my IP is… project ideas: 1.) Current IP notifier – send…

  • My current extension list for firefox 3.0.1

    Adblock Filterset.G Updater 0.3.1.3 Synchronizes Adblock with Filterset.G Adblock Plus 0.7.5.5 Ads were yesterday! Better Gmail 2 0.6.1 Enhances Gmail with a compilation of user scripts and styles. All scripts copyright their original authors. Click on the script homepage in the Help tab for more information. Canadian English Dictionary 1.1.1 Canadian English (en-CA) spellchecking dictionary…

  • ajax form submits problem

    yesterday was a few hours of frustration. Make sure your your <form> tag is within the same <td> cell element.  Otherwise it’s not XML compliant. You can have the form outside the <table> — but not between it, and a <td> element.

  • Gallery is fixed.

    My old gallery is fixed now… debating on writing a new gallery, or make a plugin for wordpress to have a gallery. How the plugin would work… 1.) Create a keyword, to enable the gallery. 2.) grab uploaded files, that are images via mime type, and display them. 3.) display the images via lightbox2, or…

  • Ubuntu + Mysql setup

    Wow, that was so painless. Original Post Use your favourite means to install mysql, probably apache, php, phpmysqladmin as well… sudo /etc/init.d/mysql start mysqladmin -u root password myPassword where myPassword is your actual password. to test mysql -u root -p enjoy

  • PEAR::DB_DataObject_FormBuilder howto

    Wow, I refactored my calendar web app and used PEAR::DB_DataObject_FormBuilder to make the backend. One thing I have to admit, the documentation for certain PEAR applications lacks dearly. Just like all OSS packages. It’s just the nature of things. The personal support I recieved from irc://efnet.org/pear was great. After a little guidance, the members in…