« first day (1923 days earlier)      last day (3043 days later) » 

12:00 AM
@Prismatic True. if (x) y(); should be written as x && y();
 
@Puppy "it's dumb as shit to wreck your history to format things differently" does it, simpler
@OneRaynyDay don't write bull shit tests
 
@sehe Thanks again for the spirit help the other day. Btw, it seems you should inherit from x3::parser<self> instead of x3::parser_base
 
@OneRaynyDay Did you code the rest of your C++ with your eyes closed?
 
@sehe That's certainly helpful (if you can type well enough).
 
@melak47 Indeed. That sounds familiar. Thanks. (It did work enough so I didn't fret it. Yet)
@JerryCoffin I used to use anti-nausea medicin (Promethazine might be the one IIRC) - but these days my eye sight is sufficiently bad the goggles are enough (I mean, if I put them aside)
 
12:05 AM
@sehe ran into this when I wanted to decode a delimited list of signed_hex :)
 
@sehe If you have to do it again, go for the Dronabinol instead ("These drugs may be used to treat nausea and vomiting from chemo when the usual anti-emetic drugs do not work.")
 
About Italian language and gestures... that seems to be subject to change liveleak.com/view?i=298_1452989629
@melak47 great. Updating post shortly
 
what post?
 
@sehe Wait what? I'm not writing any unit tests :o
I'm not sure what you're saying
 
> BST
Acronyms. They are interpretable
 
12:19 AM
There's something about the aesthetic of bare bones guis that I really like
Its all so... functional
 
Ell
@Prismatic those colours are very bright
 
@melak47 I thought I had a post with parser_base. If not, all the better :)
 
Ell
I'd prefer more pastel-ey colours
 
Yeah you can tweak the colors but the point here is its more about maximizing functionality
 
@sehe ah. LOL
 
12:22 AM
ones you get into which colors you like you are slowly moving into the realm of design
Then you start saying... oh lets use nicer fonts, the proportions and spacing are all bad, etc
This is just like, bare bones raw functionality tier. Reminds me of really old user interfaces
 
Ell
 
you just dont get it Ell
 
Ell
No, I do get what you mean :P
I think that design is a little too barebones
are the last two things buttons?
 
@Ell what are those ... spots? Is that a camera picture or did you use ThePhD's jpeg encoder?
 
Ell
I think it's the objects rendered in the background
 
12:27 AM
Actually it looks as if it's a scan of a polaroid (that was left out in the rain for a bit)
@Ell Ah, that would explain
 
@sehe Clearly water lodged in your monitor.
 
@sehe They're just (perhaps mildly modified versions of) the spots in the shot @Prismatic posted.
 
@Ell What software?
 
Evenin'
 
I managed to find the C++ change concerning return and move semantics: it appears that I mistook DR 1579 for a C++14 change the other day and also thought that it changed more things than it actually does.
 
12:32 AM
Oh yeah, morning.
 
My mistake, once again.
 
Ell
@MarkGarcia not sure. ask @Prismatic
 
Oh wait, it does target C++14.
 
The lib used to create the gui is imgui, no idea what the actual application is
 
so return t; and return (t); would invoke different constructors. Interesting
very cplusplussy in a way
 
Ell
12:35 AM
yeah
 
@Ell layout_width="match_parent" Hilarious!
 
In trying to figure out how to design a ListView for my gui lib I'm looking
at the source code of other gui toolkits to see what they do
 
user406009
@Prismatic Are you doing an immediate or retained mode gui?
 
retained
 
@AndyProwl The parens aren't really the point here. The point is that it first tries to look up the ctor and do overload resolution as if the object being returned were an rvalue, then if and only if that fails, it does it all again, but treating the object to be returned as an lvalue.
 
Ell
12:39 AM
what is a ListView here?
is that the one with rows & columns of data?
 
@JerryCoffin but it does that for id-expressions only
so not when the parens are used
 
@AndyProwl That's certainly not how I read it. "...when the expression in a return statement is a (possibly parenthesized) id-expression...". The "possibly parenthesized" certainly sounds to me like it applies when parens are used.
 
@JerryCoffin Ah. Whoops. I missed the parenthesized part about parenthesized expressions.
 
@AndyProwl As usual for the standard, the mundane is emphasized, while the crucial is subtly (or not so subtly) hidden. :-|
 
:D /cc @Borgleader @ElimGarak @TonyTheLion @ThePhD @Xeo @набиячлэвэлиь
 
12:46 AM
@JerryCoffin Yeah, this wasn't subtly hidden. Brain fart count increased.
 
@jaggedSpire Definitely deserves a bigger link.
 
@JerryCoffin I do enjoy my red pandas
 
@Ell Yeah, typically used to display some kind of data in a list-like container
 
@jaggedSpire your CC list is growing lol
 
also, baby fox /cc @Borgleader @ElimGarak @TonyTheLion
@AndyProwl yep
 
12:47 AM
ah, it shrank now
inb4 stars
 
Ell
@Prismatic like this^ ?
 
That's a tree
 
@AndyProwl My God, it's full of stars!
 
Well that could be a listview as well
 
Xeo's only asked for the red pandas, and Borgleader, Elim and Tony are the only one's I'm fine with assuming are okay with getting repeatedly pinged with cute animals in a short time span
 
Ell
12:48 AM
^this then?
 
Yes, that's the most basic version
 
@Prismatic IMO, it's probably better to only have one control. A list view should be just a tree with everything at the same level.
 
I'm trying to figure out a good way to deal with a large number of items. You need to know the size of each item to have the right dimensions (for correct scrolling) but loading all the items is prohibitive. There's no problem when the size of all the elements are the same, but once they start to vary ...
@JerryCoffin I might do something like that later... wanna stick to the simple case first
This is also a ListView
Note the elements with different heights
 
@Prismatic Each "object" stored really is an object, complete with a member function to tell its size (or you can go the Windows route, and send (your equivalent of) LB_GETITEMHEIGHT messages to the list's owner.
 
12:53 AM
@JerryCoffin The problem with that is you have to instantiate the object to get its height
 
@jaggedSpire can we be friends :3
 
Fine for a couple hundred objects maybe
 
so who was disappointed by Star Wars here? o/
 
What happens when you have thousands?
 
Ell
I would rather have the lists model separate from it's renderer
 
12:53 AM
@Borgleader :3
 
Ell
I'd have a ListItemRenderer or something I suppose
 
user406009
@Prismatic People deal with the "thousands of elements list problem" in JavaScript by manually paging items in and out.
 
Ell
which goes through each item in the model and renders each
 
@Lalaland That part is fine if you work your way down from the top because then you instantiate all the objects you need (for size information) up until the point you are 'viewing'
 
Cuddle time! /cc @Borgleader @ElimGarak @ThePhD @TonyTheLion @Xeo @набиячлэвэлиь
 
12:55 AM
But say you have a really large list and someone wants to jump down to the 5000th item
How far down is that?
 
@Prismatic You only get the heights of the ones that will actually be displayed at a given time.
 
@JerryCoffin But you need to know the 'position' of the list relative to its entire size to be able to scroll it
 
Ell
I wonder how to implement a terminal emulator
 
You can estimate the average height for the entire list and do stuff like that but it gets messy which is where I am right now
 
Ell
I'm confused, I don't see how the items in that list are different heights
 
12:58 AM
@Ell The section headers ('A', 'B', 'C' etc) are part of the list
 
Ell
I would not say so
 
user406009
@Prismatic Fake it then.
 
Ell
They are not part of the model
 
user406009
Make the bar on the right very approximate.
 
user406009
12:58 AM
Do your average height thingy for large enough lists.
 
Ell
The items in the list are the songs which are all the same height
 
@Prismatic Not really, no. You just draw items starting from the Nth item, and keep drawing until you reach the end, or just run out of items (in which case you probably re-draw, starting from the end, and going up until you reach the top). You can run into a little bit of a difficulty with drawing the thumb in the right position, but there it would make sense to draw it based on item count rather than position based on item heights.
 
user406009
@JerryCoffin One difficultly is if someone drags that thumb bar through thousands of items.
 
Mostly though, if somebody's putting thousands of items in a list control, they get pretty much what they deserve. They usually just shouldn't do that in the first place.
 
@Ell Its just an example; sometimes a proxy model will insert those section headers into the final list that is displayed.
 
1:00 AM
@Lalaland Not really. You're still just computing the items to draw based on percentage of total number of items.
 
user406009
@JerryCoffin Well, I'm saying if they scroll really, really fast.
 
@Lalaland like "bzyuuuuuum" fast? or even faster?
perhaps borderline "wooosh" fast?
 
Ell
@Prismatic I'd stick with my original thing anyway
 
@AndyProwl yeah, consistent in a weird way
 
@Ell What original thing
 
Ell
1:02 AM
Have a ListItemRender which you pass a listItem and it draws it, or calculates the height
 
@Lalaland You aggregate movements and only redraw as fast as the monitor can display.
 
Sure... that doesn't solve the problem here though
 
Ell
You have a list view renderer which goes through each visible item in the list and draws it
What is the problem? O.o
 
@Morwenn Why are you even reading these? I'm in awe, but what do you need it for?
 
@Ell Figuring out where you are in the list
 
1:04 AM
...why not run an accumulator function across all the elements, storing their initial position relative to the start of the list, and then doing a search for the start of the window on that list when it moves?
 
@EtiennedeMartel our tax dollars at work :P
 
@jaggedSpire Consider a new style :D
 
That's the naive brute force approach. It forces you to instantiate each element before the one you want to draw to figure out where you need to draw the current one.
 
Ell
I guess sum items until it is gte scrollY
 
1:06 AM
@jaggedSpire Largely because it makes it slow to create (for example) a list with thousands of elements, and may waste quite a bit of time calculating data that's never used.
 
Oo look, what a beautiful graph, more markets are turning into bears
 
@JerryCoffin that
 
@sehe It was just mentioned in "porting to GCC 5" as a breaking change. I generally only read the accepted/rejected ones after the meetings.
 
I think I'll keep an average and then adjust the list bounds on the fly as I traverse it... I feel so lazy though :[
 
1:07 AM
Yeah, I've got pretty much nothing to do all day long.
 
@JerryCoffin ah
 
@Morwenn still :) But I'm happy to know you're not all wizards that eat proposals for breakfast and digest DRs during yoga
@jaggedSpire Didn't pay attention. Should work, have been using often
 
@sehe I would love to, but many proposals make by brain explode. That said I always like it when a new mailing is available.
 
Which mailings do you subscribe?
 
Ell
I don't think I understand the problem really but hey
 
1:09 AM
I mean the C++ proposals mailings, a few times a year.
 
Ell
Linux foundation now only gives sponsors voting power
Such a shame that even the Linux foundation is "corrupt" :(
 
@Ell Not corrupt--just a business.
 
This chat is a list view with elements that have varying heights :]
 
@jaggedSpire warning: assholery
 
@Ell Voting for what?
 
1:13 AM
Hey guys! Sorry for asking so often, but I ran into another error that I can't google effectively. Here's the code if anyone's down to read about 10 lines (Sorry about the numbers on the side, I'm using vim with a plugin): pastebin.com/SkG2dczm
 
@Borgleader cat be cattin'
 
It's giving me an error of: 'BinarySearchTree' is not a class, namespace, or enumeration
I searched online for possible causes of this error, and I found most to be enums problems, and some with not completely closed braces. Some say there's duplicates(but I checked multiple times that I didn't make 2 classes called BinarySearchTree)
 
it's not a class. It's a class template
 
Ell
@JerryCoffin it is not a business - its a non profit
@MarkGarcia voting for the directors
 
Non profit business.
 
Ell
1:15 AM
I suppose one would have to define business
 
@OneRaynyDay template <typename T> BinarySearchTree::BinarySearchTree() -> template <typename T> BinarySearchTree<T>::BinarySearchTree()
 
@Ell Being busy.
 
@jaggedSpire Oh I see. I thought a class template was just a class with a template(redundant but I hope you got the point)
 
@Ell It still has costs to cover
 
Ell
This stems from one of the members of the Software Conservancy wanting to stand for director
 
1:16 AM
Thank you! I didn't know I had to specify <T> there. It was a bit hard to realize from the error code :)
 
Non-profit means it's not profit-oriented, not that it can exist without money
 
Template error codes can be quite inscrutable.
 
So, who's eyeing zCash yet?
 
buttocoin
 
Ell
@CatPlusPlus I understand that it needs cash
 
1:17 AM
@OneRaynyDay You don't learn a programming language from the error "code"s.
 
@jaggedSpire I see :) Thank you again! I'm surprised noone had this error stemmed from templates on the first page of google/stack overflow
 
@Ell At least as I see things, the majority of "not for profit" organizations are really businesses (and the Linux Foundation seems to fit that model quite well). If the Linux Foundation differs, it's primarily by being (essentially) an appendage to other businesses rather than being quite as much of a business in itself.
 
@sehe You're right - I hardly learn it at all (university classes)
 
Stop psychic reading error messages then. Instead, read a constructive book on the language features you're learning.
Many good books are available. Some probably for free
4267
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

 
@sehe Ah, thanks for this! Unfortunately I feel like my time for reading books is a bit limited at this moment - a little caught up on Cracking the Code Interview and Effective Java, on top of a lot of stupid college classes that take up 80% of my time
 
1:20 AM
@CatPlusPlus Non-profit doesn't even mean it's not profit oriented. It just means that if it turns a profit, that money can't be distributed (directly) to the owner(s). On the other hand, many (especially smaller) businesses run at nearly 0 profit in any case, and what would otherwise be profits are paid to owner in the form of salary and bonuses (those are taxed less than directly distributed profits).
 
@OneRaynyDay You'll waste considerably less time. And I'm not even talking about that of others
 
Definitely bookmarked and will read later though :)
 
Here's a free book list: github.com/vhf/free-programming-books/blob/master/… (doesn't come with endorsements, but some might have been reviewed in the SO post too)
 
@sehe holy christ that is a lot of books
 
@sehe A boatload of criminals probably are :)
 
1:22 AM
haha there's even 7 books about vim - this is crazy
 
Helloooo from prob & stats
 
hello from your mom's
 
"Bad guys will use anything." @zooko https://z.cash/blog/helloworld.html @ZerocashProject #Bitcoin #blockchain #AML https://t.co/XFHVP8e5qj
 
@ThePhD hey <3
 
@OneRaynyDay call me maybe :)
 
Ell
1:23 AM
I would still call it corrupt as the company claims to want to foster the growth of Linux who's freedom relies on the integrity of the GPL license while simultaneously preventing someone actively trying to keep the integrity of the GPL becoming a director
 
@sehe Anyway, I dont have any specialized hardware to farm it, so its not worth it.
 
@ThePhD 'ello
<3
@sehe you just couldn't resist could you
 
@sehe heh
 
:D
 
@Borgleader How's it going?
@AngryLettuce Is she doing well?
 
@ThePhD im doing ok. yourself?
@TonyTheLion I miss you bby <3 <3 <3
 
No she's doing me
 
She's in the matrix.
 
@sehe Hi sehe! I'm a hot single in your local area - wanna meet up? :* <3
 
1:29 AM
Joking, he's in the matrix.
 
She is the matrix.
 
rref(she)
 
@Borgleader I'm alright. Tomorrow should hopefully be the last day of academic administrative work (getting that summer course approved). Then the last Trench Fight will be getting the insurance to stop trying to charge me.
 
@ThePhD gl w/ the insurance company (fyi, irta "french tight")
 
@Borgleader Zing. Thanks.
 
1:32 AM
@Borgleader kinky
 
@jaggedSpire That's my line!
 
@ThePhD you were otherwise occupied
 
Huff.
 
@ThePhD Tell you what, to keep it fair, you can lure someone into torment next time
 
@ThePhD summer course?
 
1:34 AM
how does that sound?
A little catfacing always does me some good
 
@ScarletAmaranth Yeah. Taking "User Interface Design" over the summer to let my Senior year be super duper light.
 
@ThePhD taking a class over summer - lol
 
Ell
Should I buy a cooler masted cm storm blue for £32 new?
 
@Ell irta as "Should I buy a coder named ann storm"
 
@ScarletAmaranth I mean. I'm in the area, it's a state school so its (comparatively) cheaper, and it makes my senior year easy AF. Can't... argue with it.
 
1:37 AM
@ThePhD I think I can argue with taking courser over the summer, but it's your life to waste :)
 
@ScarletAmaranth vOv
 
user406009
@ThePhD Wait, are you going to be able to take the class and do an internship at the same time?
 
user406009
Online class?
 
@Lalaland In-person. I can handle it.
 
user406009
Local state school I guess?
 
1:41 AM
Yeah
 
@ThePhD why would you want to do that?
 
@ScarletAmaranth The in-person bit? It's required by my Uni. Must be in-person instruction: online-only courses don't count.
 
@ThePhD I mean the idea to push oneself to rush after something while missing on other things
 
user406009
I've taken summer school as well.
 
user406009
The summer before college.
 
user406009
1:44 AM
Good way to get stupid general ed courses out of the way.
 
@ScarletAmaranth I'm not really... gonna miss out on stuff.
 
@ThePhD vOv I was just wondering
 
Guys I ate a ghost pepper.
 
user406009
@ScarletAmaranth he is trading summer time for more university time. It's a valid trade.
 
Gosh my head hurts.
 
1:46 AM
> Visual C++‘s compiler back-end team (codegen/optimization) is hiring: t.co/HU95r9L87U
 
user406009
@sehe maybe they should start showing job advertisements in their ICE error messages.
 
@Lalaland no thanks
 
wow. that's cynical
 
@sehe FWIW, this particular job appears to be in generating native code for managed languages.
 
@JerryCoffin huh, why did STL emphasize C++ compiler there twitter.com/StephanTLavavej/status/689985551919943684
 
1:52 AM
/cc @Puppy ^ Join the team so we have someone on the inside!
 
@sehe Dunno, but the ad says: "Come be a part of the team responsible for delivering the power and performance behind .NET Native. This small, focused group is leading the cutting edge by bringing the world of native compiler technology to managed languages by delivering code generation and optimization technology to .NET Native. "
 
> .NET Native
Ok
 
Huh. Compiling CLR stuff to native code? NGen, but actually at compile-time (and not run/load-time)?
 
aka. forget about F# Deluxe ®
 
@ThePhD I had forgotten all about that initiative
 
1:56 AM
@ThePhD Something like that, anyway.
 
Sounds neat.
 
@sehe Never
 
Duly noted
 
@ThePhD why do you hate Puppy
 
@jaggedSpire He can make it better.
He can be the hero.
 
1:58 AM
> I am using OpenCL to parallel Computational Fluid Dynamics codes. Using same piece of codes I compiled using visual studio with same settings to create executable on Windows 7 professional.
> edit 1: floating point is used.
ok
 
what a revelation
I'm not sure my understanding of reality survived that
please excuse me I'm having an existential crisis now
@ThePhD Shoveling manure out of a barn makes the barn better. It doesn't mean I sentence people I like to that fate
I mean I wouldn't anyway because I have no barn and no barn animals
 
barn everything
this user has been barned for 5 days and cannot chat
 
Barn Stroustrup
 
Barney Stroustrup
 
@MarkGarcia Who'd have thought a programming language designer would be so good at picking up women?
 
2:05 AM
How to download exe file using c++ or curl?
 
this user has been burned for 5 days and is now quite edible
 
@JerryCoffin sparklebjarne
 
@MuhammadRaza Is there a third option?
 
@CatPlusPlus delicious
 
@jerrycoffin don't understand?
 
2:08 AM
@MuhammadRaza I'd probably use something other than C++ or cURL, given a choice.
 
@jerrycoffin i download txt or log file using c++ with curl. But when i try same method with exe its not work.
 
user406009
@MuhammadRaza use libcurl for C++. Read the docs for instructions. Make sure to use HTTPS.
 
Well just call "exec"
 
user406009
@MuhammadRaza what do you mean, it doesn't work?
 
I assume you are trying to write a computer virus. You will need to mark the exe as "executable" for it to run.
 
user406009
2:10 AM
Does your computer burst into flames?
 
It's feeding time.
 
@Lalaland I use this code but exe extension stackoverflow.com/questions/1636333/….
 
user406009
What error are you getting?
 
user406009
Did you make it executable?
 
user406009
Is it the right program for your OS/machine?
 
@Mikhail is that Bucket Seal?
ah, yes it is
 
@Lalaland CURL_COULDNT_RESOLVE_HOST(6)
 
user406009
I think that's rather self explanatory.
 
@Mikhail That thing is massive
 
2:12 AM
@MuhammadRaza Check your privilege DNS.
 
user406009
Did you make sure the file is accesable using a browser?
 
@Lalaland yes.
 
@AngryLettuce which is why you shouldn't take its bucket
 
Time to leave you all ♥
Stay floof!
 
byeeee~~~~
lots of love
 
2:13 AM
me too
 
@Morwenn Later.
 
user406009
@Morwenn good night
 
@MarkGarcia @Lalaland DNA is ok. I am able to download text file and log file but not exe?
 
:)
 
@MuhammadRaza Maybe you're doing some localhost stuff. Check your hosts file.
 
2:14 AM
@MarkGarcia yes i am using localhost.
 
@Morwenn <3
 
When most people ask us for C++ help, the room responds with vitriol, on the other hand when this guy is writing a computer virus everybody is helping him out. Good work.
 
what guy
isn't C++ a computer virus anyway
 
user406009
@Mikhail there are legitimate uses of curl to download exes.
 
user406009
Mainly for install scripts.
 
2:21 AM
I solve the problem. Problem is my small brother change address localhost/a.exe to http:\\locahost\a.exe.
 
@Lalaland Like when installing the Ask toolbar?
Any legitimate user would use an existing installation framework.
 
@MuhammadRaza try escaping the slash too
also rename a.exe to hotgirl.jpg for better obfuscation
 
The cool part is that windows will ignore the file extension by default! All you need to do is fake the icon, and you're set.
 
@Mikhail Based on my experience with existing installers...well, let's just say I'm pretty sure anything I wrote would just about have to be an improvement.
 
Ell
2:26 AM
@MuhammadRaza local host? Hmmm. What's your public facing IP address?
 
@AngryLettuce hahaha.
 
@Ell 169.254.35.12
 
@Ell I am using 127.0.0.1.
 
@Ell I'm pretty sure it would nat go through though.
 
@MuhammadRaza lol me too
didn't know that was possible
 
2:34 AM
@AngryLettuce not like girl.
 
it's okay to be gay
 
@AngryLettuce Next up, the amazing router! It slices, it dices, it frappes. Sometimes it even downloads porn.
 
pornify.me
 
porn.ly
Pretty sure that exists.
 
pornify.me doesn't
sad
 
2:35 AM
time to register
 
porn.io tho, should be weird.
 
@AngryLettuce Not like girl its not mean gay. Difficult to mange. If you talking about boy double shit.
 
stop it right there you sexist mysoginistic homophobe
 
@AngryLettuce If in this world kill is allowed. I first kill my boss.
 
Understandable
 
2:38 AM
@AngryLettuce He ask me to complete coding in 10 days during my final university exam.
 
> // FIXME the logic below seems pretty shady (and definitely not slim!)
younger me is such a punester
 
Ell
Lol
 
user406009
@AngryLettuce younger you also seems like an ass for doing poor work.
 
user406009
You clearly need to confront younger you's manager and complain.
 
2:41 AM
@Lalaland not my code
and besides nobody cares about quality here
 
user406009
Twas a joke
 
It triggered me
Are there any good naming conventions for events things
Like some_type::event_raised or some_type::on_event_raised
Or is it the usual C++ FUD
 
2:57 AM
signals, slots, connections; the terms always confuse me though
 
usually it's on_event
 
cough. That's... MFC or WinForms, perhaps
 
because ATM I have some_type::event_raised which is the even source and some_type::on_event_raised as the even sink
 
Isn't Winforms Object_onEvent?
 
Depends a lot on context. The casing is odd at least
@AngryLettuce I'd really prefer raise_event on the source side (on_event_raised seems fair)
 

« first day (1923 days earlier)      last day (3043 days later) »