« first day (2417 days earlier)      last day (2532 days later) » 

12:48 AM
Started messing around with Anko. Feels weird - github.com/AdamMc331/Anko-Sample/blob/master/app/src/main/java/…
 
@McAdam331 huehuehue we're ahead of your scrub app
 
1:11 AM
hey pplz
is there a recommended way to make the current fragment persist across recreations?
 
1:40 AM
@TheWanderer Adam can answer that
 
orly
 
yarly
 
@MCADAM331
 
and that's my contribution for today
good night al
 
bye Marky
 
1:42 AM
Bye Wand
 
2:17 AM
idk what I did, but everything works now...
 
2:45 AM
@TheWanderer wat
 
the chatse thing
 
eww
jk
 
>_>
Well it's nowhere close to done :p
I don't want to do anything else with the layout until we get the chat going
 
2:55 AM
makes sense
are you writing it in Kotlin?
 
no, no AS 3.0 yet
 
You don't need it ;P
 
wat
 
Pre AS 3.0 there's a kotlin plugin for Android Studio
I don't use 3.0 lmao
 
orly
I'd have to convince Nathan to install it too
 
2:58 AM
"Nathan, fix your shit. Install Kotlin." the end
 
lol
well I haven't heard from him in about 36 hours
 
I'm going to submit a couple conference talk ideas but I don't know what I would want to talk about lol
 
@TheWanderer There's a recovery period after interacting with you for sometime
 
@McAdam331 You should work to a position where you can submit a proposal with the topic "TBD" and they'll still accept your talk
 
3:03 AM
I wonder if SE would let us use their logo and name...
(with proper attr)
 
They have a whole page on it
 
that's a no
 
@RaghavSood Can anyone other than JW do that though?
 
Pretty much the entire Android team
 
ah true
 
3:06 AM
CommonsWare, probably
 
and anyone who's already given a keynote somewhere I'm sure
^^
Welp that's a goal
 
Eh, Keynotes are a dime a dozen
So many conferences these days
 
user457812
Find one and ask Trump to do it. See how quickly the room clears out.
 
lol
 
 
2 hours later…
5:13 AM
Will Android ever just make the internet permission a fucking default or am I going to forget every damn time until I die?
 
@RaghavSood kind of like with a woman
@McAdam331 I am starting a meetup in my area. Come practice with us.
 
What is your area CA? If you don't mind saying in here. We can talk privately if you prefer.
 
Idaho
I am sure it is in chat transcript already
 
Hmm that is quite the distance haha
I am from Michigan
 
5:49 AM
good morning
adam go to sleep
 
@McAdam331 yeah, I figured you are a ways away.
 
in my head there's a big blob of nothing between idaho and michigan
it could be 1 mile away or a whole world apart
ooh just 4 big squares away
 
basically
 
6:08 AM
again, why are not you a McBurrito sleeping right now?
 
idfk lol
it's 2 am
because I suck
 
6:19 AM
@CptEric 4 big square and like 4k miles
 
i'm not really sure what 4k miles is
6437,376km
 
About 6.4k km
 
oh okay.so 6 trips to paris from my city.
by car
or ~4h plane flight
 
Eh?
What plane are you on that's doing 6400km in 4 hours?
 
bcn - paris is 50-ish minutes of flight
 
6:22 AM
Most commercial flights top out around 950km/h if there's no tailwind
Flying distance might be less than driving
 
and it's 1200km
1200x50min... maybe 5h but not much more
 
Google says 2h
 
half an hour for takeoff and landing tho
 
> Direct: 534 mi
 
I was off. It is only 2k miles
So 3k km
 
6:26 AM
3.2kish
 
Depending on which parts of each state
 
i still don't get how it can be 2h to paris
that's too much
it took me 1h from takeoff to land touch when i went to brussels
and 1h and 20min to luton
do pilots stop mid air for some brunch?
 
Hover plane
Oooo.... Ferries across lake Michigan
 
Morning
 
Scheduled time is usually a worst case average
You'll usually land a bit sooner, especially on such short flights
 
6:31 AM
yeah literally 1h 20min. plane selfie at 6:30 am, takeoff at 7 aprox, door dock at 8:30, selfie changing hour back to 7.30 with time travel motto.
 
SIN-BKK is like 2.5 hours, usually takes me 1.5-2
 
The short period of flights are quicker...
 
Goooooooooooooooooooooooooooooooooood Morning Everyone!!!! :D
 
morning
shit I really should go to bed
 
D:
how are you still awake!?
 
6:37 AM
@CptEric do you change time zones going to Paris? Which direction?
If you change to an earlier time zone you have to add an hour to the difference between local times
 
going to london - luton, it's gmt + 0, and i'm +1
althought we should technically be the same timezone
 
London is Luton in Spanish?
 
no, it's an airport 50km north of london called london - luton
or just luton
london has 6-ish airports
 
OIC
That makes sense
 
luton, stantsed, heathrow, somethingwich, and some 3 or 4 minor for private aircraft
and gatwick
 
6:41 AM
I want to travel Europe. Hopefully I can in the next 5 years
 
the major ones map
ooh awesome
europe is cheap compared to USA
and now you've got round trips for 300$ with norwegian airlines
bcn - LA s just 400-ish
 
I have family in Norway
I would love to go and see the fjords
 
i should do that too :I
where do you live in idaho?
 
o/
 
Eastern side
 
6:46 AM
city name? to check in the comparator
checked with Boise
similar population
200k vs 140k
hmm @Code-Apprentice i need help with fractals
when you are awake again ping me
 
Fractals are cool
 
@CptEric what are you doing with them?
 
our teacher gave us an assignment with them without explaining them
and i'm frankly lost
at what the hell i'm supposed to do
 
Do you have a link for the assignment?
 
the class notes talk about the history of fractals, and the next assignment due next sunday is about the history of them, but not about how they are acalculated
 
7:00 AM
There are a lot of different fractals
The calculations are a little different for each one
 
we are given a "cloud" formed by two semi circles, a big one laying flat, and a smaller one attached to the end of the big one and rotated 90º
we have to close the rest of the cloud using "fractals"
and then proceeds to remind us that we might need trigonometry to calculate the % of scale reduction and angle rotation to close it
period
 
How is the cloud represented?
Is the assignment writing code to do it?
 
we have to explain the operation that generates it
and also Draw the result
uploading to imgur as we speak
 
Draw with code or by hand?
 
some artistic software, because we have to put it in a .gif later
 
7:04 AM
Ok
 
it has to close in a "thinking bubble" style
 
How are the top arc and the side one related?
 
exactly 90º from eachother
no more data provided
 
What else?
 
that's it. "the bigger and the smaller one are 90º from eachother".
no more explanation, no sizes
 
7:06 AM
"Bigger" and " smaller" is also important. Do you know how much smaller the second arc is?
 
nope
 
The raise looks approximately half
 
we are not even given sizes or length
 
Maybe the radius is random
 
for now i presented one with a handwaivium-generated cloud
but i'd love to understand how to do it
classmate asked the teacher for more information on how to solve it, got answered only with "try changing your seed".
 
7:09 AM
In other words, there is a pseudo random number generator
What software are you using to make the gif?
 
i am using photoshop
 
Does photoshop have random number generation?
 
not that i know
but i'm not an expert
what should that do? set random values for size, etc on the figure? i think that's not possible
 
user443346
o/
 
I think you need to write some kind of script. Many fractals have a random element to them.
 
7:17 AM
i have no clue on what the script should contain or how fractals should work
 
My best guess is that you need a random angle of rotation and a random radius.
For each arc.
 
i think the object should mantain the proportion
because she asks what scale % has been reduced for each new element
 
What proportion?
 
"the one in the image"
 
Yeah, you could pick a % of some base radius size
Here is the basic algorithm I can think of: generate random arcs until they meet up
 
7:24 AM
i don't know how to generate arcs by script
 
Have the script increase power consumption until your power supply arcs
Simple enough
 
@CptEric either you need to figure out how to do it in PS or use a different software package
 
Photoshop scripting is a pain
You'd likely be served better by python+drawing imports
 
again, i'd first need to know how to make an arc by script, lol :I
where lol is : kill me now before i die
 
If you use an graphics API in your favorite language, it will have a function to draw an arc
 
7:31 AM
OpenGL loves arcs, do it on Android
 
An arc is defined by 4 parameters: the center, radius, start angle, and end angle.
 
What about color? and stroke width?
#AllArcsMatter
 
how could i do it in html5 canvas?
i'm trying with the w3schools test but the arc is reversed
 
Surface Pro 4 + Surface Pen + W0MP3R
 
That is trivial once you have the geometric properties
@CptEric what do you mean "reversed"?
 
7:36 AM
upside down
of what i want
 
Example?
 
remove the * 2
and the arc will be half an arc
but... upside down
 
user443346
Does anybody know if I have to set all properties of an object in Realm? When I update a row, the update values are updated the way it should except for the properties that aren't setted and don't need to be updated. These properties become null after the update.
 
@CptEric reverse the angles
It seems that HTML draws the arc in clockwise direction from the start angle to the end angle
 
and how do i make the sideways one?
i got this
 
7:41 AM
You need a loop which determines each parameter for the next arc.
 
yeah but how do i turn the first small one sideways first?
if i change starting angle to 90 it goes nuts and makes a circle
 
Summer parameters are based on the previous arc and others are random.
@CptEric what are the start and end angles for the sideways arc
 
o/
 
based on?
if we're on a clock, and the top is 0º, then it'd be 90 and 180
or 0 and 180
 
Check the docs. I think 0 is at the right. So what is the angle at the top?
 
7:45 AM
270?
 
And the bottom?
 
90
 
Try that
Oh... except you need to convert to radians
 
yeah found that
well
i have a nice cloud form now
that looks like the example
 
7:48 AM
but i had to handwave the position of the 2nd angle
so it would be nice to make both things a single shape
for future teransformations
 
I think you need to generate a list of circles
 
?
 
Or a sequence. You do not necessarily need to store them in a list.
Arcs rather, not circles
I also think you do not need the exact same two arcs to start. Those are just examples.
So try to generate a random arc.
 
yeah, i need to use those same exact shapes
 
You sure?
Did your teacher say that explicitly?
 
7:55 AM
yup
 
Okay, say you have the parameters for the first arc and the radius and start angle for the second arc. Can you calculate the center of the second arc from that information?
Draw a picture and label it with the variables.
 
uhm
no idea
 
/o\
 
isn't the center of the 2nd arc it's length / 2?
 
Remember that the center is a point. You need to find the x and y coordinates of that point
 
8:03 AM
why i need the center thought? wouldn't i need it's end point?
 
What's end point?
 
where the curve ends
 
Look at the docs for the arc function. What are its parameters?
 
@AAA Welcome! Please read, confirm reading, and follow the room rules before you do anything else: room-15.github.io
 
centerX,centerY, radius, start angle, end angle
reverse?
 
AAA
8:06 AM
thank you @RaghavSood
 
:(
Let's try this once more
2 mins ago, by Raghav Sood
@AAA Welcome! Please read, confirm reading, and follow the room rules before you do anything else: http://room-15.github.io/
 
:(
 
AAA
I have read and understood the rules
 
@CptEric you need all those values to draw an arc. So yes you need the end angle for the second arc. You also need the center.
 
Do not guess. Calculate it by hand first.
 
welcome AAA
 
O/
 
@CptEric draw a picture and use some trig
 
AAA
thank you cold fire
 
8:14 AM
There is a $50 membership fee due in bit coin.
 
user443346
 
i don't know how to do it Ca :/
 
Yup, send the fee my way and I'll make sure it reaches the relevenat people
 
user443346
I see you like canvas Eric :D
 
@CptEric what do you have so far?
 
8:19 AM
guessing gave some weird results
that don't look quite far
away from what i wanted
 
Leave the code alone for now. Get some paper and draw a picture.
 
io don't have any drawing or measuring tools at work
:(
 
Napkin and pencil
 
Do not need to measure
 
\o
 
8:21 AM
Coffee grounds and finger
 
Just free hand it to derive some formulas
 
derive ?
 
Figure out step by step
 
thanks
 
step by step is the key
 
8:26 AM
Derive == do math
 
thing is, if i had the correct way of transforming it, i can think of it
but without the proper data i can't
so if i had startX and startY and endX and endY, and angles based on orientation instead of a global context, i might be able to pull out some math
but i'm sincerely lost with centers and a global angle thingie.
 
That is what the paper is for. Drawing a picture will help you figure out how to calculate the second arc
What do you mean by startX and startY?
 
thing is i got the 2nd 3rd and 4rth archs
and forward
it's just +0.5 when it's looking down, and +1 when it's looking to the side
and by repeating that it keeps changing accordingly
 
I do not understand what you mean.
 
but i don't manage to place the beginning of those arches where they should be
at the golden pot at the end of the previous st martin arch.
 
8:31 AM
The arc function does not take the points at the end of the arc as any of its parameters
You can calculate them from the given parameters, though.
That might be helpful.
 
yup, but i don't know how.
 
Do you know any trig?
 
yeah, but i don't see where trig would be needed here
 
Because you have circles
Circles are fundamental in trig
 
i'm not sure i follow what i should do
for the next circle i should know it's center
and i know the current's circle's center, and total width
emtpy brain space here
and that's how it's done
 
8:39 AM
How do you calculate x' and y' from the other variables?
Oh and you know the radius
 
hm
 
o/
 
If you know the current center and width of the circle then the center of the other circle is double the radius into one direction
 
brain came out with option 1: take XY, add radius to X or Y depending on where the shape is facing, then rotate that clockwise by reversing y
 
8:45 AM
Someone's making fun of @RaghavSood on reddit :o reddit.com/r/ProgrammerHumor/comments/6dvndo/…
4
 
Do not worry about rotating
The start and end angles take care of that
 
:I
 
Lol
I can't even remember why I did that
Plus, that whole thing is broken now
Doesn't work anymore
 
i'm all out of math power then
that bast my best bet
 
@CptEric assume x and y are 0
How do you get x' and y' from r and theta?
 
8:49 AM
i lack information, i just have one vertex and one side of a triangle
 
That is enough
 
technically two vertexes if we add the 90º but i don't know it's coordinate location either
 
How do you get x from R and theta?
 
no idea right now.
 
Note that I may be doing this very differently than your teacher expects
 
8:55 AM
but don't i already have x?
it's the supposed new radius, isn't it?
 
@CptEric this is where the trig comes in. What do you know from trig?
@CptEric no
2
 
answering to the first question, basic pythagores and not much more
 
Do you know sin cos tan?
 
Yeah, old law that says you should sin cause you tanned
2
 
8:58 AM
i forgot it as i haven't used it since start ofthe course
 
In the bible and all
 
@Jordy noob
 
Okay, that was an Adam/Tristan level joke
I should leave
 
Copyorupdate works like http PUT
 
@CptEric you will need to review them. At least for the algo I have in mind
 
user443346
8:59 AM
@TimCastelijns Oh, makes sense :') so I have to set every property? Or can I use a better way?
 
What class is this anyway?
 

« first day (2417 days earlier)      last day (2532 days later) »