Categories
Mastering Development

Sort a range of values in Python [closed]

I have a range of Salaries in a list in Python sth like this [‘10,000-15,0000′,’2,500’-‘3,000′,’5,000-7,500’]. I would like to sort this list asc but if try list.sort() it doesnt sort the proper away because the objects in list are strings.Ι cant convert to int and sort because of the ‘-‘

Categories
Mastering Development

Logarithmic Range Input Slider – Increasing Steps in Thresholds

Summary I need a range input with numbers from 1,000 to 10,000,000. Due to the large range it can’t be linear. So each time the decimal length increases (e.g. from 1000 to 10000) the steps should also increase. #——————–#——————–#——————–#——————–# 0 1000 5000 9000 10,000 56,498 100,000 500,000 1,000,000 10,000,000 Failed attempts I already tried to […]

Categories
User Help

Max read/write speed of a SATA 3.0 HDD rated at 6.0Gb/s?

What is the actual max read/write speed for a SATA III 6.0Gb/s Hard Disk Drive realistically? I know what 6.0gb/s means, it means six gigabit per second, the giga- prefix uses SI decimal definition, which means 1,000,000,000, and it is 1,000 times a mega- and 1,000,000 times a kilo-, but computers use binary and use […]

Categories
Database Development

Postgresql index stops being used after time, gets picked back up after re-creating

I’m confused as to what exactly is going on here. Hoping someone can provide some insight. Why did the index stop being used after time? Why does re-creating it work? Would there be a better index? At the start I want to already say: thanks to anyone who takes a look or leaves a suggestion. […]

Categories
Mastering Development

Theoretical limit to how many API requests AWS API Gateway can handle?

How big can AWS API Gateway scale? I’m wondering how is it able to handle such large volumes of API requests? Under the hood it has to translate the request and see what endpoint its going and potentially do any validation on the headers so this takes some compute power. Is there any theoretical limit […]

Categories
Database Development

partitioning comments table based on id

I have a website where people can leave a comment on blog posts. The comments are growing fast, and I want to partition the table ‘comments’. I’m pretty new with postgresql and I’m trying to learn. My code so far: — create sequence CREATE SEQUENCE comments_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO […]

Categories
Bitcoin Cryptocurrency Mastering Development

Is there a webpage that provides a JSON or CSV or VCALENDAR file for Bitcoin price predictions?

Various people have made various Bitcoin price predictions, and continue to make them. There are webpages which talk about them in English text, but where is one which has it in a computer-parseable format? I want such a thing so that I can automatically insert these predictions into my calendar and "Bitcoin overview" thing which […]

Categories
Ask Games Video Games

What mining resource will make the most money? Elite Dangerous

I’m core mining in an Asp Scout. Been doing pretty good, made three runs with an average profit of 2,000,000 credits per run, mining one asteroid per run. I’ve pretty much figured out the mechanics of core mining, but I am trying to figure out which resources I should be searching for. So far I’ve […]

Categories
Ask Electrical Engineering Engineering

How to calculate bias resistor values to drive IR diode

I’m creating a circuit to do communications via a digital serial infrared link. My requirements are for the link to support relatively high speeds (maximum serial bit rate is 4,000,000 bps or 4Mbps) and for it not to draw a unreasonable amount of power; both requirements derive from the fact that I’m intending to drive […]

Categories
Cryptocurrency Ethereum Mastering Development

If crypto art is stored off-chain, how does the collector have any control over their NFT’s contents if the server where it is saved shuts down?

CryptoKitties essentially sells crypto art NFTs to collectors on the Ethereum blockchain. However, the pictures of the cryptokitties are stored on the company’s server, since the NFT merely represents ownership of the image. The artist/creator of the NFT always retains a perpetual obligation and right to store the image, whether it be on the NFT […]