« first day (611 days earlier)      last day (4351 days later) » 

12:00 AM
> B.A.T. ry advises you that you do not forget physical excersizes, such as streching out on a regular basis, and taking appropriate breaks when playing BatMUD™. B.A.T. ry forbids you of playing BatMUD™ for prolonged periods of time without nourishment and appropriate time to rest. By accepting this EULA, you hereby agree to comply with these health suggestions.
Lol.
 
@CatPlusPlus Oh, like @RMartinhoFernandes?
 
Hey guys, have you read any really good software (not c++ specific) books lately?
 
I don't read boring crap like that.
 
lol
My boss wants to by everyone a free software book of our choice, I'm trying to make it one I'll actually read
I'd like to get one on lock-free programming or cache agnostic algorithms, but I can't really justify that as a web developer :P
 
Pop! Goes the hamster is a good book.
Also books suck
 
12:14 AM
@RadekSlupik I read that as "boobs suck".
I was flabbergasted.
 
I didn't know Etienne == Tony.
Anyway. Imma sleep; I feel sick as fuck.
See you guys!
 
See yeu.
 
See you
 
My sleeping schedule no longer exists.
 
Good.
That means you can now make the build system work.
 
12:18 AM
Yes. I should do that. Definitely.
 
Our build system is the reason my sleeping schedule no longer exists
 
1:07 AM
The bad advice I listed before would be enough for an additional downvote, if SO allowed that. And also the int instead of double, for holding a fractional value would on its own be enough for an additional downvote, if that was allowed. In short, this is a Very Bad(TM) answer, with both bad advice, incorrect code and an incorrect claim, which should not have been selected as "the solution". — Cheers and hth. - Alf 1 min ago
He he:
0
Q: Counting Sort infinite loop

Fourthmeal70I am writing a counting sort function and when I run it, a window pops up saying "filename.exe has stopped working". After debugging it looks like it is getting stuck in the second for loop. What really confuses me, is if I set maxInt to any number greater than 130000 it works, but if its 130000 ...

 
1:56 AM
@RadekSlupik that reminds me of old PC game, "The Incredible Machine". very fun
The Incredible Machine (aka TIM) is a series of computer games that were originally designed and coded by Kevin Ryan and produced by Jeff Tunnell, the now-defunct Jeff Tunnell Productions, and published by Dynamix; the 1993 through 1995 versions had the same development team, but the later 2000–2001 titles had different designers. All versions were published by Sierra Entertainment. The entire series and intellectual property was acquired by Jeff Tunnell-founded PushButton Labs in October 2009. Gameplay The general goal of the games are to create a series of Rube Goldberg devices: arran...
 
 
2 hours later…
3:34 AM
I realized i haven't said this in a while. fuck you all, except @sehe. also I love you all.
2
 
3:48 AM
Poor sehe, not getting any.
 
4:02 AM
That's blatantly racist.
 
4:17 AM
> If my doctor told me I had only six minutes to live, I wouldn't brood. I'd type a little faster.
 
4:53 AM
anyone home? @RMartinhoFernandes @EtiennedeMartel @ScottW
 
I'm about to catch some sleep.
 
do you have access to a version of clang or GCC that supports constexpr
I just want to see if some code runs real quickj
I promise it won't take hours to compile
 
5:07 AM
fucking VS2k12 doesn't support constexpr
#include <iostream>

constexpr int array[10] = { 1, 0, 2, 3, 0, 2, 7, 1, 9, 2 };
constexpr int arraysize = 10;

template<int maxest, int index>
struct find_biggest_r {
  enum { value = find_biggest_r<(array[index] > maxest ? array[index]:maxest),index-1>::value };
};

template<int maxest>
struct find_biggest_r<maxest,0> {
 enum { value = (array[index] > maxest ? array[index] : maxest) };
};

template<int index>
struct find_biggest {
  enum { value = find_biggest_r<array[index],index-1>::value };
just want to know if that works
@CatPlusPlus ping
0
A: How to find the biggest number in an array

std''OrgnlDaveI don't have access to a compiler that supports this right now, but here's a concise example of how to do it in C++11: #include <iostream> constexpr int array[10] = { 1, 0, 2, 3, 0, 2, 7, 1, 9, 2 }; constexpr int arraysize = 10; template<int maxest, int index> struct find_biggest_r...

troll troll troll
I am an awful person
I edited it to fix it some...sigh...I need to finish setting up clang on my VM
 
5:51 AM
The backlog argument defines the maximum length to which the queue of pending connections for sockfd may grow.
which queue is it?
 
@0x90 Internally, the OS keeps a queue of requests for connection. Your application will check if that queue has anything in it and accept() the connection.
If you activate the socket for listening but never accept any connections, the OS would waste a ton of space keeping track of them. That argument is how many you say the OS should keep track of before it starts ignoring attempts to connect.
 
anyone here use Boost Asio libraries?
 
hi there
 
6:03 AM
Any thoughts of a container that holds vector of vectors and provides possibility to iterate over each vector consequently as if it were one vector?
I don't want to pass vector of vectors and i do not want to create concatenated vector since it will be memory overuse
 
first thought that comes to my mind are array data structures
 
what?
 
or sequence containers
 
i just wander if there is an implemenation already since I don't want to create my own, if no I'll stick to vector of vectors
wonder
 
@Riga: custom iterators aren't that tricky - just "splice" in the next begin when you've reached the previous end; RandomAccessIterator may be tricky and you'll have to use the bidirectional one such that advance, etc, are O(n)
 
6:14 AM
@moshbear: oh I now realize there are actually two problems:
(1) changing code -> pass vecrtor of vectors instead of vector, can be done by template
(2) iterating in the same manner as with one-dimentional vector -> I can create a singe iterator for it.
Problem decomposition rocks.
so the key is that I do not need to create a new container, just an iterator, thanks, @moshbear
 
@Riga: iterators are your friend :D
 
@moshbear, But will it be too awkward to use the new iterator just to avoid making existent loops double?
 
if you already use auto-ranged for loops or the standard (for it = container.begin; it != container.end; ++it), there's no real code change
 
room topic changed to Lounge<C++>: Build systems are worse than PHP. [c++] [c++11] [c++-faq] [c++-fuq]
 
@CatPlusPlus on a room topic binge change
 
7:01 AM
@CatPlusPlus I'm guessing that shows your frustration with the build system?
 
hiss
Also, two people still haven't made forks.
 
I'm probably late to the party, but: theregister.co.uk/2012/06/18/torvalds_curses_nvidia wow
 
7:28 AM
@RadekSlupik Please get rid of the XCode crap from your commits.
That xcuserdata thing.
 
7:39 AM
I do hope people are more or less retaining the project structure as agreed upon
otherwise I'm going to have a lot of difficulty merging
 
Xcode
 
7:50 AM
@CatPlusPlus keep it out of the lounge
in fact, all of you
 
Well, we currently have no better offline public communication.
 
there was a reason we went to a new room and then IRC
 
@thecoshman Take it outside.
 
I'm not discussing it, I'm leaving a message. :.
 
this not the place
 
7:54 AM
Yeah, everyone knows those who talk on Lounge<C++> talk strictly about C++ things, and not about C++ project things, silly rabbit
@ScottW I gotta star that, sry
 
stupid outlook! y u no connect to exchange!
let's try re-logging
@ScottW that it is
yeah
I guess I could use thunderbird
but I guess they have it set up such that you can't use your own mail client
 
I wonder what would happen if you set vacation-mode autoresponse on outlook and then sent yourself an e-mail
Would it be smart enough to avoid an infinite loop? Experience with Microsoft tells me no.
 
AFAIK exchange is configured to only send one out of office email to each person
so, you would get an OofO form your self, but that would not trigger sending another one
 
What if there were two people involved with vacation mode?
 
like wise, if two people set of OofO and email each other, they would only get one automatic response
 
8:06 AM
And one sends the other an e-mail?
so there is some sort of detection algorithm I assume?
receivedEmailMap[receiverEmail] = true
 
well, it just keeps a log of who you have sent OofO emails to and never send's a second one, of limits it to one per day
 
oh, I thought the OofO e-mails was for every e-mail
 
I assume that is what is does, as I only ever get one OofO message from people (lots of mailing lists
 
Probably good that it was done like that then
 
still, y u no connect to exchange?!
 
8:10 AM
I think I should create a program that lets me type "meme: y u no ..." and it would upload a meme and automatically link it in this chat
or meme: I has...
or meme: all the....
:D
what meme would that be?
ah split panel maybe?
would be interesting to do something like that
if you gave it a big enough vocabulary, you could conceivably create a meme from almost anything
One step closer to singularity, friend. One step closer to singularity.
 
@Neil reddit
ok, so there is an internal web site where the problem is posted
I imagine we where emailed about this ¬_¬
I says that it is a high importance issue, financial and good will implications, so HP are informed...
 
I hate copying Boost around. So many small files.
TRWTF is Exchange. People still use that?
 
Of course. It's overengineered and icky, but it works, and it solves a lot of problems
 
@CatPlusPlus Tell my boss what exchange really is to us programmers. Good day.
 
8:28 AM
@jalf like what to do with spare time?
@CatPlusPlus businesses love M$hit
 
@thecoshman Spare time? No, what to do with company time ;)
Fact is, if you need a good mail server, there are countless of really good ones. If you need a scalable mail-calendar-million-of-other-things server, there's Exchange and... uh... some stuff that tried to compete a decade ago...
It's not pretty, and I don't like it (and I have tried coding a bit against it), but I can see why companies tend to use it
 
@jalf Google :P though, AFAIK at least with Exchange, you get to keep your data. Not sure about prices either
 
My previous job was at a company that was almost Linux-only. They generally did not like Microsoft. And they still ran Exchange. Because there weren't any viable alternatives
 
I tried to buy a bowtie yesterday
 
looks like another project for the lounge :P
 
8:34 AM
whole fucking city was sold out
 
Wrong City
 
@sehe Actually, in Berlin (where I come from) I wouldn’t know a single store that even sells bow ties
here in Cambridge, every greengrocer does
but well, not just before Mayball week :D
 
Cambridge is a strange place indeed, bow-ties in a greengrocers
what ever next
vacuums in the butchers?
 
@thecoshman Disclaimer: the previous message might have taken certain artistic liberties ;)
 
8:39 AM
Hello, I'd like to rewrite my entire C++ codebase in PHP to improve performances. Do you guys have any book that would help me doing that ?
 
@KonradRudolph my point still stands, Cambridge is a strange place
 
@thecoshman Oh yes
 
@ereOn dude, that's just not even funny
@KonradRudolph Oxford is nice for a day trip
though still strange
 
@thecoshman: I never claimed it was.
 
@ereOn huh?
 
8:46 AM
Is it just me or is Programmers.SE, apart from occasional genius sparks, totally uninteresting?
maybe related: most questions on there get closed immediately
 
@KonradRudolph I haven't been there in months, guess that says it all
it's not that interesting
so I'm stuck with C++/CLI and I need to deal with native stuff in a managed class, anybody any ideas on the best way to do this? Without dealing with raw pointers
 
@TonyTheLion that's kind of vague
 
@KonradRudolph yeah, I got bored of that long ago
@TonyTheLion I assume you mean winapi native stuff
 
@TonyTheLion WinAPI actually requires very little dynamic storage, you can just use objects with automatic storage and pass pointers of them to the WinAPI functions
 
@KonradRudolph It is.
 
8:55 AM
@jalf let me be more specific, I'm building an app using C++/CLI (managed C++, that sucky MS invention from a few years ago) and I have some native types (unmanaged) which I want to use in my application, without changing them to managed types. How could I best do this without using just raw pointers to these types in my managed classes?
 
don't create them dynamically?
 
@KonradRudolph I don't need the WinAPI
@thecoshman this managed C++ doesn't allow you to mix types, ie you cannot use unmanaged types in a managed class
 
I'm debating if I want to use my Avatar at work to... I loves it so much... but work is not really the place for it....
 
@TonyTheLion Even better, just use the objects like you would in normal C++. No pointers needed.
 
@TonyTheLion (╯°□°)╯︵ ┻━┻
 
8:57 AM
> you cannot use unmanaged types in a managed class
what are you smoking?
 
I don't think you're understanding what I"m saying
I'm using C++.NET edition, do you know what I mean by that?
 
ref class Foo { int x; };
works
Bad example, int can be mapped to System.Int32. Still, it also works with std::string.
 
ref class Foo { my_native_struct foo; } <--- compiler says "Fuck you, don't do it"
 
huh?
it’s been a long time since I touched C++/CLI but I distinctly remember that working. In fact, that’s the whole point of C++/CLI’s existence!
 
"mixed types are not supported"
 
8:59 AM
have you verified that the real error isn’t elsewhere and just pops up in this context?
 
Can C++ code something that uses the internet ?
 
does stackoverflow have a platform for project based works.(like freelancer). I see careers.stackoverflow.com but its for full time fixed jobs
 
It can accidentally words too.
 
@Jonas yes...
 
hmmm I did private: std::string foo; and it says: error C4368: cannot define 'foo' as a member of managed 'MyCLRProject::Form1': mixed types are not supported
@Jonas BSD Sockets :P
 
9:02 AM
is there a tool for Windows which can generate an exception in specific thread of another process?
 
@TonyTheLion Yes, I need to eat my own words, it doesn’t work due to memory allocation issues
 
really
can it read data from a database and send it to the browser ?
 
No, only butterflies can do that.
 
@Jonas you mean handle http requests?
 
> … native classes are always allocated on native heap or on the execution stack, and likewise ref classes are always allocated on the garbage collected heap. When the native class C tried to embed a ref class ManagedPoint, the compiler doesn't have any place to put the object since parts of it have to be on both the native heap and the garbage collected heap. – Bran Bray
 
9:03 AM
will servers let you do that
?
 
@KonradRudolph meh
 
@Jonas Servers don’t know and don’t care who is talking to them
 
that’s the whole point of having a protocol
 
Servers have too short attention span to make friends.
 
9:05 AM
@KonradRudolph so I'm guessing there's no "easy" way to handle that, besides writing everything managed
 
@Jonas you can use C++ to write a program that will listen to incoming http requests on a given port. It can then connect to a database, through the use of a library, get some data, generate a html page and return it
 
k that sounds fine
 
@TonyTheLion Well, the easy way, as you’ve noticed, is using plain pointers. Which sucks – not even smart pointers are supported
 
emm is it as fast as sql ?
 
@Jonas what do you mean?
 
9:08 AM
@TonyTheLion But look at the article I linked, it defines a helper class Embedded which takes care of the resource management issue – it’s essentially a (very primitive) managed smart pointer
 
does it take more time to look for data and generate html
 
@KonradRudolph I found another article which has the same
 
@Jonas that's like asking "is driving to the airport, getting a flight to France, having wild sex with hot European chicks, and coming home as fast as lorry?"
@Jonas it takes time to query a data base and generate a html page based on the result
you will still be using sql (most likely) to query your data base from C++
 
the database does some optimization in the background, but leave that to the database
 
bfast time
 
9:11 AM
C++fast.
 
damn. chat isn't loading on Opera for some reason. Well, a day with chrome then
> Linus Torvalds has exhorted GPU-maker NVDIA to indulge in sexual intercourse with itself, and angrily raised his middle finger to the company to re-enforce the suggestion.
Loved that. Kinda sad for him to loose his cool, but the quote is well worth it
 
Was the journalist paraphrasing that? Please tell me no
 
Yup
 
there's got to be a new series of memes based on that photo of him doing that
 
9:18 AM
Damn censorship
 
Better, because timed link: youtube.com/…
 
Yeah, I actually copied it off the 2nd comment. Don't know why that doesn't work as a timed link in fact...
 
@CatPlusPlus I need a meme for that!!!! NOW!
 
Time links in comments are processed by YT's JS.
 
Just need to add some sort of quote to make it funnier like, "Fuck you, that's why"
I wonder how long it took NVDIA to actually learn about that after he did that
I'm guessing 5 minutes tops
 
9:26 AM
There was a guy working for nVidia in the audience.
 
So 0.12 seconds
 
… aand my accurate answer was downvoted
-1
A: Marlett Font: Can I load it and use it in WinAPI

Konrad RudolphThis is answered trivially by consulting Wikipedia: Marlett is a TrueType font that has been used in Microsoft Windows since Windows 95.

 
@KonradRudolph Lets check your score and see how you did.
*grabs red pen*
Nah, looks fine to me. *puts away red pen* I balanced you out.
 
@Neil Lucky you, red marks on the screen are hard to get rid of :p
 
9:42 AM
@KonradRudolph I wasn't the voter, but I'd guess they weren't happy with the lack of reference to the "what functions do I use" part of the question, although your comment pretty much covers that
 
@CatPlusPlus his reaction was, odd
 
@KonradRudolph Nah, just like the smell. *sniffs red pen* Oh yeah that's the stuff..
 
and I don't think Linus lost his cool, just expressed that he's fucked off with the way the company wokrs
it's not like he (╯°□°)╯︵ ┻━┻
 
@awoodland My understanding was that this part of the question was only for the case that Marlett had to be included manually …
… but good point, I’ll add this
 
What functions do I use
 
9:45 AM
@sehe added
 
Yeah, I meant to post a comment that I deleted immediately afterwards. I'm having trouble adjusting to the keyb shortcuts (or lack thereof) in Chrome, which is why I pasted the random thing that was still on my clipboard... Browser application FAIL
(I was saying "What functions do I use" was part of the question, then noticed that that had been added to the question, later - which made me delete the comment :))
 
Fuck you GrooveShark and your fucking audio wanker adverts!
 
@thecoshman I tweeted a similar message once, and got a very offended-sounding reply from GrooveShark
upshot: they try to filter out ads that have audio. They just suck at it.
 
Ads suck. Ads with audio are from satan. Always. No exceptions.
Even on TV intermissions
 
@KonradRudolph 21st century and we the extent of it is that we can't seem to be able to tell when advertisements use sound
 
9:54 AM
@KonradRudolph sounds like fun :P
 
Plus, probably the consequence of bad page designing, collegehumor.com somehow manages to include itself
Took me a while to understand that the denny's advertisement was coming from a tiny tiny box which contained an entire web page
Very annoying when you're trying to watch videos
 
owwww, my eyes. Some people should just not be allowed to make websites
 
I forgot – can std::vector be used with incomplete types or does it suck as much as the other STL containers?
 
iirc, it sucks
for no good reason
 
9:57 AM
@jalf linky
 
so I cannot write the obvious struct node { vector<node> children; };
 
@KonradRudolph Link? "ads OR sound OR audio OR grooveshark OR groove OR shark from:klmr" doesn't produce any result
 
@sehe Too long ago
 
@jalf oh lord!
 
9:58 AM
Thank god I had firebug installed. Can at least disable the background
 
at least the background doesn't sroll
you know what would be a sweet extension, some sort of panic button that can remove all CSS and html styling from a page
just return it basic raw html
 
Ah I like the topic
 

« first day (611 days earlier)      last day (4351 days later) »