« first day (1054 days earlier)      last day (3895 days later) » 

3:00 AM
@Rapptz Yeah, I'm pretty sure I've overloaded operators with standard types in past things that were more tests than anything useful, but being of that nature, in the global namespace.
 
Oh. I actually overloaded operator<< for std::tuple<Args...> heh
 
lol they linked the changelog for once
Nothing interesting, probably won't update
 
@Rapptz Yeah. And there's some fuss about an online update. I hope it does.
And maybe that >> in templates have been fixed.
 
Doesn't say so
Also they still didn't fix auto-completion for auto types.
auto x = myclass(); x. /* no auto complete/intellisense-like stuff */
 
3:09 AM
sigh. Then we'll wait for the JetBrains one.
 
Is that IDE going to be free?
 
I don't think so.
 
I don't want it to be like VS where you pay thousands of dollars for a subpar compiler.
@MarkGarcia IntelliJ Idea is free so iunno
 
@Rapptz "That IDE" are you talking about Intellij IDEA?
theres a community edition
 
Oh.
 
3:11 AM
No we're talking about their C++ IDE they're making
 
Theyre making a C++ IDE? On top of adding C++ support to Resharper?
 
they announced the IDE before R#
 
oh damn, let me read that that sounds cool
 
Oh.. it's CMake based
that's disgusting
 
@Rapptz Not for my projects. :)
 
3:14 AM
@MarkGarcia CMake is horrible.
 
Though I hope they would support other project types, most especially VC++.
 
At least Qt has qmake which sucks a lot less
Back to writing concepts..
 
Oh the IDE is 100$.
but theres an open source licence for free.
It'd have to be a big improvement for me to pay 100$ for that instead of getting resharper
 
@Borgleader I think you're referring to the Objective C one. It's not sure whether the C++ IDE will be integrated or a separate one.
 
@Borgleader You can use a better compiler.
 
3:18 AM
this is off-topic but but I'm sensing that someone has pondered this question in this room
I did some searching and nothing really promising about Was hoping to set one program of taskbar icons (Just one Program like Notepad or Vmware machine) to never never combine while the rest like folders, winrar to combine. is it is there some possible modification to make in the registry?
 
42
Q: Any way to "ungroup" taskbar items in Windows 7?

ijprestI mostly like the improvements in Windows 7, but am pretty annoyed with the new Taskbar... particularly its habit of always keeping items grouped. Is there any way to ungroup the taskbar items in Windows 7? And just for the record, "Never combine" does not work. True, setting this option creat...

 
@Rapptz Couldn't I just use Qt with clang and save 100$ ?
 
@Borgleader Qt Creator is so far the best IDE for MinGW/GCC (don't know if you can use Clang, doubt it). I really only have like 3 gripes with it.
 
s/compiler/IDE
 
s all open windows display icons for one program never combine while simultaneously having all Windows Explorer folders and Internet browser windows combined
 
3:21 AM
> Qt Creator is so far the best compiler
wut?
 
lol
@FredMcgiff I don't know, but I'm sure you should try it.
 
@Borgleader Shh.
If they fix the auto, >> and hm.. what else is annoying about it
 
@Rapptz A better set of coloring schemes.
 
I already use custom so not really an issue
You know you can edit it right?
 
Yes.
 
3:24 AM
A bit annoying though..
Oh! That's right. They can't handle uniform initialization syntax properly.
 
I hate tweaking stuff like that. I'm not so good with color combinations and contrast stuff.
 
boolean ? class{} : class{1,2}; causes indentation to go nuts.
What do I call a concept that checks if a > b, a < b, a <= b, a >= b is valid?
 
@MarkGarcia just copy one you like.
 
I want to say PartiallyOrdered but iunno
 
@Borgleader I did, and tried imitating that Visual Assist X color scheme. It's so tedious to do though.
 
3:28 AM
I dont keep the VAX one, I use either standard VS dark or Sublime Text
 
you know be funny when they get a Google now operator for questions Google doesn't understand when you say okay Google what is how do you if it does understand it goes to a live operator which has the power to use modified advanced searching and come back to your Google now cards shall have the answer written out 500 characters less for exact links up to 5
 
I'm somewhat disturbed now
 
I can see why you tagged this C and C++ (although I wish you'd pick one of the two) but Java? Really? — Borgleader 11 secs ago
 
hmm
if I am in a browser, can I launch a pre-existing application on the user's machine?
 
Javascript?
 
3:35 AM
@Borgleader No C there :s
 
they should combine the 411 operators for trying to find a business or a location, the national poison database hotline operator for poison information, and all the other related hotlines even even the questions and data of all the public radio stations
 
@MohammadAliBaydoun WTF it's awesome!!!
 
@MarkGarcia yep.
 
@Rapptz math.h, time.h, plain arrays all over the place, that smells of c
 
3:36 AM
@Borgleader using namespace std, cout..?
 
I wonder if someone is compiling all the calls and questions , that come in over the years that even even the call screeners take
 
Yes, there are some of both. That's why both C and C++ tags sort of fit.
 
@Rapptz I hate counting things C++ when that's like the only C++ thing in there.
 
@DeadMG I think not. Most browser have a "for this site/domain only" security barrier.
 
hmm
but if you click a Magnet link for a torrent, the browser can launch uTorrent.
 
3:37 AM
they can scale all this unique phrases and wording of questions that Google auto complete did you mean suggestions might not incorporate
 
You mean URIs?
 
In all honesty it should have been or
 
oh, it's peer to peer specific
 
@Borgleader what should have?
 
In computing, a uniform resource identifier (URI) is a string of characters used to identify a name or a web resource. Such identification enables interaction with representations of the web resource over a network (typically the World Wide Web) using specific protocols. Schemes specifying a concrete syntax and associated protocols define each URI. Relationship to URL and URN URIs can be classified as locators (URLs), as names (URNs), or as both. A uniform resource name (URN) functions like a person's name, while a uniform resource locator (URL) resembles that person's street address...
 
3:38 AM
@DeadMG Depends on how the machine handles schemes. I'm pretty sure that magnet urls have their own scheme, like http://.
 
5 mins ago, by Borgleader
I can see why you tagged this C and C++ (although I wish you'd pick one of the two) but Java? Really? — Borgleader 11 secs ago
 
@MarkGarcia Yes.. it's called a URI.
 
@MarkGarcia his rep is perfect o.o
 
You can find multiple exaples
 
3:40 AM
he would be the highest-paid operator once Google launches Google now operators
 
I don't think it is, but is it required for # include to work the same way as #include?
 
@chris I know # if is the same as #if but not for include.
 
@Rapptz You don't know for include or it definitely isn't?
 
Starring a person huh? :P
 
I tried it and it didn't work
 
3:42 AM
@MarkGarcia We can settle our differences for the sake of beautiful numbers, right? ;___;
 
@Rapptz I guess that's a good indicator. I just see people doing it occasionally and wondered whether I should add that to my comment-on-sight list.
 
I find it odd that it doesn't work
 
@MohammadAliBaydoun Yeah. Java cannot intervene! :)
 
Oh wait, nvm. It does
 
Let me check the standard then.
 
3:47 AM
@CatPlusPlus it's some intel Q8something quad core, 4GB RAM, and uh..currently no hard drive.
 
I seriously hope C++ concepts aren't Retard_case like they are in the proposal.
 
why does nothing interesting happen on the Internet at 04:50.
 
@DeadMG 5:50 here, but I know what you mean
 
@DeadMG I have the opposite issue.
 
what, that everything happens at 04:50am?
 
3:52 AM
Yeah I tend to have a lot of cool things to do late at night.
 
I want dis =/
 
> White-space characters separating tokens are no longer significant. Each preprocessing token is converted into a token.
I think that's the one saying # include is allowed.
A token is like the whole line's worth.
 
by the way I think I found something trying out trying it out now it was related to the question asked week before having one program never combine and other program icons on the taskbar allowed to combine rammichael.com/7-taskbar-tweaker
 
I love it when people use ! after numbers in their sentences. I can purposefully misinterpret it as factorial(n) and make ~~CLEVER STATEMENTS~~
 
@MohammadAliBaydoun You know how often I've seen that done? At least 10!
 
4:06 AM
@JerryCoffin ;_;
I was born in the wrong decade :<
 
 
4:31 AM
 
4:42 AM
I'm bored.
 
@melak47 Boredom is a terrible enough thing that it led to what my dad claimed as Howard's law, which was: "Children would rather be picked on than ignored." As a parent, I have to admit he was pretty much dead-on.
 
@JerryCoffin I wouldn't equate being ignored to boredom.
I do agree with the law though
 
@Borgleader Not necessarily, no.
 
5:39 AM
So it's ok to pick on @melak47 then? :)
 
@StackedCrooked Always. Never! Yes, I'm sure that's what I meant. :-)
 
:O
 
it's a fancy ? :
null ?? value
 
Xeo
5:51 AM
@MohammadAliBaydoun It's Alternative on Nullable!
 
@MohammadAliBaydoun I sometimes need something like that.
 
Yeah, it looks fine, I'm only noting that it reminds me of some really bad questions posted here :P
 
Writing concepts is fun.
 
game concepts?
 
No, constraints on templates
 
5:54 AM
:)
 
0
Q: C++ Arrays & pointers

Javier Chuacan anyone help me with the following inequalities for arrays: #include <stdio.h> #define PRD(a) printf("%d", (a)) #define NL printf("\n"); int a[] = {0,1,2,3,4}; int main () { int i; int*p; for (i=0; i<=4; i++) PRD(a[i]); NL; for (p=&a[0]; p<=&a[4]; p++) PRD(*p); NL; for (p=&a[0]; i=0; p+i<...

lol
 
6:09 AM
@n.m. An ideal C++ book doesn't even mention raw arrays! C'mon, we're implementing a kernel in C++, let's use some std::vectors in a performance-critical tight loop! Yay! — H2CO3 3 mins ago
 
Do people use Objective-C for anything other than iOS development?
 
Since Objective-C existed long before iOS the answer is naturally yes.
 
6:22 AM
Of course, but I can't imagine people actually wanting to use the language :\
 
most people avoid it at all costs ;) but if you have to use objc compile as objective c++
 
I have only one Objective-C source file in my project
Its only purpose is to get the resource path in the package when I compile and run the program on Mac OS :p
 
@MohammadAliBaydoun It's been done, but recently, not enough to notice.
 
@JerryCoffin You're referring to a kernel in C++? Yeah, if memory serves, Bartek once mentioned something about such a kernel, but he did not disclose details :o
 
@MohammadAliBaydoun No, I'm referring to using Objective-C other than for iOS (or OS X) development.
 
6:33 AM
@JerryCoffin Oh, that :p
 
@R.MartinhoFernandes sadly, I think they deserve even more credit than just "being non-stupid" (I consider myself non-stupid, yet I fail to grasp meta-programming on the level that you, Xeo, Luc (...?) obviously do. Well I "get it", but I'm not expedient with it. I keep training, though.
 
I like TMP.
I feel like subnamespacing certain meta-programming stuff :s
 
Ell
6:48 AM
Fuck me its freezing cold :o
 
@Ell it's under ARB now so yeah
 
Xeo
@Rapptz It kinda made sense in C++03, when the only possible template-template-parameters were class-types, but with C++11 you also have using-aliases.
 
Also I didn't leave, just had a lot of stuff to do lately
 
Ell
Yay <3
Although I'm gonna be busy the whole of this year
I have two years of school work to do in one year
 
1
A: Check for existence of global operator<< in C++

Dieter Lücking#include <iostream> #include <sstream> #include <typeinfo> // HasFormattedOutput // ============================================================================ namespace HasFormattedOutput { namespace Detail { struct Failure{}; } template<typename OutputStream, typena...

It's that guy again
 
6:59 AM
lol Prolog is in the top-20
Yeah right
 
GoingNative streaming in 6 hours, I can't wait ;_;
 
Xeo
In 6? Shouldn't it be in 9?
 
You're right. I read PST, when it was in fact PDT :p
 
nubbins.
@Xeo I thought it was 10.
 
i read PTST
 
Xeo
7:07 AM
@DeadMG It starts 6pm MEST
so, 9
 
user1804599
@MohammadAliBaydoun OS X development. :V
 
@not-rightfold Of course
 
user1804599
7:30 AM
lol dat skyscraper
 
+1 for explanations (the linked blog is certainly a recommendation) — sehe 4 secs ago
 
@Xeo i.o.w. 18:00 for me? :)
 
user1804599
What happens if you do "$foo" and there's a " in $foo in Bash?
 
> Implementation of DisableIf is left as an exercise for the reader.
lol
 
I wonder if the guy in std-proposals could solve the basic exercise :P
 
7:41 AM
My friend tells me he's studying and 5 minutes later, he logs on to Steam :|
 
> I'd like to use the API on a site I'm building for my students. Can you give more details about Error codes and such in the Q&A?
Erm.. there are none?
 
you don't signal an error?
 
The script fails then stderr is returned. If ruby throws an exception then the stack trace is returned as output. I guess the latter isn't really great.
$ curl stacked-crooked.com/compile -d blah
JSON::ParserError: 757: unexpected token at 'blah'
/var/lib/gems/1.8/gems/json-1.8.0/lib/json/common.rb:155:in `parse'
webserver-sinatra.rb:74:in `join'
webserver-sinatra.rb:74:in `POST /compile'
....
But at least the error is communicated :D
 
When do you guys do subnamespaces?
I'm currently itching to do namespace a { namespace b { } } so I could do using namespace a::b; instead of using namespace a;
but that feels like the wrong reason to do it
 
I've used using std::chrono; in some parts of my code.
 
Xeo
7:55 AM
Feels weird going to work after almost a week.
 
user1804599
You know what would be an incredible feature in C++14 or C++17? namespace a::b { … }.
 
Xeo
@Rapptz Robot has that for his enum operators IIRC
And maybe some other stuff
 
I do that for operators and literals.
but this is something else so that's why I'm kinda iffy :s
 
@Rapptz He could. In about a day, and stumbling like a blind man. Like I would :/ And he'd be very proud and call "template victory" and propose some more simplifications, 'cause, what could be so complicated ??!!
@StackedCrooked That's a compile error then. That's the safest kind of code!
 
@sehe Dammit.
 
7:59 AM
@not-rightfold Mmm. Sounds like a proposal. I can't see anything wrong with it, but maybe someone else does. It of course moves from declaration to lookup and there could be subtle things (e.g. I'm not fully aware of the new inline namespaces feature)
 
user1804599
@sehe inb4 "NOT NEEDED TOO COMPLEX"
 
Xeo
@sehe There's a thread about it on the Asylum IIRC.
 
user1804599
@sehe It'd just be syntactic sugar for namespace a { namespace b { … } }, nothing else.
 
@Xeo On what? inline namespaces or a namespace x::y::z {} proposal?
 
If namespace a has a class b there might be confusion.
 
8:01 AM
@StackedCrooked Meh, same goes for namespace a when a class a already exists in the enclosing namespace
 
Xeo
@sehe latter
 
@Xeo not bad. do you remember the general consensus? Pro or contra?
 
It was pro contra.
 
@not-rightfold which would indeed be a lovely scenario. I hate namespace boost { namespace spirit { namespace traits { .... } } }
@StackedCrooked Troll. I see saw you changed the archive ids to something... sensible :/ Nice
 
And a single closing brace is also nice.
I also use the first two characters as a subdirectory now. So /a/ed80af7449064d83 is same as /a/ed/80af7449064d83
 
user1804599
8:05 AM
C++ needs more syntactic sugar.
 
user1804599
The syntax is not confusing enough.
 
is there such a thing as syntax diabetes? :p
 
user1804599
@melak47 CoffeeScript
 
user1804599
CoffeeScript has so much syntactic sugar to make JavaScript scoping less terrible. XD
 
8:33 AM
@not-rightfold Y U keep changing avatars :(
 
user1804599
8:56 AM
I like the tags.
 
still wondering what "I was a club of a join" is supposed to mean.
 
user1804599
Moronism.
 
user1804599
9:27 AM
FUCK.
 
user1804599
I wanted to sort a list of 6500 files, but instead sorted the contents of all those files, and now the server is swapping 2 GB of RAM.
 
user1804599
50 GB of XML. :|
 
Hmm, does libcurl support / is there a HTTP authentication challenge--response kind of protocol like there is for proxy authentication?
@not-rightfold You fail at shell scripting. :)
 
user1804599
:P
 
@not-rightfold Impressive.. I haven't screwed up like that for years. :)
 
9:37 AM
@not-rightfold I hope there's backups? :)
 
user1804599
Oh hey it's done sorting.
 
@FredOverflow It's just being copied into the backups now..
 
@not-rightfold lol, you suck so badly
 
user1804599
Time to turn off and on swap.
 
user1804599
Oh did I say 50 GB? It was 5 GB.
 
9:38 AM
I don't even have swap space on my Linux system :)
 
@FredOverflow Meh - youv'e got, like, 10^80 GB RAM :(
 
I have 8 GiB.
 
@FredOverflow Oh.. I can get away with my 12GB with no swappies, but only just if I have a couple VM running..
 
I have 0 VMs running.
homer@marge:~$ free
             total       used       free     shared    buffers     cached
Mem:       8177920    1596532    6581388          0     130788     688660
-/+ buffers/cache:     777084    7400836
Swap:            0          0          0
What are those buffers?
 
user1804599
9:54 AM
Beh.
 
user1804599
for f in $(ls dump/*.xml | xargs -L 1 basename | sort -n); do
    php update2.php "dump/$f"
done
 
user1804599
Shell script y u fugly.
 
user1804599
Because PHP.
 
ahhh, nothing quite like sending of an email filled with angry rage about how poorly defined an interface is :D
@not-rightfold ew, you php?
 
user1804599
Gah.
 
user1804599
10:01 AM
Inserting a product takes seven seconds on average.
 
user1804599
I guess they made this software so amazingly complicated so people pay for support.
 
@FredOverflow do they need be freed up?
@not-rightfold what crapudoct?
 
user1804599
Magento. :<
 
@thecoshman I don't understand your question.
 
@FredOverflow ... until they need to be released for something else to use, why release them?
 
10:05 AM
@thecoshman I never said I wanted to release. I just wanted to know what they are.
 
@not-rightfold Don’t do this, it breaks with whitespace in filenames
 
user1804599
@KonradRudolph There is no whitespace in any of the files so I couldn't care less.
 
user1804599
And this command is run only once.
 
well in that case
 
user1804599
Still, I'm curious. :P
 
user1804599
10:06 AM
Is it due to xargs?
 
No, it’s due to ls – its output is just delimited by whitespace (non-configurable) so you cannot distinguish between whitespace inside file names and separators between files
(Well I say non-configurable, you could configure IFS I think, but that’s a pain in the ass)
the canonical solution is to use find with the -print0 option which uses \0 as the separator
 
@FredOverflow vOv
 
user1804599
@KonradRudolph ah, I see.
 
user1804599
Is \0 disallowed in filenames on Linux? I know that it is in OS X.
 
My Firefox regularly freezes. Finally I found a workaround: kill $(pidof plugin-container)
 
10:19 AM
@not-rightfold No idea, but if somebody uses that then they had it coming
 
user1804599
Well, since the file-related APIs all accept C strings as filenames, I think it's kinda impossible without hacking the file system.
 
Xeo
@FredOverflow Flash?
 
probably
 
@Xeo ... saviour of the universe!
2
 
ahaaaa-aah!
 
10:30 AM
He'll save everyone of us..
 
@not-rightfold POSIX forbids it, I think Windows forbids it, but NTFS is capable of embedded NULLs should the OS layer want to allow it. Stuff like that.
@MartinJames Shit happens
 
0
A: how do I print an unsigned char as hex in c++ using ostream?

FredOverflowHm, it seems I re-invented the wheel yesterday... But hey, at least it's a generic wheel this time :) chars are printed with two hex digits, shorts with 4 hex digits and so on. template<typename T> struct hex_t { T x; hex_t(T x) : x(x) { } }; template<typename T> hex_t<T> hex(T...

 
Mmm. Implementing hexadecimal line numbering now?
 
no, implementing SHA1
 
The Solver Killer
Ah, no, that was SHA-2
 
10:33 AM
@sehe what? that sounds like the mad sort of feature that had to be actively added :S why?
 
@thecoshman It's a side effect of storing a length field with names being just a sequence of (16 bit) words.... Names are just data.
Presumably their on-disk format had a good reason to use a length field (not unusual for variable-length fields in data formats)
Or maybe they wanted to be future proof, when UTF128 comes along and might allow for embedded 0 bytes in their encoding. Or, maybe they anticipate filenames over 4k in length that need compression and they want to leverage standard compression algorithms.
I dunno. It's a free world :/
 
user1804599
@sehe oh nice.
 
user1804599
Yum.
 
user1804599
Popcorn.
 
Xeo
11:02 AM
Woot, only 5 more hours until GoingNative :D
 
I went native once. Didn't like it.
 
@Xeo Oh. My. God.
 
@FredOverflow OS-level buffering.
 
for what? disc access?
 
Any I/O.
 
Xeo
11:10 AM
@FredOverflow I still need to get me some popcorn.
 
@Xeo way ahead of you
 
@FredOverflow Mein Gott!
I wonder if Bjarne's keynote will be much different than last year's.
 
Xeo
@FredOverflow Were are you living again? We should meet up for a GoingNative evening!
 
@Xeo Hamburg
 
Xeo
That's unfortunate
A good ~400km :)
 
11:20 AM
Well, we have the Lounge to share the experience :)
 
11:35 AM
0
Q: Discourage use of tags in title

Konrad Rudolph(Especially new) users often use redundant tags in the title redundantly. In fact, by far the most common edit reason I use a the moment is “removed tag from title”. There’s a consensus that tags don’t belong in the title (see Using tags in question titles) – common sense also dictates this: in g...

> (And yes, I realise the irony of repeating two of my tags in the title – but the alternative title “Discourage use of in” simply didn’t have such a nice ring to it.)
 
@KonradRudolph at least you didn't put them there as [tags] and [title] :p
 
Xeo
@KonradRudolph Doesn't the removal already happen?
 
@Xeo No, evidently not.
 
Xeo
Like, if you have "c++" in the title and the tags, it removes it from the title?
I remember reading something like that
 
@Xeo Just have a look at the SO start page, it’s littered with redundant tags in titles
 
sbi
11:50 AM
@StackedCrooked Oh. So there's a keynote by Bjarne in a few hours? Damn, I'll have to go to a parent meeting at one of my kids' class. :(
@sehe Good luck! (Or am I too late already?)
 
Wow, Jeff Atwood seems to disagree with me, in an answer that is … to put it nicely, argumentatively underwhelming.
 
@KonradRudolph As usual.
 
Xeo
@sbi starts at 6
also, I just killed my PC again :/
 
Just a gentle reminder like avoid tags in title is enough.. if system finds tags in questions.. IMHO... — CRUSADER 2 mins ago
Because we can't be impolite right
 
@CatPlusPlus Yeah. He’s a great writer, at least a very competent programmer, and seemingly a great business person. But despite all the things he reads and writes he cannot argue to save his life
 
user1804599
11:56 AM
I don't really care.
 
@Xeo How did you do it?
 
sbi
@Xeo Elternabend starts at 6, too. :(
 
@sbi Tell them you have to attend Bjarne's class instead, they'll understand ;)
 
Xeo
@FredOverflow Started up the iOS converter :/
 
sbi
@FredOverflow I am sure especially the kid's mother will understand that.
 
11:57 AM
Telling people to not do something on SO is a waste of time, because READING COMPREHENSION IS DEAD
 
@sbi Last year, the live stream allowed you to go back in time. So you can also start several hours later with Bjarne's keynote.
 
sbi
@FredOverflow Yeah, but I also do need to sleep at some point. In the last 9 days, I had 9 appointments for this single cause, and I also have a bunch of kids, two ex-wives, a job, a household... I am utterly exhausted.
@Ell Thanks, that worked well. My short speech got a lot of applause.
 
Xeo
@sbi As if that could ever be as important as Bjarne's talk!
 

« first day (1054 days earlier)      last day (3895 days later) »