« first day (3922 days earlier)      last day (1249 days later) » 
06:00 - 20:0021:00 - 23:00

06:13
@Tim lol
manchester united killing the team
it was MaNiPuLaTion itell you
italy cheated
:cry
 
2 hours later…
07:48
folks, how to show the hidden widgets on android studio designer?
I have some widgets that have been set to be invisible at runtime. During the development I want to show it on the designer only. Is it possible to do this scenario?
@LetMeBeYourLostDisciple I just outcommented the '" hidden " line in XML
08:47
@LetMeBeYourLostDisciple use tools:visibility
or use BuildConfig.DEBUG?
09:06
Synced starred message data. Took 157276 ms.
09:22
@MwBakker hi man
how's the app going?
I was just wondering if you've registered something like (logo, app name, etc) so other people won't steal them
I have not yet, but I found a new designer for logo or name
do you know anything about "registering" this stuff?
Not a bit
But I assume that once I have the logo and name I can register it
However, I am never fully protected from some nerd deciding "great idea" and steal the entire idea by coding it himself
well yes
this is why I networked and laid connnection to those interested
09:33
but what I'm talking about it's the logo, the name, etc
I know
ofc they can always copy your app
I'm interested in these too as I want to build a landing page and "test" the market
so I guess I should register those things
I'll let you know if I find something interesting
@grrigore You are genius. It works. Thank you!
no problem
tools has a set of nice things
10:02
If I want to put an enum value to intent, which method should I use?
Tim
Tim
putSerializable
@Tim: OK. Thank you!
This was the most starred message last year on this day:
Hmm. Actually, nothing interesting was said on this day last year.
I cannot find Intent.putSerializable:
Tim
Tim
it's for bundle
10:06
237
Q: Passing enum or object through an intent (the best solution)

jaxI have an activity that when started needs access to two different ArrayLists. Both Lists are different Objects I have created myself. Basically I need a way to pass these objects to the activity from an Intent. I can use addExtras() but this requires a Parceable compatible class. I could make...

Tim
Tim
try some things before you ask. Intent has putExtra with serializable arg
OK. Thank you all!
also see @IntDef and @StringDef before you go with enums
nice
10:14
@grrigore thanks grrig
no problem man
11:05
my recruiter has corona
So I called the agency "what do" they told me to simply keep contact with her and wait till she gets better
im still under their contract so that's weird in the meantime im working on my app and doing transport
nice
yeah
11:21
about whaat?
seen that xD
about if the next compay I'll work for my intentions will land well
well you'll see
hope for the best and expect the worst xD
and if I get to be at different loctions throughout the week
@grrigore thats my rule :D
haha
my roadtrip to Spain seems to be vanished
11:23
I know how it goes
oh why?
I think I'll visit paris in september
@grrigore cause we become red to other european countries
and I dk if in Spain itself there is much to do
oh yea sorry to hear that
I've seen some news about it
well I guess there are some cool places in spain lol
I need to be in quarantaine for a week first
and then figure if whatever I have been locked up for was worth the wait since spain itself is struggling with covid too
oh yea that doesn't sound good
visiting another country and quarantine
not what I come for
11:28
word
well at least im a content idiot
haha lol
posted on July 12, 2021 by CommonsWare

Subscribers now have access to an update to Elements of Android Jetpack, known as Version 2.1, in PDF, EPUB, and MOBI/Kindle formats, in addition to the online reader. Just log into your Warescription page and download away, or set up an account and subscribe!

Folks, if you have to specify string literals for Intent.putExtra, do you hard code the string literals? What is your strategy? Declaring them in string resources?
Or using static variables?
I use keys like NAME_KEY
but idk if it's the best approach
11:43
Where do you define the keys? In a class?
most of the times in the class I use intent
if I have class A that has an intent to class B i'd define it in class A
no problem
If I define Intent.putExtra keys with public static final String fields, the hardcoded literal strings assigned to the fields are no longer important as long as they are unique.
How do we manage the uniqueness ?
I am interested in using automatically generated R.id -like keys for Intent.putExtra keys. Is it possible?
Tim
Tim
11:58
you manage the uniqueness by not typing the same string twice
Yes. But it is error prone.
Tim
Tim
not really
you'll get a warning iirc
Tim
Tim
why are you using java anyway
12:07
Because I want to create an Android application with OpenCV.
OpenCV books I have right now use Java and C++ with JNI binding.
Tim
Tim
you know that you can use java and kotlin together
Using Kotlin will make the learning curve much stepper.
Too many topics to learn.
I will consider learning Kotlin in the future when Android Studio will no longer support Java. :-)
12:22
better start learning Flutter for when Android drops support for Kotlin
Flutter will be interesting if there is XML designer for its UI. I hate to have too deeply nested code.
@MwBakker and by that you mean never ever lol
Tim
Tim
@ballBreaker the OP nord is finally in my hands
kotlin will replace both react native and flutter
replace? Dont think so
12:25
.NET MAUI will win. :-)
Xamarin Forms will do this
no never
Tim
Tim
I heard good things about phonegap it's gonna take over the world they say
anything from microsoft sux
12:26
Qt for mobile is where its at
phonegap?
And of course, Java ME
it has over 7 billion users
@grrigore Take a knife and pry your phone's screen slightly out of the body to install Phonegap
a 1-2mm gap is good enough for the basic version
@Tim I thought the Chinese would do this
12:28
If you want to use custom themes you need a 5mm gap to accommodate the extra icons
nice
so phonegap works on all mobile devices
github is not from microsoft
M$ does own Github
I know
but they bought it
not created it
12:30
C# is pretty godlike
You should try clojure or elixir
I don't smoke so I'll pass on Elixir
what are these used for?
also rag what do you use go for?
Clojure and Elixir are by far the most productive languages I've used, easily the best thing I did in the last 6 months
We use go for wallet, trading systems mostly
so scripting?
12:32
For Go? Rarely
If I need to script stuff, I usually go for bash or python
I move up to Go if the script needs to be packaged into a service others can access
But mostly we go for Go when we want predictable, stable systems that are largely backend/API oriented
Not so common on the frontend systems
@RaghavSood what stocks should I buy
The Ford hype is kinda over, untill new models come in
Tim
Tim
the ones that go up
so like js but only for backend related stuff?
@MwBakker If you need to ask, buy index funds and forget about them for a few decades
@Tim don't buy at high bro
12:34
@grrigore I use JS when I need reasons to kill myself
buy high sell low
So no, not like JS
can you give me a simple example of go usage?
Tim
Tim
@MwBakker if they go up, it doesn't matter what price you buy them at
I mean you can write backend stuff in 100000000 lanugages
12:35
This is usually the scale and type of project we'd opt for Go: github.com/knadh/listmonk
@RaghavSood too impatient for that, I want to ride the electrification ride again but at Ford stocks it's diffused now. I earned some money but there is no motive left to re-invest now
only for long term perhaps
@MwBakker Buy a knife and mug people
@RaghavSood thanks
@RaghavSood thanks
In general, you don't have to use Go, naturally - it's a choice - we use Ruby on Rails, Go, Rust, and more recently Clojure/Elixir at varying scales
Our biggest systems are RoR
The rest are mostly projects I start
12:36
I m undergoing a SUSE scholarship at udacity and they use go and python
Go has caught on, we've expanded our Go dev resources to not just be me
RoR?
> Ruby on Rails
@grrigore rawr :3
afk powering up
12:37
oh
Last but not least, Stackoverflow uses asp.net core from Microsoft.
12:54
Why does php turn ' into % so string comparisment no longer works?
Is it because of spite?
Tim
Tim
yep
100%
timmy-g are you a senior android dev?
is this your current position?
Tim
Tim
yes
and for how long have you been doing android?
I have returned
13:01
oh hesus
did anyone deal with sms stuff on android?
Tim
Tim
I don't know. Whichever year we still used fill_parent instead of match_parent I guess
I did sms stuff in the past
haha
and aren't you bored?
Tim
Tim
I was ready to retire 3 days after I started working
xD
I feel like I want to get into system architecture more
or at least mobile app architecture
Tim
Tim
it's just part of the job
13:06
yea kinda
Tim
Tim
the thing where 1 guy architects the code and other guys implement it, that's not a real thing. Unless you have like a huge team and you architect only the high level parts
that's also true
I wanna do field work thus im just screwed
Just go and start working
It's not like you can be fired from a place that didn't hire you
13:11
I mean, what are they gonna do? Pay you? Tell you to come in on time?
set me on a desk the entire week?
i'll stop the rant
mwb we should start a bakery
I do the bread and you deliver it
and firkendelieners
or whatever tim adores
"grrig and bakker, where we cook code and bake bread"
13:13
and where we get baked
baking bread baked
this will make BB apply for it as well
api surface is spread from api 22 to the 29
Sms api is complex but its fine
wait what?
The real problem is subscription and android OS hacks they did in order to support dual sims
Returns the system's default SMS subscription id. On a data only device or on error, will return INVALID_SUBSCRIPTION_ID.
Returns:
the default SMS subscription Id.
vs
Get default sms subscription id.
Note:This returns a value different from SubscriptionManager.getDefaultSmsSubscriptionId if the user has not chosen a default. In this case it returns the active subscription id if there's only one active subscription available.
simply put, this subscriptionId represents the SIM card (card that received the SMS)
and since its a part of undocumented behavior, there is a chance you wont receive those fields on some devices
now if the device supports multiple SIMs, that represents the MAJOR security issue
for cases where you want to verify something received in the SMS code
there is no reliable way to check which number received the code and that defeats the purpose
13:27
They want you to use firebase
Firebase can read the SMS for you, and auto fill the code
Without having to worry about which SIM and whether your app has permissions to do it
yeah firebase uses google-services under the hood for this kind of stuff
which sucks ass
im writing an SMS interceptor app which should intercept messages only for a single SIM
14:10
interceptor? Why
if sender.contactName.equals("sidechick") { discard(); }
@IvanMilisavljevic Just curious, how would that be exploited? Wouldn't it just open the possibility of it automatically retrieving the wrong code, which would be rejected on the server side anyway?
Goooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Afternoon Everyone!!!! :D
@twiz One could insert another SIM in the available slot, send a message to that second card, and the app would mark the number as verified (and connect that phone number with the account)
14:36
@Tim got a call from I-beheer they said they think they're searching for a guy like me
15:11
@IvanMilisavljevic But they would still need the correct SIM to receive the code in the first place, so I'm confused how that would actually be exploited.
15:28
@twiz Thats the point you dont actually need a correct sim, you register a broadcast receiver which sends you the SMS PDU
and besides the pdu, they pass you that optional subscription ID
that subscription id is the only thing that you can use to associate an SMS with the SIM card
15:49
Word up boyeeeeeees
(and w0mp3r)
16:20
I have another "decyphering Kotlin" question
What the hell is this calling and how:
gupClient.request<HttpResponse> {
    url("https://$host/$version/user/default/offer/refresh$authPath")
    method = methodUsed
    body = it
    if (LOGGING) {
        log("GUP - getOfferCall - REFRESH - Using url $url with $methodUsed and $body")
    }
}
it's calling gupClient.request
Was literally typing "Don't say gupClient.request"
Bunch of smart asses in here with faster fingers than me XD
No but really... what the hell does "request" look like...
It looks pretty straight forward to me but I don't know much about Kotlin syntax
16:22
Like... where are the commas?
And why is there just a command in there ?
am i the only one who thinks github copilot is a fun toy but basically useless?
If it was request(url, method =, body =) { if(LOGGING) ...
Then I would understand it but... it looks like syntax missing like... syntax
Found the source code for request:
suspend inline fun <reified T> HttpClient.request(block: HttpRequestBuilder.() -> Unit): T =
    request(HttpRequestBuilder().apply(block))
... What the **** does any of that mean?
Sometimes I'm like "I know all of Kotlin, I'm a Kotlin boss" and then I see this and I'm like... is that Kotlin?
looks like a little syntax magic to make the request from the block
but yeah it's confusing
seems like there should be better ways to do it
It's an extention function of HttpClient... Okay
It's suspended, so it can run in a coroutine
It uses generics type of T, and it's `reified` which means the generic can be checked for type (Java would be .isAssignableFrom() I think)
16:33
I don't even understand the meaning of the description of inlining:

> Inlining may cause the generated code to grow; however, if you do it in a reasonable way (avoiding inlining large functions), it will pay off in performance, especially at "megamorphic" call-sites inside loops.
you can do some special things with type arguments with inline functions to actually make a function call I guess
inlining means that instead of having the typical overhead of a function call with a memory address/object for the function, the compiler just inserts the code for the function directly in the bytecode with no address for the function
Ah, see, your link actually made sense. Inlining duplicates the functions source into the caller at compile time. Why can't it just say that?
writing docs is hard
posted on July 12, 2021 by Android Developers

Posted by Posted by Greg Hartrell, Product Management Director, Google Play & Android Last year we saw Android and Play reach new heights with people playing more games safely at home. By continually making Google Play a better place for consumers, we've made it a richer place for game developers to connect with a diverse global audience. So much in fact, that Android has re

I think whoever wrote the Kotlin documentation used big words in the same way that people with small penis's drive BMWs and Audis
I don't even know what block: HttpRequestBuilder.() -> Unit is or even how to search for what it means XD
() -> Unit is the same namespace as a runnable
16:39
@MwBakker nicee
But I don't know what throwing that onto the end of a class definition does
Oh...
HttpClient.request(block: HttpRequestBuilder.() -> Unit) means pass in a function matching () -> {} which acts with this being a type of HttpRequestBuilder
And the function returns... T = request(HttpRequestBuilder().apply(block)) which... builds HttpRequestBuilder and apply's the function to it... and feeds that builder to request()
But I don't know what T = as a return type...
:(
T = is just defining for the line how to do T for the inline
it's in that link I linked
> Inlining introduces an exciting opportunity: reifying the generic type information at runtime. That is, we no longer need to pass type information in the form of T::class as an argument.

All we have to do is to mark the type parameter with the reified keyword:
> inline fun <reified T> ObjectMapper.readValue(data: ByteArray): T =
readValue(data, object : TypeReference<T>() {})
That's talking about the first bit, not the last bit
aren't you talking about T = request(HttpRequestBuilder().apply(block))
normally you need to use T::class from what I'm reading but with inline you can define T in this special way
17:06
posted on July 12, 2021 by Android Developers

Posted by Posted by Scott Carbon-Ogden, Product Manager Android Games Today we’re launching the Android Game Development Kit (AGDK), a full range of tools and libraries to help you develop, optimize, and deliver high quality Android games. AGDK features follow three key tenets: Code built for game development. All of our libraries have been built and tested with pe

I am talking about that, but the documentation you quoted is talking about inline fun <reified T>
17:16
yeah but it goes on to show how you can define T in a different way because it's inline
it's normally used very differently : stackoverflow.com/questions/45949584/…
Tim
Tim
@Graeme this is "lambda with receiver"
what is does is you can call that block on an instance, and the instance will be 'this' in the lambda
yay Tim is here, he's better at this
Tim is a genius
3
Didn't know Tim worked in Apple Technical Support
Tim
Tim
I had to, because I wanted to be called a genius. I saw no other viable options
17:21
Nope he worked in Android core OS, the OG creator, the master and hence now an Android developer...
Apple has a trademark on the word genius so it's really your only option
What would happen if Tim worked in Apple ?
Whoever hired him would be fired
Yeah fired for not hiring him earlier and taking so long time :P
Tim
Tim
@Graeme the :T here just specifies the return type of the function, and the = request(...) is the function body. When you write a function without {} brackets it is called an expression body. Just one more way to write fewer lines of code
like fun add(a: Int, b: Int) = a + b
could also be written as fun add(a: Int, b: Int): Int = a + b
or fun add(a: Int, b: Int): Int { return a + b }
17:27
Tim from which country are you from ?
Tim
Tim
but with the expression body the return type is inferred. It's not required ever, but sometimes it looks slick and who doesn't like slick code
I'm from the united states of netherlands
NEver heard what is the name ?
Tim
Tim
yes
dutch republic
dutch republic sounds like an underwear company
17:31
Man it makes me wonder how does even come up with a calculation like this
I am too weak...
usually people use math
for these type of calculations
Suffering from ADHD makes it worse
Tim
Tim
looks like a nice PR to reject
what the fuck are those variable names
I have ADHD was always good at Math but not the homework
I'd approve that PR
@Tim Those are from Bhargav's project
Tim
Tim
17:33
well 0/10 code
May be that's why I am unable to understand
Tim
Tim
in this logic it makes sense probably
trying to be funny, backfired
I still don't know how the co-ordinates X and Y are used for animations in Android
Those calculations
Tim
Tim
well dave had some pretty good insight
10 mins ago, by Dave S
usually people use math
it's not like some programmer randomly put these numbers and magically got a nice animation
Can we use Viewmodels for 2 way databinding ???
I mean does that make sense to use Viewmodels in 2 way databinding.
17:49
if you can dream it you can do it
Didn't get you ?
Has anyone integrated Braintree payment gateway in Node?
18:15
o/
@GeekDroid ADD ain't exactly a gadget either
Time to go~~
Cya tomorrow everyone!! :D
bye womper
Nice talk today! :D
18:38
:D
@Tim Oooh, fancy
Seems really... out of place? Like, where did that come from? :D
18:59
The best IDE for programming is youtube.com/watch?v=X34ZmkeZDos.
19:31
> No, Google Translate is the best ide, you can literally write code in Python then translate it to C++ for better performance
19:50
@Tim some smite in 20 30 mins?
06:00 - 20:0021:00 - 23:00

« first day (3922 days earlier)      last day (1249 days later) »