Apparently there is a version of ZF Tool for ZF2.
The tool should handle the following:
Module maintenance (installation, configuration, removal etc.)
Inspection of application configuration.
Deploying zf2 skeleton applications.
The problem is that the tools is itself installed as a module and the Usage described in the Readme does not provide "correct" details.
It mentions commands such as :
zf.php config [list]
but the zf.php command is not part of the tool and the doc does not provide information. Does anyone know if there is some dependency or other configurations that will make this tool useful?
I don't know. What I can do, is offer an alternative tool:
https://github.com/ebanolopes/zf2-module-generator
Currently (v0.0.1), it only supports adding new modules to your project.
Related
I'm trying to figure out how to properly setup an ejabberd project that allows for easy compilation of custom beam files- so far, we've been using an existing project that is cumbersome to manage, and uses erlide as the IDE.
I would like to set up the project in a way that I can use a more helpful IDE like vscode, and somehow streamline the compiling and copying of the beam files and updating the module on the server.
Writing code in Elixir is fine as well- I just want the project to be set up in a way that is dev friendly.
Apologies if the question is too broad, but I'm not exactly sure how else to best phrase it. If you feel like I'm missing something in my current flow, please let me know, as I've basically inherited this project. If there are any clarifications required, let me know as well.
Thanks.
easy compilation of custom beam files
somehow streamline the compiling and copying of the beam files and updating the module on the server.
If the task is about compiling and loading additional modules, a running ejabberd node can compile, load and start additional modules in runtime, see
https://docs.ejabberd.im/developer/extending-ejabberd/modules/#ejabberd-contrib
Usually the modules come from
https://github.com/processone/ejabberd-contrib
but you can tell ejabberd to download other modules from other git repositories, or you can copy modules source code and tell ejabberd to install them. And those modules can be written in Erlang or Elixir. Full example: https://docs.ejabberd.im/developer/extending-ejabberd/elixir/#elixir-module-in-ejabberd-contrib
Basically:
you write the module in your development machine, test it...
when happy with the source code, copy mod_whatever.erl to the production machine, $HOME/.ejabberd-modules/sources/mod_whatever as explained in the example mentioned earlier
run ejabberdctl module_install mod_whatever
In step 2, instead of copying the source code yourself, you can have a git repository just for your module, tell ejabberd the module's git URL, similarly to https://github.com/processone/ejabberd-contrib/tree/master/extra
BTW, for step 3, starting in ejabberd 22.10, there's a page in ejabberd webadmin to install and uninstall those modules (copying the files requires manual administration of course).
I would like to set up the project in a way that I can use a more helpful IDE like vscode
What a coincidence, these days I'm playing with VSCode variants (VSCode, VSCodium, Coder's code-server and Github Codespaces) and how to develop ejabberd using them. This is useful for step 1 that I mentioned earlier (write module and test it). If you are interested in ejabberd + VSCode, tell me.
I have done accordingly as shown in this below 2 tutorial
http://www.inmotionhosting.com/support/website/zend/installing-zend-framework
http://www.inmotionhosting.com/support/website/zend/testing-your-zend-framework-installation
But on the installation checker, I get the following error .
Zend Framework Installation Errors Tested
0 Exception thrown trying to access Zend/Loader.php using 'use_include_path' = true. Make sure you include Zend Framework in your include_path which currently contains: .:/usr/local/php5_3/lib/php
The following are the paths I tried to include in php.ini
include_path = ".:/usr/local/php5_3/lib/php/home/content/54/10750054/html/zf/library"
And
include_path = "/home/content/54/10750054/html/zf/library"
I get the same error either way.
For a start, there is no file Zend/Loader.php in ZF2. The "testing your Zend Framework installation" article appears to have been written for ZF1 (and not the most recent version of it).
Composer is the best way to install ZF2, and you should be doing this on your own machine (or development machine) rather than straight on to your production hosting. I'd suggest you see how you get on with the instructions in the main ZF2 docs: http://framework.zend.com/manual/2.3/en/user-guide/overview.html
My project is using a websocket server. Only for testing purposes, I also have an erlang websocket client implementation which resides in the test/ folder along with the tests.
Now, when I run the tests via rebar with {cover_enabled, true} in my rebar.config, I also get coverage reported for the modules of the websocket client. I don't want this in my reports.
Cover documentation says I should create a cover specification file containing {excl_mods, [websocket_client]}.
But how do I convince rebar to use this file?
Cover documentation:
http://www.erlang.org/doc/apps/common_test/cover_chapter.html
http://www.erlang.org/doc/man/cover.html
rebar:
https://github.com/basho/rebar
Ok, I asked rebar author #dizzyd.
It turns out that this cover option is not supported by eunit, which I use to execute my tests.
I recently installed SpringSource Tool Suite. And I want to start working with Grails projects. So, I went to the Dashboard -> Extension, where I saw two extensions: Grails (current production release) and Grails Support as in the image below.
But when I try to install them, I get the following errors :
Problems occurred while performing installation: Operation details
Operation details
Cannot complete the install because one or more required items could not be found.
Software currently installed: Shared profile 1.0.0.1340820181092 (SharedProfile_com.springsource.sts.ide 1.0.0.1340820181092)
Missing requirement: Shared profile 1.0.0.1340820181092 (SharedProfile_com.springsource.sts.ide 1.0.0.1340820181092) requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]' but it could not be found
What can I do to resolve this error ? Or are there any other options I can follow to install Grails extension?
Thank you!
I would switch to the new "Groovy/Grails Tool Suite" that was recently announced (see http://www.springsource.org/node/3582). Go to the standard download page at http://www.springsource.org/downloads/sts and click "Other Downloads >". Download the version for your OS under "Milestone Version - Groovy/Grails Tool Suite 3.0.0.M2".
It is a beta/milestone release but I've been using it since it was released and it's as stable as a final release so far. It's convenient since the Groovy-Eclipse plugin and the Grails support are already configured for you, in addition to the latest Grails (2.0.4). Any other plugins that you need from the standard STS can always be installed using the standard install/update procedure.
Yes, what #BurtBeckwith said. You should move to the new GGTS.
However, to address your particular problem, you installed STS into a read-only directory (or in C:\Program files). You need to re-install it somewhere else.
The Eclipse p2 installer cannot handle installing feature patches into a read-only directory. Groovy-Eclipse ships with a feature patch to extend the JDT compiler. I believe that this problem was fixed in the Juno release of Eclipse (4.2), which came out last week.
Deleting corresponding application from Windows memory removed the problem (Grails extension in SpringSource Tool Suite errors). Double running applications (earlier and new) could also be reason why GGS or STS sometimes cannot save .groovy files (with error message or without).
I find that browsing source code of open source libraries being used in projects is invaluable. Unfortunately, I find this difficult when developing with ruby on rails. I am accustomed to working inside IDE's that allow me to jump to the definitions of symbols, regardless of whether they are part of an external library.
I use Aptana Studio 3 on Mac OS X to develop, but would be willing to change IDEs for this feature.
I have explored https://github.com/fnando/gem-open as an option, but have yet to find a good editor to integrate this with. Can anyone recommend one? Anyone else have a good method for browsing the sources of gems?
Aptana Studio 3 has a command line launcher: studio3.
Add the following to your ~/.bash_profile:
export PATH="/Applications/Aptana Studio 3:$PATH"
export GEM_EDITOR="studio3"
Reload your existing shell environment: . ~/.bash_profile and then you can use gem-open with your preferred editor: gem open rails