Avatar
Kerb
3b3f085dd136777561483f37285791366e0fc342f652d3b002bc3d6af7123d3e
software developer | aspiring bodybuilder | fueled by tacos | #bitcoin

Has anyone spent double the price to just get a Raspberry Pi? Literally, impossible to get one without having to shill out the premium. Intel NUCs are just too expensive as well, but seem available.

You could zap me some to help. :D

Holding 0.28 BTC means you have more BTC than 99% of the world’s population can ever own.

Hello Umbrel...

#[0]

Installing Umbrel...

#[0]

Nice. I am going to have to consume that information later on today on my down time. Thanks for providing the info.

Interesting. I was trying to understand the difference between an octet and a byte. Both mean the same thing essentially (8-bits). However, octet is used to remove any ambiguity.

The byte, is typically used to describe storage units that vary in sizes. Octet, is common in telecommunications and networking contexts.

So, the difference between octet and byte is mostly in the usage and context. They both refer to eight bits, but octet is more specific and unambiguous than byte.

Javascript examping of encoding to a TLV (tag-length-value)

function encodeTLV (tag, value) {

var buffer = []; // array of bytes

if (tag > 0xFF) { // check if tag is multi-byte

do {

buffer.unshift(tag & 0xFF); // write last byte of tag

tag >>= 8; // remove last byte of tag

} while (tag); // until tag is zero

buffer[0] |= 0x80; // set bit 7 of first byte of tag

} else {

buffer.push(tag); // write one byte for tag

}

var length = value.length; // get length of value in bytes

if (length > 0x7F) { // check if length is multi-byte

var bytes = Math.ceil(Math.log2(length + 1) / 8); // number of bytes for length

buffer.push(0x80 | bytes); // write one byte with bit 7 set and number of bytes for length

for (var i = bytes - 1; i >= 0; i--) {

buffer.push((length >> (8 * i)) & 0xFF); // write more bytes for length

}

} else {

buffer.push(length); // write one byte for length

}

buffer = buffer.concat(value); // append value bytes to buffer

return Buffer.from(buffer); // return buffer as a Buffer object

}

Javascript example of parsing a TLV (tag-length-value)

function parseTLV (buffer) {

var offset = 0; // current position in buffer

var tlvArray = []; // array of TLV objects

while (offset < buffer.length) {

var tag = buffer[offset++]; // read one byte for tag

if (tag & 0x1F === 0x1F) { // check if tag is multi-byte

do {

tag = (tag << 8) + buffer[offset++]; // read more bytes for tag

} while (tag & 0x80); // until last byte has bit 7 cleared

}

var length = buffer[offset++]; // read one byte for length

if (length & 0x80) { // check if length is multi-byte

var bytes = length & 0x7F; // number of bytes for length

length = 0; // reset length to zero

for (var i = 0; i < bytes; i++) {

length = (length << 8) + buffer[offset++]; // read more bytes for length

}

}

var value = buffer.slice(offset, offset + length); // read value bytes

offset += length; // update position in buffer

tlvArray.push({tag: tag, length: length, value: value}); // add TLV object to array

}

return tlvArray;

}

Currently working on how to parse a TLV (type-length-value) using Javascript. The concept seems easy enough.

https://en.wikipedia.org/wiki/Type%E2%80%93length%E2%80%93value

Bitcoin is money without banks or boundaries. Free your wealth and mind.

The government is corrupt and greedy

They bail out the banks with our money

They print more and more to cover their debts

They devalue our currency and cause inflation

But we have a solution, we have a revolution

We have Bitcoin, the decentralized money

We have Bitcoin, the peer-to-peer network

We have Bitcoin, the digital gold

Bitcoin is transparent and fair

Bitcoin is scarce and valuable

Bitcoin is secure and immutable

Bitcoin is open and global

Bitcoin empowers us to be our own bank

Bitcoin enables us to transact without intermediaries

Bitcoin liberates us from the tyranny of fiat money

Bitcoin inspires us to create a better world

The government can't stop us, the banks can't control us

The government can't censor us, the banks can't exploit us

The government can't manipulate us, the banks can't inflate us

The government can't defeat us, the banks can't compete with us

We are Bitcoiners, we are pioneers

We are Bitcoiners, we are visionaries

We are Bitcoiners, we are leaders

We are Bitcoiners, we are savers

Join us in this movement, join us in this mission

Join us in this innovation. join us in this revolution

Join us in this opportunity. join us in this community

Join us in Bitcoin. join us in freedom

I don't believe we have a say in that. It's just better to put your money in hard money (bitcoin, gold, silver) to prevent such a thing.

Silicon Valley Bank, collapsed after it ran out of cash to pay its depositors. The bank had been struggling with bad loans and lawsuits from tech companies that accused it of fraud and mismanagement.

Banks can fail for various reasons, but the most common one is when they become insolvent, meaning they lack the funds to cover all of their customers’ deposits and the money they owe to others. This might happen because the bank loses too much on its investments, has problems refinancing its debt, or faces a sudden withdrawal of deposits by customers who lose faith in the bank.