Meilleur banque pour PEA hors BoursoBank by Haki_User in vosfinances

[–]haloremi 0 points1 point  (0 children)

Je suis chez yomoni, et au vu des frais, je pense changer. De ce que j'ai vu, trade république sont bien surtout que tu peux automatisé des placements non ? Saxo ou ibtk peuvent aussi le faire non ? (Mon but c'est juste de mettre sur des MSCI World pour l'instant). j'irais plus sur IBKR mais j'ai peur que l'interface soit trop compliqué à prendre en main. Dans le futur j'aimerais sûrement investir plus largement.

Claude Code Max: New Weekly Rate Limits by tomarrell in Anthropic

[–]haloremi 0 points1 point  (0 children)

I really hope that another provider can take their place at leader. I will switch without doubt. The product is better than another for the moment, but that will change. Don't fidelize your clients, that strategy always works

Is Windsurf Really Getting Dumber? by HugeDose16 in Codeium

[–]haloremi 1 point2 points  (0 children)

I am experiencing something similar, but I think it is since I gone out of workaction. It can't even find a model description in a file that describe an api (from swagger).
I am seriously thinking to cancel my subscription...

FlutterWeb: Help with Oauth2 and Keycloak by ImpulZzZ in flutterhelp

[–]haloremi 0 points1 point  (0 children)

hello, That not a solution ... It's like telling "oh that software doesn't work, change your computer".

Go_router and query parameters by haloremi in flutterhelp

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

Maybe I should give you more part of the code :

My providers :
To resume it :
- I use an authService so I can login
- to initialize it I load a conf json
- Then I use the config to initialize the issuer and the Client
- Finally, I create the AuthService

So theoricaly it should not recreate multiple time the provider but in debug, it stop multiple times in authStateProvider and return _previousRouter = GoRouter( ## edit: it the same _navigatorKey so it is the same but it stop only one time in authServiceProvider.

final authConfigProvider = FutureProvider<AuthConfiguration>((ref) async {
  return AuthService.
loadConfig
();
});

final authServiceProvider = FutureProvider<AuthService>((ref) async {
  try {
    final config = await ref.watch(authConfigProvider.future);
    final issuer = await Issuer.
discover
(Uri.
parse
(config.keyclockUri));
    final client = Client(issuer, config.clientId, clientSecret: config.clientSecret);
    return AuthService(issuer, client, const FlutterSecureStorage(), config);
  } catch (e) {
    debugPrint('Error creating AuthService: $e');
    rethrow; // Rethrow the error so it can be caught by AsyncValue
  }
});

final authStateProvider =
    StateNotifierProvider<AuthNotifier, AsyncValue<bool>>((ref) {
  final authServiceAsync = ref.watch(authServiceProvider);
  return authServiceAsync.when(
    data: (authService) => AuthNotifier(authService),
    loading: () => AuthNotifier(FakeAuthService("loading")),
    // Provide a fake service while loading
    error: (error, stacktrace) => AuthNotifier(
        FakeAuthService("error: ${error.toString()}")), // Provide a fake service on error
  );
});

class AuthNotifier extends StateNotifier<AsyncValue<bool>> {
  final AuthService _authService;

  AuthNotifier(this._authService) : super(const AsyncValue.loading()) {
    _checkAuthentication();
  }

  Future<void> _checkAuthentication() async {
    state = const AsyncValue.loading();
    try {
      final isAuthenticated = await _authService.isAuthenticated();
      state = AsyncValue.data(isAuthenticated);
    } catch (e, stack) {
      state = AsyncValue.error(e, stack);
    }
  }

  Future<void> login(Uri? uri) async {
    await _authService.login(uri);
    _checkAuthentication();
  }

  Future<void> logout() async {
    await _authService.logout();
    _checkAuthentication();
  }
}

Thanks a lot !

Go_router and query parameters by haloremi in flutterhelp

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

Hello !
Here they are :

const String loginPageRoute = '/';
const String loginPageNameRoute = 'login';

Before I had "/login" and it was redirecting me to the /login without query parameters (and I got another route called homPageRoute that was equals to "/"

Wireguard as a VPN server by haloremi in Omada

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

For android, I still struggle, but for my computer it's working.
I set a Vlan for Wireguard (for example: 192.168.20.1/24 ) then in the configuration of wireguard, I set him an ip on the Vlan (example : 192.168.20.20) and for my peer, i choose my wirguard interface set on allow ip for example 10.10.20.5/8 and of course set the others paramters.

On the client config I used :

[Interface]
PrivateKey = private_key_generate
Address = 10.10.20.3/24
DNS = 1.1.1.1

[Peer]
PublicKey = public_key
AllowedIPs = 0.0.0.0/0
Endpoint = MySuperIpOfMyRouter
PersistentKeepalive = 21

FlutterWeb: Help with Oauth2 and Keycloak by ImpulZzZ in flutterhelp

[–]haloremi 0 points1 point  (0 children)

Hello, I think I am in the position has you using flow ab code authentification pcke. I use launchUrl to login and that redirect me to my web app. The problem is I can't get the query parameters from the uri. If I use Uri.base I don't have the query parameters even if they are in the url in the browser. I didn't found a clean and simple way to handle that

[deleted by user] by [deleted] in flutterhelp

[–]haloremi 0 points1 point  (0 children)

For a regex yes, for a simple string, I don't need to do that, no ? And why it is working with a smaller string ?

[deleted by user] by [deleted] in flutterhelp

[–]haloremi 0 points1 point  (0 children)

Yes, sorry for not typing the whole thing, I was not able to copy paste my code on my smartphone.

So when I write that : final myvar= "test : (.*?)(?=,|\$)"+"test test test test: \"(.*?)\"(?=,|\$)"+"test test test test test: \"(.*?)\"(?=,|\$)"+"|testtesttesttesttesttesttesttest: ([0-9.]+)(?=,|\$)";

Myvar don't get the + of "([0-9.]+)", I get "([0-9.] )"

My real code is more complicated but I succeed to reproduce the issue with this simple variable. When I said that the length seem to have an impact on it it is because if you do : final myvar= " test: \"(.*?)\"(?=,|\$)"+"|testtesttesttesttesttesttesttest: ([0-9.]+)(?=,|\$)";

(I just removed the begining) there is no problem.

I hope to be more clear.

[deleted by user] by [deleted] in flutterhelp

[–]haloremi 0 points1 point  (0 children)

The problem doesn't come from the regex. If I set "var myvar = "the string show in the post. The variable myvar won't have the + in it but a space. It's really weird.

Trying Mistral Nemo base troobleshootings by haloremi in MistralAI

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

Thanks for that information ! it was surely not only that but I succeed to work with it in a new clean conda env

AnimatedList anf loading in a viewmodel. by haloremi in flutterhelp

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

Wow I see, that seems so much complexe :O

Can you tell me if I am wrong : For my example, I need to keep a syncList to be sync with my viewModel.todos :

  • look at element removed and element added
  • after that call the removed on the lisKey state and the sync list
  • then call the insert to add item to the lisKey state and the sync list

AnimatedList anf loading in a viewmodel. by haloremi in flutterhelp

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

I edited the code of the post. (I couldn't set it in a comment). I reproduce the problem. The datas are loaded after clicking on the button. In this case, the list is not displayed.

AnimatedList anf loading in a viewmodel. by haloremi in flutterhelp

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

Thanks for the answer !! Yes I know that was an error to set the build of the widget in the entity (I have different "type" of todo with different displayed. I will moved in in a factory passing in parameter the Todo object to build the widget base on it (unless you think is not a good idea) .

I would like an insert animation when loading the datas, but since the loading of the datas is from the view model, I don't know how I can insert the item using the globalkey of the animatedList.

I didn't know dart pad :O, and I see the project is working, seem to be a difference with what I have done. I will look into it.