what is the lldb cmd option '-w' used for in cmd line "type synthetic add -w" - lldb

once in lldb I run: help type synthetic add
there is a -w option:
-w <name> ( --category <name> )
Add this to the given category instead of the default one.
what does the category here really mean?
I've seen some people use the lib name as the value, for example:
https://github.com/llvm-mirror/lldb/blob/master/examples/synthetic/unordered_multi.py
-w libcxx
is there any other usage? or any docs explain this?

Type categories are an organizing convenience. You can use the type category command to enable, disable, list or delete the summaries/synthetic children in that category. Also the regular `type list" command will group summaries by category. They don't have any other effect.

Related

Missing type property on running https://graph.microsoft.com/v1.0/places

I need to get all the conference rooms and reservable spaces in a tenant.
I believe List Places API is what I need to use (https://learn.microsoft.com/en-us/graph/api/place-list?view=graph-rest-1.0&tabs=http). How do I differentiate between conference rooms and reservable spaces?
I don't see a property in the response that indicates:  '"Type": "Room" or "Space"
In my demo tenant, I created a reservable space by running PowerShell command:  
New-Mailbox xxx -Room | Set-Mailbox -Type Workspace  
On running
Get-Place xxx | fl
I see Type as 'Space'  
 
I created a room by running PowerShell command: 
New-Mailbox yyy -Room
On running
Get-Place yyy | fl
I see Type as 'Room'
However I don't see Type property on running
https://graph.microsoft.com/v1.0/places/
on Graph Explorer. What am I missing?
I have reproduced in my environment and got expected results as below:
Alternatively, you can use microsoft graph as below
AFAIK, there will be no type in output, but if you want to get types such as rooms and spaces you can use below queries:
If you want get the spaces available you can below query:
https://graph.microsoft.com/beta/places/xx.onmicrosoft.com/microsoft.graph.space
To find rooms use below request and I followed Microsoft-Document :
https://graph.microsoft.com/beta/me/findRooms
To get room list you can also use below request and I followed Microsoft-Document:
https://graph.microsoft.com/v1.0/places/microsoft.graph.roomlist

Upload Alexa Slot Types via API

Is there anyway of uploading Custom Slot Types values via an API, so that you do not need to type them in manually using the new Alexa Skill Builder interface (if you have many of them):
I haven't found anything.
My recommendation is to get the model via SMAPI first, edit the json file with your new values and update it via SMAPI again.
ask api get-model -s "enter your skill id here" --stage development -l en-US > model.json
in the model.json file you can see the slots definition. Change it (with a script or manually) and update the model again
Reference to both commands:
https://developer.amazon.com/docs/smapi/ask-cli-command-reference.html#update-model-subcommand
https://developer.amazon.com/docs/smapi/ask-cli-command-reference.html#update-model-subcommand
It seems not (after searching). There is a feature request logged here with Amazon:
https://forums.developer.amazon.com/questions/9640/api-to-upload-intent-schema-and-sample-utterances.html#answer-77902
Yes you can do this via the SMAPI API/CLI. Take a look at https://developer.amazon.com/docs/smapi/ask-cli-intro.html for a full detail - it allows for full model editing via JSON.
In the left bar bellow the "Intents" and "Slot" is the option "JSON Editor". There you can write a JSON for the new intents you want to add.
Example without slot type
{
"name":"YesIntent",
"samples":[
"Yes",
"Yeah",
"I do",
"I am"
]
}
Example with slot type
{
"name":"NumberIntent",
"slots":[
{
"name":"number",
"type":"AMAZON.NUMBER"
}
],
"samples":[
"{number} is my number",
"{number}",
"my number is {number}"
]
}
As other answers suggest, you can use the SMAPI.
Alternatively, you can select the "code editor" tab on the left and drag/drop or copy/paste your schema json code.
https://github.com/williamwdu/Alexa-Custom-Slot-Generator
I wrote this to convert csv/excel to JSON format so you can paste it into code editor.
Let me know if you have any question.
There is no README for the code coz I have no time these days

Can you alter a Custom Attribute's enum list in Maya?

I'm adding a custom attribute that is an enum list to some of my nodes. I can easily do this with addAttr. But I don't see a way to later add a new enum value or change the enum list. Is that possible?
I have found a way to do this but it seems there should be an easier way. For my workaround, if the attribute exists I grab its value and delete the attribute. Then I add the revised attribute back into the node and set its value to the old value. By changing $enumValues I can edit the list of enums. (Note I only plan to add values not delete values) This script demonstrates my workaround:
string $attrName = "MaterialType";
string $enumValues = "Water:Sky:Terrain:Building:Road:";
string $selected[] = `ls -sl`;
if(`size $selected` == 1)
{
string $attrFullName = $selected[0]+"."+$attrName;
$existingValue = 0;
if(attributeExists($attrName, $selected[0]))
{
$existingValue = `getAttr $attrFullName`;
deleteAttr $attrFullName;
}
addAttr -ln $attrName -at "enum" -en $enumValues $selected;
setAttr $attrFullName $existingValue;
}
else
{
print "You must have 1 object and only 1 object selected\n";
};
Worth mentioning, if I run this script it does change the enum's values but these changes don't show up in Maya's interface until I close the file and reopen the file.
Any suggestions on how to do this more gracefully would be appreciated.
I might be a bit late, but you can use the "-edit" flag in addAttr.
addAttr -edit -enumNames "A:B:C" "node.enumAttrName"
However, you still need to refresh manually or with refreshEditorTemplates
Edit:
You might also want to consider optionMenuGrp. You can add menuItems via the -parent flag. You can remove a specific child with the deleteUI command or remove all children with the -deleteAllItems flag in edit mode on the optionsMenuGrp.
What you're doing - deleting the attribute and re-adding -- is unfortunately the only way to do this. Maya enums are pretty lame.
The attribute should be working correctly after the script is done - you may need to deselect and reselect it to properly refresh the attribute editor. You can check it with an listAttr -ud on your object after the script runs - you should see your attribute name in the results, even if the UI has not refreshed.

How to create a task in Integrity using Java API

Could some one please tell me Is there any way to create a Task/Change Request/Work Package in MKS Integrity using Java API?
We have an xml file with all the details about Task. By taking this as Input, need to generate a Task/Change Request/Work Package.
The Integrity Java API is basically a structured command line interface, so if you can construct a standard Integrity command (with parameters & options) to create the item, you can easily use the API to create the item also. NOTE: This works for most commands, but not all.
For example:
If your command line is:
im createissue --type=Task --State=Submitted --field=Summary="Test summary"
You could do the same with the following code:
Command cmd = new Command(Command.IM, "createissue");
cmd.addOption(new Option("type", "Task"));
cmd.addOption(new Option("state", "Submitted");
MultiValue mv = new MultiValue("=");
mv.add("Summary");
mv.add("Test Summary");
cmd.addOption("field", mv);
Then run the command using a CommandRunner.
You can get more assitance in the PTC Integrity community site (https://www.ptcusercommunity.com/community/integrity).
You can create the Task by using the below command line interface
im createissue --type=Task --field=State=Submitted --field=Summary="Test summary"
The type field specifies the issue type to create. Your administrator defines issue types and this option is mandatory.

Maya MEL command to set focus to a particular tab in the Attribute Editor

How can I do this? I've looked through the Maya documentation and all I can see that's related are the commands refreshAE and updateAE, but they don't do the job I need.
Here is one way of doing it. This proc is tested in Maya 2009 and 2013.
// switch the tab by name string, note tab must be present
global proc switchAEtoTab(string $name ){
global string $gAETabLayoutName;
string $tabs[] = `tabLayout -q -tabLabelIndex $gAETabLayoutName`;
for ($i=0;$i<size($tabs);$i++){
if ($tabs[$i]==$name)
tabLayout -e -selectTabIndex ($i+1) $gAETabLayoutName;
}
}
Edit: updated script to contain the global name of the tab layout

Resources