« first day (2369 days earlier)      last day (2592 days later) » 
00:00 - 15:0015:00 - 00:00

3:01 PM
Time to go home, cya
 
cya
 
cya
 
see ya
 
3:10 PM
mark ლ(ಠ益ಠლ)
 
you broke the pattern Mark
 
not only did he break the pattern.. he broke our spirits
2
I had a dream of a long, beautiful "cya" train. But it was not meant to be
 
HAHAHAHAHA
 
because one man decided that it should not be
 
Tim, I'm at the office, and I laughed loudly, all my coworkers are staring at me XD
 
3:12 PM
is there an easy way to tell Android to add to a value until it reaches a certain number, and then subtract from it until it reaches a lower limit?
it's in a while loop
 
what is in a while loop?
 
the counter
 
why is it there?
 
because it's drawing lines
it's not the only thing there :p
 
and you need the counter to update inside the loop
 
3:15 PM
but say I have a lower limit of 20 and an upper limit of 200.
and the counter needs to "bounce" betweeen those
 
increment by 1 every iteration?
 
by a variable
count += var
 
what if count + var > 200?
 
well that's what I mean
 
GREEN @_@
 
3:16 PM
is there a better way to change that to count -= var than if statements?
 
You could use a boolean
 
I am :p
I was wondering if there was a better way
 
I'd probably use a boolean
but I'm probably one of the least experienced in the room :D
 
if (cycleR) {
                if (rad1Up) {
                    pt1.setRadius(pt1.getRadius() + radDeltaDP);
                    pt2.setRadius(pt2.getRadius() - radDeltaDP);
                } else {
                    pt1.setRadius(pt1.getRadius() - radDeltaDP);
                    pt2.setRadius(pt2.getRadius() + radDeltaDP);
                }
            }
 
well there are 2 scenarios. Up or down. You have to check which way you're going so probably need to use an if/else
 
3:19 PM
that's roughly my plan
 
int i = 20; int dir = 1; while (true) {if (i + dir < 20 || i + dir > 200) dir = -dir; something(); i += dir; }
 
looks good
7 hours ago, by Tim Castelijns
straight to production!
 
@OcuS o_O
lol Tim
 
(edited) optimized
it's not what you need TW ?
 
idk
 
3:23 PM
lol
 
            if (cycleR) {
                if (pt1.getRadius() <= rad2DP || pt2.getRadius() >= rad1DP) {
                    rad1Up = true;
                } else if (pt1.getRadius() >= rad1DP || pt2.getRadius() <= rad2DP) {
                    rad1Up = false;
                }

                if (rad1Up) {
                    pt1.setRadius(pt1.getRadius() + radDeltaDP);
                    pt2.setRadius(pt2.getRadius() - radDeltaDP);
                } else {
                    pt1.setRadius(pt1.getRadius() - radDeltaDP);
that works
 
could be optimized
 
of course it could lol
 
lol
 
I write my code to function
not to function well :p
 
3:27 PM
you might set rad1Up to false default and remove the else if, if there is no else clause
 
it is false by default
I did that for safety :p
because I never know when Java will turn on me
 
rad1Up is a bool
 
change it ! lol
 
sigh
 
3:29 PM
make it an int (or whatever holds a numerical value)
 
floats here
but what am I setting it to?
 
no wait, fock, i've updated the gist
 
so it just becomes 0?
ohh I see
hmm that might not work though
 
the idea is that you want to increase pt1 radius' by rad1Up until it reaches rad1DP
 
because if my delta carries the dot past the radius, it'll just keep switching back and forth, since that statement will always be true
 
3:34 PM
when it does, you want to decrease, so you just negate the value of rad1Up and still add it to the new radius
 
yeah
but then it could still be above or below the limits of the if statement
so it would go up, then down, then up, then down, etc
 
i've edited the gist again
 
+ on both?
 
wait, it works for one point at a time, not both
 
shouldn't the < be a minus?
no it's for both
 
3:38 PM
@TheWanderer no
 
if (cycleR) {
                if (pt1.getRadius() + radDeltaTemp < rad2DP || pt2.getRadius() + radDeltaTemp > rad1DP) {
                    rad1Up = true;

                    radDeltaTemp = -radDeltaTemp;
                }

                if (rad1Up) {
                    pt1.setRadius(pt1.getRadius() + radDeltaTemp);
                    pt2.setRadius(pt2.getRadius() - radDeltaTemp);
                } else {
                    pt1.setRadius(pt1.getRadius() - radDeltaTemp);
                    pt2.setRadius(pt2.getRadius() + radDeltaTemp);
it's doing what my other code was
on a delta of 1 it works fine
but on a delta of 10, it does one cycle and gives up
 
chat.stackoverflow.com/transcript/message/36580872#36580872 is the base algorithm, it works for one value at a time, cycling from bottom to top bound. Just familiarize with that and decide whether it's what you need or not :)
jsfiddle.net/v9uxvkhn same thing implemented in javascript
 
well
    if (cycleR) {
        if (pt1.getRadius() + radDeltaTemp < rad2DP || pt2.getRadius() + radDeltaTemp > rad1DP) {
            radDeltaTemp = -radDeltaTemp;
        }
        pt1.setRadius(pt1.getRadius() - radDeltaTemp);
        pt2.setRadius(pt2.getRadius() + radDeltaTemp);
    }
that makes it through one cycle but then it just keeps growing
 
because you need 2 different radDeltaTmp. one per ptX
 
3:52 PM
and the if part should check one point only, not pt1 and pt2
 
so two separate ifs?
 
depends. if both ptX have the same bounds and growing/shrinking speed, only one if is enough
 
They do
It's just that they're inversed in direction
 
so if (pt1.getRadius() + radDeltaTemp < rad2DP || pt1.getRadius() + radDeltaTemp > rad1DP) { should do it
time to hit the road, cya
 
4:12 PM
Yo OcuS
 
4:42 PM
@Ahmad Bah, I use lounge wifi while I sip on free alcohol and eat free snacks while sitting in very comfortable chairs/sofas
 
5:20 PM
 
XD
 
@RaghavSood we peasants don't get to do that
Wasn't there this deal
For $200 you get lounge access in the entire world
 
5:41 PM
Mehdi xD
 
xD
 
@RaghavSood spoiled brat!
 
Just gotta plan your cards right :D
I just got back from Delhi
The novelty of all the free stuff wears off after the first few times
So I found myself eating cereal in the lounge instead
 
The miles you flew this year are probably already twice or more the miles I traveled in the past 34 years... You fucking ecological nightmare!
 
Flying is like super efficient though
 
5:52 PM
tell that my bike!
 
AmountOfEarthKilled/person/mile wise
Can your bike go across the Indian Ocean?
 
If I am fast enough, sure
 
lol
 
Flash can run atop the water, why shouldn't I be able to bike atop of it?
simple physics man
anyway, back to bug fixing
 
6:10 PM
TL;DR: Warner Bros. might have to pay $900 million if it can't prove ghosts are real
http://www.hollywoodreporter.com/thr-esq/warner-bros-facing-900-million-lawsuit-conjuring-franchise-990107
 
What the fuck... that is kind of fucking amazing: autodraw.com
I mean for design impaired people like me!
 
That is actually very cool :)
 
indeed
I tried to draw a football and it recognized it
 
Hi Warren btw
You're on late?
 
yeah, doing some bugfixes and shit
my wife will be home any minute and football will start at half but damn I am bound to this chair to get shit fixed I didn't broke
 
6:19 PM
Aww :) Very domestic :)
 
and now I just received news that there were 3 explosions at the bus of the football team...
can you fucking believe it
 
Yup
 
At least only one minor injury - no big deal
And the injured guy was only a footballer. Not like it was someone useful to society.
:D
 
6:47 PM
@RaghavSood what's one card that can give me the most lounge access?
 
7:03 PM
posted on April 11, 2017 by Android Developers

Posted by Tobias Thierer, Software Engineer To improve security, insecure TLS version fallback has been removed from HttpsURLConnection in Android O. What is changing and why? TLS version fallback is a compatibility workaround in the HTTPS stack to connect to servers that do not implement TLS protocol version negotiation correctly. In previous versions of Android, if the initial

 
@Ahmad the blue eyes white dragon
 
@Shipiz you don't yet meet the room requirements. room-15.github.io
@nyconing I'm going to give you access. Please read the room rules before participating room-15.github.io
@Tim you're in charge since there's no room owners around today
:P
 
7:19 PM
you are here
:D
 
Just for a minute to check the access list and because I needed a break
busy day...back to Bluetooth hell. This time in C#
 
Ok boss I will keep them in line
 
heheheh
 
@codeMagic I have done bluetooth in C# :P.. good luck
 
I need to figure out how to fade through the three primary colors now
 
7:22 PM
Really??
deviceInfo.Pairing.PairAsync()
what would cause Pairing to be null there?
 
all kinds of C# voodoo
better ask the skeet
 
gah!
 
sorry I just copy pasted stuff from blogs
 
Lol
I've looked all over. It only happens to computers sent to us from our overlords. All others work fine so far
 
7:55 PM
@TimCastelijns lol you watched yugioh?
lol
any goods songs you listening to Tim?
 
8:08 PM
of course, I even played the card game
I am still listening to Disturbed - The Sound Of Silence
 
yeah me too
 
I do this thing where I listend to one song for a week straight and then onto the next
 
meeh my deck was super strong
and completed the game
lol same as me only difference i listen to about 10 songs repeatedly
 
Tim - check "Snowy White - Midnight Blues"
 
links man :/
 
8:13 PM
it has a thumbnail that people working from offices couldn't appreciate
(just a precaution)
 
meeh i am at home and its 1:43 am here
 
ok, how do you paste a link with custom text and without thumbnail?
 
add text to it
 
[text](link)
 
that leg looks awkwardly photoshopped
nice one CF I know it
 
i like this music of TF
 
yeah it looks disproportionate :D
 
@TimCastelijns gba one right?
 
No I mean in real life with real cards
 
8:17 PM
oh
i have played with real too but not many people around me interested in that :/
 
I actually watched s01e01 again recently
and I was like wtf is this shit, why did I used to like this
 
hahahaha
 
lol
 
I never liked yugioh
 
well it was not bad
 
8:20 PM
I was more a Saint seiya, HxH, then all the others bleach etc..
 
well bleach meeh too much filler
i skipped those
 
same, then one piece and naruto :D
 
well DBZ ftw
 
DBZ was before that
on the saint seiya period
 
you can never get bored with DBZ
 
8:23 PM
I got actually :D especially after discovering non boring fights not involving echanging kicks on the sky on an "X" form :D
 
lol i hope you are not talking about DBS
 
I stopped at GT I think
or before that
 
GT was shit
gn
2:00 am here
 
Night
 
9:02 PM
blegh
anyone know of a good way to fade from R to G to B using Color.argb?
or any way?
 
yes, anyone knows
 
anyone care to share? ;p
 
no
 
darn
anybody?
 
never forget to close body
 
9:04 PM
wut
I wonder if I could use this blendARGB(int color1, int color2, float ratio)
 
you have my permission
 
@TimCastelijns LOL
 
@Okas tsk
 
@codeMagic maybe we should make him a room owner 🤔
 
9:34 PM
Good night guys
 
im still stuck on this
 
Good night (y)
 
database upgrade is failing due to duplicate column
which is not a duplicate column
 
cant find your question jmrboosties
 
you mean on SO?
 
9:41 PM
yes
 
that'll be a dead end
like the rest of my questions
im in too deep as regulars know
 
aha
 
:D
 
ill post it in a q but my hopes arent high
 
9:53 PM
0
Q: Duplicate column name on SQLite upgrade for a new column

JMRboostiesI've been getting an inconsistent, non-reproducible crash upon users upgrading to a new version of the local SQLite DB when updating the app. Fatal Exception: android.database.sqlite.SQLiteException: duplicate column name: upload_pending (code 1): , while compiling: ALTER TABLE purchases ADD COL...

good luck with this one
 
could well be some kind of platform issue
no android version etc pattern?
 
float += 0.1; should work right?
 
@Okas no pattern i can find
mostly samsung but thats just android in general
 
maybe there are two or more paths to this upgrade
like activity and also some service?
so there will be race condition
 
i dont know why something like that would manifest like 1.5 years into development
 
10:03 PM
shit just happens
 
iirc the condition is just "hitting the db"
thats the condition for oncreate at least
 
hehe, tim beat me to it
 
dunno what you mean by float += .1
 
maybe there was another database usage scenario added
activity/service/receiver starting at the same time
 
possible
 
10:08 PM
i dont have any idea if sqldatabasehelper is thread safe or not
 
one thing that should be noted
 
probably not
 
that kind of throws a wrench in that theory however
 
ok thread safe is not correct termin here
 
the failing statement is NOT the first statement in the upgrade case
 
10:10 PM
there are other statements under "case 7"?
 
none overlap with the upload_pending line which causes the crash
but yea there are several
 
its the first one
 
so if it were a concurrency issue, the first line would trigger it
its not, its the third one actually
 
now you lost me
 
im gonna update the question
 
10:12 PM
ok, see now
 
floats are annoying
 
dont use them then
just stick to booleans
 
Haha!
 
@Okas so yea, basically if it was concurrency it'd trigger elsewhere
its specifically this table/column its unhappy about
 
whats the name of the column?
 
10:17 PM
are floats supposed to randomly count up by the 100-thousandth?
 
"randomly count up by the 100-thousandth" ?
 
maybe some weird kind of language issue
 
what do you want to do, Green?
 
answer is false
 
the name is upload_pending
i doubt thats like a system-owned column, especially for only some users
 
10:26 PM
sry, saw it myself
no funny characters etc there
 
yea, tough one
 
interesting
 
BLAH
blend = ColorUtils.blendARGB(blue, red, (float)round((ratio / 100.0), 2));
if that float is anything between 0 and 1, it just blends with black instead of with the other color
 
i give up for now
 
same
 
10:36 PM
do you have any info if these user eventually recover from this crash or do they have to reinstall?
*users
 
i can never get their login info from crashlytics
but theyre being considered by crashlytics at least as all active
meaning its not happening to fresh installs
 
lets get back to it tomorrow
 
10:52 PM
well HSL makes things a lot easier than RGB for cycling
 
11:03 PM
i laugh whenever i see a commonsware answer
he is such a dick
 
I'm not being arrogant, but I almost never found any of his answers helpful
 
at least in this case his answer wasnt helpful, at least to me
 
11:24 PM
I appreciate his contribution to the community, but IMHO he should not take it as a job.
When someone asks for help on a code, if he wants to answer he should take some time and help based on the code the user posted and Not quote parts of the android doc every time :D
 
00:00 - 15:0015:00 - 00:00

« first day (2369 days earlier)      last day (2592 days later) »