« first day (2173 days earlier)      last day (2767 days later) » 

12:11 AM
Pen Pineapple apple Pen! :D
 
user457812
12:48 AM
I HAVE WINE. DEBATE PREP IS DONE. UNLEASH THE FLESH.
 
1:03 AM
This election makes we wish I could drink... @nil
I'm pretty sure anyone playing any debate drinking game just passed out within 30 seconds of Trump talking...
 
1:30 AM
WHY IS THE ANGRY ORANGE MAN YELLING
 
2:00 AM
I DON'T KNOW
 
user457812
2:41 AM
OH GOD IT WAS A TIE
 
user457812
Like, Trump was.. controlled for about 30 minutes, and then lost it.
 
How was it a tie?
 
was the debate today?
 
3:08 AM
yes
 
Twitter Hits Historic Scalability Milestone During The #Debates "50 million users blocked"
Donald Trump: "Russia loves me. I've never paid one cent for nginx."
Trump Wants Developers To Eliminate Corner Cases And #MakeSoftwareGreatAgain
 
3:41 AM
LOL at the second one
 
 
2 hours later…
5:50 AM
Morning
 
has anyone here run into this error?
09-27 11:22:50.476 1961 2207 W WindowAnimator: Failed to dispatch window animation state change.
09-27 11:22:50.476 1961 2207 W WindowAnimator: android.os.DeadObjectException
 
6:35 AM
good morning
 
7:16 AM
\o
 
7:27 AM
i hate views sometimes
 
grab a fragment.
 
no
ill get to the bottom of it
im having an issue where im trying to get a view to change height on click
the view is inside a recyclerview
i change height in onBindView or whatever the method is called i forget
but if i put that same logic inside an onclicklistener it just says "nah" and doesnt do it
 
I finally solved the issue that I've been trying to solve since yesterday by removing all the ProgresDialogs
and using a custom view that draws on top of every other view and intercepts touch
apparently progress dialogs was causing the window animator crasah
 
7:58 AM
o/
 
o/
 
8:15 AM
today is my 1234th day on SO
 
congrats.
 
thanks, next stop: 12345
 
kid is sick, I am at home... could be worse :D
\o
 
sup warren
 
My daughter was vaccinated yesterday and today she got some fever and the day care went nuts.... was half way to my office when I was called to pick her up again
now she is asleep and I have to do some small stuff for work
 
8:27 AM
day "care"
 
lol
 
well 39°C (no clue in retarded units, probably 200 or so) is not that low for a one year old
 
well that's what vaccines are for, a slight reaction is not out of the norm. i had my arm super irritated once.
 
yeah, we kind of expected it
the "problem" is that our daughter gets fever like instant, so she is good and 5 minutes later 39°
you can't predict if and when and how fast she will react
 
that's a troll daughter.
 
8:34 AM
she got that from her parents I guess :D
 
o/
Morning All
 
I was going to say something about the size of your head CF
 
glad you were saved from being Ninja'd
 
over 600 points on SE : travel
 
congrats cpt \o/
 
8:42 AM
@WarrenFaith that is a normal thing after vaccination.
 
Morning all!
Just back from a couple days off
 
sup mark
 
sup mark
 
sup mark
 
sup all :D
 
8:52 AM
The usual, sitting at work
 
hehe me usual working
Tim is sarcastic as ever
 
done
 
> Heute teilte die YouTube-Vertreterin Juniper Downs auf einer Zwischenbilanz-Veranstaltung des deutschen Bundesjustizministeriums zu Maßnahmen gegen "Hate Speech" mit, dass die Inhalte, die am häufigsten als "Hass" gemeldet werden, Videos des Sängers Justin Bieber sind.
ROFL
short translation: YouTube representative said that Justin Bieber videos are the most reported videos in the category "hate"
I love Germany :D
 
I know some of those words :D
 
9:02 AM
lol
yes i also know 4 words there
 
oh btw:
Labeled: Simplicity
 
hey warren how is the new company going?
 
don't know, I am still a month in the old one
 
aah i see
 
o/
 
9:05 AM
o/
 
9:20 AM
Tonight's debate in one accurate TV caption #debatenight https://t.co/vzVM4eJUcS
 
Warren I seen that T-Rex guy haha
 
does anyone here know how to get the crashlytics to log uncaught exceptions even though you have a sticky service running in the background which causes the app to be restarted instantly and thus lose the logs or something?
 
Could you not put a try catch statement where the exception is occurring and send it to Crashlytics?
 
Unstick service > let crash happen > identify crash > fix crash > problem solved
 
well if this happens, when there is a crash on a user's device
it wont get reported on fabric
isnt that a problem?
 
9:35 AM
@Bhargav it does that
why are you returning sticky
 
the service being sticky shouldn't prevent the crash from being reported, maybe there is an other problem
 
9:48 AM
@TimCastelijns I removed google analytics, idk what else could cause it?
 
not possible for me to answer that
 
any suggestions on how I go about diagnosing?
 
unstick the service, let crash happen, see if it is reported
 
alright
 
if it is, the service is the culprit. If it is not, then the service is not the culprit
 
9:50 AM
yea im doing it currently
 
let us know the results
 
hello everyone o/
 
hey
 
hello
 
sure
 
9:53 AM
that's it. i don't have more to say :P
so far, no problems today
 
don't jinx it
 
btw CF hows your personal project going?
 
10:04 AM
what is the cleanest way to sort a list by certain values first (say 3 specific items) then the rest alphabetically?
it's baffling me at the moment lol
 
java 8?
 
nope
 
I would sort it alphabetically first, and then move those 3 items from positions X,Y,Z to 0,1,2
 
it is currently alphabetically sorted.
I'm struggling on the latter.
 
Tim, i made a separate applicationIdSuffix for the debug builds (which are not proguarded) and I am getting crash reports from this build, but not from the staging build which is proguarded, so you think proguard could be the culprit here?
 
10:08 AM
make your custom collections.sort @edwoollard
 
@edwoollard find the index of a specific item with indexOf, then remove it with list.remove(index), then insert it at pos 0. Repeat for other 2
@Bhargav oh I don't know, never used proguard
 
gawd
 
I don't have an object to compare to find the index though?
indexOf(object)
 
what is in your list?
 
List of custom objects
which are returned from the API and I obviously convert them into my own class
 
10:09 AM
Override equals() and hash() in your custom object, it will use those methods to find an object in a list
 
@edwoollard so you want only the first 3 items to be sorted by a certain value? and all the other items to be sorted alphabetically?
 
indeed
 
I would make 2 lists then merge em xD
 
not necessarily a certain value, I just know the 3 items I want at the front
 
can you add a field to the object?
 
10:10 AM
nope
 
well make 2 lists man, first one with items you want, the 2nd list sorted alphabetically
then just append the 2nd list to first list
firstList.addAll(secondList)
 
I still need to remove the items from the 2nd list though
and all that ConcurrentModification BS.
 
remove?
 
is there the possibility that any of those 3 items have duplicates?
 
concurrency is a separate issue
 
10:12 AM
what do you mean remove?
 
nope, no duplicates in the list at all
well all the items are in the 2nd list
including the ones you are saying make a new list with
 
hm, maybe a linked list is useful here
 
1
Q: Java: How to sort custom type ArrayList

atom2uekiI have a custom type Position(x,y,z),now I create a ArrayList<Position>, i want to sort this array ordered by the value of z, from small to bigger,how can i do that using Collections.sortor is there any other efficient sorting method? When I try to use public class PositionComparator implements...

 
@Bhargav good
@Bhargav proguard only obfuscate dont prevent crashes form happening
 
10:35 AM
 
that's an expensive haircut
 
Seen that the other day and that really annoyed me @netpork
Some people really have nothing better to do with their lives and it's pretty sad
 
losing weight should have probably been the first step
 
ahahaha
 
@netpork watched berserk yet?
 
10:48 AM
nope
I have started watching Sanzoku no Musume Rōnya
 
@netpork how much eps have you seen?
CF - did you watch it?
 
11:06 AM
dafuq! that haircut's like so weird
my parents would disown me immediately if I get a hair cut like that
 
why the hell does hasNext() return true in a list iterator when it's at the end of the list
kill me
 
consistently?
I had that as bug once, because of concurrent modification
 
@rupinderjeet47 three episodes
 
consistently yeah, don't think i'm doing a concurrent modification but will check
 
can you show the snippet of the loop?
 
11:18 AM
concurrent modification is usually thrown by iterators next() method
 
yeah one sec will post
 
although it depends on the kind of List implementation you are using
 
hasNext returns true so the last item clause is never called
 
is this new code that doesn't work, or old code that broke?
 
this seems to explain it quite well stackoverflow.com/questions/17099782/…
new code
i guess that means you can't get the last item in an iterator
 
11:32 AM
any reason you're using listiterator instead of iterator?
 
no particular reason, i'll change it to iterator
 
I have to admit I don't know the difference myself
 
104
A: Difference between Iterator and Listiterator?

Peter LawreyThe differences are listed in the Javadoc for ListIterator You can iterate backwards obtain the iterator at any point. add a new value at any point. set a new value at that point.

ListIterator lets you have the hasPrevious() method and get any item in a list
ListIterator seems like the one I need to get the first item
i can only assume they both work in the same way, or at least the hasNext does
 
Yeah very likely
 
well this is annoying, i guess i'll have to remove the !isNext() bit and try something else
 
11:41 AM
Calling hasNext doesn't affect the iterator
 
11:51 AM
it does when there are more than 2 items in the list
 
overall macOSX sierra experience : meh.
things are as slow as in el capitan
even windows updates are more meaningful.
 
i don't understand how so many answers on SO say !hasNext() is a valid for getting the last element in the list when it doesn't
 
12:08 PM
@RED_ how so? Doesn't really make sense to me
 
it's not actually correct but helps understand how an iterator works and why !hasNext will return true even on the last item, it'll return false AFTER the last item which is quite useless.
obviously not something for my use case, but others are happily answering that !hasNext() will get you the last item in an array
 
What !hasNext() does is return true if there is no next element, and false if there is
it doesn't actually get you the element
 
yes, so if you wanted to get the last element, you could not rely on first checking is !hasNext() was true
this is also a good answer stackoverflow.com/a/17099834/565672
 
Object o = iter.next();
if (!iter.hasNext()) { //o is last element }
I am thinking maybe you don't want a while loop with an iterator if you're interested in first and last items, maybe regular for loop would be better
 
12:56 PM
hmm maybe, worth trying anyway
 
I only use iterators if I need to modify a collection inside a loop
 
got it working with a for loop, although a bit messy
i'll try with an iterator inside to see if it works
at least it works though
 
You want some refactor tips?
if so please send me the code as text
 
oh man
eurofighters are sexy.
 
o/ good morning
 
1:11 PM
mornin
 
How's everyone doing today?
 
good
think i got fever
admiring the results of german , italian, spanish and englsh design
doing hybrid web apps.
:P
 
Working on the design of the app. No clue what I'm doing honestly. Just copying layouts from material.google.com
 
eric, you tried React Native?
 
1:15 PM
read this: show 52 more comments stackoverflow.com/a/11503652/3682535
 
(y) flagged for cleanup
 
Which of the 52 comments are we supposed to read?
 
yup
 
sorry! i just wanted to say that they went on and on. Social Network.
 
Oh, haha
I flagged as well
That's why our forefathers gave us chat
 
1:20 PM
Realm an alternative to Firebase?
 
Well, that reason and to keep us from getting work done
 
@MarkOSullivan94 partly. Realm is only a database. Wait, let me actually read that :P
 
lol
 
I used mail-api with Java to send mails. should i switch to firebase for contact forms?
 
@TimCastelijns that mobile platform is offering what Firebase initially was, real time live database
Of course you get all the extras with Firebase now but initially whenever I was looking for a real time database just over a year ago it was really only Parse and Firebase. It looks (at least in the video at least) like Realm is going to offer something similar :)
 
1:24 PM
hey CM
nice mark
 
Fingers crossed they'll offer a good pricing model cause I'll definitely be trying it out if that's the case
 
so, mail-api or firebase for contact forms?
 
how does firebase relate to contact forms?
 
storing text data
on web
as a database
 
hey people
 
1:31 PM
hello
 
They are different things. One is for sending mail and one is for storing
 
in mail-api, i have to include a dummy mail id with password too, that scares me.
 
o/ kabuto
 
I needed mail to know what the user is saying or I can store his message and just read it.
 
o/
 
1:34 PM
So your question then is should you allow the user to send you an email or should you just let them enter text in a form and save it directly to a DB?
 
perhaps yes. i just need the message he sent. Using external mail app or old mail-api is odd maybe.
mails are good too, they will act as alerts for queries.
i wanted to use firebase to learn something new, but i think i will do that with my website.
 
old but gold
 
just got 10 crashes reported to crashlytics because someone ran an antivrus scanner on our app
thank you Crashlytics
 
lol
 
They should remove the anti virus scanner
 
1:42 PM
QD_2.1.2 by Trustlook was the device
i guess they ran it on their servers or something
 
Are exceptions thrown by task inside 'new Thread(....)' cached by an outer try-catch?
 
are you starting the thread?
 
yes. for connecting to internet.
 
The starting of the thread is handled by the try/catch, the task inside the thread is not
 
thank you.
 
1:56 PM
hey Tim not in other group only here today?
 
If you think about it, after thread.start() is called, the code continues and the try/catch is done. Then some time later the thread task may crash, but the main thread is not in the try/catch anymore. It makes sense
Yeah CF too much distraction. At least in here I can learn something, or teach someone some stuff I know :-)
 
mac user here anybody?
 
yes, you are right.
 
Yes mac user :-(
 
yup
 
1:57 PM
at least you are not samsung :/
 
any software to make windows ISO from mac
i dont want to install windows on mac note
 
pretty sure you create ISOs with the built in disk utility
 
i tried boot assitant but it gives me not enough disk space error
even though i have disk space
my pendrive is 4gb
and iso is 3.2gb
 
you can just do the first step of this: support.apple.com/en-gb/HT203909
 
still the error
 
1:59 PM
so you want to create a bootable usb, not an ISO
 
windows 8 needs more than 4gb
bootable usb is more accurate.
 

« first day (2173 days earlier)      last day (2767 days later) »