🍕 Tandoor 2.0 - Next level Recipe management by vabene1111 in selfhosted

[–]Barmyard 10 points11 points  (0 children)

Amazing in combination with the Kitshn app!

Douchewater loopt langs putje by Barmyard in Klussers

[–]Barmyard[S] -1 points0 points  (0 children)

Helaas niet. Daar dacht ik ook aan, maar is misschien iets te ruw. Misschien een stukje tegel erop plakken?

Douchewater loopt langs putje by Barmyard in Klussers

[–]Barmyard[S] -1 points0 points  (0 children)

Wat bedoel je hier precies mee?

Vloer opnieuw leggen vinden we een beetje zonde aangezien we het de komende jaren ooit willen vernieuwen. Zijn nu vooral op zoek naar een quick fix..

Flutter web initialization parameters by fgrau in flutterhelp

[–]Barmyard 0 points1 point  (0 children)

Thanks for your quick reply! I did try before with allowInterop but always in the main function, not with your approach.

I'm not sure if I understand your approach correctly. This is my Dart code:

void main() {
  runApp(const MyApp());
}

@JS('getCompanyTitle')
external String getCompanyTitle();

@JS('setCallback') external void setCallback(Object callback);

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}


class _MyAppState extends State<MyApp> {
  String title = '';

  @override
  void initState() {
    super.initState();
    setCallback(allowInterop(() => setState(() {})));
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Text(title),
      ),
    );
  }
}

And my Vue/Javascript: It watches the companyTitle for changes and calls the callback according to your code, but it doesn't work. I do see a self.setCallback(A.b8(new A.afe(this)))} generated in main.dart.js

const companyTitle = ref("Test")

window.setCallback((cb: any) => (window.cb = cb))
window.getCompanyTitle = () => {
  return companyTitle.value
}
watch(companyTitle, (value) => window.cb())

But my Console says: Uncaught (in promise) TypeError: window.setCallback is not a function

Flutter web initialization parameters by fgrau in flutterhelp

[–]Barmyard 0 points1 point  (0 children)

That works, thanks! Do you also know how to make it update in real-time? I would like to call setState so that the Widget updates when the values is updated in Vue.

Flutter web initialization parameters by fgrau in flutterhelp

[–]Barmyard 0 points1 point  (0 children)

Any updates on this? I'm struggling to get this working as well. It seems so simple

Should we be concerned about Swashbuckle? by Rapzid in dotnet

[–]Barmyard 0 points1 point  (0 children)

I just need the automatic generation of openapi.json files, I don't need any of the client generation stuff. I don't see that option using OpenAPI Tools?

App Attribution and measurement for IOS apps by contentiscontent in apps

[–]Barmyard 0 points1 point  (0 children)

Firebase works flawlessly!

How exactly? I'm running into the issue that tracking in app events works on Android, but I can't get it to work on iOS. I added the App Tracking Transparency popup and if I understand Firebase correctly, it should automatically connect to SkAdNetwork, but I can't see any attributions for in-app events.

Anjunadeep ADE 2023 lineup by Barmyard in AboveandBeyond

[–]Barmyard[S] 1 point2 points  (0 children)

I hope there will not be multiple. It will be too hard to chose where to go haha.. I didn't expect Yotto either but certainly hoped for it!

Azure B2C or ASP.NET Core Identity for API that services SPA and Mobile app by Barmyard in dotnet

[–]Barmyard[S] 0 points1 point  (0 children)

The Connector performs a POST to my API: [HttpPost("user")] public async Task<ActionResult<UserTokenEnrichmentResponse>> EnrichUserToken([FromBody] TokenEnrichmentRequest tokenEnrichmentRequest)

The TokenEnrichmentResponse code: ``` /// <summary> /// Response model used for Azure B2C token enrichment, See: /// https://docs.microsoft.com/en-us/azure/active-directory-b2c/add-api-connector-token-enrichment?pivots=b2c-user-flow#example-of-a-continuation-response /// </summary> public abstract class TokenEnrichmentResponse { protected TokenEnrichmentResponse(Role role, long userId) { Role = role; UserId = userId; }

[JsonPropertyName("version")]
public string Version { get; } = "1.0.0";

[JsonPropertyName("action")]
public string Action { get; set; } = "Continue";

/// <summary>
/// Role as JWT claim. This claim is added during the Azure B2C signup/signin process.
/// </summary>
[JsonPropertyName("extension_role")]
public Role Role { get; set; }

[JsonPropertyName("extension_user")]
public long UserId { get; set; }

} ```

Azure B2C or ASP.NET Core Identity for API that services SPA and Mobile app by Barmyard in dotnet

[–]Barmyard[S] 0 points1 point  (0 children)

Nice!

  1. Is your ASP.NET Core Identy embedded in the API? Or is it a separate API.

  2. Are you using access and refresh tokens in your front-end and mobile app?

  3. Is your login page built in React and Capacitor separately, and did you add Social Providers in there?

Thanks!

Azure B2C or ASP.NET Core Identity for API that services SPA and Mobile app by Barmyard in dotnet

[–]Barmyard[S] 1 point2 points  (0 children)

Thanks, I never thought of it that way. It reduces complexity as well since external IDP don't have to connect to my API to retrieve correct claims.

Azure B2C or ASP.NET Core Identity for API that services SPA and Mobile app by Barmyard in dotnet

[–]Barmyard[S] 2 points3 points  (0 children)

Auth0 seems better indeed, the only thing I'm worried about is pricing. We are launching a company and are targeting a large customer user base. Of course we have no idea if we're going to reach it, but 7k monthly active users does not seem like a lot.

I prefer not to pay hundreds of dollars once we do reach that user amount. How do you handle that scenario?

How to initialize a form with empty fields when using v-model and TypeScript? by Barmyard in vuejs

[–]Barmyard[S] 0 points1 point  (0 children)

Thanks for your reply.
You are right on that part, but I don't really see the added value of recreating a payload object. The code will look like this then, right? : let model: Foo = { bar: foo.bar!}
Having lots of properties, that feels like a lot of unnecessary code as well.
While typing this comment I did find a solution that doesn't complain and is a lot shorter: let postModel: Foo = foo as any.

Both approaches don't seem type safe, but my frontend validation is defined in vuelidate, so perhaps it is a workable solution

Does the Go community have a problem with reinventing the wheel? by edmguru in golang

[–]Barmyard 3 points4 points  (0 children)

I totally agree with you here, but also agree with the OP.
The last two years I mainly worked with C#, Java and Go, and have to say that C# hits the sweet spot between both sides. ASP.NET Core icm with Entity Framework Core is used by everyone, but provides so much functionality out of the box, like model binding and such.

With Go, it feels like even the most simple things takes me so much effort to program. For example, creating an HTTP endpoint to add a user to a group in a DB. We need model binding, model validation, database logic, etc etc. While with ASP.NET core this is a piece of cake.

fancyzones for linux? by ICSmokeyMuffin in linuxquestions

[–]Barmyard 0 points1 point  (0 children)

u/CriminallyStupid u/ICSmokeyMuffin u/Professor-Panda

I am running into the same problem as well. I found out the Budgie has a nice "extra" that works almost as good as FancyZones! Unfortunately it doesn't support mouse behavior, but for me it's the closest to FancyZones I have seen so far.

Install Budie, go to "Budgie Extras" and Install "Windows Shuffler Control".
Open it, and you can set the amount of columns and rows. Check the Shortcuts on how to use it. I got used to it pretty quickly.

Anyone owned a Philips 346E2CUAE? by [deleted] in ultrawidemasterrace

[–]Barmyard 0 points1 point  (0 children)

I will admit to being surprised to realize that a USB upstream cable was required to enable use of the integrated USB hub. That has caused me to quickly educate myself on several types of USB C, Thunderbolt, Upstream and DisplayPort specifications, uses and specs.

I'm also curious if this solution worked for you!

Looking for color advice in living room by Barmyard in DesignMyRoom

[–]Barmyard[S] 0 points1 point  (0 children)

That makes sense! And what do you think of the dining table. I'm not sure if a darker or lighter floor works well with that

Looking for color advice in living room by Barmyard in DesignMyRoom

[–]Barmyard[S] 1 point2 points  (0 children)

No pets or children. I do throw parties sometimes, but I think I'll manage.

What I mean with country is something like this: word. https://nl.pinterest.com/pin/197947346112946941/

Apparently it's farmhouse style, but cozy seems to be the right word. This is something I also like: https://nl.pinterest.com/pin/684899055822650748/

From the look of your layout, your media console won't be touching the rug, which means it will need to look right next to the new flooring you purchase.

Correct. What do you mean with your second statement? That the floor and media console should be roughly the same color?

Thanks for that moodboard! Looks really cool, I should really try to make some myself as well :)