« first day (632 days earlier)      last day (4334 days later) » 

5:00 AM
@JerryCoffin "It's an illusion, albeit a very persistent one." :Đ
 
5:11 AM
@DomagojPandža Well, on that note I probably need to go get some sleep. G'night all.
 
Sweet dreams!
 
@JerryCoffin Night :)
 
night
 
Thanks. Later all.
 
ive been to like 5 sites off of google for project ideas but i cant find any one of them that i have interest in >.>
 
5:39 AM
0
Q: post-increment operator and pre-decrement operator to the same variable in c

vindhyaIs this possible in c?If not what is the reason? int main() { char *p="hai friends"; while(*p!='\0') { ++*p++; printf("%c\n",*p); } }

AHHHH! They're back!!!!
 
Wut?
That one is not UB.
 
OH shit, you're right. I looked at the title... and screamed...
 
It's silly and stupid and all that, but it is defined.
 
So fugly.
 
Morning
 
6:03 AM
morning bitches, here's some music to wake you up :P
 
Yawn. Morning
 
6:18 AM
Good morning
 
#define CRAP (1U<<15)
unsigned short i = CRAP;
Is that UB?
 
holy fcuk, our webstreams have not had any Now Playing information since the 5th
 
1 * 2^15, 32768.
short should be a 16-bit value, therefore, 2^15 falls into unsigned range
on a 32-bit architecture
why do such horrid things, though?
 
I DID NOT
have to deal with it however
But I thought more if you end up with i = 1U << 15;
What is happening first? The assignment? Do you end up with one assignment or two?
 
@refp What kinda webstreams ?
 
6:31 AM
@Abhishek I work for a very large radio company (in sweden), we own and maintain 5 "proper" radiostations and a few webonly (though the now playing malfunction was on our "proper" radiostations webstreams)
 
Preprocessor simply hacks it in directly. You have a literal, which must be ascended to a temporary which is shifted left 15 times, until it becomes 2^15 or 32768 or 1000000000000000(2).
And that value is assigned to the unsigned short which ranges from [0, 2^16-1]
 
@Mysticial Done.
 
So it is defined on 32bit?
 
@RobertHarvey Oh cool. :)
 
6:34 AM
But you'll get assraped if you try to stick to something else that doesn't like it, so be careful.
And smack the schmuck who thought of it in the first place.
2
 
I don't like the fact that we have a moderator in here.. he/she will probably overreact when I call everyone 'iggah.
<- taking advantage of the fact that he's black, trollin' madly
 
@refp Ouch :-(
i work for a ShoutCast provider , but i understand how big mess that "kinda" thing can create
 
@Abhishek the odd thing is that I haven't received any complaints about it, someone should investigate if anyone even cares about the now playing functionality (obviously people do, though)
 
I just noticed I'm listening to Mass Effect 3's soundtrack.
 
I guess the summer + that it's been a weekened contributes to the "oh there is a problem but I'm too lazy to report it"
 
6:37 AM
Thats really intresting
cause we get stuff posted on facebook when such errors occur.
"Hey S1 is having problems" , "Hey my radio is not working" #waitThisAintForum
 
I don't check social medias, I'm referring to mail from people in-house that has gotten complaints from our listeners
pending morning work out and a smoke
 
Have fun :-)
Btw have you got a chance to mess with mpg123 / libLame / ffmpeg ?
I am having to choose between ffmpeg vs [ mpg123 & liblame & libresample & a custom mixxing library combo]
the app has to scale upto about 200 instances on an intel xeon.
I am wondering if the slow but feature rich ffmpeg can handle this load
 
7:30 AM
If anyone feels like being snarky:
0
Q: What are the pros and cons of using static function in header file

beparasWhat are the pros and cons of using static function in header file?

"What are the pros and cons of a 0% accept rate?"
I'm not evil enough to say that.
 
You could go all pedantic on him with: "What do you mean with using?"
Calling a static function from a header file, defining a static function in a header file, or importing a static function from a different namespace?
 
@Abhishek not really, or well.. not in any performance critical application so I've been using ffmpeg wherever I needed to
 
@refp any proper documentation / tutorial to ffmpeg , programmatically ?
 
@Mysticial the pros are obviously that people tend to link authors with 0% accept rate in channels such as this one, giving them exposure
 
Pro of 0% accept rate is that it spares you the trouble of clicking the accept button.
 
7:34 AM
Exposure is for pussies, cameras and eyes.
 
The best "accept rate" comment I've ever seen was on an optimization question. The OP was like, "How do I optimize this function?"
And the first comment was, "You can start by optimizing your accept rate."
 
@Abhishek I have a pdf-paper somewhere at work, though I'm currently not there.. remind me and I might be able to find it for you
 
@refp , okay i will :-)
 
why isn't there a "new post in " bot in here? that be quite sweet.. (inb4: no, it wouldn't.. that would just spam loads)
 
7:36 AM
till then i am just gonna try and read src code to understand :-)
 
No, it would spam useless questions on why i++++i does not return 237.
 
@Abhishek yeah, that's the best way of learning (and writing code as you go along)
@Cicada pff.. everyone knows that` i+++++i` yields 1337
 
Obviously no. The question pop every so often.
 
No, i+++++i yields "teeth".
 
though having a bot with the functionality described only linking questions where the author has more than N rep would be nice
 
7:38 AM
That's discriminatory
 
sadly I'm looking for a project which is suitable for writing in C++, I haven't developed anything major in this area since.. well, a long time ago. it's not often I write C++ at work
 
C++ is bad for work anyway.
 
"Professional developper, hobbyist developper as well."
 
C++ is a language which is more fun to discuss in theory than to use in practice
 
How can someone be professional when he is obviously a developper
 
7:40 AM
more fun to discuss? what.
 
I wish I was a "Professional developper"
 
Also C++ is not a language.
 
developperkg
or just develop/
 
C++ is a vast amount of junk, organized such as it looks like you can express something with it.
 
@Cicada everything you write seems to have a "please star this message" purpose, knock it off.. we only care about porn.
 
7:41 AM
And who the fuck are you
 
the one who doesn't give a fuck
 
C++ comes with a sexually transmitted disease. Or was it the standard library? I always mix the two.
 
who the fuck are you?
that should be in quotes, it's an awesome line from the movie Stay
 
Probably one of the 3 people that don't care about porn in this room.
 
Cicada is a major player in the French porn industry.
 
7:43 AM
@refp Nationality?
 
@Cicada people, in here? you got to be kiddin' me.
@Cicada let's play the game of "guess refp's nationality".. hint: tmp.glork.org/refp_smoking.png
 
United States ? // just guessing
 
No. I don't give a shit. If you don't want me to troll on your nationality, fine. I'll troll on your cancer. Because you'll die of it. Smoker.
 
Hmm
 
@Cicada I'll fuck female models until then, so I don't really mind..
 
7:45 AM
Haha, you bet you will.
 
@Abhishek nhaa, I'm Swedish.. just tryin' to be an ass (and I think I'm quite close to gettin' the required diploma)
 
Yeah well, what else can you do? Too much snow to go outside. Enough vodka to stay in.
 
@Cicada vodka isn't swedish, we got snus.. also; swedish summers are quite hot, though the winters are mad cold. ain't got no snow outside my window
 
I never said it was.
Quite hot as in, 18°C? Hurrrrr
 
you implied that it was "too much snow to go outside"
more like 26C today
 
7:48 AM
I never said vodka was swedish, silly.
Oh wow 26°C omg.
 
(according to posts on facebook, that is)
given the fact that we can have up to -25C in the winters 26C is considered to be, quote: "quite hot"
 
And a basement dweller, one.
 
since we are so far up north
wait, fcuk.. I could have won this battle ages ago if I only had checked out @Cicada's profile a little bit sooner
 
I'm proud of you guys, there have been no porn discussions since... Well, yesterday.
 
she's a girl. the male army of stackoverflow, get to business!
 
7:51 AM
@DomagojPandža Give a medal. Now.
@refp Problem?
 
@DomagojPandža that's gonna change now that I put the obvious truth out there.. THERE IS A GIRL IN HERE.
 
AND SHE WAS HERE AGES BEFORE YOU
NOW STOP BEING DUMB
Also, cmake sucks.
 
@Cicada with you being a girl? not really. I'm normally tired of the gender nonsense on the net, but now I'm trying to get under your skin (not in a sexual way.. I mean more like an annoying splinter)
 
Well good luck with that bro.
 
@Cicada yeah, I bet you'd like cmake if it was referred to as cfemake
 
7:52 AM
Probably the only way people can irritate me is with porn.
 
@Cicada You're just asking for it. :(
 
But this is an internet. So you're not going to get me mad soon :))))))
 
@DomagojPandža she sure is..
@Cicada you seem a little bit upset, what's the matter honey?
 
I'm not a bee, I don't eat honey. Google up cicadas.
Obviously that insect isn't swedish.
 
Cicada & the Dangling Pointer
Law & Coder: Processing Cicada
Doing Cicada concurrently
Access Violation with Cicada
Nuclear meltdown in...
 
7:54 AM
-1
 
@Cicada I don't need to google the definition of cicadas, I already know that it's a synonym for "annoying bitch who thinks she's all that, just because she's online lurking a male dominated website"
 
Bah, this is not fun. Remember the old days when you'd ragequit? :( <3 Where's that love?
 
@DomagojPandža That was when I thought this chat was "normal". Then I realized it was just an internet. So I don't give a fuck anymore.
@refp Look look, a mysogine. That's original!
 
@Cicada Damn CERN! Damn the NeXT workstation! DAMN THE INTERNETS!
 
7:57 AM
@Cicada I don't speak gay, could you translate that for me?
 
If it weren't for this internet guy you keep talking about, SO Chat would be amazing.
 
Not all the internets are bad. Most are.
@refp Look look, a homophobe mysogine. This is getting better!
 
.. @Cicada obviously gives loads and loads of fucks
@Cicada you are aware of the fact that "mysogine" isn't an english word, right?
it's either that or the lack of being able to spell properly, your choice. I guessing the latter since you are, as stated earlier, a 14yr girl seeking male attention.
 
Oh indeed. It's the French spelling.
 
I know.
 
7:59 AM
So the english seems to be "misogyne"
 
I speak your language, but you don't speak mine..
 
ffmpeg is incredible
website examples are nicely deprecated
and are marked as "trunk" lol
 
(my mother is from Senegal where they speak french, and through modeling I've spent a lot of time in Paris)
 
Get laid. Srsly.
 
8:00 AM
:o
 
It'll make you feel better.
Less inferior.
The virgin complex.
 
Sex involves way too much effort. Sleeping is much better.
 
Hence the fat.
 
who are you referring to @Cicada? there are more than two people in this room unless you've noticed it already.. or maybe you treat all males as a single object? honey, grow up.
 
Only to you actually.
 
8:01 AM
<- might get a better result by throwing on the rage hat.. thinkin' she might be just that kinda girl
 
But yeah I could treat all males as a single object.
 
@Cicada I'm not exactly honored about that..
 
All women see men as a singleton. To them, it seems like a factory function, but it always returns the same instance.
 
@Cicada out of curiosity (rage hat is on), did you just call me fat?
 
Did I?
 
8:03 AM
2 mins ago, by Cicada
Hence the fat.
 
Oh. If you get offended then it means you are, fattie.
 
I probably am.. but could you please send the above quotation to my booker? he'd be thrilled, or well.. he'd be happy that I finally increased a bit in size
 
popcorn
 
f¨¨¨ you, I got popcorn in the microwave
 
500g more in your cute belly
 
8:05 AM
She might've mentioned that your spatial distribution of mass is moving towards the boundary of a standard issue human volume.
 
I'm going to face the attention horse with her own medicine..
 
std::vector<uint8_t> samples;
samples.data(); // type is unsigned char * why ?
 
@Abhishek because uint8_t is really typedef char unsigned uint8_t
 
ah i see
 
though it's implementation defined, uint8_t will only guarantee the type to be of 8 bit in size
 
8:10 AM
now how do i make sure that compiler doesnt throws this error
 
@refp now, now
 
@CheersandhthAlf hmm?
 
incompatible types in assignment of ‘std::vector<unsigned char>::pointer {aka unsigned char*}’ to ‘uint8_t* [4] {aka unsigned char* [4]}’
 
char can be used as a general datatype, not necessarily to store just characters. It's a byte in length in common 32-bit architectures, giving the unsigned range of 2^8-1 -> 255. [0, 255]
 
frame->data = samples.data(); was my initial thought but it seems thats a fail
 
8:12 AM
@Cicada atch.se/stpd.gif this might be the only publicaly available fatty pic that I'm in position to publish at this time (and which I currently have access to, without going into trouble checking my agency's website)
@Cicada DONT CALL ME FAT ALRIGHT, BLACK PEOPLE HAVE FEELINGS TO GOD DAMN IT (inb4: you are not black, you're brown.. and I sure am)
erhm sorry @CheersandhthAlf that went to the wrong person
wait.. did she just rage quit?
no, just a bug in the web client..
 
I found a pic of refp and Cicada.
 
lol
 
@Cicada is it working? is it? is it? really, is it working? I mean, please - give me attention, I wanna be as popular as you're.. please, tell people you know me. Will you marry me on facebook? PLEAzE!
I'm sure the above will get me into trouble.. I already have regrets
 
You both look beautiful.
And 12.
 
oh god why
 
8:15 AM
@DomagojPandža but, that's not even my skin color?
 
@TonyTheLion rofl
 
@refp Yep I'm working. Why?
 
@TonyTheLion null-pointer dereference, that's why.. and god can't do shit about it
 
Also no, I won't marry you. I have stated marriage conditions earlier in this room already.
 
@refp i know i am very new to C++
but i am damn confused now :-(
 
8:16 AM
@Cicada bloody racist.
 
I just woke up and WTF is this?
2
 
lol
 
@StackedCrooked Do you really want to know?
 
@StackedCrooked this is the work of @Cicada
girls on the internet..
 
+1
I doubt if girls on internet are really girls or just trolls ?
 
8:17 AM
now I'm gonna eat some popcorn, have another smoke, take a shower and then rush to todays shoot location
 
foreach(members){}
print "hi";
 
@Abhishek most females on the web are bots put here by lonely programmers, mostly having an degree in AI - though it's hard to imitate something as irrational as a human of the female gender.
 
:D
 
lol AlphaMale
This could get worse.
 
lol
 
8:19 AM
@AlphaMale this is , we have no such notation such as foreach, also.. iterating all members and then doing print "hi" is kind of.. well, not very good (if you are trying to say "Hi" to everybody)
 
@RMartinhoFernandes Something to keep in mind when (ab)using std::tuple as a type list.
 
@Cicada I know you love me.
please, don't you love me?
@CICADA!? WHERE ARE YOU?
 
perv!!!!!
 
With my daddy @sbi
 
@MrAnubis she might have uttered the word No, but her eyes said Yes!
 
8:23 AM
@refp I dont like C++, and what i said is not related to any syntax its just common sense.
 
@Cicada THAT'S perverted.. what girl hangs out naked with their daddy?
(implying all girls are naked while online, which is the obvious truth)
 
@Cicada I am curiously waiting for @sbi to come and shoot you personally :D
 
@AlphaMale a programmer saying that foreach(members){} print "hi"; is common sense when trying to say hello to everyone isn't a programmer.. sorry mate
 
@refp small help bro
 
you are too much oiutdated lol. Did i said i'm a programmer?
@Koriandr Hello Vegetable :P
 
8:25 AM
where are the null-pointers? I'm a bot.
 
by definition

frame->data is a pointer of type uint8_t ;
when i try to do
frame->data = samples.data(); // where sample is a vector<uint8_t>
it throws errors
 
@AlphaMale Let me guess, you like PHP?
 
@MrAnubis I'm curiously waiting too.
 
@Cicada Nobody is waiting, we are all hurtling through space with the rest of the solar system.
 
He's probably somewhere eating a sandwich when suddenly his spider sense is tingling and he has just become very angry at you, @Cicada
 
8:27 AM
Does GCC perform some kind of inlining after compilation? I need that.
@Neil My dad is very kind.
 
@Cicada Force inline if you need that.
 
@Cicada Not if he shoots you
 
@DomagojPandža HECK YES!!! :D
 
@AlphaMale Guys, we've got a PHP lover here. Shotguns at the ready. :P
 
hahahaahhahahaa
 
8:28 AM
@Cicada gcc inlines aggressively, everything declared as inline. it's not very intelligent about it.
 
I beg for my life
 
PHP has already taken it.
 
:P
 
Yeah but. Inline functions get inlined during compile time, not link time, right?
 
i'm not sure if it has whole program optimization or not
 
8:29 AM
I don't understand the big difference between inline and a normal method
 
So I can't cross-inline functions.
 
visual c++ has
 
Or why you would have two modes if one is always better for what concerns performance
 
okay nobody helping again :-((
 
@Abhishek You should switch to PHP... :)
 
8:30 AM
@Neil there are downsides to inlining, not just pros..
 
@AlphaMale php LOL
 
@DomagojPandža Why PHP LOver is considered as an intruder over here?? ;)
 
can php handle 200 performance heavy audio file transcoding and mixxing
on a single server ?
 
-fwhole-program
    Assume that the current compilation unit represents the whole program being compiled. All public functions and variables with the exception of main and those merged by attribute externally_visible become static functions and in effect are optimized more aggressively by interprocedural optimizers. If gold is used as the linker plugin, externally_visible attributes are automatically added to functions (not variable yet due to a current gold issue) that are accessed outside of LTO objects according to resolution file produced by gold. For other linkers that cannot generate 
 
@refp Well evidently the whole world knows the downsides except me
 
8:30 AM
3
Q: Pros and cons of 'inline'

Armen TsirunyanFirst of all, I would like to state the facts I know about 'inline', so that you don't bother to restate them. An inline function is a special kind of function whose definition must be available in every translation unit in which the function is used. It is a hint to the compiler (which it is ...

 
PHP can't handle simple logic. NULL < -1 and NULL == 0 is both true in PHP.
 
@AlphaMale and for the record books i use JavaScript + C++ on server ;-)
 
@DomagojPandža that can be explained by implicit conversions though, try the same with operator=== and you'll get different (more logical) results
 
@cicada OK?
 
8:32 AM
yes, I'm not proud of it but I've been writing my fare share of PHP applications in my past
 
Oh, I can go on and on. That's just the cute little things.
 
@refp does PHP have a strict operator<?
 
That "language" is a fail on so many levels.
 
for all those who use php , should see that table ^_^
 
@ecatmur If PHP can't make sense out of the operation, it will attempt to convert it to a number and retry
 
8:34 AM
LOL, Who cares dude. GEt some good servers.. :P and @Abhishek the post was made on July 1st, 2010..
 
And yes, even strings get converted to numbers in this way
 
@AlphaMale he updates it
 
this is the last updated date dude..
 
@ecatmur no, mainly because it would be hard to see what the operator would yield when comparing two different types
@ecatmur is lhs less than rhs, or is it just incompatible with one and other?
 
Update (May/29/2012): Added the results for Java using a non-standard library.
 
8:35 AM
"The only important thing to keep in mind is that to enable link-time optimizations the -flto flag needs to be passed to both the compile and the link commands"
 
@CheersandhthAlf Hmmmm. But what if I have multiple compilation units?
 
Where are Cat++ and DeadMG when you need them? :'(
 
that's it. must specify "-flto" both at compilation and linking. as i read it.
 
Because so far with CUDA4 everything had to be in the same compilation unit (=massive includes and everything defined in .h). Now I'm porting to CUDA5 and making everything modular.
Well I may be misunderstanding the flag then. I'll try. Thanks :)
 
oh i haven't done anything CUDA. i have the impression it's more restricted in some way
 
8:38 AM
Guys Come to PHP.... I'm a Priest from st. PHP Church.. :P
 
@AlphaMale There are a few guys here who love PHP.
DeadMG, Cat++, Daknok.
 
@StackedCrooked the children at play
 
@DomagojPandža You take that back! You shouldn't talk badly about people behind their backs!
 
Join the cause. Spread love for PHP.. <3
 
Ignore Neil, he's just jealous of PHP's magnificence. You should preach PHP to those guys when they come online, they'll love you.
 
8:43 AM
@DomagojPandža You are the chosen one..
Come to me my son, Come to me. Let me open the doors of php upon you..
 
:o
wow c++ rarely helps
 
@Abhishek Dont cry
 
:-|
 
Thats how you get support in such languages...
Rarely used. :P
 
C++ is rarely used o.O ?
 
8:44 AM
I should say barely used
 
c++ will always be the language of choice for gaming i believe
 
@Neil Agreed :)
 
> I believe
 
If you use C you might as well shoot yourself in the face, and if you use Java, well you might as well shoot yourself in the face all the same
@Cicada Well as a scientist and a scholar, I can't omit that
It's possible something better may come along that I cannot forsee
 
I hope C++ dies soon.
 
8:47 AM
In a fire.
 
and i hope C++ Rotts in HELL.
 
you both should rott in hell rather :/
 
Cookies.
 
hahahaha. Look another Narrowminded comes..
 
rott in "haskell".remove(1,3)
 
8:48 AM
I swear to John Smith's tits, this guy is either a troll or...
 
@AlphaMale yeah php lover :P
 
@DomagojPandža LOVE :)
@MrAnubis Come to me let me fill your heart with php and throw all C++ shit out of it..
 
@DomagojPandža whodat
 
testing an updater web application is filling up my harddrive with millions of useless updates
package (324).zip
 
Using CMake is making be blind. And deaf.
 
8:53 AM
@AlphaMale what're you? cupid?
 
@Cicada And that's probably for the best when looking at CMake
 
hahah yeah pluto :P
 

« first day (632 days earlier)      last day (4334 days later) »