I am using Playframework 1.2.4 and I have created a project that I would like to turn into a module since I am using this class in many projects. This class is just called TJUser, there you create and delete users among other things.
I created an empty project
play new testproject
Then I created a module inside the project
cd testproject
play new-module user
Then I copied my user class and views into user/app/controller/user and my views into user/app/vies/user and the same with models.
I also copied over the routes file from the project and placed that in user/conf
The project I made works. But I can't get my module to run. I don't know the next steps.
Hope someone can assist
I wrote a blog post about using modules. http://playframework.wordpress.com/2011/02/27/play-modules/
Hopefully it can help you with your question.
Related
I am new to WebRTC stuff. I cloned the webrtc_ios main branch, and I built the framework as instructed here with the python script for arm64. When I add this to my Xcode project as a framework, everything is fine. Project builds, I can import files using <WebRTC/...> syntax.
However, I need to use RTCMTLRendeder.h file. Building a framework with python script leaves some of the header files out. (When I take a look at WebRTC.h inside the built framework, I can see that this file is missing) How can I include all header files that actually exist inside /webrtc_ios/src/sdk/objc/components folder while building the framework? I can see RTCMTLRenderer.h and .mm files are in that folder before using the build script. When turned into a framework those files don't exist inside the framework anymore. Why? And is there any other way to actually copy those files into the project as well?
Turns out you need to create your own, long renderer class which does not inherit from RTCMTLRenderer at all if you want to render on Metal view manually in a Swift/ObjC hybrid project (at least this is how I solved it). That class does whatever RTCMTLRenderer does, and grabs pixel buffers from RTCVideoTrack through an RTCVideoView.
This is just about the worst way I can think of to navigate a project tree - having to click every directory.. every time.
How do I change this?
I think you are missing module. Each project has to have at least one module which will have links to your source code. A project without modules will list only files from the project folder. You can create a new module from existing sources in this menu File -> New -> Module from Existing Sources....
How can I share (or publish) a flohub graph like is done in this answer?
I need to be able to post a publically accessible project, and am willing to set up a server if needed.
Examples indeed only support a single graph for now. If your example uses subgraphs or custom components and is targeting NoFlo on the browser, another nice option is to make a public HTML build of it and host it somewhere (for example GitHub pages).
The noflo-browser-app repository has build automation setup for this, including pushing to GitHub. To use it, you need to do the following steps:
Fork noflo-browser-app
Set your project to use your forked repository path in project settings on Flowhub
Push your graphs and components to GitHub
Share the live mode URL
To make the automatic publishing of app builds to GitHub Pages work, you need to enable the project in Travis CI and provide a GitHub access token via the GH_TOKEN secure env var.
Also remember to tweak the component.json file to include whatever custom component libraries you need.
noflo-browser-app bundles the WebRTC runtime, so it should be quite easy to access.
Sharing is somehow magically implemented through github gists. This works with graphs using ONLY the built-in components. Here's how you do it:
create a github gist
copy the json for the graph you want to share and paste them into the gist. my main.json, for example.
name the gist file noflo.json (not sure if this is required)
copy the gist's id from the url, in my case it is ecf36f449034209b8c2e
form your share link like this https://app.flowhub.io/#example/<yourGistId> here is mine
This only works for projects which use standard components. This issue is tracked here
I am trying to use DTCoreText and I have followed the setup documentation to the T. Everything seems to be working find and my project builds correctly, however, when I try to import some classes to try them out in my view controller I get a file not found.
I didn't make any changes to this project for simplicity its a Single View bare bones template with DTCoreText configured to work with it after following the setup instructions on DTCoreText's github
I have posted a zipped version of my project here:
Is there something I am missing here?
Any and all help is greatly appreciated-
does anybody know, how i could create automatically a UML class diagram from an already existent iphone project. Is it possible?
Thanks in advance.
Yes, you can use Doxygen:
Install Doxygen (with MacPorts: sudo port install doxygen).
Get a script like this and change the first lines to match your configuration.
Download these files and edit the Doxygen file so it says HAVE_DOT=YES and UML_LOOK=YES.
It will then generate and install a docset that you can read from the documentation browser, or just right click and show contents from Finder.
Or, if you want a graph of dependencies check: https://github.com/nst/objc_dep It uses graphviz.
See also OmniGraffle of all things. If you open an Xcode project with it, it will generate a full class diagram. It can be fairly overwhelming for a large project.