dimanche 19 décembre 2021

Two versions of webpage loading sequentially?

I pasted this link in different browsers (Chrome, Edge) and it seems to load two different versions of the same page one after the other in a split second: https://www.intel.com/content/www/us/en/products/docs/processors/core/12th-gen-processors.html

In other words (like this screenshot shows) 1 shows for a spilt second then 2 loads: page load transition

I cleared my cache, used an incognito mode, still seeing this. Can anyone explain why its happening and how to fix? Thanks!




Python problem. Please find the eror and solve it [closed]

db.execute(
            "INSERT INTO stocks (userID, symbol, shares, price, operation) VALUES (?, ?, ?, ?, ?)",
            session["user_id"],
            symbol.upper(),
            -shares,
            price,
            "sell",
        )

        db.execute(
            "UPDATE users SET cash = cash + ? WHERE id = ?",
            shares_value,
            session["user_id"],
        )

        flash("Sold!")
        return redirect("/")
    else:
        stocks = db.execute(
            "SELECT symbol FROM stocks WHERE userID = ? GROUP BY symbol",
            session["user_id"],
        )
        return render_template("sell.html",



Redirection to the cart page at another website with products added to the cart

I am trying to redirect a user from my website to external page with an active session. Ideally, I would love to redirect the user to the cart page at the other store with already added products to the cart. Do you know how it might be achieved and if might be achieved at all?




Is there something like WebKitGTK, but with a Chromium kernel?

I would like create wrapper of web application in C++ for Linux, but, I only found WebKitGTk & QtWebEngine, but this tools used WebKit, not Chromium kernel.

Is there something similar, but with Chromium kernel & for C++?

Thank you in advance for reply.




how to get this information from tables [closed]

SELECT jour,heure_debut,
          heure_fin,nom_ens,nom_mod,nom_salle
          FROM cours,enseignant,modules,salles,specialite,promotion
          WHERE cours.id_ens=enseignant.id_ens and 
          cours.id_salle=salles.id_salle AND 
          cours.id_mod=modules.id_mod
          and(SELECT id_cours FROM cours WHERE cours.id_promo = 
              (SELECT id_promo FROM promotion WHERE promotion.id_speci = 
               (SELECT id_speci FROM specialite WHERE specialite.nom_speci='2MGL')
               AND promotion.niveau=2) );



What are ways to store more then 10GB (around 30,000) images for a slideshow on a website [closed]

I want to create a website that is basically a slideshow that takes each time a random photo from the folder (or database) and displays it for a couple of seconds. The thing is I have more than 30,000 photos and it is around 15GB, What would be the my options to store the images for this website considering that I would like to be able to add more photos in the future. Thank you all in advanced.




Uno Platform WASM performance: good / acceptable / terrible

I'm trying to run Getting-Started-Tutorial-1 on my laptop. It's very simple: demo. But it takes 10 sec to load this simple page on localhost.

On UnoConf it was said that Uno Gallery is written in uno platform. I measured the time when user see a page and when all background data is loaded. Results:

  • Safari - 50 sec of white screen and then page was loaded (I didn't find how to measure background load).
  • Firefox - 30 sec of white screen and 34 sec total (4 sec page was loaded in the background)
  • Crome - 17 sec of white screen and 21 sec total (4 sec page was loaded in the background)

Page reload without clearing the cache takes almost the same time.

For comparison I opened Vuetify Gallery. It takes 3 sec to show page to a user and total load is 30 sec (27 sec page was loaded in the background). So, user see the page and can interact with it in 3 sec.

Questions: Is it real Uno Platform WASM performance? Is it the same in mobile apps (Android and iOS)? Any solutions how to speed up it? Can you recommend other frameworks to develop mobile apps + web with better performance?