« first day (2656 days earlier)      last day (2307 days later) » 

12:07 AM
yeah I'm almost done already :-/
 
 
3 hours later…
3:22 AM
@Ahmad You did not but thank you! <3 I'm so excited. Can't believe I'm gonna be on stage with some of my own role models.
 
3:37 AM
@AdamMc331 <3
don't forget us when you're famous
 
4:12 AM
^
@AdamMc331 good luck, prepare well
 
I won't forget you! I need to start preparing ASAP lol
 
4:50 AM
@AdamMc331 share you experience on sharing the stage with them. Also tell us about the meetup when its done
 
5:17 AM
ohh... congrats @ Adam. all the best for the meetup
 
5:36 AM
<3
 
So it won't be I/O, but I might have to make true to this promise -
Aug 17 '15 at 20:21, by McAdam331
I can't wait to work my way up the ranks at Google and give a speech at I/O with a special shoutout to room-15.
"Your code doesn't work!" "It works on *my* machine." "Fine, we'll ship your machine!" And that's how Docker started :)
 
ha haa... nice explain for Docker :P
 
6:02 AM
o/
 
6:21 AM
Morning
 
lol
gm
 
6:57 AM
whatsup?
 
all are just going fine, other than the nasty politics
 
7:10 AM
@Ahmad ye boi
 
life is a scam
 
7:28 AM
@TimCastelijns can a DataSource have access to context?
For example, if I am finding Location, it would need context. Should I do it without Repository and DataSource?
 
rule 4 violation detected
 
Like Presenter itself can solve this maybe.
 
Goooooooooooooooooooooooooooooooooooooooooooooooooooooooood Morning Everyone!!!!!! :D
 
but, I need attention.
I should look somewhere else too.
he is like MVP mentor to me now.
 
@jafarbtech lol
morning
 
7:38 AM
Presenter must not know about android classes
Start with dagger and inject context into repo
 
We use Repository for access to Databases, network and cache. right? Does "fetching location" should go through same?
alright, maybe GPS location will go in Local, and Network location will go in Remote.
I have to learn daggering yet. Anyway after Repository has context, it can send context to DataSources. right?
 
7:56 AM
@ColdFire you know what, they have even increased the bus fair 54% on average to feed up the 7th pay commission increments to the transport employees
 
good morning!
 
dagger is sooo over the head
good morning!
so, if dagger wasn't there, would we'd drop mvp?
 
8:12 AM
@jafarbtech well was going to happen
developing countries and high inflation goes hand in hand
did you see some heroes skip the meet with Israeli PM pissed me off
also that stupid minister statement about darwins theory
 
@rupinderjeet dagger has nothing to do with mvp, mvvp, or anything
 
it's just one of the possible ways of doing it.
dagger closely ties the elements in mvp/mvvp.
the only closest ("empirical distance between views, models,presenters") approach is listeners / callbacks / etc.
 
might be, but in between our MLA salary is Rs. 1,13,000 excluding allowances X(
 
but there's similar approaches to dagger with other DI's
and there's looser approaches with eventbuses for ex.
 
8:19 AM
well 1,13,000 is not that high but yeah the other perks they get is kinda too much
 
nowadays ease or hardness to debug is merely related to how good a system has it's AS plugin.
greenrobot's plugin lets you jump to the implementations easily
and there's a dagger plugin too that i think is rendered useless in as 3.1 if i'm not wrong, because i think now annotations also refer to implementation right?
might be wrong
 
silly heros, nothing is gonna happen with their boycott, how come they think that their boycott could affect other countries internal military problems :D
 
well they showed where their loyalty lies
 
@ColdFire but, while Jaya was there state govt didnt eat people heads, but its happening now in all sectors
 
well jaya was full of populist schemes
 
8:22 AM
true, and she holded the power
 
So, daggering and event-buses are almost similar?
 
these non mejority politicians ruin the govt
 
but lets forget she got caught into a scam and was could have been jailed for corruption she was lucky she died before the court verdict came
 
they could be used to solve the same issue.
just like a wrench and a soldering pistol.
 
thats a big scam but still she did escape
 
8:25 AM
 
but she was true and loyal to the people in her last few years.
thank God she had no children :D
 
yeah well she was good and powerful
yeah and good thing is RaGha is unmarried too
 
LOL
stupid pappu :P
 
@rupinderjeet no not at all
 
i hope you know the real name surname of the fake gandhis is ghandy
and has got nothing to do Mahatma Gandhi
 
8:59 AM
yaah... I know... pretending to be Royal blood
 
typical holy attitude nothing new
 
is there any bitbucket API to get random stats about yourself?
 
as of now, I am trying MVP. I should get into RX, EventBus and Dagger too. Is there something else that needs to be in stack too? I don't know data-binding yet.
 
like "total lines of code commited"
 
what is random stats?
 
9:02 AM
"commits sent"
"PR's sent"
stuff like that
 
oh never seen one
 
you don't need databinding and eventbus in this list
 
we might do a corporative management app and web and that would be fancy to be on the worker profile
 
there was a feature request, capt
 
"you commited 1.3B lines of code. if every line was 1cm tall, and 1m wide, you can line your LOC and get from Bacelona to Chicago"
 
9:04 AM
MVP + RX + Dagger = good android developer.
right?
 
doing your job = good android dev
 
^
write good code
 
I considered these things as core of good code
 
well then you are wrong
 
9:06 AM
not really cf
 
"if you open cursor, don't forget to close it". you mean this?
as an example
 
good code doesn't (necessarily) sell
 
@TimCastelijns not really for what?
 
he is not wrong really
 
i disagree
how does using RX+ Dagger makes you good coder?
and not using them makes not one
 
9:10 AM
@ColdFire You can stab colleagues who disagree
 
it doesn't, there's no universal "formula", otherwise everyone would be a programmer
 
that's not what he said
 
@RaghavSood lol
well i dont consider all 3 core of good android dev at all
 
Erlang is better for this purpose, it has a gun library github.com/ninenines/gun
when dagger and gun disagree, gun wins
 
lol
i kinda agree with sarge their, there is no universal formula
 
9:12 AM
I meant for android. So, if I didn't ask about Presenter requiring Context, I would have just wrote new Presenter(Context). But, dagger tells me not do it. So, I should inject it, right? which is good maybe. I don't know how I am benefiting from dagger, but you guys use dagger.
 
I don't remember if there are libraries named after grenades or bombs, if they are, then… you get the idea
 
medium.com/@harivigneshjayapalan/… I am following this, and he relates dagger with Game of Thrones, funny.
 
also there's a simple rule about libraries: if you are not sure it will solve more problems than it will create problems, it's probably not worth using right now
 
and a good part of being a senior dev is to anticipate possible problems
 
9:19 AM
also i wouldn't recommend to go with fancy libs for junior devs
 
well, there's Apache.
an Apache HTTP helicopter is quite lethal.
and verbose.
 
for?
random stats?
 
the bombs, maybe
 
lol
 
@rupinderjeet Is that Ned Stark kneeling there? That makes it already invalid
actually that blog is not half bad with the got references
also it has lot of spoilers
 
9:31 AM
right, I forget stories easily if I don't watch them again in two or three months, spoilers wouldn't affect me anytime soon
Do you think it is a good blog post about quality of knowledge?
 
let me skim through
 
He says "dependencies are bad". But, my code is full of them.
 
well
the article is not bad from looks of it
i have just taken a overview tho
 
and, the thing that "constructor shouldn't initialize another class, because it creates a class dependency". But, in onCreate(), we initialize adapters and presenters
I should just complete this reading first I think.
 
yes you should
i think he was referring to normal classes not activities and fragments
onCreate() is not really a constructor
 
9:40 AM
oncreate is actually the last step before onresume
there's been a whole party between the constructor and the oncreate
with fireworks, drugs, alcohol...
 
yes ofcourse
 
right
thanks
 
user443346
o/
 
user443346
@TimCastelijns If i use deleteAllFromRealm(), does it also delete the associated records from the other tables?
 
deleteAllFromRealm sounds like sudo rm -rf /
 
9:53 AM
lol true^
 
no it doesn't
 
@Jordy what do you mean? Could you provide a scenario where you're trying to do this?
 
he means if realm supports cascade delete, it does not
 
> No it is not supported by the Java binding yet, still manual
 
user443346
@TimCastelijns Thanks, thats indeed what I needed to know
 
10:04 AM
oh cascade delete would be a awesome feature
can be implemented manually tho
 
i think instead of deleteFromRealm(), a cascade delete should be named to dropFromRealm()
because delete means "kill this row"
while drop is "cut this branch and let anything attached to it fall"
 
drop and delete are ambiguous, they won't go for it
 
they aren't in sql language tho
delete from > kill a row
drop n > destroy table n with it's children
 
maybe, but they are from a user's perspective
 
there is the DELETE on CASCADE on oracle tho
 
10:15 AM
If cascade delete doesn't work in Realm would that mean that the original objects are still returned if they are sub objects of an object? E.g. you delete Dog object, if you query Person object it'll still have the persons Dog which you set to the Person object?
 
no, the dog is gone
it means that if you delete the Person, the Dog will not be deleted, even if it is only linked to that Pperson
 
he would not do it
 
Ah well I can see how that would be useful if you were going to reuse the Dog elsewhere though if not, cascade deletes would be useful
 
deleteFromRealm(cascade: true);
2
voilá
:D
 
or maybe cascadeDeleteFromRealm();
 
user443346
10:23 AM
deleteAllFromRealm should delete cascaded
 
user443346
deleteFromRealm shouldnt, easy as that
 
user443346
Even PHP does this.
 
user443346
PHP > Realm
 
deleteAll deletes a collection, delete deletes a single item
 
10:25 AM
o/
 
o/
 
o/
 
almost flagged that jordy
user image
3
 
lol jordy
 
why do people spam on github with the "+1" comments
 
10:26 AM
Jordy what if you're wanting to delete an Object A which contains another Object B and that Object B is used elsewhere? Would that not delete the Object B even though it's used elsewhere? Or would it be okay?
@MehdiB. I just tweeted about that :D
 
haha! It's stupid
 
it's a tradition
 
I want to ban people from using GitHub who do that
 
back in time before upvote or vote for this existed, +1 was used to count "user preference on issues/ feature requests"
 
it used to be the way to express your view, before github implemented "reply with emote"
 
10:28 AM
there's even repos that still have a count script
 
Can you not react to issue threads with a thumbs up emoji if it's been locked???
 
so the first guy who actually brought somethnig cnostructive will have to unsubscribe from the thread because of all the spams or will have to support all these emails...
 
well they want to express their views
but now github has made alternative
 
+1
I just expressed my point of view on your comment
 
-1
 
10:31 AM
@MehdiB. 👍
 
:D
 
-2
 
:D
 
:D
tho i have to say that is such a long chain of +1
i havent seen bigger than that
 
any +1 competition going on? lol
 
10:34 AM
not that i know
just we, the people being as sarcastic as possible
 
:D :D
 
10:57 AM
guys
I have a json array like this : [{"TO_NUMBER(PARAM_KOD)":34,"PARAM_KOD":"34","TANIM":"İSTANBUL"},{"TO_NUMBER(PAR‌​AM_KOD)":6,"PARAM_KOD":"6","TANIM":"ANKARA"},{"TO_NUMBER(PARAM_KOD)":35,"PARAM_KO‌​D":"35","TANIM":"İZMİR"},{"TO_NUMBER(PARAM_KOD)":1,"PARAM_KOD":"1","TANIM":"ADANA‌​"},{"TO_NUMBER(PARAM_KOD)":2,"PARAM_KOD":"2"....
 
ahá
 
I want to save each city and their codes to my database
 
user443346
@MarkO'Sullivan That's the idea of cascade, would be okay ofcourse.
 
Should I convert it to hasmap and do it like that?
 
user443346
If you don't want that to happen, don't delete cascaded :P
 
11:00 AM
should you?
 
Ege, i can't grasp what the data contains, or what it's meant to represent.
bt when managing big bulks of data, step a feet away from the screen, and try to find the best structure you will be able to work on later
 
avoid the parenthesises on your keys like TO_NUMBER(PARAM_KOD)
what database do you use? and also what are you talking about: Android or backend?
 
I need to save "34" as code "istanbul" as city name
Room
and "6" as code "ankara" as city name...
and so on
the backend developer sent the data like this and said "here you deal with it"
 
so City(id PK N,name S)
 
so what's your issue now? you don't wanna loop over the array?
 
11:03 AM
I generate auto PK, i need cityNo S and cityName S
I want to loop over the string/json array whatever and save each number and city name to the database
 
okay so you store them with Room on a sql environement
jsonLint says your objects are Valid JSON.
what is the issue then?
 
I don't understand your issue. What's blocking you?
 
after adding @Inject and @Component, we rebuild the project to create a dagger file?
is this right?
 
loop, parse, insert/add tro transact, repeat.
 
well the thing is I dont know how to parse this
literally tried splitting it
 
11:06 AM
what json lib do you use?
 
if someone's name starts with @Inject in this room, they will get notified... lol
 
@rupinderjeet yes
 
sorry Ege, I don't know the syntax of Gson. However I assume it's very easy something like that inside your loop: myObj.get (i).get ("PARAM_KO‌​D").asInt ();
 
11:08 AM
ok thank yall
 
11:20 AM
Tim, did you add the dagger tag already?
 
@Jordy ahhh okay! Never knew that, thanks for sharing. Not much experience of doing cascade deletes
 
user443346
@MarkO'Sullivan In CakePHP for example: book.cakephp.org/2.0/en/models/deleting-data.html , pretty easy.
 
is it possible with realm?
 
Nope. As Tim linked earlier, it's planned though: chat.stackoverflow.com/transcript/message/40927183#40927183
 
user443346
Hope they'll implement that asap, it's a must.
 
11:25 AM
hmm. i read that thread already. By the way i am reading your blog now
 
Apparently there's a workaround for now (posted in the issue)
 
@MuratK. nah not done much with it myself. It was already set up
 
mark i have a question. Why should you have final for LinkingObjects?
 
Doesn't matter
 
> The annotated field must be declared final, and must be of type RealmResults<T> where T is the type/class of opposite end of the relationship.
 
11:31 AM
just slam it it to the other ones
 
suppose it's final because realm manages it for you
they don't want you fiddling with it
 
hmm.
 
very interesting
I noticed that Chrome send 2 requests, on streaming at first. First negotiation (200) then first chunk (206), this guy explains it well
 
> 2008
 
yeah the http rfc hasn't waited for AS 3, to be published :D
 
11:38 AM
what would this be useful for tho
chunking up big files?
 
yes, basically medias streaming
 
i'm not sure that applies to media streaming tho
 
it does
first request responds with some info like "this server supports ranges" (Ranges: byte) Content length: size of the media
 
you must not only know the total byte size, but also the encoding, content size...
 
then the browser interprets them and send a second request to start streaming with X number of bytes as a range
 
11:40 AM
sending the first 1000 bytes of a video depending on the enconding format will just result in a pretty byte[] and a confused user.
or of a image
i could see an use tho when sending very big files
 
it doesn't have to be 1000, the browser decides. For ex, I noticed that for a 450kb video, the browser decides to download it as 1 range
 
split in packs of N MB, and reattach them as they come
the browser is in charge?
then were doomed.
 
the browser or the client :D but browsers are smart
 
compared to what? IE?
 
to the other clients that involve developers interventions
 
12:03 PM
Keep in mind that it's only useful to know when you don't have a media server (like a rest api) but when you use media servers it's all handled internally (like S3)
 
@Raghunandan I'm not sure, didn't work when I tried it without final iirc and just followed Gabor's example. @TimCastelijns is probably spot on
 
12:24 PM
Probably, since I copied it from the docs
 
I have dual monitors again
Fuck that shitty cable I was using
 
lol the usb cable you mean?
 
wait
USB monitor?
 
no i thought both statement were independent
lets wait for marks reply lol
 
12:42 PM
if he uses a usb desktop he's living in 2038 while we are still in 2018.
 
lol
 
@MarkO'Sullivan Did you test ble on One plus devices?
 
1:04 PM
 
In dagger, when do we decide that we need a @Module?
Like for API, we need Retrofit, OkHttpClient, GsonConverter. So, we just make an ApiModule? and provide these 3 from it.
right?
Or will we need more modules?
 
i dont know if i have shared this ^ but its awesome
 
@MuratK. some, I think my colleagues have OP4 and OP4T
 
Apparently it does not scan beacons
 
1:26 PM
I think it depends on how old the model of your phone is, I believe @TimCastelijns did more detailed testing on older devices and basically the older devices don't send out advertising data as frequent as newer devices
 
Op1 does
That was the case for Samsung mark
 
Any time I did tests with older devices (such as OP devices) I'd get less successful scans in a given time than newer phones
Had a limited amount of devices to test with though
I was comparing results against my Nexus 6P
 
there are big differences in the ble chips. Some report as often as they can, others report slowly, or only on the first discovery etc
 
anyone knows if getLine1Number returns the country code? (assuming getLine1Number returns the number)
can't test it on my phone, since my carrier doesn't store the number on my SIM
 
one plus 3 does not even scan the beacons here
like straight out not
 
1:40 PM
is the gps on
 
wat
 
You need location services enabled to use BLE
 
mehdi use this
public static String getNetworkCountryISO(Context context) {
    TelephonyManager telephonyManager = (TelephonyManager) context.getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
    return telephonyManager.getNetworkCountryIso().toLowerCase();
}
for "en", "us" etc
 
aight it actually works, the manufactorer app was not made for 7.+
need to enable it myself
even tho it asks for the permission on run time
 
Thanks, Tim! testing it know
 
1:43 PM
permission is not enough. You need to actually enable the gps
this goes for all phones btw
 
That shit always bothers me, you should be able to use BLE without location enabled otherwise it drains the battery
 
battery is not such an issue, it's more that 90% of the users get mad when you request to enable the gps for bluetooth scanning
 
100%
 
🤘 Tim!
 
I don't have to deal with customers thankfully
 
1:50 PM
wow FakeNews in trending on twitter in germany
apparently someone threatened to kill CNN Employee over fakenews
 
BACK!
 
welcome back
 
image not ofund
 
do you guys have a different country code than spain?
just click on it (to a github repo)
 
1:57 PM
image not found
 
language code
ca-ES
or just CA
depends on the system
 
so Catalonia is indeed recognized as a separate entity on telephony
 
kinda.
 
ok, thanks
 
catalan is the 8th most spoken language of europe
ISO-639 code = 'ca'
 
1:59 PM
wow
 

« first day (2656 days earlier)      last day (2307 days later) »