« first day (749 days earlier)      last day (4425 days later) » 

01:00
I've been thinking of putting it up somewhere, but I need to take out a few things I added (I'm highlighting move and forward for example).
@Xeo I don't think that can solve anything.
@R.MartinhoFernandes How else are we going to get answers. :/ At some point all the editors will support it... which would kinda beat the point. I guess if the question is completely useless I'll just go and delete it now. But I do see some use for it right now.
Boost ranges cannot be iterated. They provide pairs of iterators.
Xeo
Xeo
@R.MartinhoFernandes Thinking about iterators that know their own end?
@Xeo I don't get it.
What do you put in begin() and end()? You can't iterate with boost ranges. You can grab iterators from then, and then iterate.
Xeo
Xeo
I don't get what you're thinking about either. How do you propose to solve that exponential size problem?
01:03
So, if you have a stack of ranges wrapping ranges, and ask for begin() on the top range, that iterator will have to ask for begin() (and sometimes end(), which is the problem) on all the ranges.
@Xeo Alexandrescu's ranges don't have that problem, because they are actually the things that iterate.
Xeo
Xeo
2 mins ago, by Xeo
@R.MartinhoFernandes Thinking about iterators that know their own end?
@Xeo But that doesn't work with Boost.Range!
Xeo
Xeo
I never implied that.
Ok then, just deleted it. :P
Well, I was saying that Boost.Range sucks.
Ell
Ell
01:05
what is an arrow in latex? like a chemical equation one?
@Ell detexify.kirelabs.org is a lifesaver sometimes
Can you determine the byte offset of a class member at compile time?
Ell
Ell
ta :)
@StackedCrooked offsetof?
You can't for non-PODs.
@R.MartinhoFernandes Cool. It's a pod.
Ell
Ell
01:08
can anyone do chemistry?
Chemistry is the worst of the sciences.
Ell
Ell
@Rapptz can you do it? it's only GCSE level (15/16 years old)
Do you need help?
Ell
Ell
01:12
yeah :S
@MohamedAhmedNabil trustworthy for at least icc.
Shoot, I guess
oh wait, that is ibm, nevermind
@nixeagle so can I count on it for reference/ examples?
Ell
Ell
@Rapptz right given this equation: http://mathbin.net/111458
there is 0.35g of Oxygen gas is produced. How many moles of oxygen? and what is the total moles of gas produced?
01:14
@Ell I was forced to do chemistry in school, because there weren't enough people who wanted to do physics...but I don't remember anything :p
@MohamedAhmedNabil trustworthy for "This information center contains the documentation for any of the following IBM Linux compilers: XL C/C++ Advanced Edition V8.0 compiler and the XL Fortran Advanced Edition V10.1 compiler."
Ell
Ell
I got 0.35/16 = 0.021875 moles of Oxygen
Assuming that compiler complies with the C++ standard, sure you can use it for anything.
@Ell Correct.
Ell
Ell
but I don't know how to get the moles of other stuff because I don't know the mass o.O
01:14
Mole ratio.
What gas is it referring to?
These are all gasses
Ell
Ell
yeah
@Ell Erm. Count the number of molecules?
Chemistry.
Waht R U Doin.
Chemistry.
STAHP
For each oxygen molecule, you get 12 CO2 molecules, 10 water molecules, and 6 NO2 molecules.
Ell
Ell
so I do 0.021875 / 4 for the number of moles of nitroglycerine?
01:16
So, if you have 1 mole of oxygen, you have 12 moles of CO2, 10 moles of water, and 6 moles of NO2.
Ell
Ell
okay.
I guess :L
I don't know if the water is a gas here, so it's either 0.021875 * (12+6+1) or 0.021875 * (12+10+6+1).
It's given that it's a gas.
Ell
Ell
yeah it is gas, sorry I think I missed a pair of brackets
01:18
@Ell brackets mean stuff's a gas?
@melak47 Subscript (g).
Ell
Ell
well, missing brackets may obscure the subscript g or something :L
so to find the moles of nitroglycerine, I do 0.634375 * (29/4)?
or is it (4/29)?
You could just do a mole ratio from nitroglycerine to oxygen.
Ell
Ell
right okay
I'll do that. I get the ratio the wrong way round usually :s
Oh, should be noted that Oxygen is 32 not 16 because it's diatomic, iirc.
Ell
Ell
01:23
aww balls.
Moles of oxygen gas is the number of molecules.
(Because "oxygen gas" is molecular oxygen, not stray atoms)
Ell
Ell
I have 11 pages of these questions
because I got a U on the test :L lolfail
What's U?
What's a U? "U suck"?
Ell
Ell
U is the lowest grade
01:26
We used A B C D E for our scale, some replace E with F.
Ell
Ell
you get a U if you don't turn up to the exam
We use A B C D E F U
Ah, in here you'd get an I. For incomplete.
Ell
Ell
ahh okay
Ell
Ell
but I did turn up, and just did very badly
01:27
16 mins ago, by Rapptz
Chemistry is the worst of the sciences.
Ell
Ell
so the ratio of oxygen to nitroglyceride is 1:4 ? 0.25?
yes
Ell
Ell
so i multiply moles of oxygen by 0.25 and thats how many moles of nitroglyceride I have?
@Ell The inverse.
Ell
Ell
ughhh why the inverse?
I don't understand o.O
for ever 4 nitrogliceride, you get one oxygen
oh wait. of course. never mind
01:30
Use dimensional analysis to keep track of your units.
Oh btw, did I mention that my first day of work, was a day off?
Ell
Ell
paid? :D
Don't you get limited paid off days?
My boss was sick, so he was not available to introduce me to the stuffs and to give me tasks. So he called and sent me home.
01:32
Ah. Lucky you.
Ell
Ell
so moles of oxygen = 0.35/32 = 0.0109375
moles of gas = 29 * 0.0109375 = 0.3171875
moles of nitroglyceride = 4/1 * 0.0109475 = 0.04375
Yes. Looks correct.
ell, check your answers with wolframalpha.com :)
Fuck Wolfram Alpha.
Ell
Ell
01:34
it doesn't do chemistry as well as maths
I asked it for the mr of nitroglycerine it failed me :O
@Ell No! You misspelled "nitroglycerine"!
Ell
Ell
oh yes, so I did :O
@R.MartinhoFernandes I think I may have asked you this before, but, are you planning to motenize ogonek? or have any other of your own projects you want to monetize?
Robots don't need money ;)
If I did, I wouldn't slap CC0 (aka public domain) on it.
@Borgleader Yeah, that would be awesome.
I'm doing ogonek mostly because I want to show it can be done.
01:38
what is ogonek? google failed me.
Can you change the name of a repository? I've never actually tried
Dunno.
Wouldn't be too hard to create a new one and push to it from a local clone though.
@R.MartinhoFernandes ah ok I see what you are doing :)
Well it's easier than I thought in Bitbucket. Just click the gear and you can rename it
01:41
Kinda feels like common lisp characters in a way. Emacs does this too I think. Of course it is possible I misunderstand :)
That is emacs treats characters/text independent of encoding/utf8/utf32/whatever
Ell
Ell
I like "There is no One Ring to rule them all and in the darkness bind them."
and "Can haz vorpal sword?"
Yeah, I might have been a bit "too inspired" when I wrote that.
Ell
Ell
it's good :D
I've never used TortoiseHg before since I've been using exclusively git but I like it so far.
01:49
Because we already discussed it a while ago.
see starred one by Praetorian @R.MartinhoFernandes
@nixeagle Oh, found it.
@R.MartinhoFernandes any info when the rest of VS and the standard lib will be updated to make use of the features?
@melak47 See the article?
01:57
@R.MartinhoFernandes where does it say anything about when the actual thing is coming?
First few sentences.
(I don't know, I haven't read it carefully, and I'm busy now :S)
> The November 2012 CTP release is available immediately for download here: aka.ms/vc-ctp. It contains the following C++11 additions:
@Rapptz that's the compiler
Ah I get what you mean now
01:58
Customer Tsomething Preview
Article actually doesn't say
@melak47 We haven't announced any dates for this.
@JamesMcNellis will these new features be fully supported before the next batch is introduced, or will those both come in one update?
user142019
Man.
woop woop
user142019
02:05
I fell asleep at 20:something yesterday.
user142019
And I’m already awake.
..what time is it
user142019
03:06:15
go back to sleep :/
02:06
That's 7 hours of sleep. o.o
There, redundant pins gone.
user142019
@melak47 I slept for seven hours.
user142019
I’m not tired anymore. :P
@Zoidberg'-- alright, then have fun with VS 2012, now with more C++11!
user142019
Meh I’d need to either install Windows or boot up my other Mac.
02:07
daknok is an apple fanboy.
right. all your name changing confuses me :p
Weird. Bitbucket doesn't display my commits under my username.
@Rapptz what name does it use
Wrong e-mail or something?
In any case, you can set up an alias in the settings somewhere.
I can push normally but it uses my TortoiseHg alias.
user142019
02:10
@Zoidberg'-- also delegate constructor thingies. or something :p
Ell
Ell
I am not sleeping toniht
Instead I'm doing chemistry :3
and then cooking noodles or something maybe
user142019
But the real-time errors in the IDE does not, and neither does the static analyzer. WTF Microsoft.
@Zoidberg'-- it's just the compiler
@Rapptz On the repo settings, under "Username aliases", you can fix that. I think.
@Zoidberg'-- It's a preview.
02:13
@Ell cooking noodles...doing chemistry...are you trying to poison someone?
Ell
Ell
haha
user142019
@R.MartinhoFernandes oh of course.
Not that it means those features will be there.
@R.MartinhoFernandes that'd be a dick move.
Yeah, like VC11 with nothing new.
02:15
but but it has, err, a new version number! that's gotta count for something
well, at least kyrostat compiles in VS2012 now. until someone uses an initializer list.
4.3 is the one released this year, right?
user142019
R"(
#include "foo.txt"
)"
user142019
Does that work? :P
user142019
02:18
Does it include foo.txt or do I get "\n#include \"foo.txt\"\n"?
I still need to check if my baby can handle that.
user142019
Meh I get the latter.
Ell
Ell
woo kyrostat! woo!
user142019
I never used a message box for debugging except in JavaScript. :P
02:22
I didn't feel like allocating a console
WTF? 3.1?
Oh. Crap.
3.1 what
user142019
:0,0 - Error - invalid value 'c++11 -stdlib=libc++ -Wnon-virtual-dtor' in '-std=c++11 -stdlib=libc++ -Wnon-virtual-dtor'
user142019
lolwat
user142019
ohh I see. Stupid configuration file.
02:22
@melak47 OpenGL.
I was running on the wrong GPU, though.
@R.MartinhoFernandes what about it?
wha? huh? how did you get my fork off my hdd!
@melak47 It was was glview was reporting as my graphics card supporting it.
Hmm. No 4.3. I might need to update drivers.
oh, do you have a hybrid gpu thingy
yeah, I already had a 4.3 capable driver but I had to download a newer one anyway to get a 4.3 context
at least the previous driver said it supported 4.3
Ell
Ell
02:24
What gpu's do you people have? o.O
-3
Q: PHP I am pulling my hair out trying to find the best!

darga33PULLING MY HAIR OUT I have heard of Martin Fowler's book PoEAA and the other book Head First OOA OOD but those are not in PHP. I DESPERATELY WANT TO READ THEM, but ONLY in PHP utilizing SOLID principles! Does anyone know of the absolute best, most recent PHP book that utilizes the SOLID princ...

@Ell AFAIK every 4.2 GPU should also support 4.3?
560 Ti
@melak47 Yeah, I thought so too.
@melak47 There's the key! Supporting 4.x and really supporting 4.x turn out to be rather different things.
Ell
Ell
02:25
@Rapptz I have a 560 Ti Cu II!
snap!
I think i have 560 Ti too
560 Ti feels pretty shitty, lol
Ell
Ell
really? o.O
In comparison to newer cards, obv
@Ell Hmmm...we seem to be back to chemistry...
02:26
I have a GTX 670, and a GTX 570. and my laptop has a pitiful HD 5650
Ell
Ell
is there a difference between 560 Ti and 560 Ti Cu II
I'm running on intel integrated graphics atm now though
and my other comp has a radeon hd 9600 iirc. It uses AGP xD
@Ell Hey, so I'm not the only one using ancient hardware!
holy fuck. kyrostat's vendor.dll is 33 MiB
@melak47 Nvidia?
@R.MartinhoFernandes yep
02:31
I have a GTX540M and some Intel crap that supports OpenGL 3.1.
my laptop's HD 5650 gives me a "3.2.9704 Compatibility Profile Context"
also haven't updated drivers in ~3 years
oh, just great. my model (or something with similar graphics) doesn't even exist on their website. and regular graphics drivers won't install
Ell
Ell
I hate it when your model doesn't exist :L
Trying to make an utterly self-contained Repository is more difficult than I thought it would be.
Ell
Ell
why? with git it's all stored in a .git directory in the same dir irrc. It can't be too difficult? o.O
Just when it depends on outside libraries.
Do I include the whole GLEW src and build it with my project? Or do I just include binaries and update them when a new build comes out, one for each platform target?
02:41
@ThePhD when I'm lazy, I include the sources :p
Why would you include GLEW in your repo?
The engine can bounce between DirectX and OpenGL.
Or can be compiled to take one of the two out of you don't care for one.
Sounds like a pain in the ass.
A giant, turgid pain in the ass.
Right now GL support though is bare minimum: I've gone all directX for now, and I've left a bunch of #IFDEF's and //TODO's behind to make sure I don't forget where I need to stick some of those enum values and stuff I'm missing.
... Meh. I'm probably going to write my own OpenEXR Loader and Saver anyways, which is all I'm ever using the Imf stuff for anyways.
So, I'll cut that all out of the mix.
That really only leaves GLEW left. .... I think I'll just compile it and keep the .lib, .dll, and include/src handy
user142019
I have a question about RAII.
02:46
huh, interesting. the HD 5000 series supports dx11, but not opengl 4+
I already have my own 'half, which conforms with ILM's and NVidia's 'half' and the IEE 16-bit float defition, so I should be okay enough to blow up all the ILM stuff.
@Zoidberg'-- I know nothing about it. Maybe one of the gurus can chime in.
user142019
std::string read_line(std::string const& prompt) {
    std::unique_ptr<char, FreeDeleter> str{::readline(prompt.c_str())};
    if (!str) throw std::runtime_error{"end of file reached"};
    return str.get(); // fine or UB?
}
user142019
Because str.get() returns a pointer that is freed when str’s dtor is called, but is that dtor called before or after constructing the std::string that is being returned?
Ell
Ell
hmm. so is the the pointer pointing to the std::string "copy" returned, or the one about to be destructed?
looks like ub to me. but I know nothin
@Zoidberg'-- It's rather obvious.
Ell
Ell
02:53
it's UB
There's only one way you can get a return value constructed from local variables in any case whatsoever.
Ell
Ell
wait a second, if get returns a pointer, how can the return type be std::string? I don't know what get() does :L
@Zoidberg'-- What are you trying to accomplish here?
If you just want to read a string, and throw if it fails, there are lots easier ways.
user142019
@JerryCoffin GNU readline with a C++ API rather than a C API.
user142019
readline has support for history and completion and stuff.
02:54
@Zoidberg'-- "end of file reached"? Really?
@Zoidberg'-- Not if you're reading files.
user142019
readline returns NULL on EOF.
user142019
@R.MartinhoFernandes it always reads from stdin.
user142019
Ctrl+D?
@Zoidberg'-- Sigh.
user142019
02:55
Do you know what readline is?
@Zoidberg'-- Oh lord, I guess I should have realized. Better to just not do it at all. It has a few niceties, but even more shortcomings.
@Zoidberg'-- readline only makes sense with user input.
user142019
It is user for input.
user142019
And the user can input EOF.
No, they can't.
Ell
Ell
02:57
they can
There's no such thing as inputting EOF. Anyway... Do you know what C-d with readline does?
Both semi-right. They can't actually enter EOF, but they can do something that will be interpreted as signalling the end of input.
Ell
Ell
I compiled ruby with readline the other day, I ought to be aware really :L
Here's a hint: it use emacs-y shortcuts. C-d in emacs is not "end-of-file".
user142019
> If readline encounters an EOF while reading the line, and the line is empty at that point, then (char *)NULL is returned. Otherwise, the line is ended just as if a newline had been typed.
user142019
02:59
C-d in emacs is delete.
And so it is in readline.
Ell
Ell
aww dear my pokemon gatherer is spewing up everywhere again
user142019
Oh it reads it as EOF when the line is empty.
user142019
Then I also see ^D.
Ell
Ell
woo it got all but 19 pokemon :D
what happens if you try to insert duplicate data into a database field marked unique?
03:16
@Ell Depends on the database (and possibly configuration). It might just fail, or it might do a trigger.
Ell
Ell
right okay :)
03:44
It's been 5 min and I'm still cringing at the thought of this video
Did you get cancer too?
Almost
To my surprise I've seen much much worse.
To the point I couldn't even the finish video.
I still hope this is fake.
I started skipping ahead after he mentionned his collection
Couldn't finish the video
I still can't get past :50
03:57
'muricans!
Product placements make me cringe too..
I don't even know why, I think it's the massive sexual tension in here.
Ell
Ell
o.O
04:15
@Ell where are you from?
Ell
Ell
@Falconapollo the UK
@R.MartinhoFernandes hm now i can start looking at things maybe
std::string foo = 0 is valid code?
What constructor is it calling? std::nullptr_t's overload?
@Pubby usually that results in either immediate or later crash
But there is a usage for it, namely writing something like ...
@Pubby const char* overload.
Also it compiles, but it's not valid.
04:23
string foo( int x )
{
    return (0?0
        : x < 2?                "arg"
        : x < 7?                "bbb"
        :                           "ccc"
       );
}
not sure if that compiles, but if it does, then that's one usage :-)
oh setup successful!
wow!
[D:\dev\test]
> gnuc foo.cpp

[D:\dev\test]
> cl foo.cpp
foo.cpp
foo.cpp(4) : error C2332: 'class' : missing tag name
foo.cpp(4) : error C2993: '' : illegal type for non-type template parameter '<unnamed-tag>'
foo.cpp(4) : error C2143: syntax error : missing ',' before '...'
foo.cpp(5) : error C2065: 'Args' : undeclared identifier
foo.cpp(5) : error C2988: unrecognizable template declaration/definition
foo.cpp(5) : error C2059: syntax error : '...'
foo.cpp(8) : error C2143: syntax error : missing ';' before '{'
variadic template compiled with visual c++!
04:54
Anyone have an idea how to overload [] for an array bool myarray[8][8][8]?
Ell
Ell
not me
Also, hello again.
What do you want a call to look like?
You can't overload on primitive types like arrays
It's part of my class "Frame" which has an internal member bool myarray[8][8][8]. I want to be able to index into myarray using the [] operator, such that the call looks like Frame myclass; myclass[x][y][z] = true;
04:57
1 min ago, by Luc Danton
What do you want a call to look like?
@LucDanton Working on it.
6
A: dynamical two dimension array according to input

Jerry CoffinA vector<vector<int> > (note the space in the > >) can work well, but it's not necessarily the most efficient way to do things. Another that can work quite nicely is a wrapper around a single vector, that keeps track of the "shape" of the matrix being represented, and provides a...

Or is it simpler just to do a GetValue(x, y, z)?
GetValue is better
Yea, this looks like shit.
GetValue it is!
04:59
A not so unusual option is operator(). But what do you want a call to look like?

« first day (749 days earlier)      last day (4425 days later) »