Dati e Grafici πŸ“ŠοΈ

È bello, quando si hanno dati derivabili dalle proprie cose, poterli visualizzare con grafici intriganti… quindi, ecco qui.

Alcuni grafici sono generati grazie al plugin SQL Chart Builder, con una piccola modifica che rende visibile il codice sorgente SQL usato, che potete copiare!


Tag Cloud

3DS (14) ActivityPub (9) Android (26) API (12) app (26) applicazione (20) blog (8) browser (23) bug (17) casino (10) codice (30) computer (7) console (22) dati (17) Fediverso (7) feed (10) file (10) Firefox (9) foto (14) gaming (8) giochi (12) gioco (17) HTML (12) idea (14) idee (8) Internet (13) JavaScript (17) Mannaggia (40) meme (10) merda (9) MicroBlog (22) mobile (10) Natale (8) Nintendo (17) OpenSource (8) pazienza (10) piattaforma (13) plugin (14) post (17) problema (37) problemi (20) progetto (8) programma (14) programmazione (8) ricerca (8) rogne (13) RSS (9) SalaMuseoGames (12) script (11) server (19) siti (8) sito (22) smartphone (14) software (27) soldi (8) soluzione (12) telefono (15) Telegram (22) tempo (17) video (19) videogiochi (7) web (34) webapp (17) WordPress (25)


Post al Giorno (Mensile)

SQL Code
SELECT * 
FROM (
  SELECT
    COUNT(*) AS postCount,
    SUBSTRING(`post_date_gmt`,1,10) AS postDate
  FROM avwp_posts
    WHERE post_type = "post"
    AND post_status = "publish"
  GROUP BY postDate
  ORDER BY postDate DESC
  LIMIT 31
) AS _
ORDER BY postDate ASC;

Parole al Giorno (Mensile, approssimato)

SQL Code
SELECT * 
FROM (
  SELECT
    -- https://stackoverflow.com/questions/41952250/sql-string-counting-words-inside-a-string
    SUM(LENGTH(REPLACE(REPLACE(REPLACE(post_content, " ", "><"), "<>", ""), "><", " ")) - LENGTH(REPLACE(REPLACE(REPLACE(REPLACE(post_content, " ", "><"), "<>", ""), "><", " "), " ", ""))) AS wordCount,
    SUBSTRING(`post_date_gmt`,1,10) AS postDate
  FROM avwp_posts
    WHERE post_type = "post"
    AND post_status = "publish"
  GROUP BY postDate
  ORDER BY postDate DESC
  LIMIT 31
) AS _
ORDER BY postDate ASC;

Post al Giorno (Annuale)

SQL Code
SELECT * 
FROM (
  SELECT
    COUNT(*) AS postCount,
    SUBSTRING(`post_date_gmt`,1,10) AS postDate
  FROM avwp_posts
    WHERE post_type = "post"
    AND post_status = "publish"
  GROUP BY postDate
  ORDER BY postDate DESC
  LIMIT 365
) AS _
ORDER BY postDate ASC;