I have added the resources via the 'add new' button next to resources and then in my code I am executing
image_logo = gbitmap_create_with_resource(RESOURCE_ID_IMAGE_APP_LOGO_LONG);
but I am getting the following compilation error:
../src/main.c: In function 'main':
../src/main.c:120:44: error: 'RESOURCE_ID_IMAGE_APP_LOGO_LONG' undeclared (first use in this function)
../src/main.c:120:44: note: each undeclared identifier is reported only once for each function it appears in
Waf: Leaving directory `/tmp/tmpGhVqKn/build'
Build failed
Here is what my appinfo.json file contains, I downloaded this from the settings section for the app. You can see that the images have been added with the same identifier.
{
"appKeys": {
"agency": 0,
"cleanStops": 11,
"error": 10,
"eta": 8,
"getEta": 9,
"getRoutes": 5,
"index": 1,
"refresh": 4,
"routeId": 6,
"routeName": 7,
"stopId": 2,
"stopName": 3
},
"capabilities": [
"location",
"configurable"
],
"companyName": "joshua103us#yahoo.com",
"longName": "DoublePebble",
"projectType": "native",
"resources": {
"media": [
{
"file": "images/doublemap_menu_icon.png",
"menuIcon": true,
"name": "IMAGE_DOUBLEMAP_MENU_ICON",
"type": "png"
},
{
"file": "images/spoon_long_med-2.png",
"name": "RESOURCE_ID_IMAGE_APP_LOGO_LONG",
"type": "png"
}
]
},
"sdkVersion": "3",
"shortName": "DoublePebble",
"targetPlatforms": [
"aplite",
"basalt"
],
"uuid": "409b7111-c0bf-43bd-a90c-8a44c33d1eb3",
"versionLabel": "1.0",
"watchapp": {
"watchface": false
}
}
The RESOURCE_ID_ part of the resource identifier is added by the system to the name you specify in appinfo.json
For example:
{
"file": "images/doublemap_menu_icon.png",
"menuIcon": true,
"name": "IMAGE_DOUBLEMAP_MENU_ICON",
"type": "png"
},
You would then use RESOURCE_ID_DOUBLEMAP_MENU_ICON.
In my case I experienced the same problem in the Cloudpebble environment, apparently even after formatting the image with http://www.watchface-generator.de/converter/ and saving the resource following Pebble tutorials it was like if CloudPebble still wouldn't recognize. It only did after i clicked on "Run Build" in the compile section of CloudPebble environment...just trying to save other some precious time :)
Another useful note when working in the Cloudpebble environment is you can hover over the name of the resource file and it will say the name of the identifiers.
For whatever reason mine showed up as different names than what I thought I had saved them as in the settings. Going in and editing the name (even if you just delete something and save the same name after editing it) and saving it should fix the issue. But in my case, just deleting the resource and then uploading it again seemed to resolve my issue. I suspect I might have had set them up as multiple identifiers. There is an "Another Identifier" button at the bottom of the page and I think that what was my issue. You can see this when you hover over the file and it has multiple names as identifiers (even if they are the same name).
Related
We have a published app in the Teams App Store.
The app has attachments functionality which is built based on the task module.
To upload/download attachment we make an AdaptiveCard and add Submit.Action with msteams object and add out object to it. Example:
"data": {"msteams": {"type": "task/fetch"}, "mmt": {"type": "attachments/upload"}}
Everything worked fine till the 10th of September, when the Teams Desktop Apps stopped rendering our cards (iOS and Android continued working):
After an investigation we've found that Action.Submit caused it. Here's the Action data:
{
"type": "Action.Submit",
"title": "Upload image",
"data": {
"mmt": {
"id": 101,
"type": "bur/kek",
"contentType": "hi/microsoft"
},
"msteams": {
"type": "task/fetch"
}
}
},
The issue is caused by these lines:
"id": 101,
"type": "bur/kek"
If we change id from type int to string or rename field "type" to "anyType" the issue does not appear.
So this looks like a BUG to me.
We are able to repro the issue. Sending card having "id" as int isn't rendering. I faced no issue if I make "id" as string and "type" as "bur/kek".
We have raised a bug for this. Internal team is looking into it. I will update you one it is fixed or if we got update from them.
Can you inspect and explain the problem not to get error?
This is Pirl Source Code
https://github.com/pirl/pirl-2_0
(at v0.8.25-ad031f3)
This is pirl polkadotjs.org clone at version at (api v2.2.2-2 ,apps v0.62.2-2 check right top at link)
https://dashboard.pirl.network/
custom endpoint: wss://rpc.pirl.network
When i try to transfer coins i got this error
Pirl has their own (now stale and seemingly unmaintained) fork of the Polkadot UI:
https://github.com/pirl
I would recommend using their own products and also read their docs that detail how to use it properly.
EDIT: Looks like there is a solution here https://github.com/paritytech/subport/issues/139
it worked after i set the custom type json (julien, #masterdubs, pirl coin developer, have given me this json
{
"Address": "AccountId",
"LookupSource": "AccountId",
"Account": {
"nonce": "U256",
"balance": "U256"
},
"Transaction": {
"nonce": "U256",
"action": "String",
"gas_price": "u64",
"gas_limit": "u64",
"value": "U256",
"input": "Vec",
"signature": "Signature"
},
"Signature": {
"v": "u64",
"r": "H256",
"s": "H256"
},
"Keys": "SessionKeys5"
}
I am triggering a flow when a new file is added to a folder (/Flows/InvoicesToXero/) in OneDrive for business.
However, it sees to think that the folder is a file and this causes issues:
{
"status": 400,
"message": "The file id '/Flows/InvoicesToXero/' is not valid.",
"source": "api.connectorp.svc.ms"
}
This is probably the simplest flow you could have:
Full error here:
This is the json for the trigger: (I have tried with and without a trailing slash)
{
"inputs": {
"host": {
"connection": {
"name": "#parameters('$connections')['shared_onedriveforbusiness']['connectionId']"
}
},
"method": "get",
"path": "/datasets/default/triggers/batch/onnewfile",
"queries": {
"folderId": "/Flows/InvoicesToXero",
"maxFileCount": 10
},
"authentication": "#parameters('$authentication')"
},
"recurrence": {
"interval": 5,
"frequency": "Minute"
},
"metadata": {
"b!caGb33cRrkC_foNq9zd0FIdP_xtQDcZEmqyeYyKvO6dYQu456-3vQaC_VKHi8b5w.014XBLOOWVAVAWSVA2QNELELS5LQI3SOJN": "/Flows/InvoicesToXero",
"flowSystemMetadata": {
"swaggerOperationId": "OnNewFiles"
}
},
"splitOn": "#triggerBody()"
}
How can I trigger a flow when a new file is added to OneDrive for Business in a subfolder?
You can try to create another connector also named "When a file is created (properties only)", please refer to this tutorial and the screenshot below:
According to the screenshot above, we can see there are two triggers named "When a file is created (properties only)" and the second include sub folders.
Hope it would be helpful to your problem~
I am trying to integrate with a service that provides FHIR ImageStudy messages in JSON format. Once I have the JSON message I need to convert the message to XML.
I am using the FHIR-net-api found here, https://github.com/ewoutkramer/fhir-net-api I posted earlier and got help using this library to parse standard image study messages. Here is a link to my earlier post, FHIR JSON to XML decoding in BizTalk
The service I am connecting to has added some extensions to the image study message and when I attempt to parse it I get an error that the parser failed line 1 character 1.
My understanding is that if the extension are done correctly the FHIR-net-api library should be able to parse the JSON to XML. Is this correct?
Can anyone identify if the test message below is compliant to the FHIR standard, if not what is wrong with it? I have shortened the message to only contain a single image study but the service returns multiple in a bundle. I have also removed identifying information.
{
"resourceType": "Bundle",
"total": 15,
"entry": [
{"resource": {
"resourceType": "ImagingStudy",
"id": "LALA.e1e6683d-f6d9-e311-ae0e-0050568f64",
"contained": [
{
"resourceType": "Organization",
"text": {"div": "LALA"},
"name": "LALA"
},
{
"resourceType": "Procedure",
"id": "Procedure1",
"code": {"coding": [ {
"code": "RAD-HANB",
"display": "HANDS BIL"
}]}
}
],
"extension": [ {
"url": "https://someplace.org/fhir/extensions/imagingstudy-examstatus",
"valueString": "Finalized"
}],
"started": "2013-12-03T12:30:00-08:00",
"accession": {"value": "A12345BH"},
"procedure": [{"reference": "#Procedure1"}],
"series": [ {
"modality": {
"system": "http://www.dicomlibrary.com/dicom/modality/",
"code": "CR"
},
"bodySite": {"code": "UEX"},
"instance": [
{"title": "DiagnosticReport"},
{
"title": "DiagnosticImage",
"content": [
{
"url": "/fhir/Patient/91111/ImagingStudy?_query=imageUrl&_id=6683d-f6d9-e311-ae0e-0050568f6477&-mrn=12345T&-organization=lala&accession=tester&-status=F",
"title": "Something"
},
{
"url": "/fhir/Patient/9111111/ImagingStudy?_query=html5Url&_id=e1e6683d-f6d9-e311-ae0e-0050568f6&-mrn=123345&-organization=lala&accession=testing&-status=F",
"title": "HTML5"
}
]
}
]
}]
}}
]
}
I suspect that you got a message like this: Error parsing XHTML: Incorrect document syntax. at line 1 row 1. source = " at line 8 col 13
That's what I get once I clean up the instance a little bit to include only the resource and not the wrapper from the Bundle and check it against http://fhir2.healthintersections.com.au/open/.
The first issue is that the narrative inside your div tag is not valid. It needs to look like this:
"div": "<div>LALA</div>"
However there are a bunch of others. The narrative is missing status. Narrative isn't actually allowed on contained resources, you're missing a bunch of mandatory elements, etc. Just go to the link above and paste your JSON into the "upload" box at the bottom of the page and select "validate". That will give you a full report of the issues. (Not all of those will necessarily impact your ability to convert between JSON and XML, but presumably you'll want to fix them regardless.)
I am working on a Python to JavaScript compiler and I try to implement V3 sourcemaps.
The following format works fine:
{
"version": 3,
"file": "D:/activ_tosh/geatec/transcrypt/transcrypt/demos/pong/__javascript__/pong.mod.js",
"sources": [
"D'!activ_tosh!geatec!transcrypt!transcrypt!demos!pong!pong.py"
],
"mappings": "AAAA;AAIA;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AAAA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AACA;AAEA;AAAA;AACA;AAEA;AAAA;AACA;AAEA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AAAA;AAGA;AACA;AAEA;AAAA;AACA;AACA;AAEA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAOA;AACA;AAEA;AAAA;AACA;AAMA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AAEA;AAAA;AAEA;AAGA;AAQA;AACA;AACA;AAAA;AAAA;AAAA;AA/CA;AACA;AACA;AACA;AA8CA;AAAA;AAKA;AAEA;AAAA;AACA;AAMA;AAMA;AAAA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAEA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAvCA;AACA;AAwCA;AAAA;AAKA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAHA;AAAA;AAAA;AAAA;AAKA;AAKA;AAOA;AAAA;AACA;AAEA;AAAA;AACA;AACA;AAEA;AAAA;AACA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAHA;AAAA;AAAA;AAAA;AAKA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AAvCA;AACA;AAwCA;AAAA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AAAA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAEA;AAAA;AACA;AAEA;AAAA;AACA;AAEA;AAAA;AACA;AAEA;AAAA;AACA;AAEA;AAAA;AACA;AAEA;AAAA;AACA;AAEA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"
}
but the so called 'index map' format gives an error in Chrome:
Failed to parse SourceMap
I've looked everywhere for examples, but could find none. Can anyone spot what could be the trouble, my indexmap is:
{
"version": 3,
"file": "D:/activ_tosh/geatec/transcrypt/transcrypt/demos/pong/__javascript__/pong.js",
"sections": [
{
"offset": {
"line": 15928,
"column": 0
},
"url": "file:///D:/activ_tosh/geatec/transcrypt/transcrypt/demos/pong/__javascript__/extra/sourcemap/pong.mod.js.map"
}
]
}
I've tried with and without 'file:///' and also relative paths, but this (very uninformative) error remains. I've also tried Firefox devtools, but they give no error info at all.