I am trying to implement CKWebSpeech in primefaces. I already have a CKEditor in my page. I have followed the below steps:
1. copied the CKWebSpeech folder under ckeditor/plugins folder.
2. Modified the config.js as mentioned in https://tech.ultranaco.com/webspeech/ckwebspeech
When I invoke the page, the editor is not displayed & I get the below error in my WildFly server console
[javax.enterprise.resource.webcontainer.jsf.application] (default task-9) JSF1064: Unable to find or serve resource, ckeditor/plugins/ckwebspeech/plugin.js, from library, primefaces
Can someone help me resolve this problem?
I tried to run my Yii2 application on Localhost, XAMPP for PHP 5.6.32 and Windows 8 but I got this error:
How do I resolve this problem.
Thanks
The problem mostly occurs when you don't start the server/Xampp on local with administrative privilege. Try to start Xampp from the control panel if you are on windows.
Alternatively, you can use the option to disable the symlink by adding the assetManager setting under the components section in your config file (for yii-advance app it can be the common/config/main.php or the config/web.php in the yii-basic app)
'components'=>[
'assetManager' => [
'linkAssets' => false
],
]
UPDATE
There could be a possibility that you get the above error while running any of the commands on the terminal like while contributing into the yii2 repo you have to run the command php build/build dev/app basic <fork> during which it creates a symlink and throws the above error, and after trying both of the above you still dont get it to work in that case you might have to use the default command prompt for the windows by starting it as an administrator and then run the above command.
In case you are in development mode I recommend you to leave the 'linkAssets' parameter set to 'true' so you don't have to delete the assets every time you make a change. (In production it is recommended to set it to 'false').
To solve your problem run xampp as administrator:
To run the control panel as administrator, you can right click on the shortcut icon (Start > XAMPP > XAMPP Control Panel) and choose the option "More > Run as administrator". I leave you a link where it is better explained: Execute xampp as admin
We are developing a web application using AngularJS and ASP.NET Web API. There is a dev machine set up with GoCD that deploys the app after every commit to dev branch in our github repo. We are using gulp to build the frontend but after the last commit one of the tasks fails to complete.
It's pretty clear that this particular commit has nothing to do with it since it's a trivial 9 lines of css fixes. Against all logic we decided to revert but it didn't help. Gulp completes fine on Windows 10 and Linux but fails on Windows Server 2012. It's not clear why, as it was working perfectly fine for 3 months.
The task that fails:
gulp.task('partials', function () {
return gulp.src([
path.join(conf.paths.src, '/app/**/*.html'),
path.join(conf.paths.tmp, '/serve/app/**/*.html')
])
.pipe($.minifyHtml({
empty: true,
spare: true,
quotes: true
}))
.pipe($.angularTemplatecache('templateCacheHtml.js', {
module: 'portal',
root: 'app'
}))
.pipe(gulp.dest(conf.paths.tmp + '/partials/'));
});
The angularTemplateCache fails with the error message that it cannot find '..src/app/templateCacheHtml.js' but this is the file that it is supposed to create and then move to '/partials/templateCacheHtml.js'.
We've tried to find some clues as to what causes it but there is nothing even remotely connected to that problem. It works perfectly on our local machines.
There is an open issue on GitHub discussing this exact problem: https://github.com/miickel/gulp-angular-templatecache/issues/124
Apparently gulp-header (a dependency of gulp-angular-templatecache) was updated yesterday that seemed to break the plugin.
Add the following to your package.json:
"gulp-header": "1.8.2",
and run "npm install" should fix the problem.
Hi I am using Hudson for source code management. I am able to correctly download the required code from my feature branch and successfully build it.
But I also require to trigger an .exe file once my build has been successful which I am unable to figure out.
Do I have to use some plugin or there is some other way? If it is a plugin please specify how to set up.
Additional Details: I can trigger the exe perfectly from the command prompt but when I write the same command in the Build step of my job, I just get a "Finished: Success" message but not exe has been triggered
You can use Post build task plugin : http://wiki.hudson-ci.org//display/HUDSON/Post+build+task.
To add this plugin in your project, just search for 'post build' on plugin's search page and install it.
After that you can configure on your job's page. It will appear a checkbox with this label: 'Post build task'.
I'm currently trying to learn HTML and Java EE Servlet programming. I have an application server running on my local machine (Orion Application Server) and I'm connecting to web pages I've deployed on this server using a browser running on the same machine, directed to http://localhost/mypage.htm (for example).
I know W3C has a site you can go to that will validate an HTML page (and count how many errors are found for a given doctype), but that has to be a publicly available URL. How do you validate HTML on a locally running setup like I've described above?
many options:
see installation of w3c validation service:
http://validator.w3.org/docs/install.html
Firefox addons:
Firefox addon or other tool to locally validate HTML pages
https://addons.mozilla.org/en-US/firefox/addon/249/
Offline validator:
http://htmlhelp.com/tools/validator/offline/index.html.en
You can download a vnu.jar release for checking HTML5 documents offline:
https://github.com/validator/validator/releases/download/latest/vnu.jar
Alternatively, you can install it using any of the following:
docker run -it --rm -p 8888:8888 ghcr.io/validator/validator:latest
npm install vnu-jar
brew install vnu
pip install html5validator
See https://validator.github.io/validator/ for more details.
If you're using firefox, this plugin is perfect:
http://users.skynet.be/mgueury/mozilla/
I use it all day. When you view source it shows you a list of errors and highlights them for you.
A command line tool for validating a folder of html files: https://github.com/svenkreiss/html5validator
It integrates with CircleCI and TravisCI and can be used for validating Pelican and Jekyll sites.
Perhaps the most straightforward way to do this, is the way I do it all the time. "View source" of the web page, select it all (ctrl+a), choose "copy" (crtl+c), tab over to the validator, and its "direct input" option, and paste it in (ctrl+v). Easy, peasy.
On Mac, install w3validator by homebrew brew install vnu. Then check your local site by vnu http://localhost/site or any local file by vnu path/to/your/file.html (From Bluu answer)
If you're using node you may use package html-validator
const validator = require('html-validator')
const fs = require('fs')
var options = {
format: 'text'
}
fs.readFile( 'file-to-validate.html', 'utf8', (err, html) => {
if (err) {
throw err;
}
options.data = html
validator(options)
.then((data) => {
console.log(data)
})
.catch((error) => {
console.error(error)
})
})
http://validator.w3.org/#validate_by_upload if you don't mind uploading the HTML source file.
http://getfirebug.com/ if you're running Firefox can help with HTML validation issues as well.
if you have internet connection and want to use https://validator.w3.org/ for localhost without installing, you can use ngrok
reference : https://academy.byidmore.com/post/W3C-Markup-Validation-for-Localhost-5bc942eb3704302c0986bd60
You can run the tool on your local with docker just by using the command below.
docker run -it --rm -p 8888:8888 ghcr.io/validator/validator:latest
After running it with docker, when you go to 127.0.0.1:8888 you will see the validator tool. When you try to validate a url and if you get such an error like IO Error (Connection refused) then you can try installing vnu with brew by using the second command below.
brew install vnu
I tried it with docker and I got IO Error. Then I tried it with brew and it was successful. After you install it with brew, now to check a url you should run the command below.
vnu http://localhost/page-to-test/
Just replace the url with the one you want to validate with the tool.