Hi,
On Wed, Oct 2, 2013 at 2:58 AM, Giant Elk <
flyinghor...@gmail.com> wrote:
> Are you planning on starting a Google+ page for NoFlo? Google+ is great for
> quick Q & A's and sharing best practices in short bursts.
We actually have one already:
https://plus.google.com/112372998187205178398/posts
And then of course there is the FBP G+ community.
> Can you post some screen shot, examples of the debugger output, i.e. $
> ./node_modules/.bin/noflo --debug graphs/ShowContents.fbp
http://i.imgur.com/0nltOP2.png
This graph (from the NoFlo getting started page
http://noflojs.org/documentation/) is pretty much as simple as it can
get... there are two nodes (read file and print output) that are
connected, and a filename to read gets sent as an IIP to the file
reader.
The debug output shows the sequence of packet events inside the NoFlo network:
* At startup the IIP ("DATA") gets sent to the IN port of the Read
node. This happens in three stages:
- CONNECT ("I'm going to send you data")
- DATA ("Here is one information packet")
- DISCONNECT ("That is all for now")
* The file reader receives the IP, and does a CONNECT to its outport
("I'm going to send you data soon")
* The the file reader reads the file asynchronously
* Once the file has been read, the file reader sends a begin
group/opening bracket containing the filename ("packets from now are
from this file")
* The file contents get sent as DATA
* The bracket/group is closed, and there is a DISCONNECT ("I've sent
all I have for now")
The console output is shown in debug before the DATA event as the
component receives that faster than the debugger does :-)
For comparison, here is the same simple graph in the NoFlo Development
Environment where you can also see the data passing through
connections using the edge inspector:
http://i.imgur.com/6z5vrcI.png
> Any plans for some easy to follow tutorials and examples along the lines of:
> - simple "Hello World". - a web site "Hello World". - a nice Twitter or Blog
> style tutorial like in the Ruby on Rails site. i.e. post a blog entry, and
> allow comments against the blog. Single user for simplicity. - a basic 2D
> game, like pong or space invaders, look at Codea on the iPad for some good
> examples, this is revolutionary (just clunky as it's tied to the iPad):
>
http://twolivesleft.com/Codea
Yeah, we're certainly interested in making more examples, especially
now that the latest iteration of NoFlo Development Environment makes
it easy to publish and load those as Gists.
Here is one quite recent one, a battery gauge for the AR.Drone:
http://noflojs.org/noflo-ui/#example/6733886
(a client-side NoFlo graph that talks to a server-side NoFlo graph
over WebSockets, that then talks to the AR.Drone using UDP)
> - mobile phone / tablet app: how can I get a NoFlo project to work on
> Andriod or iOS? I'm guessing a stand alone app wouldn't work, that Node.js
> would need to be on the server?
Right now NoFlo is constrained to JavaScript, which means that the
easiest way to build mobile apps with it is to do so using PhoneGap
(
http://phonegap.com/).
Actually, the NoFlo Development Environment is a client-side NoFlo app
(most of the logic is handled by various NoFlo graphs), and we've
already packaged it as an Android app using this technique.
Of course FBP is in no way limited to JavaScript and NoFlo. In the
long run there will probably be Java and ObjC FBP frameworks that are
compatible with NoFlo's network protocol so that you can use the NoFlo
Development Environment to build native mobile apps.
> The success of opensource projects is based on many factors, but 1 common
> thread of success is great tutorials and documentation (making it simple and
> easy for people to use it in real world projects).
<snip>
> Also, a screen cast would go a long way, showing off some of the things you
> can do. The YouTube videos of Ryan Dahl talking and demo'ing Node and the 10
> min blog video the Rails creator made really helped casual developers get a
> handle and build huge momentum for Node and Rails. If you can do something
> similar it would be greatly appreciated.
We're intending to make a lot more tutorials and other documentation.
However, I've been hesitant to do that so far because the tools are
still changing so rapidly. Once we have a more stable NoFlo
Development Environment it will make more sense to build examples.
> I'd be happy to help contribute to some NoFlo tutorials, as it would be a
> great way for me to learn more about how to use NoFlo in my personal
> projects, but need some guidance to get pointed in the right direction.
That would be awesome! Just let us know what you need :-)
> btw - as you can guess from the examples I'd like to see above, that I'm
> working on a web app & mobile app, that uses a database (like most web
> apps), something along the lines of LinkedIn. And various mobile apps from
> stand alone games and information type reader apps that are also stand
> alone. Right now I'm dropping Rails and starting up with Node/Express/Mongo.
> But I still want to see how for I can get with NoFlo, I think in data flows.
I think Kenneth recently made some examples on how to build REST
servers with NoFlo. I hope he'll publish those soon so you can have a
starting point.
> Giant Elk
/Henri