Bitcoin Forum
April 27, 2024, 08:07:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 [1105] 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 ... 2557 »
  Print  
Author Topic: NXT :: descendant of Bitcoin - Updated Information  (Read 2761529 times)
chanc3r
Sr. Member
****
Offline Offline

Activity: 952
Merit: 253



View Profile
January 21, 2014, 04:48:40 PM
 #22081

I guess one option would be for someone to create a site that will host all avatars.

http://gravatar.com ?

why can't you just specify an avatar url in an alias and put it in the client profile.

trying to store avatar data in the alias is a bit crazy and limiting.

and one site - how decentralized is that?

Once once client dev comes up with a good solution all the other client devs will copy it hopefully Smiley

1714205224
Hero Member
*
Offline Offline

Posts: 1714205224

View Profile Personal Message (Offline)

Ignore
1714205224
Reply with quote  #2

1714205224
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714205224
Hero Member
*
Offline Offline

Posts: 1714205224

View Profile Personal Message (Offline)

Ignore
1714205224
Reply with quote  #2

1714205224
Report to moderator
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
January 21, 2014, 04:49:05 PM
 #22082

Any consensus been reached on how to get an avatar that matches to an account? I know there was some talk about this some time ago.
What do you mean?
do u mean avatar on bitcointalk?

No, an avatar mapped somehow to a Nxt account ID. (to be used in messaging apps)

Couldn't we convert a small image to a base64 string and insert it as an alias transaction? The downside here is blockchain bloat.

That's not necessary, an URL is good enough.

However, the issue is how do we know which alias refers to the specific account avatar? If we use a special format, that can be squatted by others.

I guess one option would be for someone to create a site that will host all avatars. User sends AM to site account with avatar URL in it, and then it's possible to do site.com/3434343434.png to get that account's avatar - or a default one if not specified. But this is centralized.

Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


NxtChg
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000


Simcoin Developer


View Profile WWW
January 21, 2014, 04:51:37 PM
 #22083

Yes, gravatar for account Ids.

I mean, why don't we just use it?

We can create a mail server and give users emails like "account@nxtmail.com" then clients can pull avatars from gravatar.

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
January 21, 2014, 04:53:53 PM
 #22084

Yes, gravatar for account Ids.

I mean, why don't we just use it?

Isn't that tied to email addresses only?
chanc3r
Sr. Member
****
Offline Offline

Activity: 952
Merit: 253



View Profile
January 21, 2014, 04:54:29 PM
 #22085


Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


Prefer to store a link to the avatar which any client can pick up.
Expanding on this...
How about this - all accounts automatically own the alias <account number>
This alias is locked to the account.
You use this alias to store in URI format a hierarchy of parameters for the person who owns the account - this can be set and managed though the clients - one of these is the avatar.


wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
January 21, 2014, 04:54:35 PM
 #22086

Yes, gravatar for account Ids.

I mean, why don't we just use it?

We can create a mail server and give users emails like "account@nxtmail.com" then clients can pull avatars from gravatar.

Don't see a point in creating a mail server when we have AM.
wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
January 21, 2014, 04:55:45 PM
 #22087


Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


Prefer to store a link to the avatar which any client can pick up.
Expanding on this...
How about this - all accounts automatically own the alias <account number>
This alias is locked to the account.
You use this alias to store in URI format a hierarchy of parameters for the person who owns the account - this can be set and managed though the clients - one of these is the avatar.



Yes, this would be the solution - if that alias of account number was locked and only the account itself can own it, then we can do this. If it is squattable, then it isn't possible to do.

CFB, what are your thoughts?
NxtChg
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000


Simcoin Developer


View Profile WWW
January 21, 2014, 04:56:33 PM
 #22088

Yes, gravatar for account Ids.

I mean, why don't we just use it?

We can create a mail server and give users emails like "account@nxtmail.com" then clients can pull avatars from gravatar.

Don't see a point in creating a mail server when we have AM.

Yeah, I guess it's better to store them on blockchain. Just need to figure out how to find them among all the messages in user account.

We need some sort of file system on top of AM, which will use AM as clusters and provide files.

Simcoin: https://simtalk.org:444/ | The Simplest Bitcoin Wallet: https://tsbw.io/ | Coinmix: https://coinmix.to | Tippr stats: https://tsbw.io/tippr/
--
About smaragda and his lies: https://medium.com/@nxtchg/about-smaragda-and-his-lies-c376e4694de9
Mistafreeze
Sr. Member
****
Offline Offline

Activity: 897
Merit: 284



View Profile
January 21, 2014, 04:57:03 PM
 #22089


Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


Prefer to store a link to the avatar which any client can pick up.
Expanding on this...
How about this - all accounts automatically own the alias <account number>
This alias is locked to the account.
You use this alias to store in URI format a hierarchy of parameters for the person who owns the account - this can be set and managed though the clients - one of these is the avatar.



I like it Smiley
wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
January 21, 2014, 04:57:43 PM
 #22090

Any consensus been reached on how to get an avatar that matches to an account? I know there was some talk about this some time ago.
What do you mean?
do u mean avatar on bitcointalk?

No, an avatar mapped somehow to a Nxt account ID. (to be used in messaging apps)

Couldn't we convert a small image to a base64 string and insert it as an alias transaction? The downside here is blockchain bloat.

That's not necessary, an URL is good enough.

However, the issue is how do we know which alias refers to the specific account avatar? If we use a special format, that can be squatted by others.

I guess one option would be for someone to create a site that will host all avatars. User sends AM to site account with avatar URL in it, and then it's possible to do site.com/3434343434.png to get that account's avatar - or a default one if not specified. But this is centralized.

Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".



This is also a good possibility! We would have to go through all aliases a user owns though, but this should be 1 time only. Still prefer the other solution with locked account alias id's.
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
January 21, 2014, 04:59:56 PM
 #22091


Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


Quoting myself... hah... Here's a better flow...

1. Nominate an account to act as the "avatar account". It's purpose is to receive AM and maybe define an alias to the account number.
2. Send an AM with the FileReader.readAsDataURL encoded image to the avatar account.
3. To find an avatar for an account look for the most recent transaction from the account to the avatar account.
4. Take encoded image and set to value of <img src="AM_DATA_HERE">. More on data urls
5. Rejoice.

* Avatars can be updated by sending a new AM to the avatar account.

nxt: 4915862015826193000

l8orre
Legendary
*
Offline Offline

Activity: 1181
Merit: 1018


View Profile
January 21, 2014, 05:00:08 PM
 #22092


I seem to be having issues with a few queries - eg:

http://holms.cloudapp.net:6874/nxt?&requestType=getAccountTransactionIds&timestamp=0&accountId=7126304194855053556

errorCode - 3
errorDescription - "account" not specified



Use "account" instead of "accountId".


Thanks, that did it! I think it slipped in when transferring the api from the wiki.

I also seem to have a problem with the deadline - docu says it should be in minutes. I get this reply for every request that has a deadline, sendMoney as well as placeOrder, etc ...

Do you see anything obviously wrong in the query below? Is maybe the 'REFTRANSACTION' to be dropped out of all queries? Thanks!

http://holms.cloudapp.net:6874/nxt?fee=1&secretPhrase=xxxxxxxxxxxxxx&requestType=sendMoney&amount=43&deadline=30&referencedTransaction=REFTRANSACTION&recipient=9998590259914237067
Mistafreeze
Sr. Member
****
Offline Offline

Activity: 897
Merit: 284



View Profile
January 21, 2014, 05:01:44 PM
 #22093

Any consensus been reached on how to get an avatar that matches to an account? I know there was some talk about this some time ago.
What do you mean?
do u mean avatar on bitcointalk?

No, an avatar mapped somehow to a Nxt account ID. (to be used in messaging apps)

Couldn't we convert a small image to a base64 string and insert it as an alias transaction? The downside here is blockchain bloat.

That's not necessary, an URL is good enough.

However, the issue is how do we know which alias refers to the specific account avatar? If we use a special format, that can be squatted by others.

I guess one option would be for someone to create a site that will host all avatars. User sends AM to site account with avatar URL in it, and then it's possible to do site.com/3434343434.png to get that account's avatar - or a default one if not specified. But this is centralized.

Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".



This is also a good possibility! We would have to go through all aliases a user owns though, but this should be 1 time only. Still prefer the other solution with locked account alias id's.

With locked alias account id's, we open a whole new ability to have an actual profile to go along with an account. could be very useful down the road.
wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
January 21, 2014, 05:02:18 PM
 #22094


Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


Quoting myself... hah... Here's a better flow...

1. Nominate an account to act as the "avatar account". It's purpose is to receive AM and maybe define an alias to the account number.
2. Send an AM with the FileReader.readAsDataURL encoded image to the avatar account.
3. To find an avatar for an account look for the most recent transaction from the account to the avatar account.
4. Take encoded image and set to value of <img src="AM_DATA_HERE">. More on data urls
5. Rejoice.


nxt: 4915862015826193000

I don't think there is an api call to filter AM's where recipient = X and sender = Y, right? (this should be added)..
chanc3r
Sr. Member
****
Offline Offline

Activity: 952
Merit: 253



View Profile
January 21, 2014, 05:02:23 PM
 #22095


Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


Prefer to store a link to the avatar which any client can pick up.
Expanding on this...
How about this - all accounts automatically own the alias <account number>
This alias is locked to the account.
You use this alias to store in URI format a hierarchy of parameters for the person who owns the account - this can be set and managed though the clients - one of these is the avatar.



Yes, this would be the solution - if that alias of account number was locked and only the account itself can own it, then we can do this. If it is squattable, then it isn't possible to do.

CFB, what are your thoughts?

Well if <account number> is currently squattable you could always release a 'special' that is not available in the current code like @<account number> or pick a prefix string that no-one knows when you do the code update guys Cheesy

BloodyRookie
Hero Member
*****
Offline Offline

Activity: 687
Merit: 500


View Profile
January 21, 2014, 05:03:48 PM
 #22096


Guys, u were talking about splitting the bounty to 4 parts. Did u come to a decision? If u r agree to split the bounty then I won't spend time on speedtests.

Well I wouldn't mind. We all spend a lot of time coding. I guess hoax and gimre don't mind too, but I haven't heard Jaguar's opinion yet.

Nothing Else Matters
NEM: NALICE-LGU3IV-Y4DPJK-HYLSSV-YFFWYS-5QPLYE-ZDJJ
NXT: 11095639652683007953
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
January 21, 2014, 05:05:43 PM
 #22097


Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


Quoting myself... hah... Here's a better flow...

1. Nominate an account to act as the "avatar account". It's purpose is to receive AM and maybe define an alias to the account number.
2. Send an AM with the FileReader.readAsDataURL encoded image to the avatar account.
3. To find an avatar for an account look for the most recent transaction from the account to the avatar account.
4. Take encoded image and set to value of <img src="AM_DATA_HERE">. More on data urls
5. Rejoice.


nxt: 4915862015826193000

I don't think there is an api call to filter AM's where recipient = X and sender = Y, right? (this should be added)..

Just call getAccountTransactionIDs for the account then loop and find the first one where recipient == avatar_account.


wesleyh
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
January 21, 2014, 05:06:33 PM
 #22098


Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


Quoting myself... hah... Here's a better flow...

1. Nominate an account to act as the "avatar account". It's purpose is to receive AM and maybe define an alias to the account number.
2. Send an AM with the FileReader.readAsDataURL encoded image to the avatar account.
3. To find an avatar for an account look for the most recent transaction from the account to the avatar account.
4. Take encoded image and set to value of <img src="AM_DATA_HERE">. More on data urls
5. Rejoice.


nxt: 4915862015826193000

I don't think there is an api call to filter AM's where recipient = X and sender = Y, right? (this should be added)..

Just call getAccountTransactionIDs for the account then loop and find the first one where recipient == avatar_account.



Yes, I know this is how its done currently - but that's horribly inefficient.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 21, 2014, 05:07:28 PM
 #22099

Yes, this would be the solution - if that alias of account number was locked and only the account itself can own it, then we can do this. If it is squattable, then it isn't possible to do.

CFB, what are your thoughts?

Squatting is allowed. Let's find another way.
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
January 21, 2014, 05:08:27 PM
 #22100


Upload the avatar to an AM using FileReader.readAsDataURL() and the encoded data can work inline in HTML.

Then use an Alias with a URI like "nxtavatar:AM_TRANS_ID_HERE".


Quoting myself... hah... Here's a better flow...

1. Nominate an account to act as the "avatar account". It's purpose is to receive AM and maybe define an alias to the account number.
2. Send an AM with the FileReader.readAsDataURL encoded image to the avatar account.
3. To find an avatar for an account look for the most recent transaction from the account to the avatar account.
4. Take encoded image and set to value of <img src="AM_DATA_HERE">. More on data urls
5. Rejoice.


nxt: 4915862015826193000

I don't think there is an api call to filter AM's where recipient = X and sender = Y, right? (this should be added)..

Just call getAccountTransactionIDs for the account then loop and find the first one where recipient == avatar_account.



Yes, I know this is how its done currently - but that's horribly inefficient.

You can limit the transactions with a timestamp - first to the date that NxtAvatars are introduced and then to last time an avatar was fetched. Transactions are now ordered so it should go quick.


Pages: « 1 ... 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 [1105] 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 ... 2557 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!