« first day (871 days earlier)      last day (4302 days later) » 

02:15
@R.MartinhoFernandes: Ok so Python has 2 string types. A 4-byte unicode string and a no encoding byte string?
A byte string for encoded data, and a code point string for text.
Hi all, I cannot figure out why my loop condition isn't preventing my code from stepping over the bounds of a file.. I know that its the issue because if I hard code the number of lines everything runs smoothly. I would appreciate suggestions.
if (fgets(rawdata, 100, fp) != NULL && !feof(fp)){
Yeah code point, but iirc he said it was 4 bytes long?
@metal_fan no drive by linking
02:16
@Borgleader Yes, but it does not mean the string is an array of 4-byte integers.
I'm a little confused. If it's a code point string and code points are 4 bytes long, how is a string not an array of 4 byte integers? I mean I know character requires multiple code points to be represented but...
Ohhh so the string would be the number of the characters in the unicode standard?
I think i get it now
went to try a new IDE :(
ugliest thing I've seen
My votes are in for mod election :D
Wha IDe was that?
Eclipse? :P
02:26
No, I'm pretty sure Eclipse isn't that ugly
yes but it is very disliked around here
imo it's really good though. :P
^proves my point
Eclipse is like the greatest sex ever.
If you're into sandpaper vaginas and dick-eating AIDS. ._.
it's so ugly it crashed my pushur app :(
Haha
I was going to show a screenshot
02:28
yeah, you can kinda see the enmity about Eclipse around here whenever it's mentioned. :P
@Rapptz The IDE crashed another app?
That's one badass IDE.
Nah. I'm just being facetious. Sec lemme SS.
^ what is this
just look at it
That looks liek bastardized Code::Blocks
02:30
what's with the over-italics O_o
I didn't write that code by the way, it generated it for me
and the... okay that's terrible. :P
Okay then!
I shall be scarred for life with that image seared into my brain. :O
@Borgleader str is an abstraction. It acts as a sequence of "characters" (for some definition of character), but you don't know what's under the hood. Its meaning does not depend on any outside information. It has characters, period. bytes is what you get if you get rid of the abstraction: just a bunch of numbers, that you may interpret as characters according to e.g. UTF-8. But this meaning as characters is not inherent in it: it is given externally by you assuming/knowing it is UTF-8.
it's using stdio.h
I don't know
02:32
Korean Won
I'm set to Korean locale.
Why?
Games I used to play required it
Just like others require the Japanese locale.
It's annoying to switch around
02:33
anyway I think we can all agree we will never use that IDE. Ever.
@R.MartinhoFernandes Alright I think I'm starting to get it. str contains code points which can be serialized to bytes according to some encoding which can then be interpreted by someone else using that same encoding.
yes
but stuff messes up with the wrong encoding (and can be quite annoying)
indeed
I wanted a new IDE because the Code::Blocks editor is actually kind of annoying now :|
-1
Q: What is this historical question bullshit?

Erik  ReppenEither a question is useful to the community or it is not. I get that the StackOverlords have ambitions but why are we locking beautiful questions with lots of interesting answers just because we want quick and tidy answers to problems that are sometimes complete and total disasters of complexity...

02:37
ECLIP- um... you heard nothing
^^ yeah! A rant!
@Mysticial ahahaha
one of the funniest posts ever :D
I was going to try to edit this to be more constructive, but it would be too difficult. I suggest you try, yourself. — Andrew Barber 18 secs ago
@Rapptz Visssuuaaal Studiiooo is calllliiiing~
YAY VS
for GCC, though thanks for the suggestion.
I already have VS2012
02:39
Visual GCC <3333
lol as if
It'd work great.
And you know it.
crazy thing is he's a 2K user
Lol
Axe-wielding police man.
@Borgleader So, the idea is that, unlike C# and Java did, you do the former. If you use string in C# you have to interpret it yourself as text, otherwise you get broken stuff like the example I showed earlier on ideone. The string type itself does not care: it pretty much behaves as an array of UTF-16 codes, pretty much like bytes in Python, except with a larger "byte". It just happens that this mismatch isn't super common so most of the time it seems to work.
02:40
Rant seems about right.
How would I know it works great?
tbh I'm just too lazy to make a makefile
@Rapptz By trying it and FEELING THE GLORY MANIFEST IN YOUR LOINS. <3
@Rapptz Visual GCC takes care of that fooor yooou~
COME JOIN TEH SPAMZ

Full of Hate and Rage Room

I know right!?!? Full of HATE and... RAGE!!!
look who the room creator is
Ahahaha. Best meta question ever. Well maybe.
There's one about "how can I hack to get more rep"
@R.MartinhoFernandes A good handful of commonly used UNicode fits in UTF16, so I can see why that'd happen.
02:42
@Doorknob lol I love that one
I love going to the most downvoted meta questions and just browsing XD
-38
Q: Is there a way to buy SO reputation?

vikas devdeIs there a feature by which we can buy reputation on SO (e.g 100 rep for $1)?, or a bot by which we can hack and increase our reputation?

@Doorknob lol so do I
yep that's the one :D @CCInc
I never delete mine and I use my real name. But if you're playing for points and boy scout badges I guess that might bug you. — Erik Reppen 20 secs ago
^^ wut?
um...
okay...
02:44
@ThePhD That's irrelevant. Either you support it or you don't. "My code supports the BMP but turns everything else into garbage" is not useful.
Hehe.
I think Robot would like how I did my UTF support.
It's pretty legendarily bad. :3c
������
@R.MartinhoFernandes I'm just getting the question mark box thing for those chars, what are they?
U+FFFD ʀᴇᴘʟᴀᴄᴇᴍᴇɴᴛ ᴄʜᴀʀᴀᴄᴛᴇʀ, aka question mark box things.
oh. :P
I thought those were the bananas that I never saw or something. XD
02:49
TIL about Premake
Premake?
in Full of Hate and Rage Room, 37 secs ago, by Erik Reppen
Oh cripes. I didn't realize I was starting a club based around that. Yes. Really am full of hate and rage right now.
-3
Q: developing a program that will auto add a shoe to my cart with a pre-detemrined size once I click on the nike link?

user2134057I'm trying to develop a program that will auto add a shoe to my cart with a pre-determined size once I click on the twitter link it would be a google chrome extension do i need to use java? I've never created programming before. any help getting started THANKS!

"do i need to use java?" Ahahahahaha!
02:50
@R.MartinhoFernandes Ok, and so by storing codepoints instead of UTFx bytes in an array. If I do something like str[3] and print it to the console it will print out correctly because I'll have extracted a codepoint which is encoding agnostic as opposed to a random byte in the sequence?
@Borgleader Jes (see UTF32)
It depends if the shoe is leather or microfiber. If it's leather, go for java. — deadlock 1 min ago
@Borgleader Well, maybe :/ Printing gets complicated quickly. Some code points encode pure semantics, without any actual visual representation. But yeah, you got the idea.
Well if the code point is pure semantics it'll print to nothing if it's alone. Point is it'll print to what it's supposed to.
03:09
​​​​​​​​​​​​​​​ — Mysticial 10 mins ago
^^ 5 upvotes for that, lol
6, with mine.
@Mysticial zwsp?
yeah
You taught me how. I put it to good use.
03:40
@Mysticial How'd you do that comment trick?
Are C# generics that much less "powerful" than C++ templates?
C# generics == awesome
@CCInc ZWSP = Zero-width space
How do you enter unicode characters/
03:44
=[
All of my stuff has to be heap-allocated q_q
@ScottW In what respect?
I haven't done much generic programming in C#
No no I mean just the template part not the MP part
I'm trying to avoid as much pre-processor as possible, completely if possible
Preprocessor and templates are two different levels.
Preprocessing is a dumb, single-pass encapsulation of macro replacement.
TMP requires the use of the preprocessor
Templates happen at compile-time, after preprocessing (macro subtitution expansion, etc.)
@Borgleader Like hell it does.
03:53
template <typename T>
struct Compare {
    bool Compare ( const T& a, const T& b ) {
         return a < b;
    }

};
^ templates
The way templates work is that, for every type you make a Compare struct for, it'll generate completely new code at compile-time.
Compare<int> cmp; // Compare struct for int is generated at compile-time after the preprocessor
Compare<double> dcmp; // Compare struct for double is COMPLETELY different
In C#, generics don't have this ability. A generic exists at run-time. It runs the same code - i.e., no new code is generated - for the generic.
Templates are essentially Codegen built into C++.
I've been discussing this with a guy at school. And he was telling me that in Scala, the way templates work is that somehow the AST is modified directly?
Not a clue what AST is or how Scala works.
So I'm looking at different ways templates are done to see which one I want.
Hahaha, full disregard for Unicode was one thing with Apple, it has just forwarded some payment info to me - and I appear to live in an entity which was forcibly disbanded 22 years ago. Yugoslavia.
So many things to consider... I also want pattern matching xD
Implement all the things!
04:01
Ah, sweet coffee
5:01 am here, just woke up. :D
I like to soak up that early morning atmosphere and get to work. Worked out for a while, took a shower, made coffee and now it is time to dance with clang. :D
The early bird gets the gagh!
lolll
with a small piece of blood pie
Not sure if that's something to look forward to, but still. :D
Jumping to teh OS X, be right back. :D
04:16
Damn, I already miss Windows.
Is multi-inheritance kinda evil?
not if you're implementing multiple interfaces (aka abstract base classes)
otherwise, generally yes
doesn't it break Interface segregation?
well, base class - what about Single Responsibility Principle here?
If you don't need to expose something to multiple interfaces, run away.
yeah i mean single responsibility is nice if you can get it but once you start interfacing with more than one API or subsystem it's pretty common to implement more than one interface in a single class
I guess you could fancy it up with 2 separate adapter layers wrapping a single class that doesn't know about the APIs, but I tend to avoid that kind of stuff until I really need it
this is just my opinion though
XCode "C++11 support for 'user defined literals' and 'unrestriced unions' features" 4.6
How exciting, Apple!
@Rapptz I must be in the minority because I read the MSDN documentation all the damn time
@japreiss MSDN wins.
Yeah you are. MSDN is awful half the time.
Documentations are not for "How do I do A with B & C", rather "What the fuck are the definitions for A, B and C? Are there any remarks I need to know on the possible interactions between A, B and C?"
04:32
anything that solves my problem 50% of the time ain't bad
I'm just gonna leave this here, in case some of you did not see it yet.
"Normal boots"
lol
@EtiennedeMartel wtf lol
i wish the whole thing was like the intro
@EtiennedeMartel is this real ahaha
04:49
 In instantiation of ‘constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = bsp_node; _T2 = bsp_node]’:
error: use of deleted function ‘bsp_node::bsp_node(const bsp_node&)’
Why am I getting this? Does pair not have move constructor support?
This is example of how I construct it:
  std::pair<bsp_node, bsp_node> p(
    create_bsp(bounding_box),
    create_bsp(bounding_box));
0
Q: Taiwan is not a province of china

zetachangIn Careers 2.0, when I try to select my country information, I surprisingly found that it shows Taiwan province of China It's not true, or not even close. I'm really unhappy to see this. Taiwan is an independent democratic country, having its own government and territory. Please fix it .

^^ ouch...
wow it got 5 upvotes
That's not going to end well.
Oh, nevermind. I figured it out. I forgot const can't be moved :S
@R.MartinhoFernandes y not?
05:01
Hm, is it possible to make a wrapper that acts like const but is movable?
Or is that really stupid?
@Borgleader Because it's a politically loaded issue.
Wow
The first answer to that is a really douchey answer.
"We use this broken standard. So it's by design. But we'll think about changing it"
> think about
Gee, didn't know you had to think about using a standard that acknowledges my country as legitimate, asshole.
Interesting that it changed Palestine to be a State
TIL
"I pretend not to suck at social stuff. I'm a poor excuse for a human, but I'd make a great alien."
05:05
@Borgleader Very few nations officially recognize Taiwan as an independent state (the PRC will not establish diplomatic ties with anyone that does, and everyone wants ties with the PRC).
Think that's bad? Apple still thinks Yugoslavia exists.
@Rapptz The Palestine is recognized by the UN :|
@R.MartinhoFernandes Yep.
ugh.. stupid qt
might as well update to 5.0
05:22
Lol
Shit's getting crazy
Dictionary<void*, ulword> includeindices;
std::list<std::vector<byte>> includes;
Hey guys, quick question.
If I do:
includes.emplace_back( File::ReadAllBytes( pFileName ) );
do I need a std::move() to make it not-copy?
where includes is a std::list and File::ReadAllBytes is a std::vector<byte> ?
@EtiennedeMartel Haha, getting trolled? :D
@ThePhD Fucking hell.
Roflmao.
Just go play some DF. :D
IT IS HERE... But seriously, not really.
05:35
@ThePhD no, return values (where it has no &) is always moved
Yay~
Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB)
Qt 5.0.1 for Windows 32-bit (VS 2010, 481 MB)
:| wth
Both sound terrible.
Oh the MinGW one includes the entire MinGW build too
That makes sense
05:40
how often do you guys have to deal with file pathing?
@Griallia As often as I have to deal with files.
such as having to find the executable's directory and then turn that into an absolute path, then get it to work on multiple platforms.
You're going to have to use either OS specific functions, or something that wraps that, like Boost.Filesystem.
Really, use Boost FS.
It works.
Just asking to see if there's a use for making it into a native library for c instead of wrapping boost.
20 yo is the age of adulthood in JP
05:44
Yes.
though that prolly doesn't apply to KPP ;^P
Ugh
Prefix and postfix const and fucking with me again ._.
how about string tokenization? like turning a string with quoted items into an array of strings.
@Griallia C? Erm. No. We will not help you commit self mutilation.
I guess the c++ lounge is the wrong place for talking about removing boiler plate stuff in old c.
05:46
It's the wrong place for many things.
But it's the right place for Big Cocks.
I find myself rewriting a lot of functions in this class..
maybe.. I should just.. inherit the other class.
inheritance, what can go wrong?
not much
@Griallia You can end up with a crap design.
05:47
except now I need to add a virtual destructor and make some of the methods virtual
but it'd probably be better than wrapping around the functions
@EtiennedeMartel when has inheritance not?
a lot of times?
@Griallia Composition is usually a better choice.
cyclic inheritances, is it possible? brb.
No. But that's not what I'm talking about here.
Inheritance is not dangerous.
But you can use it the wrong way.
05:53
I'm inheriting because it's easier and it's the right use case imo
Why should I rewrite every single function again that just wraps around the member when I can just inherit it?
You might have duplicated functionality?
it was just supposed to be an extended version of the original class
but then when I started rewriting everything I figured I messed up

« first day (871 days earlier)      last day (4302 days later) »