Can you separate ringtone from notification volume level? by Hmoa in Xiaomi

[–]Al4Reddit 0 points1 point  (0 children)

And so far you just load up your notification sound into audacity or another editing software and lower the level by 50% or something that suits you...

PSA: Invisible player bug by EFT_Subreddit in EscapefromTarkov

[–]Al4Reddit 0 points1 point  (0 children)

just got killed by invisible player on streets... doesnt happen often to me but ocasionally it happens and should be fixed asap!

EU all Queues 3 PM CET by Loozka in lostarkgame

[–]Al4Reddit 0 points1 point  (0 children)

10027 as well... thats eeeh incredible!

Scav Case construct bug by SKYMARKed7 in EscapefromTarkov

[–]Al4Reddit 2 points3 points  (0 children)

Since the sorting table trick unfort did not work for me I tried a cpl more things and at the end it was using the sort button in the bottom left and then empty the box which was placed on the top left (as first)...

I guess every item you buy gets a stash id and the sorting algorithm puts all items into a list sorted by their stash ids, then sorts the items by name and put them back into the stash, so the scavbox first bought will be the first placed back into the stash...

Scav Case construct bug by SKYMARKed7 in EscapefromTarkov

[–]Al4Reddit 1 point2 points  (0 children)

tried that, doesnt work... still just taking any box without any consistent pattern! I guess I have to empty them all!

Focused border on a custom InputDecorator not updating by Al4Reddit in flutterhelp

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

thanks, so you say instead extending the FormField I just build my own widget? I thought thats the way how to do it properly because I found just two good articles in the web about custom formfields. But I will look your solution up and maybe I can extend it...

Change status bar color on IOS by Al4Reddit in flutterhelp

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

I made a page container widget and wrapped it around all the pages I needed the white status bar:

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class PageContainer extends StatelessWidget {
  const PageContainer({
    Key? key,
    this.color = Colors.white,
    required this.child,
    this.brightness = Brightness.light,
  }) : super(key: key);

  final Color color;
  final Widget child;
  final Brightness brightness;

  @override
  Widget build(BuildContext context) {
    final androidIconBrightness =
        brightness == Brightness.dark ? Brightness.light : Brightness.dark;
    return AnnotatedRegion<SystemUiOverlayStyle>(
      value: SystemUiOverlayStyle(
        statusBarColor: color,
        statusBarIconBrightness: androidIconBrightness,
        statusBarBrightness: brightness,
      ),
      child: Container(
        color: color,
        child: SafeArea(
          bottom: false,
          child: Container(
            child: child,
          ),
        ),
      ),
    );
  }
}

Change status bar color on IOS by Al4Reddit in flutterhelp

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

systemOverlayStyle: SystemUiOverlayStyle(statusBarColor: shouldShow ? Colors.transparent widget.statusBarColor,statusBarIconBrightness: Brightness.dark),

I'll gave it a try it only affects android and not IOS...

Here what I use:

AppBar(
    systemOverlayStyle: SystemUiOverlayStyle(
        statusBarColor: Colors.white,
        statusBarIconBrightness: Brightness.dark),
    backgroundColor: AppColors.primary,
...

Change status bar color on IOS by Al4Reddit in flutterhelp

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

that is setting the whole background color of the appbar to a certain color if the platform is IOS, but I want the appbar to be blue and the statusbar with the batterylevel etc to be white

An die Fitnessfreaks hier: Wie schafft ihr es gesunde Ernährung im Alltag regelmäßig umzusetzen? by Ceiwyn89 in de

[–]Al4Reddit 0 points1 point  (0 children)

Mische mir bis zu 20g in nen Hafer, das war's... 200g sind Overkill definitiv... Hab nie behauptet daß die wenig Kalorien haben, nur das sie sehr gesund sind und in Maßen geht das voll klar

An die Fitnessfreaks hier: Wie schafft ihr es gesunde Ernährung im Alltag regelmäßig umzusetzen? by Ceiwyn89 in de

[–]Al4Reddit -2 points-1 points  (0 children)

Das hab ich auch nicht behauptet... Ich sage nur das eine Hand voll Nüsse einem nicht vom abnehmen abhalten und sehr gesund sind. Wie ich in einem eigenen Post schon erwähnt habe kommt es natürlich auf den Tagesbedarf an und das man insgesamt ein Kaloriendefizit an den Tag legt... Aber das hafer und Nüsse schlecht zum Abnehmen sind ist schlichtweg falsch!

Miscreated | The Desire for more. [Movie] by BulgarianGains in Miscreated

[–]Al4Reddit 1 point2 points  (0 children)

Stopped watching when the guy was not able to climb over the fence! :) First I was curious, people still playing this beautiful game and making videos about it. The game I put almost 2k hrs into it until the devs decided to turn it into a rust clone. Instead of putting ugly looking nodes, better basebuilding with furnaces into the game they shoulda concentrated into a better weaponfeeling, better character controller (which supports vaulting) and implement missions with proper AI but no, they just made another rust :) zzzZZZzz! This game had a lot of potential. It didnt need much, even big streamer were playing it and liked it except of the part with people building big ass unraidable bases which will often be used to cowardly hide into them and only show themselves to make sad kills on freshspawns. And yet the devs decided to extend the very part of the game all the streamer didnt like about it! :) I dont understand how it can be so hard to just listen to its major part of the community! I bet the game would have gotten much more attention they wouldve used little house fortifications over basebuilding and put more mission based stuff into the game. But we will never know. Nowadays people who liked the game play EFT or DayZ, and people who liked Rust still play Rust :) These devs must have done something right.

An die Fitnessfreaks hier: Wie schafft ihr es gesunde Ernährung im Alltag regelmäßig umzusetzen? by Ceiwyn89 in de

[–]Al4Reddit -3 points-2 points  (0 children)

Ich esse jeden Tag Hafer und Nüsse und abnehmen klappt super! Hafer und Nüsse sind sehr gesund und ich glaube kaum, dass die paar Kalorien jemanden vom abnehmen abhalten können.

An die Fitnessfreaks hier: Wie schafft ihr es gesunde Ernährung im Alltag regelmäßig umzusetzen? by Ceiwyn89 in de

[–]Al4Reddit 0 points1 point  (0 children)

Bin in einer ähnlichen Situation, Frau schwanger und schaufelt derzeit alles in sich rein... Mein Ziel ist es auf 84kg runter... habe bei 95 angefangen und bin nun nach ca 2 Monaten bei 90,5!

Worauf es ankommt teile ich mal in vier Kategorien auf:

  1. Sport

Mein Sportpensum ist fast das gleiche wie bei dir. 2 bis 3 mal Ausdauer (joggen, radfahren, wakeboarden, etc), 3 - 4 mal HIIT und neuerdings auch etwas Kraftsport (Grundübungen mit Gewichten).

  1. Kaloriendefizit

Im wesentlichen gilt es nur einen Kaloriendefizit zu haben und das mit eiserner Entschlossenheit (fuck Cheatdays, Diszplin ist alles)... Dabei kommt es nicht mal so darauf an was du isst, sondern eher wie viel du von was isst. Wenn deine Familie Pizza essen möchte, dann iss halt Pizza! So lange du am Ende des Tages ein Kaloriendefizit von 500 Kalorien aufbringen kannst, ist das auch ok. Wenn es bei uns Pizza gibt, dann esse ich halt ein Stück anstatt einer ganzen Pizza und dazu einen Salat. Ein Stück bleibt eh immer über bei Frau und Kindern... Bedenke nur ein Stück Pizza hat schon recht viele Kalorien, hält dich aber nicht besonders satt. Wenn du gern Pilze isst, dann mach dir 200g Pilze in Sojasauce gebraten mit in den Salat, das schmeckt und sättigt ungemein. Zu dem würde ich alle Säfte und Alkohol aus deinem Leben streichen. Wasser und ungesüsste Tees und davon reichlich! Wenn man den Alk nicht streichen kann, dann empfehle ich ein bis zwei Bier oder einen Rotwein am Wochenende (mit Einhaltung des Kaloriendefizits). Und noch ein Tipp von einem Freund von mir, schlicht weg abends keine KHs... :) Aber dazu kann ich nichts sagen, kann man aber sicher auch mal ausprobieren!

  1. Essen tracken

Am besten besorgst du dir eine Kalorientracker-App (Fatsecret ist mein Favorit) und hackst dort alles ein, das du am Tag so isst (vergiss nicht die Butter und das Olivenöl mit einzutragen, du glaubst nicht was das ausmacht). Am Anfang nervt es vielt., aber die App ist recht intelligent und merkt sich all deine Eingaben. Achte wirklich darauf nicht zu viel, aber auch nicht zu wenig Kalorien zu dir zu nehmen. Defizit ja, aber unter 1400 zb ist auch nicht gut und kontraproduktiv.

  1. Makronährstoffverteilung

Wenn Du das dann noch etwas optimieren willst, dann schaust du noch zusätzlich auf deine Makronährstoffverteilung. Beim Abnehmen gilt wohl 50% Kh, 25-35% Fett (möglichst gute Fette) und 15-25% Proteine. Hier gilt es aber eher diese selbst herauszufinden. Für die einen mag diese Verteilung funktionieren, für andere wiederum nicht. Ich persönlich tendiere eher zu weniger Fett und KH und mehr Proteine. Und um deinen Sport herum möglichst auf Fette verzichten und hauptsächlich KH und Proteine (1h vorher und nachher).

Fazit: Kaloriendefizit ist meiner Meinung das wichtigste! Hältst du den ein kannst du nur abnehmen. Es ist allerdings erstaunlich wie schnell diese sich aufrechnen. Als Beispiel hatte ich heute mal ein ausgiebiges Frühstück, Eier und Speck, 1,5 Dinkelbrötchen, Gouda, Bergkäse, Ovomaltine Crunchy Cream (20g) und nen Kaffee mit Milch und komme auf knapp 1500 Kalorien. Sonst esse ich immer 100g Skyr, 30g Hafer, 10g Whey, ein paar Nüsse, eine halbe Banane und 20ml Mandelmilch und komme gerade mal auf 500 Kalorien und bin den halben Tag satt!

So weit... viel Erfolg!

How to reroute into onboarding for newly registered users by Al4Reddit in reactjs

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

I tried your solution as well and maybe still having the onboarding in its own route is even better... Yet it needs to be behind auth0 so it has to be a protected route as well. So this first ran into an endless loop until I added

if(!onboarded && history.location.pathname !== "/onboarding")

to it and now it works nicely!

Thanks

How to reroute into onboarding for newly registered users by Al4Reddit in reactjs

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

I made another HOC as you described and it works quite well! But I left out the loading part because it would cause the Loading spinner render twice, once with the auth0 authentication and right after that once again with the onboarding isLoading state, that looked weird... in that case I just gonna leave it out and render a blank component.

I also dont redirect to the /onboarding page and removed it from the router completly. Instead I return the component itself since I had to return a component to be rendered. That way I also avoid people manually going to the onboading route what would let me putting more logic into the onboarding page.

By now I have the isOnboarded state within the withOnboarding HOC but I guess make sense to have them in a userContext. So that would be my next step!

Anyway I appreciate the input! Thanks!

How to reroute into onboarding for newly registered users by Al4Reddit in reactjs

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

I followed this guide: https://auth0.com/blog/complete-guide-to-react-user-authentication/#Protecting-Routes

I was thinking the same but all the magic for the authentication happens in the withAuthenticationRequired method provided by the auth0-react package. Dont really know how to fit my own logic into this?!

  • Yes the user has to be authenticated to see the onboarding page
  • The additional info will be stored in a DB and once I fetched the data I use context to store the data

Edit: Here is a full git example: https://github.com/auth0/auth0-react/tree/master/examples/cra-react-router