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

9:00 AM
Just fetch the existing model and update its values
 
maths
Maths 1
its this?
 
user443346
Thanks Tim, will do.
 
i need the hypothenuse to get X and Y. and the X to get Y
 
I never thought I'd see sine cos and tan again...
 
You can get both x and y from R and theta in my pic
 
9:02 AM
i never thought i'd need to learn them to develop stuff, but here i am
but i don't have R
 
Trig is very important in computer graphics
@CptEric assume you do
 
i can assume it and then get X and Y but i don't have it
 
For now I am trying to get you to review the necessary formulas
Do not worry about any code right now
11 mins ago, by Code-Apprentice
How do you get x from R and theta?
 
@RaghavSood lmao
 
x = y / R , y = x / R?
 
9:06 AM
@MarkO'Sullivan yeah me too
 
i'm not sure where theta falls in there tho
 
@Code-Apprentice I am glad I don't do computer graphics
 
^
found a beter one but i still lack input
 
@CptEric where is the trig?
@CptEric yes, those are the formulas you need to answer my question
So using my pic, how do you calculate x?
 
i'd need Y if i had to use those formulas
or X
there's always 1 side missing
 
9:10 AM
5 mins ago, by Code-Apprentice
11 mins ago, by Code-Apprentice
How do you get x from R and theta?
I am purposely ignoring y for now
 
but i need y to get x, it's sin(ø) = y / R
 
That has nothing to do with x
And you do not need y to answer my question
 
then i don't know what do for real.
 
Look at the pic you posted
Which formula should you use?
x...R...theta
 
i don't know. none of those match with the data i have
 
9:14 AM
Yes they do
 
i don't see it then
 
What is x?
 
a side that i don't know
 
Which side?
What word in your pic is x in mine?
 
the adjacent side
 
9:15 AM
Exactly
 
so?
 
5 mins ago, by Code-Apprentice
5 mins ago, by Code-Apprentice
11 mins ago, by Code-Apprentice
How do you get x from R and theta?
 
given that pic i need the opposite side to get x
let's call it y
 
You are looking at the wrong party of the pic
Do not worry about y right now
 
i really don't know
 
9:17 AM
Which side is R?
 
the H
 
So which formula can you use?
 
none of the three
 
Look more closely
 
really, i don't see it
 
9:18 AM
9 mins ago, by CptEric
user image
2 mins ago, by Code-Apprentice
5 mins ago, by Code-Apprentice
5 mins ago, by Code-Apprentice
11 mins ago, by Code-Apprentice
How do you get x from R and theta?
 
again, for me, none of the formulas match
 
3 mins ago, by CptEric
the adjacent side
2 mins ago, by CptEric
the H
Which formula has those two?
 
the one that has Y as result
 
3 mins ago, by Code-Apprentice
Do not worry about y right now
 
and the one that needs Y to getH
 
9:21 AM
24 secs ago, by Code-Apprentice
3 mins ago, by Code-Apprentice
Do not worry about y right now
 
someone remember a website address showing time history in a line? like dinosour period, bigbang, modern era
 
Which formula has adjacent and hypotenuse?
 
number 2
 
Exactly!
 
and?
 
9:22 AM
3 mins ago, by Code-Apprentice
2 mins ago, by Code-Apprentice
5 mins ago, by Code-Apprentice
5 mins ago, by Code-Apprentice
11 mins ago, by Code-Apprentice
How do you get x from R and theta?
 
i don't know
 
What is x?
What is R?
 
i don't know
 
Which formula has those two?
 
number 2. but i can't input air
 
9:23 AM
You already have all the pieces
Assume you know R and theta. These are not air.
 
but i still need X
 
How do you get x?
 
the cosinus of tehta is air / R
i can't just guess what air is
 
EXACTLY!
Solve for x
 
for me, i am still at step 0
 
9:25 AM
cos(theta) = x/R
x=?
 
x != X
 
Pretend
Happy now?
 
I thought we are having X fun
 
i'm not sure if it should be -cos(theta) / R or what, but i'm sure i won't be able to remember all fo this.
 
@CptEric I think part of the problem is you are trying to see how this fits into your assignment rather than trying to just answer my questions directly
 
9:28 AM
i really, 100%, don't see how to solve those things.
 
That is probably my fault for doing a bottom up approach rather than top down
 
i'm totally not good at math
 
Practice!
@CptEric you can learn it
cos(theta)=x/R How do you solve for x?
 
i can learn it but i'll never unsterstand it. it's out of my reach, i really don't see those problems as solveable issues. x = -cos(theta)/R
 
I see that you are dividing x by R. How do you move the R to the other side.
@CptEric it is only out of your reach because you tell that to yourself
You write code. That means you can learn math.
 
9:32 AM
i write code using logic and creativity
 
Math is logic
 
math is theoretical logic. i have never used anything beyond simple stuff at work
 
You just have to learn the rules. Just like you learn the rules of a computer language
4 mins ago, by Code-Apprentice
cos(theta)=x/R How do you solve for x?
 
@CptEric same as me
 
I see division. How do you undo division?
 
9:37 AM
i suppose multiplying but what?
does the x start mutiplying something?
can't the x be solved without undoing it?
 
You have x/R and you want to get x alone
So we need to get rid of the R by undoing the division
 
it's an operator, shouldn't R keep it and operate the -cos(theta) with it?
 
There is no minus
Let's try a simple example
 
but cos thetha is positive
and we're moving it
 
x/5=2 What is x?
You need to move R not cos(theta)
 
9:42 AM
ah.
so the division becomes a multiplication
 
So what is x?
 
10
so cos(theta) * R = x
 
How about in our original problem?
There you go!
See! That ain't so hard.
 
it is lol
 
Usually it is written x=R*cos(theta)
 
9:44 AM
all of this is very obscure for me
 
You should memorize this formula
 
(really) can't, very bad short-time memory issues.
 
You can if you try
@CptEric you can solve simple equations like x+2=5 and 2x=6 and x/3=5 right?
The rules that you use for these equations are also used for more complex ones.
 
sometimes, yes. if i'm not ofuscated by accumulation of operations
 
It is just like programming: break a complex problem into smaller pieces
And learn how to decide which piece is most important at each step
 
9:51 AM
it's different. in programming you usually don't deal with obscure operations or rules written by people two thousand year ago that define reality and that you must remember
all the time
 
What is obscure about addition and subtraction?
Or multiplication and division?
 
nothing. but 3 steps behind we were at sin cos and than and their weird rules
 
sin and cos are just symbols
 
everything can be broken down to simple operations if you know where to break it down
else it's just alphanumerical gibberish
 
For what we were doing, their meaning was unimportant. The only important parts were the formulas and the division
@CptEric so is programming to the uninitiated
 
9:55 AM
but i got programming easily and i've never gotten maths.
 
Keep working at it
Look for the similarities. That will help a lot
 
back to my issue, if i ever manage to get X and Y, those will still be local values
 
What do you mean?
By local?
 
that are on the context of the center of the other circle
not on the grid
or the end of the other circle
 
That is why you need to calculate the center of the second circle
 
9:59 AM
still, we assumed i had R
 
My strategy is to calculate the point at end of the first arc then use that to calculator the center of the next one
 
but on the real issue i have none of those values except from the 90º angle at wich both centers connect
 
@CptEric is that a bad assumption? If so, why?
You need R for the first arc in order to draw it, right?
 
?
 
It seems to me that it is safe to assume we have R for the first arc. I would also generate a random R' for the second arc.
 
10:02 AM
well yes, but the radius of the circles do not touch other centers
 
@CptEric huh? The radius of an arc has the center as one end point. That is the definition of radius.
 
yeah, but it doesn't touch the center of the other arc
so it's not... useful for knowing where the other arc should be, in my limited knowledge
 
Draw a picture of the two arcs
Show the center and radius of each
 
they intersect at one side but the circumferences do not collide or match with the centers
 
Ok
How can you use the point of intersection to find the center of the second arc?
 
10:08 AM
by guessing that the center of the second arc will be 1/2 of the width of the first /2 (x) arc and a radius below (y) .
 
Do not guess
What if the arc is at angles other than 90 and 270?
 
then i'm completely lost and have no clue on what do to
 
That is why you need to draw a picture
What is this class?
 
?
 
I might be making this more difficult than necessary
 
10:12 AM
it's Maths 1.
 
What is the name of the class you are doing this for?
 
Maths 1
 
uni level, 1rst year class, the only one math related i'm ever taking aside from physics.
 
Typed that as you answered
You will need trig for physics
Better learn it now
 
10:17 AM
if there is a simpler way i'd really appreciate it. before taking physics i'll hire some teacher because i've never taken physics ( not even in high school), and it's not gonna happen in atleast 2 years in the future
 
Since it is a math class I expect your teacher wants you to do it this way
At least do the calculations
 
i don't know how complicated you want to make it, that's why i said it.
 
Let me see if I can spell out an algorithm
 
the ending point of circle B is always at vertically the opposite radius of circle A
if that helps
 
1. Generate first arc. 2. Until we reach a small gap, generate another arc. 3. Draw an arc to complete the gap. 4. Done
Step 1 is why I assume that we know R from the first circle
 
10:24 AM
thing is that we actually have a fixed R; width and angle for both circles given the basic, unmodifiable shape
 
For the first two, right? what about the rest?
 
same shape group ( 2 circles ), different scale, possible different angles between shape groups
 
The important part to figure out is how to generate a new arc based on the previous one.
Oh! IC
 
to generate the small one i could uhm make radius to the right then radius down / 2, but then rotations and shit come in place
 
I was thinking of generating each arc rather than a pair at a time
 
10:27 AM
i still need each arch, but they come in pairs
 
So back up. Can you draw the first two arcs? Make that a function.
 
so the smaller arch is always at 90º of the end of the big
wait no
 
If you create a function that draws the two arcs then you can treat that as a unit.
 
lemme save again
 
Call it cloudPiece
Then our algo is
 
10:29 AM
this is what i have
but i'm failing at calculating the next central point after the first big arch iteration
 
1. Draw first cloud piece. 2. Until "done" randomly pick angle and scale. 3. Draw new cloud piece.
Do not worry about any code. Get a paper and pencil.
After you figure out the algorithm in words, the code will be easy
 
i failed to do that before i first asked for help
 
So try again
Assume you have a function drawCloudPiece(). Now try to come up with an algorithm to generate the whole cloud.
 
total eric and CA chat today
 
Hi, CF
Yah, we are monopolizing chat
 
10:35 AM
hey
 
I am scared to talk about non math stuff
 
lol well its not like you will be talking about anything except realm which is way worse than maths
 
Talk about maths
 
OK umm
Y=ax+b
 
uhm
 
10:37 AM
Well, I need to get some sleep. 0430 here
 
woah man sorry :(
^saving this for backup
 
Wait CA
 
You are too focused on the code right now, eric
 
Sin(x) ^2+cos(x) ^2=1
3
 
@TimCastelijns make it quick :p
 
10:38 AM
Add some xes to that
 
Was gonna say that
 
OK cya
 
Gnite all and good luck Eric
 
good night and good luck
 
good night
> Tristan looks older in other pictures
lmao Tim
 
10:42 AM
o/
 
11:00 AM
so quick the user deleted the post himself
 
11:23 AM
@Sugnesh You need at least 80 rep, and a a:q ratio of 3:4 to talk here. Please see this link for more details.
 
finally in android O my client will be forced to let me use a foreground service for his app
 
why?
 
no more work arounds and hail mary's to try to keep the service alive
because android O simply kills background stuff :D
 
all background stuff?
 
at least when the app is not in the foreground, which this app never is
 
11:30 AM
aah ok then
no probs
 
didn't mean to scare you
 
me is already scared
 
lol
 
/o
 
11:37 AM
o/
 
Anyone tried the Google vision barcode API?
I've been using Zbar until now, but if it's already provided and as good, I'd rather use googles than upgrading Zbar
 
@user5444075 You need at least 80 rep, and a a:q ratio of 3:4, and a non-default username to talk here. Please see this link for more details.
 
haven't used QR in ages
 
!/meow
 
11:48 AM
 
!/meow
 
thats just creepy
 
lol
 
giving me that look while licking its paw
 
11:57 AM
lol
 

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