scheduling – Designing a rationing algorithm for a store

Suppose I have a store and I have n x article units. I want to sell all n units at the end of the day. I do not know how many customers will come today. A customer could theoretically come in and buy all the remaining units. This would not be desirable because the next customer could not buy this item and would eventually be frustrated by the fact that we do not keep enough stock.

In general, how to design a rationing algorithm that balances the need to sell as many quantities as possible while serving the largest number of customers (unknown number)? Is it only possible?

google play store – unoptimized Apk

I have an application developed using Cordova. I've generated a final APK for the version (already aligned and signed), but when I download my APK file into the Google Play console, the following error message is displayed, m informing that my APK file is not optimized, which prevents the publication process.

APK NOT OPTIMIZED

This APK includes features and unused codes sent to users. Your application would be smaller if you used the Android application kit. When the application is not optimized for the device settings, the download and installation size is larger than necessary. Larger applications have lower installation costs and take up space on users' devices.

How can I work around or fix this error to publish my app?

Data Recovery – Where does WhatsApp store images / videos when Media Visibility is disabled?

WhatsApp has a media visibility feature that, if disabled, hides media files from the phone gallery. It is claimed that it apparently reduces file storage.

But WhatsApp still has to store the media in one place, otherwise, how would that show up in the discussions. I can access the media while scrolling through a WhatsApp discussion, even offline, so that the media is permanently stored somewhere on my phone. Can I access this place? I need to access many media files that WhatsApp must have downloaded somewhere on my phone.

I also use WhatsApp on my Android One Plus 5 phone. It creates a "999" directory under emulated. enter the description of the image here

public key infrastructure – How to store other people's SSH keys safely?

It's not really a programming issue, but listen to me please. I am building a deployment tool. So, using my application, others can deploy their own application on their own servers. (just like forge.laravel.com),

Here are the cases of use for this particular question

  1. I have to store each of my user's public ssh keys, because I have to insert this key into each of the servers provided. so that users can connect to their servers via ssh without any manual authorization.
  2. In addition, I must allow the ssh key of my applications (that is, the public key of my servers) on the servers of the clients so that I can execute commands on the server of my user by name.
  3. I need to generate a new key on the newly provisioned client server and allow it into the client's github / gitlab so that when I push / pull the server, I do not need to enter user name or password.

When coming to the question, where / how to store these keys (in a secure way)? can I store them in a specific directory of my server? This makes me think that my server can be a big target for hackers, because if they are able to hack, it opens doors to a multitude of servers.

What are the steps to make this configuration more secure?

Considering use case 2, does this generate a difference if I generate separate keys for separate clients?

The US Supreme Court ruled that Apple customers could sue the monopoly of the App Store

"Apple's line art does not make much sense, otherwise as a way to gerrymander Apple from this pursuit and the like."

Sale – Legging Store

Seller's notes

Droppshipping Woman Leggings Shop
Great opportunity to own a business online. Fully ready and friendly store with high profit margins. Sport, Fitness, Casual, Yoga Leggings …

————————————————– ———————

No stock needed – The supplier delivers the items directly to your customers.

User-friendly website – No maintenance or programming required.

————————————————– ———————-

This website sells women 's leggings in the popular niche of AliExpress' most reputable suppliers, who take care of everything including warehousing, packaging and l & # 39; shipping. You can add as many products as you want (Aliexpress, Ebay, etc.).

  • No maintenance and experience required

You can start selling items in no time after purchase. This is ready to go, user-friendly website for beginners, no maintenance required. There is no need to program and develop skills to run the website. The website is built on an easy-to-use WordPress platform. The minimum profit margin is 50%. For example, you buy for $ 40 and sell for $ 60 or more. Only 7 to 10 sales a day could generate nice profits. In addition, you can increase your margins for all products in a few clicks via the website.

  • Why Dropshipping Business?

Droppshing offers the opportunity to conduct business online worldwide at no additional cost (shipping, storage, inventory, staff, etc.). And you make a profit of 50 to 75% on each sale. Why affiliate third-party products and earn between 5 and 10% of the sale, while you can use the dropshipping business model to earn 10 times more with just one product. You can operate this business from your home. This is an easy process and only takes 60 seconds to execute an order for a customer (a Pdf guide will be provided). This is an excellent opportunity for online entrepreneurs. Products are shipped FREE to over 190 countries. You can get orders from around the world, which greatly increases the number of potential buyers. Thus, you are not limited by certain geographical areas to sell the products.

  • Monetization method and business model

When a customer buys a product on your site, you agree to the payment of the product at the retail price. Once you have received the funds, you place the order directly to the supplier of aliexpress.com. This is usually a regular online order on aliexpress.com. It only takes 60 seconds to make an order. The seller will charge you the cost of the item and ship it directly to your buyer. You have just sold an article at the retail price you have defined and process the order for your customer. You operate a profitable business without the costs of inventory, packaging, personnel and shipping. You can also add eBay products using Premium Plugin (included). Site includes Premium Plugin.

A unique solution that allows you to search, import and update products on your site directly from aliexpress and eBay quickly and easily.

Price multiplier function (easy way to set profit margins for your products).

Setting the price update (daily price updates to maintain all margins).

– Domain name

– Website Creation Premium Theme

– Premium Plugin

– Fully ready and modern design site

– After Sales Support

==========
SEMrush

100% satisfied buyers

==========

Encryption – How can I securely store application secrets / passwords in git and other version control systems?

I've written this article on how Mozilla SOPS with KMS and Git is massively underestimated, which answers the above question, thinking that I would post the Q & A here for it. is easier to find, it goes a lot deeper:

The TLDR version of the article is:

KMS (Key Management Service) is a trusted server that encrypts and decrypts data on behalf of clients, which is considered an encryption / decryption proxy server. It essentially allows a user or machine to encrypt and decrypt data using their identity. using encryption / decryption keys. (Their identity is checked against an ACL list, which determines which keys they have access to.)

KMS is extremely secure, cheap and independent of the cloud. Mozilla SOPS is a wrapper for KMS that securely stores encrypted secrets in git, answering all the challenges of storing secrets in git:

  • Not allowing customers to manage decryption keys directly means that it is possible to spend a decade without leaving a decryption key.
  • As KMS is a server, an access log can be audited.
  • KMS allows you to control access to encrypted data with the help of an access control list. You thus have access management managed, granular and revocable easy.
  • SOPS prevents footgun scenarios by keeping the encrypted data on the disk at all times when it's time to change the values, it decrypts them into a text editor in memory, and then re-encrypts them when backing up.

8 – Store the form data in a custom table

Battery Exchange Network

The Stack Exchange network includes 176 question and answer communities, including Stack Overflow, the largest and most reliable online community on which developers can learn, share knowledge and build their careers.

Visit Stack Exchange

Sell ​​- Buy Drones Store

Seller's notes

Dropshipping Drones Shop
Great opportunity to own a business online. Fully ready and friendly store with high profit margins.

————————————————– ———————

No stock needed – The supplier delivers the items directly to your customers.

User-friendly website – No maintenance or programming required.

————————————————– ———————-

This website sells women 's leggings in the popular niche of AliExpress' most reputable suppliers, who take care of everything including warehousing, packaging and l & # 39; shipping. You can add as many products as you want (Aliexpress, Ebay, etc.).

  • No maintenance and experience required

You can start selling items in no time after purchase. This is ready to go, user-friendly website for beginners, no maintenance required. There is no need to program and develop skills to run the website. The website is built on an easy-to-use WordPress platform. The minimum profit margin is 50%. For example, you buy for $ 40 and sell for $ 60 or more. Only 7 to 10 sales a day could generate nice profits. In addition, you can increase your margins for all products in a few clicks via the website.

  • Why Dropshipping Business?

Droppshing offers the opportunity to conduct business online worldwide at no additional cost (shipping, storage, inventory, staff, etc.). And you make a profit of 50 to 75% on each sale. Why affiliate third-party products and earn between 5 and 10% of the sale, while you can use the dropshipping business model to earn 10 times more with just one product. You can operate this business from your home. This is an easy process and only takes 60 seconds to execute an order for a customer (a Pdf guide will be provided). This is an excellent opportunity for online entrepreneurs. Products are shipped FREE to over 190 countries. You can get orders from around the world, which greatly increases the number of potential buyers. Thus, you are not limited by certain geographical areas to sell the products. When a customer buys a product on your site, you agree to the payment of the product for your retail price. Once you have received the funds, you place the order directly to the supplier of aliexpress.com. This is usually a regular online order on aliexpress.com. It only takes 60 seconds to make an order. The seller will charge you the cost of the item and ship it directly to your buyer. You have just sold an article at the retail price you have defined and process the order for your customer. You operate a profitable business without the costs of inventory, packaging, personnel and shipping. You can also add eBay products using Premium Plugin (included). Site includes Premium Plugin.

A unique solution that allows you to search, import and update products on your site directly from aliexpress and eBay quickly and easily.
SEMrush

Price multiplier function (easy way to set profit margins for your products).

Setting the price update (daily price updates to maintain all margins).

– Domain name

– Website Creation Premium Theme
[​IMG]"data-url =" https://www.berush.com/static/berush/banners/orange/600x45/600x45_en.png
– Premium Plugin

– Fully ready and modern design site

– After Sales Support

==========

100% satisfied buyers

==========

I need to store an image in the database using laravel

I've done a lot of research and all the information I see on how to store images with Laravel are stored in a local folder. I need it to be in the database.

Could you tell me how to do it?