How can I view PDF's in nw.js? - node-webkit

Folks - I'm at a loss, I've followed the instructions as per the manifest here: https://github.com/nwjs/nw.js/wiki/Third-party-browser-plugins
I've included "plugin": true in the "webkit" section.
I've located PDF.plugin file from Chrome's Internet Plug-ins folder and added it to my nw.js app's {root}/plugins folder
I just can't view any pdf file. I keep receiving 'Couldn't load plug-in'
What am I doing wrong? Can somebody please offer some advice?

You can use PDF.js implementation such as ViewerJS.

Related

Location of YII extension folder

I am new with YII framework, and our problem is TO FIND THE EXTENSION FOLDER and we need a yii framerwork with a SLIDER.
Does anybiy know where the extension folder is?
Here is the link for the instructions
please see INSTALL corner.
Normally the extension folder (in yii1) is located in :
yourAppName\protected\extensions
I hope this is what you are looking for

404 in RESPONSIVE FileManager's Java Large File Uploader

With SocialEngine's RESPONSIVE FileManager-based file uploader, itself a plugin component for the rich text editor, we are having a problem whereby when a user clicks "JAVA Upload (big size files)" the uploader frame loads a 404 error.
In the error log, the following line is the only indication I have for this problem:
/filemanager/dialog.php?type=4&descending=false&crossdomain=1&lang=en&akey=key
So it's not immediately obvious what framework or plugin Responsive FileManager expects to encounter which it can't actually find, or for that matter, where it's looking to find it. (I have RTFM but there is nothing about configuring the Java uploader in the manual. I have also tried reading the dialog.php source code but I couldn't find anything particularly useful when I did so.)
It may perhaps be looking for the file wjhk.jupload.jar in the
filemanager/uploader/
directory. But I'm not sure why it can't find that file, or why it gets an error when it attempts to do so.
Surely I am not the only person to have this problem?
SocialEngine doesn't come with a Java uploader at all, and its largely advised against using java for file uploading on the web.
It sounds like work of a 3rd party plugin (that might be misconfigured?). Check all your plugin files and make sure they were all uploaded to your server. Its also possible that your host disallows .jar files as they tend to be vectors for abuse. So it is worth contacting them.
Finally, contact the original developer of the plugin with your issue.

can't able to run demos of dojo

Sorry if it's not the right place to ask this question as I am not sure that where to ask this question.
My problem is that I have downloaded the demos of dojo (from http://download.dojotoolkit.org/release-1.8.5/) and now as I open any one (demo.html) of them in my browser (in localhsot//)
I'm only able to see blank page with some text of demo(such as instructions or like that) but not the DEMO! I have read the README files included with the demo folder (for confirming any change in file source or path) but proved not helpful. I also tried with changing the included script path of dojo but failed.
As I am a beginner I don't know what's the problem..help me please.
The demos download only contains demos. The next step is to download the dojo toolkit. You can get Dojo 1.85 release at the same URL you provided above.
Download the toolkit, unzip it, and drag the dijit, dojo, dojox and util directories into the same directory as your demos folder. This should get you going.
The directory structure will resemble:
/dojo-release-1.8.5
--- demos/
--- dijit/
--- dojo/
--- dojox/
--- util/

Source Code missing in Cincom VIsualWorks 7.9.1 in Windows 8

I am running Cincom VisualWorks version 7.9.1 in Windows 8. When I open the class browser and view a library class, it fails to display the source, instead displaying an error comment like this:
" ***This is decompiled code.***
This may reflect a problem with the configuration of your image and its sources and changes files.
Please refer to the documentation and the settings tool for help in setting up the proper source
code files."
I have confirmed that the home path is pointing to the correct directory. How can I fix this?
The answer to this question depends on what code you're looking at. In VisualWorks, source code can be stored in a number of different places. For classes that are present in a clean VisualWorks image with no other code loaded, the source is in a file called visual.sou found in the image directory of the installation directory. As you mentioned, you need to make sure the home path is pointing to the correct directory. It doesn't point at the image directory itself but the directory above - for example, it would be C:\Program Files (x86)\Cincom\vw7.9.1 not C:\Program Files (x86)\Cincom\vw7.9.1\image.
For parcels you loaded, the source code is in a .pst file associated with the parcel. For any code you load from Store or write yourself, the source is in a .cha file in the same directory as your .im file and with the same name. If your image is visual.im then your code is stored in visual.cha.
You need to be very careful about the versions of the files you use. The visual.im file is tightly coupled to the visual.sou file and contains offsets into the .sou file. If you're using a visual.im from another version of VisualWorks, those offsets into the .sou file may not be correct and may produce this problem.
I hope this helps.

Resource file in iPhone app problem

I have an image which is added to the project. In the simulator it appears, but when I build for the device the resource is not included. I also started a new project and nothing. Please help me. What can be the problem?
Please check the extension of image file you are using. This happened with me , I was using .png format in project but file was in .jpeg format
Are you sure you copied the image into project, xcode ask to copy the file in project when you drag file in resource. Also check for your file name is correct (check for case sensitive ).
I deleted the image file and created a new file with the same image and it works... I think it was a bug of the file...