« first day (3078 days earlier)      last day (1862 days later) » 

1:31 AM
sup
my doods
 
1:58 AM
What's a good?
 
o/
 
2:16 AM
Hi Mauricio!
Are you better off your migraines?
And... Is my last phrase syntactically correct?
 
Hi Ray!
Today I am, thankfully!
No I don't think it is
Wait, let me check
It would be better if you said: Are you feeling better? How's your migraine?
Better off, idk...
@Adam spell check that I'm not sure
But once again, yes, I'm feeling better now :)
what about you? Are you alright?
 
2:49 AM
I'm fine, I wasn't the one with migraines
:)
 
True, fair enough
 
3:17 AM
Well well... I've found something weird in kotlin
(customGoal?:0.toDouble())*price
here parentheses are mandatory, if I don't use parentheses kotlin will take either customGoal or 0.toDouble()*price instead of (customGoal or 0.toDouble()) * price
that's really weird
 
 
1 hour later…
4:34 AM
Ribbit
 
 
2 hours later…
6:25 AM
Lol
 
7:12 AM
o/
 
7:32 AM
Gooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​oooood Morning Everyone!!!!!!! :D
 
hey womper
 
8:10 AM
\o
 
o/
 
mr5
o/
 
guys what that variable type called in Java that you make them like 'live' so their updated value is always available
o/
 
mr5
What can I do if one of the dependency repo is down?
Oh no. It's the entire bintray
Or... we have an misconfigurations in our network
 
8:59 AM
o/
@TaseerAhmad ObservableField does such, LiveData<T> does too but cannot for example be bound to an adapter
 
user443346
Abort, typos
 
user443346
 
Isn't this the graph of FvD Jordy?
 
user443346
True
 
user443346
 
user443346
9:05 AM
like that?
 
LOL
jordyyyyyyyyyyyyyyyyyy
 
9:22 AM
@MehdiB. Is IntStream.range actually the correct usage for replacing for loops?
 
yes, it's simply replacing the loops for populating integers that fall into a range
if the list is small you could also do Intstream.of(0, 1, 2, 3, 5)
 
Man this is so much quality of life
 
XD
 
You would increment hex values by converting them to decimal (+1) then convert it back to hex
does that make sense?
 
Hiya Taseer, Raghav, CF, mr5, MwBakker, Jordy, Murat, Mehdi!!!!!! :D
 
9:41 AM
@RumitPatel Hello! So have you resolved your issue thanks to the link on Android documentation website ?
Hello Everybody !
 
o/
 
user443346
@ColdFire No flags yet? Disappointed
 
9:57 AM
lol why flags?
 
user443346
Well, you get flagged here for saying the word poopoo
 
@MehdiB. Does it make sense to use streams for while loops?
 
10:14 AM
is there a way to update view from an interface callback? I been trying to find a way but the view is always null in the callback ;(
 
Zoe
runOnUiThread, pass an activity instance, don't use any static pointers.
 
@W0MP3R o/ womper
@Jordy haha
@TaseerAhmad yes, per databinding ObservableFields to a viewModel
 
user443346
Have to say, having a great day after the right wingers won <3
 
FvD is not that bad but they want to leave the EU and I absolutely don't want that to happen
 
user443346
We don't need the EU for the perks we have today tho (for businesses). Not being able to cross every border would make me go crazy tho. I remember the horror waiting times @ Czech Republic.
 
10:20 AM
Imagine having our country build on import/export and then say "me'h we don't want it THAT easy"
It will cripple our economy
It will cost way, waaaay more than spending some money on corrupt Brussel employees
 
user443346
Nah, it didn't cripple our economy 20 years ago, neither will it cripple us now. The EEG worked perfect.
 
AMIRUL requested access. Rep: 21 - Questions: 2 - Answers: 4 (ratio 4:8)
 
!reject
Guess the bot went on vacation too
@AMIRUL You need at least 80 rep and a 4:3 q:a ratio or better to get access here
 
@Jordy 20 yrs ago this was not fused into our economy. Splitting EU will break a fusion that will cause damage
 
Its a little bit complicated. So here is how I have setup my code. There is a thread in a seperate file that handles copying of files. There is an interface setup inside that thread that sends progress data to an activity. The activity has another interface setup that sends data to one of dialog fragment. The problem is that, even though I am initializing my progress bar, it is null in that dialog`s callback
 
10:35 AM
I would need a gist to see this
 
user443346
@MwBakker And you don't think that having to pay billions for shithole countries isn't crippeling our country ;p?
 
Would anyone know how to iterate on a Float range in Kotlin ?
savedDX = -1080 and dX=0
 
@MuratKaragöz you mean in general? or to loop over a collection?
 
In general
for a call in getDefaultUIUtil().onDraw(savedCanvas, savedRecyclerView, savedViewHolder.itemView, 0F, 0F, ACTION_STATE_SWIPE, isCurrentlyActive)
the first 0F would be the iterated float
Oh! I think I have to convert float to int ! then int to float ! :) ?
 
@Jordy well not crippeling as much as pulling the plug
 
10:37 AM
the streams API is more tied to collections, for iterations and intermediate transformations and filtering (they all return a Stream<> object), then a final operation (such as collect, or foreach) that basically returns void and says that we're done
 
wow
too much for my li'l brain lol
 
@MehdiB. in general, but it seems it's a bad idea to use streams for a while loop
 
@Jordy are you back to your Trump mode?
 
Why can't I write [[ for (x in savedDX..dX) ]] ???
 
user443346
@MwBakker Although I can see how leaving the EU would cripple the economy, it's still based on speculation. The Netherlands almost pays the most of our entire continent to the EU. The EEG + free border crossing would be a much better solution. Same benefits for companies - no changes at all and a country that stays sovereign without the EU enforcing laws and rules.
 
10:40 AM
@MuratKaragöz yeah it's only for collections and related transformations
 
Zoe
Maybe kotlin finally added list comprehension?
 
Can't figure out how to iterate from -1080 to 0 with a step of 0.0001
 
user443346
Either way, enough Dutch patriotism. Sup friends? How is SO doing today?
 
@Jordy that would be great yes, but other countries will get nervous and re-settle in EU countries for the fear of complicated stuff dealing with a sovereign country
Why actually does an interface parameter need an identifier ?
 
user443346
A well :p we already have 10K jobs from the UK since they left lololo
 
Zoe
10:42 AM
@KotlinIsland -1080.0..0.0 step 0.0001?
 
 void cancelEdit(UIComponent uiComponent); why not
  void cancelEdit(UIComponent);

Since it's an interface method decleration anyway. Just wondering
 
@Zoe yes but that is not understood by Android Studio :
            for (x in savedDX..0.0 step 0.0001)
 
user443346
Just found out that in Belgium, giving away free weed is considered dealing
 
Zoe
10:47 AM
oof
 
@Jordy do you really want Netherlands to go through what UK is going through?
 
Zoe
Didn't see that one coming
There's no step for double or float
 
user443346
Please Mark, don't make me go rightwing again. Let me reply your question with: Maybe.
 
user443346
That's it for now.
 
@Zoe ok ! Thanks !
 
10:48 AM
@TaseerAhmad ough it's kotlin haha
 
I'm telling you now there's 40k manufacturing jobs a risk and a further 60k indirectly affected with no deal potentially happening in Northern Ireland
That's a huge amount of the population
 
arghghgh
 
Not to mention how I found out about numerous manufacturing plants in the UK which might have lines shut down or worst case, entire plants shut down due to delays in imports. I've heard from my friend who works in the industry that every day which goes by and the parts don't arrive, it'll increase costs by like £1M
 
So should I use a while loop in kotlin ?
 
Zoe
probably
 
10:52 AM
I'm doing it :) thanks !!!!
 
Parts coming from the EU will be more expensive which might lead to manufacturers in the UK sourcing them from companies in the UK but if these are global companies and they find their costs rising too much, there's nothing stopping them from moving their manufacturing plants to somewhere which is cheaper and more cost effective
 
@TaseerAhmad Can't you bind the value of the progressbar to an ObservableField?
 
user443346
@MarkO'Sullivan Lots of companies actually just moved their "HQ" to The Netherlands but kept the employees in the UK so I don't really see the problem. Either way, fuck this EU shit. Can't stand politcal shit anymore in the morning. IN OTHER NEWS, I started with React Native yesterday.
 
user443346
Tell me about React instead Mark.
 
user443346
10:55 AM
@ColdFire Lmao xD
 
@Jordy coooool you had election?
 
user443346
Yesh, on province base
 
user443346
Could you guys give me a break
 
Ahah ! I used to be with a Feminist in Bordeaux ahah lol I understand then !!!!
 
@Jordy actually correct , tho i support open border of EU just too convenient to go back now
@Jordy yikes that could get flagged you know
 
10:58 AM
@Jordy I mean RN is an upgrade from PHP, but then again, covering yourself in gasoline and setting yourself on fire is less painful than having to use PHP every day
2
 
user443346
@MarkO'Sullivan Hahahahahahahahahah jeez
 
@Jordy oh interesting i actually support this totally
 
user443346
STOP PINGING ME
 
user443346
FUCKING HELL xD
 
xD
not my fault , replies dont work without ping lol
 
11:01 AM
Is React Native an "Upgrage of PHP" ?
Upgrade
 
no worse
 
user443346
Everything is an upgrade of PHP
 
user443346
Except *.NET
 
Huh !
 
@MarkO'Sullivan lmao
 
11:01 AM
.NET is a clone of JAVA lol
And what is Q# then ? :) :)
 
user443346
It's Microsoft, give the answer yourself
 
Yeah I know
:)
Microsoft Quantum Programming :)
 
user443346
I bet the Quantom computer they use also boots up with Skype for businesses.
 
lol
 
@Jordy Yeah Quantum Skype with Teleportation Option !
 
11:05 AM
@MwBakker That would make the work easy but I am trying to do it via an interface. I want to know why the view is null even if I am initializing it. Running it Handler/post does not do anything because the view is null. Could you please tell me why it is null specifically in the interface`s callback?
 
You can still use the command handling per interface
@TaseerAhmad Ok
Will have to look closely, give me a moment
 
Please take your time, thanks!
 
private var progressBar: ProgressBar? = null    where does ProgressBar come from?
Is it static?
You are checking ProgressBar class on null as it seems
rather than an object
 
No, it is not static. I am trying to feed it will the ID from XML
log for the view
onViewCreated, it is not null but after I check if it is null in callback. Feed it with an object?
 
That log comes from this
  if (progressBar == null)
            Log.d("PROGRESS BAR RESUME", "NULL")
        else
            Log.d("PROGRESS BAR RESUME", "NOT NULL")
Right?
 
11:13 AM
yes
 
Because here progressBar is an actual object
While here
private var progressBar: ProgressBar? = null
ProgressBar is not an object but a class name looking at the capital
if (ProgressBar = null)  is what is happening here I suppose?
 
Just checking if its null or not
 
This could be my fault bcs of lack experience on Kotlin but why checking null on a class name?
 
No, progressBar is actually a variable. The progress bar is setup statically in XML already. In onViewCreated() of the fragment, I am just feeding it with the ID of the progress bar I have implemented in the XML. If you look at the if(progressBar == null) in onViewCreated(), it says that it is not null. So that means that the progressBar variable is no longer pointing to a null value and has an ID. But in onProgressValueReceived() callback, that same progressBar becomes null
 
@TaseerAhmad I get that progressBar is a variable, but not what ProgressBar is doing at the initialization of the variable
 
11:22 AM
if (progressBar != null)
progressBar!!.progress = value
This is what the progressBar is supposed to do in the callback. Update its progress value to the value recevied via callback
 
12:02 PM
I had to grab a bite, sorry
 
@Murat take a look at Predicates, they're very cool
 
Yeah I am using them
already familiar with it from es6
 
they're so cool, sometimes I wonder if i'm not abusing their usage :D
 
I build a counter now for increment alphanumeric values
 
@TaseerAhmad I don't see a particular reason why progressbar would be empty
Maybe if the state changes it looses reference due to its state?
 
12:06 PM
@MuratKaragöz thought they were random?
 
Anyway, why don't you re-grab the object per findByID instead?
 
Yeah two variants, one random one static
 
ah! btw, what is it for?
 
:45704735  if (view.findViewById(R.id.loadingDialogFragprogressBarID))
                        Log.d("PROGRESS BAR INTERFACE", "NULL")
 
It is for generating serialization ids
 
12:10 PM
why not UUID.randomUUID() ?
 
12:22 PM
That's also a part of it
 
I think I discovered a bug in pyspark
 
So I loaded a dataset with pyspark, sp_dataset.count = 5.5M records, I converted it to a pandas dataset (sp_dataset.toPandas()), pd_dataset.shape = 3.1M records. Then I loaded the same dataset using another lib called pyarrow, converted it to pandas, pd_dataset = 5.5M records
I'm trying to reproduce, then gonna probably travel back to the eighties, to join the apache mailing list and report the issue
 
12:37 PM
I understand some of those words
 
these are just libs for manipulating data, nothing extraordinary
 
So JUnit does not support warning messages :/
 
warning messages?
like lint warnings?
 
Like the method passed but with a warning
e.g. method produced X amount of results while it has 2 duplicates as a warning
 
1:05 PM
Mohamed Fotouh Shalan requested access. Rep: 64 - Questions: 0 - Answers: 7 (ratio 4:Infinity)
 
Unknown command '!deny'
 
!expell
 
Unknown command '!expell'
 
!reject
 
1:06 PM
@RaymondArteaga You do not have sufficient access for this command
 
1:17 PM
@RaymondArteaga what are you doing.
usually you need to have 80 reps, but you have 7 answers and 0 questions so it's gucci
!accept
 
@MohamedFotouhShalan welcome. Please start by reading the rules and confirm you have read them before saying anything else.
 
@MuratKaragöz what kind of duplicates?
 
It's an edge case
for example generating random numbers
like a "nice-to-have" info
 
aaah
I see
 
@MuratKaragöz you mean like a log?
 
1:31 PM
maybe
 
Morning Android Noobs
 
@MwBakker I have opted for a hacky solution. Made the progressBar variable static but weakreferred. Its working now but not sure when the functionality may break
hello bear
 
@Graeme ahah hello great master !!! :) :)
 
Hi
 
@Graeme woah
 
1:42 PM
@ballBreaker What is the shortcut in Eclipse to jump to the next parameter in the method signature?
 
IKR
 
not sure
 
ctrl + arrow
 
I'm more of a ctrl + c, ctrl + v kind of guy
 
frenchie frogz here ?
Just to be sure are these two assessments true ? :
1 : if (!::deleteButton.isInitialized||!::editButton.isInitialized){
return false
}
2 : return (!::deleteButton.isInitialized||!::editButton.isInitialized)
 
1:48 PM
return deleteButton.isInitialized && editButton.isInitialized
 
@MohamedFotouhShalan your access has been revoked because you did not respond
 
NOT(A) OR NOT(B) = A AND B then ?
THank you Mehdi
 
no, "NOT(A) OR NOT(B) == NOT(A AND B)"
but in your case you have a return false if any of them is false
 
ok !!! thanks for the clue !
 
which is equivalent to an "AND", because an "AND" is only true when both are true
 
1:50 PM
I see !
 
can u not star that please
 
@MuratKaragöz log4j and tail
 
thanks
 
user443346
1:52 PM
Star what
 
o/
 
@KotlinIsland what is this supposed to mean?
 
@Jordy It was like three messages in a row from Mehdi when he was helping him
 
user443346
Just asking because I wanted to star aswell
 
@RaymondArteaga uw ?
 
1:56 PM
ur welcome
I'm guessing
 
@ballBreaker yes that's it !
 
2:07 PM
Gurumoorthy Arumugam requested access. Rep: 1758 - Questions: 40 - Answers: 17 (ratio 4:1.7)
 
2:26 PM
!reject
 
@GurumoorthyArumugam you currently do not meet the requirements to chat here. You can find our requirements in the rules.
 
2:51 PM
!reject
 
@bluetoothfx You do not have sufficient access for this command
 
Yet another ex-president was arrested in Brazil
 
:/
whats happening there
 
There's a nationwide corruption investigation
And apparently, he got caught
I'm not aware of the details yet
But he was arrested
 
user443346
3:15 PM
@Mauker Wasn't this one of the reasons for new elections?
 
!killme
 
Unknown command '!killme'
 
@MehdiB. Got any reading material about best practices for testing?
 
3:39 PM
@MuratKaragöz hmm, I'm shamelessly don't do testing, so never really got the chance to deeply dive in, but...
Tim had shared a course (videos) about Junit5, wait, I have it opened somewhere
 
@MehdiB. nice
same
 
but I actually hate myself for not diving into it more than the easy basics, because I know it's very easy and quite dumb :D
 
My code is never modular enough to do unit testing
I find myself always working on someone's old-ass application
My company is trying to follow GISG security standards, and zero of our applications conform to it
Apparently it would take us about a year to have our apps conform
so I have no idea what's going to happen
 
@ballBreaker this is something I don't do, I hate software maintenance
 
@MuratKaragöz Mockito + Espresso are good frameworks
 
3:45 PM
Yeah, it'd be nice to start something from scratch for once
 
Don't like watching that vid
 
If you are the only developer in your team, all your software complies wit CI/CD?
 
need to read stuff
 
then check this, baeldung.com/junit, found this blog some time ago, and the author is pretty good
 
4:03 PM
Anyone know how to put hyperlinks in two parts of a string resource within the strings.xml?
I've tried using html anchor tags and it doesn't work
 
@Jordy No, the elections happened when they should have happened.
 
@MarkO'Sullivan <string name="my_link"><a href="http://somesite.com/">Click me!</a></string>
29
Q: Android-Is it possible to add a clickable link into a string resource

James andresakisI usually set up some kind of AlertDialog to fire off when a user first uses one of my apps and I explain how to use the app and give an overall introduction to what they just downloaded. I also usually load my strings from a strings.xml file. What I want to do is make one of the words in my st...

 
4:24 PM
@MehdiB. looks good!
nvm it's only definition of stuff
 
@MuratKaragöz check the summary, there are many chapters baeldung.com/junit-before-beforeclass-beforeeach-beforeall, but it's not a very difficult topic, so there shouldn't be a too long curriculum
 
Zoe
@KotlinIsland you're missing cdata
 
Yeah I was more interested into the complex stuff like hamcrest
 
@Zoe probably yes ::)
@Zoe <string name="link name"><![CDATA[ <a href="https://ntic974.blogspot.com">The best website ever</a>]]></string>
 
Zoe
Something like that, yeah ^^"
 
4:37 PM
:)
 
@KotlinIsland tried that already, didn't work
I've got two hyperlinks in the string
This is the question I found closest to my issue
14
Q: Multiple Clickable links in TextView on Android

AndroidEnthusiastI'm trying to add multiple links in a textview similar to what Google & Flipboard has done below with their Terms and conditions AND Privacy Policy shown in the screen shot below: So far I've stumbled on using this approach textView.setText(Html.fromHtml(myHtml); textView.setMovementMethod(Lin...

 
@MarkO'Sullivan what's your issue?
Oh never mind, I already read it
I'm using spans and a customized LinkMovementMethod implementation
If you wan the implementation just tell me
You can check the behavior in my cryptomillionaire app, and see if it's what you want in the coin feeds
 

« first day (3078 days earlier)      last day (1862 days later) »