On Feb 10, 2013, at 19:40, Suraj Singh Thapa wrote:
As my requirement is,
-- When a user click refresh button I want this function to execute and
get the data and load it on index page.
-- But I do not want, process to send the whole page back to server. So
that user don't have
I am thinking of creating a refresh button because auto reload of webpage
might froze webpage until data is extracted from server to client and this
my annoy users.
Any suggestion or sample code are welcome.
On Tuesday, February 12, 2013 9:14:07 AM UTC+11, ryandesign wrote:
On Feb 10,
On Tuesday, February 12, 2013 5:21:17 AM UTC+7, s thapa wrote:
I am thinking of creating a refresh button because auto reload of webpage
might froze webpage until data is extracted from server to client and this
my annoy users.
Any suggestion or sample code are welcome.
In
Thanks asynqronic,
Following code,
*profiles3.js*
module.exports = function(callback){
var spawn = require('child_process').spawn,
ls = spawn('ls', ['-lh', '/usr']);
ls.stdout.on('data', callback);
ls.stderr.on('data', callback);
ls.on('exit', callback);
};
*index.js*
On Tuesday, February 12, 2013 9:06:22 AM UTC+7, s thapa wrote:
Thanks asynqronic,
Following code,
*profiles3.js*
module.exports = function(callback){
var spawn = require('child_process').spawn,
ls = spawn('ls', ['-lh', '/usr']);
ls.stdout.on('data', callback);
Hi,
* I have been exploring Node, Express and chiild_process since last few
days. I have a static module with data (some array) which now I know how to
show it to index page.
* I can launch linux command and gets its output/error using chile_process.
Now I need to know, How can I
I know this doesn't quite answer your question but I find your approach a
bit heavy for such (apparently) simple files to parse. Instanciating
objects for each state will not help performance if that's what your aiming
at.
This leads me to my shameless plug: you should have a look at my
It is true that it does not answer my question, but your answer makes me
ask more questions and review the logic and improve myself.
Your links will help me a lot I think.
Thank you.
Le jeudi 7 février 2013 10:15:44 UTC+1, Floby a écrit :
I know this doesn't quite answer your question but I
Hi people!
Ah, Ismael, now I have more context. And sorry for my English, too.
Well, your code reflects your ideas, and I didn't try it yet. But for the
final purpose, it looks a bit overwhelming. Try Floby's ideas.
The only difference in my position: you still don't need parse stream, so
you
Would like to help, but got lost in the information here.
What is it that you are trying to do again? :) Test a parser? It doesn't
matter what you use, it matters most the coverage you have.
Go find a similar parser in another language that has a ton of tests. Make
sure they all pass (e.g. I
Lots of information for me too :)
But I created a strings parser for XCode .strings file. In these files you
can found multilines comment /* */ or /** */, simple line comment // , and
strings key-value separated by '=' and ended by ';'.
For this parser I need events or callbacks when comments,
Ismael,
You will end up writing a lot of custom code for that, or at least I did.
Would be interesting to see if someone wrote a performance testing
streaming parser framework?
Hopefully :)
My code is MIT, so use all you want :) I also wrote a blog post about how I
made the performance
Hi,
I use Node.js for some months now and I created a module named
Node-StringsParser https://github.com/PinchProject/Node-StringsParser.
Since I started to learn the JavaScript language and Node.js 6 months ago,
I need some advice :
- how to test well the module
- on my code (if I code
So I need to parse .strings file. These files are created for the
localization of mobile application on iOS. A .strings file can contain
multiple lines comment (/* */ or /** */), simple line comment (//), keys
and the associated values (keyname = keyvalue;).
For this I thought about state
14 matches
Mail list logo