and
Hi. I attach 2 pictures. There I am having an issue while importing Clarifai-nodejs-grpc.
Please check these pictures and help me with this.
Thank you so much
It seems like this issue has been reported here already: https://github.com/Clarifai/clarifai-nodejs-grpc/issues/25
While I get someone to take on look on Clarifai's end, please use simple REST calls: https://docs.clarifai.com/api-guide/data/create-get-update-delete (see "Javascript (REST) snippet")
Related
I have a problem with the translation using sveltekit-i18n.
I tried to install and use the library for 3 time but I always had this problem.
No translation key or locale provided. Skipping translation...
I also followed the example that I found in the docs (multi-page) but the translation didn't work.
Could you please help me?
I attach the link of my repo. It's a little project that I just started. You can find the file in translation.js following the path src/lib/translation and the test in the file +about.svelte following the path src/routes/about.
Can somebody help me please?
I really don't want know how I can fix it. I did several research, but I couldn't find anything.
Thank you
I guess this is as much a call to attention on the fact that the documentation seems to be outright incorrect in its application, as well as just generally lacking. Normally, I would send that part of the message to them personally, but, their contact form is also giving me errors and not sending, so it's not like I have the means to anyway. In the mean time, I'm more worried about getting this code to work, so hopefully someone experienced with this SDK or an Image4io team member sees this and can provide a public answer for others stumbling into this road block.
For starters, I initialized the Image4io object as described in the github here: https://github.com/Image4IO/image4ionodeSDK/
website documentation: https://image4.io/en/documentation/api-sdk/#operation/UploadImage
The image upload example provided on the website's documentation looks like this:
let client=new Image4ioAPI.Image4ioAPI(apiKey,apiSecret);
var request = new Models.UploadImagesRequest("/folderName", true, true);
request.Add("/path/to/image/location/name-of-the-image.jpg", "name-of-the-image", "name-of-the-image.jpg");
let response=client.UploadImage(request);
3 out of the very sparse 4 lines of code they provide give errors. Where did this Models object come from? There is no corresponding class in the import and the code example obviously doesn't show where it was defined. Just what is it and where did it come from?
Well, I found a matching function "UploadImagesRequest" in the original import class, so my guess is Models was deprecated and its functionality was moved into the Image4io class object. If that was the case the solution would be to simply access that function instead... But it's not used the same. It has 4 arguments, the 4th being a "Image4io.UploadFile[]" type. This type has no use examples in the documentation or further details describing what it is exactly. I assume image byte data goes in there somehow, but how?
Finally we have request.Add... except we don't because that isn't a function :( it looks like this was used to actually get the image data (maybe of the type UploadFile?) based on the path of the image. If this function is gone now, how do get file data for use in the upload request function?
Any and all help in figuring out this SDK would be greatly appreciated. Google searches yielded no meaningful results, so hopefully we can help in that department as well. For all I know I just got the wrong version somehow. I guess I could try downgrading to a version that matches the documentation but... that's not a fix in my eyes at all.
Let me know if there's any more info I could provide to help
You can upload image like this:
var client=new Image4ioClient(API_KEY,API_SECRET);
var files=Array();
files.push(new UploadFile("./test.jpg","test.jpg"));
client.UploadImage(new UploadImagesRequest("/",true,false,files))
.then(res=>console.log(res))
If you have binary data at hand, you can write it to a temporary file and then upload them.
I am trying to get a custom component working in Formio.js. I would love a complete, nontrivial working example.
I am not using angular, ng, react or the form.io service.
The documentation is terrible. I can copy out the Checkmatrix example code and run it (after much fiddling) but even it doesn't work correctly: in the formbuilder, the edit and delete controls don't show up. (There an bug issue open on this, but no resolution, which is distinctly worrisome.)
There are dead links all over the SDK reference documentation.. like for example for "Component" which seems particularly important.
There is no documentation of any of code used by the example. For example, it uses the 'renderTemplate' call, but the arguments are not described anywhere.
It appears that the only way to understand any part of this system to try to figure out all of the source code. There are no instructions for adding code.
It's not even clear what the best way to proceed is: whether I should fork the formio.js repo, learn TypeScript, and add components directly (creating a hassle if I ever want to keep formio.js up to date) or continue trying to work by registering components from add-on scripts in the browser.
** Can anyone give concrete advice on the best way to go? **
#nathaniel Tagg I couldn't find form.io proper form examples, so i would like to see your form.io examples if you are like to provide. Here is my email 'udara#staff.medicalwizard.com.au'
I created a mock service using mockable.io.
For example:
Putting this in the url works:
http://demo#####.mockable.io/items
But if I filter it with:
http://demo#####.mockable.io/items?pid=5
It doesn't work as it should, it shows all the data instead of filtering them.
Can anyone tell me what I'm doing wrong please?
Mockable is in beta and I suspect they haven't sorted all the kinks out yet, I have the same problem when using it. An alternative is Sandbox - you can script mock service behaviour and can handle query parameters any way you like (disclaimer: I'm a founder)
I just tested your scenario and it works in my space.
Maybe you inverted the responses between the 2 mocks ?
You should send a support request to the mockable.io team. They are very active and will help you.
I solved it using filter.
Example: /blogs?filter=blog1
Documentation link: https://www.mockapi.io/docs
SEARCHING & FILTERING
Add query params to GET request:
/blogs?search=blog1
/blogs?filter=blog1
/blogs?title=cool%20blog
I've built an iPhone app that's working great so far. I've had some great help here optimising the code, but wondered if I could please obtain some help to display an error msg when the following conditions are met.
When the xml file is unavailable
When one of the xml data fields is missing (eg. brisbane is currently not listed in the xml for function 1, but should be - http://www.arpansa.gov.au/uvindex/realtime/xml/uvvalues.xml)
My current code: http://pastebin.com/VgBmdXjd
At the moment I've got the error msg working when the xml data field is empty (not missing), which should be apparent in the code. Please let me know if it isn't.
Also, both functions are setup a little differently, which might affect the way the condition is formatted. If anyone is able to explain the differences, that would be great too.
Any help is sincerely appreciated.
Kind Regards,
Glen
You need to set up the ajax error event handler in jQuery. Good Example