« first day (1780 days earlier)      last day (3183 days later) » 

3:00 PM
I am using a LoginManager instance in my code so I simply call loginManager.logout() which basically does what you want
So I guess it depends on whether you are providing your own login button or not
20
Q: Facebook SDK 4 for Android - how to log out programmatically

franco phongRecently, Facebook released SDK 4 with new and cool updates. I tried to switch into SDK4 to use new features, however, I am struggling with the Login feature of Facebook. So far, to log out Facebook programmatically, I used : Session session = Session.getActiveSession(); session.closeAndClear...

 
um, when corresponding method says so? Okay, bigger picture: there are two tables corresponding to those counters, and when a row is inserted/deleted in those
trigger can actually make sense then
 
I'm starting to think this isn't possible in SQLite in the same way I did it in MySQL. You might be best off using a trigger.
 
@Eenvincible hmm...I did that, but still it logs in directly everytime, until and unless I logout the facebook app from my device
 
There is no 'insert on conflict update' in sqlite that I can find
 
That is weird though
 
3:03 PM
There's INSERT OR REPLACE but that's not quite what you want.
 
I mean, I could get the same result by querying those two tables, but I think that could be quite a performance hit
 
okay, let me dig classes in fb sdk, may be that help
 
Can I see your code (just that part where you logout) --- gist it?
 
I'll look into triggers, thanks
 
3:05 PM
I don't think it'd be a huge preformance hit, but yeah, any time you have to make multiple queries you risk bottleneck.
 
Ok Droid
I have another suggestion for you
 
yes, plz
 
Look at the newly added code
That should work for you
 
okay, let me try this one
I hope so
Thnx
 
Leave the logout code in; but add the new one
yw
Replace mContext with your (this)
 
3:15 PM
no luck
 
mm
sorry bout that
You are using the LoginButton?
 
Do you have to?
 
I know Facebook handles everything for you when you use it
Instead of using it, you could use your own button (looking like LoginButton) then use LoginManager
 
3:17 PM
I don't even need to appearance of facebook login button
 
You probably do - Terms of Use
 
hmm
do you think that will fix it?
 
You will need to submit your App for Approval
Yes it should fix it because that is what I do
 
And mine requests login every time
Try it first with any button
 
3:19 PM
okay
asking for credentials everytime?
 
AFAIK, LoginButton is made for apps targeting individual users - meaning they don't need to even logout
Yes it asks for credentials every time
 
Have anyone ever used this slider? github.com/daimajia/AndroidImageSlider
Or knows any like it?
 
Looks good
 
yo carl
 
3:40 PM
o/
 
ayy my boss finally arrived!
right on time
(11:40)
 
I liked this one
 
Noob, is that sarcasm?
 
user image
4
 
:D
 
3:44 PM
lol
 
hahaha
tbh better than @TristanWiley
jk no one can even compare to Tristan
 
:p
gonna pack some things and go get my girlfriend from the excavation.
see you tomorrow
 
Excavation?
 
she's a future archeologian
 
3:54 PM
bye Eric
 
bb!
 
user457812
My office now has a lot of baby spiders in it.
 
cute!
spiders are great
 
Awesome!
Free snacks
 
haha
 
user457812
3:57 PM
I've been grabbing them and putting them in people's cubicles.
 
user457812
They're so small that I feel bad killing them when they haven't had a chance to scare the shit out of me.
 
Don't have mercy on them
 
 
they are mean little bustards
lol
 
spiders are harmless
don't kill
 
3:58 PM
ha
 
:(
 
user457812
I refuse to kill daddy longlegs. That's it.
 
How can I create an entry on my calendar using Android Wear?
 
wat
 
PAX was super fun on Saturday
 
4:05 PM
What is PAX mr Carl?
 
I got to play "Keep Talking and Nobody Explodes"
it's basically one of the biggest video game conferences of the year.
 
That is massive an event
 
You win prizes or not?
 
uhh I entered a Star Realms tournament and got a couple of promo cards for that
 
4:10 PM
Nice
 
there were 56 people in that one, it was a swiss style tourney with 6 rounds, and then at the end the top 8 went into a single-elimination tourney with prizes
me and a friend entered that one
 
any good talks?
 
we finished 9th and 10th
Reno - I didn't have enough time for the talks, as I only had a single day pass
here's a good video of "Keep Talking and Nobody Explodes"
 
This looks super cool
This is me debugging our FRC robot
 
it was super fun. Super tense.
The music in the trailer video actually plays as you're defusing stuff.
and gets more and more intense as the timer gets closer to zero
 
4:43 PM
Sure is quiet in here today.
 
I actually did something!
I added a view to a layout
back to room 15
 
Should art be judged?
 
Elaborate?
 
4:56 PM
Good art bad art?
 
Art is subjective, but still able to be judged (and valued differently) by individuals
people who were impacted by 9/11 in some way, would be able to see a painting of that event and be emotionally moved by it in a way that others who were not impacted by it
thus the first group might judge the artwork to have higher value than the latter
likewise there is a level of skill involved in painting
if you attempt to paint the same picture 10 times, the tenth version is likely to be better than your first attempt
you'll apply the lessons learned from the first 9 attempts into the 10th.
 
5:17 PM
posted on August 31, 2015 by Reto Meier

Posted by Lily Sheringham, Developer Marketing at Google Play Editor’s note: A few weeks ago we shared some tips from game developer, Seriously, on how they’ve been using notifications successfully to drive ongoing engagement. This week, we’re sharing tips from Christian Calderon at US game developer, Dots, on how to successfully optimize your Play Store Listing. -Ed. A well thought-out

 
something for Ahmad and nil I guess :)
 
@Ahmad @nil
This website is like an onion. Interacting with it makes me cry.
 
user457812
I have no idea what you're referring to.
 
 
nil, the typeface I linked
 
5:29 PM
I'm trying it out
Had to restart AS though, there goes 10 minutes out of my day
 
:| someone just unaccepted my answer, even though there are no other answers on his question.
I fear whatever comment he's about to make.
 
What answer?
 
Hm. Never said anything. Idk what happened.
lol
Hi. you there ? I have chosen your answer correct but just undo it because your solution uses sub queries too and I observed that it took around same time like pure sub query solution of this problem. I need solution without any sub queries. Would you tell me is it possible of not. I will accept your answer again after 12 hours if i will not get more solutions. Please be patient for next 12 hours. — mahbub.kuet 2 mins ago
'please be patient for next 12 hours'. Who's helping who here?
 
5:48 PM
lol
 
I see this all the time "I don't want to use subqueries". I don't understand. Subqueries are not the devil. Sometimes they are essential.
 
dunno but my first guess was that this is some homework assignment
 
Every SQL question sounds like a homework assignment, really.
 
yeah, but such restrictions, what's a good real-life reason for them?
 
None. None at all.
 
5:56 PM
@cygery I can't use this font. The italic version breaks on underscroes and the letter a. The @ looks super messed up. And the characters are too narrow for me :P
 
And it's an unrealistic restriction. It cannot be done without a subquery, unless I'm completely oblivious to the solution.
 
Anubian, thanks, now I don't need to test it anymore :D
 
@SudipDas I'm sorry, but this room requires at least 100 rep to gain access, among other requirements: room-15.github.io
 
laters
 
bye
 
5:59 PM
@cygery The huge plus is it's way easier on my eyes at a smaller font size.
 
Een, you doing a lot of material research lately?
 
yeah I want to get better at it
I want to create amazing UIs
 
I use that like a bible. The nav drawer on the left will take you to specs on any component you want to research. Color, typography, components, animations, it's all there.
 
6:14 PM
Very helpful
 
6:25 PM
ugh I can never remember how to do this
I have a horizontal LinearLayout
I want [some elements here <----------space------> some elements here]
 
android:layout_weight ?
Set all of your elements to wrap_content width. Put an empty view where you want the space to be, and set it's layout_weight="1" and it will fill as much space as it can.
 
You could certainly use weights carl
orientation " horizontal"
 
thanks Mac, I'll try that
so the spacer should wrap content width too, but be the only one with a weight?
yep, that did it
 
<LL android:orientation="horizontal"><TV android:layout_width="w_c"/><View android:layout_width="0dp" android:layout_weight="1"/><TV android:layout_width="w_c"/></LL> TL;DR This will put a textview on each end with a big space in the middle
 
awesome, thanks
I forget that you can put weights on some objects and not others
 
6:28 PM
Yeah, usually with weights they suggest 0dp width. AS probably gives you a warning, but it's not a requirement.
 
This is the most math I've done in forever
0
A: Same time, same height

Anubian NoobI'm gonna give a slightly more mathematical answer here. The Intermediate Value Theorom is defined as follows: If $f(x)$ is a continuous function on $[a,b]$, for every $d$ between $f(a)$ and $f(b)$, there exists a $c$ between $a$ and $b$ so that $f(c) = d$. Before we apply this theorom to ...

 
o/
I'm back
 
I spent a solid hour on that
yo ahmad
 
@AbhishekBhatia with 179 questions and only 13 answers (most of the answers are to your own questions), you are pretty much the definitions of a "help vampire". You'll never get access here, sorry.
56
A: What is a help vampire?

bjb568I like the JavaScript Chatroom Rules definition: Do you get more code from Stack Overflow than you write on your own? Do you feel entitled to help from Stack Overflow users? Do you believe in the philosophy "Just use jQuery"? Do you spend more time looking for the right "plugin" than...

 
dang 179 questions is crazy
Question is how many of those are good though
 
6:40 PM
damn that is some math
 
Referring to me?
 
yes of course
 
haha thanks :)
 
Haha, I also gave a relatively long answer, but not nearly as impressive as yours, Anubian.
 
so much sql :O
 
6:42 PM
Yeah...
 
The most complicated SQL query I have written myself ever is this: update * from users where id=126 set credit=1500
 
Haha. Wanna see the most complicated query I've ever written?
 
As far as number of lines go, it's not that crazy. But as far as complexity this takes the cake:
6
A: Display dynamic ranges from a database table and count the rows within each range

McAdam331You can use a condition inside of a SUM() statement to get a count where that condition holds. I would count the conditions where the age is BETWEEN() the necessary range. Try this: SELECT SUM(age BETWEEN 10 AND 15) AS '10-15', SUM(age BETWEEN 18 AND 23) AS '18-23', SUM(age BETWEEN 26 AND...

 
6:46 PM
lol
Yeah, it racked my brain for quite a while. But I felt so rewarded when I got it.
Hmm. I wonder what the longest query I've written on here is. I'm sure I can find it in a sec
 
Those are long answers Adam
 
adam the sql god
 
aha, nope, here is the longest query I recall writing on SO: stackoverflow.com/questions/27529792/…
God, that even makes my eyes bleed now.
 
wow
 
Is there any form of sql that's turing complete?
Maybe if you have subroutines...?
 
6:52 PM
I do not know.
You're out of my area of expertise there.
 
I want to write half as much sql as you Adam
 
lol
I love databases.
You should see my content provider code sometime. It's beautiful.
Not for CC, it's become a mess, but it's pretty good for my other apps lol
 
why cant i find the branch graph on github lol
 
Github.com/username/repo/network
Or go to graphs, network tab ha
 
ah, thanks
 
7:06 PM
209
Q: Warlords of Documentation: A Proposed Expansion of Stack Overflow

Kevin MontroseIt’s been 7 years and 10,000,000+ Questions since Stack Overflow was launched. The amount of good that has been done for the field - all the developers helped, all the person-hours saved, all the beginners who grew into professionals - is hard to overstate. I cannot express how proud I am of wh...

8
whoaaaaa
 
NO WAY
WOAAAAH
this looks so awesome
 
So, a programmer's wiki? As far as user controlled and such.
This is cool!
 
I think it'll be cool
I hope it'll be cool :P
 
it definitely looks promising
 
What do you think of this blog design: chris.banes.xyz
 
7:12 PM
I hope they don't duplicate the Android docs. They're already incredible ha
I like it.
 
@McAdam331 ehhh......
 
When have the Android docs failed you?
 
Nav drawers
ListView
RecyclerView
Toolbar
dp/sp/px
 
Okay I did have to go to outside resources for Toolbar help, admittedly.
 
I learn way better through example and doing though
 
7:15 PM
Mostly always?
 
You can typically find examples in the docs, as well.
 
A lot more things are in a gray area because I didn't fully read through the docs
Yeah but explained code is the best
 
I take that one back
 
;P
 
7:17 PM
A lot of things are in a gray area though because I didn't really fully go through the docs, just skimmed and decided to look for a more easily understandable resource
 
@McAdam331 LOL!
 
ListView example. I think they're there, it's just hard to search for sometimes. But occasionally they do fall short.
 
Context too even
That's a mess. Why'd they bring Cursor in there? I just want to see an adapter bruh
 
I think the only time I couldn't find what I really needed in the docs was with some of the support lib stuff (RV, FABs, etc).
 
FAB is in the support lib?
 
7:18 PM
Though, if you really want a good resource, get a Warescription. I've barely touched my book but it's helpful every time.
 
I feel like the support lib explanation is really clear
 
Idk, their FABs suck. I used a library that I found.
 
7:20 PM
That's a good one. I have that in my published version, but I switched to this one: github.com/futuresimple/android-floating-action-button
@eski I'm glad to entertain you ;P
 
Me too Noob; FAB lib
 
@McAdam331 Oh yeah this seems to have a couple extra nice features
Have you guys seen this: github.com/ajalt/fuckitpy/commit/…
Last time I deployed my app was 9:15
It's 3:30
 
Lol how often do you deploy it?
 
Every time I make a change ;)
 
7:35 PM
That's p neat
 
I got a flat. wohoo.
in central berlin
 
why do non americans call it flats
 
because writing appartement takes longer
 
And evidently is harder to spell
 
true
 
7:51 PM
 
haha
 
FATAL EXCEPTION: main
java.lang.NullPointerException: context is null
at com.shreyas.logic.TextInputHandler.loadContextForTextInput()
at com.shreyas.logic.TextInputHandler.handleTextInput()
at com.shreyas.logic.Dispatcher.dispatchTextInput()
at com.shreyas.input.TextReader()
at com.shreyas.input.raw.Visual.handleTextInput()
(26 more)
 
where is that from?
 
FATALITY
 
lol Carl
 
8:06 PM
I want to post a gif but that's probably bad
 
So share the link and put an NSFW warning?
 
 
You can pursue this at your leisure (NSFW): youtube.com/watch?v=2YxPFw7lfY0
 
I got this gift from the WL team <3
 
Awesome, Ahmad!
 
8:07 PM
That's actually a passive agressive attack against you
WRITE FUCKING CLEAN CODE YOU LITTLE PIECE OF SHIT
 
LOL
 
LOL
 
I have a great idea
 
oh no..
 
What if every time logcat gave you a FATAL EXCEPTION
It played an ascii fatality?
And different exceptions can have different sets of fatalities
And of course play the music
There's a convenient gap between the app crash and the logs showing up
FINISH HIM...
FATALITY
<ascii video of a despining>
 
8:12 PM
The log cat is bad enough, I don't need it to mock me further.
 
Oh there's another idea
instead of ------- BEGINNING OF dev/main ---------
A gif of a cat
Probably a nyancat
Maybe we should just step back and make ADBterm, and have these all be plugins of that
 
8:30 PM
OK | Cancel or
Cancel | OK ?
 
user457812
OK | Cancel is what I use.
 
it's what I prefer after decades of Windows usage
 
Cancel | OK
 
^
 
bottom right for confirm is standard
 
8:32 PM
Ok should be on the right on mobile
Bottom right
I think it's in material design specs too
But most people being right handed is the reason (I think)
 
I think that's why too
 
yeah, the right thumb wants to tap bottom right
 
8:48 PM
there is no reason
the "correct" way changed arbitrarily around Honeycomb, or maybe ICS
 
Even with the old dialogs I though it was Cancel | OK... Don't really remember though
 
The only thing I recall reading at the time was someone from google said changing it made it less confusing
without looking at a system dialog I can't recall which way it is now. But I know for sure it used to be "correct" the opposite way that it is now
 
They changed it to have the "desired" action (usually "OK") on the right because I guess that's what most people click if they are hurrying through. Which makes sense. I remember reading something along those lines
 
but like
you had a ton of people who are now conditioned to do it the other way
switching it just causes more confusion for them.
 
I was hoping to get through this meta post today but looks like I'll have to read it on my own time
 
8:55 PM
so cM is finally here
 
it's a trick he is only an illusion
 
2 hours ago, by Anubian Noob
209
Q: Warlords of Documentation: A Proposed Expansion of Stack Overflow

Kevin MontroseIt’s been 7 years and 10,000,000+ Questions since Stack Overflow was launched. The amount of good that has been done for the field - all the developers helped, all the person-hours saved, all the beginners who grew into professionals - is hard to overstate. I cannot express how proud I am of wh...

Beat you to it cM ;)
 
This is not the cM you are looking for
That doesn't count because I saw it first but got busy
 
mhmm whatever you say dear
 
CALL 1800-000-00CM
 

« first day (1780 days earlier)      last day (3183 days later) »