ActiveXObject parameter documentation location - activexobject

What all objects can we generate using ActiveXObject method?
Is there any documentation of these objects? MS JScript site provides only FileSystemObject documentation.

Related

How do you pass parameters to Azure Logic Apps Liquid Connector for JSON-JSON transformation?

I have a Liquid transformation step in my Azure Logic App, using the "Transform JSON to JSON" version of the Liquid connector. I need to pass some parameters into the transformation - these values will end up in the JSON output from the transformation.
Unfortunately, I can't find any documentation or examples on how you would pass such parameters into the Liquid map.
There's no way to specifically 'pass parameters' to a Liquid template because Liquid does not support that construct.
However, you can easily inject a Parameters object into the source JSON using the Compose Action. Then you access them like any other value.

How to write an object to gcp object store with x-goog-if-generation-match from a cloud function

I'd like to write an object to gcp object store, while using the x-goog-if-generation-match feature. Using #google-cloud/storage npm library, the file object does not seem to have an option for setting the required object generation.
What are the alternatives?
As you noticed, the #google-cloud/storage npm library doesn't support generation and metageneration preconditions.
As an alternative, you may use either the Storage XML API or the Storage JSON API which do support it. Depending on if you want to use one or the other, you'll be able to use preconditions via HTTP Headers or query string parameters. You'll find the whole list of those here.
Another alternative is to use some kind of optimistic locking:
get the generation id
write object
get the generation id again
repeat until generation after = generation before + 1

Using OAuth 2.0 for Server to Server Applications

The examples provided are for java and Python. I would like an example for VB.NET. I am particularly interested in the JSON Web signature piece.
"Sign the UTF-8 representation of the input using SHA256withRSA (also
known as RSASSA-PKCS1-V1_5-SIGN with the SHA-256 hash function) with
the private key obtained from the Google Developers Console. The
output will be a byte array."
Can this be done in VB.NET?
I've personally used Jose-JWT and find it meets all my needs for generating and decoding JWTs. It's available through NuGet. While I haven't looked at the JWS spec you might find this library as a good starting point.

how to use jsonschema validation in angular js/rest web service architecture?

I am looking to design a client-side json validator through a json schema created for a server (Java backend), so it is important that I use the same schema. What plugins are useful for angularjs to implement json validation on the client?
Try the following angular plugin. It provides a directive to build forms out of JSON Schemas. The schemas can be loaded via a http-service. https://github.com/Textalk/angular-schema-form!

Mac Office 2011 and json parsing in vba?

all the json libraties I could find for VBA required the dictionary object which is part of the microsoft scripting runtime, which are not available on the mac. Is there a json parser working for Mac Office 2011 VBA?
I did this a long time ago and I did not have a reference to the MS Scripting Runtime in the project. I used microsoft JScript and grabbed objects from it to parse the data. I dug out a thread from 2008 where a few people are talking about the same thing:
Yahoo message thread
It at least gives you a starting point. I've since lost that code where I did it myself. If your still stuck later give me a holler, maybe I can help some more
http://code.google.com/p/vba-json has a json parser in pure VBA, and it seems to work fine, although I seem to recall having to make some minor modifications to get it working on all the JSON I was throwing at it. I also implemented a vba-coded Dictionary object to remove the dependency on the Scripting dictionary. You can find the one I used at http://www.sysmod.com/Dictionary.cls. Using both of these, I was able to get it working on OSX Office 2011, e.g.:
dim js
json_string = ...
Set jsp = New json
Set js = jsp.parse(sjson) 'sets js e.g. to a Dictionary or Collection object if json_string is "{...}" or "[...]"
Let me know if you need more detail to get it working.