« first day (1135 days earlier)      last day (3808 days later) » 

9:00 PM
@rightfold No. It doesn't exist.
 
@Ell Why would I learn these things by heart? I can always derive those in a matter of seconds.
 
Only right triangles have hypotenuses.
 
user1804599
> sin(45.0 * System.Math.PI / 180.0);;
val it : float = 0.7071067812
> sqrt(5.0 * 5.0 + 5.0 * 5.0);;
val it : float = 7.071067812
 
user1804599
Yay!
 
and the hypotenuse is always the biggest side
 
9:00 PM
Making memorisation easier is solving the wrong problem
2
 
user1804599
Almost got it!
 
Ell
@FredOverflow derive sin cosine and tan?
 
So fuck mnemonics
 
user1804599
(What’s up with the factor 10?)
 
SOH CAH TOA is a good mnemonic.
 
9:01 PM
@Ell Well, I now how the functions look, that helps a little :)
 
It's effective because people still remember what it stands for even after years of taking the course.
 
@rightfold You computed the diagonal of a square with width 5.
 
user1804599
> sin(45.0 * System.Math.PI / 180.0);;
val it : float = 0.7071067812
> 5.0 / sqrt(5.0 * 5.0 + 5.0 * 5.0);;
val it : float = 0.7071067812
 
user1804599
Yay!
 
Ell
@FredOverflow I know how they look. I'm a bit confused though, because I thought sin(theta) = o/h was the definition of sin. I didn't realise you could derive it
unless I am misunderstanding
 
user1804599
9:02 PM
This is actually pretty easy.
 
Yes geometric relations for trig functions is very useful thing to remember
 
@Ell Maybe derive was the wrong term.
@rightfold Try sin(30°), that's a nice number!
 
user1804599
:)
 
user1804599
Or sin 90º.
 
Do you get 1 exactly or almost 1 due to rounding errors? :)
 
9:04 PM
@CatPlusPlus It is useful. I don't know what math classes you took but it was used even after basic trigonometry.
 
@rightfold How about cos(90°), is it 0 exactly in your environment?
 
Ell
I have to memorize the special triangles for school
 
trigonometric identities are used too along with the unit circle
 
Bah, geometry
 
@StackedCrooked Why is my compilation continuously failing? And within ~15s (more like, 14s) always?! I've tried {g++,clang++} -O{0,s}. Strange.
 
user1804599
9:05 PM
@FredOverflow -1?
 
Coliru had gotten better - but over the last few days it has gotten ~unusable for me
 
user1804599
Oh, 6.123031769e-17. :v
 
@rightfold I knew it :)
 
@sehe You mean NOT-unusable?
 
Never remember shit you can lookup (also I've never used it for anything outside synthetic assignments)
 
9:06 PM
@sehe I had reduced CPU time. But that won't be necessary anymore since I fixed a bug where kill on timeout didn't work properly.
 
Ell
@CatPlusPlus sin and cosine?
 
What was the highest math class you've taken?
 
Their definitions
Well, geometric definitions
@Rapptz Uh fuck if I know the hierarchy
 
@sehe I changed it now.
 
Did you take Calculus?
It's used there.
 
9:08 PM
We have a static curriculum, I did whatever the faculty wanted
Yes
 
for trigonometric substitution integrations
 
Where did you see triangles in integration
 
In Calc 2 :v
 
Ell
we have to learn the derivatives of sin, cos, tan, etc.
main.cpp:11:39: error: ‘aligned_union’ in namespace ‘std’ does not name a type
 using aligned_union_t = typename std::aligned_union<Len, Types...>::type;
Am I being thick?
It is preceeded by template<std::size_t Len, class... Types>
 
Identities might be useful for substitution but still fuck memorising this shit
 
9:10 PM
Never heard of aligned_union before. Sure it exists? :)
 
Besides sinx = e^ix - e^-ix / 2i, fuck triangles
:v
 
@FredOverflow it does
 
And geometry in general
 
9:12 PM
congratulations.
 
Ell
e^(pi*i) isn't really -1 is it?
 
@StackedCrooked Great! Cheers. Testing
 
It is
 
@Ell wow e and pi are related?
 
lol.
 
9:14 PM
@StackedCrooked lol - works first time :/ Ironically, I think it required 15.5s coliru.stacked-crooked.com/a/7e6d67c0ed6d38ef
 
AMAZING
pies
Math where you calculate shit is boring anyway
 
@Ell Are you being sarcastic?
@StackedCrooked Are you being sarcastic?
 
no, I don't know much about math
 
Ell
@FredOverflow No
Woah. I googled and it's true
 
room topic changed to Lounge<C++>: We're npt being sarcastic, are we? [c++] [c++11] [c++1y] [no-maths] [no-questions]
 
Ell
Now I have to ask my maths teacher why that is true :P
 
/cc @Ell ^
 
room topic changed to Lounge<C++>: We're not being sarcastic, are we? [c++] [c++11] [c++1y] [no-maths] [no-questions]
 
Ell
Ooh or that
 
Ugh
 
Ell
9:16 PM
@R.MartinhoFernandes cheers :)
 
@sehe "we are so not being sarcastic" FTFW
 
@Ell wolframalpha.com/input/?i=e^%28pi*i%29 TIL this too
 
That video is great.
 
Ell
I do remember trying to find out what a gradian is by typing random things on my calculator, then I found pi and e were related somehow
 
They're both numbers!
 
9:17 PM
@StackedCrooked Don't know much about biology ♫
 
o_0 is 'pie' a unit of weight now?
 
user1804599
> A kerosene shampoo can even be fatal if fumes are inhaled.
 
user1804599
What is kerosene shampoo?
 
@R.MartinhoFernandes He speaks a little bit too fast for my taste.
 
9:18 PM
@Ell lol, gradians
silly French people
 
@rightfold A shampoo with kerosene
 
user1804599
lol
 
@rightfold Shampoo for airplane hair.
 
hmm; do I want to add some JS to auto hide some sections that users can then toggle showing afterwards...
 
user1804599
@thecoshman Use CSS, id attribute and the :target pseudo-selector.
 
9:22 PM
Well, I got curious, and decided to see how long it would take without using any tools (beyond a compiler). So this took around 15 minutes using C++, MFC, and VS.
 
VS is an IDE you lost
 
@JerryCoffin lol
 
@CatPlusPlus Thanks -- I'm sure I wouldn't have known that if you hadn't told me.
 
@JerryCoffin the toolbar and menus are a nice touch :P
 
@rightfold erm... can I use CSS class for this? to 'hide' sections of text, but leave a heading that can be clicked to toggle showing it again?
 
9:24 PM
@R.MartinhoFernandes Got's to be sure somebody can print it out if they want...
 
@JerryCoffin Arial? I blame it on MFC.
 
I know I can jquery the fuck of this, but you know, jquery :S
 
user1804599
@thecoshman Not if you want to show multiple at once.
 
@thecoshman Just use it
Nobody cares
 
@JerryCoffin I suspect it doesn't work anyway.
 
9:24 PM
@CatPlusPlus yeah, my thoughts too
 
You can even write it in click=""
 
yeah fuck it, jquery it is :D
still... is it something I should even do in the first place...
 
What are you doing?
 
@R.MartinhoFernandes Actually, it does (sort of). It doesn't handle all the scaling quite correctly (the text doesn't scale proportionally to the figure, but it still draws a recognizable circle, triangle, and labels.
 
7 mins ago, by thecoshman
hmm; do I want to add some JS to auto hide some sections that users can then toggle showing afterwards...
 
9:29 PM
@thecoshman XY
So what are you doing?
 
@CatPlusPlus forget the 'do I want to use JS' part, just do I want to allow these sections to be hidden by default.
 
What is the page and why do you want to hide them :cripes:
 
long list of mods I have put together, with a short 'what I think of them'. I will leave it for now either way, just thinking that it is a long page, and probably not that easy to navigate... though maybe those 'with in a page' links would be better...
 
user1804599
 
Congrats on probably breaking on IE
 
user1804599
9:33 PM
I couldn’t care less about IE.
 
@thecoshman Eh, use Boostrap's side nav with tracking
 
@FredOverflow Far be it from me to disappoint you in your quest for "Comic sans everywhere".
 
@CatPlusPlus o_0
 
@JerryCoffin I'm not Simon PJ.
 
No need to hide anything
 
9:35 PM
hmm, yeah they look nice
will have to poke around and see what fits best...
it's an enhancement though, so I can sort it out later
 
user1804599
What are you making?
 
user1804599
Website about Kerbal Space Program?
 
nah, just a page for the mods I use
to be fair, mostly so I can not loose track of what I use :P
 
user1804599
CoffeeScript is nice. :) jsfiddle.net/8HEcL/1
 
Ell
@R.MartinhoFernandes he talks too fast :p
 
9:40 PM
when using a map - should the keys be pointers or not, and why?
not the keys
the T
 
user1804599
Depends on what you want.
 
the values
 
@Infested The values should usually be...values.
 
i have an ex in bison where i need to "save" and "manage" variables
 
If they had to be pointers then map<A, B> would internally use B* anyway.
@Infested did you mean you have an ex in Boston?
 
9:42 PM
bison
a question: suppose map<string, int>
if i have a map whose key is "int"
there can only be one <int, 5> right?
 
If your ex is a bison then you have problems
3
 
you dont need to tell me
 
user1804599
I wish JavaScript had goto.
 
I tried using bison but it was pretty annoying to use.
 
user1804599
Wonder how difficult it is to emulate it using while and do/while.
 
9:45 PM
map whose values are integers and its key (of type string) = "int"
so i can only have one of <int, 5>
right?
 
user1804599
You cannot have multiple values for the same key.
 
user1804599
You need std::multimap or std::unordered_multimap for that.
 
or std::map<string, std::vector<int>>
 
user1804599
@FredOverflow interface sucks; remove last element with same value, key still exists.
 
Or std::who_cares
 
9:47 PM
std::no_questions, std::no_help
 
no hope
 
user1804599
 
yep
 
thank you!
 
user1804599
no problem!
 
user1804599
9:48 PM
 
user1804599
I wonder if libstdc++ and libc++ use standard containers containers to implement other containers internally.
 
@rightfold huh? that's a dumb joke
 
user1804599
It’s not a joke. :v
 
I don't feel like playing anything :/
 
9:53 PM
well, libc++ could use VC++ std lib on Windows
@CatPlusPlus you can something other than playing. e.g. catch a mice
maybe eat something
 
user1804599
@Abyx That’s not what I mean.
 
a mice
 
@Rabidhseep well, I've done an updated answer showing you some approaches, using C++11 and C++03. I hope this gives you some inspiration. You will want to note Rule #1 :) — sehe 5 secs ago
 
@rightfold the fuck are "containers containers" anyway?
 
user1804599
Typos.
 
9:56 PM
ok.
 
user1804599
Ugh.
 
string could use a vector<char>
but who cares?
 
user1804599
Structure and Interpretation of Computer Programs is such a boring book.
 
"Interpretation of Computer Programs" ? is it about being an interpreter?
 
zch
Then <string> would include <vector>
 
9:58 PM
@zch ...and?
it may include it.
it may include <sockets> and store stuff on a remote server.
 
zch
Ok, it probably may.
 

« first day (1135 days earlier)      last day (3808 days later) »