« first day (1188 days earlier)      last day (3985 days later) » 

05:04
people's opinions = info && != decision
meaning do listen but use your own brain to decide whether to act upon it
any info has at least 0 value
at least?
@Borgleader it's just motivating, but complete bullshit
@ScottW having a life for example
user3010322
@ScarletAmaranth A lean, mean, raytracing machine?
@ScottW I don't think the lounge was the authors intended audience
He wrote it to achieve the greatest benefit in the shortest period of time.
lol
jesus christ scott, get your shit together
@Jefffrey Thank you for stopping him before he started sending naked pics of himself to me
@ScottW I do, I just don't want the pics
05:21
i want to code in C++
dunno
maybe because the alternative (of studying networks) is more depressing
When I want to avoid doing things, I code in C++, when I want to avoid that, I come here
bah - missed your comment :(
@ThePhD yeah, I wish I had time to write it, have been busy since the beginning of holidays :( also, I think I'll do some major refactoring, I incorporated real-time rendering long after the raytracer lived, I would just dump stuff into bmp
Morning.
so before I get to doing interesting stuff once again, I'll have to refactor some shit
whatup dawg
sup
pretty shit, been mostly just studying recently, have had finals
(studying -> memorizing random crap)
because that's what my uni considers useful
so it would appear
@wilx Morning
My favorite final was thermal, there was some crazy phase diagram with step functions, and I had no idea, so I solved graphically by geometry on each step - the prof said I shouldn't do that, but the answer was correct
05:40
good news is
the next semester I have functional programming (with Haskell)
that's a free class
(dance)
what?
no!
how
I want an Haskell class too, damnit!
@ScarletAmaranth I wish I had that instead of one of my many bullshit classes
I asked some people who have done it
basically it's trivial
@Borgleader hahah, no worries my friend, I have my fair share of those
I envy you so much that I just stared your name with an angry face for a minute.
@Jefffrey Strong people don't envy others >.>
05:44
lol, dude, I have had stuff like psychology and sociology, want to swap?!
har har har
all the way man, all the way
that's what she said
do you have physic?
do you have a "logic" class?
I had physics one (that was the classical mechanics)
and physics two
05:45
ok, maybe I'll keep what I have
that was stuff beginning with electricity all the way to some basic quantum stuff
I hate physic with all my heart
I had logic class, yes, that was "Mathematical logic" or some such
also I had multivariable calculus
which was annoying to say the least
because you had to actually spend time getting practice in doing the specific kind of problems they consider important
oh and
don't get me started on my EE classes
107 people came for an EE final
and
6 people passed
there was a theoretical part of the exam which was IMPOSSIBLE to do
he wanted you to know 200 pages of random stuff by heart letter after letter
@ScarletAmaranth In an effort to reduce the emphasis on memorization, many professors allowed you to bring in 1 sheet of paper (laser printers allowed 6pt font making 1 page quite a bit), some allowed you to bring notes, or even text books, one professor made the mistake of allowing you to use "anything you can caryy in" - somebody carried in their TA
@GlennTeitelbaum You're kidding about the TA thing right?
05:53
@Borgleader Nope
He was a large guy, and the TA was a small woman
The most documentation I was every allowed was my laptop without Wifi
the most documentation I was allowed was... nothing
but many still cheat whenever possible, smartphones remember stuff well
@GlennTeitelbaum TA?
I've never seen anyone cheat in my exams but I've heard my friends in other programs say itwas more prevalant
@Borgleader here basically 80% cheat whenever possible, but it's rarely possible
05:59
@Jefffrey Teaching assistant
usually, there is ~1 guy for ~10 - ~15 people in a room, so good luck cheating
@Jefffrey Grad student assigned to assist the prof with the class
@ScarletAmaranth 1 for 10-15 that sounds like the girl to guy ratio in my program
06:01
@Borgleader mine is 1:100
we have ~100 people in the program
and
literally, we are 207 and there are 2 girls
7 girls I think
@Jefffrey My wife was going for her nursing degree - I spent a lot of time there, opposite ratio
you lucky bastard
06:02
well
one of them is hot
the rest are really meh
and the girls looked like nurses, not female engineers
stahp
I had a male friend in that program, and would hang out with him there before I started going out with my wife. One engineer asked my friend if he was gay because of his going to nursing school. I said, I have looked around his classes and yours, and would have come to a different conclusion
I have no idea how he actually paid any attention during class
when I say hot I mean... like, 9/10
9.5 on good days
@ScarletAmaranth She would have been ugly in the nursing classes I went to :)
06:08
@ScarletAmaranth what the fuck, either you post a pic or you shut the hell up... I'm getting horny
When you see a hot nurse, she has already aged compared to nursing students
i'm out
@Jefffrey You should rename to Jellley
5
@Jefffrey nite
06:53
crap day for rep, banner day for nice comments:
Lovely. Thanks Glenn — doctordoder 2 mins ago
07:24
I don't drive, but I'm rewatching Top Gear U.K.: @Europe y u have all the nice cars? :(
@GlennTeitelbaum In nursing school, I think it's pretty natural and inevitable to pay attention. TTBOMK they like to start first course day with changing bed pans and washing elderly patients?
This tends to make an impact that is quite likely to win from any existing distraction
@Borgleader @America Y u no taste? Y such greedy marketing?
07:41
If you go and edit standard examples, it's pretty useful to just mention what you changed. And whether the standard example just works (which likely is the case) — sehe 9 secs ago
Oh. I just noticed he hid that bit very cleverly inside parentheses between large code blocks
> Visual Studio 2013 update 1: avoid the RC if you use C++ By tim, on January 15th, 2014
08:00
@sehe I was talking about class lectures, and not all patients are elderly
wtf is wrong with that map question
I got downvoted for saying you can't randomly modify elements in a map
because it would invalidate iterators
what am I missing
ah, I shouldn't be answering stuff while studying xD
@Jefffrey Your point is actually valid and IMO good. What if the map was const?
@MarkGarcia s/You're/Your/
you are point is actually valid!
08:06
@MarkGarcia there's no such a thing as operator[] const because operator[] creates the element if it doesn't exists
@sehe as much as I hate to defend VC++, is his reasoning really that the RC fixes a bunch of bugs, but it breaks syntax highlighting which is more important, and an unrelated non-Microsoft plugin crashes"?
(you use at for that)
@Jefffrey was too clever --
2 mins ago, by Jefffrey
I'm drunk apparently
08:07
@Jefffrey your link cleverly omits the dash without explaining the need to do that - not everyone is as clever as you — Glenn Teitelbaum 1 min ago
Again, I'm probably drunk.
Ell
Ell
Also ASCII only
I brainfart too a lot apparently
@Jefffrey Again, what about find and lower_bound? (I really hope I got it right this time)
Welp, it's a dupe.
@GlennTeitelbaum LOL
@MarkGarcia I guess... it's because the keys are actually constants
nope, guessed wrong
08:11
@Jefffrey let's go plumbing together, programming is too hard
3
I'm in
@Jefffrey The comparator could be stateful and therefore a member.
@Jefffrey and damn, you're from italy, you've got this Mario ring for shizzle
@ScarletAmaranth Is that a reference to some comment of a question from yesterday?
nvm
08:14
@ScarletAmaranth Some blog post, most likely (I forgot what was it). The comment though yesterday, a rude one, mentioned plumbing.
umm, probably not
never mind
Correct question, keeping const-correctness in mind, would be: why should it not be const :] — stijn 1 min ago
We need puppy to comment on that one. (IIRC he hates const overload)
Well, that's right, I agree
make all the things constants
const is no big deal - you can just cast it away if it gets annoying :)
@GlennTeitelbaum And make sure to use C casts for terseness. :)
08:20
I actually fully agree with that statement and upvoted it
t:14098132 What do you mean, how else can you cast? (To be honest - that is the one vestige of C habits that is hard to kill - C++ casts look ugly to me, and unless I am in a code review environment I am likely to use it, but generally within a convert_to method (this means I can change it easily if somebody gets prissy)
@GlennTeitelbaum The purpose of C++ casts is largely to look ugly.
They do ugly things!
@jalf or lovely things
@GlennTeitelbaum remove the leading 't'? :p
lol, can't
@GlennTeitelbaum Well TBH i'm touching on WinAPI now and usually use C-style casts. However with the non WinAPIsh part of my code, I rarely use them, and in the very small occurrences where I do (which I think has just came ~4x), I use C++ style casts.
08:26
0
Q: Does const on value different const on array

KudoCCIt seems that const on array will cause the memory used to store the array mark read-only in memory. But why const on int won't do the same thing? Code is here: int main(int argc, const char * argv[]) { const int vv = 10 ; int * p = (int *)&vv ; *p = 5 ; // work well const int...

lol
I was just answering that
And in WinAPI, C casts are just as damn useful as they are evil.
@MarkGarcia I don't get that. They're no more useful than the less evil C++ casts
does C even have const at all?
C++ casts are uglier, true (which, I kind of see as a feature), but I don't see "usefulness" as an argument for preferring C casts
@Jefffrey const has a C
08:30
@Jefffrey sure
C cast IS a const cast (along with "another C++ cast")
in C++, C cast will go as far as to do const_cast and reinterpret_cast if need be
@jalf There are many WinAPI parts where a function both gets and sets something according to some parameter. C-style casts on getting out const is just useful on those cases (especially with its plethora of const non-const typedefs).
Anyway, that's just for WinAPI, and for terseness' sake.
@Jefffrey move along then he'll get bored at some point
I always cast pointer types through void * with reinterpret_cast is that required? X * x; Y *y=reinterpret_cast<Y *>(x);
@GlennTeitelbaum Perfect question for that: stackoverflow.com/q/573294/1619294
is it acceptable to say that void* allows polymorphism in C?
for a very wide definition of polymorphism
08:42
@Jefffrey Sure, it is acceptable to say most things. Feel free.
@MarkGarcia but a const_cast could do the same, so again, I'll buy the terseness argument, but not the usefulness one.
user1804599
@Jefffrey Yes.
0
Q: I don't know how to use salt

user2870245this is my register code: <?php session_start(); //Must Start a session. require "config.php"; //Connection Script, include in every file! //Check to see if the user is logged in. //'isset' check to see if a variables has been 'set' if(isset($_SESSION['username'])){ header("location: m...

lol at the title
That moment when you realize "wtf, I'm writing Kerberos code again?"
why does this keep happening?
@MarkGarcia this implies you can avoid the void * step - I just never thought about doing that -- stackoverflow.com/a/332086/2963099
@jalf That's not defending MSVC, right? That's summarizing the blog post. Yes, I read it in the same way
08:54
TIL I can use user defined literals to create 0_ptr as a compromise between 0 and nullptr
@GlennTeitelbaum lol
@GlennTeitelbaum nice
@sehe well, he's saying to stay away from the RC on grounds that sound pretty bogus to me. I guess pointing that out is a sort of defense of MSVC (or of the RC at least)
@GlennTeitelbaum, how though?
Alright.
After few weeks working Java stuff I conclude Java Generics are retarded.
09:00
@GlennTeitelbaum …as long as you ignore 42_ptr and the like, sure :)
@GlennTeitelbaum It was with explicit context. But you know, feel free to selectively disregard half my statement. Which was intended with a modicum of humour. (In case you ran out, buy some online)
@wilx You are slow :) Some things are nice, btw. But in the end, it's all moot due to the JVM implementation of things
Well, it is better than being hit by a train.
@jalf Oh. I was just posting it here, much like I post many other bold claims. It doesn't mean any kind of endorsement. Just informative. And in this case, entertainment value
@sehe I was replying with humor - there are some awesome looking patients that need sponge baths - so since you have the link....
@sehe I just want to write less code by employing generics but it refuses to be useful in the way C++ would work just fine.
09:09
@sehe mmm, modicum, Sehe enriching my vocabulary since 2011
@GlennTeitelbaum lol
@wilx welllll... compared to c++ generics even C# sucks
:)
I wonder... is that 19 stars because 19 people are coming?
No I starred and I'm not going.
09:29
I hate these websites that start playing ads just randomly
so annoying
@Jefffrey inline constexpr nullptr_t operator "" _ptr(unsigned long long int) { return nullptr; }
@TonyTheLion block them?
WHY IS EVERYTHING REBUILDING? I didn't even touch a header file!
ffs
operator"" cannot take an int
The declaration of a literal operator shall have a parameter-declaration-clause
equivalent to one of the following:char const*
unsigned long long int
long double
char const*, std::size_t
wchar_t const*, std::size_t
char16_t const*, std::size_t
char32_t const*, std::size_t
@jalf touched a setting
09:44
nite all
this makes absolutely no fucking sense...
this is going to be a long day
and I'm going to vent in here a lot, so brace yourselves :p
@chris Yes, that's why I said "me too" :)
@chris And you suck at it! If the premise is always false, it's the implication that is always true, not the conclusion.
this is such a terrible course
09:56
read this pdf... that just tells you to read another pdf... which just tells you download a small project and do what it says in the comments of a few files.
TIL about nickel allergy.
You have it?
Good.
So... local #Azure Storage Emulator results in the Cache taking 18G RAM in few days with ~100 requests on a single Entity with 2 records?
^ This is going to work soooo well in large scale deployment. <uneasy/>
"Works on Azure"
I'm not sure the emulators are necessarily intended for any deployment
10:08
Of course not. However, it's funny that it escalates to this extreme amount of RAM anyways. For absolute trivial load
@sehe I am curious. What are you working with Azure?
Just storage :)
@R.MartinhoFernandes people can be allergic to more or less anything. I had a friend in school who had a mild allergy to water, would make him go all red and blotchy on contact with his skin.
Woah is the scrollbar in VS2013 that fucking huge, or is it one my extensions doing it
Latter
Oh, you mean the handle area. Yeah. Don't use it.
Also, don't one box vertical items :/
The lounge is a horizontal-only chatroom. Lounging around is demanded.
How did the quiz go?
@ScottW Could you expand on why you think this is "bullshit"?
@R.MartinhoFernandes Absolutely terrible... but somehow we managed to scrape second place out of it. :)
We'd managed 29/30 at a different pub the previous night which, even for our team (which is a pretty consistent winner) was a stupidly high score for that quiz
The topic, difficulty, and knowledge pre-requisites for each quiz in those two pubs varies wildly from week to week: something which, incidentally, when I ran it, I worked very hard to avoid. But oh well
(note: difficulty and knowledge pre-requisites are orthogonal; many quizzers don't understand this)
so yeah... I was going to make this the year I finally sort out getting driving licence... was.
10:23
@thecoshman why only "was"? did you just get a driving ban?
I keep hearing about people caught driving without a licence, because they're three years too young to be legally eligible for a driving licence, who receive two-year driving bans (beginning immediately) for their trouble
wtf Qt :/
In fact, anybody receiving a driving ban for driving without a licence is just gonna be laughing at it, really. I suppose the only thing it achieves is preventing you from choosing to start following the law following your shame and humiliation.
@LightnessRacesinOrbit nah, just can't be arsed with it. I am sure it will be a world of opportunities once I have licence, but just cannot muster the will to sort shit out. I'm fine with out.
What is the point in making a big shiny QString class which actually tries to be aware of encodings, and then make an implicit const char* constructor which treats the input as ASCII?
10:25
@thecoshman You have 11½ months to go so I don't think you need to admit defeat just yet
@LightnessRacesinOrbit as I understand it, in the UK if you get caught running a red light on a bicycle you can receive points, but they sit there until you get a licence to put them on. This can even result in you having to pass the test, to get banned due to points earnt when you were 14 vOv
@LightnessRacesinOrbit it's not really a case of being beaten, just have no interest in putting that effort in it.
@thecoshman Yeah, some punishments are deferred and others aren't. Bikes are a good example, because as a general rule they don't assume your punishment is so severe as to warrant an outright ban. Similarly, that is the case for car drivers I think. But it's those extreme cases where a magistrate says "gtfo the roads"
@thecoshman ok
lolwut
I think I like this one
> 15. Feeling Like You’re Owed
I read that as "Owned"
Feeling Like You're Old
> Steal materials from Forbes much? forbes.com/sites/cherylsnappconner/2013/11/18/…
Awesome
@jalf In the spirit of C++!
10:35
@jalf I suppose for supporting string literals.
@jalf being able to construct from string literals.
If they changed the signature to a function template which accepts char[N] then it would be safer I think.
@StackedCrooked and lead to code bloat.
Because string literals are ascii afaik.
Each different length is a new function.
10:36
@StackedCrooked Not?
@rubenvb Or not?
@rubenvb I think that will be inlined in most cases.
@rubenvb Forward it. And have the dispatch inlined
Your code is going to get inlined everywhere, and you're worried about a few extra function definitions?
@rubenvb sure, but they could at least make it explicit then. As it is, it means that any C string (or the result of a std::string::c_str()` is silently converted to QString, assuming a worst-case encoding
@R.MartinhoFernandes Is string literal with special characters valid in C++?
10:37
Oh noes, you said "special characters" :P
@jalf This calls for another string wrapper that disables the type promiscuity :/
I never know how to say the right thing when it comes to text encoding. Cut me some slack please :)
That usually means you haven't thought it through.
@R.MartinhoFernandes Yeah, it's "semantically challenged" characters
So insensitive of you
So would a char[N] constructor be any better than const char*?
10:42
@StackedCrooked It would be more restrictive, which I would like, but would still break lots of code (often you refer to string literals by passing in a const char*). And it would require a templated constructor, which would probably make the Qt people's heads explode
IMO a good first step would be to just make the constructor explicit imo.
What mainly bugs me is all those cases where a QString is silently and implicitly constructed by you passing a char pointer to something that expects a QString
@StackedCrooked "\x80" is a valid string literal. Why wouldn't it?
TIL about \x
@jalf What error handling does it do in the conversion? Replacement characters? Discard non-ASCII input? Throw?
10:50
I noticed that Qt often tends to log errors (to stderr) and keep running.
> You can disable this constructor by defining QT_NO_CAST_FROM_ASCII when you compile your applications.
Btw, @jalf
Also:
@ScottW Of course there is. It's the fundamental basis of survival to increase your [abstract] "benefit" with the least effort.
> Note that, despite the name, this function actually uses the codec defined by QTextCodec::setCodecForCStrings() to convert str to Unicode. Depending on the codec, it may not accept valid US-ASCII (ANSI X3.4-1986) input. If no codec has been set, this function does the same as fromLatin1().
The rabbit hole gets deeper and deeper!
@StackedCrooked really?
hmmm
10:51
stderr is more like stderp
@R.MartinhoFernandes So simple
@LightnessRacesinOrbit For example it prints an error if you access the GUI from another thread than the main thread.
So, fromAscii converts from some preconfigured encoding, defaulting to Latin-1. shakes head
Is Qt available on EBCDIC systems or what?
What kind of stupid API design is that :(
10:54
@ScottW Tell that to the burk living on the streets
@LucDanton Shift-JIS is likely to be the culprit. (it replaces backslash with a yen symbol)
hmm, yeah, might have to see if I can lobby for QT_NO_CAST_FROM_ASCII. That seems like the least broken option
Different calls to fromAscii may convert from a different encoding!
How lovely.
Setting the appropriate global codec is an option, no?
@R.MartinhoFernandes a Latin-1 centric kind?
10:57
@thecoshman Not the point. There's a fromLatin1 function.
@R.MartinhoFernandes I also realised after the fact they’re referring to any codec that might have been installed that way, not whichever will be here by default (and based on the system, presumably).
But, unlike fromAscii, fromLatin1 actually does what it says on the tin.
@R.MartinhoFernandes oh wait, 'from some pre...' I read that as 'to' some. That made sense, "fromAscii to what?" but for it to not be from ascii ascii vOv and what the hell does it go to anyway?
@thecoshman Goes to decoded data.
@thecoshman to the QString
10:59
I'm sure that makes sense if you know what is going on
> Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.
hmmm
does that mean my firewall blocked it?
trying to read from an SSL stream

« first day (1188 days earlier)      last day (3985 days later) »