Month: February 2016

  • Mac OS X iWorks (Pages, Numbers, Keynote): they are ZIP files containing obscure “.iwa” files

    http://justsolve.archiveteam.org/wiki/Pages http://justsolve.archiveteam.org/wiki/Numbers http://pxlnv.com/blog/exploring-the-new-iwork-for-mac-file-formats/ http://pxlnv.com/linklog/likely-justificiation-iwork-file-formats/ http://mentalfaculty.tumblr.com/post/65232514882/iworks-new-file-formats Apparently huge XML files previously contained within those ZIP files got split up and compressed (but how???), and these pieces are now called “.iwa“. That was in favour of mobile devices working on partial files “in the cloud”. I have no plans working with spreadsheets “in the cloud”. I prefer…

  • Python and XPath

    I had done some XPath using XMLStarlet in a shell script, and I quite like it. Feeling “safe enough” with XPath I managed to deal with the Python XPath pitfall(s), and I quite like my 1st respective XPath Python script. And of course my Python script has a nicer CLI interface than my shell script.…

  • XMLStarlet – a command-line utility to deal with XML documents

    https://en.wikipedia.org/wiki/XMLStarlet https://de.wikipedia.org/wiki/XMLStarlet http://xmlstar.sourceforge.net http://xmlstar.sourceforge.net/docs.php http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html – User’s Guide http://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139502176 – the User’s Guide section on “Other XmlStarlet Resources” (with a few broken links) http://xmlstar.sourceforge.net/doc/xmlstarlet.txt – yet another document called “User’s Guide” but with more rather educative examples http://www.ibm.com/developerworks/library/x-starlet http://www.heise.de/ct/inhalt/15/14/172 — behind a paywall; my PDF copy lives on my archive at: Computers/Data_Formats/Markup_Languages/XML/Addressing_and_Querying/XPath/ http://www.freesoftwaremagazine.com/articles/xml_starlet CAVEAT: “xmlstarlet sel –template –value-of XPATH” lists all…

  • Python and regular expressions

    https://docs.python.org/3/library/re.html https://docs.python.org/3/howto/regex.html

  • Python Wiki: PythonXml – and what about XPath?

    https://wiki.python.org/moin/PythonXml https://wiki.python.org/moin/PythonXml#XPath_Support https://wiki.python.org/moin/XmlBooks – all 3 books mentioned are like 15 years old http://shop.oreilly.com/product/9780596001285.do — “Python & XML” (2001) https://library.oreilly.com/book/9780596001285/python-amp-xml/toc — behind a paywall https://wiki.python.org/moin/Tutorials on XML processing with Python

  • pip, the Python package manager

    https://en.wikipedia.org/wiki/Pip_(package_manager) http://www.pip-installer.org → https://pip.pypa.io https://pip.pypa.io/en/stable/reference/pip/?highlight=proxy#cmdoption–proxy — pip and how to specify an HTTP proxy to go through http://stackoverflow.com/questions/14149422/using-pip-behind-a-proxy — various ways … — also describes the use of %USERPROFILEpippip.ini and $HOME/.pip/pip.conf On my PC at work there are quite a few different Python installations, so which pip belongs to which Python installation? I guess calling pip like this will…

  • manipulating JSON data with Perl-one-liners

    http://motemen.hatenablog.com/entry/2013/12/04/ARGV::JSON_-_easy_JSON_handling_in_one-liners_%23perl https://github.com/motemen/perl5-ARGV-JSON