[tw] Change IP server address

2014-09-29 Thread Jackson Pires
Hi!

How I can change the ip address and port from server listener?
It's possible to let the server listen any incoming request on a specific
port?

These my questions are because after I run the server (like below), and I'm
trying to request via browser from other computer on the same lan, the
server never response the resquest.

*~$ tiddlywiki sotipafwiki --server*
*Serving on 127.0.0.1:8080 <http://127.0.0.1:8080>*
*(press ctrl-C to exit)*

In other test I run the script:

*var http = require('http');*
*http.createServer(function (req, res) {*
*  res.writeHead(200, {'Content-Type': 'text/plain'});*
*  res.end('Hello World\n');*
*}).listen(1337, '127.0.0.1');*
*console.log('Server running at http://127.0.0.1:1337/'
<http://127.0.0.1:1337/'>);*

Then I get the same error, but when I change the ip address for nothing,
the resquests are accepted.


*var http = require('http');*
*http.createServer(function (req, res) {*
*  res.writeHead(200, {'Content-Type': 'text/plain'});*
*  res.end('Hello World\n');*
*}).listen(1337, '');*
*console.log('Server running at http://127.0.0.1:1337/'
<http://127.0.0.1:1337/'>);*


Sorry my noob questions, and sorry my poor english.


-- 
"Não sejas sábio aos seus próprios olhos..."
==


Jackson Pires de O. S. Júnior
~~~
Paulo Afonso - BA

About me: http://about.me/jacksonpires
Mania de Concurseiro: http://maniadeconcurseiro.com.br
Aulas de Ruby on Rails para iniciantes:
http://www.youtube.com/user/jacksonpiresjr

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Update fails

2014-09-26 Thread Jackson Pires
ok! I found 2 references when I use:


~$ whereis tiddlywiki
tiddlywiki:  /usr/local/bin/tiddlywiki /usr/bin/tiddlywiki
/usr/bin/X11/tiddlywiki

Then I delete the /usr/local/bin/tiddlywiki reference and then run
perfectly.

thanks!



On Fri, Sep 26, 2014 at 1:26 PM, Jeremy Ruston 
wrote:

> Hi Jackson
>
> It looks like you have an older version of TiddlyWiki installed in a
> folder that is on your path.
>
> Try typing "npm list" and check through the output to look for reference
> to TiddlyWiki 5.0.0-alpha.7, and then delete that copy.
>
> Best wishes
>
> Jeremy
>
>
> On Fri, Sep 26, 2014 at 1:23 PM, Jackson Pires 
> wrote:
>
>> Hi everybody!
>>
>> I'm trying to use TiddlyWiki with NodeJs, but something are wrong... Whe
>> I use the below comands nothing happens... Update not run.
>>
>>
>> ~$ tiddlywiki --version
>> 5.0.0-alpha.7
>>
>> ~$ ls -l /usr/bin/tiddlywiki
>> lrwxrwxrwx 1 root root 44 Set 26 09:08 /usr/bin/tiddlywiki ->
>> ../lib/node_modules/tiddlywiki/tiddlywiki.js
>>
>> ~$ cat /usr/lib/node_modules/tiddlywiki/package.json | grep version
>>   "version": "5.1.1",
>>
>> ~$ sudo npm update -g tiddlywiki
>>
>> ~$ tiddlywiki --version
>> 5.0.0-alpha.7
>>
>> ~$ cat /usr/lib/node_modules/tiddlywiki/package.json | grep version
>>   "version": "5.1.1",
>>
>> ~$ tiddlywiki mynewwiki --init server
>> Error: Missing command
>>
>>
>> Somebody can help me?
>>
>> PS: sorry my bad english.
>>
>>
>> []s
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to tiddlywiki+unsubscr...@googlegroups.com.
>> To post to this group, send email to tiddlywiki@googlegroups.com.
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Jeremy Ruston
> mailto:jeremy.rus...@gmail.com
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/Yz3TyjkGEdE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
"Não sejas sábio aos seus próprios olhos..."
==


Jackson Pires de O. S. Júnior
~~~
Paulo Afonso - BA

About me: http://about.me/jacksonpires
Mania de Concurseiro: http://maniadeconcurseiro.com.br
Aulas de Ruby on Rails para iniciantes:
http://www.youtube.com/user/jacksonpiresjr

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Update fails

2014-09-26 Thread Jackson Pires
Hi everybody!

I'm trying to use TiddlyWiki with NodeJs, but something are wrong... Whe I 
use the below comands nothing happens... Update not run.


~$ tiddlywiki --version
5.0.0-alpha.7

~$ ls -l /usr/bin/tiddlywiki 
lrwxrwxrwx 1 root root 44 Set 26 09:08 /usr/bin/tiddlywiki -> 
../lib/node_modules/tiddlywiki/tiddlywiki.js

~$ cat /usr/lib/node_modules/tiddlywiki/package.json | grep version
  "version": "5.1.1",

~$ sudo npm update -g tiddlywiki

~$ tiddlywiki --version
5.0.0-alpha.7

~$ cat /usr/lib/node_modules/tiddlywiki/package.json | grep version
  "version": "5.1.1",

~$ tiddlywiki mynewwiki --init server
Error: Missing command


Somebody can help me?

PS: sorry my bad english.


[]s

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.