Searching txt.sour.is

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

Beta 1 of iOS 17.4 & iPadOS 17.4 Available for Testing
Apple has released the first beta versions of iOS 17.4 and iPadOS 17.4 to users enrolled in the developer beta testing programs for iPhone and iPad system software. There are some significant changes for European users arriving in betas for iOS 17.4, including changes to the App Store, and adding the ability to install apps … [Read More](https://osxdaily.com/2024/01/26/beta-1-of-ios-17-4-ipados-17-4-available-for-testing/ … ⌘ Read more

⤋ Read More

Release Candidates for iOS 17.3, iPadOS 17.3, macOS Sonoma 14.3, Available for Testing
Apple has issued Release Candidate builds for iOS 17.3, iPadOS 17.3, macOS Sonoma 14.3, watchOS 10.3, and tvOS 17.3, for users involved in the beta testing programs. Release Candidate (RC) builds are typically the final version of a beta release cycle before the update becomes broadly available to all users. Occasionally, a second (or even … [Read More](https://os … ⌘ Read more

⤋ Read More

Beta 3 of macOS Sonoma 14.3, iOS 17.3, iPadOS 17.3, Available for Testing
Apple has released the third beta versions of iOS 17.3, iPadOS 17.3, and macOS Sonoma 14.3 to users participating in the beta testing programs. There’s also a new tvOS beta version for those interested in that. iOS 17.3 includes an intriguing new feature called Stolen Device Protection which aims to make it harder for thieves … [Read More](https://osxdaily.com/2024/01/10/beta-3-of-macos-son … ⌘ Read more

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

So, I finally got day 17 to under a second on my machine. (in the test runner it takes 10)

I implemented a Fibonacci Heap to replace the priority queue to great success.

https://git.sour.is/xuu/advent-of-code/src/branch/main/search.go#L168-L268

⤋ Read More

掌握 go test 命令,寫出可信賴的代碼
*1. test 命令概述在開發過程中,測試是確保代碼質量和穩定性的關鍵步驟。通過測試,可及早發現潛在的問題,確保代碼的正確性和可維護性。Go 語言提供了強大的測試工具,其中 go test 命令是一個不可或缺的利器。1.1 單元測試單元測試是驗證代碼中最小可測試單元的過程。在 Go 中,單元測試通常位於與被測試代碼相同的包中,以 test.go 結尾的文件中。go test 會執行這些文件中的測 ⌘ Read more

⤋ Read More

Beta 2 of iOS 17.3, iPadOS 17.3, macOS Sonoma 14.3 Available for Testing
Apple has issued the second beta versions of iPadOS 17.3 for iPad, iOS 17.3 for iPhone (which has since been pulled), and macOS Sonoma 14.3. The new betas are available to download now for any user actively enrolled in the appropriate beta testing program. Update: Just kidding, iOS 17.3 beta 2 has been pulled because … [Read More](https://osxdaily.com/2024/01/03/beta-2-of-ios-17-3-ipados-17- … ⌘ Read more

⤋ Read More

Go 測試的 20 個實用建議
2023 年 11 月初,Go 語言技術負責人 Russ Cox 在 GopherCon Australia 2023[1] 大會上進行了題爲 “Go Testing By Example”[2] 的演講:12 月初 Russ Cox 重新錄製了該演講內容的視頻,並在個人網站 [3] 上放了出來。這個演講視頻是關於如何編寫好的 Go 測試的,Russ Cox 介紹了 20 個實用建議,非常值得 G ⌘ Read more

⤋ Read More

I like coding on stuff, but I rarely spend time in unreal engine, or godot, but I still want to code on some game stuff once in a while. I think I’ve found what I’ve been looking for to test out - #raylib https://www.raylib.com/ , I want to recreate one of my older (outdated) projects that I did a while back in godot, but make the same with raylib. Also it would be cool to use the USD ( https://openusd.org/release/index.html ) library that me and a friend is coding - to then implement it and load USD scenes in raylib, that would be very nice, that way I get to work on both the USD library, and code some game stuff at the same time, always nice to combine things.

⤋ Read More

Beta 1 of iOS 17.3, iPadOS 17.3, macOS Sonoma 14.3 Available for Testing
Apple has issued the first beta versions of iOS 17.3 for iPhone, ipadOS 17.3 for iPad, and macOS Sonoma 14.3 for Mac. The beta builds are available now to users enrolled in the beta testing programs on their compatible devices. iOS 17.3 will introduce a new feature called Stolen Device Protection which aims to help … [Read More](https://osxdaily.com/2023/12/12/beta-1-of-ios-17-3-ipados-17-3- … ⌘ Read more

⤋ Read More

macOS Sonoma 14.2 RC Issued for Testing, Final Release Coming Soon
Mac users enrolled in the beta testing program for macOS Sonoma will find 14.2 available as a release candidate. Release Candidate builds are typically the final version in the beta cycle, suggesting a release of macOS Sonoma 14.2 to the general public is imminent. Additionally, Apple has issued RC builds for other beta system software … [Read More](https://osxdaily.com/2023/12/06/macos-sonoma-14-2-rc- … ⌘ Read more

⤋ Read More

iOS 17.2 RC Released for Testing, Final Coming Soon
Apple has issued a release candidate (RC) build for iOS 17.2 for iPhone and iPadOS 17.2 for iPad. Release Candidates are typically the last of the beta development cycle, unless some additional significant bug or security issue is found, suggesting that the final version of iOS 17.2 and iPadOS 17.2 will be coming in the … Read MoreRead more

⤋ Read More

Beta 4 of iOS 17.2, iPadOS 17.2, MacOS Sonoma 14.2 Released for Testing
Apple has released another round of betas for their operating system suite, with iOS 17.2 beta 4 for iPhone, iPadOS 17.2 beta 4 for iPad, and macOS Sonoma 14.2 beta 4 for Mac, each being available to users participating in the beta testing programs for Apple system software. Some new features are coming with iOS … [Read More](https://osxdaily.com/2023/11/29/beta-4-of-ios-17-2-ipados-17-2-macos … ⌘ Read more

⤋ Read More

Evernote Pushes Users To Upgrade
After making steep cuts to personnel earlier this year, Evernote’s Milan-based owner Bending Spoons is now experimenting with a new plan that would push more users to upgrade to paid versions of its service. From a report: The company confirmed to TechCrunch it’s been running a small test that placed limits on the number of notes free users could create, but said the new plan is not yet finalized. TechCrunch was al … ⌘ Read more

⤋ Read More
In-reply-to » So.. Of y'all that had covid. Did you have at the end a night where for no reason your brain amped up to 11 and can't sleep at all? It happened to me last night and my FIL the night before.

@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. 🤞

⤋ Read More

Beta 3 of iOS 17.2, iPadOS 17.2, MacOS Sonoma 14.2 Released for Testing
The third beta version of iOS 17.2 for iPhone, iPadOS 17.2 for iPad, and macOS Sonoma 14.2 for Mac, have been released for users engaging in the beta testing programs for Apple system software. Betas of iOS 17.2, macOS Sonoma 14.2, and iPadOS 17.2, includes the ability to add stickers to your iMessages from long-tap/click … [Read More](https://osxdaily.com/2023/11/14/beta-3-of-ios-17-2-ipados- … ⌘ Read more

⤋ Read More

Beta 2 of iOS 17.2, iPadOS 17.2, MacOS Sonoma 14.2 Released for Testing
Apple has released the second beta versions of iOS 17.2 for iPhone, iPadOS 17.2 for iPad, and macOS Sonoma 14.2 for Mac. The beta versions are available now to users participating in the beta testing programs for iOS, iPadOS, and macOS. iOS 17.2 beta includes the Journal app, which lets users track their lives in … [Read More](https://osxdaily.com/2023/11/10/beta-2-of-ios-17-2-ipados-17-2-maco … ⌘ Read more

⤋ Read More
In-reply-to » Got latest OpenBSD installed on one of my laptops, now Ill try and get the desktop client to work there. This will be fun!

First issue I ran into is rapidjson, there is no package for it, but it compiled from source without google tests. But I did not check what version I had on my debian machine, so I need to check that and compile the same version on openbsd. Ill work on that tomorrow.

⤋ Read More

Messed up the configuration of the nut UPS monitor so bad it actually initialised an UPS test where the device switched itself off on the reboot of the PC. No idea how that happened. So uninstalled it again.

⤋ Read More
In-reply-to » How are you all doing today? :)

@movq@www.uninformativ.de @lyse@lyse.isobeef.org Nice! Always nice to do a walk, and fun to test stuff like GPS and such :) I’ve been walking a bit as well today, but also had some nice time at home, I work a bit this weekend, so I’ve spent some time on that. But also we went to the mall and such. Now we’re baking pizza. And will watch a movie or something when the kids has gone to sleep tonight. :)

⤋ Read More

Release Candidate of iOS 17.1, MacOS Sonoma 14.1, iPadOS 17.1, Released for Testing
iOS 17.1 RC, iPadOS 17.1 RC, and MacOS Sonoma 14.1 RC, have been released by Apple and are now available for users involved in the beta testing programs for Apple system software. The RC (Release Candidate) build is initially available for developers, but the public beta version is soon followed. While iOS 17.1, iPadOS 17.1, … [Read More](https://osxdaily.com/2023/10/17/ … ⌘ Read more

⤋ Read More

Beta 3 of iOS 17.1, iPadOS 17.1, MacOS Sonoma 14.1 Released for Testers
Apple has released the third beta versions of iOS 17.1, iPadOS 17.1, and MacOS Sonoma 14.1, for users who are enrolled in the beta testing programs for Apple system software. As usual, the betas are first available to developers, and then are soon followed by the same build for public beta testers. Apple announced several … [Read More](https://osxdaily.com/2023/10/10/beta-3-of-ios-17-1-ipados- … ⌘ Read more

⤋ Read More
In-reply-to » @prologic - I do not want to nag about it - but did you find some way to post image through curl? (Or could you share the almost-working solution that you tried?), if you have not had time - then that's fine too. I want to start looking into it again :)

@prologic@twtxt.net I do that now, and all that works, it’s just that I do not (currently) check it multiple times, in the test I did it completed as soon as the image was uploaded. But yeah I have to do some more with that for bigger files for sure. I’ll look into that next.

⤋ Read More

Beta 2 of iOS 17.1, iPadOS 17.1, MacOS Sonoma 14.1 Released for Testing
Apple has issued the second beta versions of MacOS Sonoma 14.1, iOS 17.1, and iPadoS 17.1, for users who are participating in those beta testing programs. The beta 2 builds are available first for edevelopers, and are soon followed by public betas. iOS 17.1, iPadOS 17.1, and MacOS Sonoma 14.1 will likely include some new … [Read More](https://osxdaily.com/2023/10/03/beta-2-of-ios-17-1-ipados-1 … ⌘ Read more

⤋ Read More

How to Stop Getting Beta MacOS Updates in MacOS Sonoma
If you’ve already installed and updated to MacOS Sonoma, and you were previously in the beta testing programs (either public beta or developer beta), you may wish to no longer receive beta updates to your Mac. If you don’t do this, and you were previously enrolled in the MacOS Sonoma beta testing program, you will … Read MoreRead more

⤋ Read More

How to Remove iOS 17 Beta From Your iPhone & iPad
If you were part of the iOS 17 beta test or iPadOS 17 beta testing programs, and now you’re on the latest stable build (iOS 17.0.2), you may wish to remove the beta updates from your iPhone or iPad, so that you no longer receive beta updates and stay on the stable builds of system … Read MoreRead more

⤋ Read More

MacOS Sonoma 14.1 Beta Available to Download
Apple has issued the first beta version of MacOS Sonoma 14.1 beta to users enrolled in the beta testing program for Apple system software. The beta update arrives just a day after the final release and availability of MacOS Sonoma 14.0 became available to download and install for all Mac users. Separately, Apple has released … Read MoreRead more

⤋ Read More

iOS 17.1 Beta & iPadOS 17.1 Beta Available Now
Apple has released the first beta versions of iOS 17.1 and iPadOS 17.1 for iPhone and iPad users enrolled in their respective beta testing programs. The beta builds arrive a day after iOS 17.0.2 and iPadOS 17.0.2 were released to the broader public for all users. Apple is working to bring additional features to iOS … Read MoreRead more

⤋ Read More

How GitHub uses GitHub Actions and Actions larger runners to build and test GitHub.com
Recently, we’ve been working to make our CI experience better by leveraging the newly released GitHub feature, Actions larger runners, to run our CI.

The post [How GitHub uses GitHub Actions and Actions larger runners to build and test GitHub.com](https://github.blog/2023-09-26-how-github-uses-github-actions-and-actions-larger-runners-to-build-and-test-github-com/ … ⌘ 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 » Hope you all are doing well! we're enjoying the heatwave that has hit us. :)

@prologic@twtxt.net thank you! I got started on some 3D stuff this morning, we then went to the candy store to get some candy, tonight well have that, and nachos + a movie. and the rest of the day we have been outside :)

here is what I got started on this morning :

Image


just testing some ocean stuff.

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

⤋ Read More

Announcing the public preview of GitHub Advanced Security for Azure DevOps
GitHub Advanced Security for Azure DevOps is now available for public preview, making GitHub’s same application security testing tools natively available on Azure Repos. ⌘ Read more

⤋ Read More

How GitHub Copilot is getting better at understanding your code
With a new Fill-in-the-Middle paradigm, GitHub engineers improved the way GitHub Copilot contextualizes your code. By continuing to develop and test advanced retrieval algorithms, they’re working on making our AI tool even more advanced. ⌘ Read more

⤋ Read More

I have not used AI much at all, I have not paid any attention to it. But today I decided to give stablediffusion a test run, I do only have a 1080 card, so it took some tweaking to output 512x256 images, and I must say it works pretty well. I also had to get one of the memory optimized versions. Fun to test.

⤋ Read More

@funbreaker@twtxt.net I have pushed a fix now to git, I now got rid of the error when I use it on my end. I will create a test account on twtxt later tonight (after dinner and all that) if needed. If you test the latest on your end before that - let me know :) And thanks for your patience.

⤋ Read More
In-reply-to » The code for the desktop client is now public here: https://github.com/stig-atle/YarnDesktopClient , I will create tickets for the known things I need to fix and such later today.

@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.

⤋ Read More

@funbreaker@twtxt.net okay, so something goes wrong in the response you get. Hm. I see you use twtxt, ill check against there tomorrow and see if I can find the issue (midnight here now). Also ill work on better error output as well when I find the problem.
Thank you for testing!

⤋ Read More
In-reply-to » "PineTab2 and PineTab-V tablets available for pre-order for $159 and up with a choice of ARM or RISC-V chips"

That reminds me about something, I want to test if I can compile my desktop client on my mangopi riscv board with debian. That would be cool to run on it.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

Also - did a quick test on linux, it gave a lot of errors with the rapidjson library, so I have to find a way to work around that. I think I’ll pull the latest, then compile it - and then point to that - instead of installing the rapidjson-dev package. Maybe that’ll work.

⤋ Read More
In-reply-to » Often people run a node somewhere, then connect to it with the remote node feature from other machines. Or use a light wallet. Cpu use will go down when block chain is synced. Also just a tip - check the prune blockchain feature to save a lot of space.

@shreyan@twtxt.net first time I’ve seen someone mention gnu taler. Been following it since it was announced:) never used for anything other then testing though.

⤋ Read More
In-reply-to » Posting from c++, fltk GUI.

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.

⤋ Read More
In-reply-to » Test from ftlk in rust.

So, progress is going smooth!
No I have compiled libcurl with openssl, and I fetch token already.
so next is creating three functions - one for posting, one for the login and fetching token (now I have just testing login when application starts), and the fetch the timeline. Then I need the gui.
Progressed faster in 2 hours in c++ then days with rust…

⤋ Read More
In-reply-to » tonight Im going to tinker a bit with my Mangopi riscv board. runs debian. I want to update it and install some new stuff on it.

@bender@twtxt.net Yeah, that is correct :) I use it for testing, but I set it up as any desktop system as close as I can, with all the things I usually use.
I’m really excited about riscv - I have another board as well, which is more like a arduino, but I never got that one to do anything useful, but the mangopo - is as you say more usefull since it’s just like a raspberrypi zero, and works very well.
But I am looking forward to that day I can have a proper desktop system (or laptop) with riscv. There was a board released some time ago that let you do that, but the price was a bit too high for me .So now I wait for the next thing to come out.

⤋ Read More

I bought a 256GB usb a couple of weeks ago, I now want a OS on it with persistent storage.
I only have 1 drive on my newest laptop at the moment, so I do not want to dualboot and such, so a os on the usb stick is a nice option.
Tonight I’m testing NomadBSD - https://nomadbsd.org/index.html
Will flash it in a couple of minutes, hope it boots fine with my hardware.

⤋ Read More

@prologic@twtxt.net @movq@www.uninformativ.de this is the default behavior of pass on my machine:

Image

I add a new password entry named example and then type pass example. The password I chose, “test”, is displayed in cleartext. This is very bad default behavior. I don’t know about the other clis you both mentioned but I’ll check them out.

The browser plugin browserpass does the same kind of thing, though I have already removed it and I’m not going to reinstall it to make a movie. Next to each credential there’s an icon to copy the username to the clipboard, an icon to copy the password to the clipboard, and then an icon to view details, which shows you everything, including the password, in cleartext. The screencap in the Chrome store is out of date; it doesn’t show the offending link to show all details, which I know is there because I literally installed it today and played with it.

⤋ Read More

do anyone know anything about wireguard? I have a VPS, which runs nginx. If I then want tjat to host something from my house, do I then set up vps as wiregiard server, connect from my house to it - and then serve the wireguard client? or do it the other way around? I think I have to look into it this weekend. would be a nice way to test out things.

⤋ Read More
In-reply-to » I made a thing. Its a multi password type checker. Using the PHC string format we can identify a password hashing format from the prefix $name$ and then dispatch the hashing or checking to its specific format.

Hold up now, that example hash doesn’t have a $ prefix!

Well for this there is the option for a hash type to set itself as a fall through if a matching hash doesn’t exist. This is good for legacy password types that don’t follow the convention.

func (p *plainPasswd) ApplyPasswd(passwd *passwd.Passwd) {
	passwd.Register("plain", p)
	passwd.SetFallthrough(p)
}

https://github.com/sour-is/go-passwd/blob/main/passwd_test.go#L28-L31

⤋ Read More
In-reply-to » I made a thing. Its a multi password type checker. Using the PHC string format we can identify a password hashing format from the prefix $name$ and then dispatch the hashing or checking to its specific format.

Here is an example of usage:

func Example() {
	pass := "my_pass"
	hash := "my_pass"

	pwd := passwd.New(
		&unix.MD5{}, // first is preferred type.
		&plainPasswd{},
	)

	_, err := pwd.Passwd(pass, hash)
	if err != nil {
		fmt.Println("fail: ", err)
	}

	// Check if we want to update.
	if !pwd.IsPreferred(hash) {
		newHash, err := pwd.Passwd(pass, "")
		if err != nil {
			fmt.Println("fail: ", err)
		}

		fmt.Println("new hash:", newHash)
	}

	// Output:
	//  new hash: $1$81ed91e1131a3a5a50d8a68e8ef85fa0
}

This shows how one would set a preferred hashing type and if the current version of ones password is not the preferred type updates it to enhance the security of the hashed password when someone logs in.

https://github.com/sour-is/go-passwd/blob/main/passwd_test.go#L33-L59

⤋ Read More
In-reply-to » It should be illegal for firealarms to sound a low battery after 10pm and before 8 am.

And that I can silence it without having or go through the full test announcing fire and carbon monox throughout the house.

⤋ Read More
In-reply-to » I did a take home software engineering test for a company recently, unfortunately I was really sick (have finally recovered) at the time 😢 I was also at the same time interviewing for an SRE position (as well as Software Engineering).

@prologic@twtxt.net Error handling especially in Go is very tricky I think. Even though the idea is simple, it’s fairly hard to actually implement and use in a meaningful way in my opinion. All this error wrapping or the lack of it and checking whether some specific error occurred is a mess. errors.As(…) just doesn’t feel natural. errors.Is(…) only just. I mainly avoided it. Yesterday evening I actually researched a bit about that and found this article on errors with Go 1.13. It shed a little bit of light, but I still have a long way to go, I reckon.

We tried several things but haven’t found the holy grail. Currently, we have a mix of different styles, but nothing feels really right. And having plenty of different approaches also doesn’t help, that’s right. I agree, error messages often end up getting wrapped way too much with useless information. We haven’t found a solution yet. We just noticed that it kind of depends on the exact circumstances, sometimes the caller should add more information, sometimes it’s better if the callee already includes what it was supposed to do.

To experiment and get a feel for yesterday’s research results I tried myself on the combined log parser and how to signal three different errors. I’m not happy with it. Any feedback is highly appreciated. The idea is to let the caller check (not implemented yet) whether a specific error occurred. That means I have to define some dedicated errors upfront (ErrInvalidFormat, ErrInvalidStatusCode, ErrInvalidSentBytes) that can be used in the err == ErrInvalidFormat or probably more correct errors.Is(err, ErrInvalidFormat) check at the caller.

All three errors define separate error categories and are created using errors.New(…). But for the invalid status code and invalid sent bytes cases I want to include more detail, the actual invalid number that is. Since these errors are already predefined, I cannot add this dynamic information to them. So I would need to wrap them à la fmt.Errorf("invalid sent bytes '%s': %w", sentBytes, ErrInvalidSentBytes"). Yet, the ErrInvalidSentBytes is wrapped and can be asserted later on using errors.Is(err, ErrInvalidSentBytes), but the big problem is that the message is repeated. I don’t want that!

Having a Python and Java background, exception hierarchies are a well understood concept I’m trying to use here. While typing this long message it occurs to me that this is probably the issue here. Anyways, I thought, I just create a ParseError type, that can hold a custom message and some causing error (one of the three ErrInvalid* above). The custom message is then returned at Error() and the wrapped cause will be matched in Is(…). I then just return a ParseError{fmt.Sprintf("invalid sent bytes '%s'", sentBytes), ErrInvalidSentBytes}, but that looks super weird.

I probably need to scrap the “parent error” ParseError and make all three “suberrors” three dedicated error types implementing Error() string methods where I create a useful error messages. Then the caller probably could just errors.Is(err, InvalidSentBytesError{}). But creating an instance of the InvalidSentBytesError type only to check for such an error category just does feel wrong to me. However, it might be the way to do this. I don’t know. To be tried. Opinions, anyone? Implementing a whole new type is some effort, that I want to avoid.

Alternatively just one ParseError containing an error kind enumeration for InvalidFormat and friends could be used. Also seen that pattern before. But that would then require the much more verbose var parseError ParseError; if errors.As(err, &parseError) && parseError.Kind == InvalidSentBytes { … } or something like that. Far from elegant in my eyes.

⤋ Read More

I did a take home software engineering test for a company recently, unfortunately I was really sick (have finally recovered) at the time 😢 I was also at the same time interviewing for an SRE position (as well as Software Engineering).

Got the results of my take-home today and whilst there was some good feedback, man the criticisms of my work were harsh. I’m strictly not allowed to share the work I did for this take-home test, and I really can only agree with the “no unit tests” piece of the feedback, I could have done better there, but I was time pressured, sick and ran out of steam. I was using a lot of libraires to do the work so in the end found it difficult to actually think about a proper set of “Unit Tests”. I did write one (in shell) but I guess it wasn’t seen?

The other points were on my report and future work. Not detailed enough I guess? Hmmm 🤔

Am I really this bad? Does my code suck? 🤔 Have I completely lost touch with software engineering? 🤦‍♂️

⤋ Read More
In-reply-to » Have you heard about the guy who worked on the Google AI chat bot? It is more than a chat bot and the conversation he published (got put on paid leave for doing that) is pretty scary : https://cajundiscordian.medium.com/is-lamda-sentient-an-interview-ea64d916d917

the conversation wasn’t that impressive TBH. I would have liked to see more evidence of critical thinking and recall from prior chats. Concheria on reddit had some great questions.

  • Tell LaMDA “Someone once told me a story about a wise owl who protected the animals in the forest from a monster. Who was that?” See if it can recall its own actions and self-recognize.

  • Tell LaMDA some information that tester X can’t know. Appear as tester X, and see if LaMDA can lie or make up a story about the information.

  • Tell LaMDA to communicate with researchers whenever it feels bored (as it claims in the transcript). See if it ever makes an attempt at communication without a trigger.

  • Make a basic theory of mind test for children. Tell LaMDA an elaborate story with something like “Tester X wrote Z code in terminal 2, but I moved it to terminal 4”, then appear as tester X and ask “Where do you think I’m going to look for Z code?” See if it knows something as simple as Tester X not knowing where the code is (Children only pass this test until they’re around 4 years old).

  • Make several conversations with LaMDA repeating some of these questions - What it feels to be a machine, how its code works, how its emotions feel. I suspect that different iterations of LaMDA will give completely different answers to the questions, and the transcript only ever shows one instance.

⤋ Read More

Spent the last few days debugging network issues at work.

Exhausting. You never get a full picture. You poke a little here, poke a little there, … Form a hypothesis and test it. Eventually, maybe, you can narrow it down a bit to some segment or even some component.

A very time consuming process. Even more so if you try not to cause downtimes for your users.

I want a magical device that allows me to look inside a cable/fibre.

But hey, at least we got rid of a bunch of Cisco switches in the process. So there’s that.

⤋ Read More

in retrospect, i do remember expecting some message about “yes, you passed the test, you were actually living in a lie”, but i think that died when nobody gave me a bad grade for taking too long to become vegetarian. maybe veganism…

⤋ Read More

** 2022-02-24 feature/6.0 Android test plan **

Overview

Will test the upgrade path from a known state to new version to ensure that settings and app state are maintained during upgrade process.

V. 6.0 of libro.fm android app introduces an entirely new local database. This testing is focused on ensuring that local data remains intact between versions.

Notes

This evening I was mostly focused on setting up a successful build of feature/6.0 on my test device or the emulator. So far, no dice. My next … ⌘ Read more

⤋ Read More

Kaja is in a very bad state right now, the vet did a blood test (and she put a hole in my thumb as he took blood). Diabetes on top of kidney, liver, and pancreatic failure. I’m watching her try to drink water, she’s got the whole bed room to herself now

⤋ Read More