Searching We.Love.Privacy.Club

Twts matching #2
Sort by: Newest, Oldest, Most Relevant

**2 days, 2 laptops to which a new life was given:

1st, an installation of Bodhi Linux on a 14yrs old machine. From unusable to usable - there are no miracles (web browsing is *soheavy nowadays!), but it works.

Then a 10yrs old laptop upgrading from Win8 to Ubuntu 22.04, fresh!**
2 days, 2 laptops to which a new life was given:

1st, an installation of Bodhi Linux on a 14yrs old machine. From unusable to usable - there are no miracles (web browsing is *so*heavy* nowadays!), but it works.

Then a 10yrs ol … ⌘ Read more

⤋ Read More

**R to @mind_booster: «A Câmara Municipal de Lisboa diz que “não é exequível” fazer cumprir os limites de ruído»

Isto é o mesmo que dizer “candidatamo-nos para o trabalho, mas não conseguimos fazê-lo”. Isto sim, devia ter custos políticos.

Inaceitável. (2/2)**
«A Câmara Municipal de Lisboa diz que “não é exequível” fazer cumprir os limites de ruído»

Isto é o mesmo que dizer “candidatamo-nos para o trabalho, mas não conseguimos fazê-lo”. Isto sim, devia ter custos políticos.

Inaceitável. (2/2) ⌘ Read more

⤋ Read More

Realmente, custa muito a entender. Dissecar esta notícia dava uma tese, mas não tentar expandir-me muito sobre isto só me daria cabo dos nervos. Fico-me pelo início: (½)
Realmente, custa muito a entender. Dissecar esta notícia dava uma tese, mas não tentar expandir-me muito sobre isto só me daria cabo dos nervos. Fico-me pelo início: (½)

nitter.net/paulasimoes/status/1560221281198432256#mRead more

⤋ Read More
In-reply-to » Hi, I am playing with making an event sourcing database. Its super alpha but I thought I would share since others are talking about databases and such.

Progress! so i have moved into working on aggregates. Which are a grouping of events that replayed on an object set the current state of the object. I came up with this little bit of generic wonder.

type PA[T any] interface {
	event.Aggregate
	*T
}

// Create uses fn to create a new aggregate and store in db.
func Create[A any, T PA[A]](ctx context.Context, es *EventStore, streamID string, fn func(context.Context, T) error) (agg T, err error) {
	ctx, span := logz.Span(ctx)
	defer span.End()

	agg = new(A)
	agg.SetStreamID(streamID)

	if err = es.Load(ctx, agg); err != nil {
		return
	}

	if err = event.NotExists(agg); err != nil {
		return
	}

	if err = fn(ctx, agg); err != nil {
		return
	}

	var i uint64
	if i, err = es.Save(ctx, agg); err != nil {
		return
	}

	span.AddEvent(fmt.Sprint("wrote events = ", i))

	return
}

fig. 1

This lets me do something like this:

a, err := es.Create(ctx, r.es, streamID, func(ctx context.Context, agg *domain.SaltyUser) error {
		return agg.OnUserRegister(nick, key)
})

fig. 2

I can tell the function the type being modified and returned using the function argument that is passed in. pretty cray cray.

⤋ Read More

R to @mind_booster: “O Governo está a fazer com a avaliação ambiental, aquilo que fez com a conservação da natureza e a proteção da biodiversidade.” 2/7
“O Governo está a fazer com a avaliação ambiental, aquilo que fez com a conservação da natureza e a proteção da biodiversidade.” 2/7 ⌘ Read more

⤋ Read More

Still two unresolved issues with WeeChat:

  1. How can I mark the current buffer as read? There is /input set_unread to mark it as unread (although I can’t tell that it does actually anything in the TUI) but there’s no set_read command that would put my read marker below the last message. Sure I can switch buffers and then the read marker is at the bottom, but this sounds like a silly workaround. There must be something better.
  2. I want the beep trigger to also fire when a regular message is sent. But the adjusted condition ${tg_displayed} && ${tg_tags} !!- ,notify_none, with the && (${tg_highlight} || ${tg_msg_pv}) removed then also includes joins and parts, which I don’t want to be alerted by. Now fiddling around with ${tg_message_nocolor} !~ ^(-->|<--), let’s see.

How do you folks do that?

⤋ Read More

“we looked at how damaging the journey of overshooting the 2°C temperature target would be,
[…]
The results suggest that a temporary overshoot would cause waves of irreversible extinctions and lasting damage to tens of thousands of species”
https://theconversation.com/climate-crisis-even-temporarily-overshooting-2-c-would-cause-permanent-damage-to-earths-species-185929?utm_source=twitter&utm_medium=bylinetwitterbutton

“we looked at how damaging the journey of overshooting the 2°C temperature target would … ⌘ Read more

⤋ Read More