Bitcoin Forum
July 03, 2024, 12:22:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 [156] 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 ... 655 »
3101  Bitcoin / Project Development / Re: [ANN] Bitcointalk Giveaway Manager on: January 27, 2023, 08:03:04 PM
I might sound like an unknowledgeable jackass, but what is the problem with random.org and why can't it be used for all kinds of random draws?

I didn't know this website until now, but let me point a few things this tool can do (I don't know if random.org can do all of not  , but probably not all)

1 - code and results easily verified. No trust involved.
2 - it uses blockhash of a block to select multiple winners, which is already a culture of this forum for a long time.
3 - it allows anyone to share the results here in a simple URL.
4 - easy to use. Random.org is much more complicated as it is much bigger.
5 - you will always get the same winner no matter how many times you roll
3102  Bitcoin / Project Development / Re: [ANN] Bitcointalk Giveaway Manager on: January 27, 2023, 06:59:56 PM
I wouldn't shuffle the list of participants, it makes it harder to verify the result.

Yeah, this is certainly important. Easily verified by anyone who wants and always get the same result.
3103  Local / Português (Portuguese) / Re: Kevin Rose hackeado e algumas dicas de segurança on: January 27, 2023, 04:31:03 PM
Mas essa ideia de diversas carteiras é quase como a ideia de um celular pra ser roubado, tragico as vezes.

Mas se tu tiver uma carteira especifica para guardar seus NFTs e tudo que você não quer mover, talvez uma wallet para deixar a venda seus itens o que você quer expor e uma outra carteira para interagir com o ''mundo lá fora''. Assim, sempre que você comprar algo, só ai você vai interagir com essa carteira de hold. Se quiser vender e ter alguns valiosos expostos, vai lidar com a segunda carteira. É um trabalho né, mas essa máxima ja sabemos, se for pra ser seguro, vai ser uma merda e usar. C' La Vie.

Não é tanto trabalho assim.

A ledger nano oferece a opção de múltiplas carteiras utilizando uma passphrase. Daí você teria vários PIN registrados no mesmo dispositivo,  um pra cada carteira.

É bem eficiente, e teria reduzido o prejuízo consideravelmente nesse caso.
3104  Bitcoin / Project Development / Re: [ANN] Bitcointalk Giveaway Manager on: January 27, 2023, 04:11:18 PM
Nice work, bitmover! Smiley

Although it's not a big deal for this application, using the modulo operator like that will introduce a bias into the results (look up "modulo bias", if you're interested). One way to ensure a mathematically fair selection process is to generate a random number, and then (instead of applying a modulo operation to force it within range) throw it away and try again if it's not already in the range you need it to be in. A naive implementation of this "rejection sampling" would be very inefficient, so what you need to do is mask off some bits (based on the nearest enclosing power of two) and then apply the range check after that.


Hello PowerGlove.
Thank you a lot for pointing this out.

I believe you read this article, where the author make similar suggestions about this problem:

https://research.kudelskisecurity.com/2020/07/28/the-definitive-guide-to-modulo-bias-and-how-to-avoid-it/

The problem is that players who are in the first spots will more likely be winners than the ones in last (if we have more than 40 competitors), as pointed in the article.



As in this project I am not dealing with cryptographic schemes that could be attacked and things like that,  I believe I can make an easier way out for this bias.

I can just shuffle the list of competitors before applying the modulo operator.

As I need to always have the same result, I will not use the built in  shuffle function. I can use the blockhash decimal in a custom function to shuffle it.

Code:
competitors.sort((a, b) => 0.5 - blockhash_lastdigit/10);

This function will take move the item up or down depending if 0.5-blockhash_lastdigit is positive or negative.
It will shuffle the array.  

I will take a look if I can find a better way to shuffle it in a more random way.
(Good ideas here: https://stackoverflow.com/questions/16801687/javascript-random-ordering-with-seed)

I believe this will solve the problem in a much simpler way. What do you think?
3105  Local / Português (Portuguese) / Re: Imóveis: Comprar ou alugar? on: January 27, 2023, 01:06:44 AM
[Agora, vai dizer que é não rende? Claro que rende, caso contrario não haveria tanto investimento em imoveis.
Portugal é um dos países que tem sofrido muito com esse investimento estrangeiro, as casas estão a ficar com valores super altos e quem as compra são estrangeiros que nem moram cá.

Notem o perigo que esta Portugal a esse respeito: "Um alerta nacional": bolha imobiliária pode explodir e Portugal é o 1º na lista

Portugal tem  uma situação bem específica.

Qualquer pessoa pode investir em imóveis aí e comprar uma cidadania europeia , uns 500k euros se não me engano .

É um ótimo investimento para quem não tem a cidadania.
Mas se você já é português  não vejo porqje comprar um imóvel aí com o preço nas alturas (inflacionado de tanto estrangeiro comprando cidadania)
3106  Other / Beginners & Help / Re: Know any laptop wallets that have Google 2FA login? on: January 26, 2023, 09:05:49 PM
Also should have multichain capability to send USDT, USDC, DAI to and from exchanges like Binance, Kucoin etc

You are asking for just one software to :
1 - Login in your exchanges accounts (very unsafe imo, unless recommended by all exchanges you want to use)
2 - keep your coins in custody

Imo the problem you are facing doesn't really exist. You don't need a 2fa to use your bitcoin, this is not safe.

What you need is to learn how to handle your private keys properly  , by keep your money in YOUR custody.

As you are new to all this  I recommend that you buy a hardware wallet  (ledger or trezor)
3107  Bitcoin / Bitcoin Discussion / Re: controversial / possibly dangerous proposals for bitcoin on: January 26, 2023, 07:25:11 PM
It's a difficult line to walk.  On the one hand we want free, open and honest discussion.  But on the other hand, it would be wrong to produce an echo chamber or any form of gatekeeping.  There are also potential pitfalls surrounding collusion and corruption.

What bitcoin proposals do you regard as controversial or even harmful ? And why?

I believe that the most dangerous proposals are the ones which offer a trade-off with decentralization.

AFAIK, decentralization  must be protected at all costs, and this is the one thing that makes bitcoin valuable and useful.
3108  Local / Português (Portuguese) / Re: Kevin Rose hackeado e algumas dicas de segurança on: January 26, 2023, 07:22:09 PM
ele assinou uma transação em um site de phishing e ela transferiu de uma vez tudo que ele já tinha aprovado no opensea,
aparentemente

Difícil proteger uma pessoa dela mesma, né?

O cara assinou sem ler, foi enganado por um golpe, difícil a solução.

Uma multi-sig não mudaria nada nesse caso, ele iria assinar 3 vezes e ia perder tudo do mesmo jeito.

A única coisa que iria proteger ele, nesse caso, era ele ter dividido seus assets em diferentes carteiras, com diferentes Seeds. Isso eu faço parcialmente, e tenho cerca do meu stash de btc atualmente em 3 carteiras principais, nenhuma delas com mais de 50%.
3109  Economy / Services / Re: Selling premium domain names and offering commission for referred sales on: January 26, 2023, 07:05:14 PM
you should definitely write a list of domains that are the subject of your offer. also the age of the domain and your expected price. also, which registrar takes care of them.
in this case, escrow is mandatory due to the long period in which you can claim the domain back.
I also hope that you are not guided by the projected value of the domain assessed by Godaddy or a similar service. that usually has nothing to do with reality

100% agree.

Some people might get mistake and think that worthless domains are "premium" and are worth a lot of money, just because some website calculates it price.

Listing all domain names you are willing to sell is important @BenCodie.
3110  Local / Português (Portuguese) / Re: Imóveis: Comprar ou alugar? on: January 26, 2023, 04:23:09 PM
Mas, pode sempre vender e comprar noutro local.

O problema de fazer isso são os custos.

Vender um imóvel de 500 mil não é igual a vender 500 de ações ou de renda fixa.

Aqui no Brasil voce paga corretor (em torno de 3 a 6%), paga taxas de cartório (pelo menos 1%), mais gastos do imovel ficar vazio no processo e por aí vai.

Se estiver com pressa pra vender, ainda precisa vender mais barato para vender mais rapido. Da pra perder fácil 10-15% em custos numa venda. Dificil perder menos de uns 5%, só de custos.
3111  Economy / Games and rounds / Re: $50 in BTC Giveaway on: January 26, 2023, 03:13:08 PM
Does xLays look like someone trustworthy to you?

I don't even trust you neither. Run your own giveaway so you can do what ever you want. 🥺

You may consider using my tool for as  a trustless method to manager giveaways  https://bitcoindata.science/giveaway-manager

This way no one will say you are cheating, fake, etc....
3112  Local / Português (Portuguese) / Re: Formas de ganhar dinheiro em web3 sem investir on: January 26, 2023, 03:09:44 PM
1) bitcointalk

Quantidade de trabalho: 30 minutos até 5 horas por semana
Potencial de ganho: Normalmente 30-80 usd por semana pagos em btc (existem outliers como a campanha da Chipmixer)

prós:
òtima opção para quem gosta de ler e escrever
bom para os nerds (sim amigos e Rafa, nunca vi alguém que não é nerd como nós se animar de manter a consistência aqui)

contras:
demora pelo menos 1 ano para realmente atingir um rank mais alto.
não tem muita escala, o que se recebe pelas campanhas chega num teto.


30min por semana? kkkk
não vou nem falar quanto tempo eu fico aqui. Mas vai horas por dia ....

Uma coisa que da pra adicionar, é que é possivel receber um dinheiro alem das camapnhas aqui. Mas da um pouco mais de trabalho.

Tem muitos sorteios e outros pequenos serviços na aba Services (https://bitcointalk.org/index.php?board=52.0).

La da pra pegar mais um trocado, eventualmente alto. Outro dia voce podia fazer um review de um casino novo por uns 70 USD.
3113  Local / Português (Portuguese) / Re: Imóveis: Comprar ou alugar? on: January 26, 2023, 01:25:17 AM
Se usar o valor para uma casa própria, sabe que haverá um dia que deixará de ter essa despesa. Se sempre viver em casa alugada, não se vai livrar desse valor até ao fim da vida.

Esse ponto que levantei. Essa ideia é falsa, embora muitas pessoas falem isso e pareça certo a primeira vista.

Se voce morar na sua casa propria, não é gratis. Voce está gastando o dinheiro do aluguel da sua propria casa. Ela poderia estar alugada para terceiros e voce está gastando esse dinheiro para morar, e ele nunca será recuperado. Não interessa se voce vender ou não a casa depois.

Suponhamos que voce tem um imovel que vale 1 milhão.
Voce mora nele de graça, mas ele poderia estar alugado por 5 mil reais por mês.

Esse 5 mil reais por mês que voce deixou de ganhar é a mesma coisa que uma despesa.

É a mesma coisa de alugar um imóvel por 5 mil por mês. Não faz diferença no seu balanço patrimonial/financeiro.

Se voce morar la 10 anos, serão 600 mil a menos no seu bolso que poderiam ter vindo frutos desse aluguel.
Quando voce diz "Durante 8 anos paguei uns 41000€ em aluguer, dinheiro que nunca irei recuperar. " dá no mesmo de voce ter morado na sua propria casa.

A diferença, é que voce não tem esse capital parado hoje rendendo esse aluguel, e voce queria ter. mas isso não muda o custo de morar nesse imovel, mesmo que seu ou de terceiros.

Edit: Na verdade existe um ganho nessa conta, de voce ter o proprio imovel. É o valor do imposto, que voce paga quando está alugando, e voce é isento dele quando mora no seu proprio imovel.
Embora esse valor não seja suficiente para pagar a diferença de rentabilidade de um investimento em renda fixa no Brasil.
3114  Bitcoin / Project Development / Re: [ANN] Bitcointalk Giveaway Manager on: January 26, 2023, 01:09:35 AM
Tell me if you see any more bugs !
Now, it's possible that a participant wins more than once. It wasn't like this before the changes.

Edit:
I found another bug.
When I save the link, it doesn't save the target block. It's set to the current block again when I open the saved link.

Thank you.
I found the bugs. I guess all fixed now.
3115  Bitcoin / Project Development / Re: [ANN] Bitcointalk Giveaway Manager on: January 25, 2023, 11:16:36 PM
Bugs:
Now we have an integer (1 to 16777215) from the blockhash.
This should be:
0 to 16777215

For additonal winners, the past winners are removed from the list and one more digit is added from the blockhash. A maximum 50 was added to avoid bugs.
That's too much. The shortest block hash until now is:
Code:
0000000000000000000000005d6f06154c8685146aa7bc3dc9843876c9cefd0f
That's only 40 characters. To be (very) safe, you should probably limit it to about 30 winners if you keep the method of adding a digit. My preferred alternative: add a nonce for each winner: take the sha256sum of "blockhash+1" and use those digits. That gives an unlimited number of potential winners.

I did a test, and checked the first 3 winners: your math checks out Smiley

Thank you, very sharp. I made all your suggestions, already in production.

About this nonce alternative, I will take a look later.

Quote
Feature requests Cheesy
Can you add a "unique URL" and "future block" feature? Example: If I enter 4 usernames, I'd like to be able to pick a block in the future. That should give me an URL that I can share here, so participants can follow the giveaway.
Even if the block isn't in the future, a unique URL would be really cool to share the results.

I hade to use some cryptography to accomplish this, but it was easier than I expected.

I saved all the saved data in a variable and encrypted it using AES.
Then I saved this encrypted data in a unique URL.

As it is not sensible data, I just added the private keys in the script file.
When you load it, data decrypted and will fill out automatically.

Easily shareable!

Take a look:
https://bitcoindata.science/giveaway-manager/?U2FsdGVkX19E08GaMJDY1QNCMHlxQ4BoXO/TAEUSso0BHeEzziPww8wbM4/X+GHSUiyN6SPx0ilvAwu+//A7plknuyGUx/JgM/n8+qEoXeQzEisCo5zzepIskxTJefviVPRZwtFw6sUujNaJmlryVkWJ5t6eicz+NAemMECso3+8BS5hJ9k1qiZi/OtbyZFV0KR3BXxGKcZab+zKKDitPw==

Quote
To select the Target Block: can you show the current latest block (773565) instead of "1" to start with?

Done!!!




Tell me if you see any more bugs !
3116  Local / Português (Portuguese) / Re: Imóveis: Comprar ou alugar? on: January 25, 2023, 09:26:28 PM
Durante 8 anos paguei uns 41000€ em aluguer, dinheiro que nunca irei recuperar. E o dono desse imóvel, ganho mais de 29000€, depois dos impostos.

Outra forma de pensar nisso éque  se você tivesse o dinheiro desse imóvel rendendo em investimentos,  ele poderia ter superado o seu gasto com aluguel.

Por outro lado, se vc morar na sua casa você também nunca irá recuperar o dinheiro que você teria ganho alugando ela.

Viver custa dinheiro,  basicamente isso.
3117  Local / Português (Portuguese) / Re: BOMBA! Juiz decide que crypto dos clientes da Celsius é propriedade da empresa on: January 25, 2023, 06:01:53 PM
Esse é um ETF de renda fixa.

É um  fundo que compra dividas de empresas, recebe os juros e distribui entre os cotistas. E negocia os papeis dessa dívida em pacotes. No link que eu botei tem todas as informações, inclusive o yield no preço atual.

Por cada juro/dividendo recebido terei de pagar 28% de impostos, mesmo que seja apenas 1€.
Ou seja, ou tem um capital interessante investido, ou então pouco compensa o trabalho que é preciso para fazer a declaração as finanças (receita).


EDIT: O problema não é o acesso, mas burocracia envolvida em Portugal.

Esse ETF não paga nem juros nem dividendo. Ele é acumulativo ( os juros caem e o valor do papel aumenta), então voce esta isento desses impostos que voce falou.
3118  Local / Português (Portuguese) / Re: Imóveis: Comprar ou alugar? on: January 25, 2023, 03:25:53 PM
A gente tem visto o preço dos imóveis subindo e subindo e subindo nos último anos
hoje em dia me parece fazer muito mais sentido alugar um imóvel do que comprar

Só que ganha dinheiro com imóvel são corretores, imobiliárias e cartórios.
É meio que "chutar cachorro morto". Só quem investe em imóveis são pessoas com pouco conhecimento de finanças pessoais, pois sai muito caro ter o próprio imóvel.

Mas isso quer dizer que você não deve ter um? Não.

Assim como não vale a pena voce "investir" num carro, pois ele não valoriza no longo prazo, ele te serve pra outras coisas.

Quando voce compra um imóvel voce reforma e deixa ele como voce quer. Isso não tem preço.



vamos super que o imóvel que você quer comprar vale 500 mil, até barato pros dias de hoje mas facilita a conta

esse dinheiro investido na renda fixa pagando 1% ao mês/12% ao ano (sem considerar compounding pra simplificar de novo) dará 5 mil reais por mês
com 3 mil reais por mês provavelmente você já consegue alugar um imóvel como o que compraria e ainda sobram 2 para outras coisas.


Acho que está complicando a conta.

Um imóvel alugado rende em torno de 0,4 a 0,8% ao mês, e isso da em torno de  2500 reais por mês para aquele seus 500mil.
Supondo que o preço do imóvel corrija com a inflação, voce teria um rendimento bruto de uns 5% ao ano.

Contudo, voce precisa pagar 27.5% de imposto e ainda 10% para a imobiliaria.  Já estamos agora em 3,7% (arredondando pra cima).

Considerando que existem taxas extras praticamente todo ano, sua rentabilidade cai pra lá mais ou menos 3 a 3.5% liquido real ao ano (acima da inflacao).

Entao, com muita bondade, vamos botar que um imovel rende IPCA + 3.5 liquido no longo prazo, com riscos.

Com um grande risco de ficar desalugado vários meses, com muitas contas a pagar.

Uma bosta, quando comparamos com a renda fixa brasileira de baixissimo risco. Da pra pegar fácil coisa bem melhor, e deixar "alugado" por 20 anos.



"Ah, mas a minha mãe comprou um apartamento em 1995 por 300 mil reais e hoje vale 1.5 milhões".

Ja fez as contas do IPCA? Esse caso por exemplo teve desvalorização do imóvel.

https://www3.bcb.gov.br/CALCIDADAO/publico/corrigirPorIndice.do?method=corrigirPorIndice

Quote
Se quiserem dá pra mudar as ordens de grandeza, e quem está em crypto sabe que dá para ganhar mais de 12% ao ano.

Cripto não da pra compara com imóvel né. Voce tirou 12% na sua carteira de cripto ano passado? É muito improvável. Se tirou, foi uma exceção, pois tudo caiu. Só se foi com USDT ou day trade, e vamos lembrar que USD caiu com relação ao real ano passado.
3119  Local / Português (Portuguese) / Re: Tópico apagado on: January 25, 2023, 01:22:17 PM
Criei um tópico sobre nft que estão a oferecer no Twitter e apagaram. Podem dizer-me porque?

Seu tópico foi reportado como SPAM, pois voce botou um referral link. Eu que reportei.

Se todo mundo botasse ref links aqui para tentar ganhar um trocado e criando tópicos apenas com esse tipo de conteúdo, esse forum e as discussões aqui  não iriam valer nada.

Espero ter esclarecido.

Voce pode criar um topico semelhante com mais informações sobre NFTs e coisas do tipo.
3120  Economy / Games and rounds / Re: $50 in BTC Giveaway on: January 25, 2023, 12:49:40 PM
For contests like this in the future, I created this tool:

https://bitcoindata.science/giveaway-manager/

Here is the ANN thread: https://bitcointalk.org/index.php?topic=5436655.msg61652585#msg61652585

This tool allows the contest to be fair and easily verified.

Please refer to this tool in the next giveaways you join.
Pages: « 1 ... 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 [156] 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 ... 655 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!