man… day17 has been a struggle for me.. i have managed to implement A* but the solve still takes about 2 minutes for me.. not sure how some are able to get it under 10 seconds.
Solution: https://git.sour.is/xuu/advent-of-code/src/branch/main/day17/main.go
A* PathFind: https://git.sour.is/xuu/advent-of-code/src/branch/main/search.go
some seem to simplify the seen check to only be horizontal/vertical instead of each direction.. but it doesn’t give me the right answer
Happy Twixmas everyone (new word I just learned 2 min ago)
I have finally gotten around to implementing a gallery feature to timeline.
http://darch.dk/timeline/gallery?profile=https://yarn.stigatle.no/user/stigatle/twtxt.txt
There is still some hiccups, like the limited caching is making it difficult to make links back to older posts not working. Maybe @eapl.me@eapl.me you can help me with that?
Pinellas County - 2 x Ladder: 5.06 miles, 00:09:13 average pace, 00:46:39 duration
went alright. hit everything i wanted but just was not into it today. looking forward to an easy day tomorrow.
#running
Pinellas County - 10 x 2’[1’]: 6.22 miles, 00:08:12 average pace, 00:51:01 duration
woops, i miscounted and skipped the last interval! still shaved thirty seconds from my 10km PB.
#running
Pinellas County - 10 x 2’[1’]: 6.25 miles, 00:08:43 average pace, 00:54:27 duration
the intervals went great at around eight minute pace each time. some crazies out there dorking with the first three, but after that it was a smooth rhythm.
#running
@movq@www.uninformativ.de Dang. Really going overboard with this!
@prologic@twtxt.net I didn’t have to do much backtracking. I parsed into an AST-ish table and then just needed some lookups.
The part 2 was pretty easy to work into the AST after.
https://git.sour.is/xuu/advent-of-code-2023/commit/c894853cbd08d5e5733dfa14f22b249d0fb7b06c
Day 2 used lots of Cut and Split.
Day 2, Part 1 and Day 2, Part 2 of #AdvenOfCode all done and dusted 😅
Recovery: 2.00 miles, 00:10:54 average pace, 00:21:47 duration
X Value
⌘ Read more
Pinellas County - 5 x {30” (easy) 20” (tempo) 10” (hard) [2’]}: 5.10 miles, 00:09:35 average pace, 00:48:51 duration
fun workout but should have put the reps from 5 to 10. only had to stop twice to cough up a lung, but otherwise felt okay for getting over a cold.
#running
Recovery: 2.00 miles, 00:12:02 average pace, 00:24:04 duration
@movq@www.uninformativ.de I lasted for a long time.. Not sure where or when it was “got”. We had been having a cold go around with the kiddos for about a week when the wife started getting sicker than normal. Did a test and she was positive. We tested the rest of the fam and got nothing. Till about 2 days later and myself and the others were positive. It largely hasn’t been too bad a little feaver and stuffy noses.
But whatever it was that hit a few days ago was horrible. Like whatever switch in my head that goes to sleep mode was shut off. I would lay down and even though I felt sleepy, I couldn’t actually go to sleep. The anxiety hit soon after and I was just awake with no relief. And it persisted that way for three nights. I got some meds from the clinic that seemed to finally get me to sleep.
Now the morning after I realized for all that time a part of me was missing. I would close my eyes and it would just go dark. No imagination, no pictures, nothing. Normally I can visualize things as I read or think about stuff.. But for the last few days it was just nothing. The waking up to it was quite shocking.
Though its just the first night.. I guess I’ll have to see if it persists. 🤞
Pinellas County - 75’: 8.22 miles, 00:09:09 average pace, 01:15:10 duration
pretty average. at about 2 miles in my right knee hurt a bit but i corrected my form and it went away. the last mile (or after the hill really) i pushed it a bit to see if i could sustain around what i thought was an 8:00 pace.
#running
- It’s criminal: Copilot was only possible because of massive theft of other peoples’ work (no compensation or even acknowledgement to any of the developers whose code was used to create Copilot)
- It’s positioned to put software developers out of work or so fully de-skill them that they no longer know how to code anything but prompts (after which come corporate-justified salary and benefits decreases)
Don’t use it. No one should ever use it. You’re destroying your own future as a software developer by leaning on and supporting these things.
Experts warn ‘green growth’ in high income countries is not happening, call for ‘post-growth’ climate policies
The emission reductions in the 11 high-income countries that have “decoupled” CO2 emissions from Gross Domestic Product (GDP) fall far short of the reductions that are necessary to limit global warming to 1.5°C or even just to “well below 2°C” and comply with international fairness principles, as required by the Paris Agreement, according to a paper published in The Lancet Planetary Health j … ⌘ Read more
podman
works with TLS. It does not have the "--docker" siwtch so you have to remove that and use the exact replacement commands that were in that github comment.
@prologic@twtxt.net Change your script to this:
#!/bin/sh
set -e
alias docker=podman
if [ ! command -v docker > /dev/null 2>&1 ]; then
echo "docker not found"
exit 1
fi
mkdir -p $HOME/.docker/certs.d/cas
## key stuff omitted
# DO NOT DO THIS docker context create cas --docker "host=tcp://cas.run:2376,ca=$HOME/.docker/certs.d/cas/ca.pem,key=$HOME/.docker/certs.d/cas/key.pem,cert=$HOME/.docker/certs.d/cas/cert.pem"
# DO THIS:
podman system connection add "host=tcp://cas.run:2376,ca=$HOME/.docker/certs.d/cas/ca.pem,key=$HOME/.docker/certs.d/cas/key.pem,cert=$HOME/.docker/certs.d/cas/cert.pem"
# DO NOT DO THIS docker context use cas
# DO THIS:
podman system connection default cas
@prologic@twtxt.net FWIW, I pay a little under 3€/month for a VPS with 1 vCPU, 2 GB RAM, 20 GB disk, 40 TB traffic. 🤔
Ah, cómo se disfruta una clase donde 2 horas pasan como agua y hay mucha participación 😀
Ah, cómo se disfruta una clase donde 2 horas pasan como agua y hay mucha participación 😀
GnuCOBOL 3.2 Released After 2+ Years In Development
For those fond of the COBOL programming language and continuing to make use of it in new development efforts, GnuCOBOL 3.2 was released on Friday as the latest feature update for this 21+ year old free software effort around being an open-source COBOL implementation… ⌘ Read more
- 2.4 GHz Wi-Fi: long range, can go through walls, fast but not very fast
- 5.0 GHz Wi-Fi: much shorter range, cannot go very far through walls, quite fast
- Li-Fi: long range (?), cannot go through any walls, very very fast
Fireflies
⌘ Read more
user/bmallred/data/2023-07-12-05-31-59.fit: 2.07 miles, 00:08:55 average pace, 00:18:30 duration
hehe, I tryied it for like 2 minutes, a few friends are there… And I don’t like it at all. I don’t use Instagram for example, family and friends do, but I don’t like it either.
I don’t know, perhaps too much influencer’s and clickbait content, rather than something appealing to me.
With Youtube testing a “three strikes and you’re out” policy against people who use ad blockers, I’m also wondering whether Web 2.0 is effectively walled off and I should just give up on it entirely and look elsewhere for information and entertainment.
1:Thinking that everything is dangerous. 2:Thinking you are in charge of everything. 3:High self esteem. 4:Looking for things to make a song and dance out of. These 4 things are a dangerous combination.
@stigatle@yarn.stigatle.no Could lead to world war 2 again
@movq@www.uninformativ.de
Doesn’t even compile on my system, which is apparently broken:
> cc -Wall -Wextra -o win win.c $(pkg-config --cflags --libs gtk4)
cc: error: unrecognized argument in option ‘-mfpmath=sse -msse -msse2 -pthread -I/usr/include/gtk-4.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/graphene-1.0 -I/usr/lib/x86_64-linux-gnu/graphene-1.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lgtk-4 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lgraphene-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0’
cc: note: valid arguments to ‘-mfpmath=’ are: 387 387+sse 387,sse both sse sse+387 sse,387
user/bmallred/data/2023-06-05-14-08-12.fit: 2.89 miles, 00:08:41 average pace, 00:25:06 duration
My 7 links for today - Day 2
https://eapl.mx/today/
user/bmallred/data/2023-05-23-06-04-39.fit: 2.27 miles, 00:09:03 average pace, 00:20:30 duration
Still undecided between TiddlyWiki, DokuWiki, Bear, Benotes, Memos, my blog software, standardnotes, apple notes and more. I like them all quite a bit, but standardnotes, the only one that has reall multiplatform is so fucking complicated to host on your own and then they have this stupid offline subscription thing that allows rich text or the block editor that works like notion. I also found codex docs which is really really nice. Unfortunately they lack proper authentication. 1 / 2
user/bmallred/data/2023-05-18-06-05-10.fit: 2.51 miles, 00:09:04 average pace, 00:22:46 duration
According to the RedMonk programming language rankings from Jan 2023, Go and Scala are tied at 14th place 😏
1 JavaScript
2 Python
3 Java
4 PHP
5 C#
6 CSS
7 TypeScript
7 C++
9 Ruby
10 C
11 Swift
12 Shell
12 R
14 Go
14 Scala
16 Objective-C
17 Kotlin
18 PowerShell
19 Rust
19 Dart
user/bmallred/data/2023-05-11-05-31-54.fit: 2.27 miles, 00:10:10 average pace, 00:23:02 duration
user/bmallred/data/2023-05-10-06-12-46.fit: 2.01 miles, 00:09:33 average pace, 00:19:12 duration
Metaverse Could Contribute Up To 2.4% of US GDP By 2035, Study Shows
A study commissioned by Meta has found that the metaverse could contribute around 2.4% to U.S. annual GDP by 2035, equating to as much as $760 billion. Reuters reports: The concept of the metaverse includes augmented and virtual reality technologies that allow users to immerse themselves in a virtual world or overlay information digitally on … ⌘ Read more
user/bmallred/data/2023-04-26-06-36-29.fit: 2.18 miles, 00:08:33 average pace, 00:18:39 duration
@prologic@twtxt.net @carsten@yarn.zn80.net
(1) You go to the store and buy a microwave pizza. You go home, put it in the microwave, heat it up. Maybe it’s not quite the way you like it, so you put some red pepper on it, maybe some oregano.
Are you a pizza chef? No. Do we know what your cooking is like? Also no.
(2) You create a prompt for StableDiffusion to make a picture of an elephant. What pops out isn’t quite to your liking. You adjust the prompt, tweak it a bunch, till the elephant looks pretty cool.
Are you an artist? No. Do we know what your art is like? Also no.
The elephant is “fake art” in a similar sense to how a microwave pizza is “fake pizza”. That’s what I meant by that word. The microwave pizza is a sort of “simulation of pizza”, in this sense. The generated elephant picture is a simulation of art, in a similar sense, though it’s even worse than that and is probably more of a simulacrum of art since you can’t “consume” an AI-generated image the way you “consume” art.
Started with
a concept sketch of a full body end-time factory worker on a distant planet, cyberpunk light brown suite, (badass), looking up at the viewer, 2d, line drawing, (pencil sketch:0.3), (caricature:0.2), watercolor city sketch,
Negative prompt: EasyNegativ, bad-hands-5, 3d, photo, naked, sexy, disproportionate, ugly
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 2479087078, Face restoration: GFPGAN, Size: 512x768, Model hash: 2ee2a2bf90, Model: mimic_v10, Denoising strength: 0.7, Hires upscale: 1.5, Hires upscaler: Latent
On LinkedIn I see a lot of posts aimed at software developers along the lines of “If you’re not using these AI tools (X,Y,Z) you’re going to be left behind.”
Two things about that:
- No you’re not. If you have good soft skills (good communication, show up on time, general time management) then you’re already in excellent shape. No AI can do that stuff, and for that alone no AI can replace people
- This rhetoric is coming directly from the billionaires who are laying off tech people by the 100s of thousands as part of the class war they’ve been conducting against all working people since the 1940s. They want you to believe that you have to scramble and claw over one another to learn the “AI” that they’re forcing onto the world, so that you stop honing the skills that matter (see #1) and are easier to obsolete later. Don’t fall for it. It’s far from clear how this will shake out once governments get off their asses and start regulating this stuff, by the way–most of these “AI” tools are blatantly breaking copyright and other IP laws, and some day that’ll catch up with them.
That said, it is helpful to know thy enemy.
go mills()
😅
So. Some bits.
i := fIndex(xs, 5.6)
Can also be
i := Index(xs, 5.6)
The compiler can infer the type automatically. Looks like you mention that later.
Also the infer is super smart.. You can define functions that take functions with generic types in the arguments. This can be useful for a generic value mapper for a repository
func Map[U,V any](rows []U, fn func(U) V) []V {
out := make([]V, len(rows))
for i := range rows { out = fn(rows[i]) }
return out
}
rows := []int{1,2,3}
out := Map(rows, func(v int) uint64 { return uint64(v) })
I am pretty sure the type parameters goes the other way with the type name first and constraint second.
func Foo[comparable T](xs T, s T) int
Should be
func Foo[T comparable](xs T, s T) int
user/bmallred/data/2023-03-14-07-56-49.fit: 2.01 miles, 00:08:41 average pace, 00:17:28 duration
Radians Are Cursed
⌘ Read more
user/bmallred/data/2023-03-06-10-55-05.fit: 2.35 miles, 00:08:57 average pace, 00:21:04 duration
user/bmallred/data/2023-03-02-09-23-06.fit: 2.26 miles, 00:08:50 average pace, 00:20:01 duration
user/bmallred/data/2023-02-16-09-10-23.fit: 2.70 miles, 00:09:50 average pace, 00:26:33 duration