« first day (779 days earlier)      last day (4185 days later) » 

2:01 PM
@TonyTheLion Did I mention that I spent almost three weeks to write a function that correctly counts the number of characters with size 2pt in a document?
Bjarne really likes the complex numbers example.
 
It's as if C++ is meant for mathematicians and scientist.
 
2:16 PM
@Xeo Would break rvalues like a bihatch
 
Hey puppy, wanna help me determine how feasible it is to compile ogonek on MSVC? I know template aliases are lacking, but those can be avoided if I make the code ugly. However, some things are not as workaroundable. How's their support for: #1 list initialization; #2 constexpr; #3 not sure what else?
 
constexpr nonexisting
list initialization, CTP supports it in principle but no Standard library support
 
there is no std::initializer_list, right?
 
right
or maybe it's just that their Standard containers don't take it
I can't quite remember
 
meh... it could be a keyword
 
2:22 PM
@R.MartinhoFernandes Link me to ogonek's source and I'll take a looksie.
 
@DeadMG Check it out! I want a full report by 19:00.
 
@Abyx std::initializer_list itself is available, but the standard containers don't include the constructors that take it.
 
I guess I can live with that if I have the syntax.
 
ah, right
first thing is that MSVC won't natively recognize .h++ and .c++ as header and source files
 
lol
 
2:24 PM
@DeadMG You mean the compiler itself?
 
nah, just the environment
the compiler will compile anything you tell it to
 
If cl.exe doesn't mind, it's ok.
 
@DeadMG meh
 
.h++ should work, but .c++ doesn't
 
bleh, stop trying to be fmodern robot, use cpp and h like the rest of us
 
2:29 PM
@thecoshman nah, cpp and hpp
 
still too modern
 
right
I convinced VS to recognize all of your files as source and header files
but the #include style you've used does not appear to function
 
what style has he used?
 
#include <ogonek/etc>, from within his own source files
so to build ogonek, you have to add ogonek's own includes to the include directories
strange thing, but hey..
 
@DeadMG -I"include" ?
 
2:34 PM
@DeadMG tut tut
@DeadMG well, that is not so strange, but I guess it depends how used to MS you are
 
lol the puppy doesn't know how to compile code
 
IIRC VS basically has 'global' libraries that are configured as system wide libraries which it expects to be included with chevrons, and quote are used to include local files
 
@thecoshman it's ok to use <> for local files in VC++
 
hmm
no matter how hard I try, I can't convince the IDE to treat .h++ properly.
 
@DeadMG uh? what does it say?
 
2:37 PM
@Abyx but don't you have to do as puppy has, and add you source folder as an include directory?
 
@Abyx Nothing- it just won't syntax highlight them and no Intellisense and such things.
 
@thecoshman mb, I always add "." to "additional include directories"
 
strange
 
@DeadMG ah, yep, but it should compile stuff
 
VS won't take char32_t, I swear I've used that a plenty in my own projects
 
2:39 PM
@Abyx did you mean nb?
 
@DeadMG boost::char32_t maybe... there are no tttNN_t in VC++ IIRC
@thecoshman nope, it was maybe
 
@Abyx It's in <cstdint>.
 
@Abyx ah
 
@DeadMG not in VC++
 
@Abyx Well, that's funny, because if you include the file, then it shuts up about not knowing what char32_t is.
 
2:41 PM
hm...
@DeadMG that's strange. maybe they fixed it in VC++11
 
nope, I'm using VC++11 CTP
 
HERO! Saved 3 characters!
Then wasted ~15+ characters explaining
 
=\
 
@sehe yay! counting is fun :)
 
@sehe for a moment, I was thinking how did you manage to add third message before mine
cheater.
 
2:45 PM
@Abyx You know. I was just that fast. My deleted message was before yours as well....:
2 mins ago, by sehe
@Abyx Then wasted ~15+ characters explaining
 
@R.MartinhoFernandes woah, was it that hard or is the API that shit?
 
My bad.I Shouldnt accept your answer as solution at all since i have never tried it. — ArisRe82 1 hour ago
^ kudos for honesty, I guess (that was on an answer of mid-2011)
 
@TonyTheLion I like how you don't even consider that he may have been either incompetent or lazy
 
well, I wouldn't assume that from anyone here, now would I?
 
@sehe Huh? He switched the accepted answer because he hadn't tried the one he originally picked?
 
2:48 PM
@TonyTheLion oh no, we are all highly skilled and incredibly dedicated to slacking of from our work
 
hmmm
VS's uniform initialization support is ... dodgy
count{ count }, illegal, count{that.count}, legal.
ah, whatever
 
hi, this pice of code is throwing nullReferenceExeption, any idea why?
 
strange... very strange
 
@Borgleader Better late than... :)
 
bai
 
2:49 PM
kek
 
was just about to ask for the bin boot to be used :D
@JuanAntonioOrozco Stack Overflow
 
@JuanAntonioOrozco wrong "forum" :)
 
@JuanAntonioOrozco ur better off asking on so proper?
 
@JuanAntonioOrozco Java != C++
 
@BeyondSora Lose the question mark
@TonyTheLion or Python. Or whatever
 
2:50 PM
im using vc++
 
@JuanAntonioOrozco C++/CLI != C++
 
@DeadMG From what I can tell char32_t is also defined in iostream? (Or does that include cstdint?)
 
@BeyondSora whilst you're editing, try spell 'you're' right as well
 
Jun 4 at 13:26, by sehe
EVERYBODY: Commit chatticide and PRESS IGNORE simultaneously?
Probelmo solvo
 
2:51 PM
fucks to give, we do not have them
 
^ I'm so gonna earn money for that one. Royalties on every time it's applied
 
plonk!
 
@Borgleader Probably just includes cstdint, but that's not well-defined.
 
@sehe is that so?
 
@thecoshman plonk. I was at it anyway
 
2:51 PM
@TonyTheLion he has one more chance
 
@thecoshman I'm definitely out now, I've tried... it's failed
 
@sehe you didn't just plonk me did you?
 
@DeadMG lolwtf I clicked "go to definition" and it opened yvals.h o.o
 
@Borgleader So?
 
Never seen/heard of that file before
 
2:53 PM
> There's something really cool about scaring children. Traumatize a generation, that's what it's all about.
Hello, everyone.
 
Hi
 
Sup :)
Enjoying the not ballsack freezing weather?
 
@thecoshman I think he was referring to the other guy
 
@TonyTheLion wouldn't put it past him :P
 
@Borgleader I have to say, yesterday was weird.
 
2:55 PM
ah... what a crap. there isn't <cstdint> in VC++9, and until now I thought it's same for VC++10 and VC++11 =\
 
jeez
 
@Borgleader you have some ballsack sweating weather?
 
OSX Y U buffer 30s worth of mouse events
 
@thecoshman Well if he plonked you, he won't see your last message
 
@TonyTheLion obviously
@kbok so you can enjoy the spaz attack when it catches up :D
 
2:57 PM
@thecoshman Nope, !(ballsack_freezing) doesn't imply ballsack_sweating ;)
 
shush about ballsacks
 
@Borgleader He means a ballsack sweater
 
OMG, I love C++11 … sometimes it almost reads like pseudocode
0
A: How to print all words in a Trie?

Konrad RudolphYou don’t need your parent node, your code readily accommodates traversal via recursion. Pseudo-code: void traverse(string prefix, TrieNode const& n) { prefix += static_cast<char>(n.data); if (n.isWord) print(prefix); for (auto const next : n.Child) if (ne...

 
what are the const cast rules in C?
same as cpp?
 
@TonyTheLion The domain is complex.
Also, woot, got a spec.
 
3:02 PM
ah right
5
Q: cast between struct pointer in C

iomePlease consider the following code. typedef struct{ int field_1; int field_2; int field_3; int field_4; uint8_t* data; uint32_t data_size; } my_struct; void ext_function(inalterable_my_struct* ims, ...); I want to allow ext_function (written by third part) to modify o...

not a dumb question
@R.MartinhoFernandes hey, luck you! :)
 
@R.MartinhoFernandes A what? o.o
 
int slots = 0; // only 3 threads are allowed to access the list
int availableCheck(){   // check if thread can acces the list
    if(slots < 3) return 0;
    else return -1;
}
oh gawd.
what happened to using a mutex?
 
> I dont think casting a pointer is safe as For instance, on x86-64, a pointer is 64-bit long, but int is only 32-bit long. Casting a pointer to int and back again makes the upper 32-bit of the pointer value lost.
@TonyTheLion ^ From a deleted answer.
 
@Borgleader A specification. A document that describes my next task in a somewhat detailed manner.
 
Oh I see
 
3:06 PM
@EtiennedeMartel oh rly?! Didn't think that would be the issue
but I'm a noob
 
@TonyTheLion This code doesn’t really need a mutex, it only contains one read and no writes so it will always return a consistent state
 
@KonradRudolph Unless there are writes on another thread.
 
@TonyTheLion That doesn’t mean that the information it returns is in any way helpful but mutexes inside the function won’t help here
 
@TonyTheLion But mutex are slow :P
 
@R.MartinhoFernandes Irrelevant – how do mutexes change that?
 
3:08 PM
@KonradRudolph If say you need to read a boolean indicating a state, and after you enter the if, it gets written by another thread, you're fucked
 
@Borgleader No they aren't, the contention they create is what causes slowness
 
You don't have to change the state of a boolean to be in trouble
 
@Neil That’s not relevant here: mutexes inside the function can’t change that behaviour
forget it, I’m crazy
2
 
starbaiting?
 
You're thinking of multithreading on the same method
 
3:10 PM
@Neil I was thinking about a scoped lock on a function-private mutex, which obviously doesn’t help
 
which would be true, if only one method was run :P
 
@TonyTheLion If he needed a synchronization primitive here at all, the "3 slots" would tend to indicate he should be using a counted semaphore rather than a mutex.
 
Oh dear, I really need to get to work.
 
@JerryCoffin or yea that.
 
See ya all in 30 minutes.
 
3:11 PM
0
Q: Multi pthreads Segmentation fault (core dumped) unable to detect the issue

Bogdan M.I got stuck at thSegmentation fault (core dumped) is error and I'm running out of ideas what it may be. Please help me detect what is the problem. code: #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> #include <math.h> #include <...

it came from here
 
I fail to see where he's gone wrong.. but the code ain't that readable
@Borgleader you don't, that's clear :P
 
Hahaha ... that obvious huh? :P
 
Guess what, this task involves lots of "low-level" Unicode manipulations. Woot?
 
they are going to be implement for liek sempahores and other stuff... but for know I what the threads to iterate throug al lthe lsit and do each of them thir job... — Bogdan M. 2 mins ago
English fail ^
 
3:20 PM
omg... can we flag this for... uh... flagrant butchery of the english language?
 
you can do whatever you want :)
 
@TonyTheLion All your base are belong to us. Make your time.
 
Bad news is we use ICU for stuffs. It's not like I would expect otherwise, but :|
 
"Mr. Speaker we are for the big"
 
3:27 PM
@Borgleader "You are a sacrifice article that I cut up rough now" lolwut
 
@Neil Our dichotomy opens the combat!
 
@Borgleader "He is in my behind!"
 
@Neil R2, do you is fucking?
 
No wonder the Chinese have such a hard time translating into english
The meanings change so much in order to make sense in Chinese
 
oh gawd
that's terrible
 
3:30 PM
Actually the funniest (and saddest) part is they fucked up the "translation" of the opening text.... it says on the screen "In a galaxy far, far away..." and the subtitle is "Long time ago in the faraway galaxy"
 
@Neil Here I was thinking: "No wonder the average Chinese person thinks all westerners are idiots."
 
fail
Chinese: Y U NO LEARN ENGLISH?!
 
@JerryCoffin Heh, maybe the translators are saboteurs
 
@TonyTheLion English: Y U NO LEARN PUTONGHUA?!
 
3:33 PM
"Giving first aid the already disheveled hair projection"
 
> XML source code
wut?
 
@TonyTheLion it's so boring to learn it
 
@R.MartinhoFernandes no time yet
 
OT: Anybody here speak Chinese Mandarin?
 
I think @Mysticial knows some form of Chinese.
 
3:34 PM
I don't
 
Or used to.
 
@Audity sure
 
@Audity what OT is?
 
Off-topic.
 
ah
 
3:34 PM
Which in the Lounge probably means "On-topic".
 
it's not really off-topic here
nothing is off-topic here
except off-topic, that's really off-topic
wait... wut?
 
Yes... off topic. I wondered if anybody could translate the writing on the back of the chairs in this pic: fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-prn1/…
 
oh, you gravatar took a second to load there @tony, I thought you might have changed it
 
no
I'm still a mighty lion
 
@Audity "lord almighty"
 
3:36 PM
@Audity you know, speaking != reading
 
@Audity Copy & paste into Google Translate ;P
 
erm how?
 
Copy what? From the picture??
 
it's a picture
he's trolling
 
Any advance on 'Lord Almighty'?
D:
 
3:37 PM
lol
 
Google translate is surprisingly smart about that sort of thing I've found
 
a std::to_string, woah, I had no idea?!
 
If I translate something from english to italian (knowing italian fluently), I try to translate the same thing back and it usually is exact
 
@TonyTheLion That's pretty I didn't know either.
 
Not sure if it is because it translates well or because it has saved an accurate translation into its database
neither would surprise me muchù
 
3:39 PM
@Neil Do you know Translation Party?
 
@R.MartinhoFernandes Nope
 
oh no
 
(Now it uses Bing Translate, but it used Google Translate when the API was still free)
 
that again
 
3:41 PM
i'm not going to make any claims about google being perfect, mind you
 
OTOH, I'm perfect! :)
 
Don't type anything with "boobs" into that, btw. You have been warned.
 
-2
A: reading data from a .txt file and saving to a vector

VasyaI'd like people to be able to vote on my blog, and to display the results. I'd like to be able to do this in a post, rather than on the sidebar.

I couldn't resist downvoting this guy and now my rep is not divisible by 5 :(
 
@Borgleader It will be deleted soon.
 
3:44 PM
@Borgleader Damn you.. I've come to find out that "jedi council" translates to and from Chinese as "Presbyterian church", and now everytime I see that I laugh out loud
 
0
Q: game laggs after injecting my code

user1857483I made .dll which I am injecting into game. It runs pixel detection after I press alt + s but the game laggs. Is there any possibility to fix it? It detects red color, presses mouse3 and in-game it shoots but too slow and game is lagging. I tried to remove Sleep() but it lag more. Any suggestio...

lol
 
@Neil LOL Yes yes it does
 
To my embarassment of my colleagues in the office with me now
I don't think I could have made that funnier if I had invented something to substitute jedi council
 
why do string manipulation functions have such terrible names?
wcschr <-- really?
 
@TonyTheLion because wide_character_string_concatenation is too long to type
 
3:46 PM
@TonyTheLion Because C. Therefore no vowels.
If the language was called E, that would be ieaia instead.
 
@R.MartinhoFernandes wat.
 
W ght t jst gt rd f vwls ltgthr.
 
@TonyTheLion For consistency with strspn, strcspn and strpbrk.
 
@JerryCoffin You just made up that one in the middle, right?
 
3:49 PM
1 min ago, by Jerry Coffin
@TonyTheLion For consistency with strspn, strcspn and strpbrk.
Read closer.
 
@R.MartinhoFernandes No, but I did have a typo.
 
Damn you humans, why do you insist on parsing stuff by guessing? Are you all running Perl interpreters?
 
@R.MartinhoFernandes is it too hard for you?
 
@R.MartinhoFernandes Maybe you need a Levenstein distance algorithm added to your input...
 
3:52 PM
@JerryCoffin Arrgh, did you write that wrong on purpose?
 
Spring time!
 
@R.MartinhoFernandes Ah, so you can guess when needed! I knew it!
 
getwc <-- this function gets you a toilet?
 
@TonyTheLion Only in the UK.
 
lol
or in Belgium
 
3:54 PM
@R.MartinhoFernandes I like eating raw carrots. Or raw cucumbers. Raw tomatoes are good in a sandwich. And what about lettuce in a salad?
 
Horrid taste. Horrid taste. Horrid taste. Horrid taste.
 
I'm starting to think it might all be in your head.
 
Also, you should have said "And what about salad in a salad?".
 
Were you raped by a tomato somewhere in your childhood?
3
 
Just for funsies.
@EtiennedeMartel Ok, I was half-joking. Raw carrots do not have a horrid taste. They are not very enjoyable, but they are ingestible.
 
3:57 PM
Still, I think most veggies taste better when cooked.
I mean, raw onions aren't particularly tasty.
And the only thing I have difficulty eating are raw bell peppers.
 
I don't really see the appeal of raw vegetables myself. All those people who say they love the taste of fresh lettuce have never had to eat a salad to stay on a diet while watching all his or her friends eat steak and fries
 
@Neil don't get fat, problem solved
 
@EtiennedeMartel You're crazy
 
@EtiennedeMartel Tomatoes in a sandwich are really bad, because you cannot even get them out with the guarantee that no seeds got lost in there, wrapped in some of that tomato guck. They ruined your sandwich forever.
 
@Neil Fresh lettuce tastes nothing. It has a nice texture, but it's only good because you mix it with other stuff.
 
3:59 PM
@Neil I don't like fries, but steak is awesome.
 
Relevant
 
@R.MartinhoFernandes You might need to see a professional for that.
 
@EtiennedeMartel try better stuff
 
@thecoshman Easier said than done. I'm fortunately in my weight zone, but my belly is extending over slightly into the realm of overweight
 
Because you're batshit bonkers.
@Neil Same issue here. Damn beer.
 

« first day (779 days earlier)      last day (4185 days later) »