Azkaban runtime parameter for yesterday - azkaban

According to official website, Azkaban only provides year-month-date for running time like:
${azkaban.flow.start.day}
Is it possible to add parameters for the day before?

You can define it with jexl by yourself.
e.g.
yesterday=$(new("org.joda.time.DateTime").minusDays(1).toString("yyyy-MM-dd"))
ref: https://github.com/azkaban/azkaban/pull/277

Related

request_money failing in API: coinbase.wallet.error.InvalidRequestError: APIError(id=invalid_request): Missing parameter: `type`

https://developers.coinbase.com/api/v2#request-money
Following example provided her I run into the issue:
coinbase.wallet.error.InvalidRequestError: APIError(id=invalid_request): Missing parameter: type
trekked into the code and saw that the param is added by the request_money function in client.py.
Seems to be an error in the API for the 2021-03-05 API.
I see it's a common issue (there's 2 other instances of this) but wondering if there was a recommended work around.
Answer:
https://commerce.coinbase.com/docs/api/#create-a-checkout
Use coinbase commerce. This is the supported API for trading amongst wallets.
Can confirm the checkout system works!
Wish that Coinbase advertised this a bit more :/

iam service account documentation discrepancy

There is a discrepancy between the documentation for an IAM V1 Service Account and the example shown in https://github.com/GoogleCloudPlatform/deploymentmanager-samples/blob/master/examples/v2/project_creation/service-accounts.py.
The document shows that the properties has a 'name' field, with a value that looks like projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}. The other properties that can be set are 'displayName' and 'description'.
The example does not have the name and description properties, but instead has 'accountId' and 'projectId'.
I am confused as to which is the correct usage.
Ecample on Github is old : Latest commit 81378b1 on Mar 4, 2017 and the documentation was updated more recently: Last updated 2020-08-18 UTC which means that some of the field names have changed and example is not correct.
To correct this you may file an issue on Google's Issue Tracker.
Always use whatever is in the official documentation - it's the best source of reference if in doubt.

smartgit and ksdiff integration

I'd like using the Kaleidoscope/ksdiff as my conflict solver in smartgit. I've tried configuring by myself but I can't. So, what is the line instruction that I need to put at arguments input on edit conflict solver configuration?
Screenshot:
The required configuration to integrate Kaleidoscope/ksdiff with smartgit is that:
--merge --output ${mergedFile} --base ${baseFile} -- ${leftFile} --snapshot ${rightFile} --snapshot
just put it on arguments field and the magic will happen :)

cakephp how to check variable content and all function included?

sorry i was new here so this problem maybe simple.
anyone knows how to check variable content?
like xx($a);
then page shows all relate information about $a. Is CakePHP allowed to do that?
i setup a kit on my cakephp
You might be looking for either var_dump() or print_r()
You can use PHP built-in functions like
var_dump() - displays structured information about variable
print_r() - the same, but preformatted with some differences
get_defined_vars() - returns array with all defined variables
Or use true CakePHP-way
Debugger::dump() - It will print out all properties and methods (if any) of the supplied variable
For more convenience you may use CakePHP Debug Kit plugin, which provides nice toolbar and some useful tools for your purpose.

Using Helper $time->niceShort with german settings in CakePHP 1.2

I want to use the CakePHP Helper "time" and his method niceShort to transform a date into a nice, easy to read one. Instead of the english default transformation I want to use a localized version (in my case: "german") but I don't know where to set this. How can I localize this method?
echo $time->niceShort($comment['created']);
I don't think cake handles date localization very well you might need to use $time->format() see http://cakeqs.org/eng/questions/view/localizing_time_helper and this ticket http://cakephp.lighthouseapp.com/projects/42648/tickets/638-time-helper-i18n
If you can successfully set localization parameters, niceShort finds right month/day names.
Regarding to CakePHP docs change these:
$this->Session->write('Config.language', 'ger')
Configure::write('Config.language', 'ger');
setlocale(LC_TIME, 'de_DE.utf8','de_DE','de_DE','deu_deu');

Resources