« first day (788 days earlier)      last day (4161 days later) » 

7:01 AM
Is it sad that I see the Windows Update thing asking me to install them like 4 times of postponing it for 4h before I actually see updates?
 
@chris It's a bit annoying when you accidentally click the other-than-postpone button.
 
I should probably look into just making it not bug me sometime.
I shut down often enough, so it's not like they go uninstalled for days.
 
Still, I really love updates.
 
I haven't actually ever paid attention to OS updates.
I figure most of them have to do with small security things.
 
They somehow make me feel good.
 
7:07 AM
@MarkGarcia Though skipws will only disable skipping of leading whitespaces, so "First Name" will still only return "First".
 
@Zeta What!!!
 
Wait, I'm a moron. Forget what I said >.<
 
@Zeta F**k.
@Zeta Hehe. Me also moron.
 
Is there any way to provide a friend access to just one specific variable and ignore the rest ?
 
Why do I complicate things?
You can make a friend class with one function that accesses that variable.
And have the other friend a friend of that proxy class.
 
7:11 AM
@MarkGarcia: Ok, I'm not sure whether I'm a moron or not. I'll get a coffee and then try to think about it. However, this question reminds me of stackoverflow.com/questions/9631720/…
 
I feel there's a better solution.
 
@chris I could , but i basically need to have access to one variable to protect my engine / game separation and making an elaborate system for that to work seems overkill !
 
@angryInsomniac, Here's what I mean. Just in case you wondered about anything. Like I said, I feel there's something better.
 
I wish Google would filter out crappy download sites when I include "free" in my searches.
 
I couldn't agree more.
 
7:19 AM
Google is very intelligent. Yet it fails at one of the most important aspects of a search engine.
 
@angryInsomniac, I wouldn't call it too elaborate, though. It's only one extra class with one member (probably best static, so you don't even need an object of it) and a couple friend declarations.
 
@chris hehe yeah, now that I look at it, it doesnt look like that much work )
it will just be a weird little corner of code that i will have to mark as magic :D
 
My example might make it seem worse since I include what you already have.
Only one of those three classes is new :p
Why am I not getting tired until like 4 am lately? Then I have to wake up for 8:45.
Is that "cat came back" song appropriate?
 
Why is my cat such a pig?!!
 
You raised it.
 
7:34 AM
Anyway, Wikipedia has a dedicated page just for cat purr: en.wikipedia.org/wiki/Purr
 
7:49 AM
Oh geez, "How to compute (p^n) mod (2^32)?"
And the answers are "Use Java.BigInteger.modPow"...
you're kidding me...
 
:3c
 
@Mysticial ...efficiently in Java.
 
lovely doggy
 
Oh geez... now that I read the answers again.
Power modulus is only mentioned in the comments.
One of the answers suggests using BigInteger to compute the full power first. Then reduce modulus at the end...
wow...
3
Q: Return a large power (mod 2^32)

mikeraI need to work out a very large power modulo (2^32), i.e. I want the result of: y = (p^n) mod (2^32) p is a prime number n is a large integer Is there a trick to doing this efficiently in Java? Or am I stuck with doing it in a loop with n iterations?

 
8:05 AM
Don't miss my upcoming pre-flight AMA on Reddit, this Thursday Dec. 13th at 11:00 a.m. EST (22:00 Kazakh time). Straight from quarantine!
 
if i have a vector of pointers (which itself is statically allocated) do i need to go through the vector at the end of the program and delete the vectors manually ?
 
Yes, use a vector of smart pointers if you want them to free themselves.
 
@angryInsomniac huh?
If you have a vector, and not a pointer to a vector, how would you delete the vector?
or did you mean to say "delete the pointers"?
 
@jalf, I presume "pointers" was meant, and that they're dynamically allocated.
 
@jalf not the vector itself, but the elements in the vector (my bad)
ah that means even when those things are removed from the vector they dont get deleted ! Ah pointers , why must you burn me so ? (on second thought , that would probably make for a different set of horrific problems)
 
8:12 AM
Again, smart pointers use RAII.
 
@chris cannot use either , this is for some college work
 
@angryInsomniac yep. Pointers have no ownership semantics. They point to an object, they don't own that object, and they don't delete that object (or do anything else with it)
Otherwise you wouldn't be able to create pointers to stack-allocated objects, or have multiple pointers to the same object
 
heres a pickle though , when i remove something if i call delete on it and then remove , then i assume everything will die , because the location i just tried to remove now points to a garbage value, the only way i see around this is to create a temporary pointer to stuff that is to be deleted , remove it from the vector then delete it
@jalf yup, those are the horrible problems that i was referring to
 
@angryInsomniac, Removing a pointer from a vector doesn't dereference it.
It couldn't care less about what it's pointing to; the pointer is what it manages.
 
hmm, interesting , so i can go
delete <pointerToSomethingInVector>
and then Vector.erase(<iteratorToDeletedObject>)
 
8:24 AM
just don't use raw pointers to represent ownership
use a smart pointer
use RAII
 
@jalf as I said , I cannot, this is for college
 
Well? Which arbitrary limitations does that place on you?
 
infinite memory
I'm kidding. It's late sorry :(
 
I wish I had infinite memory in College...
 
8:42 AM
morning all, miss me?
 
who are you?
:P
 
terribly
we missed your drunken stupors
:P
 
@jalf basically no smart pointers or RAII (the ones that i can think of)
 
I was being savaged by scalpels :)
 
8:43 AM
@jalf I have come face to face with my old nemesis, ITERATOR INVALIDATION
 
@thecoshman salvaged? or savaged?
 
@StackedCrooked both...
rather tender now
 
you had surgery?
 
I had a suspicious looking mole removed from my lower back...
nothing serious, so don't fain concern :P
 
I'm not concerned, I was merely curious.
 
8:46 AM
:P
that's my boy, be brave
oooh, now I get that song
 
@angryInsomniac std::vector is RAII to...
 
@jalf the objects that std::vector creates may not be
fucking hell, I respond to one email and get a tone of OofO responses :O
 
But the vector itself is most certainly RAII :)
anyway, do you need to store pointers in the vector at all? Why not just store class objects there?
(and then you could give them a destructor, and they'd basically be RAII objects anyway)
 
1
Q: Is Exceptions in C++ really slow

AvinashI was watching Systematic Error Handling in C++—Andrei Alexandrescu he claims that Exceptions in C++ are very very slow. I want to know is this still true for C++98

 
8:52 AM
fyi, not read the start of this convo :P
@Insilico ergh... the Engrish
 
@thecoshman That's not the biggest issue. Apparently the OP wants to know if "C++98 exceptions" are still really slow, which makes no sense.
 
I remember when we hated that article in here.
People still talking about it?
 
@Rapptz The OP wants to know about C++98 exceptions. So the asker is probably not up to speed on the state of the art.
 
Oh wrong article. Whoa totally getting late. Should sleep
 
@Rapptz What's this hated article that you speak of?
 
8:56 AM
Some guy saying he switched from C++ to X language in his project because exceptions were slow as all fuck for him
It was linked like 6 times here or some high number
 
@Rapptz Did this guy's code look anything like Java, by any chance?
 
Honestly I forget I'm trying to look for it
 
Java code uses exceptions all over the place.
 
@Insilico But Java is exceptional - exceptionally bad.
 
yeah, java programmers tend to like to wrap everything in a try block, I cannot work out why they do not try to reduce to scope of the try block as much as possible... bleh, java
 
9:02 AM
Java programmers - they have their own definition for logic
 
@TonyTheLion if Java xor smart and not C++ throw "I have no idea what I am doing"
 
hi...
 
...
 
hi fellow programmer thecoshman
 
...
 
9:07 AM
...
 
...
 
...
 
so I said to Mables I said '...'
 
well I had something to ask about my code man. umm....but I think my question better suits for codereview.stackexchange.com I want to thank you the guy who gave me the advice.. like send him a message or something...and I thought well... I gotta ask someone but i can't post it on the thread, so I decided to go chat room and ask people about it.
 
thank you so much
 
9:09 AM
I feel the need to explain my situation because I often get bashed for being pointless in my thread and eud up being downvoted...? Man... I am so insecure.
 
o_0
 
¬_¬ think of this as a pub... you should do well
 
@user1217203 I'm confused. What are you trying to ask?
or say
 
I want to send a message to this guy stackoverflow.com/users/176922/honk
just to say thank you, u know
 
9:11 AM
you can leave comments in your question saying thanks
 
I deleted it >< ><
 
SO does not offer a way to directly send messages to other people, but if you think it should, check out meta
@user1217203 because...
 
@thecosh
@thecoshman because my question seemed inappropriate for this forum
 
(╯°□°)╯︵ ┻━┻
press up the edit messages
@user1217203 what forum?
 
@thecoshman this forum, stack over flow
 
@thecoshman i was asking wat was wrong with my code. I phrased my question with couple links explaining my understanding of the matters
 
@user1217203 ah... I don't really consider it a forum... secondly, 'overflow' is one word (apparently) finally, if in doubt, let others tell you what is appropriate
 
@user1217203 Just accept the answer and post a comment
 
@thecoshman am I supposed to click the small window that pops up every time I want to call u?
 
And if you want to thank someone, don't delete the question they spent time answering
 
9:14 AM
@user1217203 huh?
 
"Thanks for taking your time to help me, here, let me erase all evidence that you did it"
 
indeed, quite the dick move
 
@jalf oh man it was not really an answer but more of a comment
@jalf he said "Your intuition was right, I think this question is a poor fit for stackoverflow. I think you would have a much better chance of getting useful answers at codereview.stackexchange.com. – honk 8 secs ago"
@jalf and it was a comment actually.
 
@user1217203 I don't understand. @thecoshman just suggested you leave a comment under the question (or his answer). You said you couldn't do that because you deleted something
If what he wrote is still there, post a comment thanking him. If you deleted it, you shouldn't have done that
 
@jalf yes I deleted the thread as soon as I read the comment because I was afraid of getting downvoted... u know, getting downvoted scares hell of me.
 
9:17 AM
@user1217203 shit happens, get over it
 
@user1217203 then you can't thank him, and there's no need to do so :)
People generally comment on SO because they feel like it, not because they expect or demand thanks in return
If you do as he suggested, that's more than good enough
 
okidoki >< ><
@thecoshman @jalf thank you both of u, btw is there like intellisense auto complete function on this chat
 
@user1217203 You need to stop caring so much about reputation points on Stack overflow.
 
@insilico I don't... it's just I don't wana be banned.....
 
@user1217203 you can tab complete names, you can also use a decent browser that spell checks if you want
 
9:19 AM
@user1217203 You're not going to get banned from a few downvotes.
 
@user1217203 that's understandable. :)
 
@user1217203 you will not get banned for not knowing, it is carrying on once being told what is wrong that will
 
Now, if you posted several highly downvoted/closed questions, that's a different story. :-)
 
@Insilico true
oh I used to ask really stupid questions u know
I mean I was genuine about the questions I posted. I just did not know the right direction to head.
 
@user1217203 There's a difference between "stupid questions" and questions written with zero effort.
 
9:21 AM
@in
 
But as a rule of thumb, you won't get banned if you don't produce noise. Try to ask good questions, and spend a bit of time making sure you get them right, and do what you can to make them easy to read and easy to answer. And if people tell you you did something wrong, just try to do better next time. :)
 
@Insilico Both would likely be downvoted.
 
Actual politeness (as in saying thank you to everyone all the time) isn't really required
 
@Insilico but.. like I wrote like about a page, lots of effort but still I think back, it was more of trash
@Insilico a troll thread.
 
People generally help out on SO because they want to, not because they expect thanks in return
 
9:22 AM
@user1217203 I wished people wrote about a page on some questions. :-/ A lot of really bad questions assume we can read minds.
 
@jalf dat's .. um I think cool.
@Insilico I am not at the level of answering questions yet so I can't feel ya.
 
@user1217203 there are always some questions you can answer. :)
 
@Insilico I attempted to do so once, but only down-voted for basing my understanding on poor knowledge.
 
@user1217203 Bad questions almost always fall in one of two issues: the "XY problem" and "there's-nowhere-near-enough-detail-to-answer-it problem"
 
And don't be afraid of answering ones that already have (accepted) answers. You can still post a new one, and maybe it'll get an upvote or two
 
9:24 AM
@jalf mmmmmm maybe if it's really easy.
 
@user1217203 Yeah, but there are some really easy questions on SO :)
 
@user1217203 You won't get better if you don't try. :-)
Basically we expect that you do your own research and answer your own questions first before asking.
 
@Insilico @jalf I think SO kinda killed my self confidence... I feel less confidence. Feel great need to excuse myself.
 
Think of Stack Overflow as a last-resort option for programming problems.
 
Though it's worth noting that easy questions on SO are hard to answer since you'll almost certainly be beaten to it. It takes some time to build up that "touch". But once you have it, you can join the rest of the shameless repwhores.
 
9:26 AM
@Insilico seems legit
 
@user1217203 ofc you are, at the very least you can help try to point out where they are bad, which in turn will help you make yours better
@user1217203 and in turn, you learnt something, which is what this site is for
 
@user1217203 That's a very normal feeling when embarking on any sort of activity. And it's one you need to get over with. :-)
 
off to meeting
 
meeting!
I wish i had a meeting
 
@user1217203 Now that's a first.
 
9:28 AM
@Insilico I am not embarking on programming, but I guess far away from actually being able to feed myself with programming assets I have.
 
@user1217203 I meant "answering questions on Stack Overflow".
 
@Insilico oh.
 
@Mysticial but again, you don't have to be the first to answer
 
@Insilico OOC r u professional?
 
There's no harm in answering a question that already has an accepted answer
 
9:30 AM
@jalf It makes a big difference though.
 
you likely won't get as many upvotes as if you were the first to answer it, but it may still be good practice, and it might get you an upvote or two
 
@user1217203 As in "does programming for a living"? No.
 
If the question doesn't get a lot of attention, then being first means everything. If it's hot on the multicollider or something, only then will the best answers float to the top.
 
Am I better at programming than some "professionals"? Absolutely. :-)
 
@Mysticial only on the number of upvotes. If the goal is simply to get used to (and more confident with) answering questions, then it's no problem
 
9:31 AM
@jalf I try...maybe... OTL
@Insilico how could u
 
If you're sitting around saying "I can't find any questions I'm able to answer", then looking at questions that have already been answered might help
 
@user1217203 How could I what?
 
@jalf but wouldn't questions such that I can answer, be duplication of other questions on SO
@Insilico I don't understand, if u r not a professional, how do u elevate your level above other professionals.
 
@user1217203 well, they can't all be duplicates ;)
 
@jalf true.
 
9:34 AM
and it doesn't matter. If they haven't already been closed as duplicates, then who cares :)
 
true true
@jalf I may turn into a rep whore then?
 
@user1217203 Depends on what you mean by "professional". I only said I'm better than some "professionals" if by "professional" you mean "person makes a living by programming".
And unfortunately, quite a bit of them are mediocre programmers.
 
@Insilico umm talking about medicore programmers, I can't imagine of a way of being higher higher food chain programmer.
@Insilico can you not be a mediocre programmer?
 
@user1217203 As long as you try to write answers to be helpful, you're doing the best you can, so don't worry about that :)
@user1217203 you mean one who eats lesser programmers? :)
@user1217203 practice. Keep practicing and learning and improving :)
 
@user1217203 Yeah. By keep practicing.
As you try on more projects, you'll find what works and doesn't, and you gain experience.
It takes a long time. It's not something you acquire in even a few months time.
 
9:40 AM
1sec I am kinda lost
I have been programming about a year for recreational purpose and in class at college level.
at college level and in college, actually .
well we do stuff like building a simple ball that slides down an uphill in ASIII, which I think is just wtf.
 
@user1217203 How is that a WTF?
 
@Insilico WTF because it's just moving a ball across the screen based on sin/cos.
 
@user1217203 What's "ASIII"?
 
flash
 
Ah, AS3? kk
 
9:43 AM
@user1217203 I still don't see the WTF. That's a basic math/graphics skill, that surprisingly few people know of.
 
@Insilico true that some people have hard time but I am a second year student now.. I feel like I will never ever get a job after I graduate because all I learn is just
 
It's definitely of a higher level than the FizzBuzz test, IMO, and lots of supposedly capable programmers can't figure FizzBuzz out.
 
I guess less practical.
 
@user1217203 Less practical? The point moving the ball isn't learning how to move a ball in computer programs.
The point is to show how such a problem could be solved in code. Programming is inherently a problem-solving process.
 
If you wanna move a ball, you push it.
 
9:48 AM
@Insilico true.
hehehe
 
Sorry, wrong window.
 
@Mysticial Yes. Just call the move_ball() function. I'm sure it's in the C++ standard library somewhere. :-P
 
#include <ball>
 
@Insilico Is it in C++11?
 
well that was fun ¬_¬
@Insilico ball.push(it)
 
9:49 AM
@Mysticial No, I believe it'll be in the C++20 standard.
 
@Insilico Oh okay. Dammit.
 
I want to make a nuclear reactor management system and blow the world by getting stuck in STACKOVERFLOW
error
 
You know, when C++ finally gets a standard graphics library. :-P
 
@Insilico std::playground::ball<std::material::plastic> ball(0.5g); ball.applyGravity(uphill_instance);
 
@Insilico @thecoshman thank you both of u for answer my questions and ramblings of this young Pmer. I appreciate it.
and @jalf u too Mr. I appreciate.
I don't know the chat room just feel silence. Is it just me or a natural phenomenon
*fell
 
9:53 AM
@user1217203 Pretty much. Some of us have lives. :-)
 
remember, think of it like a pub
 
pub, like where u drink?
 
@user1217203 Yes.
 
10:09 AM
Kill what with fire?
 
-1
Q: overriding push_back c++

DalaiI have a class called Path that extends std::vector<Square *>, where Square is also a class that I have created. The Path will serve as guide for an Entity traversing a 2D environment. I have need of getting the longest path & shortest path acheivable, and therefore I am looking to fi...

That's what Lion means... kill it with fire
 
wow...
yeah... burn it.
 
Hey, anyone know anything regarding Qt, webkit and launching custom protocols?
 
10:28 AM
nope
 
@NathanDaly more effort then it's worth
 
Yes, yes, yes, a thousand times yes! Horrible, horrible, preprocessor hack that integrates poorly with the language, please die! — Konrad Rudolph 1 min ago
 
O.o Google+ deems it necessary to send me an email notification after I replied to a thread on G+
 
@KonradRudolph They're worried you'd forget G+ existed otherwise
can you blame them?
 
10:34 AM
@jalf But I just used it, seconds ago – hence the email in the first place
 
@KonradRudolph they're just playing it safe, I guess. ;)
 
I never go on G+.
 
"Hey dude, you may not know this, but you have just replied to someone by using the Reply feature. We are notifying you so you know that you don't have any new replies, but the person you replied to might have."
 
It's like the most uninteresting place on the Internet
@R.MartinhoFernandes lol
 
@TonyTheLion That’s actually not true, it’s a pretty good amalgamation of Twitter & Facebook and technically superior to both
but unfortunately I’m also not using it much simply because it’s hard to get a critical mass of people in your social circles to join it
 
10:38 AM
G+ is a good service, it just lacks the user base to make it able to gain the user base
 
right
 
G+ is a very nicely designed website. It's a pity that it's ignored by everyone.
 
I know I am, don't worry
 
@thecoshman It also needs to get out of my way. When I do try to visit it, I have to click past one or more "welcome" screens first, asking me to please add some friends or add information to my profile, or do a dozen other thinsg I just don't care about
 
It's like those empty glamour cities in China.
 
10:39 AM
well, I don't disagree, however I haven't found it to be of much interest, and also I have most of my friends on FB, and I'm too lazy to change
 
@KonradRudolph An amalgamation of twitter and facebook is a pretty uninteresting place if it doesn't have anyone using it
 
bleh, FB I was told a friend had posted an interesting video to there 'wall', I never did get to watch that video, even after spending a half hour looking for it
 
wtf do people do, still writing code for VC6?
that’s like developing for MSIE6
 
What? Where?
 
10:42 AM
2
Q: InterlockedExchange vs. InterlockedExchangePointer

Martin85What is the difference between InterlockedExchange and InterlockedExchangePointer? Are if( 0 != InterlockedCompareExchange( ( void** ) &_myVariable , temp , 0 ) ) and if( 0 != Interlo...

> I have to port code to VC6 …
=> no U don’t!
 
@KonradRudolph why is that question even getting so much upvotes?
 
Managers <= there's your problem — thecoshman 18 secs ago
 
@KonradRudolph oh gawd. He may as well kill himself.
I have added my own comment that should make this clear to OP, I hope.
 
I set events in motion that led to several big Os.
 
10:50 AM
big Os?
 
@KonradRudolph am I right in thinking that a perl OO function can be written so that it can work in both instance and class context? by checking what the value of '$_[0]' is?
 
@TonyTheLion Check UD.
@thecoshman Oh gawd.
 
@R.MartinhoFernandes that I am using perl, or that such a thing can be done?
 
@thecoshman Er. By OO you mean plain old modules or an OOP system like Moose? (I’ve never used the latter)
 
10:52 AM
@KonradRudolph perl has a thing where a module can not export stuff, instead you 'bless' an hash
 
@thecoshman That you seem to know what you are talking about and are talking about Perl.
 
@thecoshman Yes, that’s what I mean by “plain old modules”
 
@KonradRudolph ah, right, that
 
and yes, in that case the object accessor syntax is simply syntactic sugar
 
@KonradRudolph I noticed
I basically have a 'print_config' functions, that as a static class method I want to print the options that can be set but for an instance method will print the current options (such that they could be written to file). I say print, I really mean returning a list of magic
@R.MartinhoFernandes perl really is not that hard to understand or work with
 
10:58 AM
@thecoshman Yes, that will work
in fact, shouldn’t it be enough to check for the existence of $_[0]?
or @_ in a scalar context (= length) … if (@_) …
 

« first day (788 days earlier)      last day (4161 days later) »