« first day (990 days earlier)      last day (3967 days later) » 

8:00 AM
@Xeo just a slow typist :)
 
@Xeo Just nice of you to be polite
I feel like writing a C++ question today. Any ideas?
 
mawning
 
Ell
Morning
 
I feel like putting the cart before the horse today :)
 
Ell
What is powerful about std::equals in c++14?
 
8:08 AM
@Ell I believe it's called 'transparent' now. Basically: polymorphic (so it can 'equate' asymmetrical argument types)
 
You mean std::equal?
 
Yes
 
Xeo
@StackedCrooked No, std::equal_to
 
Same for std::plus, std::less etc
 
Ell
Right
 
8:09 AM
@Xeo Or that. Who cares. It's the thing you need when you need it
 
Ell
I'll have to look in to this when I get home
But I'm at school. So bye now
 
13 mins ago, by Xeo
Also, I have reached the point of semantic satiation for "equal".
 
Xeo
^ is the original proposal, I believe.
15
A: Why is the measure of lag amplified differently between two servers?

BrantIn a nutshell: There's more to lag than just your ping time. Imagine that as you play LoL, every time you move, a helpful gnome scribbles something on a piece of paper and stuffs it in a manila envelope. The gnome gives the packet to a courier, who hops on a train bound for the Central Server to...

Nice answer.
 
@Xeo Really nice.
1 message moved to bin
 
In this code if default: is executed will the counter still increment?
 
8:18 AM
Dammit, split second before me.
 
You're here!
 
why??
 
@user2345661 try it? That's what debuggers are good at. We're not debuggers. Also, 2345661 is surprisingly almost prime: 260629*3*3
 
Jun 28 at 16:22, by thecoshman
If you are new here, please read the newbie hints and keep the acronym list under your pillow. Thank you.
 
@user2345661 also, last time I checked the for loop was independent of the switch. Try removing the switch completely. Will the counter still increment?
lol:
 
8:21 AM
Just making sure I don't miss any garbage. :)
6
 
lol
Garbage Collector Mysticial.
 
LCPPE002: stray period at end of line
 
garbage collectors are as fast as this:
 
-1
Q: Is it bad to not understand jquery plug ins?

L4UROIs it bad to not understand jquery plug ins? I want to start using plugins. I am not copy cat,and do you try to understand jquery plugins? Is it bad to use them without understanding them? Not how to use them,but the plug in.

You should feel bad. How dare you use something you don't understand?
Oh wait... C++. Nevermind.
 
8:33 AM
where are the garbage collectors when you need them?
as unreliable as Java garbage collectors
but we are in the C++ lounge
 
Interesting.
@Jeffrey Hm.. Is that sarcasm?
I can't readily tell.
 
Yeah, don't worry, it was bad sarcasm anyway...
 
Ah okay. Cool.
 
what about smart pointers?
 
@AaronKyleKilleen As in, a smart pointer to the bin?
 
8:45 AM
no I mean as garbage collection, are also slow?
 
@AaronKyleKilleen Both have their ups and downs. But these guys appear to be talking about moderating this chatroom.
 
oh
that's a different kind of garbage collection
 
@Jeffrey "help I don't know how this plugin works, am I stealing it??!"
 
lol
 
Is there some kind of regional internet outage? Whois.net isn't loading for me… I'm in Asia…
 
ooh thx
 
Xeo
@melak47 isup.me/whois.net ftw
 
@Xeo yeah, just saw that now :p
 
ah, no there's a better one which checks several regions
 
maybe your country has been annexxed by china or north korea, and you are now under the protection of one of their firewalls? :)
 
8:56 AM
or perhaps your walls are on fire, melting your internets
-11
A: CSS: fixed to bottom and centered

James ConigliaroTry using "position:absolute;bottom:0px;" instead of "position:fixed"

burn
 
we had this problem in our android/web app, that you could select any text everywhere, on buttons etc...turns out there's a nice more or less cross platformy CSS thing to turn that off. Also turns out it doesn't work on android. blargh.
and there's this javascript sqlite interface provided by phonegap, which says "database size is not important on android", but if you make it too large it goes nuts and lies to you about inserts working
 
user142019
Use PostgreSQL.
 
9:17 AM
do you people use Visual Studio?
 
yes
like there is something else to use
 
so how do these so called hints work with the sets and the maps?
 
Is it allowed to advertise my question here?
 
it's not allowed to ask if it's allowed to ask questions.
 
i will do it
0
Q: How to open/load a vsix file

Ankur SharmaI have a VSIX file which looks as follows - When I try to open it (by double clicking), it asks me to choose a program to open with... Like this.. I dont know what to do here. Can somebody tell me how I can install MvvmLight using vsix file? I am using Visual Studio Ultimate 2012.

 
9:25 AM
I guess you can open it in a notepad or not
 
I mean how to run/install the extension in VS2012
 
try open it with VS version selector
 
ok wait let me try
omfg... it worked
i am so stupid ... I should have known that
thx
 
ITT the Lounge helps. Maybe we should celebrate it since it happens only once in a month.
 
what is ITT?
 
9:34 AM
"in this thread"
 
JBL
Ok, so breaking one class implementation in multiple .cpp's is possible. Now, is it good practice ?
"It's possible, but is it good ?" - Every Cpp programmer about quite every Cpp feature...
 
Ell
Aww my battery is running down
Coliru should become an online IDE in cloud space. I would pay for that
 
Xeo
@JBL Why are these two classes so tightly coupled anyways? Your design probably just sucks major dick.
 
JBL
@Xeo No I'm talking about one class, for which I want to put a certain set of its member functions in a .cpp, another set in another .cpp.
(But my design probably sucks major dick anyway)
 
@JBL Make them nonmember functions
What would you gain by spreading member functions across multiple source files? Why would you do it?
 
JBL
9:48 AM
My first cpp is getting quite big in my opinion.
 
have you considered making the class smaller then?
 
JBL
(And for the subset I want to move in another file, that's not possible => overloads)
Yes.
That's my Qt mainwindow.
 
@JBL and?
 
JBL
And I don't really know how to cut that in smaller pieces..
That makes me not really fond of GUI related programming :<
 
@JBL look at each member (variable or function), and ask yourself (1) could this be implemented as a free function, and (2) could this be implemented in a helper class which my main window could delegate this responsibility to"
 
JBL
9:50 AM
I know this approach, and I tried to apply it.
But at some point, you got to list the smaller part of the UI (like menu elements and so on).
And the member functions are mostly slots.
 
@JBL But you don't have to have them in the same class.
@JBL They could be slots on a different class. Or they could be slots which simply call a regular function in another class (making their implementation shorter and simpler at least)
 
JBL
@jalf Right. Though at this point, this kind of class would just act as a signal / slot forwarder.
 
@JBL Create a separate menu class. Hell, create FOUR separate menu classes, to each fill in different parts of the menu.
 
JBL
(I even already have one)
 
@JBL yes. Which would make it simpler, and allow you to delegate different areas of your UI to different implementation classes
 
9:55 AM
arhem. why would anyone ever get that hacky. You didn't even close the parentheses. That matches a dirty programmer's mindset, if you ask me. — not-sehe 29 secs ago
 
JBL
@jalf Mmmh, I thought that wouldn't make things simpler, as I have to connect the menu items clicked signals to various slots. But I still can forward these signals through the newly created menu class, and that'd make the same number of connect in the mainwindow, but at least the menu details wouldn't appear in the mainwindow.
 
@JBL Simplifying code isn't necessarily about getting fewer lines of code, it's about getting smaller chunks of code
Also, why do you insist that all slots must be on the main window?
Why can't you just define the slots on the menu class in the first place, if they're related to menu behavior?
 
JBL
@jalf They aren't.
Blergh, the more I look at this, the more this looks dangerously close to a god object at a small scale.
 
@JBL on some other helper class then. You just said that your main window class would become a simple signal/slot forwarder. So why not jsut move the slots to the class which is able to respond to them?
 
JBL
@jalf I did for some of them, but you're right, I could push that further for some other.
Just thought "there's work that needs to be done between different parts of the UI". Welp, just connect the different parts directly you idiot -_-.
 
10:01 AM
yawn
 
Never even heard the expression before
lawn mawer
yawn lawyer
loan more
 
@Jeffrey I don't get it
wait maybe I do
 
@Crowz Simple! Grant God permission to become you for a moment
 
@LightnessRacesinOrbit Guy on the left
 
10:10 AM
@jalf Are you suggesting someone to do things that make sense? How dare you do that in this place of harmony!
 
grrrrrrrrrr
I hate obscure problems
 
JBL
Well, thanks @jalf.
 
user142019
Morning.
 
0
Q: Parsing a variable (Php or C++)

TissueI encountered a question in a programming exam earlier this morning. It had this variable named strParse = A101619915589.2E76885B66182; The question instructed to separate each of the following content of the variable into their own variables strParse = A 10161991 5589.2 E 76885 B 66182; Code...

 
user142019
@AnkurSharma No, I use Vim.
 
10:12 AM
@Jeffrey yes he looks like a rabbit
 
we must have very different views on how rabbits would look like
 
yawn
sooo
Well, apart from ThePhd going shitstorm again, I haven't missed anything, it seems.
 
@Abyx trololololo
 
user142019
@BartekBanachewicz The Phantom Shitstorm
 
user142019
> If done right, C is still faster than C++. C++ may be bearable, but C is more "to the core", you are more in control.
 
user142019
10:24 AM
LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOL
 
@rightfold god do you have to shoot that BS in my face right in the morning?
 
user142019
I responded with "Stierescheiße."
 
LETS ALL BRAG HOW B IS FASTER THAN C BECAUSE IT IS FASTER THAT MAKES SENSE
 
It's fast, unsafe and hacky. td::copy/std::fill are equally efficient and fast (sic - no repetition there) and - gasp - typesafe. I value generic code that expresses intent. Simpler (note that std::fill will compile down to a __memset_sse2 call if the target arch and element types permit) — not-sehe 1 min ago
 
@not-sehe fix td
 
10:28 AM
woof
 
user142019
moo
 
oink
 
scott: this hour? :p
lol
 
user142019
@not-sehe explosie
 
10:31 AM
@ScottW way to go
 
user142019
Why is there a huge-ass grass field here.
 
user142019
They could remove it and build factories or offices.
 
Wow! @R.MartinhoFernandes THIS IS PURE GOLD
 
@rightfold Or, you know, maybe grow something useful, like weed?
 
@BartekBanachewicz ?
 
user142019
@not-sehe Hmm indeed, that may make a lot more money than offices and factories.
 
@BartekBanachewicz use replies dammit
 
@LightnessRacesinOrbit to what? his comment?
 
increased production of weed --> price goes down
 
@BartekBanachewicz yes
@BartekBanachewicz oh, it's a comment
 
10:37 AM
> There were some other incompletely cleared arrays in the code, but they are not of much interest.
lol.
 
REQUEST: Can we close this as a dupe of this one?
 
@BartekBanachewicz I like how he calls it a "software disease". memset and memcpy are regular cast members in his posts about errors found in open-source projects.
 
@KacyRaye why don't you... upvote that answer instead? We can mark this a duplicate then. This will help future SO users. — not-sehe 1 min ago
 
user142019
@not-sehe Sure we can!
 
I wrote a program to take a word count of all the words in this Moby Dick txt file I have and it worked properly the first time I attempted to compile it. It's pretty nice when it just works.
 
user142019
10:39 AM
@AaronKyleKilleen Okay.
 
@AaronKyleKilleen don't get used to it
 
@rightfold I'm not bragging or anything, I'm new at this, I was kind of taken by surprise is all
 
@R.MartinhoFernandes hehe
 
user142019
@AaronKyleKilleen Okay.
 
user142019
> It's pretty nice when it just works.
 
user142019
10:41 AM
You will love Haskell.
 
@R.MartinhoFernandes There's a reinterpret_pun lurking in there, somewhere
 
@AaronKyleKilleen Wait until your graphics code works at first try.
 
Hiya! In the project I work in I have noticed two different code styles, one with capital letters on private functions and lower case for the public functions, and one the opposite way around. what is the most common?
 
It's gonna be a good wait
 
@Bartek now that is significantly less predictable
 
10:42 AM
@AaronKyleKilleen IKR
@R.MartinhoFernandes is PVS studio free?
 
user142019
@Markus Most common in C++ for function names is snake_case or camelCase and sometimes PascalCase.
 
@rightfold Python just doesn't do it for me, I need something with more torque
 
@BartekBanachewicz Don't think so.
 
@Markus None. Casing is seldom used to differentiate accesibility, IME. I'd say Capitals for Classes. And lower_case for everything else (or camelCase if you don't to underscores)
 
@R.MartinhoFernandes so let's see if it's free for me, huh? won't hurt to try it out.
 
user142019
10:43 AM
@AaronKyleKilleen lolwot
 
user142019
Define "torque".
 
Torque, moment or moment of force (see the terminology below), is the tendency of a force to rotate an object about an axis, fulcrum, or pivot. Just as a force is a push or a pull, a torque can be thought of as a twist to an object. Mathematically, torque is defined as the cross product of the lever-arm distance and force, which tends to produce rotation. Loosely speaking, torque is a measure of the turning force on an object such as a bolt or a flywheel. For example, pushing or pulling the handle of a wrench connected to a nut or bolt produces a torque (turning force) that loosens or ...
 
Ok, thanks.
 
@rightfold Python is both slower and further from the metal than c++ correct
 
10:43 AM
Awesome WP onebox
 
user142019
19 mins ago, by rightfold
> If done right, C is still faster than C++. C++ may be bearable, but C is more "to the core", you are more in control.
 
@not-sehe GIF! BIN IT! :D
 
user142019
This is going to be an excellent day.
 
@AaronKyleKilleen Please don't.
 
10:44 AM
@AaronKyleKilleen The funny thing is, by analogy, I'd say Python has way more torque than C++.
 
user142019
@AaronKyleKilleen Python is much faster than C++.
 
user142019
Development-wise.
 
user142019
C++ isn't torque. It's torture.
 
Who cares about metal.
 
user142019
Ozzy Osbourne.
 
10:45 AM
There's just so much raw power to be had with a few lines of numpy code. It's not even funny anymore
@LightnessRacesinOrbit Ouch
 
user142019
@not-sehe Nooooooooo!
 
@rightfold I read on the internet that if I want to learn good computer hacking skills I need to learn C++
 
user142019
Hahahahhahaha "computer hacking skills".
 
@AaronKyleKilleen If you want "hacking skills" for the sake of them, learn C
If you want "computer hacking skills" as in: the computer will hack your brain, learn PHP
 
user142019
@not-sehe Assembly is totally more haxx0r than C!!1
 
10:46 AM
@AaronKyleKilleen ahahahah.
 
@not-sehe why do you never use your old name "sehe" any more?
 
because not-sehe
 
Well. It has to do with being logged in with a particular account. Allthough I'm beginning to agree there's not enough difference any more. I'm slipping back into "old" habits
 
10:48 AM
If you want to hack a computer use I dunno, a pickaxe?
 
@R.MartinhoFernandes Irrelevant. It doesn't even mention torque either
 
lol
 
10:50 AM
@BartekBanachewicz I do, sometimes. I hack git repositories with git log --pickaxe-all
 
@Bartek I use a HACKsaw, obviously
 
Obviously.
Now really, please stop saying dumb things about speed of programming languages
 
Well, let's look on the bright side. At least ColinM will have earned the 'PeerPressure' badge :/
 
@BartekBanachewicz 40km/h
 
Depends on the speed and direction in which the observer is travelling
 
10:52 AM
That's the speed of Python
 
This room is green.
 
@jalf That's slow.
 
I want to go back to the blue room.
 
speed of C = free falling
2
 
@not-sehe that would be relative velocity
 
10:53 AM
@R.MartinhoFernandes depends on what you compare it to. It's faster than you could run!
 
@jalf You have never seen me running!
 
@jalf The authoritative answer reads:
> Very fast if they want. Usually when being handled they are relatively slow but if startled or when striking at prey they can be fast (wiki.answers.com/Q/How_fast_can_a_python_snake_move)
 
I don't know why but Python seems more like a children's toy to me than a serious programming language.
 
@not-sehe Depends on the speed and direction in which the observer cpu is travelling
 
@AaronKyleKilleen Then you need to learn programming.
 
10:54 AM
I think I saw someone using a really cartoony IDE in some tutorial and I decided it wasn't for me
 
@Telkitty猫咪咪 Ow. I was just gonna say you managed a good C joke. And then you ruin it with a lame line like that... :(
@thecoshman Define absolute velocity
 
@not-sehe :P
point taken
 
@not-sehe and when a Cheetah runs at top speed, it overheats rapidly, and its brain is starved of oxygen
 
@AaronKyleKilleen Okay, maybe just go back to saying dumb things about the speed of programming languages... /cc @BartekBanachewicz
 
well, you would still normally taken a fixed reference point
 
10:56 AM
@jalf Wow. I didn't know. That's awesome
 
@AaronKyleKilleen that's a great load of nonsense you are able to pack in two sentences
 
two full sentences worth of nonsense?
 
@not-sehe hence, they tend to rely more on acceleration than top speed
 
you guys don't have a very good sense of humor
 
because apparently, evolution favors not getting brain damage when hunting
 
10:57 AM
lol
 
@AaronKyleKilleen because you are not funny?
 
@not-sehe yeah, spot on.
 
@Telkitty even if you don't think it's funny you should at least be able to detect when someone is being facetious
 
@Telkitty猫咪咪 he's funny, but doesn't make sense. There's no sense of humor
 
@not-sehe why make sense when you can make dollars?
 
10:59 AM
@AaronKyleKilleen How do you know we weren't playing along?
 
@AaronKyleKilleen Yes. Sorry. You're right. We forgot about that. In fairness, I think we never relocated our irony detectors since they were lost
@AaronKyleKilleen Good point. By that token, make war, not love!
 

« first day (990 days earlier)      last day (3967 days later) »