martedì 12 marzo 2024

Cyberark Web Connectors examples

Web Connectors 

With the following configuration, it will look for the two fields by tag name and the button for XPath. 

username>{Username}(SearchBy=Name) 

password>{Password}(SearchBy=Name) 

/html/body/div/form/div/div/div^[2^]/button>(Button)(SearchBy=XPath) 

 

 Pay attention to the "^" before each "[". It is mandatory. Value for SearchBy: ID, Name, Class, XPath

To know more: https://docs.cyberark.com/pam-self-hosted/12.6/en/Content/PASIMP/psm_WebApplication.htm

Simple timer in Windows cmd

c:\>timeout /t 60 It will wait 60 seconds. The command can be used in batch scripts as well.

One of the most outstanding books on statistics ever written.

An Introduction to Statistical Learning Gareth James Daniela Witten Trevor Hastie Rob Tibshirani Visit https://www.statlearning.com The book is precise, concise and gives you a lot of amazing examples. It is a must-read for computer scientists.

Easy way to manage dictionaries in Python

#given a dictionary key-value, increments the amount by value. def inc_dict_value(self, dict, key, value): if key not in dict: dict[key] = value else: dict[key] += value

venerdì 12 dicembre 2008

Controllare VERAMENTE i processi in esecuzione

Dal seguente link

http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

è possibile scaricare una utility, chiamta PROCESS EXPLORER, che permette di monitorare e gestire i processi in esecuzione sulla propria macchina.

mercoledì 26 novembre 2008

Adobe Reader da linea di comando.

E' possibile mandare in esecuzione Adobe Reader da linea di comando sfruttando alcuni parametri purtroppo non documentati.
Alcuni fra questi permettono anche di stampare un documento pdf senza visualizzare l'interfaccia del Reader o di Acrobat.
Ecco cosa ho trovato cercando in rete:

[From the DEVFAQ]
AcroRd32.exe filename - Executes the Reader and displays a file.
Other options for the command line are:
AcroRd32.exe /p filename - Executes the Reader and prints a file.
AcroRd32.exe /t path printername drivername portname - Initiates Acrobat Reader, prints a file while suppressing the Acrobat print dialog box, then terminates Reader.
The four parameters of the /t option evaluate to path, printername, drivername, and portname (all strings).
printername - The name of your printer.
drivername - Your printer driver's name. Whatever appears in the Driver Used
box when you view your printer's properties.
portname - The printer's port. portname cannot contain any "/" characters;
if it does, output is routed to the default port for that printer.
If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the command lines.

Option meaning:
/n Launch a separate instance of the Acrobat application, even if one is
currently open.
/s Open Acrobat, suppressing the splash screen.
/o Open Acrobat, suppressing the open file dialog.
/h Open Acrobat in hidden mode.

lunedì 25 agosto 2008

Utilizzo del cardiofrequenzimetro durante l'attività fisica.

Ciao a tutti,
ecco una linea guida, senza troppe pretese, che illustra l'utilizzo di questo fondamentale strumento ancora troppo trascurato dalla maggior parte delle persone.

Partiamo dal concetto di frequenza cardiaca massima: il numero massimo di contrazioni che il nostro cuore può compiere in un minuto.
Per certi versi è paragonabile al numero massimo di giri che il motore della nostra auto può compiere prima di...

Che il cuore abbia un suo limite è abbastanza noto ed ovvio; ciò che è meno noto è che a percetuali diverse del valore di frequenza cardia massima (FCmax) corrispondono tipi di lavoro differenti.
Facciamo qualche esempio:
55% - 65%: si parla di lavoro blando, riscaldamento e lavori molto lunghi
65% - 75%: media inensità, adatto per lavori di circa 3 ore
75% - 85%: tipo di lavoro che si avvicina più ad un target agonistico che non di fitness, specie se ci si avvicina all'85%.
85% - 100%: destinato ad agonisti, lavoro prettamente anaerobico.

I punti di cui sopra sono molto, molto sommari, ma spero di poter approfondire il discorso più avanti (o nei prossimi giorni ;-) ).

Abbiam parlato di percentuali; ma percentuali di che? Della FCmax ovviamente, ma quanto vale quest'ultima?

Per determinarla esistono metodi diretti ed indiretti.
Gli indiretti si basano essenzialmente su formule molto semplici che si devono a McArdle e Karvonen.
La formula di McArdle afferma quanto segue:

FCmax = 220 - età (uomini)
FCmax = 226 - età (donne)

Ovviamente ciò che si ottiene è un valore teorico ed è facile immaginare che non possa andar bene per tutte le persone di medesima età e sesso.