i tried following the steps mentioned "https://github.com/watson-developer-cloud/document-conversion-nodejs" and is able to load the app which works well with sample pdf file.
But when i try using my pdf file it throws error "Missing required parameters:
either params.file or params.document_id must be specified"
Also in the above mentioned git hub link the step 7 is not clear, it mentions run node setup.js but i am not able to find out that file.
has anybody faced this kind of issue.Kindly reply.
Thanks for pointing out the confusing step 7 in the document-conversion-nodejs repo. That's not a valid step and I've submitted a pull request to remove it.
You should be able to change the sample files with your own, if this is what you are trying to do. I would need to see some of your code to maybe figure out what is going on with it.
There is an alternative repository [watson-developer-cloud/node-sdk] that you also can use to create your NodeJS application. It also has an example (examples/document_conversion.v1.js) on how to run the service.
Besides entering your service credentials, all you need to do is place the document you want to convert in the "resources" folder and point to it in this line:
fs.createReadStream(__dirname + '/resources/YOUR_DOCUMENT')
The tutorial and the API documentation could also be of help.
Related
I am trying to create upload and download the files option by user from front-end created in OPENCMS 9. Could you please suggest/help me to get the solution as how to approach or any predefined modules available for the same.
I have already serached for the same and got some module "Synyx NetbeansOpenCmsUpload Module" but couldn't able to download this. Please suggest.
Take a look to the jLAN Function of OpenCms:
http://documentation.opencms.org/opencms-documentation/more-opencms-features/mounting-the-vfs/network-share-access/index.html
i have 2 days trying to make native google maps to work. I followed all the instructions i found, nothing. I searched for 2 days if others had any problems, i followed their solution but still nothing.
Maps appear on the simulator but not at the telephone. I tried with a dialog nothing. I tried to a container to the main form nothing.
I also tried final MapContainer cnt=new MapContainer(new GoogleMapsProvider("my_api_key")); but still nothing. With this i couldn't see the maps neither to the simulator.
I have downloaded from git first and then from the extensions but still the same. Nothing shows up.
Google api console shows the requests every time i try to see the map, but no map on mobile. I also used with SHA1 and without. The same results.
I noticed that in BuildHints it automatically adds android.playService.maps=true, and when i tried to add the android.includeGPlayServices=true there is a build error, cannot be used together the error log says.
My codanameone plugin version is 3.5.8
Thanks in advance.
You need to have a google API key using this build hint:
android.xapplication=<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="YOUR_ANDROID_API_KEY"/>
ios.afterFinishLaunching=[GMSServices provideAPIKey:#"YOUR_IOS_API_KEY"];
You need to login to the google cloud API console and turn on map support for your application picking "native Android" and then "native iOS" then copy the key for each and replacing the strings YOUR_ANDROID_API_KEY and YOUR_IOS_API_KEY respectively.
Go to the Google developers console to check your credentials.
https://console.developers.google.com/apis/credentials
Be aware that you need to remove the key restriction to make the API key work with Codename One.
I am clearly new at this. But I'm having trouble installing the google-api-php-client library. On Google's documentation page, it says:
After obtaining the files, include the autloader. If you used Composer, your require statement will look like this:
require_once '/path/to/your-project/vendor/autoload.php';
If you downloaded the package separately, your require statement will look like this:
require_once '/path/to/google-api-php-client/vendor/autoload.php';
I know this is probably an simple answer, but where in my project am I supposed to put the code?
Is there a file within the google-api-php-client directory that I am supposed to put this line in? Or do I need to place this line directly into my website's html in order for the library to properly install?
I am using Drupal 7 and I installed the library with composer.
Suppose I have 3 files, mail.php, calendar.php and drive.php. With mail.php, I run a script that sends emails from my google account, with calendar.php I run a script that inserts a new event in my calendar and with drive.php I run a script that uploads a file to my drive. Each one of those files will need the require_once '/path/to/your-project/vendor/autoload.php'; after <?php. For example:
<?php session_start();
require_once '/path/to/your-project/vendor/autoload.php';
//run the rest of your script that requires interacting with google services.
Please take a look at the example in the documentation located here and the example here
Some advice would be appreciated.
I am trying to install the Google drive Realtime playground onto the online Google App Engine. (as well as trying to get it working on my Localhost.
Once uploaded, it renders but all functionality is greyed out. Link to example: https://alpha-113.appspot.com
I have added the client id and app id as stated (within the readme) into the correct .js file and updated the app.yaml file to include the application name.
I am stumped.. Can anyone assist?
James
If you view the output in the Javascript console, you see that you have a number of errors in your javascript. It looks like the underlying problem is that your CLIENT_ID has invalid syntax. It should just be the number. You can't have "."'s in a value in javascript like that.
I recently started to learn about AngularJS and came across WebStorm and the AngularJS plugin by John Lindquist. Started by creating a new project using the angular-seed project and imported to WebStorm using File -> Open Directory. My directory structure looks like this
Now when I try to Debug it I get a 404 error. If I move the file app/index.html to the root folder and adjust all URL's to begin with app then it works fine. Is there a way to keep the default folder structure without moving the index.html to the root folder and also make it work with WebStorm?
I am using WebStorm 6.0.2.
I use WebStorm 7, so there might be some discrepancy in comparison with version 6 that you're using, but the over-all functionality is the same.
Quick solution:
Open the file in the editor and right click in the code to access the context menu. Choose the "Debug" option, which should start a debug session pointing to the current page.
Configuration solution:
WebStorm supports configurations for setting up different debugging scenarios. From the "Run" menu, choose the "Configurations" option. Add a JavaScript debug configuration, and add the URL you want in the designated field within the dialog presented.
Then, when you initialize a debugging session (a general one, not one for a specific page), you're presented a small dialog that allows you to choose a debug configuration.
Maybe there are more options or ways to accomplish the same thing as well, but I've never really given it more thought. I hope this is a working solution for you, but if not there's alway the documentation. If you need further clarification with regard to my answer, just give me a comment.