Do you like my picture? https://thispersondoesnotexist.com
Hot Take: I Don’t Like War Crimes ⌘ Read more
Question to all you Gophers out there: How do you deal with custom errors that include more information and different kinds of matching them?
I started with a simple var ErrPermissionNotAllowed = errors.New("permission not allowed"). In my function I then wrap that using fmt.Errorf("%w: %v", ErrPermissionNotAllowed, failedPermissions). I can match this error using errors.Is(err, ErrPermissionNotAllowed). So far so good.
Now for display purposes I’d also like to access the individual permissions that could not be assigned. Parsing the error message is obviously not an option. So I thought, I create a custom error type, e.g. type PermissionNotAllowedError []Permission and give it some func (e PermissionNotAllowedError) Error() string { return fmt.Sprintf("permission not allowed: %v", e) }. My function would then return this error instead: PermissionNotAllowedError{failedPermissions}
At some layers I don’t care about the exact permissions that failed, but at others I do, at least when accessing them. A custom func (e PermissionNotAllowedError) Is(target err) bool could match both the general ErrPermissionNotAllowed as well as the PermissionNotAllowedError. Same with As(…). For testing purposes the PermissionNotAllowedError would then also try to match the included permissions, so assertions in tests would work nicely. But having two different errors for different matching seems not very elegant at all.
Did you ever encounter this scenario before? How did you address this? Is my thinking flawed?
when the kids are outside he likes to check on them :)
If you are going to compare iPhone with android you can’t just throw out bargan bin android phones.. Should compare within the same price points like the Pixel, Galaxy, Pine, or OnePlus models.
If you are going to compare iPhone with android you can’t just throw out bargan bin android phones.. Should compare within the same price points like the Pixel, Galaxy, Pine, or OnePlus models.
@wincent@twtxt.net No, they are not noisy. I have one of these my self as well, and it does not make much noise (can sleep in the same room). They are not like rack servers with turbo fans, hehe.
Overcoming challenges for a better phone: My frustrating upgrade experience
Although my old smartphone is still in perfect condition, I have made the decision to upgrade to a new model: from a Samsung Galaxy S10 Lite to a Samsung Galaxy A54. Despite its current functionality, I opted to make the switch now, with the hope that the trade-in value will remain higher compared to what it would likely be in a year when it will likely decrease. And the A54 was on sale. ⌘ Read more
@phoronix@feeds.twtxt.net I like this OS a lot. on my to-do list over os’es to do some development on.
been using the iphone for some days now, and I must say im impressed. I really like it. I will not buy android phone ever again.
seems like putin is having a shitty weekend.
Ol Ben sets himself up as an intellectual for the right. He got promoted up with his connections with PragerU. Talks like he is the smartest one in the room. Though his arguments are full of logical fallacies. He is up there with Joe Rogan and the ilk destroying rational though in America.
Ol Ben sets himself up as an intellectual for the right. He got promoted up with his connections with PragerU. Talks like he is the smartest one in the room. Though his arguments are full of logical fallacies. He is up there with Joe Rogan and the ilk destroying rational though in America.
@prologic@twtxt.net ah okay. that sounds like the way to do it.
We Thank the Stack Overflow Community for Ranking Docker the #1 Most-Used Developer Tool
Stack Overflow’s annual 2023 Developer Survey engaged nearly 80,000 developers to learn about their work, the technologies they use, their likes and dislikes, and much, much more. As a company obsessed with serving developers, we’re honored that Stack Overflow’s community ranked Docker the #1 most-desired and #1 most-used developer tool. Since our inclusion in the […] ⌘ Read more
@lyse@lyse.isobeef.org We have some rain now, yesterday too, temp dropped 12c or something like that.
Feels a bit refreshing :)
Most of the can run locally have such a small training set they arnt worth it. Are more like the Markov chains from the subreddit simulator days.
There is one called orca that seems promising that will be released as OSS soon. Its running at comparable numbers to OpenAI 3.5.
Most of the can run locally have such a small training set they arnt worth it. Are more like the Markov chains from the subreddit simulator days.
There is one called orca that seems promising that will be released as OSS soon. Its running at comparable numbers to OpenAI 3.5.
7b7c7 here from another IP, yeah, it’s been storming on and off the last week and it looks like it’s about to do it for a second one in a row. Got stormed out of where we were set up. Oh well
@movq@www.uninformativ.de I work with 3D and code at work every day, so I very rarely make 3D at home, but for the first time in a looooong time I felt like making something. I like the technical parts of it, setting up simulations, tinker with advanced materials and such things.
JMP: JMP is Launched and Out of Beta
JMP has been in beta for over six years, and today we are finally launching! With feedback and testing from thousands of users, our team has made improvements to billing, phone network compatibility, and also helped develop the Cheogram Android app which provides a smooth onboarding process, good Android integration, and phone-like UX for users of that platform. There is still a long road ahead of us, but with so much behind us we’re comfortable saying JMP is ready for la … ⌘ Read more
I wonder when they will show a UAP\UFO in physical form to everyone.
So much talk about it - but no physical evidence is shown.
I have no doubt that tech like that exists somewhere in the universe - it’s not unlikely at all.
Just think about the tech advancement the last 200 years, and then what if there exists others that are 1 million years beyond our timeline.
@abucci@anthony.buc.ci I think the problem is that NATO does not want to get directly involved, because that scales up everything.
So they provide with the things they can to help instead. It worries me a bit (even though I live in the South of Norway - and Russia borders in the north), but it helps a lot that we have Sweden and Finland next to us. But if shit hits the fan - then it won’t be easy to get anywhere from here, unless we steal a boat and go to England or something like that (or get on a plane).
I try not to worry, but it’s in the back of my mind still.. But we have talked about it in my family, and if things happen then we have a plan on what to do first.
The Apple Vision Pro: designed to make you less happy
Creepy. Dystopian. And more than a little like a drug dealer. ⌘ Read more
Long live gopher! We need to develop more gopher pages like this ones, this protocol is amazing
The XMPP Standards Foundation: The XMPP Newsletter May 2023
Welcome to the XMPP Newsletter, great to have you here again! This issue covers the month of May 2023.
Many thanks to all our readers and all contributors!
Like this newsletter, many projects and their efforts in the XMPP community are a result of people’s voluntary work. If you are happy with the services and software you may be using, please consider saying thanks or help these projects! Interested in supporting the Newsletter team? Read more [at the … ⌘ Read more
vDSL2 sucks NBN sucks Copper sucks
It is continues to amaze me how NBN continues to operate. With over $50B AUD of taxpayer funds later (See NBN Project costs) folks like me that live in the suburbs continue to have less than ideal quality.
As of this post, I’m sitting on a vDSL2+ connection, with a Fibre to the Node backhaul, delivered by ~450m of Copper cable (last mi … ⌘ Read more
Hehe, as you all might have noticed - I test OS’es often. NixOS was too much of a pain to work efficiently in (the way I wanted), so hopped over to Fedora now. Got all my stuff working there now, as well as the desktop client. I really like how portable the code is, and how easy it is to compile on different os’es. Installed fedora with LXQT, I really like that desktop, I do not like gnome at all - I really dislike the way gnome works. LXQT is just what I need.
❤️ 🎶: Just Like a Dream by BEN
I wanted to show students what the Internet was like before W3 and HTTP.
I’d like to garbage-collect some symbols in the math I’m currently writing, help
You sound like a Makoto Shinkai character
usually i like to savor it and leave some time before appetizer and main dish but today is kinda rushed
This guy is just such an idiot lol.
- There’s no such mass migration to “the south”. Tons of people are leaving Mississippi, Louisiana, Virginia, and New Mexico for instance. I don’t know enough about the states with net influxes like Texas and Florida but I suspect they have policies that make it attractive for people to move there
- Not everybody is able to take account of long-term trends when they make housing decisions. There are financial reasons, family reasons, educational reasons, etc that impact such decisions
- But of course, most laughably, cheap energy is fast becoming a thing of the past, and so the problem isn’t “solved” by cheap energy, it’s just kicked down the road. And ffs, cheap energy is literally causing the very heating that he pretends air conditioning will “solve”–like “solving” your drinking problem by staying drunk all the time
This oversimplification to drive some kind of political point is so embarrassing coming from someone who pretends to be a university professor. It sounds like a teenage doofus from a 1980s movie talking. He well knows all these things, but he decides to present these views anyway.
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
Funny Programming Pictures Part XXXIII
I feel like mocking CSS and Agile today… ⌘ Read more
Inside GitHub: Working with the LLMs behind GitHub Copilot
Developers behind GitHub Copilot discuss what it was like to work with OpenAI’s large language model and how it informed the development of Copilot as we know it today. ⌘ Read more
“nubile” should mean cloud-like
Taxiing
⌘ Read more
Planetary Scientist
⌘ Read more
I’ve been looking into this tonight, and it seems like ‘libsecret’ is what I need, so I will try and implement this.
I can then store password and other things (username \ url) as well with it.
Here I am, looking at my bookshelf, where the ‘12 rules for life’ book sits.
I found the way he had to be put in a coma to get off addiction to his medicine etc fascinating. It felt like the good old ‘do as I say, not as I do’ type of thing. But hey - regardless of who you are or how strong you portray yourself - there can always be hard issues to tackle in life.
works like magic https://lien.sus.fr/qyEP6
More than meets the pull request: maintainers talk contributions
Creating an open source project can feel a bit like sending out an open invite to a party—will it be a roaring good time, or will you unbegrudginly dine on leftover junk food for the following week after nobody shows? When the first guest arrives, you breathe a sigh of relief. The party’s a success, […] ⌘ Read more
Got that bike today, and nanook ran home pulling me like a rocket. So fun when training on commands - run, go, left, right works. Avoids all obstacles etc. Was really fun! And for once he’s tired :)
@prologic@twtxt.net ah yes! Did you loose taste/smell? I lost smell and everything tasted like what a hot garbagecan smells like. Ugh.
❤️ 🎶: Shine Like a Star by Sondia
The era of ad supported services is coming to an end (and that’s a good thing).
Services like Substack, Locals, and Twitter (seriously) are leading the way. ⌘ Read more
I hope it will work as it seems like a super good idea to integrate it to sus.fr
@carsten@yarn.zn80.net Been thinking about leaving twitter recently, so much drama there. But I have not decided yet. It’s still a bit useful for me for getting my tech related news stuff and things like that, so I cannot get my self to leave yet.
an interesting observation in a post twitter reality is how services that are sprouting up to claim some of the refugees are setting themselves up as closed gardens. without the option to federate with other services. like spoutable, counter.social, post, clubhouse and such.
an interesting observation in a post twitter reality is how services that are sprouting up to claim some of the refugees are setting themselves up as closed gardens. without the option to federate with other services. like spoutable, counter.social, post, clubhouse and such.
** of array programming, lightsabers and some thoughts on permacomputing **
A bit of this and that, some kind of mishmosh.
Over the last few weeks I’ve been reading a lot about array programming systems like J, K, Q, APL, and BQN. I’ve been intending to add a page to the wiki about them, but havent gotten to that yet. Consider this a little promise that I’ll do that sometime soon. I’m interested in array programming less because I think it’s particularl … ⌘ Read more
Announcing GitHub Actions Deployment Protection Rules, now in public beta
Create and share your own deployment protection rules, or use the rules from our great partners, like Datadog, Honeycomb, New Relic, NodeSource, Sentry, and ServiceNow, to control your deployments with more confidence. And the API is open for the community to build their own rules to make GitHub Enterprise Cloud even better. ⌘ Read more
twtxt, as I believe it was originally intended, are short little status updates – that’s it.
So, basically a .plan file for finger. But, on the web. like a *web*finger. We have come full circle on this loop!
twtxt, as I believe it was originally intended, are short little status updates – that’s it.
So, basically a .plan file for finger. But, on the web. like a *web*finger. We have come full circle on this loop!
I do not like that they snoop around here. But I’m not surprised.
“Nordic media reveals Russia’s secret operations in waters around their states”
@shreyan@twtxt.net @prologic@twtxt.net I like the way he did that interview, that way they cannot warp what’s being said etc.
The world’s fastest train
I like trains, if that should not have been known yet. This year I even have two major vacations (Romania and Scotland) coming up, both by train, even if flying would be possible. But if it can be done by train, then I also prefer the train. ⌘ Read more
15 degrees + today, feels like summer. Gonna chill all day outside today and enjoy the nice weather :)
@lyse@lyse.isobeef.org @prologic@twtxt.net it seems like the ssl verification works now, I enabled it - but also added another option as well that I now saw in the docs, and now it did not fail on my end (which it did before). I will add a ‘enable ssl verification’ checkbox (checked by default) so that those who do not need or want it for testing and such can disable it if they want.
@prologic@twtxt.net thank you, found that as well. Had a read, and well.. behavior like that is not easy to deal with.
I’m not super a fan of using json. I feel we could still use text as the medium. Maybe a modified version to fix any weakness.
What if instead of signing each twt individually we generated a merkle tree using the twt hashes? Then a signature of the root hash. This would ensure the full stream of twts are intact with a minimal overhead. With the added bonus of helping clients identify missing twts when syncing/gossiping.
Have two endpoints. One as the webfinger to link profile details and avatar like you posted. And the signature for the merkleroot twt. And the other a pageable stream of twts. Or individual twts/merkle branch to incrementally access twt feeds.
I’m not super a fan of using json. I feel we could still use text as the medium. Maybe a modified version to fix any weakness.
What if instead of signing each twt individually we generated a merkle tree using the twt hashes? Then a signature of the root hash. This would ensure the full stream of twts are intact with a minimal overhead. With the added bonus of helping clients identify missing twts when syncing/gossiping.
Have two endpoints. One as the webfinger to link profile details and avatar like you posted. And the signature for the merkleroot twt. And the other a pageable stream of twts. Or individual twts/merkle branch to incrementally access twt feeds.
💡 Quick ‘n Dirty prototype Yarn.social protocol/spec:
If we were to decide to write a new spec/protocol, what would it look like?
Here’s my rough draft (back of paper napkin idea):
- Feeds are JSON file(s) fetchable by standard HTTP clients over TLS
- WebFinger is used at the root of a user’s domain (or multi-user) lookup. e.g:
prologic@mills.io->https://yarn.mills.io/~prologic.json
- Feeds contain similar metadata that we’re familiar with: Nick, Avatar, Description, etc
- Feed items are signed with a ED25519 private key. That is all “posts” are cryptographically signed.
- Feed items continue to use content-addressing, but use the full Blake2b Base64 encoded hash.
- Edited feed items produce an “Edited” item so that clients can easily follow Edits.
- Deleted feed items produced a “Deleted” item so that clients can easily delete cached items.
💭 While some people like to jump between blogging software all the time, or go back to Hugo from a custom one, I don’t really miss Hugo after switching to GoBlog in 2020, but enjoy having my own system quite a bit. Not that Hugo, WordPress, etc. are bad blogging systems, but I really enjoy being able to quickly code a fix without having to research docs, StackOverflow, or the source on GitHub. And when I have an idea for a new feature, it would often not be easy to implement in the existing systems. ⌘ Read more
Good morning to you all! Started my day by walking about 5km around a lake that’s next to the ocean, a really nice place to walk. It rains today, so not many people out (which I like). So now the dog is sleeping on the sofa. My daughter went to a friend for a visit today, and my son is just chilling and watching youtube. So it’s a nice chill start to this Saturday :) Hope you all have a great day!
just loving this little guy: (·,·). it’s like he’s looking through a crack: ‘come on, you’ll understand the function definition’
How generative AI is changing the way developers work
Rapid advancements in generative AI coding tools like GitHub Copilot are accelerating the next wave of software development. Here’s what you need to know. ⌘ Read more
Very cool. I like the chain rules. I wonder how it performs against lextwt.
Very cool. I like the chain rules. I wonder how it performs against lextwt.
@lyse@lyse.isobeef.org We use gitlab daily at work. but for my own projects I use gogs. I have some scripts that I used for a gnusocial client that I maintained (before leaving gnusocial). I’ll see if I can adapt that and make deb files for the yarn client - I mostly use debian \ Trisquel my self, so I also like .deb as well.
Also - I would like to know where you all like to have git hosted..
Github? Some other place? Do you mind self-hosted git servers? (I currently have my own)..
What do you all prefer? Do you mind compiling software from source if instructions are clear and easy? Or do you prefer to download a released binary and run that?
I also later on (as soon as it’s in usable state) want to make flatpack, appimage as well, that is something I have not done before - but I want to set that up as well.
What Would Space Taste Like? ⌘ Read more
@lyse@lyse.isobeef.org Sounds like a really nice day!
Kev built his own microblog using WordPress and iOS shortcuts to separate his long and short posts. It sounds like this is a better alternative for him than micro.blog. Maybe with SQLite as the database he can even simplify this setup. ⌘ Read more
Erlang Solutions: You’ve been curious about LiveView, but you haven’t gotten into it
As a backend developer, I’ve spent most of my programming career away from frontend development. Whether it’s React/Elm for the web or Swift/Kotlin for mobile, these are fields of knowledge that fall outside of what I usually work with.
Nonetheless, I always wanted to have a tool at my disposal for building rich frontends. While the web seemed like the platform with the lowest bar … ⌘ Read more
Hi guys! My first ever Yarn post 😺 📦
I already think I am going to like this better than mastodon. My question is, is this federated… @support@twtxt.net ?? If so I am a lifer. Haha and I’ve been here 5 minutes 💖
I like to occasionally do some graphical artwork from time to time. For the first place to get all my art and other’s too check out XMPP at this address: xmpp:artwork@chat.toofast.vip?join
Another question, is this using markdown for markup? @thecanine@twtxt.net ?? Follow me back mateo! 😎
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
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
Im going to fall a sleep standing up tonight it feels like. Holy shit I’m tired today. Just one more day then it’s much needed vacation time.
@funbreaker@twtxt.net No worries, I’m just glad to see that someone likes what I spend my time on.
Always fun to make something that someone else finds useful. I’ll definitely get it into a usable state as soon as possible.
@prologic@twtxt.net I always liked bit.
I am disappointed that a GUI app would not at least have screenshots.
@prologic@twtxt.net I always liked bit.
I am disappointed that a GUI app would not at least have screenshots.
main) actually useful? 🤔 (because I'm not and having second thoughts...)
@prologic@twtxt.net I like it, I get to follow some people I could not follow before, which I find useful.
But if you have second thoughts about it all - then I can understand that.
If you decide to pull the plug on it - then I’ll just get some additional activitypub service installed on my server and use that for that (I was thinking about installing this: https://github.com/tsileo/microblog.pub ) if needed.
** week notes **
Some things of note, links mostly:
First and foremost, I found a suitable pinboard replacement in link hut! Shout outs to my buddy Bruno for the tip.
Here’s a bookmarklet I wrote to make it a bit more ergonomic for how I like to roll,
javascript
javascript:(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">const</span> tags = prompt(<span class="hljs-string">'A space separated list of tags.' ... ⌘ [Read more](https://eli.li/2023/03/31/week-notes)
not the greatest idea whilst searching for a job, but fuck it. Now I also feel like going for a walk, so win I guess
**Now that @JoeSondow’s bot games like @EmojiSnakeGame are no longer going be free to play, I can only hope he will soon have mastodon versions of it running, and I will no longer have a reason to open twitter’s app often.
And no, paying for a verified account is not on the table.**
Now that @JoeSondow’s bot games like @EmojiSnakeGame are no longer going be free to play, I can only hope he will soon have mastod … ⌘ Read more
It sucks a bit. I’ll probably keep my account, but not post there after that.
I use my account mostly for tech stuff, and to keep up with the new things and stuff like that.
I can still do that without paying, but I do not want to pay to get more views etc.
So I’ll just pin a post there - pointing to here instead after that goes active.
Timeline is cleaned up, so now I think I have that part sorted.
Next is to refactor a bit and then fix so that the timeline refreshes properly.
Once that is done I think I’ll clean it up and upload the source somewhere and create tickets for outstanding known issues. Most likely upload it to github and continue the work there.
Good morning to you all! Rain is still poring down, tired of getting wet each time I go outside. heh.
Going to rain all weekend it seems, but then next week it’ll get better. Hoped the rain would stop this weekend, but it seems like it wont.
**RT by @mind_booster: Highlights from IPCC report:
- The world’s on track to hit above 3°C of warming by 2100.
- Emissions must peak by 2025 and nearly halve by 2030 to keep warming to 1.5°C
- 3-bil people likely to suffer water scarcity at 2°C.
- No gov has a credible plan to keep warming in target.**
Highlights from IPCC report:
- The world’s on track to hit above 3°C of warming by 2100.
- Emissions must peak by 2025 and nearly halve by 2030 to keep warming to 1.5°C
- 3-bil people likely to suffer w … ⌘ Read more
Planning? Looks more like committing.
I have cleaned up the timeline a bit, I like this much more.
I use the markdown text now, instead of the ‘text’ field in the json file, looks much cleaner.
I can work with this. One thing that I want to sort out next is the way the nicknames and url is shown.
Also links in posts should be clickable - not sure if the current labels support that, but I’ll try and figure it out somehow. Anyways - latest screenshot is attached here.. :)
With all this ActivityPub hectic, it is still nice to have a super simple platform like Twttxt to get back to.
Just see the total hashrate on the network, then figure out how many cpu’s you need to get over 51% of that rate - you then know what it would cost :)
Also - nice to see a monero discussion, it’s my fav cc. Also like it a lot because of the asic resistance that is built in.
So my status above looks like this in fltk because of the @
A lot of more work needs to be done, but at least now I got the basic timeline stuff done, took a good while to figure out how to solve it, but now I know. The reason why the statuses are cut short on some is because of html tags and stuff like that - c++ is a bit picky with strings and stuff like that. but I’ll get that sorted as well.
At least I can show the first screenshot. Keep in mind the GUI is not at all finished, I’m working on the basics first, implement all the features, then I work on finishing touches.
Okay, so it seems like the label\text I use for statuses does not like the strings from posts.
Especially if they contain html tags and such (which the often do), it just breaks the text.
I wonder what I can do with that.. I kinda want to not have html tags in the json reply.
Have to think a bit about how to solve it. Took a while to figure it out, the text was just garbled.
I created some long example strings with regular letters and such, to see if X number of posts would show up, and they did, but when I then replace my test strings with text from json - it goes all wrong again.