Category: web

  • …losing a half day of my life… and I’m running out of half days.

    This line did it: $ENV{‘PERL_LWP_SSL_VERIFY_HOSTNAME’} = 0; Net::Nessus::XMLRPC, which calls LWP::UserAgent, didn’t emit any hints why something that had been working for many months suddenly doesn’t when I am forced to port to a new system… same OS, how could it go wrong? Turns out LWP changed the default behavior that had been around forever –…

  • jesus fuxing christ

    Some tool at firefox, which I’ve started using more with more web dev (<3 firebug), decided it’d be a good idea to switch windows if you type in a URL that is already open.   Unbelievable that they think this is good UI practice (switching focus invisibly to another fucking monitor is progress?)  And having no…

  • restoring mysql tables….

    Note to self… use this perl program+backup…. http://blog.tsheets.com/2008/tips-tricks/extract-a-single-table-from-a-mysqldump-file.html And since things break over time… the program.  Not mine, use at your own peril, etc… just don’t ask why I needed it…. extract_sql Attachments extract_sql (ERROR)

  • and now… custom fields

    Useful little things.  Beat on that old perl script and added support… a few lines of code, a lot of beating my head against the wall, but I didn’t see any other perl solutions. [attachments] Attachments wordpress-upload-post (ERROR)

  • XML visualization done right

    5 lines… display arbitrary XML trees on a web page… nice.   After fighting with so many others, a breath of fresh air. <link rel=’stylesheet’ type=’text/css’ href=’xmltree.css’ /> <script src=’https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js’></script> <script src=’xmltree.js’></script> <script>$(function() { new XMLTree({fpath: ‘/ness.xml’, container: ‘#tree’, startCollapsed: true}); });</script> <div id=’tree’></div> Courtesy of  http://www.mitya.co.uk/scripts/XML-Tree—visualise-and-traverse-your-XML-186