Skip to content

Commit

Permalink
List blogrolls, add some webrings
Browse files Browse the repository at this point in the history
  • Loading branch information
robalexdev committed Jul 14, 2024
1 parent f535060 commit 279e466
Show file tree
Hide file tree
Showing 6,284 changed files with 255,175 additions and 125,931 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
54 changes: 51 additions & 3 deletions analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,36 @@ func (a *Analysis) FindBlogrollsSuggestingFeed(feed *FeedInfo) []string {
return blogrolls
}

func (a *Analysis) PopulateBlogrollPagesForFeed(feed *FeedInfo, blogrolls []string, blogrollMap map[string]*BlogrollInfo) {
for _, blogroll := range blogrolls {
data, has := blogrollMap[blogroll]
if has {
feed.Params.InBlogroll = append(
feed.Params.InBlogroll,
BlogrollBrief{
Title: data.Title,
Description: data.Description,
Id: data.Params.BlogrollId,
},
)
}
}
}

func (a *Analysis) PopulateFeedForBlogroll(feed *FeedInfo, blogrolls []string, blogrollMap map[string]*BlogrollInfo) {
for _, blogroll := range blogrolls {
data, has := blogrollMap[blogroll]
if has {
data.Params.Recommends = append(data.Params.Recommends,
BlogrollRecommendation{
Title: feed.Title,
Description: feed.Description,
Id: feed.Params.FeedID,
})
}
}
}

func (a *Analysis) FindWebsitesRecommendingBlogrolls(blogrolls []string) []string {
if len(blogrolls) < 1 {
return []string{}
Expand Down Expand Up @@ -355,7 +385,7 @@ func (a *Analysis) PopulateScore(feed *FeedInfo) {
// Do others recommend this feed?
// 5 points if any
promotedScore := 0
if len(feed.Params.Recommender) > 0 {
if len(feed.Params.InBlogroll) > 0 {
promotedScore = 5
}
feed.Params.ScoreCriteria["promoted"] = promotedScore
Expand Down Expand Up @@ -385,7 +415,7 @@ func (a *Analysis) PopulateScore(feed *FeedInfo) {
for _, verified := range feed.Params.RelMe {
if verified {
relMeScore = 2
isSocial = true // TODO: keep this?
//isSocial = true // TODO: keep this?
} else {
relMeScore = max(relMeScore, 1)
}
Expand Down Expand Up @@ -524,12 +554,24 @@ func (a *Analysis) BuildRelMeClusters() (map[string]int, map[int][]string) {
}

func (a *Analysis) Analyze() {
rows, err := a.db.
Model(&Blogroll{}).
Rows()
ohno(err)
blogrollDataByLink := map[string]*BlogrollInfo{}
for rows.Next() {
var row Blogroll
a.db.ScanRows(rows, &row)
blogroll := NewBlogrollInfo(row)
blogrollDataByLink[blogroll.Params.Link] = blogroll
}

// Tarjan to consolidate all verified rel=me profiles
a.relMeClusters, a.relMeClustersRev = a.BuildRelMeClusters()
// clusters - { A=>1, B=>1, C=>2, D=2, E=>3, F=4 }
// reverse - { 1=>[A,B], 2=>[C,D], 3=>[E], 4=>[F] }

rows, err := a.db.
rows, err = a.db.
Model(&Feed{}).
Rows()
ohno(err)
Expand All @@ -555,6 +597,8 @@ func (a *Analysis) Analyze() {
a.PopulateCategoriesForFeed(feed)
a.PopulateLanguageForFeed(feed)
a.PopulateLastPostForFeed(feed)
a.PopulateBlogrollPagesForFeed(feed, rec_blogrolls, blogrollDataByLink)
a.PopulateFeedForBlogroll(feed, rec_blogrolls, blogrollDataByLink)

a.PopulateScore(feed)

Expand All @@ -567,4 +611,8 @@ func (a *Analysis) Analyze() {
feed.Save()
}
}

for _, data := range blogrollDataByLink {
data.Save()
}
}
16 changes: 16 additions & 0 deletions content/blogrolls/br-00873d2c5bc23175e5a45ff32cd5e3e4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: ñol)
date: "2024-07-10T04:59:59+00:00"
description: ""
params:
link: https://planet.mageia.org/es/custom/people.opml
blogroll_id: 00873d2c5bc23175e5a45ff32cd5e3e4
recommends:
- title: Mageia Blog (Español)
description: La distribución Linux comunitaria
id: 235d28c908623a63fa9f94421573016c
- title: Blog de joselp
description: 'BlogDRAKE: Comunidad y Foro Oficiales de los Usuarios Hispanohablantes
de OpenMandriva y Mageia Linux'
id: 8205d31895d53234d488c0a66485772a
---
141 changes: 141 additions & 0 deletions content/blogrolls/br-01f241eccdf286b0c1a12fc9f4f071c1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
---
title: ScummVM Planet
date: "2022-05-30T16:39:02+00:00"
description: ""
params:
link: https://planet.scummvm.org/custom/people.opml
blogroll_id: 01f241eccdf286b0c1a12fc9f4f071c1
recommends:
- title: RichieSam's Adventures in Code-ville
description: ""
id: 2adadec57052dd4bf6e471fd4f875a79
- title: ScummVm GSoC 2019
description: ""
id: 29c543763addf88242ea40645993673f
- title: WinterGrascph GSoC
description: ""
id: b1016df88e0c795a580f136a31f321bd
- title: Strangerke's Sandbox
description: ""
id: c40c9dda4ca77fff678082ef5907378b
- title: Iskrich.
description: ""
id: 99073c7a430e7b11681af1a6894c5175
- title: Sev's ScummVM notes
description: ScummVM development and whatnot from ScummVM team leader
id: 4fa306aee782ad22e744ea2d49df75bb
- title: Lost Souls' Alliance Headquarters
description: Run you pigeons, it's Robert Frost!
id: 89b100e9ce7815d006eb3dc4bb8d1a1f
- title: SummerMute
description: Worklog for the porting of WinterMute Lite to ScummVM
id: 962c2afd4752c8ae8428546656eaa2d1
- title: Groovie, baby
description: Discussion of The 7th Guest and other Groovie engine games in ScummVM
id: 490a54262dd04c539a86c7c61e14e489
- title: Google Summer of Code - Vyzigold
description: ""
id: b02880181a11eed9b6953a7364ca1e65
- title: Dreammaster's disassembly blog
description: A blog about my interests in diassembling old adventure games, and
what I'm up to
id: 582367d5c32e1638d6aca23c5b092a4f
- title: LordHoto's World
description: ""
id: bb5dafea90127f8f321a49a051ab6570
- title: sanguinehearts
description: ""
id: 1e44f644b99567a5f49ee174df1c818a
- title: ScummVM news
description: ScummVM is a cross-platform interpreter for several point-and-click
adventure engines. This includes all SCUMM-based adventures by LucasArts, Simon
the Sorcerer 1&2 by AdventureSoft, Beneath a Steel
id: 6bc246a9896ea4ec7c2db7a439630875
- title: Criezy's Blog
description: ""
id: d34fb548acb201a3124786859928416e
- title: Gobsmacked
description: Notes about ScummVM's Gob engine
id: 118008ddb0ec4fa3f77f6235690df329
- title: ScummVM Music - Pixel Refresh
description: Gaming & Tech | Retro & Modern
id: 3c7ede2e71983b8e3407b13b420a6fee
- title: Google Summer of Code with ScummVM
description: |-
This blogpost is dedicated to my experience in GSoC 2020.
I'll be submitting weekly posts for my first ever professional experience!
id: 3596672bf152ead1c9406751cc6ee8ea
- title: Tkachov — GSoC blog
description: Tkachov's GSoC blog
id: 5cd6c4176c523f9d93b75c7b2cdf9cfd
- title: ScummVM on Nathanael Gentry
description: Nathanael Gentry (ScummVM)
id: 3a05df87a005dd6078a5e01180a1b9d5
- title: Deborah Servilla - ScummVM Blog
description: Recent content in ScummVM Blog on Deborah Servilla
id: 1bc2fdeb21111401d79d5781334cf97e
- title: GSoD 2020 b-gent
description: ""
id: 6c9790c935b8e3d8fa5264ecdc5dbcc0
- title: Page not found – GSoC 2020 ResidualVM
description: Porting the Wintermute 3D engine
id: b724499385f4fbd65d5d8b8a6c053b99
- title: raikou's GSoC blog
description: raikou GSoC adventure
id: 059098989e8c63d18fe3e77070152416
- title: stablesteady's GSoC blog
description: stablesteady's GSoC adventure
id: f0f584a6100cec0b39d065b60f7e16e1
- title: grisenti's GSoC blog
description: ""
id: eede4dcb0484bfe37886bc455a42159b
- title: djsrv's blog
description: Macromedia Director fun™
id: dbb4c5ff97c3a5b23d7cfc99a1fe5014
- title: quote58's GSoC blog
description: Implementing The Immortal in ScummVM
id: 8fc2a063bb232ed447d6d935c2e38e7c
- title: hikigaya's blog
description: GSoC 2021 Student Blog :D
id: ed3121a9db3dc6214c354e93af58772c
- title: av_dx's blog
description: for GSoC '21
id: 99a0ec2346452636a6c9aa9cf7a45dcd
- title: a-yyg's blog
description: Detailing SAGA2's Journey in ScummVM
id: 828efa45c2c3d887de24f002b20e1390
- title: Twan's Blog
description: Text To Speech GSoC'21
id: 123ce176503d3c44df8d9a288e5990a5
- title: ankushdutt’s Blog
description: ""
id: 93482221807cfa4b406fc84c7516deb2
- title: hsk’s blog
description: ""
id: 985265c98a7be03a97bfb22e05a0931e
- title: hax0kartik’s blog
description: ""
id: f55ad40ed986ccbf4cb4138da37e3edb
- title: eklipsed’s blog
description: ""
id: 642e2f6ac14bf092128bcb0c55540f5a
- title: Markhor's Adventure
description: Join my GSoC journey as I define and integrate key maps in multiple
engines of ScummVM!
id: 85b7b062cf6c0b07516c00d4db0019cd
- title: PhoenixFlame101’s blog
description: ""
id: f0f798e65c3315beb44c01cbfb0a5c9f
- title: kunxl's blog
description: ""
id: 67bae600aa76c43b02b0d6cc715b2456
- title: Krish's GSoC '24 Blog
description: ""
id: a3e3a5ab8581abd3d1fd78e0ec89a9d2
- title: Chico's Adventure
description: ""
id: a18f1de4d0a9f26f208b70de346140d5
- title: sheep's blog
description: Just another The ScummVM Blogs site
id: 4e1a7d23b87e30318ef00c06d25d84ea
---
92 changes: 92 additions & 0 deletions content/blogrolls/br-02d0c8b82c7ee834d3f2cfb7fec70c04.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
title: Planète April
date: Sat, 01 Jun 2024 17:32:14 +0000
description: ""
params:
link: https://planete.april.org/opml.xml
blogroll_id: 02d0c8b82c7ee834d3f2cfb7fec70c04
recommends:
- title: Castopod Blog
description: News, tips & tricks about Castopod, podcasting 2.0, and the future
of podcasting.
id: cc8d6293627319c00aa760b6671f0331
- title: Koena
description: ""
id: 7ff9ca1c9b30e24ed8283f568c17f023
- title: Benjamin Sonntag
description: Journal de bord d'un activiste à l'ère numérique
id: 6f99871fc16b8075eeff0743983ec97e
- title: 'LinuxFr.org : les dépêches de Benoît Sibaud'
description: ""
id: 95f672d998a114ecb19d5e55bf74e293
- title: 'LinuxFr.org : les contenus de Benoît Sibaud'
description: ""
id: b760cc67bc0529ded017940d3a1a1d1c
- title: BonjourApril
description: ""
id: 23e4fe48dec1bed1f9a9f56cadbc42c5
- title: FLOSS – Bruno Cornec’s Blog
description: All rights reversed
id: b3e18f58faf03dccb176771e0635ff56
- title: Le blog d'Emmanuel - Mot-clé - april
description: ""
id: 553e65cfd7be1826aca6ac7b77fd48c6
- title: Blog on Champs-Libres
description: Recent content in Blog on Champs-Libres
id: 7b5ccf76d33bb47a8c04606bbf365015
- title: Corporate Strategy, Open Source Facts, Knowledge, Wisdom, Thoughts
description: The views expressed here are my own, and do not necessarily - unless
specifically mentioned - reflect those of my employers, past, current, or future.
id: 87b4f45a909542e2ce08ace064d65b5c
- title: GallAxie
description: Souriez ! Vous êtes sur le meilleur site de WordPress.com
id: 81ccb2b0d51c1d3c31bd0dfd13aafac3
- title: salvaste’s blog
description: Just another WordPress site
id: 9a6d16764d28dbb9ee603e66576cc06f
- title: Candidats.fr - Actualités
description: Signez et faites signer le Pacte du Logiciel Libre ! Priorité au
logiciel libre, brevetabilité, menottes numériques (DRM), interopérabilité,
vente forcée, informatique déloyale, « Open Bar »
id: fd87d9794812dc41d5829e3ebf67e5a5
- title: WordPress - Jason Rouet | WordPress, Open Web, Open Source, contributions
& geekeries diverses.
description: ""
id: 1dc1d6f77a203e38fadeb012d95621f5
- title: Ploum.net
description: le blog de Lionel Dricot
id: e54f2aad834b2bc898f3261e48fa92ea
- title: Informatique – Fiat Tux
description: Debian, GNU/Linux et geekeries en tout genre
id: f94102ca9af028c296ed4f68b89fe52b
- title: Le blog de Malizor - pl-april
description: Publications correspondants à « pl-april »
id: 7204e6ee47e825f5447bcc5aa4d9ea8f
- title: April
description: L'April a pour objectifs de promouvoir et défendre le logiciel libre
et ses acteurs.
id: f42bbd792731be999b42da2ce20ed7de
- title: Riff Blog - Music, sort of. And computing. And ...
description: ""
id: 375d4311b8194e23a4487853f65d0ea4
- title: Pavillon rouge et noir
description: Pavillon rouge et noir, le blog de Pablo Rauzy
id: fea4e63ac83ffb4cd8c637e0a2aeeef0
- title: Je dépanne ton ordi
description: Parce que les données sont précieuses
id: f944fb5a562907c4374a23f7ee3e63b7
- title: Destination Debian
description: Infos à la source, maîtrisez votre distribution Debian/Ubuntu
id: 8b485dc3344083710f69a68a3bf9f993
- title: Blog - Simon Vieille
description: DevOp animé par la culture du libre et du hacking
id: 3f46677443c6a7a7b0ad308503cbb43f
- title: Tanguy Ortolo - April
description: a blog about Debian and self-hosting
id: b65ca9077d53eeee5703b726a3511aa9
- title: Parlons Linux
description: Ce Podcast est destiné a toute personne désirant apprendre de manière
différente sur Linux. Mais également une porte ouverte à tout ceux qui désire
crée leur podcast la plateforme est ouvert
id: bedeeab367287448be083da49d6cdd71
---
Loading

0 comments on commit 279e466

Please sign in to comment.