« first day (1207 days earlier)      last day (3742 days later) » 

12:00 AM
 
Ahahahaha (N)SFW, has the word porn in it
 
@SamDeHaan one really wtf moment of my first year in Russia is me being followed by a bus on the sidewalk of a bridge during winter.
 
Jan 28 at 18:03, by sehe
Peeps, no time for real discussion here. My stance; questions can be annoying, but people are easily ignored. ALWAYS. It gets harder with binning and berating. I suggest only moving message to the bin if they're physically distracting. Consider using the Bulk Trash plugin we got from the C# room (?). And don't remove bin audit message. Because all those actions tend to be (very) counterproductive.
 
@LoïcFaure-Lacroix seems reasonable.
 
@HamZa gg
 
12:02 AM
@Jefffrey thx
 
@LoïcFaure-Lacroix How many dash cam videos on youtube have you lived?
 
you too
 
@SamDeHaan cameras are everywhere
 
@Borgleader 404
 
12:03 AM
@LoïcFaure-Lacroix I mean how many of the common ones on youtube have you experienced yourself, of course
 
I'm quite lucky I guess, in 4 years nothing really happened to me
to be honest, I feel safer in the street in Russia than in Montreal, drivers here usually don't drive fast like crazies. They do drive everywhere and I mean everywhere.
 
@Borgleader the thread is ok, not the link though
 
@LoïcFaure-Lacroix If I suddenly found myself in Montreal without explanation, that would creep me out to!
 
@Jefffrey I re-imgured it if you don't see this, I blame your ISP :P
 
Ell
dash cam?
 
12:06 AM
@Borgleader lol, "can't find i.imgur.com"
 
@Ell what russians use to ensure that they catch their bizarre traffic death on camera for insurance
 
Ell
ahh that's where all the gore on /gif comes from
 
@Jefffrey f-f-f-f-ail :P
 
@Ell Partly . Let's not forget french pervs
 
@SamDeHaan I saw people driving on the trams rails.
 
12:10 AM
@Borgleader finally I could with the use of a proxy
my isp sucks badly
 
cpx
I have this function which converts integer to hex: ideone.com/fwPOlW
 
Congratulations
 
cpx
But on my calculator the result is inverted: 3E8
 
Big fricking deal
 
http://t.co/66GV0CnQTE
 
12:11 AM
tell people to read it backward
 
cpx
Am I shifting it correctly?
 
Inb4 "have you heard of Stack Overflow"
@cpx Totally. The world will adjust in a few year's time
 
cpx
:/
 
Soooo... This is what happens when you post something mildly interesting on twitter including the word "visuliazation" ^
Mention spam.
 
cpx
I couldn't find a hex to bytes converter online.
 
12:13 AM
They don't exist. It's under NSA embargo, didn't you hear?
 
cpx
So I don't know what I'm doing.
@sehe: What do you think about my function?
 
2 messages moved to bin
 
sexy
 
What makes you think I have thoughts about your .... "function"?
I hope it functions. Otherwise, see your doctor
 
oh my god jesus christ wtf
using namespace std;
 
12:15 AM
 
Xeo
@cpx your function certainly plots some sexy curves
 
you noob
 
@Borgleader lol
 
@sehe What's so funny? :(
 
Xeo
...
 
12:16 AM
That you post that as an understatement :/ (Was not that meant as humor?)
 
Xeo
what do you think 1000 represents?
 
The reciprocal of one's IQ
 
cpx
3E8
 
Good job.
 
@Xeo 3E8, but my function is much shorter ;) So I win, right?
 
12:18 AM
wat
 
@Borgleader That's what she said
 
cpx
But it prints the other way.
 
Xeo
what
 
@Borgleader goto codegolf
 
reverse it before you return it
 
12:19 AM
@Jefffrey Why would I go to codegolf... it's his function that doesn't work not mine =/
 
erm...
 
@Borgleader Just say it's "for a friend"
 
cpx
I'm not sure who is right..
 
Aside for trolling homework questions, I don't even know what codegolf is for
 
cpx
Calculator or my function.
 
12:20 AM
HELLO ORACLE, YOUR 30 CHARACT
^ wow - talking of gol[fd]
 
@Borgleader shorter code
 
@cpx Which ever has the correct answer!
 
the shortest your code is, the more you win
and no, she didn't say that
 
http://bit.ly/1bkZXCq (DON'T CLICK ON "I'm feeling lucky". SRSLY DON'T CLICK ON IT)
Now go away, troll :/
 
@sehe No if your function is short she says "is it inline yet?"
 
12:22 AM
One advantage is that she won't fall asleep before you're done
 
0.00694, also ~speed of light in free space, also recurse properly and print the MSnibble first.
 
@sehe hmm
 
cpx
@sehe I'm just curious guy :/
 
@cpx Yeah right. Thanks for that. Tell google you're curious maybe?
 
Sehe's so mad today
 
12:26 AM
If three letters of typing is too hard, then you're not curious - at least not in the sense you think you are.
@Rapptz I didn't nuke him - yet. (Just thought I'd mention.)
 
garbage collector bin master on a mission!
 
cpx
Doesn't this get the first byte (1000 & 255);?
 
(via WalrusPony @ Freenode)
 
There should be a massive killer whale in the distance ...
 
12:30 AM
@cpx Depends. On your definition of 'first' or 'byte' mostly.
 
cpx
The least significant byte.
 
depends on endianness afaik
 
cpx
For bit shifts?
 
@Borgleader Nope. & is just a bitmask, and it just masks the mask equivalent of 255
 
time to nap
 
12:31 AM
I pondered this for 1.7s myself
 
cpx
That's how I'm converting integer to hex. Starting from least significant byte to most significant byte.
 
@cpx And hence, you get the LSB first.
 
cpx
Should it be MSB first?
 
@cpx Okay. Srsly. Do we look like we care? We've been over it. You've been accidentally exposed to top secret results from google. Now, figure it out. Thank you for your cooperation.
 
12:33 AM
@cpx Dunno - you tell us.
 
-+
 
@cpx DEPENDS on your application. If you want human readable hex, well DUH (you didn't write 0001 for a reason, presumably)
 
user3010322
Guis
 
@sudorm-rfTelkitty Whale sharks?
 
user3010322
What's the verb form of "contempt" ?
 
12:34 AM
@ThePhD Yeah. Please. Anythng. Cowboy casts, everything is welcome
 
user3010322
Like when you greatly frown upon something?
 
@ThePhD The same (I thought)
 
user3010322
:c I'm sorry.
 
user3010322
@Griwes I want one of them to accidentally hug the other and potentially gore something by mistake.
 
user3010322
"Oh, I love you Squee- Oh OH MY GOD I'M SO SORRY WAIT STOP FLAILING OH JESUS."
 
12:35 AM
@MartinJames I see only a dinner there
 
@MartinJames Orca - hunt like sharks, but 10x more intelligent (intelligence of dolphins)
 
@ThePhD Actually "comtemn" still exists! Although it's archaic thefreedictionary.com/contemn
 
@LoïcFaure-Lacroix Whatever - the seal is gonna have a bad day.
 
@MartinJames s/is gonna have/had/
 
12:37 AM
The Communist International?
 
cpx
By some coincidence, they used 1000 as example as well.
 
user3010322
@sehe Ah. Well, I ended up changing it to a noun form and going with this:
 
user3010322
> While it is clear the Heian aristocracy in The Tale of Genji and in their historical period greatly valued literacy, beautiful arts and grand ceremonies, it is also immensely clear that the aristocracy were vastly removed – and held odious contempt – for the “working class” of their period.
 
@cpx Yeah..
 
Oh no. The US are quickly losing all their national security that hinges on the secrecy of hex byte ordering
 
cpx
12:38 AM
So, it's just the big and little order..
 
@sehe Inevitable once NSA moved to 64-bit.
 
cpx
Depends if I'm sending on network etc.
 
@ThePhD except the elision doesn't really work: "help contempt /for/" (of) strike that.
 
cpx
Otherwise my function stands correct.
 
user3010322
Ooh, whoops.
 
user3010322
12:39 AM
uhm. Lemme fix that...
 
@cpx as far as I know there is the "network standard" endianess so network is never a problem really
 
@cpx That's what we told you. Numerous times. And it's still irrelevant since you are presenting it as text not over-the-wire binary
 
user3010322
> vastly removed from – and held odious contempt for –the “working class” of their period
 
user3010322
I think that's better. :D
 
I tend to use protocols that spit out the header in ASCII-hex bytes.
 
12:41 AM
@ThePhD I think I was confusing 'to be held in comptempt of (something)' and 'to (hold|harbour|foster) contempt (for|of)'. It may be ok
@ThePhD I agree
 
cpx
I can now move to writing binary to hex.
 
You... what
 
@cpx Lookup table.
 
cpx
That would be easy I guess. Just take 4 bits and convert them to hex.
 
12:42 AM
@cpx What on earth are you doing. That has nothing to with math, integers or strings
@cpx Just take 8 bits will be lots simpler. Otherwise, yes
 
cpx
That is just has to do with C++!
 
8bit will be lot simpler than 4 bits
 
@cpx I'm sure we don't want to know why.
 
unless you're working on a 8 bit microchip
 
Anyway, I'm drunk so bedtime. Night all!
 
12:44 AM
even 8bit microchip don't have 4bit registers
 
Night all, I hope you all survive. Maybe I shall relink the spam so we can spare people the gory details of hex for php programmers:
in Trash can, 58 mins ago, by Jefffrey
in bin, 1 min ago, by HamZa
8 mins ago, by HamZa
http://curvefever.com/play2.php
room10
psw: c++
There. Good night
 
user3010322
Hehe.
 
user3010322
Night.
 
i'll sleep to it's time cya
 
cpx
Night++.
 
12:46 AM
But it's only like 19:45
 
4:46 am here
 
If I don't get verified soon I'm gonna start submerging continents. #youvebeenwarned
3
 
I think int a=0,b=1;a=a;cout <<"I thought I set a=b!"<<b; should be illegal (a=a), or at-least a compiler warning.
 
@Mikhail It does give an error: coliru.stacked-crooked.com/a/ab9b41b7cd2e6f10 :)
 
1:06 AM
@LoïcFaure-Lacroix AMD 2901s did though.
 
user3010322
Guess you're not going to sleep. :P
 
Hrm.
 
Don't be shy, Sam
 
Can't help it
 
Oo I am not a hot stud ...
hot & spicy stud ... ummm ...
 
1:15 AM
 
horse meat pie!!!
 
user406009
Ah, looks like yet another classic "give me the codes" C++ question.
 
user406009
-1
Q: Completely new to C++, help making a function?

SantaDue to complications I missed the first day of my C++ class and I'm lost on what to do. Mostly because I'm not familiar with the functions of C++. So what I need to do is: "Write a function named phone that prints 'Ring Ring' whenever it is called" But I'm not familiar with the operators in C++...

 
user406009
Although the writing is surprisingly good for that sort of question.
 
When I went to school, there were these crazy things called textbooks. — MarkB 3 mins ago
 
user406009
1:25 AM
Although truthfully, I have seen some pretty bad C++ textbooks.
 
Yes, but still. He's taking a C++ class, I'd be willing to bet said class has a recommended/required textbook.
 
1:36 AM
or google
 
cpx
In this sample ideone.com/MTj8x5 for string to hex std::setw(2) << std::setfill('0') appears to have no effect on the result.
 
1:55 AM
cootie::cootie()
{
    numLeg;
    numHead;
    numEye;
    numWing;
    numBody;
    numAntenna;
    roll;
    name = "Undefined";
}
 
2:12 AM
Thanks i got the everything, copy internet codes, these were pirated codes .. mine are different i just wondering how someone made this cootie differently.... — user3268116 4 mins ago
rofl
 
2:50 AM
ahaha
 
Is refactoring an emotion?
 
@Rapptz So how does one mess up his/her lumbar spine region?
 
Oh ffs, mismatch was not actually made usable in C++11 :(
 
What do you mean, not usable?
 
Taking an end iterator for both ranges.
As is you have to make sure the second range is longer than the first one.
 
3:15 AM
Oh yeah
 
Which is a load of bullshit.
 
Don't most/all algorithms that take 2 ranges only ask for one end iterator?
 
Yeah, but for most of them it's highly likely you know they have the same size or something like that.
 
Hmm true. Are there any plans to change it?
 
They should still have overloads with them, though.
mismatch I think is particularly problematic.
 
3:18 AM
Oh, they fixed it in C++14.
 
How do I use the Solution Explorer with real folders instead of that filter bullshit?
Or, alternatively, how the heck am I supposed to use it with that filter bullshit?
 
11
A: Can I configure Visual Studio to use real folders instead of filters in C++ projects?

C JohnsonIn the Solution Explorer in Visual Studio, just click the toolbar button called 'Show All Files'. That does exactly what you want. EDIT(Billy O'Neal): Added image for others so they don't have to hunt...

Is this what you want?
 
That gives me a completely flat view of everything.
 
@Borgleader Heavy lifting, pregnancy, tumours, growing old, sitting all the time, etc.
 
@Rapptz So basically all programmers are at risk of this?
 
3:30 AM
ITT @Xeo is pregnant.
 
If you sit all the time yeah.
 
@R.MartinhoFernandes Well I'm not sure what you want then. Sorry.
 
@Borgleader I want what is on that screenshot :S
But I figured it out.
 
Good, it was working for me so I didn't know what to say.
 
3:33 AM
It only works if I put the folders in the same folder as the project. If I add existing items from anywhere else, everything is completely flat.
 
user3010322
I need someone to draw my Bjarne Stroustrup.
 
user3010322
As a statue.
 
Mixed with whatever is on the project folder.
 
user3010322
In an Abraham-Lincoln like pose.
 
Lovely.
Eclipse does a better job than this.
I rest my case.
 
user3010322
3:34 AM
Eclipse does a better job at wha?
 
What project are you trying to create a VS solution for anyway? nonius?
 
Can I specify what folder it should look for/put source files in?
 
user3010322
Ooh, you're messing with VS.
 
user3010322
Yeah good luck with that shit.
 
I haven't used VS in a long time, how could something that basic be difficult?
 
3:39 AM
@Rapptz ikr
 
I just got my first pull request from someone I don't know
lol thanks
 
I'm not sure what you mean by specifying the folder to put source files in... I mean you get to specify the folder where the file goes when you make a new one, but I'm assuming that's not what you meant.
 
@Borgleader If you do that and the folder is not the same or below the project file, it is unusable unless you manually create filters that mirror the existing tree.
Guess I'll have to put all those project files in the root :<
 
Also, speaking of back pain. My upper back has been in pain lately.
Sometimes it's bad enough that I can't bend down
The bad thing about upper back pain is that it's rarer than lower back pain so iunno what to think of it.
@R.MartinhoFernandes I worked on card grammar yesterday, it was actually pretty fun and I figured if I was going to make a card game then I should have consistent card text and grammar. I was looking at MtG as a reference and I noticed that their legalese isn't as heavy as I thought :P. Still pretty consistent though, which is good.
 
Yeah, I really like that about it.
I especially liked when then renamed the game zones and named the various inter-zone movements.
 
3:55 AM
@Rapptz you didn't happen to twist it or hit it some where?
 
@sudorm-rfTelkitty Nope.
 
have you been bending your neck for too long (like most programmers do)?
 
"Play" used to mean way too many things, but they named each different use, IIRC.
 
It's not the cervical region, it's the thoracic.
@R.MartinhoFernandes I defined "Play" as "using a card"
but I haven't actually used it so I might just remove it
@R.MartinhoFernandes "removed from play" -> "exile" and "in-play" -> "battlefield"?
 
4:00 AM
Yugioh revamped their text a while back but it still has the same issues it did before :/
When I play yugioh now a days I spend a lot of time reading the opponent's cards lol
even the basic cards now have a paragraph of text.
 
lol
I don't see a big improvement in the example on that page.
 
Yeah there really isn't much of an improvement.
I liked their idea of using a colon though so I stole it :D
 
> Tragoedia has power and thoughness equal to "600 times" the number of cards in your hand.
Whenever you're dealt damage, you may put Tragoedia into the battlefield from your hand.
Discard a creature card from your hand: gain control of target creature an opponent controls "of level" equal to the discarded card. Play this ability only once each turn.
0: Tragoedia's "level" becomes the same as the level of target creature card in your graveyard. Play this ability only once each turn.
That's how it would be in MtG legalese-ish. Not sure how much better that reads.
I had to set up a fake cost for the last ability.
 
reads okay
 
Some things feel rather alien though. I don't recall any post-6th card with any "equal to x times y" rules text.
Also, dammit.
Abilities are "activated", not "played" these days.
 
4:15 AM
That's a good change :P
I don't have enough card grammar/rules to convert Tragoedia.
When I finish though I'll convert it and see how it reads
Might be a good exercise
 
user3010322
Hm.
 
user3010322
There doesn't seem to be any algorithms for finding the beat given the waveforms of some music.
 
user3010322
That's a shame. =[
 
I'm starting to think that double buffering of a simple deque (using spin lock) may be faster than tbb::concurrent_queue. (Less amount of synchronization going on.)
 
4:30 AM
Are you sure?
Autocorrelation is the cross-correlation of a signal with itself. Informally, it is the similarity between observations as a function of the time lag between them. It is a mathematical tool for finding repeating patterns, such as the presence of a periodic signal obscured by noise, or identifying the missing fundamental frequency in a signal implied by its harmonic frequencies. It is often used in signal processing for analyzing functions or series of values, such as time domain signals. Definitions Different fields of study define autocorrelation differently, and not all of these defi...
Seems related/useful.
> In signal processing, autocorrelation can give information about repeating events like musical beats (for example, to determine tempo) or pulsar frequencies, though it cannot tell the position in time of the beat. It can also be used to estimate the pitch of a musical tone.
lol, vim's :grep uses findstr in Windows. It's slow as fuck.
 
read-modify-write (atomic) operations rely on cpu instructions with the "lock-prefix". This is rumored to be expensive, but it's hard to find good documentation of the exact cost.
Colleague did some benchmarks for sem_post. Apparently it costs 100 microseconds (!) on a 16-core machine (2 processors). It was much faster on his single-CPU quad-core laptop.
 
How do I open the property pages management thingy in VS? That one that has the global property pages and stuff.
 
In development jobs, are you basically forced to use the tools you're given?
 
man, it's been a long time ago since I used VS.
 
I've always wondered
 
4:39 AM
@Rapptz At some places yes. At other places you are free to do what you want.
 
@Rapptz I can use whatever I want. Only thing that needs agreement is compiler versions and shit.
 
We can use Linux or Windows, but we are not allowed to use any distro. Has to be Ubuntu 12.04 or Gentoo. (I think this is kinda silly.)
 
12.04?
Isn't that unsupported already?
 
12.04 has long-term support
 
yeah it's one of those LS ones
 
4:41 AM
I don't really mind. I can always install an extra ppa :P
 
> This site is currently in read-only mode; we’ll return with full functionality soon.
 
But since a week or two the dual monitor setup seems to be failing.
 
@Borgleader lol
 
@Rapptz Nearly everybody requires at least a little commonality, and allows at least a little variation. It's nearly always a question of how much variation is allowed.
@Borgleader ...but first we'll go offline completely for a while.
 
@JerryCoffin How inconsiderate of them. What about all those students who need to get their homework done for tomorrow?
 
4:46 AM
It'd kinda suck to be stuck using an editor you don't like or don't feel productive in
like say you had to use Cool IDE Enterprise Edition™ or something and you've never used it before and then realise it sucks
 
That's what it felt like when I had to use XCode for a semester long project for Uni.
 
I guess on windows there's not a lot of variation so you'll be stuck with VS
 
And if it doesn't suck on features, it does on performance.
 
There's always Qt
 
Yeah I guess people use Qt too.
 
4:52 AM
I want an IDE that can use different project types.
 
what is a project type?
 
@Borgleader I mean, IDE-specific projects (.vcxproj, Qt's, etc.)
 
Qt Creator can import projects iirc
 
@Rapptz If you look carefully, there are probably more editors available for Windows than any other platform (probably close to as many as for all other platforms combined--just for an obvious example, nearly all editors that get used much on Linux also run on Windows).
 
> 1>c:\users\rmf\dev\nonius\deps\wheels\include\wheels\meta\enable_if.h++(39): fatal error C1001: An internal error has occurred in the compiler.
Sigh.
 
4:54 AM
Oh yeah.
 
No idea why I thought it'd work.
 
VS can't SFINAE really well
Had to do a lot of hoop jumping to get it to work with VS2013 CTP
 
Also, don't use initializer lists for parameters.
 
The place you're (by far) the most likely to have to use one specific IDE is on Apple. Whether you like XCode or hate it, there really aren't many viable alternatives.
 
Qt Creator!
It's a pretty good IDE.
and it works on linux/windows/mac too
 
4:57 AM
For a project involving some 20 people, what would be a recommended build system?
 
posted on February 04, 2014 by Scott Meyers

Consider this code, which is legal and has the same behavior in both C++11 and C++14: const int ci = 42; auto f = [ci]() mutable { std::cout << ci << '\n'; }; f(); // prints 42 This captures the local variable ci by value, thus putting a copy of it inside f. What's interesting is that because ci is const, the copy of it is const, too. That means that attempting to modify

 
@Nican ninja!
 
Isn't that google's build system?
 
Yes
 
@Nican Off-topic as primarily opinion-based
;)
 
4:58 AM
One of the only good Google contributions.
 
And that is why I am asking for recommendations. I am looking around, and never find a good answer.
 
@Rapptz Call me picky if you like, but lacking a truly integrated debugger, I question whether it should be called an IDE at all. Decent editor anyway.
 
@Feeds Damn. const shouldn't be applied there, just like in auto.
 
And I am sick and tired of CMake's undebugably mess.
 
@Nican message ;)
 
4:59 AM
@JerryCoffin Incidentally, Qt Creator is the only IDE I've used that has made gdb usable for me. Not on par with VS obviously, but it's better than raw gdb.
 
@JerryCoffin That's mainly why I stick with VS. Nobody else has a debugger that's nearly as good. IMO anyway.
 

« first day (1207 days earlier)      last day (3742 days later) »