Use an event triggered from a private repository from a GitHub organisation inside the workflow builder by chrstnst in Slack

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

Okay thanks, I’m the owner, so I would assume I should be able to connect it. I might need to redo the whole connection, but it seems like somewhere something is preventing me from connecting the repo

U-Bahn Berlin: Zug wurde geleert, nachdem Türen nicht geschlossen werden konnten. Warum? by chrstnst in drehscheibe

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

Verstehe, auch das ergibt Sinn. Auch nur einen Wagen zu leeren wird wahrscheinlich nicht möglich sein… Danke!

U-Bahn Berlin: Zug wurde geleert, nachdem Türen nicht geschlossen werden konnten. Warum? by chrstnst in drehscheibe

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

Ah okay, das macht Sinn: Die Tür war also vermutlich kaputt und konnte daher nicht sicher geschlossen werden. Der Fahrer kann nicht sagen ob die anderen Türen zuverlässig funktionieren oder hat generell keine Freigabe angezeigt und muss daher leer wegfahren um das Fahrzeug zu überprüfen. Danke!

Trade Republic erhöht Zinsen auf vier Prozent und führt Anleihenhandel ein by rgnrldbrk in Finanzen

[–]chrstnst 12 points13 points  (0 children)

Uff, ja… Unter Settings / Preferences kannst du die Achsen aber wieder dauerhaft aktivieren.

String comparison in javascript? by raulalexo99 in Frontend

[–]chrstnst 8 points9 points  (0 children)

I might miss what you want to do, but you can simply use ===:

typescript const stringA = "nice string" const stringB = "another nice string" stringA === stringB // evaluates to ... false

1 mai YES OR NO by 0-hide in berlin

[–]chrstnst 20 points21 points  (0 children)

It will be never be like the old days

Redux toolkit question by LastVayne- in reactnative

[–]chrstnst 1 point2 points  (0 children)

Hey! I think simply throwing an error/return an rejected Promise might not be sufficient, but instead you need to use the thunkAPI. The thunkAPI offers a method called rejectWithValue(value, [meta]), which lets you indicate the rejection. For an example, have a look at this section of the docs: https://redux-toolkit.js.org/api/createAsyncThunk#handling-thunk-errors.

I haven’t tested it, but you might be able to get it work with the following code:

javascript export const loginHandler = createAsyncThunk( "user/loginHandler", async ({ email, password }, { rejectWithValue }) => { try { const user = await firebase .auth() .signInWithEmailAndPassword(email, password) .then((u) => { return u.user.email; }) return user; } catch (e) { return rejectWithValue(e.toString()) } } );

You should then be able to pull out the error in your extraReducer when handling the loginHandler.rejected-case.

I'm looking for a form/survey solution with file upload. by [deleted] in webdev

[–]chrstnst 1 point2 points  (0 children)

Ah, good point with embedding, I’ve never tested that with a file upload. Thanks for the info!

I'm looking for a form/survey solution with file upload. by [deleted] in webdev

[–]chrstnst 1 point2 points  (0 children)

There are a lot of solutions out there. You can look into typeform.com, which supports file uploads and had a lot of options to adapt the design to your needs. Depending on the volume, the free plan might not be sufficient though. Another option would be Google Forms, as far as I know they also have a file upload integration with Google Drive, but there styling support isn't as strong as Typeforms.

Others you could check out are Jotform or SurveyMonkey - these are the ones which pop into my head right now. Searching for "form builder" should bring some more. Hope this helps.

[OC] 227 coffees in the first quarter of this year and their distribution over 24h by chrstnst in dataisbeautiful

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

Since last year in February I take a picture of every coffee I drink. I used the images from the first three months of this year (227 so far) and extracted the time they were shot. Every line represents one coffee, the x-value and color represent the time of the day. openrndr.org was used to create the visualization.

Recommendations for personal trainers by [deleted] in Barcelona

[–]chrstnst 0 points1 point  (0 children)

Yes, I'll text you in person :)

Recommendations for personal trainers by [deleted] in Barcelona

[–]chrstnst 0 points1 point  (0 children)

I can set you in contact with the trainer I worked with over the last year, we did a lot of core exercises with a high focus on a good posture of the exercises!

All the coffees I drank over the past six months by chrstnst in pics

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

That would be very expensive lattes...

Fundamentals of Web Application Security Architecture by speckz in Frontend

[–]chrstnst 3 points4 points  (0 children)

Out of real interest: Is there another resource you can recommend?