Problems with avatar's setup and to see followers.

90 views
Skip to first unread message

Rodrigo

unread,
Mar 6, 2014, 10:31:46 PM3/6/14
to twiste...@googlegroups.com
Hi guys!


Initially I tried to compile Twister in Windows following the guidelines in this page (link), but didn't getting success. So I'm using the bundle for Windows provided by @shift (thanks!).

Problem #1: Can't set my avatar. I pick the image, click "Save changes" and nothing happens. All the other profile's parameters can be set, except the avatar.

Problem #2: Can't see
any followers, nor mine nor of the other users. Same thing: click and nothing happens.

Is anyone else having the same problems? What can I do to solve them?

One more thing, how can I get statistics of the Twister net, like number of users, blockchain etc?


Thank you for your help.

Rodrigo

unread,
Mar 7, 2014, 6:05:06 AM3/7/14
to twiste...@googlegroups.com
Sorry, I made a mistake.

I'm using the bundle provided by Twister's team. The @shift's installer didn't work well here.

Miguel Freitas

unread,
Mar 7, 2014, 9:27:22 AM3/7/14
to twiste...@googlegroups.com
On Fri, Mar 7, 2014 at 12:31 AM, Rodrigo <odigo...@gmail.com> wrote:
Initially I tried to compile Twister in Windows following the guidelines in this page (link), but didn't getting success. So I'm using the bundle for Windows provided by @shift (thanks!).

If you could please post exactly where the guideline failed for you we may be able to help, no only you but other windows users as well!

Also, remind that compiling twister yourself makes it easier to upgrade to a newer version later. upgrading then becomes a matter of just repeating two commands ("git pull" and "make").
 

Problem #1: Can't set my avatar. I pick the image, click "Save changes" and nothing happens. All the other profile's parameters can be set, except the avatar.


Do you still have this problem?

Unlike other profile's parameters, avatar requires fragmentation of IP packets. It is possible (although unlikely) that some router would have problem with that. I think it is more likely that the fragmentation just increases the probability of your packet being dropped, and in that case trying again would work...

If you still have this problem please open an issue in our issue tracker.

 
Problem #2: Can't see any followers, nor mine nor of the other users. Same thing: click and nothing happens.

Is anyone else having the same problems? What can I do to solve them?


I have just added a FAQ entry for that.


 

One more thing, how can I get statistics of the Twister net, like number of users, blockchain etc?



see the command line interface (RPC) and also the debug.log file.

regards,

Miguel

 

Rodrigo

unread,
Mar 7, 2014, 11:08:33 AM3/7/14
to twiste...@googlegroups.com
Hi Miguel, thanks for your time!



If you could please post exactly where the guideline failed for you we may be able to help, no only you but other windows users as well!

I will make this soon as possible.



Do you still have this problem?

Yep! I'm facing this problem right now. I tried and tried many times but the picture insists in not stay on its place. :/

I figured out that is possible to configure profile via RPC commands in terminal, but is it too possible with the Windows Bundle? I really couldn't find the way to do that.



If you still have this problem please open an issue in our issue tracker.

Ok.



I have just added a FAQ entry for that.

http://twister.net.co/?page_id=25

Thanks.



see the command line interface (RPC) and also the debug.log file.

The same question above, RPC command line interface works with Windows Bundle?


And sorry for the inconvenience in GitHub repository (about translation to pt-BR). Think I got fix that. Please see #107.


Regards,

--Rodrigo

Miguel Freitas

unread,
Mar 7, 2014, 1:00:58 PM3/7/14
to twiste...@googlegroups.com
On Fri, Mar 7, 2014 at 1:08 PM, Rodrigo <odigo...@gmail.com> wrote:
I figured out that is possible to configure profile via RPC commands in terminal, but is it too possible with the Windows Bundle? I really couldn't find the way to do that.


Sure!

See runme.bat for the options you will need to pass (datadir, password etc). 

Then use the RPC commands as usual from your cmd prompt.

regards,

Miguel

Rodrigo

unread,
Mar 8, 2014, 5:27:41 PM3/8/14
to twiste...@googlegroups.com

See runme.bat for the options you will need to pass (datadir, password etc). 

Ok, I type the following in terminal and run. Twister is initialized.

> twisterd -datadir=./ -rpcuser=user -rpcpassword=pwd -rpcallowip=127.0.0.1 -daemon
>



Then use the RPC commands as usual from your cmd prompt.

That's the point, how i do that?

I tried the following, but without success. (Twister already running.)

> twisterd -help
Error: Unable to bind to 0.0.0.0:28333 on this computer. Twister is probably already running.
Error: Failed to listen on any port. Use -listen=0 if you want this.

idontsov

unread,
Mar 9, 2014, 6:40:37 PM3/9/14
to twiste...@googlegroups.com
Hi!

I tried the following, but without success. (Twister already running.)

> twisterd -help

Type the following at the command prompt to get help on the available RPC commands:
twisterd -datadir=./ -rpcuser=user -rpcpassword=pwd help

Rodrigo

unread,
Mar 10, 2014, 9:03:05 PM3/10/14
to twiste...@googlegroups.com
Thank you, Igor!

I got run the commands in Terminal with no error, but it didn't work anyway. I couldn't setup my avatar.

I give up.

Regards.

idontsov

unread,
Mar 11, 2014, 4:35:15 PM3/11/14
to twiste...@googlegroups.com
I got run the commands in Terminal with no error, but it didn't work anyway. I couldn't setup my avatar.

The following works for me:

1. Get current sequence number of the avatar resource:
twisterd -datadir=./ -rpcuser=user -rpcpassword=pwd dhtget vasyaPupkin avatar s

2. Update avatar resource:
twisterd -datadir=./ -rpcuser=user -rpcpassword=pwd dhtput vasyaPupkin avatar s '"img/tornado_avatar.png"' vasyaPupkin 42

It appears that the web client caches avatar images. I see avatar changes on the 'profile' page, but the timeline stuck with one of my previous avatars :)

Igor

RodrigoSamuel

unread,
Mar 11, 2014, 5:26:45 PM3/11/14
to twiste...@googlegroups.com
Hi Igor,

When I run this:

> twisterd -datadir=./ -rpcuser=user -rpcpassword=pwd dhtget rodrigo s

I get this:

error: {"code":-1,"message":"dhtget <username> <resource> <s(ingle)/m(ulti)> [timeout_ms] [timeout_multi_ms] [min_multi]\nGet resource from dht network"}


And, when I run the command to setup de avatar I just get this:

Imagem inline 1


Thanks.


--
You received this message because you are subscribed to the Google Groups "twister-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to twister-user...@googlegroups.com.
To post to this group, send email to twiste...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
RodrigoSamuel

Igor Dontsov

unread,
Mar 11, 2014, 5:44:16 PM3/11/14
to twiste...@googlegroups.com
> twisterd -datadir=./ -rpcuser=user -rpcpassword=pwd dhtget rodrigo s

You've missed the 'avatar' argument. Should be:
twisterd -datadir=./ -rpcuser=user -rpcpassword=pwd dhtget rodrigo avatar s

RodrigoSamuel

unread,
Mar 11, 2014, 7:07:10 PM3/11/14
to twiste...@googlegroups.com
Oops... You're right. ;)

Now
the image is uploaded to the network but does not appear in the HTML interface...


Thank you, Igor.


--
You received this message because you are subscribed to the Google Groups "twister-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to twister-user...@googlegroups.com.
To post to this group, send email to twiste...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
RodrigoSamuel

Igor Dontsov

unread,
Mar 11, 2014, 7:34:05 PM3/11/14
to twiste...@googlegroups.com
Do you use the file named "hole_in_the_street2.jpg" as your avatar?
Where is that file located? As far as I understand, the file should
reside inside the HTML client folder.
> You received this message because you are subscribed to a topic in the
> Google Groups "twister-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/twister-users/qUom2jL-L9o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

RodrigoSamuel

unread,
Mar 11, 2014, 9:49:45 PM3/11/14
to twiste...@googlegroups.com
Well, in fact, if I put the image in both "/html" and "/html/img" folders, the avatar really appears in HTML interface.

But, it will be propagated in the network? Or just the path "/html/hole_in_the_street2.jpg" will be propagated, kind of like a C pointer? In this case, other users may not see the avatar in their PC's.

I figured out in this thread, that the correct command to setup the avatar through RPC terminal should be like below. However this insists on doesn't work for me.

>twisterd -datadir=./ -rpcuser=user -rpcpassword=pwd dhtput rodrigo avatar s '"data:image/jpeg;base64,/9j/...Skf//Z"' rodrigo 21

idontsov

unread,
Mar 14, 2014, 4:41:47 AM3/14/14
to twiste...@googlegroups.com
Hi,

> But, it will be propagated in the network? Or just the path "/html/hole_in_the_street2.jpg" will be propagated, kind of like a C pointer? In this case, other users may not see the avatar in their PC's.

Yes. The avatar resource is simply a string. A client application can read that string and display the image. So, if you store a path to file, that file should be available on a client's machine, otherwise the client application will be unable to render avatar.

> However this insists on doesn't work for me.

This does not provide enough information to help :) What exactly does not work?

Rodrigo

unread,
Mar 14, 2014, 10:30:49 AM3/14/14
to twiste...@googlegroups.com

If I run the command with anything, like the path or even "", the change is accepted and goes to be propagated in the network.

But, if I run the command with the base64 string nothing happens, neither an error.

That's the problem.

idontsov

unread,
Mar 14, 2014, 3:48:15 PM3/14/14
to twiste...@googlegroups.com
Can you show the exact command?

пятница, 14 марта 2014 г., 18:30:49 UTC+4 пользователь Rodrigo написал:

RodrigoSamuel

unread,
Mar 14, 2014, 9:58:25 PM3/14/14
to twiste...@googlegroups.com
I showed it before:


> twisterd -datadir=./ -rpcuser=user -rpcpassword=pwd dhtput rodrigo avatar s '"data:image/jpeg;base64,/9j/...Skf//Z"' rodrigo 21

In place of the blue part a put the entire string of the image coded in base64 Do you want to see this too?



--

idontsov

unread,
Mar 15, 2014, 6:11:44 AM3/15/14
to twiste...@googlegroups.com
Yes, I want to see the exact command (full version, including the image data) so that I can run it on my machine and check if it works.




Reply all
Reply to author
Forward
0 new messages