« first day (797 days earlier)      last day (4153 days later) » 

10:00 AM
oh come on, git: warning: suboptimal pack - out of memory
 
@jalf That might be trickier, what with caches and all.
 
@jalf why the hell would an SSD spin down?!
what would it spin down?
 
lol
 
lol
 
10:00 AM
never know if someone might run your program on their ssd and then sue you for eating up precious write cycles! ;)
 
Guess what. Danes are not as crazy as Russians when it comes to sorting alphabetical. Some letters come before others if they are at the start of a word, but after if they are in the middle.
ель < ёлка, but тёлка < тель.
FFS.
 
wow...
 
yeah, I think there are more than a few languages with weird rules like that
at least we settled on a fairly simple rule as far as unicode is concerned
 
user142019
lol
 
@R.MartinhoFernandes wut?
 
10:05 AM
@R.MartinhoFernandes So I can't implement Russian operator< with simple recursion? lol
 
@FredOverflow That's not Danish.
@FredOverflow I mentioned Danish yesterday: chat.stackoverflow.com/transcript/10?m=6797678#6797678
 
anyone own one of these new Asus notebooks?
 
@Abyx I dunno. I am not Russian.
 
well, it seems robot knows Russian grammar better than I.
 
@R.MartinhoFernandes "Aachen, Zürich, Aabenraa" can't be true, right?
 
10:07 AM
Yes, it is.
 
@melak47 Are you German?
 
@FredOverflow yes
 
Willkommen in der Lounge.
 
@FredOverflow Why not?
 
lots of germans here
 
10:08 AM
@jalf I don't see the system.
 
@FredOverflow Danke ...?
 
I don't recall such weird rule. however it's not like I often sort words
 
The Russian alphabet is the weirdest one I've ever seen
 
@Abyx Don't worry, that's the only bit I know, and only because it came up on the Unicode mailing list.
 
@melak47 Bitte schön.
 
10:08 AM
Guten tag!
 
reviews of the things seem alright, though the touchpad takes a little getting used to, apparently..
 
The system is that Aabenraa is really Åbenrå. The two a's sound completely different there, and today, would be spelled with a different letter (Å). But Aachen isn't a Danish name, and their two A's are just... two a's, which sound like two a's
 
@Rapptz I think Arabic is the weirdest for me.
 
@R.MartinhoFernandes Have you seen how it's written? en.wikipedia.org/wiki/Russian_alphabet
 
@jalf Okay, that makes some sense.
 
10:10 AM
So the distinction is between danish names (where the double-a has a special meaning) and foreign ones where it doesn't
 
user142019
@Rapptz have you seen Hangul?
 
@Rapptz Oh you mean the weird cursive forms?
 
Д д captial D, non-captial g...wut
 
@R.MartinhoFernandes Yeah..
 
impossible to implement on a computer, of course, because you pretty much need to understand the meaning (or at least origin) of a word in order to know how to sort it
 
10:11 AM
@Zoidberg'-- I taught myself Korean in less than 3 months. Easiest language I've ever learned.
 
@jalf What kind of double a is the aa in Anaal Nathrakh? Not that I really care :)
 
user142019
Korean is very simple.
 
The hangul system is, by extension, easy as well.
 
@FredOverflow Given that it's not a danish name, they're just plain old a's like you would expect
 
user142019
Let's download this UML book.
 
10:11 AM
@Zoidberg'-- I thought you were done with UML
 
user142019
@melak47 I need a book for school.
 
@melak47 When he says "download", he really means "burn"
 
@Zoidberg'-- I thought you were done with UML at school
 
user142019
No.
 
user142019
We still have an exam.
 
user142019
10:13 AM
And some kinds of diagrams.
 
user142019
Oh my fucking God.
 
user142019
This book discusses fucking singletons. *bin*
 
ehh
HELO >< ><
 
@Zoidberg'-- That's why I never bought Design Patterns or Modern C++ Design. Fuck Singletons.
 
user142019
Let's burn this book.
 
10:15 AM
have to print it out first :)
 
user142019
It's not worth its existence.
 
unless you mean burn it to a CD :(
 
user142019
lol
 
You could burn it to a CD-RW and then delete it!
 
10:16 AM
@user1217203 Howdy.
 
@FredOverflow or microwave it
 
@FredOverflow That will teach them!
 
@Zoidberg'-- I think discussing them is not a bad thing, so long as after describing them, they add in big bold letters that it should be avoided whenever possible since it is an anti-pattern
 
0
Q: Infrastructure for networking

user1921225I have a basic question in networking. I am planning to write an application as part of a college project which would simulate few protocols in networking. Is there an infrastructure where-in I can get Layer 2 protocol api's. So that I can implement layer 3 protocols. I don't want to write layer2...

 
I think I should get an icon . I need a solid identity
 
10:16 AM
wut?
 
@R.MartinhoFernandes heeey
 
Just in before the deadline:
 
@user1217203 Are you an FTP server?
 
Finally, I apologize to all of you for My co-dependency. I shouldn't have derived My self-esteem from watching you kill each other for Me.
 
user142019
@Neil they say it's "great".
 
10:17 AM
@user1217203 A proper screen name would also help.
 
one sec let me get a picture for recognition
 
@R.MartinhoFernandes lol
 
@user1217203 also change that username
 
@user1217203 Wait, if it's a solid picture, OCR won't work well
 
The robot only likes odd numbered users.
 
10:17 AM
good advice!
 
@Zoidberg'-- Burn it with fire!
 
user142019
@Neil no I'm going to burn it with water. ~_~
 
user142019
My code is wonderful.
 
what code
 
user142019
 
10:21 AM
@Rapptz oddly. Also, he gets envious if there are less than two prime factors involved
 
hehe
her
...
my change does not apply
 
user142019
Gravatar uses shitty caches designed by idiots.
 
@user1217203 dammit. WHY U NO PATIENCE
 
@Zoidberg'-- Well, I couldn't tell, I don't know Erlang.
 
should I use the same email address?
 
10:23 AM
Patience and browser refresh
 
cuz I sued different address...
 
yes
 
oh well.
damn..
 
@user1217203 You "sued". Not over silly spelling issues, I presume?
 
I am sorry for my English, it's not the most difficult language but I have hard time seldom.
 
10:24 AM
s/seldom/often/?
 
(positive)
 
@R.MartinhoFernandes How do you replace slashes with that syntax? :)
 
Maybe you should just (a) "figure it" or (b) "get" out
 
@FredOverflow s#/#slash#
 
@FredOverflow s#/#\#
@FredOverflow Or just s/\\/\//g if you're particularly obtuse
 
10:26 AM
@FredOverflow Whatever symbol comes after s is the separator. It just happens that slashes are the most popular.
 
@user1217203 Maybe you should just (a) "figure it" or (b) "get" out
 
@R.MartinhoFernandes Oh, I didn't know that. Neat system.
 
Pahlonk in 30, 29, 28, 27...
 
hello
 
@user1217203 I didn't actually see a question. I think you're typing a lot of incoherent messages about things that really don't interest me. My $0.02
@KonradRudolph Ohai
 
10:28 AM
Is @Xeo still Internet deprived?
Haven't seen him in a while.
@KonradRudolph Howdy partner.
 
@R.MartinhoFernandes Saw him a couple hours ago
 
@R.MartinhoFernandes forgot your cowboy hat!
 
@bamboon Check again.
 
Any takers for the New Year’s Eve Hat? :D
I’d love that
 
(Unfortunately, it does not show in chat)
 
10:30 AM
this is not SO
do not treat this like SO
 
@user1217203 loose the redundant enumtype:: qualifier (unless it's an enum class)
 
bitchslap
 
@DeadMG I was just getting tempted to say "A little interpunction also helps thank you very much i hope you understand or did it just not appear"
 
@sehe the enum value is stored within class2. And class1 calls the function of class2. class1 needs to access to enum type of class2
 
@user1217203 You're not adding information. My answer was already there. For all other inquiries: Stack Overflow
 
10:34 AM
alright.
 
man
I left my PC on overnight, since 21:32
it's now 10:34 in my timezone
 
@KonradRudolph Sure. I am the Hutmeister.
 
still haven't finished my download
 
is '12' == 0x3132 for a big-endian architecture?
 
user142019
lol
 
10:34 AM
@DeadMG Poor thing.
 
@R.MartinhoFernandes The fuck you have so many hats!
 
user142019
@Abyx implementation-defined.
 
@Abyx Oh gawd, multi-char literals. No idea, really. Probably.
 
user142019
Standard doesn't say much about multi-char literals.
 
user142019
They are evil.
 
10:36 AM
le evile
 
@Abyx I'm oppossed to useless-use-of-true in boolean context. However, this was not such a context
 
@sehe I thought about using it in static_assert
 
user142019
This bread I'm eating tastes like . . . bread.
 
@Abyx lot's better :)
 
10:38 AM
.
 
@Zoidberg'-- Amazing. Call the newspapers
 
@Abyx Oh, that won't work.
 
user142019
@sehe newspapers don't overload operator(), so I'm sorry.
 
'12' will be 0x3132 everywhere.
It's just that in little endian places it will happen to be stored with the 0x32 first.
 
u know out of curiosity, I know sexual orientation does not regard any proficiency in programming but..... are any of u gay/homosexual?
 
10:39 AM
WTF
 
user142019
@R.MartinhoFernandes isn't the value of a multi-char literal implementation-defined?
 
@R.MartinhoFernandes like i said, for curosity.
 
@Zoidberg'-- Yes. All implementations define it as we know.
 
*curiosity
 
user142019
@user1217203 Dat question.
 
10:40 AM
> sexual orientation does not regard any proficiency in programming
now there’s a hypothesis
 
or does it?
 
user142019
lol of course not you fool
 
well, it seems there is no way to check endianness at compile-time =\
 
@Zoidberg'-- they implement implicit conversion to void(*)() so that's no problem
 
in C++03 at least
maybe constexpr could help here
 
user142019
10:41 AM
@sehe that seems like a design fault.
 
answer question -> no upvotes -> cry
 
@Zoidberg'-- exploit it!
 
There are usually compiler defined macros for checking endianess
 
@Abyx To detect this you need reinterpret_cast, and that cannot be used in constexpr.
 
user142019
4
Q: Determining endianness at compile time

GrigoryIs there a safe, portable way to determine (during compile time) the endianness of the platform that my program is being compiled on? I'm writing in C. [EDIT] Thanks for the answers, I decided to stick with the runtime solution!

 
10:42 AM
Except there's rarely a good need to check endianess
 
@R.MartinhoFernandes union is enough
 
also, why do you only specify default values for arguments to a function in the declaration, but not in the definition?
 
@Zoidberg'-- lol..... i guess it was a stupid question...
 
user142019
Me too.
 
@Pubby except when there is
 
10:42 AM
@Abyx Hmm. Not sure if that is allowed too. Lemme check.
 
@TonyTheLion Like?
 
donno
 
@R.MartinhoFernandes I read about contexpr unions the other day, IIRC.
 
user142019
@Pubby you need to do that in a little_to_native or big_to_native function.
 
user142019
Or if you're hacking Runescape, middle_to_native. xD
 
10:43 AM
@Zoidberg'-- You can just use bit shifts and stuff to do that
 
@Pubby you're writing a kernel and need to implement networking stack and your cpu is little endian and network order is big endian
 
@R.MartinhoFernandes An article about std::optional proposal, actually
 
@sehe He does not cheat in it.
 
WOOT they fixed tab completion for @usernames in Opera
 
user142019
You use Opera?
 
10:44 AM
He sings too
 
Sigh
 
user142019
You're the first person ever who told me he used Opera.
 
Jul 15 at 18:53, by sehe
@RadekSlupik C-S-t in chrome. Also, C-Z or C-S-z in Opera /cc @TonyTheLion
 
user142019
10:45 AM
heh
 
Dec 30 '11 at 1:06, by sehe
@refp Opera has been floating my boat for about 10 years now
 
user142019
30 december 11. Was I already here back then?
 
@sehe didn't know you had a boat that needed floating? :P
 
user142019
Hmm yes I remember talking here while normal people were watching fireworks. :L
 
10:46 AM
@Zoidberg'-- Does that matter? The point is: I'm always saying I use Opera. As do some others around here
 
user142019
I never noticed any of those messages. xD
 
stacked-crooked.com/view?id=e2bc2cb2b7459465460bb559e403e50e - "error: accessing ‘A::c’ member instead of initialized ‘A::x’ member in constant expression" =(
 
@Pubby Ugh, ugh, ugh.
 
@TonyTheLion It's idiom, never mind
 
Endianness is about byte buffers, not numbers.
 
10:46 AM
@R.MartinhoFernandes Hehehe
 
Freaking chat search timing out. Again
 
@sehe I know.
 
@R.MartinhoFernandes What do you mean?
 
@Abyx Told ya :S
 
user142019
Little endian ftw.
 
10:47 AM
@R.MartinhoFernandes We get confused victims at least once a week in the lounge...
 
@Pubby Why do your functions take numbers?
 
@TonyTheLion Never. Mind.
 
@Zoidberg'-- The world is very little endian today
 
TIL Polar Bear doesn't get Lion jokes
 
10:48 AM
I would expect from_little_endian to take bytes in little endian order and make a number out of them.
 
@sehe dat pun.
 
N.e.v.e.r. M.i.n.d.
Wokay?
@TonyTheLion Need moar stars
 
@R.MartinhoFernandes Doesn't the network order functions (I forget name) take numbers too?
 
@sehe lol
 
And to_little_endian to take a number and produce bytes in little endian order.
@Pubby Yeah, they suck.
 
10:49 AM
Oct 10 '11 at 17:02, by Cat Plus Plus
        # MySQL sucks MySQL sucks MySQL sucks MySQL sucks MySQL sucks MySQL sucks
        # MySQL sucks MySQL sucks MySQL sucks MySQL sucks MySQL sucks MySQL sucks
        # MySQL sucks MySQL sucks MySQL sucks MySQL sucks MySQL sucks MySQL sucks
I searched for "suck" - first result ^ lol
 
@R.MartinhoFernandes I don't see much of a difference :S
 
user142019
MySQL is a piece of shit.
 
user142019
PostgreSQL FTW!
 
argh!
 
user142019
argv!
 
10:50 AM
I have two bytes which represent an integer and I want to get that integer. What do I do?
 
@Pubby The difference is that the interface lets you do things that you don't want to.
 
apparently, the answer is: (req.Skip(req.Skip(4).Take(1).ToArray()(0) + 5).Take(1).ToArray()(0) << 8) + req.Skip(req.Skip(4).Take(1).ToArray()(0) + 6).Take(1).ToArray()(0)
 
@Zoidberg'-- just found that out!
 
that's C#
 
10:50 AM
@R.MartinhoFernandes Example?
 
@KonradRudolph How do they represent an integer?
 
I have no idea what confusion OP must suffer to conceive of such a code
 
@Pubby to_little_endian(x) * 2 // utterly meaningless, but whatever
 
@KonradRudolph BitConverter?
 
@R.MartinhoFernandes From the example given I’d assume two-byte base 256
 
10:51 AM
@KonradRudolph You've got to be kidding
 
@Abyx Ahm. Even better than my answer. Thanks, let me update :)
 
user142019
bytes[1] + bytes[0] * 256
 
user142019
I think.
 
user142019
Or 255?
 
@KonradRudolph "Even better". That cracked me up. I'll be back when I recover!
 
10:52 AM
@R.MartinhoFernandes Then don't do that!
 
@Zoidberg'-- bytes[1] | bytes[0] << 8 has more sex appeal.
 
user142019
BUT ENDIANNESS
 
@sehe Even better than my answer, not theirs. My answer is equivalent to @Fred’s. Obviously.
 
Those functions are for meant for serialization, so I want them to have a serialization interface.
 
user142019
10:52 AM
Oh wait. lolz
 
user142019
Software development is a joke.
 
s/joke/yoke/
 
@Zoidberg'-- Wut.
 
user142019
My API server is working. Now I only have to implement it.
 
@Zoidberg'-- yes it is.
 
10:54 AM
No, I have no expirience with debuggers like GDB (if you're talking about that). — m--s 46 secs ago
 
I really need a Postgresql library free for commecial use and everything is GPLed :( Should I not even bother and do the ADO/ODBC thing. I just want basic read/write/delete access for a win32 console winsock applcation.
 
user142019
@m--s now is your chance! — Zoidberg'-- 5 secs ago
 
sweet! le torrent server is set up
 
@R.MartinhoFernandes I took your advice before for making things safer and ended up with template messages of 1000 lines which are less helpful than just using ints. It's just a false sense of security :S
 
that was a week well spent :D
 
10:55 AM
@Pubby Wut.
 
@R.MartinhoFernandes Like some stuff I was working on to iterate in 2d. It's much easier to verify you didn't confuse your int identifiers than it is to verify a few hundred loc of templates.
 
Why the hell did this answer just get downvoted?
15
A: When should you use constexpr capability in C++11?

Konrad RudolphTake std::numeric_limits<T>::max(): for whatever reason, this is a method. constexpr would be beneficial here. Another example: you want to declare a C-array (or a std::array) that is as big as another array. The way to do this at the moment is like so: int x[10]; int y[sizeof x / sizeof ...

it’s old, it’s correct, nobody complained so far, no comment was left …?!
 
@Pubby You're a wuss.
 
@R.MartinhoFernandes Yep :(
 

« first day (797 days earlier)      last day (4153 days later) »