« first day (997 days earlier)      last day (3952 days later) » 

Xeo
12:00 PM
Why require size_type? :)
 
@Xeo I’m not using it like this, I’m using it like this:
template <typename C, typename = typename std::enable_if<traits::has_size<C>::value>>
range_proxy<typename C::size_type> indices(C const& cont) {
    return {0, cont.size()};
}
 
stand back he's doing templates
 
user784668
@KonradRudolph decltype
 
I've heard templates are hard.
 
ah sigh
 
Xeo
12:01 PM
@BartekBanachewicz Much better than ThePhD doing code
@KonradRudolph mh
 
@Xeo undoubtfully
time for me to write some code for a change
 
user784668
@BartekBanachewicz indubitably
 
Xeo
@KonradRudolph Is that a step towards for(auto&& e : zip(v, indices(v))){ ... }?
 
do be do be doo
 
@Xeo It is in fact, but only accidentally so :p
 
Xeo
12:03 PM
@KonradRudolph Anyways, yeah: template<class C> auto indices(C const& c) -> range_proxy<decltype(c.size())>{ return {0, c.size()}; } :D
 
… although having enumerate (equivalent to your code) would make a lot of sense
 
Xeo
Boost.Range has indexed, but the index is inside the iterator, instead of zipped to the actual range :<
 
igitt for code duplication. But okay. But should I assert at least that the return type is integral?
 
#include <map>
#include <ostream>
#include <string>
#include <exception>
#include <stdexcept>
#include <boost/range.hpp>
#include <vector>
#include <memory>
 
user784668
@KonradRudolph no
 
12:03 PM
what the fuck I was smoking when designing this.
 
why not?
 
user784668
@KonradRudolph because if some idiot uses a double they get what they deserve
 
I want a cigarette
 
user784668
So keep it simple.
 
Xeo
@KonradRudolph I agree, but it's not too bad here
With C++1y: template<class C> auto indices(C const& c){ return make_range_proxy(0, c.size()); }, probably
 
user784668
12:06 PM
Now do it with C++03!
 
Xeo
(I hope you have a make_range_proxy? :P)
 
In some future version we have deprecated old-style function declarations, made the new ones syntactically unambiguous and can finally drop auto here :)
@Xeo No, why? range_proxy is an internal type
 
Xeo
@KonradRudolph And what if you want decltype(auto) semantics? Or auto&&? :P
 
Xeo
12:07 PM
@R.MartinhoFernandes Yeah yeah, you don't like decltype for this, we know.
 
@ScottW It's called pastafarianism.
 
I need a screen calibrator
my 2nd one is getting out of tune :/
 
@Xeo I mean, have functions like this: auto id(x) x or auto foo(&&x) do_something_with(x).
 
Xeo
Ah, for the parameters
 
12:10 PM
I've been experimenting with this silly idea.
 
Xeo
I hope they get around to allow Concepts directly as parameter types, in place of template parameters
auto fun(Integer i){ ... }
 
If you have a lambda with multiple statements but you want the return type automatically deduced.
 
Xeo
Then use C++14 :P
 
Then you could eliminate statements using nested lambas.
Similar to currying.
 
My code is buggy.
10
 
Xeo
12:12 PM
You are buggy.
 
I have to go back to work. Damn.
@ScottW Go sleep. Problem solved.
 
user784668
@TonyTheLion fuck work
 
Tony is a prostitute?
 
user784668
@TonyTheLion you a porn actor?
 
12:14 PM
lol
@R.MartinhoFernandes wait, those rumors you've heard aren't true
 
damn these colorimeters ain't cheap
 
0
Q: Bug or not? Visual Studio 2013 preview std::vector initializer list with std::string

DropFinally they did it. MSVC12 compiler now allows uniform initialization. But I found, that it works differently than GNU GCC 4.8.1 with -std=C++11 flag. Consider this code: #include <vector> #include <string> #include <iostream> struct Data { Data(const std::string& name, int x): m_...

 
or, IOW, they are cheap and I'm damn poor
 
Shit! They will not even leave my kindle in peace! 'Your Kindle software is updating. This can take a few minutes. Do not turn off...blah...blah'. Fucking updates leave me alone!
 
12:16 PM
lol
 
I always update
poor developers put their souls into new versions
well except when it's damn iOS 7 being slow as fuck
 
@ScottW I like to think they're fixing them
 
user784668
@BartekBanachewicz of course it's slow as fuck, it's iOS.
 
@Fanael still faster than android
so yeah.
 
12:17 PM
@ScottW Does that work as a pick-up line?
 
user784668
@R.MartinhoFernandes TIAS
 
well I guess iPad4 with new CPU can cope with the Beta better
I just hope that the release will be a tad smoother
 
At one place in my code I have set<T>::iterator which I deref and const_cast to change a field which does not affect ordering. Is this allowed?
 
BASTARDS! 'YOUR PASSCODE IS INCORRECT' I WANT TO READ THE SODDIN' BOOKS I PAID FOR!!
 
You bough erotica?
 
12:19 PM
> What Apple calls "beta" is what most other developers would call "alpha" -- software never intended for use by the general public, released only to small numbers of (hopefully) knowledgable people for testing purposes.
 
he said books, not boobs.
 
user784668
@StackedCrooked AFAIK the implementation is free to create const nodes, making it UB. It's also free to not bother, making it work.
 
Oh wait, "sodding" != "fucking"
 
> iOS betas themselves, especially the first few releases, are often about as stable as a drunken unicyclist.
 
12:19 PM
BOTH SODDING AND FUCKING BASTARDS.
 
user784668
@MartinJames why do you fuck bastards?
 
AARRHGGHHH!!!! I want to kill something, or someone...
..OK, after couple reboots, it's let me in again.
 
> Forget teaching them French or Spanish, what our kids really need is C++
Poor kids.
 
hey. everyone needs C++ in their lives. I mean look how well adjusted and proper everyone in this room is
 
@Aboutblank fuck what?
 
12:26 PM
Looks like I can get away without child torture. The girl with the less-than-flattering movie of me has not uploaded it to YouTube. I can put away the railway spikes, hammers and C++ primers.
 
@ScottW Thanks :)
 
JBL
@Aboutblank Hey ! How do you know about my lifestyle, you creepy stalker ?
 
@StackedCrooked Happy Birthday :)
 
@ScottW I was playing with a puppy - bending down and shaking my ass. The video, taken from behind me, does not show the small puppy :(
 
JBL
Oh Happy Birthday @StackedCrooked apparently !
 
12:28 PM
Oooh cake
 
CAKE!
 
@MartinJames You played with @DeadMG?
 
@MartinJames hahaha
 
@ScottW I want to play with you :P
 
@TonyTheLion Heh - no, not even Daisy.
 
12:29 PM
@MartinJames hahah
 
@ScottW Thanks for showing me a picture of a cake lol.
 
lol
I was reading the Patriot Act article on wikipedia
Damn.
There isn't much they aren't allowed to do when it comes down to it
yea
no, didn't read that bit?
Probably haven't got that far yet
its a long article
Electronic Communications Privacy Act of 1986 (ECPA, codified at ) was enacted by the United States Congress to extend government restrictions on wire taps from telephone calls to include transmissions of electronic data by computer. Specifically, ECPA was an amendment to Title III of the Omnibus Crime Control and Safe Streets Act of 1968 (the Wiretap Statute), which was primarily designed to prevent unauthorized government access to private electronic communications. The ECPA also added new provisions prohibiting access to stored electronic communications, i.e., the Stored Communicatio...
 
JBL
@ScottW Well, they surely knew what kind of things were in it, and were completely fine then ... ?
 
basically says, you can look at everything you want
 
JBL
Or were they... ?
 
12:33 PM
the only reason it got signed was because it was the patriot act not the we steal all your rights act
 
yea I thought that was ingenious how they named it Patriot Act, and its a fucking acronym
but just the word patriot was enough I suppose
 
> binds a buffer indicated by buffer to the vertex buffer bind point indicated by bindingindex, and sets the stride between elements and offset (in basic machine units) of the first element in the buffer
 
> For instance, under the ECPA it is relatively easy for a governmental agency to demand service providers hand over personal consumer data that has been stored on their servers.
 
what. the. fuck
ah I see now
apparently glVertexAttribPointer is more or less glVertexAttribFormat followed by glBindVertexBuffer
I had no idea this can be separated
 
JBL
That'd be a combination of the press + multiple Snowdens.
"I'm just gonna sit there and watch".
 
12:49 PM
ahahaha
@BartekBanachewicz "definitely", please!gx_ 10 mins ago
 
So I just had my headphones on for 30 minutes but no music was playing... I didn't even notice. I've heard this album so much it just plays in my head now.
 
witch album
 
"We, Invaders" by UneXpecT
 
uh. good idea. I could turn my music on again, too..
 
I need music
so I don't fall asleep here
 
1:00 PM
@TonyTheLion We could sing a song for you
 
hm
Premake looks interesting
I have to give it a deeper look
not that I'm unhappy with scons or something
 
@jalf you could, but its ok. I've got music
yea
no
 
@ScottW the guys who need their screens for other tasks :P
 
no one cares apparently either that I'm on Reddit a lot
I don't even.
a coworker was on his own laptop the other day.
 
I don't even either.
 
1:03 PM
not one word was said
 
fucking shit
it is beyond hot here
 
yea
here too
 
third or fourth day in a row with not a cloud in the sky
should be a crime.
 
1:06 PM
robot seems to be chatting a lot at work too
 
i think killing anyone counts as "exceptionally serious criminality"
 
JBL
I have a hard time considering lifetime jail more "human" than death sentence.
 
'best hotel' to live in - only a couple of murders and a few more suicides happened there
 
JBL
But at least, lifetime jail permits that should it be an error, you can at least free them.
 
1:10 PM
@Telkitty猫咪咪 I hope they didn't drink the tap
 
@JBL And depending on the location you won't have to do anything and live a pretty good life
 
JBL
> Criminal activity that includes murder and suicide
Since when a suicide is a criminal activity ?
Oh well, you're sort of your own murderer after all...
@FlorisVelleman True that, though I don't know that many countries where this is the case.
 
@Aboutblank someone probably did ... no one sued the hotel so far, I guess you can't complain much when you are paying $60 a night
 
@FlorisVelleman Oh yeah, totally. Lifelong imprisonment is a pretty good life, no doubt.
 
1:13 PM
for a crappy definition of good
 
have you seen new Peek Definition in VS?
I am amazed how fast it works o.O
 
and it works like really really well
what can I say.
 
oh woah, software that works?
damn.
that must be a first
 
I'll keep learning vim, but I am definitely waiting for full VS2013 compiler
 
1:14 PM
wat
 
@JBL depending on where you live. it is no longer a crime in the States
 
no software can ever work.
and VS can't ever even half-work.
 
@JBL accoding to wiki: Suicide has historically been treated as a criminal matter in many parts of the world
 
So
 
@DeadMG surprise, huh?
 
JBL
1:14 PM
@Telkitty猫咪咪 I am amazed...
 
I was doing some web crawling... and only just now learnt about robots.txt... and that apparently I'm an asshole :S
 
JBL
> Baidu you have been a bad boy
Lol
 
this technically isn't valid, since for some godforsaken reason
sitemap paths must be ABSOLUTE and not relative.
 
@R.MartinhoFernandes Considering the average prisoner it probably is for most of them
 
1:19 PM
@Daniel are you done editing already? ;)
 
@ArneMertz Htf do you quote haha, the Markdown > isn't working :(
 
JBL
Blergh...
 
<U+47D452 U+0000 U+0000 U+47E0D9 U+0000 U+47E0D9 U+47E0D9 U+47E0D9 U+47E103> Hmmm. This doesn't look very valid.
 
> Baidu you have been a bad boy
lol
 
1:21 PM
I hate how the title of so much documentation sites start with "API" because now I have 20 tabs open and they all just read "API"
 
An evil spider could just ignore robots.txt.
 
And eventually get banned.
 
wait
if I use explicit operator
can't I pass the class as parameter without conversion?
oh wait.
that's implicit.
 
in that case I don't see many benefits of static_cast<GLuint>(id) over id.get()
 
1:28 PM
I only learned the existence of the robot.txt in the PHP room - my PHP script was complaining about it
 
Xeo
There is none
Explicit conversion ops are mainly good for bool.
 
Anyone here is a database expert?
I would like to know whether the I should open and close the database connection with the application or per use basis (per add/insert/select instruction)
 
@Telkitty猫咪咪 I only learned because I was scraping content for a hobby (link-depth of 2 recursively on some blogs using node.js) and I just happened across an article on robots.txt... woops :S, that would explain the errors I was getting when I wasn't faking a User-agent in the GET header :S
@Telkitty猫咪咪 What sort of throughput are you expecting? Is it unreasonable to initialize the connection each time?
 
morning @rightfold
 
user142019
It's afternoon, silly.
 
1:34 PM
he.
 
morning Scott
big plans for today?
 
JBL
@Telkitty猫咪咪 How about determining number of transactions / frequency and then choose ?
 
@Daniel Currently I am opening and closing the database for every block transaction
@JBL that will depend how the users are using the application?
 
if it is a real time application, then use a timer, if no activity after `x` seconds, close the connection, otherwise, keep it open? Rinse repeat.
Is there a reason you want to close it?
 
JBL
1:38 PM
@Telkitty猫咪咪 You could have info on the most common usage patterns. Though without it...
 
I think I will leave as it is since there is no way for me to find out how my future users will be using it, I will change it when I have to
 
@StackedCrooked happy birthday! May your birthday be filled with good food and nice cake :p
 
so when is C++ getting modules
 
You have reached your daily
limit of FREE Step-by-step
solutions (3 per day).
Wolfram sucks.
 
1:45 PM
ugh unity
 
this ^
Is there any free alternative to Wolfram Alpha?
@BartekBanachewicz ?
 
fills up my entire damn screen
post a link to the image next time
@ShuklaSannidhya I can't pay for it != it sucks
4
 
4 mins ago, by ShuklaSannidhya
Is there any free alternative to Wolfram Alpha?
 
wait, really?
that's news to me!
 
1:52 PM
that if you can't pay for something, it's not guaranteed to suck.
 
What?
@DeadMG too many negatives
 
It means talk to the bin.
 
:O
 
Terminator nostalgia
 
1:53 PM
@DeadMG he's not a help vampire btw
he's been here chatting with us too
so you're a bit too fast to judge
 
@Daniel Don't you worry child. Bin's got a plan for you.
 
not entirely unexpected from Puppy
 
JBL
That was some lightspeed thrashing.
 
@DeadMG and I thought you were the second coming of jesus on the GameDev SE :|. Dissappointed.
 
hahahhahaha
 
1:55 PM
lol
 
I am, I just also bin people at lightspeed.
anyway, don't worry about it, Tony stuck up for you so I probably won't do it again
 
JBL
So, the second coming of jesus is a puppy, interesting theory.
 
lounge is a text based game, lounge owners gain points for be able to bin garbage the fastest
 
@Daniel Also GameDev SE sucks horrifically.
 
into the trash it goes
 
1:57 PM
@DeadMG I stopped lurking there about 2years ago... when all originality died.
 
eh
well, IME it was more about the fact that the people there gave technical advice when it was clear they didn't know shit about anything, ever.
like "ER MAH GERD don't use smart pointers because THEY SO SLOW!!ONE111".
 
hey, I do that here
 
Xeo
 
I was thinking about using my first smart pointer. I'm scared
 
@Chemistpp The difference is that most people here aren't that dumb
 
1:58 PM
I heard they were slow
jk
 
whereas I found that on Gamedev everybody was that dumb.
 
hahaa
 
@DeadMG Dammit, why you no 12?
 
@R.MartinhoFernandes Wat?
 
THEY SO SLOW!!twelve!!
 
1:59 PM
OIC
 

« first day (997 days earlier)      last day (3952 days later) »