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

    https://en.wikipedia.org/wiki/XPath#Implementations has a section on Python http://shop.oreilly.com/product/9780596001285.do — O’Reilly Media book: Python & XML — published in 2003, you cannot use the “4DOM” samples any more — I discussed it a little in this article (on this blog): http://wp.me/p4qjMw-1Ac https://docs.python.org/3/library/xml.etree.elementtree.html#xpath-support https://docs.python.org/2/library/xml.etree.elementtree.html#xpath-support the Python2 and Python3 samples are practically the same, you can use identical code (apart from the “print” and […]

  • 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 […]

  • Perl’s XML::Tidy – tidy indenting of XML documents

    https://metacpan.org/pod/XML::Tidy

  • 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

  • the “JSON Lines” text file format

    http://jsonlines.org

  • Graylog GELF is a format for log messages, their stream is de-facto JSON lines

    http://docs.graylog.org/en/1.3/pages/gelf.html

1 2 3 5
Next Page