« first day (759 days earlier)      last day (4198 days later) » 

user1357851
1:00 PM
whale can breath air
 
hi, guys. i want to learn a script language. which one should i learn, perl, Ruby, python or PowerShell?
it's Microsoft's language
 
user1357851
depends on what you want to do with it
 
Learn them all, dammit.
 
Xeo
Since when was anything of that except maybe PS a scripting language?
 
@R.MartinhoFernandes this
@Xeo let's not start this
 
1:02 PM
They are all equally interesting i guess, i've only used a bit Perl and Python trough, perl is awesome for text processing.
 
@R.MartinhoFernandes are you kidding me?
 
No, I am not.
 
Xeo
@Triumphant No, why limit your mind?
 
Apparently ADL is in the "Basic Concepts" section. Can't be that hard then
 
Xeo
@kbok Where?
 
1:04 PM
@Xeo time is a problem
 
In the holy book
 
Xeo
The basic concept of ADL is easy, but it has some meh corner cases.
 
@Triumphant python is a good starting point but you should know about all of them in the end
 
@Triumphant So, which one do you want to learn?
 
@R.MartinhoFernandes hmm..., i want to learn the most widely used script language
@kbok maybe it's a good idea
 
Xeo
1:06 PM
@Triumphant Define "scripting language"
 
user1804599
@Triumphant learn Haskell.
 
Xeo
@Aardvark I'd advise that if time was not a problem. :P
 
@Xeo That's because you suck :P
 
@Xeo such as Perl, Ruby, Python, PowerShell
 
@Triumphant that's stupid. Learn the one that is of most use to you
 
user1804599
1:07 PM
@Xeo but maybe he is a mathematician!
 
> parentheses prevent argument-dependent lookup
lol, ok
 
Xeo
@kbok What, how?
 
@Xeo yes yes, we all know it is a stupid term, can we move on
 
user1804599
@Triumphant that is not a definition.
 
user1804599
Examples ≠ definition.
 
Xeo
1:07 PM
@thecoshman No, we can't help that poor sod without knowing what he really wants!
 
@Xeo (f)(s)
 
@Xeo (swap)(x, y)
 
Xeo
TIL
 
That's why I read the standard :)
 
The parentheses make it a function pointer, and that does not have arguments to do ADL.
 
Xeo
1:09 PM
Yeah. As soon as you have overloads or a template, you're fucked though, right?
 
0
Q: Is there a software to recover shift+deleated programming files

user1709828I deleated a SML file that is lengthy and will take hours to write. I want to recover it and most softwares only recover documents, images and so forth? Is there a similar tool for programmers? I am tagging all possible because may be there are some softwares that recover all code files and al...

 
@Xeo Yep.
 
@Xeo indeed, but that bares no relation to the tedious "'scripting language' is a stupid term" argument
 
@thecoshman i don't think so. i want to learn a script language to make me competitive in finding a good job
 
@Triumphant Learn what you like more, there no actual diffrence, except powershell is nearly useless on my opinion, unless you are windows sysadmin.
 
1:10 PM
Puppy, look! Someone you can chastise for not using version control.
 
user1804599
@Triumphant just pick one.
 
@Aardvark hi, the is the definition en.wikipedia.org/wiki/Scripting_language
 
@Triumphant well in that case, I will simply point out that 'scripting language' is a stupid term that means nothing.
 
user1804599
> This article needs attention from an expert in Computing.
 
user1804599
@Triumphant ^ unreliable, so no.
 
1:11 PM
@Triumphant which strangely enough is the exact same definition you would give to 'programming language'
 
user1804599
Anyway, just pick one and learn it. If time is a problem, you are doing it wrong.
 
trust us, we have wasted spent many a hour pointing out how stupid the term is
 
"Scripting language" generally refers to a language where you can put statements directly in the source body instead of in main().
 
user1804599
@kbok so, C++?
 
@kbok wonderful definition
 
1:12 PM
e.g. this term is not super useful
 
user1804599
I can put code directly in the source body in C++.
 
@Aardvark C++ is not script language
 
@R.MartinhoFernandes What's going on?
 
user1804599
@Triumphant why not?
 
1:12 PM
@kbok means nothing
 
@thecoshman thanks for your time
 
user1804599
lol
 
@DeadMG The closed question I linked to?
 
@Aardvark there you go
 
@Triumphant and if you want a language to learn to put on your CV, it depends what sort of job you are doing. If you want to be a webdev, then JS is probably a good hand
 
Xeo
1:13 PM
Hey puppy, I just wanted to do that!
 
@Aardvark because before you can run the code, you must compile it into an *.exe file
 
@R.MartinhoFernandes Ah, that one.
 
@Triumphant becuase...
 
@Xeo Pwnified.
 
user1804599
@Triumphant that is wrong.
 
1:14 PM
@thecoshman hum what
 
@kbok what part confused you
 
user1804599
@Triumphant there are C++ interpreters, you know.
 
@thecoshman Why are you telling me this :p
 
user1804599
And there are Python compilers.
 
user1804599
So your argument is invalid.
 
1:14 PM
@Aardvark Really? what's that?
 
@Triumphant not true. nothing in the standard says you have to compile C++
@kbok doh
 
Xeo
C++ - your argument is invalid.
 
there we go
 
It means nothing but it's still 100% correct from my POV. I can't see any counter example
 
1:15 PM
@Triumphant still, even if no one has made one, does mean they can't be made
 
@kbok SQL? Scala?
 
Xeo
@R.MartinhoFernandes I thought that name sounded awefully familiar... No wonder.
 
@R.MartinhoFernandes Dunno about Scala. SQL does not contains statements
 
Xeo
@thecoshman Rule 34 on programming languages, do it!
 
user1804599
SELECT is a statement, for example.
 
1:17 PM
@Xeo superseded by Rule 0
 
@kbok Erm.... UPDATE table SET column = value; is a statement.
 
Fair enough, I suck therefore
 
user1804599
Erlang has no statements, IIRC.
 
@R.MartinhoFernandes is Cling free?
 
@thecoshman What's rule zero? The number of fucks you give?
@Triumphant No idea.
 
1:21 PM
Because all vars in it are immutable?
 
Xeo
@R.MartinhoFernandes GM is always right.
 
@R.MartinhoFernandes clever you, that's quite the power of deduction you have :D
 
user1804599
@Triumphant well, there is a link to the build instructions, so I assume it is open-source.
 
@Triumphant you mean clang?
 
Rule Zero != Rule of Zero
 
1:22 PM
@thecoshman yes
 
Xeo
6 mins ago, by R. Martinho Fernandes
@Triumphant http://root.cern.ch/drupal/content/cling
No
 
user1804599
And I don't see why an organization as CERN would not make a tool like cling open-source software.
 
user1804599
@thecoshman no
 
user1804599
@Triumphant stop lying
 
@thecoshman just add "sources.append('platform/window.cpp')" to kyrostat/src/SConscript before the env line
 
1:22 PM
> CINT
 
user1804599
@Triumphant Here you can download it: ecsft.cern.ch/dist/cling/current
 
@Aardvark ok. thank you
 
user1804599
That is, the binaries. You can find the source elsewhere.
 
user1804599
Oh wait, what the fuck. It is not open-source.
 
1:24 PM
@Aardvark it's open-source. so it's free
 
user1804599
@Triumphant open-source software does not need to be free.
 
user1804599
Neither free as in free beer nor free as in freedom.
 
@melak47 can you put that on trello or forums or something? it's only going to get lost here :P
@Triumphant not quite
 
user1357851
 
@melak47 You guys still can't build... well... nothing?
 
1:25 PM
@thecoshman hmm where on the forums
 
@melak47 message me or something
 
@R.MartinhoFernandes nah, @thecoshman can't. I figured it out two weeks ago :p
 
@R.MartinhoFernandes He can, I am still failing with link errors, which if you read the forum you would no :P
 
I would yes.
 
What you trying to build?
 
1:26 PM
@melak47 ¬_¬ the two weeks I have been away from a decent computer
@Ivan0x32 crack
 
user1804599
@Ivan0x32 software.
 
it's a bit fail if you have to add each source file to Scons manually, don't you think?
 
@thecoshman excuses :p
 
@Ivan0x32 Nothing! Really, it's just one big pile of nothing.
 
@DeadMG I think it's only a few things that need to be added as they are a bit odd
 
1:27 PM
@DeadMG I have no idea how they are doing, but yeah, it's a big fail on their part.
 
@DeadMG well, yes, but I don't enjoy dicking around with python trying to add files in directory/bla but not anything in directory/bla/stuff but again in directory/bla/otherstuff
 
user1804599
SCons is terrible.
 
@R.MartinhoFernandes you have very low expectations
 
I feel sick
 
@Aardvark blame the cat
 
1:28 PM
@Telkitty the pic is funny
 
@DeadMG eat less... or more
 
user1357851
@Triumphant :)
 
@Telkitty where did you find it?
 
user1357851
web -> chick + cat
 
@Aardvark What do you prefer ?
 
1:30 PM
@melak47 you can put it on Trello even, just some where I can find it
 
user1804599
@kbok Waf.
 
Oh yeah, because scons and waf are so different they aren't even comparable
 
@DeadMG if that's for Kyrostat, blame the Cat! :P
 
Don't forget to blame the cat.
6
 
1:32 PM
room topic changed to Lounge<C++>: Don't forget to blame the Cat! [c++] [c++11] [c++-faq]
 
user1804599
@CatPlusPlus I blame you.
 
room topic changed to Lounge<C++>: Don't forget to blame the Cat! [c++] [c++11] [c++-faq] [woof]
 
waf isn't much better than SCons, seeing as they're both build systems
 
Also guys, it's my birthday and you forgot.
ofc I blame @cat
 
Happy Birthday!
 
1:33 PM
@DeadMG lol
 
room topic changed to Lounge<C++>: Don't forget to blame the Cat! [c++] [c++11] [c++-faq] [woof] [why-is-the-rum-gone]
 
@R.MartinhoFernandes What? It was just begging for it.
 
@kbok rule 0
 
@thecoshman It's gone because you drank it, obviously.
 
@DeadMG but there should be more?
 
1:35 PM
you drank the more
 
@kbok Happy Bday!
 
Yeah, theirs should, but not ours.
 
Thanks !
 
@kbok Happy Birthday. I choose to gift you some of my time, the most valuable thing on Earth.
 
@thecoshman 'tis on trello now
 
1:35 PM
@R.MartinhoFernandes shtu it
@DeadMG more!
 
It sure is valuable
 
@DeadMG oh gawd :¦
 
@DeadMG I crap more value then that
 
owch
 
1:42 PM
I wouldn't. This is like, the fifth time I've answered exactly this problem. Obviously needs more search body. — DeadMG 49 mins ago
Puppy is specializing, huh?
 
@thecoshman "donatios" ?
 
@kbok 'silly'
 
waiting for my stuff to compile
meh
 
user1804599
@TonyTheLion inb4 xkcd
 
My bubblegums leaves a shitty taste in my mouth
so when I finish one I have to take another
 
user1804599
1:51 PM
Or just take something else.
 
Yeah
I should go pick a coffee
I only have gum and coffee handy
 
@TonyTheLion swords at the ready
chewing gum is nasty
 
swords at the ready,
chewing gum is nasty
with my coffee handy,
i compile the library.
 
haha
you also waiting on a compile then?
 
1:57 PM
No :( I should really really get to work
But I don't want to debug this crap on my birthday
 
oh that
 
user1182183
can anyone help me with the game on http://50.112.251.215/ ? I cannot get past the second level xD I found the bomb and now I got this image: http://wondpublicassets.s3-website-us-east-1.amazonaws.com/split3.png
and this is the bomb:
http://wondpublicassets.s3-website-us-east-1.amazonaws.com/split2.png
and I do not understand anything, lol, only relational thing is, prisma is blue so cut the blue wire or shut off the lights LOL
 
I probably shouldn't bother storing out ssh to home I'd get even less work done
 
storing out?
what.
 
Sorting
On phone in meeting
 
2:03 PM
lol
 
Trying out swipe keyboard
 
how does that work?
 
It's fast until I fail to spell
 
You just squiggle over the letters and it guesses what word you want
 
2:05 PM
The ape loves those.
 
I think I like it
Probably faster then trying to type
Feels fancy
 
if I have to do it fast, I talk to my phone
 
Is there a pattern/name for having one shared_ptr and lots of weak_ptrs pointing to it?
 
can't exactly talk to my phone in a meeting
 
Is that even considered shared ownership?
 
2:08 PM
@Pubby Why not unique_ptr + dumb pointers?
 
Dumb pointers
 
Can that one shared_ptr die while the weak_ptrs still live?
 
@R.MartinhoFernandes It may delete itself and the reference need to know it was deleted
 
@R.MartinhoFernandes Yeah
 
2:10 PM
> SetMasterIndex - historical, don't use, will probably cause crashes.
Woot.
@Pubby Yes.
Once one of the weak_ptrs locks, it is sharing the ownership with the source.
 
Is there a better alternative? It's for a game where I need entities to reference other entities.
 
Ah, good thing that historical function does not actually exist in the headers anymore, only docs.
 
Xeo
@Pubby Have per-scene resource pool and hand out raw pointers?
 
@Pubby Dunno :S That sounds a bit like entities don't have well-defined lifetimes.
 
@Xeo I don't understand what that means
@R.MartinhoFernandes For instance, a homing missile should reference the enemy it's homing towards but if that enemy blows up before it reaches then the reference should change.
 
sbi
2:14 PM
Hi.
How do I link to a specific time in a youtube video?
 
Xeo
@sbi Right-click
 
Add #t=xmys where x is the number of minutes, and y the number of seconds; can probably be extended to hours, but I never tested.
 
Xeo
or that.
 
I just found this
 
Hello all, I just made a program in VS2010, how do I make it a standalone program ?
 
2:15 PM
Make an installer that ships everything?
 
I dont know how to make an installer either
 
sbi
Thanks, @Xeo, @R.Martinho.
 
@Failed_Noob Google for NSIS
 
sbi
I give you this in exchange. I consider it hilarious.
 
> Anonymous said alex is gay, gay, and gay
Well that's nice
 
2:16 PM
though I asked about a standalone program that needs no installer. just double click and it works.
 
@sbi Oh, that.
 
access web anywhere through a secure VPN
 
sbi
@TonyTheLion That's not half as good as my link.
 
@sbi Whoever said I was competing with you?!
 
2:17 PM
@Failed_Noob Static linking should do
 
Can you link the CRT statically?
 
sbi
@TonyTheLion You posted it right after the robot's reply to my video. What else should I assume from that?
@R.MartinhoFernandes With VC? Yes. I'd advice against it, though.
 
> Let the haters hate & the rest of us can just enjoy kisses from beautiful ladies on our smooth cheeks
@sbi it's amusing, not hilarious
 
You know, if your app doesn't have an installer many people will consider it not to be a "real" app
 
Enter is not '
 
2:21 PM
Go figure
 
@kbok opposed to just an executable you can just run?
 
"My keyboard sucks" is all there is to it
@thecoshman yup
eg utorrent
 
umm is there a How to static link tutorial somewhere ?
 
@kbok strange, I always consider 'portable' apps far superior
 
@sbi I blame the cat
 
sbi
2:23 PM
@thecoshman He basically shows what you can do with a good kitchen knife. Those knives are expensive. Good ones start at ~$80 and you can easily pay >$200 for a good knife. Cooks treat them almost like museum staff treats Ming dynasty vases. To use one to shave your goatie seems hilarious.
 
It's all @CatPlusPlus 's fault!
 
sbi
@TonyTheLion Always a safe bet.
 
uTorrent has an installer
 
man, my build is still going
for like an hour now
WTF
 
2:24 PM
@kbok it doesnt need to be recognized as a real app since I made a scheduler program so that I could use it in my old computer only
 
@sbi bah 'good' knife. All you need is some nice hard steel, a good handle and some time to give it a sharp edge
 
@kbok I could make us an "installer" that does absolutely nothing :3
 
at the end of the day, your cutting some veg, it's not rocket science
 
@melak47 That means it installs everything there is to install, right?
 
2:25 PM
@R.MartinhoFernandes lol
yeah, and it compresses kyrostat to all of 0 bytes :)
 
sbi
@thecoshman If you put your kitchen knife at the top of a tomato, will it slide in or will it slide off?
 
+- 30 MB vendor lib
 
@sbi I'm not saying a sharp knife is not a nice thing to have, just that they are not that hard to make. I believe there is an XKCD to the effect that given any subject, eventually you will get experts complaining about meaningless details
@melak47 isn't the vendor lib statically linked?
 
@thecoshman ...apparently not on windows. which is where people expect crappy installers, right?
 
user1804599
"or get you pregnant" was removed from my answer. Does Stack Exchange support censorship or something?
 
sbi
2:29 PM
@thecoshman I am a bit speechless about the self-assurance with which you present your ignorance. I can only refer you to the robot to tell you whether he thinks I could cut vegetable the way I do with any knife bought in some ordinary supermarket.
 
It's serious business site
 
I agree with @sbi
I have a particular knife which is so much better than all the others.
 
just eat the veggies whole dammit
 
sbi
@Aardvark Nobody ever deleted it here.
 
Just eat meat.
 
sbi
2:30 PM
@R.MartinhoFernandes What do you want to cut that with?
 
@thecoshman Yeah, if you say that, you probably suck as much as I do.
 
user1804599
> I fail to see how it would either kill me or get me pregnant.
 
user1804599
> @sbi I'm a dude. That would be some seriously undefined behaviour
 
user1804599
LOL
 
Oh wait, it wasn't mod edit, just a random scrub
Yeah, revert and tell them to go write their own answer
Also iostreams can throw exceptions
It's just not default mode (and doesn't change the fact that they're terrible)
 
user1804599
2:35 PM
I accidentally reverted it because I was editing at the same time as the other dude.
 
user1804599
@CatPlusPlus I mentioned "by default", IIRC.
 
-1 for the exception remark — Let_Me_Be 5 mins ago
 
user1804599
Yeah I saw it. :)
 
Exception purists are so funny (and dumb)
GUYS IT'S TOTALLY NOT A CONTROL FLOW MECHANISM
NEVERMIND IT ALTERS THE FLOW
 
user1804599
2:38 PM
#define throw exit(1),
 
There is nothing in my Release folder should I use what is inside the Debug folder?
 
@Failed_Noob Build in the Release configuration?
 
@Failed_Noob You need to pick what configuration you build (I'm assuming that you are using Visual Studio or cmake)
 
@R.MartinhoFernandes I mean in the bin folder there are two other folders Debug and Release. The debug has some files and release has none
@JoakimGebart yes I am using vs2010
 
user1804599
2:41 PM
I/O streams are horrific. Not to mention the overhead of all the branches in the implementation of I/O streams to check whether exceptions are enabled or not.
 
@Failed_Noob There's a dropdown somewhere on Visual Studio that says "Debug". Change that to "Release" and build.
 
@Default: The C++ standard couldn't care less. In fact, whether you are still male is undefined after you invoked UB. An implementation that changed (or removed, FTM) your sex arbitrarily would be standard-conforming. — sbi 5 mins ago
ITT UB gets you a sex change.
 
@Aardvark The branch can be in only one place: where the error flags are set.
 
@Failed_Noob See msdn.microsoft.com/en-us/library/kkz9kefa%28v=vs.110%29.aspx for an introduction to build configurations
 
user1804599
@R.MartinhoFernandes oh yeah. :P
 
user1804599
2:43 PM
But still, that branch instruction is executed every time something fails.
 
user1804599
Unless you use extra indirection.
 
@Aardvark You are advocating throwing exceptions and worried about one branching instruction?
 
sbi
@thecoshman Have a look at this. You can't do this with a simple knife. However, working with such a knife is serious fun.
 
user1804599
The library should be both well designed and as fast as possible. Ah well, I/O is often slow anyway.
 
Thanks I did not know that was an option to switch between release and debug.
The release folder now looks like this i.imgur.com/5l2LC.png. Now I just need to figure out how to make it static link to make it a standalone program file
 
2:47 PM
@sbi ok, that's sharp
@sbi but I am sure, given enough time, and good hard steel, you can sharpen anything to a nice edge
 
man
I need to re-write my CV.
 
user1804599
How come?
 
@sbi I'm not sure about Germany, but in the UK he knives you by a very much not sharp enough
 
a recruiter I'm dealing with said that it sucked
 
Was it empty?
 
2:51 PM
@DeadMG probably did
 
People actually work with recruiters?
 
IME every job I have seen is listed by a recruiter.
 
I guess I meant 3rd party recruiters ... rather than those from within the hiring organization.
 
user1804599
That answer gave me 255 rep. :D
 
user1804599
An almost-round number. :(
 
2:55 PM
@Aardvark How so?
I see +14/-1.
 
user1804599
@R.MartinhoFernandes fourteen upvotes, one downvote, one accept and an association bonus with meta.
 
Oh.
There are only 14 upvotes, though.
 
Hmmm, Am I being rude ?
0
A: C++ class is not recognizing string data type

mikeDoing std::string will work but is rather cumbersome to write each time. To make it work for all string without doing std:: each time, simply put these two lines of code at the top of your header file: #include < string >; using namespace std; And you're good to go!

 
user1804599
@R.MartinhoFernandes I miscounted then.
 

« first day (759 days earlier)      last day (4198 days later) »