Best hosting option for audio library website


Since you posted the question in the VPS Hosting forum, I am assuming that you are looking for a VPS. Honestly, you would be better off with a dedicated server.

Do keep in mind that nothing is “unlimited” – you are looking for shared highly ontended bandwidth if you want to use a lot of inexpensive traffic.

signature – How can I sign transaction hex with Python library

I have a unsigned transaction hex. Now I want to sign this transaction input with my private key in Python. Are there any Python libraries?

Transaction Hex

010000000414ae2264cdbe754b9ae4be18d84bfeb4f578af553b9b9e4f9cb2303d04ee9e45000000001976a91458b6e991b45487df810f4d96d5315da739637f1788acffffffffec15d27b74516fefd921cecbe043ea63124d28a3903aef8fb1682ccc926b1c62000000001976a91458b6e991b45487df810f4d96d5315da739637f1788acffffffff9878f76e1424c1d1eeb6b15d06902dd8f0c78f9bdb61263e4ca3ae68c571a292000000001976a91458b6e991b45487df810f4d96d5315da739637f1788acfffffffffdac7f1c83b01a8924a8965d356b804c2608bc261fc18041116ddb4a143bc499000000001976a91458b6e991b45487df810f4d96d5315da739637f1788acffffffff0336150000000000001976a9141485d9d03b41aaa9dca7d70d7f63ff4a0826100e88ac00000000000000001e6a1c246698efc5d81b78ceadf3179316b5eb6cc5c2c347c0b7b42121a94e92180000000000001976a91458b6e991b45487df810f4d96d5315da739637f1788ac00000000

Decoded Transaction

{
   "txid":"6c521937d8fa889d71609ebed2e23b694cbca89778c8b8d967167e5a4c9d5b78",
   "size":381,
   "version":1,
   "locktime":0,
   "vin":(
      {
         "txid":"459eee043d30b29c4f9e9b3b55af78f5b4fe4bd818bee49a4b75becd6422ae14",
         "vout":0,
         "scriptSig":{
            "asm":"OP_DUP OP_HASH160 58b6e991b45487df810f4d96d5315da739637f17 OP_EQUALVERIFY OP_CHECKSIG",
            "hex":"76a91458b6e991b45487df810f4d96d5315da739637f1788ac"
         },
         "sequence":4294967295
      },
      {
         "txid":"621c6b92cc2c68b18fef3a90a3284d1263ea43e0cbce21d9ef6f51747bd215ec",
         "vout":0,
         "scriptSig":{
            "asm":"OP_DUP OP_HASH160 58b6e991b45487df810f4d96d5315da739637f17 OP_EQUALVERIFY OP_CHECKSIG",
            "hex":"76a91458b6e991b45487df810f4d96d5315da739637f1788ac"
         },
         "sequence":4294967295
      },
      {
         "txid":"92a271c568aea34c3e2661db9b8fc7f0d82d90065db1b6eed1c124146ef77898",
         "vout":0,
         "scriptSig":{
            "asm":"OP_DUP OP_HASH160 58b6e991b45487df810f4d96d5315da739637f17 OP_EQUALVERIFY OP_CHECKSIG",
            "hex":"76a91458b6e991b45487df810f4d96d5315da739637f1788ac"
         },
         "sequence":4294967295
      },
      {
         "txid":"99c43b144adb6d114180c11f26bc08264c806b355d96a824891ab0831c7facfd",
         "vout":0,
         "scriptSig":{
            "asm":"OP_DUP OP_HASH160 58b6e991b45487df810f4d96d5315da739637f17 OP_EQUALVERIFY OP_CHECKSIG",
            "hex":"76a91458b6e991b45487df810f4d96d5315da739637f1788ac"
         },
         "sequence":4294967295
      }
   ),
   "vout":(
      {
         "value":5.43e-5,
         "n":0,
         "scriptPubKey":{
            "asm":"OP_DUP OP_HASH160 1485d9d03b41aaa9dca7d70d7f63ff4a0826100e OP_EQUALVERIFY OP_CHECKSIG",
            "hex":"76a9141485d9d03b41aaa9dca7d70d7f63ff4a0826100e88ac",
            "reqSigs":1,
            "type":"pubkeyhash",
            "addresses":(
               "12sWrxRY7E7Nhmuyjbz4TtGE9jRewGqEZD"
            )
         }
      },
      {
         "value":0,
         "n":1,
         "scriptPubKey":{
            "asm":"OP_RETURN 246698efc5d81b78ceadf3179316b5eb6cc5c2c347c0b7b42121a94e",
            "hex":"6a1c246698efc5d81b78ceadf3179316b5eb6cc5c2c347c0b7b42121a94e",
            "type":"nulldata"
         }
      },
      {
         "value":6.29e-5,
         "n":2,
         "scriptPubKey":{
            "asm":"OP_DUP OP_HASH160 58b6e991b45487df810f4d96d5315da739637f17 OP_EQUALVERIFY OP_CHECKSIG",
            "hex":"76a91458b6e991b45487df810f4d96d5315da739637f1788ac",
            "reqSigs":1,
            "type":"pubkeyhash",
            "addresses":(
               "1965areciqapsuL2hsia2yKkRLfAsH1smG"
            )
         }
      }
   )
}

Update 1

Solved thanks to hartmut.

1 Install pybitcointools

git clone https://github.com/vbuterin/pybitcointools.git
cd pybitcointools
sudo python setup.py # I got an error in Python3. So I used Python2.

2 Sign by using pybitcointools

import bitcoin

def signAllIns(aTx, priv, nbIns=None):
    signedTx = aTx
    utxo = nbIns
    if utxo == None:
        utxo = len(bitcoin.unspent(bitcoin.privtoaddr(priv)))
    for i in range(utxo):
        signedTx = bitcoin.sign(signedTx, i, priv)
    return signedTx

deserializeHex = bitcoin.deserialize(HEX)
ins = deserializeHex('ins')
signedTx = signAllIns(HEX, PRIVATE_KEY, len(ins))

# Broadcast signedTx here

Apple Music "share song" not showing up when I have the same song on my local library on macOS Big Sur

How can I share the link of a song to a friend when I have the exact same music (matched) in my library?

The "share to" button simple does not show up.

As an example:

Apple Music share missing

Is the p5.js library worth learning?

In 2021 is a good idea learn p5.js or exits new alternatives?

How to create Asset Library (BaseTemplate = 851) in Sharepoint Online?

Been searching through the internet for a couple of days to no avail but how do you create Asset Library with BaseTemplate = 851 in modern sites for Sharepoint Online via the REST API V1.0 endpoint? I am able to create Lists, Document libraries & Picture libraries with no issues but when I use BaseTemplateId = 851 the REST endpoint is not accepting the payload.

data = JSON.stringify({
        "__metadata": {"type": "SP.List"},
        "AllowContentTypes": true,
        "BaseTemplate": 851,  
        "ContentTypesEnabled": true,
        "Description": "My list description",
        "Title": foldername
      
    })

headers.append("Authorization", bearer)
headers.append("Content-Type", "application/json;odata=verbose")
headers.append("Accept", "application/json;odata=verbose")
headers.append("X-RequestDigest", formDigestValue)
const options = {
    method: "POST",
    headers: headers,
    body: data
};

return fetch(folderPath + '/_api/web/lists', options)
    .then(response => response.json())
    .then(response => console.log(response))

BaseTemplate – 100, 101 & 109 are just working fine and I am able to create lists and document libraries. 851 is not working programmatically though I can create Assets Library manually ( I have activated Video and Rich Media Site Collection Features).

Any help here would be much appreciated! Thank you

Upload local folder structure (size upto 25GB) to SharePoint 2013 on premise document library

I want to migrate local folder which has upto 25GB of data (including documents and media files). Is there any free tool/script which I can use to upload data into SharePoint document library?

Manage permissions on library subfolder SharePoint 365

I’m using SharePoint form Microsoft 365

I have created site and added some members. I created a library on it, but I would like that only some persons have access to certain subfolders inside (not all site members). I have read about breaking inheritance, and granting excusive permissions on folders, but, as far as I can see, on 365 I can only do it at library level, not subfolder or item level.

Is there a way to perform this on 365, or using different libraries is the better (or even unique) approach to perform this?

Will moving a PDF and Word Document library to a CMS negatively effect SEO on site redesign?

I’m redesigning a website built on an outdated platform, going from Asp.Net Web Forms to Gatsbyjs. The site has a PDF and Word Document library that is stored locally on the web host, so a link to a pdf would be something like:

https://www.sitedomain.com/resources/filename.pdf

It would be much easier, and more dynamic for my client, to store the PDF’s and documents on the Contentful cms. However, I’m concerned whether Google will look negatively on these resources no longer being located on the domain itself.

Any info on this would be appreciated.

What type of database is best for a music library management model?

I am building an application for a client-server library management system where the server performs any library management functions such as adding a new album to the library, and the client is just an interface to the backend library.

I am trying to determine what type of database is best for my use case of modeling a music library. Initially, I was leaning towards a SQL database, such as postgresql, since my data has clearly defined relationships (tracks to albums, artists, etc.), but I am not sure how to best handle the design requirement of modeling custom or arbitrary data for tracks. For example, some people like to store a ‘mood’ for each of their tracks, optional plugins may store a specific identifier such as ‘musicbrainz_id’. It’s impossible to know ahead of time the full list of possible fields.

I’ve considered the options of custom fields in a SQL database, such as an EAV model, or using json, but if there are a lot of these types of custom/plugin-added fields, I wonder if using a document-oriented NoSQL database, such as MongoDB, is better suited.

The load on the server is most likely going to be read/query heavy, so I’d like my database to be optimal for such operations. I am not expecting a lot of concurrent requests on a single music library, but I think the possibility of concurrency rules out a database like sqlite.

Edit: If you downvote, please comment what I could do to improve my post, or if there is somewhere else my question would be better suited for.

2010 – Adding Pictures/Symbols with Hyperlink in a Document Library

Assuming you are using SharePoint 2013 (or newer) or O365, I’d suggest to create a custom link list which can be placed at the Document Library’s (view) page. The list should be based on Promoted Links app which is available out-of-the-box.

On your SharePoint site go to Site Contents > add an app > Promoted Links. Name as you like. Create new list items to your Promoted Links -list and remember to specify the Background Image Location with the URL to the picture you wish to have for your link.

Once you have your links ready, on your SharePoint site go to Site Contents > Document Library you’d like to place the links > Edit page. On the web part zone, click Add a Web Part and choose your Promoted Links -list. You can choose whether to show/hide the list’s title from the web part properties.

A working example:

A working example

Limitations:

  • Promoted links come with a fixed size of 150x150px
  • Promoted links do not have line breaks meaning if you have 8 links, they’ll all be in the same row. A workaround for this is to have two or more Promoted Link -lists placed above the Document Library’s view page.

The limitations can be altered with frontent customization, but that’ll require some extra work.