« first day (1091 days earlier)      last day (3859 days later) » 

12:07 AM
Playing Wii games using the gamepad as a TV is the coolest thing ever
 
I suppose there's more to what you just said than the feeling of playing a handheld?
 
You still need the Wii remote so the gamepad is just a portable tv
It'd be cooler if I could use the gamepad as a wii remote though
 
Perhaps not as accessible though. And/or tiring to use.
 
12:23 AM
error| invalid use of 'auto'
||      return std::forward<Functor>(functor)(std::forward<Args>(args)...)
Fuck this shit.
decltype (declval<Functor>()((declval<Args>)()...)) = auto in list of instantiated template arguments, mmmh
 
 
2 hours later…
2:48 AM
I'm not really interested anymore, and I kinda feel bad that he put effort into it.
 
upvote and accept :P
 
A colleague told me today that -Weffc++ generates a warning on some piece of code I wrote and asked me how to fix it. It was policy (base) class which did not have a virtual destructor.
-Weffc++ is rarely useful.
 
3:25 AM
Hi
Anyone here been forced to quit a job before?
 
Isn't that the same as getting fired?
 
@Mysticial No
 
Oh right, you don't have to be forced out of your job by your employer.
 
The thing is; I'm a college student at Augsburg College, and also a employee at Global Rim (a small startup)
The college effectively demanded that I quit my outside job
or face possible expulsion
 
wut
 
3:33 AM
wut
that sounds retarded
 
huh
 
As the professor himself put it, I needed to "screw [my boss]" in order to succeed in school.
 
You're gonna want to take a look at the fine print for whatever you signed when you entered school.
The prof could just be bluffing you unless there's something that explicitly states that you can't have an outside job.
 
@Mysticial It's a private school; they can expel you for any reason.
 
oh
fuck them
 
3:35 AM
And also; since it's a small business and I've been working as an unpaid employee (stock options)
 
Why go to a private university that isn't an ivy league school?
 
@Rapptz Best option in my area
 
Mm.
 
And no; there's nothing that says that you can't have an outside job.
 
I absolutely don't see the reasoning behind this ultimatum really
 
3:37 AM
Is your prof jealous that you could make a lot of money if the startup succeeds? :)
 
@Mysticial Possibly
However, statistically I have a better chance of getting paid well if I have a college degree
 
Since profs these days are severely underpaid...
 
Most startups fail
So I tendered my resignation
and am wondering what to do about the company property
 
You should be able to keep it.
The stock that is.
 
Honestly I would have went to your teachers superiors for an explanation. If the teacher was bullshitting you they wouldve told you (I hope)
 
3:39 AM
@Borgleader He was certainly not bullshitting.
 
Are you undergrad or grad?
 
If theres nothing in the fine print about not having an outside job that sounds like bullshit to me
 
Undergrad obviously
 
If you're undergrad, then there shouldn't be a single prof with that much power over you.
 
@Mysticial He's a department head. He has QUITE a lot of power
 
3:41 AM
oh ic...
 
Theres still someone higher up the food chain... right?
 
He's also tenured
@Borgleader I suppose I could talk to the president of the college about it.
 
@IDWMaster Sounds like a good idea. Quote him too about the "screwing" your boss.
 
@Mysticial And post it publicly; but where would you recommend posting it?
 
IOW, escalate to (hopefully) someone who more reasonable.
 
3:43 AM
Also; what do I do with the intellectual property that I have on the company?
 
@IDWMaster That could backfire on you in a number of ways if it goes viral. But the prof is gonna take some hits as well.
 
How do I properly "turn it over"
@Mysticial Want everyone to know what's happening at Augsburg College
 
The company owns the IP.
 
@Mysticial So how do I turn it over to them?
Effectively I have company property now that I shouldn't legally have posession of anymore
What do I do with that?
 
IP is just information. If you know the information, they can't erase it from your head without killing you. (or hitting you in the head really hard) Anything physical you can return physically to the company.
 
IP is also the right to using that information. So you can't just take it and make money off of it without permission.
 
@Mysticial So. For a personal computer in which I have company projects how should I turn those projects over to the company and legally verify that I've done so in compliance with Minnesota laws.
 
@IDWMaster Talk to your company about that.
 
^ this
Your boss should be able to tell you that
 
If your school is being a dick and they want to see your computer (to prove that you left), tell them to fuck off unless it's written in the fine print.
 
3:47 AM
@Mysticial So they cannot force me to decrypt my hard drive without prior written consent?
 
@IDWMaster Correct. Unless you've already signed something that allows them to do that.
 
Unless they're the NSA they need a warrant I think
 
-8
Q: Can any expalin these lines of code ???

Buddha'sLost Childinclude "admin.h" void call_window() { writeLogo(" *QUIZ*\n\tWHO WANTS TO BE MILLIONIARE"); writeLevel(0); drawWindow(); } Please give me detail on what each line does .

^^ ahaha
 
@Mysticial VTCed, downvoted, laughed at
-1
Q: Downloading Windows HomePremium Operating System

DavidI have made an .exe program and have read that a Windows Operating System is needed to run it. I have recently bought a Samsung galaxy cell phone. If I downloaded a windows operating system on to the phone, would that allow me to run an .exe file or open the source code in notepad on that phone...

eh....
 
@Borgleader OP does mention C++. :) But that doesn't necessarily save the question.
 
3:51 AM
Where can I go to publicly defame the professor?
 
@Mysticial Cat++ would probably say that mentionning C++ is the last nail in @JerryCoffin or wtv the expression is
 
ratemyprofessor.com :D
 
i thought it was ratemyteacher.com
 
@IDWMaster If you can make the story interesting, Hacker News might be a good place. It's a long shot, but if it works, 50,000 people will read and and at least one will send the prof an angry email. :P
 
@Mysticial OK. I'll start there
Thanks!
 
3:54 AM
@IDWMaster Don't just jump into it though. Try to find others who have done the same and succeeded.
Learn how they did it.
And why people found their article interesting
Otherwise, it's probably just gonna get downvoted and ignored.
 
@Mysticial I'm fairly sure Ludia owns the license for Who wants to be a Millionaire games. So this looks illegal to me.
 
 
@EtiennedeMartel Not only Ludia.
 
@Rapptz Hmm.
 
I found a bunch from EA and Ubisoft.
but I did learn that your employer deals with.. those types of games.
 
4:09 AM
IIRC, the first Millionaire games developed by Ludia were published by Ubisoft.
Back when Ludia was not making mobile games.
 
probably
makes sense
EA has a site with a bunch of board games / tv games on it, it's pretty weird.
Especially since it looks like your typical "free flash games" site
 
> internal compiler error: tree check: expected tree_vec, have error_mark in get_innermost_template_args, at cp/pt.c:567
 
Have there really been no questions for 5h?
Oh nvm omg
I somehow ended up on the list.
 
Overnight hiking trip again this weekend ... the last one before next fall (generally don't like hiking when it is too warm).
 
4:26 AM
So I think I figured out a way to use Boost in my C++03 course next year.
The assignments are all submitted to an online marking thing that uses GCC 4.3 or something and doesn't have Boost.
So I guess I can just write it with Boost's header-only libraries and pretty much give the gcc -E output file to the marking thing.
wth, first no nameless parameters and now no empty structs? Get your stuff together, C!
 
Wikipedia all prizes!
 
4:44 AM
tuple, get<T>(tuple), strong typedef, automated serialization, ...
It's related to my rpc project at work. Objects are serialized to a recursive protobuf union type (via boost recursive variant).
It's cool stuff :D
 
Nice. It could also be good to be able to use constexpr values/ints.
 
Is there ay library that I can use for reading procfs ? especially for parsing different files in /proc and returning an well formed structure
 
Is /proc Linux specific? Or is it on other Unix as well?
I don't have it on my Mac.
I like the idea of /proc though.
 
@StackedCrooked well I've never seen a mac or solaris or any other unix variant other than linux :(
but wiki says it is generic to unix
Solaris
IRIX
Tru64 UNIX
BSD
Linux (which extends it to non-process-related data)
IBM AIX (which bases its implementation on Linux to improve compatibility)
QNX
Plan 9 from Bell Labs
 
5:03 AM
blueberry almond muffin ... umm ...
or maybe I was just hungry >_<
lol ... like always ...
lol sure if you come over ... going to try grilled, marinated meal on camp fire again tomorrow - this time, more prepared ...
 
Or more like an s-expression.
 
5:24 AM
reading about galaxy s3 vs iphone 4s
 
5:39 AM
I'm at work :P
 
5:55 AM
morning scrubcakes
 
6:21 AM
I just got up
 
I'm bored
 
It 5:21pm here, got up long time ago & not going to sleep for an equally long time
 
@MarkGarcia nice spot
 
mawning
 
user1804599
6:36 AM
Boo.
 
user1804599
> I'm I out to lunch?
 
user1804599
lol
 
@sehe Oh hey, that is cool.
 
Sad the question whether you are "out for lunch?" is off-topic for Stack Overflowsehe 42 secs ago
@Rapptz It's stacked's code but de-obfuscated
 
6:38 AM
Yeah I saw the original but since it looked... well.. weird. I didn't pay much attention to it.
 
Ok, here is this hard to decide question: should I bring my macbook air to the overnight hike this weekend?
 
@Rapptz It did
Buzzz.
Try again
 
6:44 AM
In the "Teach a man how to fish" department:
s/[;{}]/&\r/g
'<,'>!astyle -bjUx
'<,'>s/\ntemplate/\r&/g
%s/\n;/;/g
 
Oh I already have a de-obfuscator/code cleaner
doesn't work well with templates though..
that does though ;P
 
@Telkitty猫咪咪 No, I got Photoshop CS6
@Rapptz Yeah, I hate how astyle, bcpp etc. don't handle templates
 
Mmhm.
 
@sehe indeed, not all conversations need to follow logic
 
@Rapptz In first instance I had a lot more cruft, but on the second example I decided that the TMP wasn't so havy (little or no nested template argument lists) so I simplified
@Telkitty猫咪咪 Hey. The logic may be too advanced for you; doesn't mean it isn't there
 
6:48 AM
you are right, I never know how to speak gibberish!
 
@Telkitty猫咪咪 ik ook niet
@ScottW en jij
 
垃圾熊
if (垃圾熊 > ios7) std::cout<<"yes only in C++ lounge!"<<std::endl;
 
ugh my leg hurts
 
7:02 AM
hey BB
 
that sounds almost like "babe"
ah that warm fluffy feeling inside
anyway, that might be shocking, but I'm at work
 
@BartekBanachewicz if you have big tits and live in the south of france, I might call you that
 
@TemplateRex you might want to add "female" to your list of predicates
 
@BartekBanachewicz well man boobs are obviously excluded
 
... obviously.
 
7:05 AM
female was an in-class initializer
 
hm I don't think this whole getting up early thing is going to work
I have to get out of here in... hm, like, 2 hours? dammit it's 9 already
crap.
 
I'm in a vendetta kinda mood today, to speak with Christopher Walken
 
@cdoubleplusgood See my answer (although this is likely homework, and my answer is going to be of little use unless the teacher is surprisingly open-minded about using post-1990 C++ in class :)) — sehe 3 secs ago
0
A: Sorting an array (c++)

seheDid you want to sort the matrix too, using the same ordering as the 'characteristic's? Let's say you had C++ style code to calculate the characteristics: std::vector<double> characteristic(n, 0.0); std::transform(begin(mas), end(mas), begin(characteristic), sum_); You could then sort them: s...

^ This might be overkill <grin/>
 
@sehe this all looks so ugly compared to Haskell :v
 
@sehe upvoted, but a auto const& in the for loop might be nice
 
7:11 AM
in the outputs, you mean?
 
Using c++11's <random> header is left as an exercise to the reader for now. Do read How do I scale down numbers from rand()? and rand() Considered Harmful by Stephan Lavavej, though. — sehe 10 secs ago
 
yay, flagged those pesky flags as "valid"
 
user1804599
Car y u expensive.
 
@not-rightfold buy a motorbike instead
 
7:13 AM
@TemplateRex done
 
@sehe you're a doll
 
@TemplateRex wrong
 
user1804599
If you use auto const& in a range-based for loop, will use use cbegin and cend?
 
@not-rightfold doesn't matter cuz there already is a begin() const
 
Why is there cbegin and cend?
 
7:16 AM
39
Q: What is the reason behind cbegin/cend?

AndreyI wonder why cbegin and cend were introduced in C++11? What are cases when calling these methods makes a difference from const overloads of begin and end?

 
@StackedCrooked People complained about it being too hard to const_iterators from a non-const object without cbegin and cend.
 
they exist only as member functions, then. interesting
 
@BartekBanachewicz add-on for C++14
 
Is there also crbegin and crend?
:D
 
@StackedCrooked yes
not sure if those will be non-members too
@StackedCrooked a typical container has 12 iterators now: begin/end x const/non-const, rbegin/rend x const/non-const and cbegin/cend + crbegin/crend
 
7:19 AM
morning noobs
 
user1804599
inb4 range, crange, rrange and crrange.
 
user1804599
Though the collections themselves being ranges would be neat.
 
@TemplateRex I thought that's c++1[xyz]?
@not-rightfold s/collection/container/
 
user1804599
That. :P
 
@TemplateRex Not all containers meet the requirement of ReversibleContainer
@sehe C++14.
 
7:23 AM
@Rapptz right, that excludes forward_list and unordered_map
@Rapptz anyway, correct phrase would be: up to 12 iterators, where appropriate
@sehe I dunno, for me the whole c++11/14 is one big blur, too many papers and too many features forward-ported by g++/clang
 
@TemplateRex unordered_set, unordered_multiset, unordered_multimap too :P
 
@sehe Nope, if they weren't in C++03 they are certainly in C++11.
 
@DeadMG and you couldn't just say the unordered associative containers? ;-)
 
nop
 
@TemplateRex ah, I missed your mention before
 
7:27 AM
:/ meh.
including <iostream> for std::cerr strikes again
 
#include <error> would be bad for marketing
 
@DeadMG If only. std::[cr]{begin|end} were conspicuously missing in action last time I checked
 
I wish I didn't have to include everything from <iostream> just to use it.
 
has he been around here?
 
7:28 AM
@BartekBanachewicz That must be the reason for <errno.h>
 
@sehe shouldn't it be [cr]? ? ah wait you specifically meant addons. Nevermind
 
@TemplateRex I think so, yes
 
21
A: How to overload std::swap()

Howard HinnantAttention Mozza314 Here is a simulation of the effects of a generic std::algorithm calling std::swap, and having the user provide their swap in namespace std. As this is an experiment, this simulation uses namespace exp instead of namespace std. // simulate <algorithm> #include <cstdio> name...

he downvoted this one
 
@TemplateRex how do you know :)
 
7:29 AM
@BartekBanachewicz but Bjarne is always so fond of saying that "C++ has no marketing department", so how could it hurt? ;-)
 
@curiousguy: Your claim is that C++98 was silent on the issue of "two-phase lookup" for templates?! — Howard Hinnant Jul 3 at 3:12
^ haha
 
@sehe comment on Jul 3 which is the same date of Howard's only downvote in recent memory
@sehe well, MSVC++ is :-)
 
@TemplateRex you're even worse than some of us here
 
@sehe how so
 
in overdosing C++
 
7:32 AM
@BartekBanachewicz nope.
 
drugs. the answer is drugs. — refp 9 mins ago
 
I was thinking, what is a good way to learn from the experts, apart from their very good answers, so I started looking for their (perceived) mistakes
 
@TemplateRex in sherlock-holmesing in the timelines.
@TemplateRex never be thinking. it leads to /effort/ :)
 
except people like Howard very rarely make those, at least not here
 
@nyarlathotep Multiplatform part was for M$, not for Boost — Martin Perry 2 mins ago
lol
 
7:33 AM
@Mysticial oh god, please don't summon him. I'm so happy he DID'NT YET BARGE IN TO SAY HELLO
 
I love how people say "No boost because big" and then happily turn to Qt
10
 
looks like an experienced user
 
mark that NSFW next time
 
looks can be deceiving
@BartekBanachewicz that was not NSFW
 
7:38 AM
@TonyTheLion whooosh
 
@sehe I like that kinda stuff, big fan of detective novels
 
image not found
 
@TonyTheLion huh? I see it one-boxed
 
@sehe HELLO
 
I don't
 
7:42 AM
@sehe H O W A R E Y O U ! ?
good? me too, thank you.
@Mysticial thank you for summoning me, I've been waiting for this moment for far too long
@TemplateRex depends on who you're asking, but just for fun; what is your take on "experienced user"?
 
@nyarlathotep bcp --boost=custom/boost 'date_time' dt/ leads to 15Mb (only 860k compressed), also with #define BOOST_DATE_TIME_NO_LIB there's only headers, no libs. (see also) — sehe 2 mins ago
^ can we have reopen votes?
 
@refp it was in reference to your funny "drugs" comment, your profile pic could be interpreted as if it were taken just after a nice recreational session, you know, the somewhat surprised look etc.
 
@TemplateRex I'm not saying I was high at the time, but I was indeed high at the time.
 
@TonyTheLion no shit :)
 
@refp see, I knew you were a dope, glad not to be too far out of touch with the scene
 
7:47 AM
dose puns ()
 
@sehe H E L L O
@sehe @Mysticial summoned me, isn't it awesome?
could it be that @sehe has got me on ignore.. that is the question
 
@sehe technically, it is off-topic
 
@TemplateRex you read me like an open book
 
> Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow
 
41 mins ago, by TemplateRex
I'm in a vendetta kinda mood today, to speak with Christopher Walken
 
7:49 AM
reopen it, and people start posting their hacked-up homegrown buggy resources
and insulting each other over Boost vs Qt vs Poco vs whatnot
 
@MartinPerry You know why that is? DateTime handling isn't simple. It's for the same reason you won't find a "simple" Unicode library, or a "simple" Numerics library. — sehe 1 min ago
^ Simple libraries go extinct because they create big messes and the devs can't afford the lawyer costs.
@TemplateRex Wokay
 
@sehe oh if only there was liability for bad software
 
> Everything is broken and nobody cares
 
@sehe although I did vote to reopen, just to let you show off your awesomeness
 
> All software is broken
@TemplateRex Ah well, I'm not overly inclined since the OP already sabred down my argument in-favour of boost (he thought I was using the bcp case against boost, I suppose)
 
7:53 AM
OMG 15 MEGABYTES MY HARD DRIVE CANT TAKE THAT
 
just to get a little more balance from all those highlevel libs, here's some obscure bittwiddling that I wrote yesterday
1
A: Power set generated by bits

TemplateRexHere's a version that goes down to the metal with bit-twiddling. It uses a modified version of the famous Hackers' Delight snoob() function that generates the next greater subset with the Same Number Of One Bits. See the Chess Programming Wiki (a source of many such bit-twiddling routines). #inc...

 
TBH, bit operations are one thing I like in C++
 
@BartekBanachewicz oh yes, they can be pretty awesome
 
@BartekBanachewicz It's more than that: "Boost may be good library, but I personally dont like it for its size and complexity"
 
@sehe downvoted the Q
the Robot replied once to a similar Q like that with: "you want magic, not solutions"
 
7:59 AM
Good line
 
he will probably end up with "writing his own", terrible and buggy solution
 
NotMyProblem
 
@sehe but with his buggy DateTime class, he might have a problem with Today and Tomorrow
this will generate more questions and opportunities for you to show your awesomeness with Boost :-)
 
user1804599
Fucking SQL and projection coming before the FROM-clause, making autocompletion impossible.
 
user1804599
Fucking piece of fucking shit.
 
user1804599
8:04 AM
I want from table select column.
 
user1804599
LINQ does this correctly.
 
is table-driven logic considered a good practice?
 
@BartekBanachewicz why would it be bad?
 
@TemplateRex just a random thought
 
@BartekBanachewicz the canonical overkill example is a Boost.MPL state machine
 
8:07 AM
I wasn't necessarily asking about C++, but knowing the extreme case can certainly help avoiding it, thanks
 
@BartekBanachewicz Only if you automatically generate the table.
 
@sehe does Boost.Spirit do table-driven parsing internally?
 
@DeadMG with metaprogramming or reflection?
 
@BartekBanachewicz Irrelevant.
what matters is that a giant table of logic does not express anything to the human reader- it's unreadable.
 
user1804599
@BartekBanachewicz What does that mean?
 
user1804599
8:12 AM
VintageEx > Vim.
 
@not-rightfold logic :: [(String, (a -> b))]
 
Xeo
@BartekBanachewicz Data.Map?
Also, if you're talking about mapping instructions to their functionality, that is IMHO the correct way to handle them.
 
whoa, my funny (maybe not too on-topic) comment got deleted
...
 
Xeo
You could map instruction names back to opcodes, btw, at parse-time.
and just index an array
 
8:34 AM
@TemplateRex Qi doesn't. Lex does.
0
A: How to sleep until next sunday

seheHere's what I came up with: #include <boost/date_time.hpp> #include <boost/date_time/time_clock.hpp> #include <iostream> #include <thread> #include <chrono> int main() { using namespace boost::gregorian; using boost::posix_time::ptime; using clock = boost::posix_time::microsec_cloc...

 
Xeo
Whee, my Mascarade order arrived in time.
 
@TemplateRex I have no such thing as "awesomeness". I just have patience :/
That ^^ answer took me way too long. But I learn and I know I'll be using date_time with chrono within months from now, so it's useful
@Xeo how do you know it's not just mascarading as your order?
 
Xeo
heh
 
me::patience(time t){return false;}
 
@Xeo Watch for glitches in the matrix
 
8:37 AM
hmm
 
@Xeo oh, the game @R.MartinhoFernandes was talking about the other day? Neat
 
I went back to an old piece of code, and I was like, "I totally don't understand how that works".
but for the first time ever, I actually then said "Oh, that's actually kinda clever".
 
Xeo
@jalf Yep, I remembered to order it on Wednesday. Amazon told me it'll arrive Tuesday, but I'm happy it arrived in time for our D&D session this weekend
 
@DeadMG Luckily, that's just what you "went". It's still just code. And it either works or doesn't. Needs more docs, though
 
@Xeo sweet
 
8:40 AM
@sehe True that I probably ought to consider adding additional comments.
 
I've got some board gaming lined up for tomorrow as well
 
so far, I apparently have 600 lines of comment for 13,000 lines of code.
 
Xeo
@tweet_xeo It needs the deduced type of the template parameter - which in this case is unnamed.
I don't get his problem.
 
woah, an ad popped up on the screen "did you know there are more chickens than people on earth?"
I did not know
each of us can have more than 1 whole chicken!
I am amazed
imagine if there were more people than chickens ...
 
8:44 AM
Yeah, chickens are one of the most populous domesticated animals.
 
must me ... there is no known religion that forbids the eating of chickens
 
Ah found a number.
 
is that numerically or by biomass?
 
In 2009 there were 50 billion chickens.
2
 
fascinating
 
8:47 AM
@DeadMG Well, population kinda implies numbers doesn't it?
 
I guess so, but I'd also argue that it's irrelevant.
after all, what's the population of the yeast we use to brew beer?
I bet it's more than 50 billion cells.
 
Uh..
 
> About 20% of these techniques can't be used in Ada. Refuse to use Ada.
 
bloody flag popups
 

« first day (1091 days earlier)      last day (3859 days later) »