« first day (1805 days earlier)      last day (3158 days later) » 
00:00 - 18:0018:00 - 00:00

6:00 PM
support library is a trick created by Satan to lure developers to the dark side.
 
Because he's using a menu, which is harder to implement on your own.
Look at all those circles, and Eric.
 
Ah, @Een show me what's happening?
I wonder if we can get @Sarge and @Eski online so we can have a circle takeover.
 
seems unlikely
 
online where?
 
WHOO~
 
6:05 PM
You notified me
no big surprise
 
higher resolution
 
Now all we need is nana or someone xD
 
6:06 PM
I only pinged them because they were recently online
 
@codeMagic You should know by now that whenever you say something like this you're going to be getting stars to rub it in :)
 
I need to make the outline on my circle more bold
 
how do you guys make those links?
<a>?
 
6:20 PM
[]()
markdown
 
[square brackets for text] and then (parens for url)
with nothing between
 
It's okay, cM. Our room has 855 occurences of self proclaimed idiots.
You do, however, have more stars than any other idiot in this room.
 
Lol 11 of those are me.
TIL I'm dumb more than cM is an idiot.
 
6:27 PM
Lol! Thanks, Mac!
 
damn, we are a negative bunch only 128 instances of smart
 
LOL
And only three starred messages of smart people.
We are a negative bunch.
 
41 pages of fuck
fuck.
fucking fuck.
 
fuck man, that's a lot
 
6:32 PM
lol
Oct 20 '14 at 19:14, by Carl Anderson
your love to hate/fuck/shit/fucking ratio is the worst
 
lots of fucks were given
 
user image
4
 
If that counter picked up on gifs/photos with the word fuck, I'm pretty sure it would double.
 
6:54 PM
@codeMagic and I am fucking proud of this :D
 
7:04 PM
So this is like being in Floating Action Button hell;
 
In today's episode of China team fuck ups, they just pushed a new version of the firmware to production without telling anyone or testing and it crashes the iOS app. #magic
 
#codeMagic
 
china = sketch
 
posted on September 25, 2015 by Tor Norbye

We've just released Android Studio 1.4 RC 3 to the canary channel. We've also promoted 1.4 RC 2 to the beta channel, since that build has been in testing for a few days now and there are no big problems. RC 3 contains just a couple of bug fixes. Please let us know if you encounter any remaining critical issues! Installation If you are already using a 1.4 Preview/Beta build, you can use the b

 
I remember you were doing something like this
 
7:23 PM
Dave's China Team is so bad I'm starting to wonder if they're real. What if every China Team story was one of Dave's fuck ups that he blamed on someone else halfway around the world?
5
 
who is a sqlite guru
got a question
 
@McAdam331 Makes sense.
 
What's your question?
 
so i have a somewhat complicated structure
 
I don't know if I'm enough of a guru for your 20+ tables, but perhaps.
 
7:25 PM
lets just break it down like this
table A has a join on table B
B is just a relationship table to tables C, D, and E
so the application is like
select * from table A join table B where A.id = B.relationship_a_id join table C where B.relationship_c_id = C.id
and so on
 
Do you even need table A in this example, then?
 
yes
 
But go on, sorry.
 
ill explain using the real stuff itll be simpler actually
so its mimicing like facebook kind of in the sense that its an activity feed
 
Yeah, if you could at least give table names I'd follow better ha
 
7:27 PM
A are the feed items themselves
so "jmr posted X"
 
Gotcha.
 
or something
B is the object table
it stores WHAT i posted
so when i say "jmr posted X"
X goes to the objects table, and the objects table says "ok, this post consists of an event and a venue"
so it then goes to the events and venues table
and i get that
technically, A and B can be the same table
but i broke it down into 2 and youll see why in a sec
so thats all fine, everything i have discussed so far works perfectly
the issue im having is with the concept of "liking" something
 
Okay, I'm still following you.
 
when you "like" something, the object that you like
"jmr liked X"
"X" is actually ANOTHER activity feed item, a different row in the same table
so for most things, the sql pattern is like this
query table A -> join table B -> get the object from table C, D, or E etc
however, when you are liking another activity
 
Now A contains "JMR posted X", but does it also contain "JMR liked X"?
 
7:31 PM
that pattern changes to
query table A -> join table B -> get the object back from table A
 
O_o okay so this is where I'm lost, which I assume is now where you're lost too ha
 
yea
im having trouble writing that
chained join functions arent that hard, like i was saying about just A join B join C
 
Okay. So what's the table structure of B? | id | event | venue | ... Right?
 
but i dont really know how to do A join B join A
 
And A has what? | id | user | post_type (like, share, etc) | fk_to_b | or something along those lines?
 
7:34 PM
kind of, yes. table B consists of the relationship id of the A table, and all possible columns for the joined values
 
Okay.
 
lol Dave
 
so B is like | table_a_id | event_id | venue_id | liked_item_id | etc
 
and yes, table A is like you did
 
7:34 PM
lol
 
@McAdam331 ^^^
 
Okay. But table A doesn't have a FK to B, because that's irrelevant, at least in this small subset of an example.
So which particular query are you having trouble with? Drop the SQL, but I mean like "finding all events a user's liked" or something like that?
 
i dont even know where to begin
 
Well that's why I asked, what are you trying to display in the first place?
 
7:38 PM
:| Maybe I'm not wording my question right haha
DAMN
 
thats the current query which works fine
 
The thing I'm really missing in all of this is why you think you need to do A join B join A
 
think about it like this
jmr likes mcadam's post
the actor is me, jmr
the action is "like"
the object which im doing the action on is your post
so i need your full activity feed item
 
Okay.
 
which would be "mcadam posted X"
as an inner object to my "jmr liked mcadam's post" object
and thats what im trying to produce via sql
 
7:41 PM
wtf is that sql jmr
 
a shitton of it
all of the projection part isnt really important
 
Okay so what you do is you start by getting all of the posts jmr has liked (SELECT * FROM tableA WHERE user = 'jmr' AND post_type = 'like';
 
That's the first time I've seen a TL;DR SQL statement
 
i built a piece of code which automatically writes those queries
 
You join that with A, to get the post info so you'll have (actor, action, liked post, liked posts's user) etc
And then you join that with B to get the post info
 
7:44 PM
and can then build java objects out of them
 
So it's A join A join B. Where A1 => the liked info, A2 => the posted info, B => The details on the posted info. Make sense?
 
this is a bit abbreviated
i just dont get how to join a table it itself
so thats why i dont think joining is the right approach
 
Any chance you can make an SQLFiddle with some sample data or you want me to BS some?
 
i dont know what sqlfiddle is
 
Nevermind. I'll try to explain what I'm thinking gimme a few.
You're sure B has a foreign key to A and not the other way around?
 
7:47 PM
yea
 
aren't you just looking for the intersection between Like actions and posts of a user?
 
im looking for the action that was liked by the user
so if i liked a post from mcadam i need that post from mcadam
 
Yeah. Give me like another two minutes.
 
so take the intersection of Set A (posts from mcAdam) and Set B(posts you have liked)
 
I need a new email...
 
7:51 PM
can you do that in a single query?
i could do it in multiple queries easily, im just trying to be efficient
 
Yes this can be done.
 
So joining on self is probably not a great idea; perhaps a pivot table could make your work easier hence your life?
 
joining on self is like masturbation... you're not having real sex.
 
i dont think its a good idea
i just dont know the alternative
 
that metaphor, ridiculous
 
7:53 PM
<3
 
lol
 
I made multiple queries with comments to walk you through my steps. sqlfiddle.com/#!9/b0aa1/4
Self joins are not always a bad thing. They're useful for situations like this. Self referencing tables are not uncommon.
 
so youre doing it via multiple queries
 
adam, you make SQL sound so simple
 
No, the last query is one query.
I just showed you multiple queries to better explain how I arrived at the last one.
 
8:00 PM
oh i see my b
 
The last one gives the resulting columns you're looking for, right? (Simplified, ofc)
 
so the problem i see with that is on table B
B actually has multiple foreign keys
it has fk_a like you did
but also fk_c, fk_d, etc
 
Right but those aren't part of the problem. You can add more joins onto this template. The hard part was making sure you got the correct row from table b like this does.
 
and a column which is like fk_a1 or something
no i know, its the last bit that matters in this case
 
There's two FK to A?
 
8:01 PM
my point is that it should have a foreign key pointing back to A
here is my schema for B
 
Ok guys, for those not following this SQL chat, I need help with android layouts; serious help or I will just cry here
 
CREATE TABLE activity_feed_objects(id INTEGER PRIMARY KEY,activity_id INTEGER,object_artist_id INTEGER DEFAULT -1,object_event_id INTEGER DEFAULT -1,object_venue_id INTEGER DEFAULT -1,object_activity_id INTEGER DEFAULT -1,UNIQUE (activity_id, object_artist_id, object_venue_id, object_venue_id, object_activity_id));
so activity_id is like your fk_a
 
What is the difference between activity_id and object_activity_id
 
but then it has object_activity_id which is like fk_a1
so for example jmr liked mcadam's post
the id of me liking you is 4
that would be activity_id = 4
the post YOU made which i liked is 1
object_activity_id = 1
does that make sense?
 
Yes. So in my sample where I put 'post_reference' in tableA, it should actually belong to table B.
And that's why you want to go A=>B=>A? That makes sense, but wasn't cleared up before my bad.
 
8:04 PM
@Eenvincible write it up in a gist and link it
 
what's the problem?
 
@JMRboosties how pressing is this? I'm about to leave the office, can we resume this in like an hour or two? Feel free to reach out to me on G+ (I'm not hard to find) and I'd be happy to dig into this deeper.
 
I want that FAB button to anchor to a layout - the code should be clear enough but for some reason, it ain't working
 
sure, thanks
im about to head out to an office lunch anyhow
 
8:06 PM
Sorry! I'll ping you when I get home.
 
Let me create a room then share some graphics Dave
 
Een stackoverflow.com/questions/30675534/… - can you specify a layout_behavior?
 
Anchoring to an intersection of two layout sections worked when using the android design support library
 
I haven't used FAB yet
 
I tried behavior attr but didn't work either
 
8:10 PM
hmm Idk anything more than google could tell you, no experience with that stuff. I'd use a Relative layout and put the FAB above whatever I wanted with margins
 
o/
 
8:26 PM
o/ happy Friday
 
Hey does any of you guys still have that t-shirt size converter?
Happy friday to you too! :)
 
in 90 minutes I am already celebrating saturday :D
 
I'm jetlagged
I just wanna sleep now
and it's finally 10 pm
tried not to sleep in the afternoon
 
8:47 PM
@Reno Yes but why is it that I cannot access that scanning to see if their is still a tag found when the application opens up from a NFC AAR?
 
Alright, domain buying time.
 
You decide now that you want to buy a random domain or you already knew a domain and are going to buy it now? =p
 
The second one
 
"cannot use index: idx1 (code 1): , while compiling: select * from words indexed by idx1;"
^ anybody know this one?
 
Shitshitshit I can't find my namecheap coupon
 
9:10 PM
Google it there are some free ones weekly
@McAdam331 I got this layout shit working; I have decided to go with [left] as the direction for expansion of the menu
 
9:26 PM
Do I want domain privacy?
 
But do I want it
 
You probably do
 
I'm going to wait for Adam lol
 
10:32 PM
Me too
Let's all wait for Mac
 
standing by
 
I just talked to him lol
 
How about no one waits for McAdam, then on 4/1/2016 we all come back for him and say April Fools!
 
Haha
 
11:12 PM
i love you guys
 
11:26 PM
Lol when Adam was drunk one time I tried to get him to say he loved me xD
Apparently he wasn't that drunk @McAdam <3
 
lol
im a lil tipsy
 
Oh boy xD
 
 
oh yeah
thats a good one
 
Steve send me some money
 
11:43 PM
@stackUser2000 denied for help vampirism
1 message moved to Trash can
 
lol
sorry
i'll keep it appropriate
 
I officially have a domain!
Steve are you a happy drunk?
 
yeah
 
I see...
 
11:45 PM
why
 
Just curious
 
are you?
 
We can be a pretty crude bunch but I still have to draw a line somewhere :P
 
lol, yeah, i'm used to being the owner and not having to worry about what i say much, it's mostly self moderation
to try not to drive people away, but i still slip every now and then
 
Question, who on room 15 have we seen pictures of? Me, Adam, Carl, Ahmad, Shreyas... who else?
 
11:48 PM
No worries, I'm an owner and I still get in trouble for what I say sometimes :D
codeMagic
I don't know what a Shreyas is
noob ?
 
Yeah, my bad.
Where can I see a picture of you?
 
pew pew
 
in C#, 2 mins ago, by Steve G
link me my picture that i know you keep bookmarked
he did have me book marked. i knew it.
 
@SteveG fancy potato gun you have there!
 
11:55 PM
ha
it was a POS
 
Piece of Spud?
 
mmm mashed potatoes
i had boston market for lunch
 
mr5
o/
 
o/
 
mr5
@McAdam331 hue hue hue. am I creeping you out? hue hue hue
 
11:59 PM
Dude, leave him alone xD
 
mr5
I'm going to his house right now
 
00:00 - 18:0018:00 - 00:00

« first day (1805 days earlier)      last day (3158 days later) »