Confused by website behaviour [on hold]

I am currently crawling for all of its products when I realised something. You can navigate through all of the pages of the women’s products through changing the page number on this link: (page no.17). However, if you enter any page number greater than 429, the link redirects to page 429. On the other hand, when I physically click the next page button on page 429, it takes me to page 430, even though the button just provides the next link ( How does the website know if I pressed the button or if I went directly to the link.

Any help would be greatly appreciated 🙂

ubuntu 19.04 laggy behaviour

I am working on a Lenovo thinkpad t540p, with an i7-4600 processor, and 16GB of ram. Even doing nothing but internet browising has a lag of several seconds. Its very distracting. Other applications like geany, or the terminal have a lag on the keyboard. I have recently upgraded to 19.04 cursor opperations also seem to lag.

what can i do to fix this?

MongoDB replica set quorum config (network partitioning behaviour)

I use mongodb 4.0.10. I want to establish a quorum for a cluster of one primary node and two secondary nodes as written here. When the number of nodes is less than the quorum, 3 nodes in my case, cluster goes to readonly (no election).

I`ve tried to set priority of two nodes to 0, in this case if primary goes down, there is no election, but if one of secondaries goes down, old primary still exists.

According to MongoDB docs terminology is it possible to set a replica set Fault Tolerance to zero? It means that if any of cluster nodes goes down new primary will not be elected.

Reason for iOS and Android fingerprint behaviour

Both iOS and Android allow using a fingerprint sensor for logging in, and allow applications to store secrets that can only be unlocked using the fingerprint. Both allow one or more fingerprints to be stored, and allow adding or removing fingerprints.

When used by an application to store a secret, there are two modes: Either the secret is protected by any currently stored fingerprint, or it is protected by the set of fingerprints that were stored when the secret was stored. That makes sense; if I store a secret and later the device user adds another fingerprint (possibly of a different person), I don’t want that new fingerprint to unlock the secret.

What happens though is that on both operating systems, in this mode adding a fingerprint destroys the ability to read the secret. Say I registered fingers A and B, then the secret is stored, then I add finger C. I would have expected that finger C cannot unlock the secret, but fingers A and B still can, but both in iOS and Android this is not the case.

What is the reason for this behaviour? Is it a technical difficulty that doesn’t allow the keep two fingers valid, or are there security reasons that make this a bad idea?

SQL recursion flaky behaviour on incrementing date?

I got this recursive function that is supposed to generate a list. What is odd is that the date increments correctly until last day of May, then comes a huge gap, with a lot of null dates, and then a block where June is listed up correctly, followed by another huge gap of null dates. (gaps take 68 or 69 rows in which the day is incremented correctly and date is set null). When I replace (CURRENT_DATE+day) with date the recursion works until day 3 before all dates are shown as null. Can someone explain to me why this partly works and partly not?


(I am not looking for a better solution, just for the explanation why this code behaves oddly)

WITH RECURSIVE recSQL(day, date) AS (     SELECT 0, CURRENT_DATE     UNION ALL     SELECT day + 1, CURRENT_DATE + day +1     FROM recSQL     WHERE < 146 ) SELECT * FROM recSQL; 

C# Entity Framework – Unexpected Behaviour: first element of list gets updated after it’s saved to database from another list

I extrapolate some flat data from an excel file to save it in a relational db. The logic need to map the flat structure to the relational structure make so that i save the same object to 2 different lists.

Let’s say I have a product, supplier and order

class Supplier{   public int ID {get; set;}   public string Name {get; set;} }  class Product{   public int ID {get; set;}   public string Name {get; set;}    public int SupplierID {get; set;}   public Supplier Supplier {get; set;} }  class Order{   public int ID {get; set;}   public string Code{get; set;}    public int ProductID {get; set;}   public Product Product{get; set;} } 

for each line of my flat data I extract needed informations

List<Product> products = new List<Product>(); List<Order> orders= new List<Order>(); foreach (var line in flatData){   var product = GetProductFromLine();   products.Add(product);    var order = GetOrderFromLine();   order.Product = product;   orders.Add(order); } 

then I bulk save all the projects to be sure not to save duplicates, and get back all the products on the database

productLogic.BulkAddProducts(products); var allProducts = productLogic.GetAllProducts(); 

When this operation is completed, for only the first element of orders I get

orders[0].Product.SupplierID -> [Id from database] orders[0].Product.Supplier -> null 

This is an operation I do on all products before saving them to db, to avoid duplicating the supplier.

All the items in orders but the first are the same after saving to db the products list: with Id -> 0 and Supplier correctly populated.

I was thinking about some problem with passing the same item by reference to both lists, but I can’t explain only the first element list updating.

Does someone with a better understanding of the language know why it’s doing this, and how can I get a uniform behavior (either all updating or none)?

Editing multiple lines of text in a cell – behaviour when entering the cell

I’m having a problem with cells containing multiple lines of text. I am adding a new line of text on a regular basis to this. When entering such cell it always go to the centre of the cell contents. The behaviour I require is on entering the cell is to open the cell with the cursor at the top of the cell contents to add new information efficiently – i.e. new text are always added on top of the existing text.

Kindly need help to obtain the desired behaviour.

Thank you Dra

Dependent checkboxes behaviour


In a form, there are 2 main sections – Boosters and Filter.

If any Booster is checked, the Filter section cannot be checked and if filter is checked, no boosters can be checked. The current interaction is as below:

enter image description here

Is there a better way to represent and communicate this? There will only be one filter option. I feel like there’s something wrong with the representation and layout. Should the filter option be a toggle above the boosters?

How can make this more understandable?

How to replicate getaccountaddress behaviour using getnewaddress and labels api

The problem is getaccountaddress is getting deprecated and it has specific behaviour (not related to accounts) I’m relying heavily on. It gives you the same address between multiple calls as long as there are no incoming transactions…

What I’m doing essentially is calling getaccountaddress "" every time an address needs to be displayed.

The problem is getnewaddress is designed to always provide you with a new address, so I end up flooding wallet with meaningless amount of addresses that never receive anything.

I’m trying to replicate that old behaviour using labels API, but the best I’ve come up with is to combine getaddressesbylabel and parsing everything listtransactions outputs to find if there’s an unused receive-typed address, and to generate new one if none found.

This seems both error prone and hardly scalable, because the number of addresses will potentially grow and may become very large very fast.

What are my options? Is there an API call that can be used as a replacement for getaccountaddress "" or a combination of calls?