How to type get error response data from axios AsyncThunk

I am having a hard time access the error response data, The code worked on javascript I moved to typescript now things are confusing. Currently i get ‘error’ is of type ‘unknown’.ts(18046) export const registerClient = createAsyncThunk(‘clients/register’, async (userData: object, { rejectWithValue }) => { try { const response = await axiosInstance.post(‘/web/client/register’, userData); return response.data; … Read more

databricks cli returning error: “Error: invalid scheme: ‘dbfs”

I’m trying to run the following command: C:\Users\user123>databricks fs cp ‘dbfs:/databricks/init/myinit.sh’ myinit.sh However, I get the error: ERROR failed execution pid=1234 exit_code=1 error=”invalid scheme: ‘dbfs” Running with the –debug flag: C:\Users\user123>databricks fs cp –debug ‘dbfs:/databricks/init/myinit.sh’ myinit.sh 00:02:04 INFO start pid=1234 version=0.212.2 args=”databricks, fs, cp, –debug, ‘dbfs:/databricks/init/myinit.sh’, myinit.sh” 00:02:04 DEBUG Loading DEFAULT profile from C:\Users\user123/.databrickscfg pid=1234 … Read more

Automatic credential selection in WebAuthn authentication ceremony

I’m trying to implement a passwordless and userless authentication based in WebAuthn. In my application several users are going to authenticate with a roaming authenticator (usb key or nfc card). I would like to avoid them typing neither the user nor the password. For this reason I would like to use the discoverable credentials capability … Read more

F# web socket with Saturn

I am struggling to get a minimal web-socket app working using SAFE. I have had this working on the SAFE stack of about 2 years ago but can’t get the join function (shown below) to work using the latest packages and Net8.0 let channel = channel { join (fun ctx socketId -> task { ctx.GetLogger().LogInformation(“Client … Read more

Flutter/Dart : For Loop Inside a Widget

Can someone please explain how the for loop in this snippit works with the spread operator? It seems the spread should be operating on a single item collection, the Column. But I had to use the spread operator when I added the Text element in the Column’s children. How does the flow work between the … Read more

Use matchedGeometryEffect to create ‘slide’ effect for border

I’m trying to create a custom ‘tab’ selection control with a horizontal row of options and the user can select one of N number of options. The ‘selected’ option will have a ‘border’ around it. Here’s a prototype I made: @objc public enum ContactTabStyle: Int, CaseIterable { case one, two, three, four public var segmentTitle: … Read more

How see if a Play Store app is available for the “Rest of the World” region?

I’m a software researcher looking at app availability across different countries, and I’d like to see if an app is available in the “Rest of the World” region. The gl parameter seem to be used to select the country. You can, for example, see that TikTok is available in France here: https://play.google.com/store/apps/details?id=com.zhiliaoapp.musically&gl=fr and that it’s … Read more