« first day (3035 days earlier)      last day (1917 days later) » 

4:00 PM
I am currently working on a note-taking application and it has become 'somewhat' complex when handling the data. Is it worth it to move to live data?
 
define complex?
 
Got the auto_inc working
 
will you require the features that live data gives you?
 
The reason for the break was the column of the PK (auto_inc) was still located in a different class.. Not even as a FK but just as column. It messed things up
 
i c
now commit your working state and go from here, step by step
 
4:04 PM
complex as in, I am having a hard time trying to save a user`s note due to lifecycles. The code I wrote a code for auto-saving notes a few months ago but it is not properly working. I have trouble trying to figure out when to save a note because a user could kill the app, write the note and pause the app and then come back again. I hope you get what I mean
 
test every change, commit everything that works
 
@ColdFire The only thing I find convenient about live data is that I would have to forget about lifecycles. Managing lifecycles is the major problem I am facing.
 
@TimCastelijns gotta have a working git set up then
 
@TaseerAhmad i see
you could always save on onPause
it will always work
 
Well damn
It works, the constraint failure is gone
 
4:07 PM
open a terminal and type "git init" and make 1 commit with the current state, that is all you need
 
awesome \o/
 
But I don't have the cause :(
@TimCastelijns thnx, will do
 
do you know how to use git?
it's an essential tool
 
I do know how to use it, but the setup was always done by a different teammate
 
Fragmented - Android Developer Podcast: 151: Evolving Android architectures (Part 2)
posted on February 04, 2019 by shows

In this episode, we continue our discussion from episode 148 on evolving android architectures. We collected some of the questions from the community and try to answer them. Show notes: http://fragmentedpodcast.com/episodes/151/

 
4:09 PM
Pushing pulling and resolving merge conflicts I can do
 
you just need a local repo so you can track changes and shit
 
For this solo-project I used drive
 
probably don't need to push it anywhere
 
I rather have it pushed online
 
use github, they recently introduced free private repos
takes 1 min to set up everything
 
4:10 PM
But so what I did was I removed the database and re-build it as it was.. The cause of my issue is gone but I do not have any reason
And that scares me
 
possibly conflicting table definitions
 
I did it onPause() before. To explain the problem let me put up some scenarios. I have implemented a speech to text feature but as you would know that launching speech to text automatically calls onPause(). And if the user was creating a new note that would mean I would have to call createNote() function from by SQLite class. It really is a mess.@ColdFire
 
@MwBakker don't overthink it and just move on lol
 
I think I declared a parent_column child_column wrong in the definitions of the foreign keys somewhere
 
I am here you could avoid the pinging
 
4:12 PM
yes, recreating the db will fix all that crap
 
@ballBreaker This was a 2.5 day error but yes I must not stick too long. I really wonder though
 
don't worry about what the issue was, worry about how you can identify them in the future
 
Do you know any better algorithm for it? I am sure there are better ways than what I have implemented.
 
@TaseerAhmad hmm
 
I am sorry I do not have really good English so I have trouble trying to explain my problems.
 
4:14 PM
your english is fine
 
@TimCastelijns you're right
 
@MwBakker Yeah it's probably broken key constraints
 
but what is wrong in saving in onPause everytime?
i don't understand how onPause breaks whatever you are trying to do?
if text to speech launches and call onPause , still i dont see what or how it breaks anything at all?
 
Ok my project is now stored at Git as well
Should have done that like 4 months ago
 
It's not the onPause that is breaking my code. It's my own code that is breaking everything. I am not a good coder yet. I think I may want to write the code again.sds
 
user443346
4:25 PM
@MwBakker Just finished setting up own Gitlab
 
private gitlab for companies?
 
Anyways, I have been working on this app for a quite well time without any feedback. Would anyone care to give feedback on UI? Not promoting my app here, I have removed app name :)
 
I am too lazy to be honest
 
user443346
@Raghunandan Correct, git.jordysuos.nl - need ssl on it tho
 
@TaseerAhmad I can't now, but maybe tomorrow I can help
Or later tonight
 
4:28 PM
hmm. we use gitlab for our company internal projects
i like github since i am used to it
 
@Jordy why not use Bitbuckets or Github, they're both free for private personal accounts
 
@TaseerAhmad you can still use LiveData if you want , i asked because i would only use it if it actually solve a issue of mine
 
Actually I would like to share my code that handles auto-save. Let me put it on gist
Then you guys would be able to better understand my problem
I will comment it well
 
@Jordy coool
 
user443346
@MehdiB. Github is not free with private repos.
 
user443346
4:39 PM
And I did use bitbucket but I rather have everything on my own machine.
 
I think GitHub is now free for private repos iirc
 
user443346
This is a server just for data
 
Github is now free for private repos as well
 
Yep
Just double checked to be sure
 
I think there is a cap of 2 private repos...havent looked more
 
it's unlimited
 
Only limit I can see
> 3 collaborators for private repositories
Which is still really good
I mean I doubt I'd work on a project with more than 3 people if it was a side project
 
Exactly
I save my codes/file on another laptop
and another backup on my USBs
Do you guys play games when not working? If so what do you play?
 
@MarkO'Sullivan yup
 
@TaseerAhmad I do. I play a range of games - Football Manager, EA UFC, Rocket League, Fortnite
 
4:45 PM
I just got confrontated by a video of American soldiers being ambushed shown per helmet-cam. Made some impact though, damn..
 
you play Fortnite too?
no PUBG mark?
 
No lol
Fortnite better
 
War thunder anyone?
 
well i am going to be too busy to play games anyway for now :d
 
oh?
Why CF?
 
4:46 PM
working on my startup
 
Niiiiiice
What is your startup?
 
i will let you know as soon as everything is decided :D
not here tho on fb/ email etc
 
@Jordy it is since 3 weeks ago :D
 
Okay, guys, I have to go now, will join tomorrow. Bye!
 
jordy is outdated :D
cya ahmad
 
4:49 PM
cya
 
@TaseerAhmad yikes that code :/
 
Bye Taseer~~
 
\00/
 
Hiya Een!!!!!! :D
 
Hola Een
 
5:01 PM
Time to go~~
Cya later people!!!! :D
 
cya womper~~~
 
bye womper
 
cya guys
 
cya
 
hola
 
user443346
5:21 PM
@MehdiB. Oh, took them long enough! Either way, I chose for my own Gitlab since I had this 32GB ram server lying around and I always wanted it to make it backup my live server. So Gitlab + 2nd partition for my live server data backup is perfect.
 
How much coffee do you drink everyday?
 
5:35 PM
o/
I drink all of it
 
I've heard coffee is a tasteless watery beverage out there... Is that true?
 
user443346
Hahahahah i totally forgot about this link:
 
user443346
50 shades of Tim.
 
@RaymondArteaga completely false. Unless my in-laws are making it.
 
5:39 PM
Here we drink coffee in small amounts, on tiny cups. I've seen on the movies people drinking many large cups of coffee. You can't drink all that coffee and keep living.
So I guess it's true
 
Back
 
Coffee here is strong and bitter, is the same thing there?
 
coffee here is complicated
there's no single way to answer your question
 
Also here the coffee comes mixed with toasted peas (don't ask... Is a Cuban government invention)
 
it used to be, ~40 years ago, that there were two primary ways the world made "coffee"
in Europe and elsewhere, coffee grounds were put through an espresso machine which applied heat and pressure, and produced very strong Espresso.
in the United States, pressurized methods were rarely used, instead hot water was delivered over the grounds in various ways, and produced a weaker coffee
but in the last 30 years coffee has seen lots of innovation and improvement, and now there are at least a half dozen different ways it's prepared.
Likewise, people have started caring a lot more about the bean types, quality, and roasting styles.
 
5:55 PM
Damn you should work at some kind of coffee company
 
yeah.. I should look into that
although I probably could have written all of that if you'd asked the same question ~3 years ago
 
can't even read that Mehdi
 
6:05 PM
o/
 
\o
Where are you today Ahmad?
 
I dunno man, I'm just an intern @ Red Bull.
 
I'm working at evil corp (i'm unemployed)
my vesting schedule doesn't let me leave
 
oh actually though, @carl was amazon vesting schedule always this f'ed up?
 
6:24 PM
was amazon vesting schedule always this f'ed up? yes
what the fuck
formatting iz hard
 
ctrl + k
 
user443346
@RaghavSood Easiest way at debian 8 to start a .sh file at boot with specific user, you know this
 
omg! I hate andro wear
 
why?
It's wearing you out?
 
XD
Developing alert dialog for it, once swiped left (dismissed), bringing it second time does nothing
 
6:36 PM
@Ahmad you have to tell me what it's like now so I can compare.
 
it's like 5%, 15%, 20%
 
so first year you only get 5% of your rsus
 
was that way in 2007
 
wow
 
6:37 PM
are you working for AMZN now?
 
that's just awful
basically locking you in
 
it keeps people around
 
oh nah, I was just interviewing
 
I wish that they had better ways of retaining people than just vesting schedules
 
after what you've told me I don't think I want to go for amazon
lmao
an era is coming to an end, as I am looking for full time positions
 
6:42 PM
O.o
I thought the plan was for you to stay an intern forever
 
that was the plan
my mom doesn't approve however
 
Hello, Android!
TIL, Ahmad is a momma's boy
@Ahmad is that like R.O.U.S?
@Jordy Is that a question?
 
@Ahmad ask for a big signing bonus instead :D
 
user443346
7:01 PM
@Code-Apprentice It was, but already fixed it
 
@CarlAnderson I just realized how small that image was now that I'm using my laptop XD
 
@Code-Apprentice lmao
 
its been a long time
 
JMR!
So we meet again.
 
yes indeed
im in management now so im not coding as much meaning im on stack overflow less
not like we talk about coding all that much here anyway haha
 
7:07 PM
hahaha true
 
ive been messing around with flutter though, its pretty cool
have you guys had a look at it?
 
oh hey jmr!
ohh I think someone here was looking into it
 
id never use it for like a real project
 
isn't google building an Android alternative with that as its main UI framework
 
but as proof of concept its pretty good to support cross platform out the gate
i havent heard that, but it wouldnt surprise me
i was using it to build a little app project ive been working on but you still have to do a lot of native code for platform specific stuff
like media players, notifications, etc
im really surprised how poor ios's notification support is
they just released in ios 12 a way to customize how notifs look
and im pretty sure you cant generate a notification which is constantly updating, like a timer for instance which seems ridiculous
 
7:10 PM
ping Mark if you need guidance on it
 
on flutter or ios?
 
Flutter
 
Hey JM! LTNS
 
cool, thanks mehdi
sup graeme
yea im kind of excited for this side project im working on
trying to be realistic but i could see it working out and being a thing
 
How you enjoying the weather eh?
 
7:23 PM
I just started a side project as well
 
@JMRboosties did you ever see my @ mention about your emails being broken at times?
 
it's in elecrtron so a bit of cross platform dev as well
 
haven't seen a broken one in a while though
so maybe it got fixed
 
@CarlAnderson i did, just now when i logged in for the first time in months haha
we had a lot of email issues last year
so it wouldnt surprise me
 
7:29 PM
some dumbass began ignoring opt-out rules and got us flagged as spam by microsoft and yahoo
we had to buy an entirely new ip for sending shit out to get around it
and like document the failure with sendgrid and stuff to show it wasnt intentional
it was a nightmare and we never recovered in terms of reach
and @Graeme its been super rainy this year
 
Freezing rain here right now :/ brr
 
yikes, that sounds like a nightmare
 
Carl, how are you?
 
i cant pretend its that bad here haha
it was like 60 and raining this past storm
the first part of it was warmer even, like tropical
then the wind shifted and it became a bit colder
 
hey Een. I'm old.
 
7:36 PM
Time gets to you, isn't it?
 
it gets to everyone eventually
 
BYE
 
i try not to be negative about aging
not that im that old or anything
turned 30 recently
so its kind of a milestone i guess
 
@CarlAnderson To be honest with you, it scares me a bit
 
7:38 PM
i was depressed about it for a while but no use in being that way
 
I always say; the only unfortunate truth about life is the inevitable mortality
 
And taxes
 
haha
 
ive known a lot of old people and theyve always really been at peace with their mortality
so like when youre 30 like me of course youre like dreading it since youre not meant to go at that point
but when youre like 80+ or whatever i think your outlook changes
so im kind of like "lets just worry about that later" which is to say "when the time comes to worry i wont even be worried"
my grandpa is 86 or 87 i cant remember
and i think like him seeing his kids, grandkids, and now great-grandkids is like
its like its nature's way you know
and youre at peace knowing you helped create these future generations
i have a son now hes gonna be 2 end of may
and like i never understood the whole "id die for my kids thing" until all that but now i totally get it
and i think its an extension of that, like when youre old and you kinda need to get out of the way for the future
 
I think I'm going to hit 70 and want to die
 
7:43 PM
i dunno youve got me started on it now, it was something i really struggled with for a while but i think i have a positive outlook on it
 
I already think now 70 is a good age to go
 
70 is young these days haha
people are getting well into their 80s
 
All my grandparents have lived to 100
fuck that, I want to die before then
 
i have a neighbor who is like 92 who walks around the neighborhood, upright without a cane or anything
still mentally sharp and stuff
 
or have my consciousness uploaded somewhere lol. Physical body just deteriorates too much past that
 
7:44 PM
my wife's grandma is 101, will be 102 in a month or two
 
Yeah that's true, unless I'm one of those old men
 
damn if you can say that at 92 i see no reason why id not wanna live that long
 
hahaha yeah
 
@ballBreaker I think these little guys can help redlinebeerwine.com/wp-content/uploads/2018/04/…
 
yea its the dementia ridden old people who are sad
 
7:45 PM
@MehdiB. marlboros are naasty
 
a few weeks ago, a study showed that marlboros cigarettes that get sold in Morocco are way more addictive than the ones sold in the EU. So Marlboro openly said: "we don't violate any law, the moroccan legislator should act on this.". Why? because the retards in the parliament blocked a law in 2011 that was gonna regulate the maximal nicotine amount for cigarette companies
 
lol
 
yep
Cigarette companies are all different depending on the laws
 
see you guys tomorrow
 
It's why some countries still have advertised cigarette ads geared towards kids
 
7:49 PM
now looks like they made some solid lobbying against that law and probably bribed all the fucktards in the parliament
 
cya Een
 
8:13 PM
Hey @JMRboosties!
well...back to work building an ill-defined, vague feature
 
8:43 PM
same
when table A has a foreign key to table B, to get the B that belongs to A, do you say ADao.getB(), or BDao.getForA()?
 
A.getB
 
I was thinking the same, because B doesn't really know A has a FK
 
exactly
 
is it normal that the FK is an id?
 
yes, that's what it should be
 
8:49 PM
thanks
jetbrains has a kotlin orm for sql but omg the documentation is so confusing
 
in Mongodb the entire foreign object B gets nested in A
 
is it different because mongo is document based?
 
yes! the "foreign" concept is the same, however in relational databases a foreign key is just a reference / pointer to another object
when in mongo it's a reference + value
 
Yeah you almost always want to get the "child" from the "parent"
 
thanks
 
8:52 PM
other document based dbs follow the same concept as relational ones
 
sometimes it gets really confusing for me. I've used about 4 different database frameworks that all work totally different, and am an expert in none
 
yikes
document-based DB
what is this, 1970?
 
don't worry, if you use mysql 99% of its classical usage is the same as the other relational dbs and querying concepts are similar to nosql ones as well
 
firestoreā„¢ the database of the future® is document based :P
 
the disparities are very obvious between nosql databases, "key - value" dbs, "document" dbs, "graph dbs" etc..
but the querying logic is the same, they're just more optimized for certain use cases and kind of queries they're supposed to serve
 
8:57 PM
makes sense
a table B that cannot exist without another another table A having a FK to it, does it make sense that BDao does not have any query logic?
since we just agreed that we query it through A
 
one useful tip for fkeys: ParentTable has a list of records from ChildTable, could be implemented in 2 ways: "Parent - List<ChildId>" or "Child - ParentId" the second one is more easier to query and manage
 

« first day (3035 days earlier)      last day (1917 days later) »