How to update contacts in Zimbra by scripting? [closed] - open-source

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a Zimbra installation and I need to programmaticaly update contacts in it. It seems that its REST interface is only working to add new contacts, but I need to update existing ones. Is there a way, tool or something, open-source, to do that ?

Well, I have an answer to my question : you may use the "zmmailbox" command. Under the Zimbra system user, it is possible to modify content in a mailbox. Since quite everything is stored in the Zimbra mailbox, contacts can be edited. I need now to find a way to use this :
box$ zmmailbox help contact
autoComplete(ac) [opts] {query}
-v/--verbose verbose output
autoCompleteGal(acg) [opts] {query}
-v/--verbose verbose output
createContact(cct) [opts] [attr1 value1 [attr2 value2...]]
-i/--ignore ignore unknown contact attrs
-f/--folder <arg> folder-path-or-id
-T/--tags <arg> list of tag ids/names
deleteContact(dct) {contact-ids}
flagContact(fct) {contact-ids} [0|1*]
getAllContacts(gact) [opts] [attr1 [attr2...]]
-f/--folder <arg> folder-path-or-id
-v/--verbose verbose output
getContacts(gct) [opts] {contact-ids} [attr1 [attr2...]]
-v/--verbose verbose output
modifyContactAttrs(mcta) [opts] {contact-id} [attr1 value1 [attr2 value2...]]
-i/--ignore ignore unknown contact attrs
-r/--replace replace contact (default is to merge)
moveContact(mct) {contact-ids} {dest-folder-path}
tagContact(tct) {contact-ids} {tag-name} [0|1*]

You can send SOAP to ZCS, the details are in soap.txt (located under /opt/zimbra/docs). To modify a contact see ModifyContactRequest. You'll need to authenticate first using AuthRequest. Tons of good Zimbra developer information is here: http://www.zimbra.com/forums/developers/

There's actually also a SOAP interface in Zimbra but from what I've been able to tell by reading the forums at zimbra.com/forums, for some reason they "could not" (?!) document it properly, nor generate any WSDL file; thus I've never used it.
Apparently one would have to study the Java source code of Zimbra to see what's available.

If you have a recent install of Zimbra, you should be able to find the SOAP docs in /opt/zimbra/docs. I've not tried to use it yet myself....it's still Greek to me.
Matt

Related

JSON Schema Documentation Generators [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have looked all over google for hours trying to find a good JSON Schema documentation generator, but I can't seem to find any good ones. Every one listed on http://json-schema.org/implementations has some problem. For Matic, I don't like the look (Actually having brackets, and showing $schema), for Doca, it doesn't work on windows, and for Docson, it can't handle infinite loops. Basically, I want a JSON Schema documentation generator that can
Handle infinite reference loops in a good way
Can work on windows
Has an output that doesn't show the output like Matic, but more like Docson.
Has a static output, so the user doesn't have to click anything
I found a hit that works very well. https://github.com/bootprint/bootprint-json-schema is a node module that has the perfect system.
https://github.com/adobe/jsonschema2md - As it's name suggests, generated Markdown from JSON Schema files.
There is also PRMD, although I think it has similar limitations:
https://github.com/interagent/prmd
Hopefully with JSON Hyper-Schema draft-07 about to be published, there will be a new generation of API documentation systems to follow.

Azure: SKU property value for Automation Account, where are centralized Template Docs? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm trying to deploy a Resource Group that includes an Azure Automation Account. One of the parameters in the parameters.json file is called automationAccounts_DSCAutomationAccount_sku. Putting an arbitrary string as its value results in an InvalidTemplate error:
The provided value for the template parameter 'automationAccounts_DSCAutomationAccount_sku' at line '7' and
7' is not valid.'.
Specific Question: What would constitute a valid value? In powershell there is no sku property of the AutomationAccount object. And when creating a new account in the Portal, there is never an option to select one of many different kinds of Automation Accounts, there is only one kind. So what does Azure need an SKU field for anyway?
General Question: In Azure Templates (and parameter files) how can I know what a certain field expects, and what fields are required for a certain resource? Is there any centralized doc that has all of these requirements?
It seems that there isn't, and if that's the case, that makes authoring templates nearly impossible, with the only viable option for producing templates being configuring a resource group in the Azure Portal, and then downloading the template JSON file that it generates.
Indeed you raise a valid point, I have not seen a centralized place to look that up, but, there's a ARM schema which is the closest to what you ask that you can get, in my opinion. But that place is a pain to navigate\look through.
Also, there's the https://resources.azure.com resource, which is really helpful, and there's the Automation script option on the portal, that would effectively export out the json template for you. Having said that, here's the free SKU example:
"sku": {
"name": "Free",
"family": null,
"capacity": null
},
also, this seems to be the relevant schema for Automation
https://raw.githubusercontent.com/Azure/azure-resource-manager-schemas/master/schemas/2015-10-31/Microsoft.Automation.json

Translation management tool? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm looking for a tool that can help manage i18n translations with non-technical translating staff. Something where translators can login with credentials, navigate to their respective language, make changes/translate new keys, save, and quit.
Our translations are stored in nested JSON in the typical i18n style:
// en.json
{
"hello":"Hello",
"world":"World"
}
These translations are stored in a git repository and pulled into the main project this way, so hopefully a translation management tool could be given repo access and push/pull as needed?
http://locize.com is great. Comes from the makers of i18next. Offers a lot of features to keep translations consistent. On top of that it enables you to edit your translations with an Incontext Editor too.
Have a look at phraseapp.com. They offer exactly what you're looking for. One central cloud based place where all your translator can log-in, translate their respective language and check it in for approval.
Can be easily integrated into your existing workflow via API.
Hope that helps :)
PhraseApp is definitely a solution. OneSky, webtranslateit and transifex are similar.
There are open source solutions too:
https://poeditor.com/kb/json-localization
This is a desktop tool, but you could just map your git repsitory and you are fine.
Another option might be Weblate - it supports BitBucket and simple JSON files, so it might be good fit for you. It's free software, so you can run your own copy or use hosting options (free for free software).
(I'm author of Weblate)

Open source license usage analysis [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Legal department in my company wants a list of copyrights and licenses for all header files we use. They need this to verify we are using the right license and don't infringe any copyright.
So far I wrote a few simple bash lines to build everything with gcc -E, parse the output, locate the header files and grep the output for "copyright" and "license". This is very crude and error prone.
I am looking for an existing tool to do all of this, or at least parts:
Trace existing builds (like strace) and generate used headers instead of modifying the build system
Extract copyright holder and years from header files
Determine license per header file
Not looking for any legal advice here. Just looking for tools to help me easily analyze the code for our legal department.
You could contact folks like BlackDuck that essentially offer this analysis, by comparing your code base against a large set of open source code bases, whose licenses are already known. Any matches then yield the license for the matched code. They do this to answer precisely the question your lawyers are asking.
I have not used their product, nor have any association with them.

Any open source hosting site for abandoned projects? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have some projects for which I have ceased development a long time ago but still get code access requests for. I'm currently providing zipped packages from my personal web site. I think zipped packages are far from being useful (e.g. can't read code right away, can't provide URLs to individual source files, can't fork easily, lifetime is dependent on my own web page's).
I want that archaic code to be present on the net whether I keep my web page up or not. I saw the question "What's the best open source hosting site?". However, most sites request the project "to be active", Codeplex for instance. I didn't go through EULA's of all providers to see if they allow abandoned projects.
Are there elephants' graveyards for old code without activity restrictions? Which one would you pick, why?
UPDATE:
I tried both Google Code Hg and GitHub to see which is easier to use. Although GitHub required SSH key setup and additional steps, it was still much easier to get going. On Google Code even finding "create a project" page was a hassle in itself, every time I had to navigate through FAQ. Hg authentication did not work for some reason (yes I tried both encoding # to %%40 and removing gmail suffix completely, didn't work).
On GitHub, creating/forking a project is a breeze, supports syntax highlighting for Pascal source files which was also a plus for those archaic code.
Github would be a good choice. I don't think they have such a requirement and it would be simple for someone else to take over as the maintainer with no action necessary on your part.
I don't think code.google.com has such requirement.
You can host your project active or not for how long as you wish, and perhaps if a community will form around it grant someone the admin role to take the lead.
-- EDIT (based on ndp answer) --
You would obviously want to set your repository type to Mercurial, to allow easy cloning / branching for people interested in hacking on the code.