Kylo plugin for UI is not working - angularjs

I would like to extend Kylo user interface. From documentation, i understood that I can use Plugin mechanism to add new features and I am referring to the examples available here.
I have built this example code and deployed the generated jar files to /opt/kylo/kylo-services/plugin folder and restarted the kylo-services.
But I am dont see any changes in the UI. As per my understanding, there should be a new group in left hand navigation pane but there are no UI level changes in the kylo UI.
I am using dladmin userid and logs (kylo-ui and kylo-services) really did not indicate any error.
Where can I see if the plugin is really picked up by kylo? Which logs tell me what is going on with this plugin? Any suggestions will be of great help.
Thanks
Gana

The mistake i did is copying kylo UI into /opt/kylo/kylo-services/plugin folder.
The generated jar files should go into different plugin folders.
Kylo Services plugin should be copied to /opt/kylo/kylo-services/plugin folder.
Kylo UI plugin should be copied to /opt/kylo/kylo-ui/plugin folder.
service kylo-services restart
service kylo-ui restart
And its my bad that i mistakenly copied kylo-ui plugin into kylo-services folder. After I copied into correct folders and service restart, I am able to find the UI changes.
Thanks for your attention.

Related

Can synchronised browser testing be achieved when the user script (Tampermonkey) is developed locally?

I am developing a user script (Tampermonkey) locally. When the local JS changes, I want to automatically refresh the target URL of the user script instead of a local HTML file.
How can this be achieved? I checked every command and configuration information, but did not find a solution, so I came to ask for help.
The method of developing UserScript locally is seen here. The answerer mentioned that browser-sync can be used, but I did not find a way to achieve it.
livereload can solve this problem very well, because livereload is implemented through browser extensions and local programs. When the file changes, the target URL can be refreshed immediately.
http://livereload.com/
https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei/related

Customizing CakePHP Plugins

So normally, if you are developing a web application you will have to create your own .css files. In my case, I used bootstrap to design my application and created my own .css files to suit my needs.
Recently, I just found this Report Manager plugin for CakePHP. I put my plugin in the plugin folder and loaded it on my bootstrap.php file. Everything went smoothly and I can create reports.
Now, this is my first time handling plugins. Since this Report Manager plugin is using the default CakePHP design, how can I apply the bootstrap and my own design to this plugin?
Read the documentation!
You can override any plugin views from inside your app using special
paths. If you have a plugin called ‘ContactManager’ you can override
the template files of the plugin with application specific view logic
by creating files using the following template
src/Template/Plugin/[Plugin]/[Controller]/[view].ctp. For the Contacts
controller you could make the following file:

Custom fonts not getting uploaded in Openshift server

I have developed an application which uses custom CSS3 fonts. But somehow custom fonts are not getting uploaded in the server. My application URL is http://techcurt-kshitiz.rhcloud.com and when I try to access custom font like http://techcurt-kshitiz.rhcloud.com/resources/css/LindenHill-webfont.eot, The requested resource is not available appears. Custom fonts are working fine in my local machine in every browser.
I have recreated my application but still the problem persists. I have been using Openshift since an year but never faced such issue. What can be the possible reason for it? Even .less file is not getting uploaded. I am using tomcat 6 server in Openshift. I am not able to find out any solution in Google.
Do you see the files on disk when you SSH to the gear?
Are the files checked into Git? It's possible that they are being ignored by git, and hence not uploaded. You can check that the file is in git with "git show master:" - if ignored it won't show up.
Otherwise, it could be something in your build - perhaps the files are getting deleted?
Finally my issue is solved by servlet-mapping .ttf and .eot files in my web.xml files. But I am not able to understand how come my application was running in local machine but not in server? How come thats possible?

Deploying AngularJS Seed application in WebStorm

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.

Ajax-Solr Installation

I am not able to set Ajax-Solr on my system.I did a bit of R&D on Ajax-Solr for the same .
I understood what it tries to do with the tutorial provided at https://github.com/evolvingweb/ajax-solr/ , but unfortunately, I am not able to able to set it up on my system.
I dont know how to integrate it with Solr. Into which directory of Solr instance does Ajax-Solr goes?(I know it doesn't matter where Ajax-Solr folder is kept but still just to to be sure)
I changed my solrURL to "http://localhost:8080/solr/" in reuters.js file.But still when i browse to "http://localhost:8080/solr/", it still shows the same backend Solr UI. (This may sound a kinda noobish)
Can you please suggest me how to get the Ajax-Solr front end UI ??
Please suggest something.
Thanks
Regards
ajax-solr is just HTML, CSS, and JS. You can open the demo index.html from your harddrive in a browser and it will work (i.e. no webserver!). When you deploy, you can use Apache, Nginx, Tomcat, whatever. If you can make your webserver display an HTML file, you can make it display HTML files that include the ajax-solr JS files.
You have to deploy the Ajax-solr web application either on jetty or on some web server or app server.
If you want to deploy this in jetty, you have to create a WAR file out of th. S reuters sample.
If you have Apache on your machine, you can copy this to the htdocs folder, for eg.

Resources