« first day (1589 days earlier)      last day (3356 days later) » 

user1804599
9:03 PM
Fuck C++.
 
i wonder what happens if i call asio::io_service::poll() from within a handler
 
@πάνταῥεῖ "Serious programming"?
 
user1804599
@Pris It'll probably deadlock.
 
So when you google "gaming console" the first thing that comes up is a potato!
Glorious.
 
> reddit
 
9:05 PM
@Jefffrey Should read Seriious programming errors (flaws) Sorry!
 
user1804599
I wish I were happy.
 
Why are you not happy?
 
@райтфолд There's a vague mailing list post that says something like "you can do nested poll() calls"
 
Where are you not satisfied?
 
user1804599
Because I am not a man.
 
9:07 PM
@райтфолд Hey! C++ served me well for decades now.
 
In the sense that you want to be a man but you are not. Or that you are a man, but you don't want to be?
 
@райтфолд Change gender?
 
user image
3
 
user1804599
@Jefffrey I am not one but I appear to be one.
 
@райтфолд How so?
 
9:08 PM
1
Q: Boost::asio and nested/recursive service.run()/run_one()

cgartIs it possible that nested calls of io_service.run_one() is not a valid use of boost::asio. For example I have a handler which is executed after something has been received on a socket. The io_service is running in another thread with io_service.run_one(). Hence in my opinion the io_service will...

 
user1804599
@Nooble potato gaming master race
 
aw
 
@райтфолд inorite
 
user1804599
fuck writing vms
 
user1804599
I'll make it run on the JVM and integrate with Java.
 
9:08 PM
@райтфолд phrase uttered ~140 times in lounge
 
Should be starred.
 
user1804599
only 140?
 
that number is too low
 
estimate
 
@райтфолд Again: Change gender, if you're serious about it. There are a number of ways to get you more satisfied about this nowadays.
 
9:09 PM
It's actually ~200
 
user1804599
@πάνταῥεῖ I know but it is not that simple.
 
@Jefffrey there are tons of "fuck C#" and "fuck C"
 
user1804599
I have been struggling for years.
 
~50-60 of those
 
@райтфолд I didn't say it's simple. But well, if you're serious about it there are ways to do.
 
9:10 PM
@райтфолд Struggling?
 
user1804599
thank you! райтфолд — Phil_oneil 7 mins ago
 
user1804599
OP y u no accept answer.
 
user1804599
@πάνταῥεῖ I know. :p
 
So is r̶i̶g̶h̶t̶f̶o̶l̶d̶ pantoona male or female?
 
user1804599
I am female.
 
9:11 PM
Ok.
 
@райтфолд "I am female." Should that read "I am female. But I'm caught in the wrong body" (or vice versa)?
 
user1804599
Yes.
 
@Rapptz pretty definitive
 
user1804599
my body sucks
 
I don't understand this, to be honest.
 
user1804599
9:12 PM
even though without it life would be shit :D
 
Okay so are you biologically female?
 
Like, I can understand liking men or women or any combination including animals.
 
user1804599
no
 
But I don't understand sex change.
 
Who said sex change. Being transgender doesn't imply a sex change
 
9:13 PM
6 mins ago, by πάντα ῥεῖ
@райтфолд Change gender?
 
@райтфолд you were born too soon. before the era of cyberpunk meta human robot bodies where we all beepboop at each other in c++
 
user1804599
I was born two weeks late.
 
:D
 
@sehe Fully agree.
 
Feb 17 '14 at 23:00, by sehe
So much win on this page http://thequickword.wordpress.com/2014/02/16/james-irys-history-of-programming-l‌​anguages-illustrated-with-pictures-and-large-fonts/
 
9:15 PM
Yup
 
I want the other 8
 
user1804599
Separating classes and types was the best decision I made now I switch to the JVM.
 
@райтфолд You need a comma there.
Well, not you, mostly those that read your messages.
 
I feel like making an ALU in Minecraft.
Hmm...
 
user1804599
Runamoine is a great song.
 
9:17 PM
@Jefffrey Some more
Time for food.
 
user1804599
Nice thing is that the JVM can be embedded so I don't have to expose Java at all.
 
user1804599
It's just an implementation detail.
 
Yay, repositories all sorted.
 
@райтфолд nested polls seem to work! i vaguely remember running into some deadlock thing with asio before though... i wish i remembered exactly what i did to get to deadlock before. argh
 
And backups updated.
Of course now I have no intention at all to actually do any coding
3
 
9:24 PM
@LightnessRacesinOrbit tsk tsk
 
coding is for wimps
 
user1804599
I'm bored.
 
user1804599
What shall I do?
 
Durarara is a great anime you could watch.
 
user1804599
No.
 
9:26 PM
play video games
 
@райтфолд Create an ALU in Minecraft.
 
user1804599
No.
 
@райтфолд <insert stuff you'll eventually say "No." to>
 
user1804599
No.
 
user1804599
Let's see what games we can play.
 
9:29 PM
Say no.
 
user1804599
PixelJunk™ Shooter 2
 
how do yall pronounce boost 'asio'
 
I don't think that changing gender is an easy decision, or can be easily achieved by modern surgery or medical support. I'm not in depth about how it feels to think you have that body, and it doesn't match with your mind setup or how you want to look for yourself or all of the rest.
I've sometimes wondered how it would feel being a women (mainly in sexual interactions) and how that actually differs from my experience. I've made some experiments about that as well (when having sex).
Though there are some things I'd seriously miss, even if I would change gender by means of what the modern doc
 
@Pris ass-ee-o
 
i say ... 'ay zee oh'
@Borgleader wow, ass ee o sounds horrible
 
9:34 PM
ay-see-oh
 
@Pris youre an ass-heyooo
:P
 
user1804599
I want to make games again.
 
Hi. I had a design related question for a c++ small program i am writing and it has not much to do with knowing language. I Was wondering if i could still ask it here.

Suppose i have c++ file which takes some user input and besides doing lot other work, prepares a config.json file in same folder where this c++ file is. It also prepares this executable which is then copied pasted to /usr/local/bin. How can i access this config.json file without hard coding its location from this executable? Also beware that this c++ file could be anywhere in the system.
 
what's a json
 
JSON (/ˈdʒeɪsən/ JAY-sən), or JavaScript Object Notation, is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. It is used primarily to transmit data between a server and web application, as an alternative to XML. Although originally derived from the JavaScript scripting language, JSON is a language-independent data format. Code for parsing and generating JSON data is readily available in many programming languages. The JSON format was originally specified by Douglas Crockford. It is currently described by two competing standards...
 
9:36 PM
@AjGauravdeep Ask programming questions on the main SO site properly (and preferably)
 
@райтфолд make a rendering engine in c++ pls i could use one of those
 
user1804599
lol C++
 
@Blob J's son
 
user1804599
only a retard writes games in C++
 
yo i have feelings you know
 
9:37 PM
@райтфолд That's arguable
 
If you're new to the room, ignore "pantoona".
 
Thanks @πάνταῥεῖ for the advice. Thats what the plan is but i was afraid to ask such simple question already figured out by million programmers and get negative scores. I thought i will try once here.
 
@LightnessRacesinOrbit Sucks.
 
@Rapptz That's arguable!
And more of all: No one new would ever get who's "pantoona"
 
@AjGauravdeep Show some research effort and you should be fine.
 
9:42 PM
Ok. Thanks. @Blob
 
@AjGauravdeep If it's really that simple, it should be simple to find some reasonable answer by just googling it :P
 
well the reason i have this config.json is for my executable to know some config values. but how would it every know where this file is...
i could always put this in folder in $PATH but that doesn't seem like a great idea
 
I didn't understand his question; did he want an executable in /usr/local/bin to access the .json in his current directory?
 
yes @Blob
 
so you need the absolute path to the json?
 
9:45 PM
The typical place people put config on linux is ~/.config
 
so there is ./setup.xyz which prepares the config.json in same folder and prepares en exec which goes to /usr/local/bin.. I want this executable to know where this config is
 
strip down the details; you essentially want some way to know where the C++ program is so you can find where the config is (same folder)
 
Put your config in ~/.config/my_executable_name/config.json
 
@AjGauravdeep "I want this executable to know where this config is" Relative to the actual user's home directory would be a good start as mentioned
 
well i thought of that.. but now i have to maintain two separate folders for this project.. one where setup and some other libs are. And a separate config folder.
i was hoping this configs are in same location where libs are so something like /path/to/lib and /path/to/config/
you guys are much more experienced with programming. i am not a programmer so i just hope to know more preferred way a experienced programmers like you would
 
@AjGauravdeep You certainly don't want to do this, by means of keeping the (dynamically linked)lib pathes clean. As a last resort, place configurations under /etc/<myservice> for linux systems.
 
i am using Mac OS X. Besides this program is going to be installed by many users(in 1000s) so wanted a safe and more maintainable solution. @Blob. um it didn't seem same to me. I think i peeked over it before. I will read again.
 
@AjGauravdeep i only took a glance; might not be relevant
 
@Blob Thanks.
 
Some metaphor about programming http://t.co/iYaGfI5f3W
 
9:53 PM
@AjGauravdeep Well, write up a proper question on main SO about your concerns where to put configuration files.
 
@AjGauravdeep you'll have to use a library to read the debug information (which is platform specific) if you want to know the place of the c++ file. And that's only at the time of compilation ;)
 
user1804599
@sehe A solid foundation? Bullshit!
 
Can anyone help me with C?
 
In all other cases: basename() on argv[0]
@Alizter ... no :( please don't
 
@Alizter C? In here? WE ALL HATE C!
 
9:55 PM
@sehe No? Do you know where I can ask?
 
On Stack Overflow? You might have heard of this site
 
@sehe It's too scary for me. I just need some quick help.
 
Thanks @πάνταῥεῖ. @Blob I will see what i can do. I think i won't write a question. I try not to post questions to have anymore negative comments or pissing people off. I just ask if someone is interested to help. I will dig up some previous written programs.
 
Well well. Goodbye then
 
@Alizter use std::vector
 
9:55 PM
@Alizter thats the quickest way you'll get it
 
@Alizter You will be lucky to get it here.
 
@MartinJames I don't hate C. I just dislike it. A really, really lot.
 
@MartinJames You meant s/it/out alive/
 
@sehe Providing a moving and changing avatar discourages so much about seriousness
 
Thanks for your time.
 
9:56 PM
CTO's ex-wife canceled the credit card our AWS account was on.
wow
 
@JerryCoffin OK, I'm willing to accept that there are levels of C dislike other than 'HATE'.
 
@AjGauravdeep Well, we're just lounging :) ...
 
@sehe Hmm?
 
@sehe I was trying to be kind:)
 
Me too
 
9:58 PM
@sehe lol
 
@Alizter Anyone can help, yes!
 
I even started with a ":(" and a "please"
@πάνταῥεῖ What are you doing. Are you that bored
 
@πάνταῥεῖ D: D: D: no
 
@sehe Saying anyone
 
Summoning leeches
 
10:00 PM
And now a flower to brighten up the day of those in the colder parts of the world:
Happy nothing in particular day!
:-)
 
@JerryCoffin Spring started. So glad about it!
 
@JerryCoffin it's last-day-before-i'm-forced-to-do-one-week-worth-of-homework day
sunday sure will be fun
 
@sehe Hmmm, should try to get over winter depression maybe :P
 
"Is calling asio io_service poll() or poll_one() in a nested or recursive fashion (ie. within a handler) safe?" <--- should I ask that on SO? I tested it and it seems to work. Do you think prodding SO for more definitive evidence that calling poll() within a handler is correct and acceptable behavior is a good idea?
0
Q: Error in this piece of code with the copy constructor - C++08

MistyDSuppose I have the following (very rough) code class foo { public: int a; foo() //Regular constructor { ...... std::cout << "Regular \n"; } foo(foo& f) //Copy constructor with with non-const parameter { .... std::cout << "Copy Constru...

what the hell is C++08
 
> int constructor
 
10:07 PM
@Pris C++98 + typo.
 
primitives have constructors?
 
meh, i'll ask ... if it gets closed, w/e
 
@sehe "I'm a bit miffed. ..." LOL
1
A: C++: Use Boost Serialization to write/read files

seheI'm a bit miffed. You're clearly using Boost Serialization (the archive/ headers are part of this library) but somehow you're not saying anything about that. Because it's so easy to demonstruct: Live On Coliru #include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarchive.hpp>...

 
@Blob Sort of, at least conceptually.
 
@πάνταῥεῖ I do this often when a question shows particular confusion
 
10:09 PM
Being _miffed _ could well diagnose for a winter depression as well :) ...
 
@sehe And will the "demonstruct" help cure their confusion?
 
Oh. That's an automatism... will edit
 
user1804599
st.
 
user1804599
Boost.Serialization doesn't exist.
 
@райтфолд Changed clothes?
 
user1804599
10:10 PM
I am part of a conspiracy that denies the existence of Boost.Serialization.
 
user1804599
@πάνταῥεῖ I found the red to be too bright.
 
@JerryCoffin Anyways, it's intended to be a gratuitous blurb of code aimed at the novice leech who can't be bothered to read the docs :/
 
@райтфолд Yeah, it was just annoying (besides your notorious contents)
 
@sehe Glad to hear it. I was starting to worry that the demonstruct would posses me and I'd make everything public by default from now on.
 
The demonstruct will have demonunion with your soul
 
10:13 PM
@sehe I'm pretty sure my wife would say I was immune to that (because I have no soul).
 
Oh. Gosh. I know
:(
 
@JerryCoffin youre not ginger are you?
 
user1804599
Bye.
 
@πάνταῥεῖ it's fine now. I asked on the main. I usually try to keep away from asking on SO because they are usually in my experience a lot harsher than other SE sites.
 
@Borgleader No, I'm The Professor.
 
10:18 PM
user image
4
Only a bit. Inflammatatory
 
@Alizter The Lounge is the harshest part of Stack Overflow. Or we try to be anyway.
 
@sehe that's a hot topic
be careful not to start a flame war
 
@Alizter There's nothing really "harsh". We're just judgeing for quality (I hope most people are doing so appropriately). You should consider chaning your views, what SE/SO site's really about. Don't concentrate/focus on getting help about your localized problem, but how it would affect a broader audience (including future researchers), and answers could be helpful.
 
@πάνταῥεῖ I usually spend time on Math.SE so it is easier to generalise such problems however with programming problems I feel they can become awfully specific.
 
@JerryCoffin The c++ shark tank is in a serious competition with the Lounge<c++> anyway (to be more harsh)
@Alizter Just omit the tag, it's clearly defined for asking about particular coding problems. Anything else is considered Gimme the codez plz.. Just simple as that.
 
10:31 PM
@πάνταῥεῖ Isn't some 'Gimme the codez plz' good for the site? Especially if it is unique?
 
"Gimme the codez" tends to be too localized.
but mostly, it's just annoying
 
I'm a happy shark! There are some more poor sharks that need help from the conscious people all over the world:
@Alizter Certainly not. It would just encourage others to have the impression we're going to do it. Just stay out at sunday evenings when homeworks are going to be due.
@Alizter Put efforts in your questions to get concise answers. Period!
 
@πάνταῥεῖ But isn't the point of this site to provide useful and accurate information? Such that, when I type into Google: "how array in java pls" the top results contain a SO question with appropriate answers.
 
one time some dude came to the Netlogo freenode channel and asked me if i could "quickly" write Flappy birds in Netlogo for him
he had a project due that night; said he hadn't started
 
@Alizter Absolutely not, i have fun closing those
 
10:38 PM
@Alizter appropriate is arguable!
 
@Borgleader Even though they are some of the highest rated questions on the site?
What does that tell new users?
 
@Alizter No they're not.
 
@Alizter How to do X in Y language is a good question, "i need to ask the user for 3 inputs and sum them help pl0x" is not
 
@Borgleader Hey don't mention the fun, that's misleading (you masturbating Nazi :P)
 
the latter is a gimme the codez and is not accepted
 
10:39 PM
@Borgleader I am trying to see the line between the former and the latter
 
There was a question today where some dude didn't understand what "average" meant (mathematical mean). He thought it was a programming problem :|
 
I just noticed I need 5 more questions answered on PE for 400 questions solved.
Tempting :(
 
@Alizter the former is applicable to a big audience, the latter is specific to OPs homework
 
@Alizter it's impossible to do without detailed context. So, there will always have to be the reference code, even if you're stuck at the very "how do I"
 
10:41 PM
We have a similar problem on Math.SE
 
This isn't worth of problem #500 :(
 
There is a very fine line between homework problems and really interesting but OP couldn't answer problems
 
@Blob just point him to define: mean
 
someone answered "i think (highest + lowest)/2"
 
WOW. That was humongous onebox.
 
10:42 PM
That would be mean
 
@Blob lol
 
@Blob I can't find any evidence of that.
 
@Alizter Except, on SO it's not so fine a line.
 
@LightnessRacesinOrbit want me to go on a hunt?
 
@Blob What language was it?
 
10:44 PM
had to do with vectors, so C++
given a vector, he had to find the average of the highest and lowest values in the vector
 
0
Q: Average of Smallest and Largest

JunaidI have been given a question that Write a C++ function maxMinAve. This function is passed a vector parameter and returns the average of the smallest and largest value stored in the array list. Write an additional code fragment to test this function. Include any declarations and initial...

 
Man, still no activity on my two Server Fault questions.
 
To be fair, that requirement is worded quite strangely.
 
@R.MartinhoFernandes Stop asking difficult questions ;)
 
Downvoted the lot of it, anyway
 
10:47 PM
questiondumper! -1
 
Does any of you use an SSH client on Android?
 
@smixity You're hot when you sulk
don juan right there xD
 
@R.MartinhoFernandes uh.. i ssh into my computer or my school's network once in a while
 
@Blob What do you use?
 
"ConnectBot"
 
10:49 PM
@Borgleader "Stop asking difficult questions ;)" Since when this is frowned on here, if worded clearly and concise?
 
it isn't
blogreader is just having some fun
 
@R.MartinhoFernandes I do
@Blob indeed. JuicySSH too in the past
 
@R.MartinhoFernandes I'm sure people are doing so
 
@πάνταῥεῖ I didn't ask about people, though.
 
@R.MartinhoFernandes I do
 
10:51 PM
@R.MartinhoFernandes How is any of you better?
 
Who said it's better?
 
Nope, apparently I uninstalled it
 
whatever panta
 
What does the code SO sometimes shows in deleted posts do?
 
@sehe ^ rei
 
10:52 PM
navta pei is pantoona's sock puppet.
 
@Blob Depends. What are you on about?
@R.MartinhoFernandes Panta rei*
(Expected you to know that)
 
 
@Blob you mean the error screen? It's described in a blog post, I think
 
@R.MartinhoFernandes I don't see "navta pei" written anywhere in those results
 
10:53 PM
@Blob It's a hello world in four or something languages.
 
@R.MartinhoFernandes is the middle one perl?
 
@R.MartinhoFernandes I'm not. I'm my self contained sock puppet (I don't drive one actually)
 
@LightnessRacesinOrbit "pantoona" is in my message.
 
@R.MartinhoFernandes I wasn't referring to "pantoona"
 
@Blob I suspect it's a chain quine and as such, there really isn't "a middle one"
 
10:54 PM
33
A: What does Judaism think of math?

CashCowWhilst the Torah clearly tells you not to add or subtract, it does tell you to be fruitful and multiply And also to divide between Holy and Secular. As well as dividing your produce to separate t'rumah and maaser

..wot
 
@Blob No, it's all four of them.
 
@LightnessRacesinOrbit ... srsly?
 
The entire thing is all four of them.
I don't understand your question.
 
@Rapptz talmudists love their puns
 
10:55 PM
It wasn't a question, but a humourous exposition on the famous illegibility of Perl.
 
239
Q: What's the joke in the Stack Overflow 404 page code?

DexterI have journeyed thus and bruised into the lands of the error page on Stack Overflow. There, upon the hill I see a vision as such: For those reading with images off: # define v putchar # define print(x) main(){v(4+v(v(52)-4));return 0;}/* #>+++++++4+[>++++++<-]>++++.----.++++.*/ print(202*2...

 
@Borgleader nope. he's being himself
@Rapptz ah. it wasn't a blog post after all
 
Dafuq
ConnectBot seems to insist on using port 22.
 

« first day (1589 days earlier)      last day (3356 days later) »