« first day (834 days earlier)      last day (4117 days later) » 

6:01 AM
Here are some uplifting news
 
@CCInc here's a test that verifies that the regex worked with your provided input
powershell regex IS C# regex, so its pretty much a C# test since its using same regex implementation
$s is the whole input as one big string
 
OK
THanks
NIgiht all
 
@CCInc Oh hey. Sorry. Didn't see the notification
 
Version without regex: ideone.com/CpebjA
 
@JerryCoffin that's an interesting interpretation. it's not parsing out the data
maybe he doesn't need to?
 
6:13 AM
@doug65536 I don't think he does -- at least as I read things, it's producing the output he wants.
 
the guys that made that codec were smart enough to give a nice " -- " token to go by
but maybe --dumb--lazy enough to not put in the option that just prints the codecs? :P
?
 
@doug65536 Yes, probably (to both).
 
6:38 AM
Uh, did Bitbucket change their font in the file view?
Seems like it changed to DejaVu Sans Mono
 
7:24 AM
(Also, I would bet my left ball that #2 is from La Banquise)
 
C++11 broke templated policy templates? The answers I keep finding say use this-> but they're static so I'm not sure how that makes any sense.
 
@R.MartinhoFernandes oh wow, thanks... I've seen that before, going to have to learn some new stuff
 
robot
did bitbucket change font? :(
it looks different
 
8:01 AM
Hey, friends (and @Rapptz)!
I'm trying the all-nighter again, since the last one completely failed in its purpose.
I'm on season three this time. Yes, I was just starting season one last time and, yes, that was only 48 hours ago.
 
I saw 660 episodes of an anime in one month if it makes you feel better.
 
@Rapptz You know what?
 
waits for punchline
 
waits for answer
 
No I don't know what.
 
8:05 AM
@Rapptz Okay.
0
Q: C++ program exiting without error

xtmtrxI work on a little C program to check my webservers if alive and other stuff, the program reads a test list with IP addresses or hostnames and checks a string in a webpage; anything is working ok if the answer is true, if not my program exits. What am I doing wrong? Here is my code: #include <...

FRIENDS! ATTACK!
 
Whahaha I retagged.
without editing the title.
man I must be tired
ahaha he switched back to C++
but there's no c++ there!
 
8:30 AM
This is how i allocate dynamic memory for a 2D array I am sorry to hear that. Be sure to take your pills... — Non-Stop Time Travel 43 secs ago
 
that is probably the first time I've laughed at a comment on SO in a while
 
8:45 AM
@FredOverflow, would you provide another answer to solve this problem with no temporary variable? — city 8 hours ago
He was asking for it...
0
A: why swap() can work well when I don't call it with two pointer?

FredOverflow Would you provide another answer to solve this problem with no temporary variable? I don't think it can be done. Where does the requirement "no temporary variable" come from, anyway? Do you think temporary variables make your code slower? Let us examine if this is the case here. Exhibit A: ...

@RyanJMcGowan Zombies are also dead. So I came to the Lounge to talk about zombies.
 
 
1 hour later…
9:57 AM
0
A: why swap() can work well when I don't call it with two pointer?

Stuart OlsenYour problem has nothing to do with using namespace std;. The problem is that you're passing an lvalue reference to an int (int&) to a function that's overloaded on int& and int*. If you removed the using directive, you would not be calling your own swap; in fact, your code wouldn't compi...

looks wrong to me
 
10:40 AM
Guys, re that US stats debacle (@sehe!)
Jeff Atwood on June 09, 2010

I’m pleased to announce that Stack Overflow Inc has added two more valued associates to our team:

Marc is a long time elected community moderator, C# MVP, and the #2 user on Stack Overflow, as sorted by reputation. Just under some guy I’ve never heard of.

Ben is the perpetrator of the gloriously wonderful Unicornify (see April 1 2010), HREF overflow, the not a real question game — as well as dozens of prescient meta suggestions and bugfixes.

You’ve probably noticed by now that neither Ben nor Marc live in the United States. The last time I checked, only 36% of Stack Overfl …

> You’ve probably noticed by now that neither Ben nor Marc live in the United States. The last time I checked, only 36% of Stack Overflow’s traffic was from the USA. Where exactly do you think that other 64% of our traffic comes from?
> As I alluded to in a recent blog post, the way we build the Stack Exchange network should be genuinely reflective of what it already is — websites with avid international users all over the globe. That’s why I’m so proud to have a truly international development team at last, built by dogfooding from the amazing worldwide community that has grown up around our websites.
 
10:55 AM
@Ell what does 'shotgun' mean in this context? Ok song btw
 
Ell
I don't really know what it means. I may have got the lyrics wrong
 
I think you got it right, just did not understand it
Maybe he wants the passenger seat but the why remains
 
11:34 AM
-1
Q: Can you give me a program code of Static memory management allocation with waiting time?

Grace inah Bonifaciofor my OS completion. I need your help. My problem is..... I need a program code either java or c++ code, for STATIC MEMORY MANAGEMNT ALLOCATION with waiting time on each process.

kill it with fire plix
 
Ell
11:51 AM
Man I wish I could 3d model
 
have you tried Blender?
 
Ell
Yeah, I just suck at it :P
 
I have been drawing CAD fulltime for a few years but for soe reason I can't do sh*t using Blender. Only tried it for half an hour though
@DeadMG I almost stepped on my dog last night, it was dark and he is brown and the floor is brown. Luckily I heard him make a noise in the last second
 
12:12 PM
6 messages moved to bin
1 message moved to bin
 
@devWaleed try C# or VB room
 
@devWaleed This is the C++ Lounge, not VB room. GTFO
 
thanks for telling
 
flag him out so he can't come back
 
@DeadMG no reason imo
But I'm a C#er and managed code makes me soft
 
12:14 PM
after the second binning, he should have gotten the hint.
 
yes, he's been in here before, and we've told him already to go away
@JohanLarsson lol
 
was the flag invalidated or validated? I can't see :(
 
ok my view is that it is not like he interrupted anything important
 
@JohanLarsson I have a similar problem. Bailey is chocolate and so is the carpet on the stairs. No matter how many times his tail gets squashed, he still insists on lying on the fourth step up :(
 
dogs....
 
12:15 PM
@MartinJames Daisy has a great habit of lying in doorways or across corridors.
@devWaleed Don't care.
 
hmm?
 
@MartinJames what breed? Mine is Irish setter, I also have a Pointer
 
get the hint and fuck off, seriously.
 
@devWaleed you should ask a question on Stack Overflow
 
Labradoodle - mostly lab but with a beard and slightly curly coat.
Oh - and probably a bent tail, soon.
 
12:18 PM
Sunday, shops are closed :(
 
@StackedCrooked The 1860s called; they want their Sunday trading laws back
 
Tesco is open till 4. Need milk.
 
@DeadMG lol this is the first time I see the wrath of the c++ room, heard about it but never seen it until now :)
 
1
Q: call to template function which takes template pointer to function

cf16my problem is I try to call my template function test which takes pointer to another template function. since you can't have templated pointer to function I did it by wrapping such typedef pointer in struct (see Template typedefs - What's your work around?). it's OK - I can call my template f...

upvotes? UPVOTES?!?!?!
@JohanLarsson Look to your right.
 
Weather still cold in UK. I can go to Tesco, get milk and, should I accidentally park up at club on way back, get ratted and so need to get a lift/taxi home, my milk will not go off in the parked car :)
 
12:23 PM
@Non-StopTimeTravel yeah I have seen that but it has been empty words until now
 
@JohanLarsson Oh, I dunno, I like it
 
don't understand
 
☼ 19 Hey, listen. Read the rules or we'll hate you.
☼ 4 RIP C# 2000-2013
☼ 3 You will be banned if you say something on-topic.
☼ 7 Creep!
☼ 2 Lawsuit for an off-by-one error
Yep, we're pretty damn awesome.
 
I concur ^
 
I concur ^
 
12:26 PM
You hate C# also? I have gotten my best C# answers here, why don't you hate me?
 
probably because you don't just come in and beg for answers
which is the surefire way to get booted out
 
user142019
C# is great.
 
Who hates C#?
 
and you're probably an active participant in this room
 
(Except for, y'know, everyone)
 
12:26 PM
lol
Java is worse
 
@JohanLarsson I can only assume that your programming supports sarcasm. That's usually a pretty good firewall.
 
user142019
I like C#.
 
C# is bearable imho
 
Oh god what have you done
 
12:27 PM
@TonyTheLion but I only post stupid crap :)
 
@JohanLarsson better than begging for answers. :)
you think we talk sensible in here?
 
Dammit.. edits propogate through stars.
I bet that can be abused....
 
the edit window is rather small
 
@JohanLarsson That's the key.
 
for much abuse
 
12:28 PM
@TonyTheLion It would have to be fast
 
user142019
lol
 
Okay I've been chatting to you for around five minutes ... time to get back to Community..... pop pop!
 
what?
this is the community!
 
12:29 PM
you haven't been paying attention to me over the last 48 hours have you
 
@Non-StopTimeTravel fast like the light racing in orbit?
;-)
 
user142019
lightness >_>
 
user142019
> Lightness (sometimes called value or tone) is a property of a color, or a dimension of a color space, that is defined in a way to reflect the subjective brightness perception of a color for humans along a lightness–darkness axis.
 
@Borgleader better believe it
 
12:33 PM
I thought 'lightness' was a data member of the Beer class.
 
12:45 PM
Nah, it's a free function that has many overloads.
 
user142019
user image
5
 
user142019
Brainfuck IDE.
 
lol :)
 
The tape reminds me of Turing machine.
 
Visual Brainfuck
i wish microsoft would release something with that name
 
Ell
12:48 PM
that's actually pretty cool
 
user142019
It also supports Ook!.
 
Ook Ook!?
 
user142019
Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook.
Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook?
Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook.
 
I see.
 
user142019
That program is almost valid Ruby syntax.
 
user142019
12:52 PM
If you add Ook? or Ook! to the end, it's valid. :P
 
user142019
There is a program on TV and they are in some desert, and there is a cheeta on the roof of the car and it shits on the car. xD
 
user142019
Oh hey a minerals thread on /b/.
 
minerals thread?
 
user142019
Yeah, a thread where people post pictures of minerals.
 
so... a google image search for "Minerals", copy and paste results?
 
user142019
1:07 PM
I think so.
 
how worthless
 
@Zoidberg Remotely connected maybe looks kinda cool imo
 
but then I suppose I shouldn't have expected anything non-worthless from /b/
 
user142019
It's /b/. Of course it's worthless.
 
user142019
@JohanLarsson "kinda cool" is the right words.
 
1:09 PM
don't understand, did I fail trying to write English again?
 
user142019
I said I agreed.
 
user142019
Okay. I want to make software.
 
ah ok :D (I only failed at reading then :)
 
user142019
 
user142019
Nice username.
 
1:14 PM
yes
in C#, 4 mins ago, by Tom W
guys, this is a long shot...I'm trying to remember the name of a game from the early-mid 90s, it was an RTS somewhat like Warcraft. I played a demo that came on a PC Gamer demo disc I think. It had cities that had different nationalities or tribes or something in them, and you had to keep an eye on the ratios or it would rebel. The colour palette was a lot of red, brown and grey
I'm no gamer, have no clue
 
user142019
The only RTS I have played was Age of Empires.
 
Thanks @JohanLarsson
 
@Zoidberg Age of Empires II and its expansion are my all time favorite game.
 
@TomW pretty quiet here now, maybe if you flood the chat with java questions you will wake a few up :)
 
user142019
@StackedCrooked same.
 
1:23 PM
Java rocks like a boat.
 
user142019
Java rocks like a rapper.
 
java is a red blanket if c++ room is a bull
 
user142019
Both are terrible.
 
user142019
Haskell and Erlang and Python and CoffeeScript pwnzorz.
 
user142019
Stop! Showertime.
 
1:35 PM
@JohanLarsson Bulls cant see colour.
@JohanLarsson Alpha Centauri?
 
ok, but red is commonly used any way I think. Maybe it is just for the human viewers.
 
@JohanLarsson Stronghold?
 
in C#, 12 mins ago, by Tom W
It's called Seven Kingdoms : Ancient Adversaries
forgot to post it here, he found it.
 
orite
 
I guessed Diablo and was flamed for that :)
 
1:37 PM
lol
 
you were not flamed, you big girl
 
'politely corrected'
 
but given it was a group of managed coders I thin it is fair to say they were pretty upset
 
aht
those noobs wouldn't know codes if codes punched them in the face
 
1:40 PM
 
user142019
1:55 PM
Hi ladies. I'm back.
 
What methods/operators/conversions should a matrix class provide?
 
@Borgleader comma
 
@Borgleader this has a very useful matrix clas imo
 
@StackedCrooked Nice try, I'm not touching that operator with a 10ft pole.
@JohanLarsson Thanks I'll take a look at it's interface
 
user142019
Go has the ugliest syntax of all languages I have ever seen.
 
user142019
2:22 PM
@chris it's not. GC is awesome.
 
user142019
Less need to think, hence great.
 
Ell
value semantics rule
 
user142019
Irrelevant.
 
yeah, I'm not a fan of GC.
too much headache interoperating with anything that's not using your specific collector
 
GCs tend to cause more problems than they solve
the problem of optimizing for them is often harder than the problem of writing memory safe code
 
2:27 PM
I'm not fond of GC either.
 
Of course functional languages go hand-in-hand with them. Memory allocations shouldn't be exposed there. But in imperative languages like Java it's just silly.
 
user142019
 
@Zoidberg I wish I could unsee this.
 
user142019
I can't imagine JavaScript without a GC.
 
Ell
I just don't see the need for a GC
 
2:32 PM
I read up on Javascript a while ago. It seemed extremely silly.
 
user142019
lol
 
user142019
JavaScript is great.
 
It is uglier than C++
and that's saying a lot
 
Ell
I keep forgetting if malware is illegal or not
 
user142019
@Pubby CoffeeScript fixes that. xd
 
2:34 PM
Let's say I have a class with 4 template arguments: class Foo<PolicyA, PolicyB, SizeX, SizeY>. Is it possible to do some sort of typedef to define say FastFoo so that the user only needs to specify the last 2 arguments?
 
@Borgleader if you're not using MSVC, yes :3
 
@Zoidberg There are like 50 languages that compile to JS. I have a feeling there are ones better than Cofeescript.
 
however...default template arguments might work on MSVC
 
> Emscripten is an LLVM to JavaScript compiler. It takes LLVM bitcode (which can be generated from C/C++ using Clang, or any other language that can be converted into LLVM bitcode) and compiles that into JavaScript, which can be run on the web (or anywhere else JavaScript can run).
Hah.
 
The only way I had thought would be to have another class template on top which would essentially wrap the "basic" one
 
2:36 PM
@Borgleader using
 
but that bugs me
 
@Borgleader You can use a template alias on GCC or Clang.
 
template <typname SizeX, typename SizeY> using FastFoo = Foo<SomePolicy, AnotherPolicy, SizeX, SizeY> ....I think
 
yeah
 
user142019
I should be working on a 15-page document for school that has to be done by Tuesday, but I don't give a fuck.
 
2:39 PM
@Zoidberg turn in 15 pages of "badger badger badger bagder ...."
 
user142019
lol
 
user142019
It has to be about DNA databases.
 
user142019
I don't know shit about them.
 
@DeadMG 'm working in MSVC :(
 
user142019
And I'm going to drop out anyway, so I'm not really going to do anything.
 
2:40 PM
Hi guys! Im a java guy who recently has started doing some c++,. Ive just setup googletest for unit testing. I have my code in one project and then googletest as a separate project. Now I want to do some tdd and be able to run the tests easily. Im using visual studio 2010
How do I do that?
 
user142019
> I'm a Java guy who recently has started doing some C++.
 
@Borgleader then I guess default template arguments?
 
try asking a question on the question and answer site.
you know, that place that isn't here.
 
user142019
So you chose a terrible language and now you do choose terrible language again?
 
Is it good to write unit tests while learning?
 
2:41 PM
...
 
@Sebastian (sorry for all the salt)
 
@Pubby You mean like while learning French? I'd rather stay focused on the French.
 
lol
 
user142019
I'd rather not learn French, since it's terrible.
 
I cant see any other c++ rooms
 
user142019
2:43 PM
There are no C++ rooms.
 
@StackedCrooked napoleon didn't write unit tests and then his whole unit got wiped out
 
yeah, but this is a chat, not a C++ helpdesk.
 
user142019
10 hours ago, by R. Martinho Fernandes
You will be banned if you say something on-topic.
 
@Pubby he got pretty far though :)
 
@Zoidberg BANHAMMOR
 
2:43 PM
@Sebastian The Lounge isn't primarily for asking questions. It exists for chilling.
 
Okay,
 
chilling isn't very interesting though
 
user142019
This is a place for making fun of terrible languages and other things.
 
sorry for disturbing you
 
user142019
Such as Java and C++.
 
2:44 PM
..and Zoidberg ~_~
 
user142019
(\/)(;..;)(\/)
 
well, let's face it
as the guy reinventing Lua, but worse, you can't really talk
 
what?
 
user142019
I don't even know Lua.
 
user142019
I have never ever used it.
 
2:44 PM
my point still stands.
 
user142019
My object model was inspired by Python.
 
@Zoidberg You've never really looked around much, have you?
 
my point still quite valid.
 
@Zoidberg The problem is that while GC makes memory management easy, it makes managing everything else much more difficult, because you no longer get deterministic destructors to handle things like closing files, unlocking mutexes, etc.
 
user142019
Context managers and problem solved.
 
user142019
2:47 PM
Aka with/using.
 
that's really not the same at all.
and nowhere near as useful
 
Who was it that got either/both of GCC, CLang to work with MSVC?
 
@Borgleader Define "Work with".
 
user142019
If you use a GC and you program as if you have RAII, you're doing it wrong.
 
in principle, you can use MinGW and Clang to work with MSVC.
 
user142019
2:47 PM
You shouldn't do that.
 
@DeadMG Compilation, Errors/Warnings (so that it sends you to the right place when you click on them), etc
 
@Zoidberg Not even close -- these still place the burden on the user of the class instead of centralizing the resource management into the class itself.
 
@Zoidberg But GC can't solve many problems that RAII solves, so if you need RAII and you only have GC, you're fucked.
@Borgleader No idea, I've never heard of such a thing.
 
@Zoidberg he said managers! Get the pitchforks!
 
user142019
@melak47 -_-
 
user142019
2:49 PM
It's not a manager class or whatever.
 
also, with/using are seriously gimped compared to RAII.
 
user142019
Four days left to quit school.
 
@Zoidberg and then? you'll become a rockstar programmer? :)
 
user142019
Work, of course.
 
user142019
2:51 PM
Work is fun and useful. School is not fun and it's pointless.
 
user142019
I have wasted enough time in the past five months.
 
hmmm
it's really bad to have a process which is not in my task manager, isn't it
 
user142019
$ killall that-process-that-is-not-in-your-task-manager
 
aye, I bet the Windows command prompt will understand that
 
user142019
Well, don't use Windows.
 
user142019
2:56 PM
PROBLEM SOLVED.
 
user142019
@ProgrammerForNow well, what operation?
 
@ProgrammerForNow y u no wikipedia?
 
@Zoidberg Quit being such a moron! Most work is much more boring and nitpicky than any school. Go read some Dilbert and realize that even though it's funny, it's also real. At a real job you truly will sit for hours in meeting listening some some marketroid droning on for hours about the difference between a "blue sky" and a "greenfield" opportunity (I've been there and heard it).
 
user142019
A data structure has no computational complexity.
 
I trust u guys more
 
user142019
2:57 PM
@JerryCoffin you don't decide what I find boring and what I find fun.
 
2 messages moved to bin
 
user142019
lol
 
@Zoidberg You're right! I do.
 
user142019
Also, not every workplace is the same.
 
@Zoidberg No, but I've seen (and worked with) literally dozens of recently graduated (and, yes, sometimes recently dropped out) guys, and there's unanimous agreement on some things. The simple reality is you have no basis for judgement.
 
user142019
2:59 PM
I eventually need a job anyway.
 

« first day (834 days earlier)      last day (4117 days later) »