This gist was deprecated by full featured repository
It is possible to create multiple output files as a result of XSL processing in XSLT 2 with tag xsl:result-document
.
This is usefull for example when some large database is available as a single XML document from which we need to extract only
certain parts and/or modify it. This particular example takes export of accounts from the Waveset Identity Management system,
filters them, modifies them and saves them in a separate file per account.
This principle might be however usefull in many other cases.
This work is largely based on an example from IBM developer works
Since the process of public procurement has to be transaparent, assessment of proposals is in most cases clearly defined beforehand, strictly evaluated and it is often complicated mathematical combination of multiple factors like price and quality. This opens a room for speculation about different strategies for winning a contract, for example low price and low quality vs higher price and higher quality. This is an example of analysis of such possibilities using mathematical software Octave.
I'm keeping these notes mainly as personal notes on how to use Octave.
<?xml version="1.0" encoding="UTF-8"?> | |
<?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?> | |
<pozadavky xmlns="http://calavera.info"> | |
<pozadavek id="1" subdodavka="true" md="1" submd="5"> | |
<text>Some text</text> | |
</pozadavek> | |
<pozadavek id="2" subdodavka="false" md="10"> | |
<text>Some other text</text> | |
<note>Some note</note> |
#!/bin/bash | |
# pkcs15-tool --list-keys | |
# Private RSA Key [Digital Signature]: ID: 11 | |
TEMPFILE=`mktemp` | |
# reading PIN into environment variable is NOT safe, DO NOT use on shared computer. | |
# read is built-in, manual can be shown with | |
# help read | |
read -e -s -p "PIN: " PIN |
For avoidance of doubt: This email does not constitute permission to add | |
me to your mailing list. | |
READ CAREFULLY. By reading this email, you agree, on behalf of your | |
employer, to release me from all obligations and waivers arising from | |
any and all NON-NEGOTIATED agreements, licenses, terms-of-service, | |
shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, | |
non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have | |
entered into with your employer, its partners, licensors, agents and | |
assigns, in perpetuity, without prejudice to my ongoing rights and |
Helper for adding global Ajax callbacks manualy from console. See https://stackoverflow.com/questions/5202296/add-a-hook-to-all-ajax-requests-on-a-page and https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#Monitoring_progress
Install as bookmarklet.
This is simplified version of script I'm using for doing my backups. I have prepared it only recently because manual invocation of rsync was enough for me. But as the number of separately rsynced folders increased I was forced to introduce some automation and I had to solve some interesting problems along the way.
Normally a separate SSH connection is established for each rsync invocation. That may become irritating if, for some reason, establishing an SSH connection requires
0x7f3ef3603700 10:30:07.180 [opensc-tool] sc.c:259:sc_detect_card_presence: called | |
0x7f3ef3603700 10:30:07.180 [opensc-tool] reader-pcsc.c:397:pcsc_detect_card_presence: called | |
0x7f3ef3603700 10:30:07.180 [opensc-tool] reader-pcsc.c:303:refresh_attributes: Gemalto PC Twin Reader (6C5795CE) 01 00 check | |
0x7f3ef3603700 10:30:07.181 [opensc-tool] reader-pcsc.c:323:refresh_attributes: returning with: 0 (Success) | |
0x7f3ef3603700 10:30:07.181 [opensc-tool] reader-pcsc.c:402:pcsc_detect_card_presence: returning with: 1 | |
0x7f3ef3603700 10:30:07.181 [opensc-tool] sc.c:264:sc_detect_card_presence: returning with: 1 | |
Using reader with a card: Gemalto PC Twin Reader (6C5795CE) 01 00 | |
0x7f3ef3603700 10:30:07.181 [opensc-tool] sc.c:259:sc_detect_card_presence: called | |
0x7f3ef3603700 10:30:07.181 [opensc-tool] reader-pcsc.c:397:pcsc_detect_card_presence: called | |
0x7f3ef3603700 10:30:07.181 [opensc-tool] reader-pcsc.c:303:refresh_attributes: Gemalto PC Twin Reader (6C5795CE) 01 00 check |