HNHacker News
TopNewBestAskShowJobs

ben165

179 karma · joined February 2, 2019

submissionscomments
ben165··on Grumpy Website
Mhmm... if you don't want to make it selectable you need wonderful JS or tables to seperate it? Makes thing more complicated.

Just remove the line numbers, every editor can mark in block mode today. Some snippets won't work without further code anyways.

ben165··on Difficulties of providing a crypto payment system on your website
Yes, I inserted the imprint in both projects after you told me it's somehow hard to find.
ben165··on Difficulties of providing a crypto payment system on your website
Thanks for the insights.

Two questions

1) Bitcoin needs time to transfer. How did you approve the transaction? Instantly in hoping it will go through or had the costumer to wait?

2) The problem with new Stellar addresses is, that they need to be "funded". Your sending wallet has to recognize if this address is empty to run the right function (it's not a normal transaction). Most of the wallets can't do that. They wouldn't be able to transfer any funds. Have you had problems with that?

ben165··on Difficulties of providing a crypto payment system on your website
As I understood it you have an initial address when you create a wallet for example on a Litecoin core node.

All addresses you create after this initial address are deterministic depending on their position. It's like you add just a number to the first address. But they are all unique otherwise sb. would see these addresses belong to one wallet.

And because they are unique your daemon has to watch or compare incoming transactions with every address you created to monitor payments. I might be wrong, but otherwise how does it work?

ben165··on Difficulties of providing a crypto payment system on your website
This would be a web3 solution. Most of the people are far away of using a wallet extension. I looked into it, the programming is much more challenging.
ben165··on Difficulties of providing a crypto payment system on your website
It depends on the exchange provider. I use Kraken and they provide an unique address for every costumer. But I read some Exchanges require the memo field especially for Stellar addresses.

If you use a memo field and there is an error the order won't be found in the system. In this case, you can write a script which sends the funds back to the address - fees. In this case you don't lose money and you don't need humans to interact. A more difficult problem would be if sb. sends a wrong amount. Then you have to interact with the costumer.

Yes, you're right. Polling is bad but the easiest solution. The best one would be to listen to incoming transactions and take action if a new one comes in. I'm going to use this solution if I continue the project.

ben165··on Difficulties of providing a crypto payment system on your website
Sorry, just use the top "index" link to the main blog website. At the bottom you find the imprint and my contact details.

I'm going to look into the error need probably to catch it.

ben165··on Difficulties of providing a crypto payment system on your website
I did this in my first project. As I said, UTXO blockchains are intended to work like that. But with every address you create your daemon has to look for changes there. Your wallet file can grow like crazy if you don't built some spam protection in your system.

For blockchains with the balance model you actually use only one address. There are solutions for Stellar to provide an unique address but this is not implemented yet.

The memo tag/field is the way to go. But as I said, it isn't widely implemented.

ben165··on Difficulties of providing a crypto payment system on your website
The random number is just a temporarily solution. The ideal one would be to use the memo field with an unique random string which contains all kind of characters. With this option you would have infinite payments.

The number solution can be improved if you search in the database for "free" numbers. I set the maximum payment time to 12 minutes. In this case, you can offer 100 payments per 12 minutes. I should update the article with this information.

ben165··on Difficulties of providing a crypto payment system on your website
Yes, that's a big problem. You might harm your reputation including a Crypto payment option.
ben165··on 'Into The Wild' bus removed from Alaska wilderness
I'm somehow sad reading about it. It was one of my destinations ony my list. This guy inspired my to travel the world.

Thanks Alexander Supertramp :)

ben165··on 3D animation with sound in 64 bytes of assembler
This demo on YouTube: https://www.youtube.com/watch?v=CAAuIgjrZWY
ben165··on Inside Bill’s Brain
The sad thing is that the States aren't interested in this technology or why does it take so long to get it done there? It would be great to use waste material to get more energy out before burying it again. I'm from Germany, sadly thou, most of the people are to uneducated and scared to push atomic power station to the next level. Great documentation btw.
ben165··on Geocities Archive
Thanks for sharing this story. Sure, it is unpaid labour somehow. But it's also a chance to get more into responsibility and technology.
ben165··on Solving differential equations on a 6502 with Woz's floating point code
It's the easiest approach to solve the ODL: Euler Forward (yes, first order). The approximation could be much better and almost exact with a smaller step size. Runge-Kutta is used for higher ODL's, where the Euler method would fail (especially with periodic solutions).
ben165··on Decoded: GNU Coreutils
Nice project. Just looked for the source code of "yes" (https://github.com/coreutils/coreutils/blob/master/src/yes.c), cause it seems to be the easiest code to understand.

I didn't get it. Damn. Looks still complicated.

ben165··on Anybody else having issues with Airbnb?
If you search online you'll find many of these stories. AirBNB got already too big, it is really hard to talk to the customer service or get the money back if you're not happy. It's like Ebay, you need to be lucky nowadays.

I prefer booking over Booking.com if I'm not sure about the offer. It's sad where it went... And yes, it's often overpriced...

I'm traveling for a long time now, and all I can say is people are shit. I have seen rooms totally destroyed or made dirty by visitors. It goes also the other way around. If it's not mine, I don't care.

ben165··on Writing HTML in HTML
It's funny that people write a whole blog post about sth. which was normal in the early years of the web. I host my private programming website and travel blog, so I wasn't forced to change my behavior. I always write HTML code by myself.

The way to frameworks or generators was caused because of the site look changing. Doesn't matter on which page you are, you have always a menu provided with lots of links. The "Back"-button is not seen today anymore. How I miss these days guys, this is why I love exploring neocities from time to time :).

ben165··on SerenityOS – a graphical Unix-like OS for x86, with 90s aesthetics
Interesting project. How far are you away from including a native compiler/assembler?
ben165··on 25 Years Later: Interview with Linus Torvalds
>Bob: Is there any advice you'd like to give to young programmers/computer science students?

>Linus: I'm actually the worst person to ask. I knew I was interested in math and computers since an early age, and I was largely self-taught until university. And everything I did was fairly self-driven. So I don't understand the problems people face when they say "what should I do?" It's not where I came from at all.

This is a problem I don't understand too. If you are really into something you motivating yourself in doing things. You can see how stupid people are when you just read the questions on Stackoverflow today. Nobody seems to figure things out by themselves anymore.

Same with YouTube, when people explaining simple math things with extremely effort people complaining then that today's teachers are shit. But it's more your own lack if you're not able to imagine these thing inside your mind by yourself.

ben165··on Ask HN: Best way to put a database on the web?
Oh dear, I think your file is already too big to handle it easily. How big is the file?

First, get the data somehow to plain text. LibreOffice is maybe able to convert it to an CSV file. Otherwise you have to open it with Python (for example) to export the data to a text file or directly to a database.

Best way is to find a web hoster which allows you to make the database public. With this solution you can transfer the XLSX columns one by one (with Python) to your online database. After finishing change the database from public to local.

An easy UI in PHP isn't really a thing.