🧮 Users: 2, Feeds: 6, Twts: 1026, Archived: 1116347, Cache: 89202, Followers: 29, and Following: 701.
Lunduke’s History of Computers - Volume 2
Free for all subscribers to The Lunduke Journal. ⌘ Read more
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
}
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)
})
I can tell the function the type being modified and returned using the function argument that is passed in. pretty cray cray.
user/bmallred/data/2022-08-12-12-15-20.fit: 2.82 miles, 00:11:40 average pace, 00:32:51 duration
user/bmallred/data/2022-08-09-14-44-31.fit: 2.73 miles, 00:11:22 average pace, 00:31:03 duration
Scientific Field Prefixes
⌘ Read more
user/bmallred/data/2022-08-05-14-43-38.fit: 2.85 miles, 00:11:06 average pace, 00:31:35 duration
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
R to @mind_booster: So what next in the vaportech train? Metaverse 2.0?
So what next in the vaportech train? Metaverse 2.0? ⌘ Read more
user/bmallred/data/2022-08-02-15-16-21.fit: 2.64 miles, 00:11:30 average pace, 00:30:20 duration
Still two unresolved issues with WeeChat:
- How can I mark the current buffer as read? There is
/input set_unreadto mark it as unread (although I can’t tell that it does actually anything in the TUI) but there’s noset_readcommand 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.
- 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?
“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
GitHub Sponsors available in 30 new regions
GitHub Sponsors expands globally with 30 newly supported regions, bringing the total to 68. ⌘ Read more
user/bmallred/data/2022-07-26-07-55-48.fit: 2.70 miles, 00:12:05 average pace, 00:32:40 duration
Physics Cost-Saving Tips
⌘ Read more
find the next number in the sequence 0,2,2,46,3640
I’m trying to switch from Konversation to irssi. Let’s see how that goes. Any irssiers out there who can recommend specific settings or scripts? I already got myself trackbar.pl and nickcolor.pl as super-essentials. Also trying window_switcher.pl. Somehow my custom binds for Ctrl+1/2/3/etc. to switch to window 1/2/3/etc. doesn’t do anything: { key = "^1"; id = "change_window"; data = "1"; } (I cannot use the default with Alt as this is handled by my window manager). Currently, I’m just cycling with Ctrl+N/P. Other things to solve in the near future:
- better, more colorful and compact theme (just removed clock from statusbar so far)
- getting bell/urgency hints working on arriving messages
- nicer tabs in status bar, maybe even just channel names and no indexes
- decluster status bar with user and channel modes (I never cared about those in the last decade)
Research: How GitHub Copilot helps improve developer productivity
We surveyed more than 2,000 developers about whether GitHub Copilot helped them be more productive and improved their coding. Then, we matched this qualitative feedback and subjective perception with quantitative data around objective usage measurements and productivity. ⌘ Read more
Ignite Realtime Blog: Openfire 4.7.2 released
The Ignite Realtime Community is pleased to announce the release of Openfire version 4.7.2. This version fixes a number of bugs and signifies our efforts to produce a stable 4.7 series of Openfire whilst work continues on the next feature release 4.8.0.
A major highlight of this release is fixing of BOSH bugs found under load testing.
You can find [download artifacts](https://ign … ⌘ Read more
@prologic@twtxt.net: 1. I use classic twtxt client written in Python from console, I like simplicity; 2. Thanks for the feedback about my website! It’s better viewed with old 800x600 monitors, haha
Summing the first n odd positive integers yields n^2. For twisty puzzle enthusiasts, an interesting consequence of this is that a Pyraminx has the same number of stickers per face as a Rubik’s Cube, a Master Pyraminx has the same number of stickers per face as a Rubik’s Master Cube, and so on.
Cringey to read over twtxts from me going back 2 years.
Sam Whited: Sirius
NameSiriusDesignationα CMaMake/modelHonda CB1100StyleNaked bikeEngine1140cc air-cooled inline fourTiresMetzeler Roadtec Z8 Interact Tires 110/80-18; 140/70-18
With gas prices as high as they are I recently decided to sell my Honda S2000,
Vela.
Though I normally say that there is never a reason to buy a new vehicle when a
used one can be had that’s just as good, depreciates less, and is cheaper, I’ve
decided to brake my own rule and ordere … ⌘ Read more
China’s easing of zero-Covid restraints set to release stocks into bull-market territory for first time in three years
A change in quarantine rules comes as the CSI 300 Index is within about 2 per cent of bull-market status, but opinions differ over how heavily Beijing’s zero-Covid policy still weighs on the market ⌘ Read more
Coronavirus: Indonesia urged to tighten curbs during 4th wave as cases of Omicron subvariants rise
On Tuesday, Indonesia had 2,167 new infections, with at least 143 cases of Omicron BA.4 and BA.5 – a number health experts said was ‘the tip of the iceberg’ due to a lack of testing. ⌘ Read more
2 Indian women arrested for trying to smuggle more than 100 live animals at Bangkok airport
The creatures, including two armadillos, 35 turtles and 50 chameleons, were found in a pair of bags belonging to the women. ⌘ Read more
Coronavirus: Hong Kong could cut hotel quarantine to 5 days, with another 2 in home isolation, incoming health minister says
Professor Lo Chung-mau, who will be new secretary for health on July 1, reveals ‘5+2’ option among possibilities being considered to help shorten quarantine ⌘ Read more
2 arrested after armed jewel heist at art fair in Netherlands
Four smartly dressed suspects raided The European Fine Art Fair in Maastricht and threatened people with what appeared to be handguns. ⌘ Read more
Hong Kong Palace Museum ‘ready to be fully opened’ on July 2, with security checks in place
Visitors to pass through metal detectors at entrance and belongings to be scanned; daily shuttle service around West Kowloon Cultural District available. ⌘ Read more
Thailand tops 2 million tourists this year, as it longs for absent Chinese visitors
Thailand’s tourism ministry voiced hopes that Chinese holidaymakers – who made up nearly 30 per cent of the country’s 40 million foreign tourists pre-pandemic – may return before the end of the year. ⌘ Read more
Highlights from Git 2.37
The open source Git project just released Git 2.37. Take a look at some of our highlights from the latest release. ⌘ Read more
Chinese prototype a precursor to hypersonic passenger travel anywhere in the world in 2 hours, says team
Completion of all test flights by 2025 will allow the development of a passenger aircraft that can travel more than 6,000km at Mach 6: researchers. ⌘ Read more
Chinese President Xi Jinping expected to begin 2-day trip to Hong Kong on Thursday ‘but will not stay in the city overnight’
Source says outgoing leader Carrie Lam has planned banquet at Government House for the president on June 30. ⌘ Read more
New York’s ‘duck sauce killer’ Glenn Hirsch could be freed from prison on bail on Monday
Hirsch was arrested on June 2 on charges of shooting dead Chinese food delivery man Zhiwen Yan. Hirsch allegedly stalked staff at New York’s Great Wall restaurant over his demand for more duck sauce. ⌘ Read more
Pride parades march on with new urgency amid calls for changes in law
The marches come 2 days after a conservative justice said the Supreme Court should reconsider the right to same-sex marriage and laws criminalising gay sex. ⌘ Read more
‘We have nothing’ say survivors of deadly earthquake now facing disease outbreak
There is a desperate need for clean water – cholera outbreaks in the aftermath are of particular and serious concern – after at least 1,000 people were killed, 2,000 injured and 10,000 homes destroyed in the devastating earthquake. ⌘ Read more
Hong Kong customs intercepts Macau-bound riverboat suspected of smuggling HK$23 million in cash, arrests 2
Two men, aged 45 and 76, arrested earlier this month on suspicion of smuggling goods to Macau. ⌘ Read more
How’s the China-India economic relationship changed 2 years on from the deadly Galwan Valley border clash?
China’s exports to India grew to US$27.1 billion in the first quarter of 2022, but India is concerned by its ballooning trade deficit with its neighbour amid strained ties two years after the deadly Galwan Valley clash. ⌘ Read more
Morocco says 18 migrants died during attempted crossing of 2,000 into Spanish enclave, with ‘dozens piled on the ground’
Video images of apparent aftermath of mass crossing attempt of 2,000 into Spanish enclave Melilla showed bleeding and motionless people. ⌘ Read more
Hong Kong national security police arrest 2 more suspected to be linked to possible bomb plots involving 30kg of chemicals
Two men, aged 27 and 29, detained for manufacture of explosives and inciting others to cause grievous bodily harm. ⌘ Read more
Norway ‘hate’ shooting kills 2 in gay bar rampage hours before Pride march
10 people were also seriously injured in the early-hours tragedy shortly before the city’s LGBT community was due to hold its annual Pride event; police have ‘reason to think this may be a hate crime’. ⌘ Read more
Coronavirus: Beijing making contingency plans for Hong Kong government swearing-in ceremony on July 1 after 2 top city officials catch Covid-19
Cases spark speculation on whether a state leader such as President Xi Jinping will attend ceremony on July 1, the 25th anniversary of city’s return to Chinese rule. ⌘ Read more
Opening of Hong Kong Palace Museum a milestone in the Jockey Club’s support for the HKSAR in the past 25 years
[Sponsored Article]
The construction of the Hong Kong Palace Museum (HKPM) was funded by a HK$3.5 billion donation from The Hong Kong Jockey Club Charities Trust – the Club’s largest single charity donation to date. The museum will open to the public on 2 July as a highlight of the 25th anniversary of the establishmen … ⌘ Read more
Cash-strapped Pakistan scores IMF financial aid win – but millions of people may face ruin, analysts say
Analysts say energy price hikes after renewal of IMF support package may push many more people into poverty and wreak havoc among 5.2 million small and medium-sized businesses. ⌘ Read more
Coronavirus: Hong Kong tour group heads to Japan for the first time in more than 2 years after Tokyo eases Covid rules
Ten travellers join seven-day trip organised by EGL Tours, which had previously pushed back the departure date from June 11 to June 15 and then to Wednesday. ⌘ Read more
What If? 2 Countdown
⌘ Read more
From Indonesia to Pacific, women less likely to have 2 Covid-19 vaccine shots than men
Women have borne the brunt of hardship two years after the pandemic, a new UN report shows. ⌘ Read more
No more GitHub Copilot for me
I was an avid user of GitHub Copilot during the technical preview phase. Apparently, as many as 1.2 million developers used Copilot. But now Copilot is out of beta and suddenly costs money. ⌘ Read more
user/bmallred/data/2022-06-21-11-07-52.fit: 2.53 miles, 00:11:46 average pace, 00:29:44 duration