Best way to build a Plugin system with Java

First you need an interface that all plugins need to implement, e.g. public interface Plugin { public void load(PluginConfiguration pluginConfiguration); public void run(); public void unload(); public JComponent getConfigurationPage(); } Plugin authors should then bundle their plugins into JAR files. Your applications opens the JAR file and could then use an attribute from JAR manifest … Read more

How to change the locale in chrome browser

Open chrome, go to chrome://settings/languages On the left, you should see a list of languages. Use mouse to drag the language you want to the top, that will change the order for the values in Accept-language of requests. If you still don’t see the language you prefer, it may be cookies. Go to cookies and … Read more

VIM ctrlp.vim plugin: how to rescan files?

From the documentation: <F5> – Refresh the match window and purge the cache for the current directory. – Remove deleted files from MRU list. This assumes you’re in ctrl-p mode already. Note that you can hit F5 in the middle of a query, i.e., you can type a few characters, find it’s not matching a … Read more

How can you display the Maven dependency tree for the *plugins* in your project?

The output via mvn -X will printout the information indirectly. Currently there is no other option to get the dependencies of a Maven-Plugin. Update You can use the following command to get a list of plugin dependencies (resolve-plugin goal from dependencies plugin): mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:resolve-plugins The shorter version is (and it is a bad habit to … Read more

How To Create a Flexible Plug-In Architecture?

This is not an answer as much as a bunch of potentially useful remarks/examples. One effective way to make your application extensible is to expose its internals as a scripting language and write all the top level stuff in that language. This makes it quite modifiable and practically future proof (if your primitives are well … Read more

Building a minimal plugin architecture in Python

Mine is, basically, a directory called “plugins” which the main app can poll and then use imp.load_module to pick up files, look for a well-known entry point possibly with module-level config params, and go from there. I use file-monitoring stuff for a certain amount of dynamism in which plugins are active, but that’s a nice-to-have. … Read more

Recommended add-ons/plugins for Microsoft Visual Studio [closed]

SmartPaster – (FREE) Copy/Paste code generator for strings AnkhSvn – (FREE) SVN Source Control Integration for VS.NET VisualSVN Server – (FREE) Source Control ReSharper – IDE enhancement that helps with refactoring and productivity CodeRush – Code gen macros on steroids Refactor – Code refactoring aid CodeMaid (FREE) – Code cleanup, organization and complexity analysis CodeSmith … Read more

How do I make CMake output into a ‘bin’ dir?

As in Oleg’s answer, I believe the correct variable to set is CMAKE_RUNTIME_OUTPUT_DIRECTORY. We use the following in our root CMakeLists.txt: set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) You can also specify the output directories on a per-target basis: set_target_properties( targets… PROPERTIES ARCHIVE_OUTPUT_DIRECTORY “${CMAKE_BINARY_DIR}/lib” LIBRARY_OUTPUT_DIRECTORY “${CMAKE_BINARY_DIR}/lib” RUNTIME_OUTPUT_DIRECTORY “${CMAKE_BINARY_DIR}/bin” ) In both cases you can append _[CONFIG] … Read more

“Gradle Version 2.10 is required.” Error

You need to change File > Settings > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home path On Mac OS, change the path in Android Studio > Preferences > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home Or set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties files field distributionUrl like this distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)