« first day (3288 days earlier)      last day (1884 days later) » 
02:00 - 21:0021:00 - 00:00

 
2 hours later…
04:56
Greetings!
 
1 hour later…
05:57
Can a fragment use two ViewModels?
I have a ViewModel in a FragmentActivity. Fragment needs to tell something to Activity. So, fragment gets Activity's ViewModel using Provider and sets a LiveData value which is being observed by same ViewModel in Activity.
Is this OK as in MVVM?
Tom
Tom
o/
Its fine since viewmodel is scoped to activity
ViewModel is scoped to one or many lifecycles (when lastone is destroyed, ViewModel is destroyed)
Also its fine to use multiple VMs /Fragment but it looks wrong
06:27
Gooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Morning Everyone!!!!!!! :D
07:13
sup womp
Accounting is hard
07:30
HEEEEEEEEEEEEEE - kicks the door open - LLOOOOOOOOOO PEOPLE
2
Banned, vandalism
Hiya Ivan, Raghav, Nyakouai!!!!! :D
@KiranS You need at least 80 rep and a 4:3 q:a ratio or better to get access here
@RaghavSood Watch me enter tomorrow
I'd rather not
I'm voting to close this question as off-topic because the OP is asking people to help him commit financial fraud. — David Schwartz 16 hours ago
07:48
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
i'm tired
Aren't we all?
Bad sleep?
@RaghavSood Show-off
hi
one of my am has been removed from play store due target audience and consent not completed
I want to know how much time it will take to live the app after resubmitting
only god can answer that question
2,4 business days
07:55
@IvanMilisavljevic "Only God can answer this question" -> Proceeds to answer the question -> Logically, Ivan is God
makes sense doesn't it?
@IvanMilisavljevic thank you
@Nyakouai ROFL
CALL ME IVAN THE MERCIFUL
08:00
You say "No" a lot today, Raghav
today?
it's a daily thing x'D
actually i can search for raghav messages containing his famous no
08:32
@W0MP3R LIES
ok ¯\_(ツ)_/¯
I understood that reference! (But sadly, can't meme it from here)
Not having access to imgur is the bane of my workplace
reference???
Just Raghav does say LIES a lot. So much that his "No" hasn't registered to me yet
Life would be simpler if you lot were more reliable
08:39
:3
@KiranS No.
Sorry, it's the lack of sleep, you'd understand if you weren't no-tired
The only thing I'm tired of is math homework
Fortunately, this is the last assignment
Homework ?
08:41
I haven't heard that name in a long time
Hi Murat
Yeah, kind of a misnomer consider I live on campus, so it is mostly in the same category as not-homework
Regardless, I must factorize random numbers to prove that I was paying attention in classes I didn't attend
:O
Hiya Nerd Master!!!
today is thursday
which means new chapters
eLi
eLi
Hi
Heavy rain here
09:21
its started to drizzle here
09:32
@MaadhavSharma Welcome! Please read, confirm reading and follow the room rule before you do anything else: room-15.github.io
1 message moved to Trash can
Read the rules, or you won't be uploading any messages here.
eLi
eLi
I want to put my custom icon in Chrome custom Tabs from R.drawable.my_icon but i ended up getting this message Failed to create image decoder with message 'unimplemented'
in case no url id to point direct to that section in docs
Are you using Android P?
eLi
eLi
Not yet
coz its asking me to update to android 9
Not a clue then
eLi
eLi
just android emulator
No its android 9 Raghav
10:04
@MaadhavSharma Access revoked for failing to read the rules
 
2 hours later…
12:09
lots of fine words
12:39
Greetings, people-who-aren't-eating-Oreos-for-dinner
12:51
oooh...
i missed the opportunity to use (once again) the sponge bob pic :(
I'm sure it'll arise again, the room is fairly consistent
yay~~
Turns out I need to write code for my math homework
This is preferable
yay~~
13:09
Turns out it is surprisingly hard to google for implementations to find a generator element for a field in python
Completely overshadowed by regular generators in python
google and SO are both getting worse for technical help
Eh, not really, I rarely have trouble finding general stuff
When it comes to niche/complex stuff I've found research papers and github issues to be better
o/ morning
\o Afternoon
Hiya Adam, Eski!!!!! :D
13:17
yo womp womp
13:45
TIL about Sagemath
Turns out we've had it all semester
Anyone have ever used Oracle DB?
Or know anything at all about Oracle
I know Java
We know enough to avoid it
I believe @IvanMilisavljevic was once uninformed enough to use it
@Zaraki596 You need at least 80 rep and a 4:3 q:a ratio or better to get access here
@RaghavSood [serious] Whats the issue with it?
Oracle in general is a bad company, with bad products, bad support, and has been superceded by open source alternatives in nearly every Oracle product you are likely to encounter without joining a government, bank, or ancient company
If you want to try out a database, use Postgres or SQLite, depending on your needs
13:53
I'm not looking to use Oracle DB
What are you looking for?
Information about the company
@MuratKaragöz Did you say that while waking up like Neo? If not, I'm disappointed
Who is neo
I'm disappointed
13:54
What kind of information?
Anything really. I may interview an employee for a school project and want to know about the company. I though I would ask here since y'all seem informed and have opinions.
The company itself is evil, in a nutshell, but historically they have built a huge number of very complex systems, so any reasonably good employee should have a lot to talk about
why evil?
What you should focus on really depends on the employee's background tho
Oracle is huge, they do nearly everything at some level from databases to operating systems to applications to enterprise software to programming languages
@JBis They originally built some nice things, but quickly moved into an approach to lock everyone and everything into contracts with extremely restrictive terms, quality went way down, and in general innovation was dropped in favour of making the most money possible, in addition to getting money from lawsuits/ensuring no one else would compete
Unfortunately for them, people did succeed in competing in most product lines
And now Oracle is largely restricted to legacy systems in places where it is too expensive/difficult to replace them
Which is a sizable portion of companies and organizations with very deep pockets, so they get by
There are 100 employees at Oracle, one of them is a developer the latter are lawyers
14:00
That's not true, at least 10 of them are sales
Here's some stuff from 5 years ago, hasn't really improved
But remember to differentiate between the company and the employee - the company might be terrible as a whole, but the people there can still be very experienced and talented, especially if they are senior enough and in charge of building on/maintaining ancient codebases that no one understands
It's a lot harder than it looks
That said, Oracle is huge enough that most employees are probably just about the same as any normal developer, no guarantees you're going to meet someone great, they could be terrible
That said
Oracle still pays $$$
If you're worth it for Oracle to retain, you can likely get more elsewhere without selling your soul
> After buying a £2.70 gel screen protector on eBay, Lisa Neilson registered her right thumbprint and then found her left thumbprint, which was not registered, could also unlock the phone.

> She then asked her husband to try and both his thumbs also unlocked it.

> And when the screen protector was added to another relative's phone, the same thing happened.
14:16
great thanks for information
14:43
He doesn't want thanks, that's paid content
There's a hidden r15 rule where you must pay for any helpful information
15:05
No Tim today, no balls today... Sad times to live in
Good morning!
HIYA CARL!!!!!! :D
Hellooo
What's going on in here?
literally nothing
15:14
> usual garbage
That's not true, Adam's here
No, not even that. I come here for the usual garbage, but no real shitshow today
We have unusual garbage today
15:39
Well, have all a good-ish evening
Or rest of the day, depending on where you are
@AdamMc331 lol
sup adam
@MuratKaragöz of?
16:03
@Nyakouai what
One Piece
but it's tomorrow
):
16:25
@RaghavSood Am I really unusual?
unfortunately, yes
@Ashvinsolanki you have write access, please start by reading the rules: room-15.github.io
For instance, you've only approved one access request in the last 6 months
5
Carl coming in strong with that Team Lead performance review plan
nah, Adam's only a Senior Room Owner, he hasn't made Lead yet.
@Ashvinsolanki we require users to read and acknowledge the rules to gain access, so unfortunately I've revoked your access. Try again later when you have time to read the rules.
17:00
@RaghavSood New Games on Epic Games!!!! :D
Does anyone else want to get pinged when there are new free games???
Tom
Tom
@W0MP3R me, I missed Batman last time
👍👍
will do
Tom
Tom
ty ;]
ping me @W0MP3R, I like free things
sure!
17:32
Nov 6 '18 at 18:24, by AdamMc331
wow it took me two weeks to accept defeat
@W0MP3R yes me too
o/ flat earther dave
Time to go~~
Cya tomorrow people!!!! :D
bye womper
@W0MP3R yes plz
yo timmyyyyyyyyyyy
17:40
posted on October 17, 2019 by Android Developers

Posted by Dan Albert, Android NDK Tech Lead Android NDK r21 is now in beta! It’s been a longer than usual development cycle (four months since NDK r20), so there’s quite a lot to discuss for this release. We have the usual toolchain updates, improved defaults for better security and performance, and are making changes to our release process to better accommodate users that need stab

btw AS 3.6 is awesome
17:56
Woah, I missed Adam being roasted live?
:D
@Mauker suddenly @AdamMc331 went AFK though. Not really sure why. :D
just the usual garbage
LOL
1. Adam shows up. 2. We roast him. 3. Adam disappears 4. We ping Adam asking him why he never comes around anymore 5. Repeat
18:12
rinse repeat
@AdamMc331 where r u at bb
@TimCastelijns will do, next time :D
you missed me :(
you're royalty, you get plenty of free stuff already
discrimination :/
18:25
royalty priviledge :D
o/ cmmmmmmmm
How's it going, indian man?
nm working, what about you indiana man?
Same. Just had a load balancer swap go well, seemingly decent meeting with the CTO, and now I'm relaxing a bit
18:30
nice
@codeMagic Good Good, let the Dev Ops flow through you.
ugh, I'm just glad it's over...for now
Working with kinesis streams next once I figure out this php bug. So it could be awhile. haha
hehe
19:26
cM is here? In the same day that Adam showed up??
What's happening?
What did I miss?
19:41
@IvanMilisavljevic i thought you got the job in serbia?
@Mauker we've time traveled back to 2015
Holy shit
you've got work to do on your baby app
meaning I'll have to go through surgery soon
brb gonna make some sports bets
19:48
Yeah, I'll have to extract some rock babies alright
lol
that also means you have to go through migraine again in 4 years maukerrrrrrrrrrrrrrrrrr
@Mauker what surgery?
Kidney stones
I did it twice
damn
Once in 2015 and again in 2018
stop eating stones already :p
19:56
little known Cover band of the Rolling Stones
@Mauker In my defense, I didn't realize he was here because I have Mac muted
what
@AdamMc331 are you gonna take that? tell me what you want to say and I'll say it for you
Triple ping
Adam says "I'm gonna fite him IRL"
19:58
@DaveS I saw the real ones in concert. It was awesome
lol cm
I saw Iron Maiden recently
Tell him to bring it. Not here but bring it somewhere. I'm a little intimidated now. A man with no keystore is no man at all is a scary man
Adam says "Meet me on the docks by the lake"
xD
you mean "in" the lake right?
20:00
It's too cold for that
brb, meeting
who is "meeting"?
hi team
quick question in regards to openFileInput method on the Activity
it's throwing a nullpointerexception
but based on the documentation, I am only expecting to see FileNotFound exception?
You can always expect to get a NPE if you're accessing something that has the possibility of not being initialized
seems like that was being thrown because of my enum class that I am using in order to keep static name across the application... bad idea?
20:20
@ColdFire i did, but the client is from Ch, so thats why im doing my onboarding here
Zurich is actually really nice, expensive af but beautiful
also money here is literally art
could use a hand with files in Android
what do you need?
the method openFileInput("myfile") returns FileNotFoundException - expected as the file does not exist
but when I catch this exception, I run the following code:
new FileOutputStream("myfile.txt", true).close();
@IvanMilisavljevic niceee
and the code returns:
java.io.FileNotFoundException: myfile.txt (Read-only file system)
storage permission has been granted
20:30
yeah its not a permission thing
what are you trying to do with this?
new FileOutputStream("myfile.txt", true).close();
trying to create a new one if FileNotFoundException is thrown
why tho?
FileOutputStream is not a real file, its just a mechanism to write stuff to the buffer
you dont have to create multiple instances of FOS
can you create a gist of things you want to do
if you want to create a file if provided does not exist
you do that with File not FOS
I am doing a recently Viewed thing
in which I write a arraylist of objects to the file
and you can just check like file.exists
@Nero also why?
20:36
i guess you are trying to serialise a list and write it to a file?
correct
and yeah are you doing android or java?
yeah dont do that
what's the android way?
ok so what you want is to store a list in the database
ah sql?
20:38
sqllite yeah
I don't know why but I'd prefer a simple file over database for now - although I can understand the key benefits of DB over "file"
because writing to a file is slow, and extremely error prone + it requires a lot bigger resource allocation
also you would have to handle situations, if there is no enough space or if file is deleted at runtime n stuff
space is not the key problem as the file will be limited (max of 10 items in the array)
I mean... you'd have to handle those with a db too, just a bit higher up the abstraction chain
also having to ask for storage permission for app that shows a simple list is not really a way to go
20:41
The secret is to not store any data at all
Make the user enter it again each time
also what will you do if that permission is denied?
Dispatch an elite team of NSA agents to secure the device
if it's denied, the data will not be displayed
@RaghavSood right but i guess sqllite file will have smaller footprint than file with serialised data
Also if it is just a list you can write it to internal storage, no permissions needed
20:43
I was going to minimum viable product here and file just happened to be the way I did it before; although I can understand the differences
yeah, you can add it to shared prefes
i was going for*
thats like super simple
Hmm, why would it? Any db will incur an overhead over directly serialized data
not sqllite
20:44
SQLite will usually incur a small one, but you can't really take up less space than the raw data does (compression aside)
i guess database will be the way to go then instead of files
SQLite has a measurable overhead, you can even get it to tell you about it iirc
just add the list to the shared prefs
shared prefs?
Shared prefs.
mine is better :D
I'm chalking that up to greater latency between NZ and the US
@RaghavSood you sure about this
I don't what shared preferences are lol but I thought they are more like for user preferences?
or am i wrong here?
20:46
Pretty sure
i mean it makes sense to have an overhad for table metadata
You are wrong here, it's just a generic key value store
but searilization sucks ass as well
@Nero yeah just a kv store
There we go, sqlite.org/sqlanalyze.html, it should tell you stats like overhead
you can store whatever you like
20:47
generic key value store, arraylist of random objects would be appropriate in this case over DB?
yeah
@RaghavSood right, i guess i wont be able to run this on android ;D
SQLite's overhead will usually scale along with the number of indexes and tables, in addition to other stuff like triggers etc. Indexes will dominate it tho
You could pull the db file out via adb and run it
You can apparently query some stuff via SQL too:
2
A: How large is SQLites minimum data storage overhead and what generates them?

Max VernonThanks for posting the output from sqlite3_analyzer. The pertinent bits are: Table DATAMONOTABLE Percentage of total database...................... 99.999% Number of entries................................. 6253010 Bytes of storage consumed......................... 276185088 Bytes of payload...

yeah, you right
You can actually reduce overhead by serializing correctly, vs stuffing things in a db
Most devs store stuff really inefficiently
You can usually save quite a bit on large datasets by defining a compact format
For example, if you have a csv of 5 columns of ints with 10000 rows, you can save ~40000 bytes by encoding the data as repeating tuples of varlen ints and skipping the commas
You could save so much that you could then stuff your encoded data into a kv store or db, and still come out ahead after accounting for the new overheads
Actually, you'd save more like 48k bytes, I forgot about newlines
thats actually a lot
20:56
Compact serializations are fun to develop, good exercise
you cannot write to the root directory
Not with that attitude
it's a shame these noobs didn't tell you sooner
Forgive us, senior developer, we moved to developing in more productive and useful environments
I really like the remarkable tablet
@DaveS moving to shared preferences now, seems easier and better
20:57
Doing my math assignment on it, so much nicer
+ requires no permissions
it's a fine solution, I agree with that
just fyi, that's why you were getting the exception
cheers for that though
right, but from the stuff i seen his not writing to the root
He didn't specify a path, so it probably defaults to /
20:59
Hello, Android!
02:00 - 21:0021:00 - 00:00

« first day (3288 days earlier)      last day (1884 days later) »