Searching txt.sour.is

Twts matching #fail
Sort by: Newest, Oldest, Most Relevant
In-reply-to » @aelaraji I'm definitely putting that in the list. I like tmux but I just can't wrap my head around the controls. This looks more like a tiling window manager.

@mckinley@twtxt.net I have a custom .tmux.conf that makes it very easy to use the multiplexer, but I agree, Zellij seems pretty robust, and intuitive. I like it! Tried compiling it, as with everything Rust, it failed miserably. Good thing there is a binary release I could download to try!

⤋ Read More
In-reply-to » I'm closing down neotxt.dk as a yarn pod. It will instead offer hosting of timeline or what ever other php stuff you want to run. To get started send me a poem to poem@neotxt.dk

@bender@twtxt.net ha! He goes his “poem”:

A string of letters, a forgotten name,
An email crafted, a message to claim.
We hit send with a click, a hopeful sigh,
But a bounce-back arrives, a tear in our eye.

“Delivery failed,” the message reads cold,
The address it seems, is a story untold.
A ghost in the system, a memory’s trace,
Lost in the void of cyberspace.

:-D

⤋ Read More

Thousands of academic workers at York University strike for better wages
Around three thousand academic workers at York University walked off the job on Monday after their union and the school failed to reach a deal on a new collective agreement. Union members are calling for wages that they say reflect the current cost of living. ⌘ Read more

⤋ Read More

Nassau County called to do more with opioid settlement
The families of drug overdose victims on Long Island are accusing the Nassau County government of failing to distribute more than $92M that they received as part of opioid settlements. ⌘ Read more

⤋ Read More

Battle over border bills continues in Congress
President Joe Biden and former President Donald Trump are planning to visit the U.S. border on the same day, separated by just 300 miles as a bipartisan group in the House is working to provide an alternative to the Senate’s failed national security bill. ⌘ Read more

⤋ Read More

GOP laments 2021 ‘failed coup’, vows to ‘continue pushing to end democracy’, with Trump at forefront
Former President Donald Trump cast November’s presidential election as “judgment day” and declared himself a “proud political dissident” during a speech before conservative activists outside of Washington Saturday as he again cloaked his campaign in religious imagery. Speaking at the Conservative Political … ⌘ Read more

⤋ Read More

Ukraine says counteroffensive plans were leaked to Russia
Ukrainian President Volodymyr Zelensky suggested on Sunday that plans for Kyiv’s long-awaited counteroffensive last year had been leaked to Russia ahead of time. Ukraine’s counteroffensive in 2023, powered by billions of dollars in Western arms, largely fell flat, failing to break through multiple lines of Russian defences and fortifications. ⌘ Read more

⤋ Read More

UN chief: Security Council undermined by Gaza, Ukraine deadlock
United Nations chief Antonio Guterres on Monday (February 26) deplored how the U.N. Security Council had failed to respond adequately to the Israel-Hamas conflict in Gaza and Russia’s invasion of Ukraine, saying the conflicts had “perhaps fatally” undermined its authority. ⌘ Read more

⤋ Read More

Bolsonaro Supporters Flood Street in Sao Paulo
Former Brazilian president Jair Bolsonaro ridiculed accusations against him of orchestrating a failed coup in front of tens of thousands of his supporters gathered in Sao Paulo on Sunday, February 25. Police are investigating if Bolsonaro incited what amounted to a failed coup after losing the 2022 election, and say he edited a draft presidential decree that would have declared a state of emergency and c … ⌘ Read more

⤋ Read More

Huge Show of Support for Bolsonaro in Sao Paulo Amid Coup Investigation
Former Brazilian president Jair Bolsonaro ridiculed accusations against him of orchestrating a failed coup in front of tens of thousands of his supporters gathered in Sao Paulo on Sunday, February 25. Police are investigating if Bolsonaro incited what amounted to a failed coup after losing the 2022 election, and say he edited a draft presidential decree t … ⌘ Read more

⤋ 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?

⤋ Read More
In-reply-to » 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

@prologic@twtxt.net Yeah, we had some discussion about it once it was announced. I said what I felt (And I do love VR - but for flight simulators etc) - but I just knew it would fail.
Especially when they showed the ridiculous screenshots that they where so proud of with the quality of 15 years ago.
And they they pushed it as a place to work or have meetings during the pandemic.. haha.
And they did not even use it themselves in the company.

⤋ Read More