« first day (881 days earlier)      last day (4082 days later) » 

user142019
12:00 AM
@Jueecy :)
 
yeah that one was fun
Disturbing headlines redefined:
> Baby Falls Eight Stories: NY Mom, Columbia Law Grad, Died Jumping From Building While Holding Child; Baby Survived
 
user142019
People y u upvote my terrible question from ten thousand years ago.
 
user142019
Also why don't I sleep yet.
 
user142019
Oh, that's right. I have a boring lecture tomorrow about connecting to SQL Server from R.
 
user142019
Something I can look up in the docs in a few minutes.
 
12:06 AM
Also ^ silly funny comments at that article...:
> We need to come together and ban Windows be for its to late
lulz ?
 
user142019
Next school project will be in Java. Please kill me. I'll buy the necessary weapons.
 
@Xeo Fixed.
 
what have previous projects been in @Zoidberg
 
user142019
A website in PHP, a video game in Java and a program to analyse tweets in R.
 
user142019
They seriously pick the worst languages imaginable. It's wonderful.
 
12:10 AM
Didn't even know there was an R lang
 
user142019
@Jueecy it has 1-based arrays so it's already terrible.
 
Xeo
@StackedCrooked That one came unexpected.
 
How so? :)
 
user142019
@sehe MetroTwit is great.
 
@StackedCrooked You have a secret reputation for being a slacker and never fixing anything.
 
user142019
12:12 AM
lol
 
Cut me some slack, will ya.
 
@Zoidberg You noticed the polar?
 
user142019
@sehe haha fucking awesome.
 
Also: lol at netvibes influx of GReader refugees:
^ ow crappy :(
@Zoidberg Yeah. I was in the conference centre without even going there. The irony being, this time I could have been there in ~30 minutes if I wanted to :)
 
user142019
Y u so many tabs.
 
user142019
12:14 AM
I have one tab open in Google Chrome.
 
@Zoidberg It's a daily harmonica. It expands and I basically work them all away. It's inbox ground zero
 
user142019
@sehe TechDays?
 
@Zoidberg Yup. What's it called. My 2s of fame
 
user142019
My developer teacher went there and he said it was great.
 
user142019
He's biased though; Microsoft fanboy. :P
 
12:16 AM
@Zoidberg Well, I don't really dig conferences
@Zoidberg Yeah Dennis is too although with a good soul :) Not of the markety/salesy variety
 
user142019
Who is Dennis.
 
user142019
I know many Denis(s)es.
 
The presenter (of those particular slides)
 
user142019
Oh, I see.
 
TIL in JavaScript "" evaluates to false. And I conveniently relied on that.
 
user142019
12:17 AM
@sehe Does he also use IE and Bing?
 
@StackedCrooked inb4 "Wat"
 
@StackedCrooked, In PHP as well I think
 
user142019
@StackedCrooked always use === in JavaScript. Or == in CoffeeScript ( ͡° ͜ʖ ͡°).
 
I know.
 
@Zoidberg Nah. That'd be extremism. Allthough, yeah he has been moaning (on twitter) about IE 10 support, IIRC. Oh wait, no R$ 8 (the IE10 was someone else)
 
12:18 AM
What is R$?
 
user142019
Redmond$oft!
 
Rwanda?
 
@Zoidberg Don't tell me what to do! You fascist pig!
 
user142019
I like is and isnt in CoffeeScript.
 
12:20 AM
I might spend too much time on r/firstworldanarchists.
 
@R.MartinhoFernandes R# sorry (keyboard proximity)
 
lol
 
57 secs ago, by R. Martinho Fernandes
ReCasher?
haha, I got it .
 
Yup. No cash though, sorry
@StackedCrooked How did you know he is a pig?
 
he tells me what to do
 
12:21 AM
Sing a song about it
 
I never had a pig telling me what to do. But then, I have never been high on hallucinogens.
 
user142019
@sehe I'm a human/lobster.
 
user142019
Time to sleep.
 
On the netvibes "slowdown or feeds latency" - there wasn't a word madeup there... Importing 130 feeds was swift. Showing the main page, though, looks like it will take till Eastern
 
@R.MartinhoFernandes You're high on them right now. Your entire Stack Overflow experience, stretching back what seems like years, is actually just five minutes in your bedroom.
 
user142019
12:22 AM
I will speak to you in a few hours.
 
@Zoidberg Do you promise?
 
user142019
Yes.
 
Don't fall asleep now
that would be a waste of time
 
user142019
@sehe bijsikkel
 
user142019
12:23 AM
Awesome song.
 
Hello, World!
 
@Zoidberg Are you reviewing all image/vid links historically posted by me?
@Code-Guru s/, /, cruel/
 
user142019
No.
 
user142019
But it's on the same page as the message you replied to.
 
now, what is R#?
 
12:24 AM
@Zoidberg hahaha
 
user142019
@LightnessRacesinOrbit A plug-in.
 
@LightnessRacesinOrbit Here's a nickel. Get yourself some education :|
 
user142019
@sehe I don't see how that is funny as hell.
 
It dates the time I started doing "that". I shudda known
 
Mar 30 '12 at 1:27, by R. Martinho Fernandes
I see Visual Studio as a nice R# host.
 
12:27 AM
basically zero google results for it, even with quotes
 
Yeah, try "ReSharper" instead.
 
Blame Google. It's apparently "unsearchable". Bing, even Clusty, same deal :(
 
ReSharper is a refactoring and productivity extension by JetBrains that extends native functionality of Microsoft Visual Studio 2003, 2005, 2008, 2010 and 2012. ReSharper executes static code analysis, providing additional features for: code highlighting, context-dependent suggestions and automated error correction, code completion, code navigation and search, syntax highlighting, code formatting, code generation and optimization, automated refactorings. Also it features advanced unit tests runner, which supports NUnit and MSTest for CLR applications, and QUnit and Jasmine JavaScrip...
@LightnessRacesinOrbit Ah, thanks!
@LightnessRacesinOrbit No problem, you beauty.
 
Narcissistic personality disorder (NPD) is a personality disorder in which the individual is described as being excessively preoccupied with issues of personal adequacy, power, prestige and vanity. This condition affects one percent of the population. First formulated in 1968, it was historically called megalomania, and is severe egocentrism. History The use of the term "narcissism" to describe excessive vanity and self-centeredness predates by many years the modern medical classification of narcissistic personality disorder. The condition was named after a mythological Greek youth na...
 
@sehe =p
 
user1357851
12:39 AM
Introducing the world cutest chick!
 
user1357851
 
Looks like this was a good day to avoid the Lounge. ReSharper, NPD and, FFS, 'I like vim now'. You're all on substances, I'm going to sleep. More madness tomorrow.
 
@MartinJames Take your gravatar with you on the way out? It's agravatarating to some people sensitive to Vim blasphemy
 
user1357851
If you don't like vim, what do you use to edit C++ on linux?
 
user1357851
speaking newb-dom, I need to check out answers for the newb Android question I have asked
 
12:49 AM
@Telkitty Sublimetext, Kate, Gedit, Emacs, Geany, Eclipse, Netbeans, Notepad++, ...
 
emacs!
 
@Telkitty QtCreator
 
Uhoh. The Puppy might not have been too thrilled with this public tweet.
 
@sehe —, joke?
 
@StackedCrooked How so? You just missed the point. It's old hat too
@StackedCrooked You know, I didn't even notice :) LOL
 
12:55 AM
What point did I miss?
 
@StackedCrooked I thought you did. Nevermind. It turns out, I missed the HTML entity mishap, because... it's inconsistent in the Twitter UI:
No mishaps there. I never view(ed) the individual status page
 
what's inconsistent?
 
Or, I see the name now.
 
@Telkitty well looks like someone answered for you. Good thing because I have never used fragments and can't help you with that :-(
 
user1357851
have to find out whether it actually works - I have read through 10 other similar questions and answers and none of them seemed to be of any use :/
 
1:00 AM
@StackedCrooked That was the point. (And I didn't think you missed that :O)
 
But why would he not be thrilled about it?
 
@StackedCrooked He likes to keep his name private
@LightnessRacesinOrbit ... You're self appointed grammar Nazi. Figure it out :) Hint:
6 mins ago, by StackedCrooked
@sehe —, joke?
 
@sehe Don't see it
 
> a constexpr function or constructor, invoked at runtime, may run substantially slower than non-constexpr code that accomplishes the same end.
Interesting.
 
There.
 
1:21 AM
@sehe okay - didn't say that in the image you posted before
 
5
A: creating an array of 4 elements

Code-Guruint nums3 = new int{4}; should be int[] nums3 = new int[4]; With that change, then the rest of your code will work, but it does not use the {} notation to initialize your array. Instead, you should do int[] nums3 = {10, 20, 30, 40};

sigh I feel like a rep whore...
 
int[] nums3 = new int[4]; is wrong.
Yup, wrong language.
 
user1357851
@Code-Guru you feel like it probably because you are one :p
 
@LucDanton It's correct in Java =p
 
54 secs ago, by Luc Danton
Yup, wrong language.
 
1:23 AM
But there's no one in the Java room...
@LucDanton No, it's the RIGHT language =p
 
Oh that's Java
I was wondering how it got upvotes
 
Hm.
Rescaling time.
 
@Rapptz Thanks for making me feel better =p
 
There's nobody in the Java room because nobody cares about this piece of shit language~
 
user1357851
or maybe java is too general ... it will not be Java but J2EE or Android or something else
 
1:25 AM
@CatPlusPlus Those that do care are in different timezones than me.
=p
 
We certainly don't care
 
thanks ;-)
 
1:37 AM
@CatPlusPlus Are you ready to make Physics? <3
 
If I separate puts declaration and definition of template methods in header and source file respectively. And if I also put template instantiations for 'expected type' in that source file. Then the linker should find the definitions for those expected types?
That's an unlikely girlfriend.
Or boyfriend.
Not clear.
Actually, no I saw it here. However, according to Konrad's answer the definition must be present in every translation unit.
That's cleared up then.
 
1
Q: Using declaration for type-dependent template name

PotatoswatterWhen a base class is templated, for example for CRTP, is it impossible to name its member templates in a using declaration? template< typename d > struct base { template< typename > struct ct {}; template< typename > void ft() {} }; template< typename x >...

 
What does "grammar" mean in the context of a programming language?
 
Xeo
@Potatoswatter Erm, what exactly do you want to do there?
What do you mean with "can't be used as a template-id"?
@Pawnguy7 The grammar of the language itself, defining how stuff should be parsed.
 
Class templates don't have members.
 
1:47 AM
@Xeo woops, typo, thanks
@LucDanton Huh?
 
Template classes have members. That's not official terminology though.
 
The base class is templated, but it is not a class template. It's a specialization.
 
@Xeo I would think that is the syntax, or is it more of things like identifiers, keywords... symbols?
 
I find the whole 'X is templated/templatized' language sloppy. I can't even tell if it's wrong.
 
@Pawnguy7 C++ has BNF grammar production rules, which roughly describe what the language looks like, and semantic rules which chip away at it to define what actually works.
@LucDanton In this particular question, or in general?
 
1:50 AM
In general.
 
Precisely speaking, the base class is a specialization of a template dependent on a template parameter of the derived class, which causes it to be ignored by unqualified name lookup.
 
I understand the Standardese is somewhat cryptic but I find that even with their own words those people have the wrong idea about templates.
 
Xeo
@LucDanton The standard itself is even sloppy, I think. :/ We have "function template" and "non-template function"...
 
@Xeo The latter means it's not a template function.
 
Nah, the Standard is extremely refined and precise on this stuff. But the refining process was evolutionary, so it's confusing sometimes.
 
Xeo
1:52 AM
@Potatoswatter How exactly do you want to use ft and ct?
 
@LucDanton What about a friend function defined in a class template? ;)
 
Xeo
@LucDanton Yeah, but it's backwards one way or the other. People are always told not to say "template function" but "function template" :s
 
@Xeo Well, by specializing them first. But I don't want to use base::template ct and this->template ft because it's ugly.
 
at the end i couldn't sovle the problem
:(
 
@Xeo I agree the whole 'template class/function' bit needs to die. Just as idiotic and needlessly confusing as operator delete and delete operator.
 
1:53 AM
I hate MPI
 
Xeo
@Potatoswatter template<class T> using ct = typename base::template ct<T>; or something?
 
@LucDanton Wasn't "template class" and "template function" expurgated from the Standard long ago? "Non-template function" remains IIRC but "template function" has been uniformly replaced with "specialization of a function template."
@Xeo Ooh, that's a good idea.
But only works for the class.
 
@Potatoswatter I think the former two only persist informally in the community, yeah.
 
0
A: c++ std::thread problems in Visual Studio 2012

cooky451Do you join or detach the thread before exiting scope?

 
Xeo
@Potatoswatter I still don't understand what your problem with the function is, tbh.
 
1:59 AM
@Xeo Only problem is that it can't be imported by a using declaration.
 
Xeo
Well, it can.
But it can't be called by simply f inside derived, is what you're meaning I think.
 
I could just declare an inline function in the derived class. Similar to your template alias declaration.
@Xeo It can't be used at all. But yes, you're right the declaration itself is not ill-formed. (That might only make things worse, as no diagnostic is printed.)
 
Xeo
Dunno about "can't be used at all"
this->template f<int>(); for inside of derived also works, obviously, and I don't think there's a way around that.
 
Well, in that example it doesn't do anything, but for the sake of argument it could change the access qualification.
Yes, I mean inside derived.
 
Xeo
@Potatoswatter ?
Gives me a nice error message: coliru.stacked-crooked.com/…
If that's what you meant.
I have no clue what you're on about, sorry.
 
2:05 AM
@Xeo Seriously, or just not well enough specified?
 
Xeo
What else do you want the using-declaration to do?
1
A: How do I generate recursive data structures on variadic templates?

Andy Prowl@Xeo has an elegant and simple solution. If you want to have insert<> as a member function, however, you can use the following approach: #include <set> #include <tuple> template<typename... Ts> struct my_sets : protected std::set<Ts>... { using types = std::tup...

 
Wait, I shouldn't have removed that. The using declaration in the first example indeed has no effect.
 
Xeo
I seriously don't know why @Andy is so set on inheriting something here...
 
@Xeo Remove the need for base::template and this->*template constructs on every use.
Imagine a class template which heavily uses functionality from a CRTP mixin. Not an unusual case.
 
Xeo
Welp, using-alias for the class template, and "function alias" for the function.
There's no way to completely get around template x here
 
2:10 AM
Any MPI pro here? :o
 
Xeo
Since base may be specialized for a certain type, and suddenly, s is a value, or a function template, or whatever.
 
Oh nice answer Xeo. I gave you a +1.
 
Annoying. I'll probably make an ugly macro anyway to import the interface into the derived classes, because there are a lot of them.
 
@AlbertoBonsanto i've used mpi for a few years whats up
 
@pyCthon Can you take a little look? stackoverflow.com/questions/15413712/… someoen answered but i tried passing only row by row and still ntot working
 
2:23 AM
@AlbertoBonsanto I was caught using MPI once, which makes me an MPI con.
 
XD
jerry you can take a look too if you want to :) stackoverflow.com/questions/15413712/…
 
@Potatoswatter FWIW things like boost::iterator_facade are set up so that clients go typename client_class::iterator_facade_::reference.
Which would save you nothing for a member template? I'm not sure.
 
@LucDanton Yeah, no getting around the template keyword.
 
@AlbertoBonsanto i'm going to post a comment on your question
 
I'll just make a macro which defines an inline function. Yuck but @Xeo told me to do it ;)
 
2:26 AM
A bold lie.
 
Xeo
What, I didn't do anything! Don't accuse me of telling people to use macros!
 
3 hours ago, by Xeo
@DeadMG For that, I don't need a proposal. #define LIFT(id) [](auto&&... vs){ return id(forward(vs)...), done. :s
6 hours ago, by Xeo
@LucDanton You mean #define LIFT(id) [](auto&&... v) -> decltype(auto){ return foo(std::forward<decltype(v)>(v)); }? :)
 
Xeo
@LucDanton I
I didn't tell other people to write one!
And also, wtf, I am writing this proposal partly to not have a stinkin macro. :(
 
For posting an answer is it allowed to just show the output from -Wall
i found his problem compiling with just that xD
 
I tend to put that in comments.
(I tend to put a lot of things in comments.)
 
2:30 AM
what if the problem is in the warnings?
 
Xeo
@LucDanton Aye, me too for a while now.
 
and over 15 other warnigns not adressed
 
Xeo
If it's a one-line answer, basically, I put it in a comment. Unless or OP asks me to provide an answer and there is no other adequate one.
 
could some one help me with my question now lol
0
Q: C++11/Boost Random libraries, starting the generation at a set sequence

pyCthonUsing the C++11 #include<random> or Boost C++ Boost.Random is it possible to use one seed to start the random number generator at an arbitrary sequence in that you can choose?. In other words I want to be able to specific where in the sequence the number generator starts, while using the s...

 
@pyCthon thanks for your comment
 
2:40 AM
@AlbertoBonsanto np =) i'll look at it more tomorrow if its not solved i have work in the am
 
@py someoen voted negatively to you
 
@AlbertoBonsanto where? i'll improve it
 
@pyCthon forget it they changed of mind an di sitll can't fix the thing but i cleaned the code a bit thanks for your help
 
@AlbertoBonsanto how are your distributing the matrixes?
your using a master slave model?
 
oh easy
I calculate an averagerow
ine xmaple
 
2:53 AM
i'm too tired to look at your code right now
 
iamgien that matrix A has 3 rows and i use 2 slaves
 
generally the standard pratice
 
3/2 = average rows = 1
3%2 = extrarows = 1
 
ok thats fine
 
so the first slave takes 2 rows
and the second slave takes 1
 
2:55 AM
but do you allocate the memory as such on all slaves?
 
yup
malloc
i have a function
 
C
 
matrixAllocate( &matrixA, columnsA, rows );
matrixAllocate( &matrixB, rowsB, columnsB );
matrixAllocate( &matrixC, columnsB, rows );
 
pro tip you can use C++11 arrays, and c++ vectors with MPI
 
void matrixAllocate( double ***matrixPtr, int n, int m )
{
/* Number of rows */
*matrixPtr = ( double ** ) malloc( m * sizeof( double * ) );

/* Number of columns */
for( int i = 0; i < m ; i++ )
( *matrixPtr )[ i ] = ( double * ) malloc( n * sizeof( double ) );
}
i will read that tomorrow i think
 
2:56 AM
yeah *** might be your problem...
 
my matrices are good i think
i used this code for pthread library
and worked as a charm
and for sequential code and a charm too
 
pthread =/ mpi
 
i know
but you wasn't specific so i thought you were talking about the squeme of the pseudo-matrix
 
what your doing isn't considered "standard practice" with MPI
i think
ok nvm
 
well i will take a nap
thanks for your help
 
3:04 AM
your code doesn't wanna run on my machine
 
can hear crickets
 
could be worse
i got promoted
to a job i have no clue how to do
lol
 
better salary?
 
yeah
 
then stfu and learn the job :P
 
3:18 AM
but C++ dev to Scala dev
i hate teh jvm
arg
 
Scala is easy to learn tbh
 
yeah
i plaeyd with haskell and ocaml abit
 
and if you hate the jvm apparently theres a scala implementation for .Net or something
I say apparently because I've read about it but haven't used it.
 
F#
?
 
3:23 AM
interesting
 
by miles
 
yeahh
 
I wish there was a good ide for it though
I haven't found one
 
or emacs
xD
yeah same thing with haskell
people have tried
thats the only good thing about F#
yeah
Code block supports functional program languageS?
 
Like there is a Scala plugin for Eclipse but... that shit is sloooowww
 
3:29 AM
eclipse needs a complete rewrite
in scala immo
 
And I tried the Scala plugin for IntelliJ, but I didn't like it either.
 
yeah i was thinking the same thing HAHA
hes the guy with the pi record right?
atan(1)*4 = good enough for me x
xD
 
3:50 AM
@pyCthon I'm offended! :(
 
Find the greatest number that will divide 43, 91 and 183 so as to leave the same remainder in each case
 
that would go to positive infinity :C
 
how am i supposed to solve it
 
project euler is that way -> projecteuler.net
 
though you try 716079
since mod 43, 91 or 183 would all equal the same thing
 
3:59 AM
aka 43*91*183?
 
indeed
 
isn't tht a little easy o.o
 
yeah like I said it goes to positive infinity
it's constant * 716079 would equal the same thing
 
true.dat
 

« first day (881 days earlier)      last day (4082 days later) »