« first day (4365 days earlier)      last day (584 days later) » 

2:55 AM
> Got a landing page deployed for my side project last night 🥳 Built with a new Dart web framework called Jaspr - sorareagent.com
Open sourced it last night for anyone interested: github.com/sorareagent/sorare_agent_landing_page
 
 
4 hours later…
7:17 AM
@MarkO'Sullivan i've heard flutter is not that good for SEO
is this one ok?
jaspr is based on dart right?
but i might be wrong
as far as i understand you need to write some html ?...
 
7:59 AM
nerds any implement auth with refresh token for idiots guide?
 
@grrigore uf
 
:D
I'm using ktor but afaik there is no refresh tutorial for the server
I mean I have a vague idea but I think it can get complex
I should use firebase or smth
 
if you want to do it properly it is complex
like really complex
If you can, do it
 
I cannot seem to find an example
 
firebase auth is ok
there are Auth0 and Okta you can use like your auth providers
 
8:05 AM
But will it allow me to add data to the token I think it's possible
 
but they are really expensive
 
Tbh I just need the simple solution
 
what kind of data?
 
Like some user id some supplier id
Ids mostly
 
you want to embed that into a token?
 
8:07 AM
yes
there s firebase custom token afaik
i mean with firebase auth i see 2 scenarios
or not :D
i ve only used it like this
on the mobile side i've used firebase admin for android, got some token or so and send it to the server
but i think it's possible to create an endpoint on the server and have all the login in the backend
 
i dont think you have to keep it connected
 
what do you mean by that?
my boy @MwBakker can ya let me know how you use firebase auth in your project
i think id use firebase admin auth in my backend
in that way i can replace the firebase stuff if needed without having to change something on the mobile side
anyway i think i can skip that for my mvp
long live 1000 years tokens
 
8:23 AM
lol 1000years then it wasnt long lived token anymore, it is just a password
basically they work as same way however
 
@grrigore
sorry i kinda stoped typing in the middle of the sentence
you dont have to keep auth with authorisation connected
like, you can create a separate endpoint that's going to return all of the user metadata
you dont have to enbed anything in the access/refresh token itself
 
true
rn i get some ids from the token
but as you say i can send them in my request too
@IvanMilisavljevic np man
 
another thing
access token can be used as an user_id
the access token is always going to be unique and issues only to a specific user, meaning you can identify the user based on the access toekn
thats the purpose of the access token actually - If you want to learn more you can read about OAuthV2 and OIDC
 
@grrigore Flutter is not but that's one of the areas where Jaspr is better
 
@IvanMilisavljevic true
@MarkO'Sullivan nice
 
8:35 AM
That reddit link is a good summary of Jaspr
 
i wanted to build a landing page too
and i tried flutter but dropped it
 
Yeah for SEO it's not a good choice atm
 
is it like flutter like can i add all those pubs?
i heard they are working on the seo stuff
 
I think it has limited package support, like it has it's own package for riverpod which is one of the state management packages for Flutter
@grrigore yup heard that too
 
yep i use riverpod or provider i cannot remember haha
u need to write both dart and css for jaspr?
 
8:40 AM
@grrigore you can still make that. Just use a Scaffold with a Timer and a Future to your next page
@grrigore yes I can, I start the app with an instance of firebase authorisation and if the user is still logged in it refers to the next page
if not, it goes to the login/register page
goddamn train internet
 
@MwBakker i think you re confusing it with a splashscreen
so you re doing it in app
 
I guess I am
@grrigore partly, FireBase takes care of the authorisation process
 
yes but you call it from the app that s what i mean
 
yes
 
@grrigore if the components aren't already built then yes, I was able to use Bulma components in my app and their example shows how you can use all the components from Bulma
 
9:02 AM
nice
 
9:20 AM
we got one of the most advabced train networks in Europe yet most of our trains dont have power outlets
"gotta travel 1 hr and 40 min? Well F you hope your battery lasts" - NS
 
 
2 hours later…
10:59 AM
lol enjoy the train time
 
11:40 AM
posted on September 28, 2022 by Android Developers

Posted by Niharika Arora, Developer Relations Engineer Building for Android Go involves paying special attention to performance optimizations and resource usage. In part-1 of this blog, we discussed why developers should consider building for Android Go, some tips on optimizing the app memory and identified the standard approach to follow while fixing performance issues. In th

 
 
7 hours later…
6:22 PM
o/
 
\o
 
I know what happens if you try to startActivityForResult() and there's no Activity to handle the Intent - it throws an exception. What happens when there's no Activity but you're using a ActivityResultRegistry ?
None of the documentation seems to handle this case.
 
6:38 PM
An ActivityResultRegistry without the Activity does not throw an exception?
 
not sure
ahh, happens in the launch() method - still throws the same exception
 
7:20 PM
no idea tbh
isn't ActivityResultRegistry registered in the activity?
or something like that
 
7:49 PM
yeah it's the more type safe version of the onActivityResults process
 
8:28 PM
posted on September 28, 2022 by Android Developers

Posted by Rakesh Iyer, Staff Software Engineer and Leland Rechis, Group Product Manager We are upgrading the Speech Services by Google speech engine in a big way, providing clearer, more natural voices. All 421 voices in 67 languages have been upgraded with a new voice model and synthesizer. If you already use TTS and the Speech Services by Google engine, there is nothi

 

« first day (4365 days earlier)      last day (584 days later) »