« first day (807 days earlier)      last day (4157 days later) » 

7:00 AM
@AndreiTita Read One Piece then. No fillers in there!
 
Is Hentai a fetish?
 
@Chad No, it's a form of pornography.
 
I though fetishes where like leather, stocking, or anything that differs to the cultural value norms of what is sexually arousing
 
@Chad Like dickgirls. Or futanari.
 
@StackedCrooked I can't promise to take you up on that advice. I can't follow manga very well.
Depends on the art style.
 
7:02 AM
@Etienne they're called lady boys
 
Don't you mean @Chad?
 
@Nawaz you look rather young
 
And automatic maximisation
woo
 
Major E08 - watching during compiles
 
7:12 AM
First season is just a warm-up.
 
like running a marathon - some of these series are so long ;^)
 
One Piece is quite a marathon. Took me 3 months. I know someone who did it in one month.
 
how many episodes in OP?
 
578**
 
isn't it still running? damn
 
7:16 AM
@EtiennedeMartel These people have legit been able to make some great music from GameGrumps. I'm really impressed, especially of this one: youtube.com/watch?v=K4m5mr41g4c
 
@kfmfe04 The story is still going strong. They just entered the new world, which is only halfway the grand line.
 
@ThePhD In a similar subject: this.
 
Kinda unrelated, but Fate/Zero Opening 2 really rocked.
 
Anyone know a fast way to check if something is a perfect square?
._.
 
A perfect square is... what, exactly? o_O
 
7:25 AM
4 is a perfect square
because sqrt(4) is 2, so is 16, sqrt(16) is 4.
 
... Uh.
 
@Rapptz You know I guy that could be described as perfectly square.
 
The square root of the number is an integer
 
Oh.
 
@Rapptz Array lookup :P
 
7:26 AM
Hm?
 
bool isperfect ( double x ) {
     double r = sqrt(x);
     return (r - trunc(r)) == 0.0;
}
?
 
you consider that fast? o.O
 
I mean, the only other way to speed it up is to probably do some early cutoffs.
No, it's slow as shit.
For starters, you could examine the exponent component of hte double
see if its set to anything
if its a number that indicates that the decimal is floating, then you know it'll fail.
 
hm
 
After that, it'll be an integer operation.
Coercion to long long, maybe check some divisiblity rules?
I dunno.
 
7:29 AM
blergh. why is win7's search so ...utterly shit
 
@melak47 Meow?
 
is the log function slower than sqrt? I kind of imagine so
but I wouldn't know
 
@Rapptz yes
 
doing a fucking recursive dir into a textfile and searching in that is faster and finds stuff windows' search doesn't...
 
very
 
7:30 AM
yeah figured
 
With an array of length 65536 you can store all 32-bit squares. This mean 65536*4 = 262144 bytes. Which easily fits in to stack memory. (However, how do you do lookup?)
 
There's a low precision square root function in SSE that's fast.
 
Been watching the node.js youtube clips impressed with what they've done
 
But you need to use SSE intrinsics directly to access it.
 
@StackedCrooked Somewhat related: I liked this one better vimeo.com/16345287
 
7:31 AM
I tried doing an ASM sqrt() but god damn ASM in GCC is torture
 
@Rapptz you can set the syntax to Intel
 
@StackedCrooked Fate/Zero was pretty great though, although I have no idea why they decided to retcon a few details.
 
GOIN' SQUISH SQUISH, SQUISH SQUISH SQUISH
 
@Cheersandhth.-Alf Yeah I know, with -masm=intel
 
also in the source
 
7:32 AM
but it isn't as nice as MSVC
 
i don't remember exactly
 
With MSVC I can do __asm{ }
 
@Mysticial Didn't Quake3 have a magic hack for square root?
 
but with GCC I need to pass them as strings or something, terribly annoying
 
@Rapptz VC++ doesn't allow asm in x64
@Borgleader That isn't fast anymore.
 
7:33 AM
@Mysticial It got slowed over time ?!!?
 
@StackedCrooked: Yes, I'm just 4 and half years old. :P
 
@Nawaz You're quite ahead of your age in writing :)
 
Well since I'm trying to find if x, y and x+y are perfect squares I thought of calculating pythagorean triples
for a limit of N
but apparently I don't know how to do that lol
 
@Borgleader The hardware caught up with it.
 
Ahhh
 
7:35 AM
There's a 5-cycle square root function in SSE that gives about 12-bits of precision.
 
@Mysticial What is fast today? std::sqrt?
 
better than the Quake3 algorithm.
 
std::sqrt() is fucking slow as hell ;_;
 
@StackedCrooked No, that runs in >10 cycles.
 
Oh no 10 cycles
 
7:35 AM
10 fucking cycles.
 
TEN CYCLES
 
If you want speed then you go for the 12-bit accuracy fast inverse square root instruction.
*which probably does the Quake3 algorithm underneath.
 
@Mysticial But you said that wasn't fast anymore!
 
I believe the double-precision square instructions run in 20+ cycles.
@StackedCrooked Not when the hardware does it.
 
@CatPlusPlus Remember that @Mysticial is used to hardcore high speed math calculations.
Also, he doesn't know C. But that's beside the point.
 
7:37 AM
Teeen cyyyycles
 
@EtiennedeMartel He does it on purpose. In front of me on purpose. :P
 
@EtiennedeMartel The cat knows this room better than anyone else :p
 
@CatPlusPlus Teenager cycle?
 
@StackedCrooked: Hehe. That is my nephew by the way.
 
@Mysticial We also make C jokes in front of you on purpose.
 
7:38 AM
@StackedCrooked It's not like he has anything better to do...
 
He's the one who started those jokes you bad
 
@StackedCrooked picking up some everyday J. vocabulary from Major

腰抜け「こしぬけ」koshinuke - coward (lit. pulled/weak back)
 
@EtiennedeMartel You mean find like a wife and get married and have kids?
 
@StackedCrooked Woa.
 
Anyways, need to pack up and check out.
 
7:42 AM
@EtiennedeMartel Yeha, I'm 32 and the prospect scares me like hell.
 
Why would I want kids
 
@Mysticial You're leaving us?
 
@CatPlusPlus You know. For happiness!
 
I'd be happier ironing shirts while wearing them
 
And for talking down to other people on this chat.
 
7:43 AM
Not that I iron anything
 
@Borgleader yes :)
 
nooo...!
 
He'll be back in ten cycles
 
Ah, but that's kind of slow.
 
That's life
 
7:45 AM
There's always another cycle.
 
The cycle of life
 
*uckin cmake - I made a change that I swore was ok but was getting a core dump - turned out to be some crappy dependency bug in cmake for templates (again!)

a make clean and a 5 minute build and I was ok again (too bad I lost almost an hour on that one)
 
Never had big problems with CMake myself.
It's just a hassle to learn yet another scripting language.
 
in general, I like cmake (easier to use than gnu tools, I think), but this template dependency issue has bit me more than once...
 
Bleh.
Done drawing.
Much rather program. ._.
 
7:50 AM
CMake is horrible duct-tape language, like make
 
Pretty much.
 
with any make system, I like to deal with them "as little as possible" - just compile and link dammit!
 
Epicness
 
duct-tape is not horrible, its like the force - it has a light and a dark side and holds the universe together
 
CMake is not something that occupies a lot of my development time. So I don't care much about its elegancy and shit.
 
7:53 AM
Repost ;)
 
agreed - I'm kinda indifferent to its ugly-macro-like-system because I don't need to deal with it much - it's things like this ugly template dependency bug that annoys me (lost time is never good)...
 
Never saw that image - sweet! Thanks Borgleader!
 
@pstrjds I saw it this morning, that's why i found it funny when you said that.
 
しつこい shitsukoi = persistent
 
7:55 AM
@Borgleader I just shared with co-workers :)
 
@ThePhD You naughty naught boy. Then again, I guess their is an economic advantage to making your own porn :P
 
@Borgleader ... It's not porn. D:
 
@ThePhD fap fap fap
 
._. You're all disgusting.
 
I'm not at work.
 
7:57 AM
I'm not not joking
 
That doesn't make me less creeped out.
I was going to do fins, because it'd actually look like a cool Sea Demon Princess thing,
but, I couldn't do it. So I settled for non-finned braids.
STILL LOOKS LIKE SHIT THOUGH
Wtb real artists.
 
Related:
Nami the Tidecaller :)
 
Haha man if I could draw like that
I would not be drawing what I just drew. :c
 
Keep trying :P
 
So this may be a dumb C++ question, but is there a way to create a "named" mutex in C++11. The std::mutex class has been added, but I don't see a way to get a "named" version that can be used across processes?
 
8:00 AM
Even the artists at Riot vary greatly in skill. The older splash arts look like shit.
This one makes me cry every time i see it
 
@pstrjds what do you mean by "named"?
 
@Borgleader That's hilarious.
 
@kfmfe04 Well maybe it is windows specific which could explain it not being in the standard definition - msdn.microsoft.com/en-us/library/windows/desktop/…
 
@StackedCrooked It's also possibly the creepiest skin in the entire game.
The pink furry leg warmers are really really disturbing.
 
8:04 AM
@pstrjds you could create your own std::map<std::string,std::mutex<>> if I understand that doc correctly...
 
@Borgleader It doesn't help that apparently one of the Gem Knight's skills is to stun you, and then explode on your face.
All the terrible ideas. :c
 
@ThePhD Dazzle - Taric emits a brilliant ball of prismatic light from his gemmed shield, stunning his target and damaging them based on how close he is to them.
 
I like the guy. The smile of his face seems to show he knows he has the coolest (pink) hammer in the game.
 
@kfmfe04 Actually what I would probably do is create a shared memory block and create the mutex in the shared memory block. That might work. The named mutex in Windows is managed by the OS and so you can create it and synchronize across processes
 
Taric is the Edward Cullen of Paladins sigh
 
8:05 AM
Welp.
I'm all drawn out.
I guess I could play a video game?
Roller Coaster Tycoon 1, I still have to beat all the parks.
here we go!
 
@pstrjds if you need to go across processes and not just threads, shmat seems like a valid option
 
Here's Taric's only decent skin:
 
afk
 
@kfmfe04 Yep, guess that is how I will have to do it. Thanks for the help. Another option may be to derive from std::mutex adding a named constructor (taking a std::string/std::wstring for the name) and using the result of the Windows API create call as the native_handle. That would be a useful utility library type of thing.
 
8:21 AM
mornin
 
in PHP, 4 mins ago, by jhonraymos
http://stackoverflow.com/questions/14083231/basic-c-hello-world-warning-when-using-printf/14088886#14088886
 
cpx
@jhonraymos What about it?
 
@jhonraymos it's not "too localized".
 
what the hell is cv-pls?
 
@cpx he wants to close answer ... he does posted same in php chat room to
 
9:20 AM
Close votes please?
 
cpx
Oh, close votes request
Yeah.
Aim and Fire!
 
@Rapptz cv-pls means close vote please
@Abyx why do you think so..? its just a header file missing question
 
@jhonraymos it's not "an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet"
 
because other people can have the same issue
stupid, sure. But not too localised
 
@jhonraymos also posting same answer(idk you mean question) to many chat room is .. not a good idea ..
if you think its tl than cv .. and leave
 
9:26 AM
@NullPointer i think you need to check the link
 
What is happening why are there PHP people here
(Seriously get out with that cv-pls crap)
 
cpx
10:20 AM
@TonyTheLion: There was an another lion here before you.
 
shoo him away
I am the only Lion!
 
cpx
Yes!
Apparently, it was PHP Lion.
 
oh gawd :(
 
I find it funny that PHP room roams SO and throws close votes on non-PHP tags
~Expert programmers~
 
posted on December 31, 2012 by Alf P. Steinbach

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: 600 people reached the top of Mt. Everest in 2012. This blog got about 10,000 views in 2012. If every person who reached the … Continue reading →

 
10:31 AM
could someone tell me if this "day = static_cast<DAY>(day+1);" is valid in c++ or is incrementing an enum implementation defined?
 
It's most surely UB if the value doesn't correspond to any enumerator
 
if i make sure it corresponds to an enum
 
Valid enum values are the values of the underlying type, not the set of enumerators (this is to support flags).
 
@R.MartinhoFernandes oh, so if the underlying type is int, i could go and set my enum to 500 even though it only goes up to 7?
 
10:34 AM
hi
 
hello there
 
@Tuntuni Yes.
 
@R.MartinhoFernandes i see. so incrementing an enum is the same as incrementing its underlying type then?
 
@R.MartinhoFernandes okay, thank you very much :)
 
10:35 AM
and one must note that bool is not an enum type
 
I'm pretty sure DAY is an int.. considering he's adding one to it
and adding one to an already 1 bool is doing nothing.
 
i'm doing PE no. 19
and need to keep track of days :D
 
What's 19?
Oh counting sundays.
 
yes
 
100 years * 12 months = 1200 months / 7 days in a week = 171 sundays
:P
 
10:37 AM
o.O
haha wow
lawl that was quick
 
don't overcomplicate it
 
@Rapptz yeah, that's what mostly happens to me when programming lol
the solution is usually rather simple
 
@R.MartinhoFernandes So what you're saying is enums suck even more than I thought
 
@CatPlusPlus lol
 
Not that UB here would make it better
 
10:39 AM
I have a question... is it ok to leave std::'s in my c++ source while still using namespace std or should I hunt down all the std::'s and erase them
 
@Rapptz That isn't always correct if you are given a certain date range.
 
Also did you hear I fixed my font problem
 
@RolandSams You shouldn't have using namespace std anywhere
 
posted on December 31, 2012 by Alf P. Steinbach

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: 600 people reached the top of Mt. Everest in 2012. This blog got about 12,000 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 20 years to get [...]

 
10:40 AM
I have a 3rd party lib that requires it
 
Fire.
Kill it with it.
 
using namespace has limited uses and this is not it
 
@R.MartinhoFernandes Hm. It works most of the time, especially in the context of the problem. (Jan 1 1901 to Dec 31 2000)
@RolandSams pretty bad
 
How does a library require shitty coding convention on your part
 
@Rapptz Ah, that does not start on a Sunday.
 
10:42 AM
hey, I wanted to use std::
 
Then use it
 
the lib seems to require i
 
then do so?
 
What
You're just bad
 
I have no idea how you're required to not use it
 
10:42 AM
Or the library is unusable levels bad
 
What library is it anyway?
 
Libpq
 
But using namespace doesn't stop you from using qualifiers yourself
 
It's a C library. How does it using namespace std.
 
that says it's a C library
 
10:43 AM
libpq is C library there are no namespaces there or std at all
1 min ago, by Cat Plus Plus
You're just bad
 
They could declare something named std.
 
when I don't use std it throws errors at me
 
But that's kinda beside the point :)
 
@RolandSams use it then?
 
Don't put using namespace std anywhere ever
And then you obviously have to qualify
And there goes your big dilemma
Seriously, why does this always have to take like 15 minutes of explaining
 
10:46 AM
I will have to but should I keep std::'s or erase them
 
I usually just use using std::string; or whatever I need in that exact file.
 
@StackedCrooked Doubtful, they prefix identifiers
Am I writing English here or am I so sleep deprived I subconsciously switched to another language and only think I write English
 
Oh god paradoxes
EVACUATE THE PREMISES
 
WTF is that topic.
 
10:48 AM
Standard Lounge business nothing to see carry on citizen
 
@CatPlusPlus This once happened to me. But it was new instead of std that was declared.
 
Is there any penalty to keeping the std:: prefixes even though I am using std?
 
You know what, I'm not going to repeat myself for the third time
plonk
 
I don't even know what he's saying anymore
 
@StackedCrooked Those are bad libraries
C programmers who pretend C++ doesn't exist are complete morons
 
10:50 AM
@RolandSams Write std:: everywhere. Don't write using namespace std; anywhere. Done.
 
Or the library is so old you probably shouldn't be using it either way
 
Hey sbi replied to my question. (I didn't know him back then.)
 
0
Q: Compressing multiple files into multiple archives?

jonasI have a folder full of pdfs and I'm tired of Winraring each file separately. I don't want to put them all in one archive. Isn't there a command line I can use to make Winrar compress a file with best method, delete the file after making the .rar and then do the same for the next file? If not, ...

lol
 
That guy Mat created the tag with a previous question and then added it to your question.
lol
People use Winrar?
 
> I have a folder full of pdfs and I'm tired of Winraring each file separately. I don't want to put them all in one archive.
What
 
10:55 AM
@CatPlusPlus Brilliant idea.
lol
Kinda adds meaning to "archiving".
 
That sounds like a pain in the ass to extract
 
SO is so horrible
 
@Rapptz I think extracting several archives at once is dead simple.
 
I know it works on 7zip but I don't know about WinRar
Last time I used it was like.. forever ago.. 2004 I think.
 
Ahahaha I just noticed this
16 hours ago, by tereško
Could you please stop letting Zoidberg'-- out? Every time there is a flag, he comes to channel and bitches about it.
 
11:00 AM
Hmmm, time to go shopping.
 
cpx
@R.MartinhoFernandes New year prices?
 
I need mayo I should probably go to shop too
 
well I should probably sleep
Good night.
 
cpx
I may get a new laptop.
 
15 hours ago, by R. Martinho Fernandes
Turns out I left the fridge empty and it did not refill itself while I was away. Must be broken.
 
11:07 AM
posted on December 31, 2012 by Alf P. Steinbach

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: 600 people reached the top of Mt. Everest in 2012. This blog got about 10,000 views in 2012. If every person who reached the … Continue reading →

 
Again? WTF is Alf doing?
 
It's auto-generated post it seems
Because lol using WP.com
Or WP
 
Hmm, you guys were right. I am now "using namspace std" free
 
Seriously
Where do these people come from
Do they live in some underground cave system and only emerge every 50 years to unleash their idiocy upon the world
 
cpx
11:24 AM
Lately, I had stopped playing games which involved violence and gore and also stopped listening to metal. Now, although my mind is asking for some more but I feel at complete peace which I think is good.
 
You're high again cpx that's not healthy
 
cpx
Something is happening to me.
 
@R.MartinhoFernandes two different blogs. sorry. it's wordpress generating these end-of-year reports, i just accept them :-)
 
cpx
I don't do drugs or alcohol.
 
That's what they all say.
 
11:27 AM
:)
 
@CatPlusPlus It takes a special kind of stupid to want to choke your own revenue source.
> I want to learn Algorithms and Data Structures and the only language I am compatible with is C++.
 
I'm only compatible with language of dreams
 
Gurgling and moaning?
 
Ell
@cpx You do drugs and alcohol
 
@StackedCrooked Have you solved problem 12 ?
 
cpx
11:40 AM
@Ell Yes. :)
 
in C#, 4 mins ago, by Johan Larsson
ok you who speak the language, is digit the equivalent of char as it is written here i.e {1, 2, 3, ... , 8, 9}
& good morning
 
@vivek Nope.
Requires sleep.
 
@StackedCrooked you in Europe? If so I'd say yes it is time to go to bed (stepping in as mother here)
 
Ell
@JohanLarsson It's only mid day :P
 
11:49 AM
yeah, that's what I said:) all marathon sessions come to an end, sad thing
 
@JohanLarsson yes: english digit == Swedish: siffra
 
@JohanLundberg ok tack
 
Ell
Am I allowed to ask for code on Stack Overflow?
without providing any?
 
cpx
Maybe not. You have to post what you have already tried.
 
I guess you are allowed but might end up hated depending on how you ask
 
cpx
11:52 AM
I see a lot of comments on some questions saying "What have you tried so far?"
 
Ell
Yeah
I have removed what I have tried so far :P
 
If you just drop the requirements, it's bad.
If you ask, for example, for the idiomatic way of reversing a string, it's ok
 

« first day (807 days earlier)      last day (4157 days later) »