can't able to run demos of dojo - 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/

Related

Unable to find package location when creating application using yfiles-application generator

I am using the below documentation to get started with yfiles application.
https://github.com/yWorks/generator-yfiles-app
I am stuck with the 2nd question the generator asks "Path of yFiles for HTML package".
What is the default location of this package? Is this a package.json file?
Resolved the issue.
No where in the documentation/read-me did it mention that I had to download the package separately.
https://www.yworks.com/downloads
I had to download and unzip the contents. And this directory becomes the location of the package.

Official bzip2 site is offline

Recently, I found out, that the official bzip page has changed (http://www.bzip.org/index.html). I had a script, which took the source code from bzip.org and compiled it. Now, the source code and all other stuff are not anymore on this site.
I found, that there is a possible copy of that code at https://github.com/enthought/bzip2-1.0.6.
But I am unsure, if this is the real bzip2 code without any harmful changes. Is there another official bzip.org site or another site, where I can download the official source code?
You may still access the source from web archives
https://web.archive.org/web/20180624184806/http://www.bzip.org/downloads.html

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

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.

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.

docx4j: help converting docx to PDF

My goal is to take an existing .docx file and convert it, from a Linux command-line, to PDF using docx4j (http://www.docx4java.orghttp://www.docx4java.org). The "getting started" guide (http://www.docx4java.org/svn/docx4j/trunk/docx4j/docs/Docx4j_GettingStarted.html) refers to a samples directory that isn't actually included in the latest (2.8.1) package. Regardless, I located the samples directory in their SVN browser, created a 'samples/' subdirectory in my docx4j folder containing all the .jar files, and downloaded the CreatePdf.java file into the samples directory. Then I tried running:
java -cp docx4j-2.8.1.jar:log4j-1.2.15.jar org.docx4j.samples.CreatePdf my-file.docx
And I get the error:
Error: Could not find or load main class samples.org.docx4j.samples.CreatePdf
Any help would be greatly appreciated.
The samples are included in 2.8.1. Nothing has changed there, except the name of the sample, which is now ConvertOutPDF
Please try that instead.
btw, the SVN repository has been superseded since May. See docx4j-from-github-in-eclipse