« first day (1405 days earlier)      last day (3528 days later) » 

Ell
lol
> I have spent the last 8 years developing slip me not
wow
what a waste of time
 
Makes sense but it's not "cool" enough
Nobody will use it
 
Ell
@Jefffrey Not convenient either imho
 
it's glorified saran wrap.
 
Ell
if you're in a situation where you might be spiked then you're not just sipping on a glass of rose
@Rapptz Saran wrap is such a strange name. Clingfilm is much better
 
12:12 AM
I prefer Plastic Wrap myself.
 
Ell
> there are no risks
 
Never understood pewdiepie
He screams way too much
I prefer critikal's kind of calm humor
 
Saying the same dumb jokes over and over would be a score multiplier
 
Most popular tubyoubers are shit
 
user1646075
@Jefffrey my 10 year old boy thinks he's piss-funny.
 
Ell
12:17 AM
I like eevblog
 
gimme boyutuers that are not shit
 
user1646075
how weird would someone have to be to be

1/ in a night club.

2/ being so OCD as to be slipping a condom onto a glass.

I can see a jawline set firmly to squared-mode as the 'woman' grimly applies the film (while trying to clutch her handbag firmly to her bosom to prevent it being stolen)
 
Xeo
hm, 2:20am
 
Ell
yeah it just wouldn't work
 
Yes it's about OCD good job
 
Xeo
12:20 AM
I should probably sleep
 
Ell
@Xeo nahh
I'm staying up
 
Xeo
Well do you have work tomorrow?
 
user1646075
holy crap - where did I just find the reference to this http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ on this forum? can't find the link...

I'm now completely scared of PHP. Count this is an excellent heads-up
 
Ell
@Xeo No :(
 
Xeo
Great, me neither!
 
Ell
12:21 AM
Although I am distributing my CV to various places :P
 
Xeo
(Stupid cold)
 
Ell
@Xeo Awesome!
 
Xeo
Or not
 
Ell
@Xeo Not awesome :(
 
Xeo
I'd rather be at work than have a stuffy nose :s
 
12:21 AM
@aclarke In my profile
 
Ell
stuffy noses do suck
if you're sick then I'd advise sleeping as much as possible
 
user1646075
oh right. WOW! I had a similar bad experience with dBase far too many years ago. Scarred me for life.
 
lol
 
8
Q: How to simulate a die given a fair coin

probability_guySuppose that you're given a fair coin and you would like to simulate the probability distribution of repeatedly flipping a fair (six-sided) die. My initial idea is that we need to choose appropriate integers $k,m$, such that $2^k = 6m$. So after flipping the coin $k$ times, we map the number enco...

Clever answer.
Simply do three flips which gives 8 possible outcomes. If the result is 7 or 8 then try again.
 
user1646075
haha the woman who invented the slip-me-not has a company called "Kingdom Inventions" - smells like nut-job of the religious type. What TF is she doing drinking alcohol anyway? SINNER!
 
12:26 AM
hold on to your tits, I'm gonna fix the image
here
taken from here
 
repost
 
I read that post.
The haskell mentions was funny.
Apparently Haskell is considered as the holy grail by all communities.
 
Tbh I was surprised C++ does not mention Haskell more often
 
cpp is not a very active subreddit.
 
Less active than python?
 
12:30 AM
I wonder how big the impact of concepts will be.
More readable compiler errors is one thing.
 
I thought python was popular?
 
It is popular.
 
> Ah! Just one feature? You must be kidding, but I’ll say “concepts.” They will change the way people think of generic programming and of programming in general, and we’ll have them next year.
This, a million times
 
TIL Bjarne thinks meta programming in C++ looks ugly
b-b-but you made this syntax!
why would you design something you think is ugly?
 
It is kinda ugly.
And very verbose.
template<typename T, typename U> is too many letters
 
12:37 AM
I guess.
But why make it that way?
 
TMP is an ugly hack
 
He's the one who designed the language originally.
 
Original language didn't have templates
 
@StackedCrooked what else would you have opted for?
 
> auto is the oldest C++11 feature. I implemented in in 1983/84, but was forced to remove it for C compatibility reasons.
 
12:39 AM
@Jefffrey You want me to invent a syntax on the spot?
 
yup
 
Well, auto then.
auto sum(auto a, auto b) { return a + b; }
However, this does enable you to require that a and b to be of the same type.
Unless you use enable_if or something.
hehe
But enable_if is even more verbose than the original syntax.
auto sum(auto a, auto b, typename std::enable_if<std::is_same<decltype(a), decltype(b)>::value>::type* = 0) (not yet using remove_ref etc.)
 
> If I had a time machine, I just might jump back to 1987 and drop a sketch of a design of templates with concepts on Bjarne’s desk. He was working on the template design at the time and knew the problems with template parameter requirements well.
 
@Rapptz Liskov's also mentioned the importance of restrictions on type parameters when she talked about her work on the CLU language.
And CLU was created in 1974.
 
isn't that the default powerpoint theme?
 
12:53 AM
^ class set<T> with requirement for equality operator
Not sure if pseudo code or actual syntax on that slide.
 
$5 on pseudo-code.
 
It seems to be actual syntax.
 
dang.
 
She mentions syntactic sugar so that if a = b would call the equality operator for type T on a and b.
 
looks neat I guess
 
12:56 AM
It was mostly research language, not sure if useful for actual work.
But she definitely had good the right ideas.
 
@StackedCrooked Hey, that's the classic top left image almost every slides in my uni has
@Rapptz ow
 
lol
 
Yeah, it was also like that when I went to uni :D
 
@Jefffrey now you know why
 
1:14 AM
today I learned that Sea Lions can reason that if A == B, and B == C, that A == C
 
Ell
balls
I just ordered something on ebay and now I see the est deliver is sept 8 :(
 
1:31 AM
thank you, whoever reads this chat and sign me up to random sites, you can freaking stop doing it now
 
1:49 AM
@Ell you have something to look forward to :)
 
Ell
True :P
How much Alcohol does it take to get you drunk?
 
how do you define drunk? happy and talky? no longer able to walk straight?
 
Is SO slow for anyone else?
 
It's SO slow.
 
Ell
Yeah that :)
I don't use SO much really
 
1:59 AM
@Rapptz Nope. It's quite fast here.
 
I wonder how I'd write a constexpr strcat.
 
Ell
Happy and talky
I always wondered about a programming language which had a distinct meta language
So programmes were metaprogrammes which would be run at compile time, generating the programme to be compiled
 
@Ell like the C preprocessor?
 
Ell
And subsequently run at runtime
@stacked but a proper language
And I wonder if a language could be its own meta language
 
templates are actually a form of code generation
 
Ell
2:02 AM
But then I guess you could have infinite meta levels
@stackedcrooked yeah, it'd be nice if they could be written in a cleaner way though imho :)
 
templates can be infinitely meta :)
or do you mean something like eval?
 
Ell
Basically I mean instead of templates you just write more c++ :P I don't know how it'd work, im tipsy :P
But c++ and templates are almost distinct languages in my mind
But if you could execute arbitrary c++ at compile time in order to generate c++ at runtime it'd be cool
Like reading a class definition and generating a serialize method
I'm nor sure what it'd look like
So for example 'class' wouldn't be keyword, it'd be a function call
Which would be executed, and it'd return a class which the compiler would generate. Idk really
I'm too tipsy to make any sense of it :P
 
@Ell havae you never written a program that writes a program?
 
Ell
@mooing a few. But none like this
It'd be source code all the way up. It'd have to end somewhere
Also hello, long time no see :)
 
@Ell my work has a header that's full of defines for various localize strings, and I wrote a perl script that reads in teh file and generates a map of int<->strings at compile time
@Ell I can't be on at work anymore, and by the time I get home, pretty much everyone is sleepin
plus I'm married and have less computer time than I used to
@Ell usually it's only one layer deep. More becomes silly
 
Ell
2:14 AM
Ahh well it's nice to see you anyhow :)
 
@Ell There have been a lot of ideas in the past. Most likely somebody once thought the same and wrote a paper on it.
 
Ell
@mooing I've written ruby scripts to generate a class for serializing and deserializing tags in the swf file format before
But having arbitrary levels of meta is a different picture I think
@stacked probably :)
I think it'd be interesting to play with it
Anyway. I ned to sleep now
Night all :) nice seeing you @mooingduck :)
 
user3010322
@MooingDuck What, did they bust you or something?
 
2:46 AM
why the hell is deploying a application in VS is so annoying
 
user3010322
Oops.
 
user3010322
I put my KeePass in my Dropbox but my Dropbox has a KeePass password and I don't think I have any other way of getting at it...
 
user3010322
.... Ah! Wait I have my phone!
 
I have an existential crisis approximately every 3.71 hours spent programming
 
3:15 AM
Fuck Visual Studios. I switching to code::blocks.
 
class Foo
{
public:
template <unsigned k>
int foo()
{
return k;
}
};

template <typename T>
class Test
{
void test()
{
T t;
t.foo<0>();
}
};
it says
main.cpp:18:12: error: expected expression
t.foo<0>();
Any ideas/hints what can be wrong? It looks it doesn't understand that T can has template methods...
I even don't need to instantiate Test to get this error.
 
it needs to me t.template foo<0>();
be*
 
3:30 AM
Awesome, thanks.
 
I think the reason is similar to why you need typename in front of dependent names
because if t was a struct with a foo member it could be parsed as "t.foo < 0" followed by extra tokens, someone please correct me if I'm wrong
 
3:50 AM
@Rapptz Most of the syntax for templates came from Ada's generic types.
 
I don't think template syntax is ugly.
I am indifferent towards it.
 
user3010322
template <auto X> and I'll be happy.
 
user3010322
Of course, that's also deficient.
 
user3010322
It only accepts template values and not types.
 
is that a* proposal
 
user3010322
3:52 AM
It should be.
 
user3010322
Why am I still at work.
 
user3010322
It's way late at night.
 
so it's like a metatemplate?
 
@Rapptz For the original intent, I think it's perfectly reasonable. The syntax for some things like a template member function of a template class start to get pretty nasty though.
 
4:20 AM
for the <auto x> to be useful, wouldn't you need to know what auto was deduced to
 
> I discovered that Bjarne had done a marvelous job at designing templates. I had participated in several discussions early on at Bell Labs about designing templates and argued rather violently with Bjarne that he should make C++ templates as close to Ada generics as possible. I think that I argued so violently that he decided against that.
^ Stepanov in dr dobbs interview
> I thought, however, that template functions should work like Ada generics, that is, that they should be explicitly instantiated. Bjarne did not listen to me and he designed a template function mechanism where templates are instantiated implicitly using an overloading mechanism. This particular technique became crucial for my work because I discovered that it allowed me to do many things that were not possible in Ada.
It's fun to learn a little about the history of it all :)
 
Is the site shaky for anyone else besides me?
There's a meta post about it, but it's 4 hours old and only 3 upvotes.
And the site is almost unusable for me.
Seems like it might be a localized problem.
 
4:41 AM
3 hours ago, by Rapptz
Is SO slow for anyone else?
 
ah
 
All SE sites are slow for me.
 
3
Q: Random timeouts when using SE main sites and *.chat.SE

BraiamI'm having random issues, like "Connection was reset" and "Timeouts" when trying to access the different pages of SE and when posting in chat. It's difficult to nail the exact problem because it works fine until it doesn't and then starts working fine again. I've noticed that as a general sympto...

 
There are some still-shots in the comments.
 
5:07 AM
Oh, it's actually a Belgian football manager.
lol
 
5:41 AM
!
 
Bad title of the day:
-5
Q: I NEED HELP TO BUILD QUERY

Farrukh Iqbali have a table "place" With Schema the following Scheme id Name city type rating I want to find Average on the basis of rating every Same Name i.e Location Name indivdually with one query..... e.g I have data like this id Name city type rating 1 A ...

 
6:31 AM
I cannot comprehend why they think all caps is OK.
They must be new to the Internet.
 
user457812
6:44 AM
IT'S OKAY BECAUSE MY QUESTION'S MORE IMPORTANT SO YOU SHOULD SEE IT FIRST
 
Decided to upload my fav ops to yt.
 
user457812
Unless it's six hours of the highlander anime ooohoooohooooohooooh song it's wrong
 
It's hard to find high quality anime OPs on YouTube. I wondered if it was because YouTube re-encoded the video to smaller size. Turns out to be not the case since I got excellent quality in my upload.
 
7:14 AM
@StackedCrooked I cannot comprehend why you always get at least one Indian "answer" it anyway
 
7:31 AM
No I'm sure the multiple if () are a sign of good code, mate.
(I mean if (); the condition is empty each time.)
 
He's probably just thinking it's not relevant
 
Is there a way to filter SO by tag & month?
 
Data Exploder.
 
7:43 AM
@LightnessRacesinOrbit They aim to become the #1 in their town.
 
Doxygen annoys me sometimes.
Sigh.
 
It was created by a dutch man, what can you expect?
 
Python and Vim annoy me sometimes.
 
I sometimes get annoyed by Vim and Youtube.
 
I still don't get iterators completely.
So I am writing an algorithm only in terms of iterators.
I don't have the actual container.
In case the algorithm fails, for example because it cannot find the element it should find, how can I return an invalid iterator then?
 
7:54 AM
The convention is to return the end iterator in that case.
Also make sure you have a grasp on iterator categories.
 
and I don't get why I am not able to check if an iterator is valid w/o comparing it to the end
@StackedCrooked but I can only do this if I have the end iterator in the first place
 
@Nils Because of overhead and simplicity.
 
That's the way it is.
@Nils yes
 
/me grabs his c++11 stanard libaray book
1
Q: Binary search as a generic algorithm

NilsI am upgrading my C++11 knowledge and repeating some essential algorithm. Here is binary search only in terms of iterators. #include <iostream> #include <vector> #include <iterator> using namespace std; template<typename t_iter> t_iter binarySearch(t_iter begin, t_iter end, typename iterator_...

 
In C the convention is pointer to start and length value. In C++ it's begin and end iterators.
 
7:59 AM
In this case I could copy the end iterator at the beginning, but that would make it mandatory for the caller to pass an actual invalid end iterator as the second parameter.
If the caller just passes a slice of a vector, for example, "end" would still be valid.
 
I don't understand.
 
Ok we have this cool iterators, now we can write our algorithms just in terms of iterators w/o having to know the actual container.
 
If you want a slice of a vector, say the first 3 elements the the begin and end iterators are vec.begin() and vec.begin() + 3.
 
yes
Now if my algorithm fails it should return the end iterator pointing to one element after the last of the container so the caller can check weather it was successful.
 
yeah. this is really basic stuff.
 
8:04 AM
However what if the caller just passes two iterators somewhere in the range of the container. So the ieterator called "end" will not be the invalid end but a valid iterator?
 
ergh, why does MS word default to treating each line of a bullet point list like its own paragraph, I don't want the list so spread out like that!
 
@Nils The end iterator should never be dereferenced. Sure, there can be situations where it secretly is a valid iterator, so what?
 
@StackedCrooked let me make an example.
 
@thecoshman Because Microsoft sucks. Don't you know that?
 
vector<int> v = {1, 4, 7, 8};
auto it = binarySearch(v.begin(), v.begin() + 3, 3) // Look for 3 which is not in the vector, we expect it to return an invalid iterator.
 
8:10 AM
ok
 
Maybe in this case the caller should check weather the return value is equal to v.begin() + 3 to see weather it succeeds?
 
@Rapptz ki ni narimasu!
 
I just finished watching Hyouka.
 
@Nils yes, because that's the end iterator passed to the function
 
8:11 AM
It's.. okay.
 
@Rapptz She was ..intense.
 
Chitanda was a qt.
 
But she was sweet at the end.
 
I gave it 6/10 on MAL :v
 
Only a 6? :(
 
8:13 AM
ok ic
 
Yeah.
A lot of the episodes were kinda boring.
 
so wheres Cicada these days?
 
I liked the ones with the bath. The movie murder ones were my favourite episodes and the v-day episode was good too.
Rest were mediocre.
 
8:31 AM
half tempted to get a pi... combine it with an old 'psone screen' I have floating around, another one of those battery packs I got and make myself a sweet portable gaming thingy... should get about 10 hours playtime out of it with ease...
but it's effort :S
 
I wonder how well it handles DF.
 
dwarf fortress?
 
probably rather ok...
why wouldn't it?
 
Just found this old greeting machine in my list of bookmarks.
 
8:37 AM
@thecoshman Because DF is CPU-intensive as fuck.
 
@R.MartinhoFernandes oh... then probably not too well then :P
@StackedCrooked ergh, that construction
 
I don't remember why I felt compelled to write this code.
Must have been caffeine and/or lack of sleep.
 
oh, I see how whats going on there
was most vexing parsing myself into confusion :P
was reading Machine english_machine(Machine::en); to be more like Machine english_machine = new English_machine(Machine::en);
@R.MartinhoFernandes you'd probably want to play it over ssh
 
0
Q: When is a programming question not about programming?

Matthew BrownRecently it seems that every time I ask a question I get told "off topic", take that to another stack site, it's not about programming. I would really rather not have my account banned from asking question (again) so clearly I am need of some guidence. The most recent example was a question whic...

> This has left me with a sense that I really am either too dumb to live or expressing myself so badly that I am as good as too dumb to live.
^^ ahaha
If that was in chat, it'd get a ton of stars.
 
Most Vexing Professional
 
8:46 AM
Apparently Xeo helped me with this one in Feb 2013.
 
I think this question might be off-topic... — thecoshman 13 secs ago
 
@Mysticial the "poor me" type of guy
 
@thecoshman But now I need an Internet connection.
Not the kind of "portable gaming" I had in mind.
 
@R.MartinhoFernandes no
 
Er, how do you play over ssh otherwise?
Or do you mean "portable gaming" as in "trans-room gaming"?
Very impressive.
I have a laptop.
 
8:59 AM
I think the guy knows what he is doing
 
@R.MartinhoFernandes :P you don't have to ssh over the Internet
@R.MartinhoFernandes but any way, I was thinking more along the lines of emulators really. NES/SNES/MAME etc.
 
@Jefffrey Sounds kinda cool. :D
 
He said he is not going to overuse CGI in the new movies.
 
@Jefffrey something about cheeks and tounge
 
@Jefffrey Probably means he'll only use more than he should and no more.
 
9:24 AM
There is a Star Wars VII?
 
@StackedCrooked Not yet.
 
That's a bit of a bold move isn't it?
 
9:46 AM
In the local news I read this quote: Si tous les dégoûtés s'en vont, il n'y a que les dégoûtants qui restent.
Where does that come from?
Google finds a few sites where this line is used, but I can't find the origin.
 
@StackedCrooked in what way?
@StackedCrooked translate plz
 
> If all disgusted leave, there are only filthy remaining.
i.e. if all the disgusted leave only the disgusting remain
I think
 
@thecoshman The first Star Wars movies were ep 4, 5 and 6. So it made sense that there was a ep 1, 2 and 3. But ep 7 seems like it's tacked on to milk the money cow.
 
@StackedCrooked 4, 5, 6.
 
@R.MartinhoFernandes lol, I suck
 
9:51 AM
The first movie was not any episode, though.
 
@CodyGray the ways this site are broken are countless — thecoshman 7 secs ago
 
"A New Hope" and "Episode IV" were late additions.
 
@StackedCrooked really?
 
That's just my impression.
It would be like announcing The Matrix 4.
 
@StackedCrooked Lucas always originally intended 9 episodes.
but he cut the last three previously.
 
9:53 AM
@Puppy Oh.
I didn't know that.
 
And by originally, you mean after Star Wars.
 
also, everybody would love a new Matrix film, that didn't suck.
 
@R.MartinhoFernandes hehe
If I were in his place I'd say it was intended to have 99 episodes.
 
@StackedCrooked That would be silly without The Matrix 2 first.
 
9:55 AM
 
The fact that Matrix was trilogy was only announced after the success of the first Matrix movie. How suspicious.
 
seems pretty clear that they didn't really have a plan for the other two Matrix films.
 
@StackedCrooked Same with Star Wars.
 
Yay we got plankton growing in space. They should make a movie about that.
 
9:57 AM
@R.MartinhoFernandes meh
AFAIK lucas always had the whole trilogy in mind
 
@R.MartinhoFernandes Ah, I see your point now.
 
(But at least with Star Wars at least one of the sequels is worth it)
 
I'm pretty sure that, historically, he only pitched "A New Hope" only to Fox because he thought he'd never get the others greenlit.
 
@Jefffrey Yes, that's why he went back and changed the title of the first one and added an episode number to it.
 
You don't release "Star Wars Episode IV" if you don't get a chance of releasing another movie.
 
9:59 AM
It's quite a clever move to name it episode IV. Since it allows for both prequels and sequels.
 

« first day (1405 days earlier)      last day (3528 days later) »