« first day (1543 days earlier)      last day (3397 days later) » 

5:00 PM
What do you mean by "you can't actually assign them this way"? new char[30] is a char* so char* ptr; ptr = new char[30]; is perfectly valid. Of course the OP really wants std::strings. — Lightness Races in Orbit 17 secs ago
hahaha Jon put me in the Winter Bash 2014 write-up wearing a USA trucker hat, as promised :D
Due to my languishing at #10 on the leaderboard, that was my only chance of making fame this year, really.
 
lol Logan is first
AGAIN
 
Obligatory: fewer USA cultural phenomena and insignia. :-) — Lightness Races in Orbit 14 secs ago
"trivial answer converted to edit" #FFFFFFFFUUUUU-
1
Q: c++ argument evaluation order for assignment?

JichaoIn c++, arguments evaluation of order is not guaranteed, but is the order of left/right sub expression of assignment expression is guaranteed? For example #include <iostream> #include <map> int main() { int i = 2; std::map<int, int> map; map[i++] = i--; return 0; } Is left exp...

ffs
 
@LightnessRacesinOrbit He's a C# person according to his profile
Pff, Managed people
 
@MohammadAliBaydoun then what is he doing answering C++ questions -.-
get off my tag bruh
 
user1804599
Who needs let. (fn(xs) => { xs.push(x); xs; })(xs.slice()) works fine. :D
 
5:10 PM
208
Q: Is this rotating cube interface user-friendly?

Peter OlsonI'm working on a prototype for an innovative form interface, where different parts of the form are shown on different sides of a cube. The cube rotates, and the user can fill it out as the cube spins. Here is a working example: To me, it seems like a pretty robust solution to our problem (i.e....

awesome
 
I like how there are actually serious answers.
 
it's UX
they mostly discuss things like this though:
 
> To me, it seems like a pretty robust solution to our problem (i.e., before, our forms took up too much space on the page and were extremely boring), and it feels pretty usable to me, but this approach may have some user-experience problems I don't know about.
 
Because putting the stuff on multiple pages is too standard.
 
5:14 PM
Roger, you are one hardcore MF. — Rahul ♦ Sep 14 '11 at 11:32
lol
 
user1804599
Only one?
 
I have just suggested the rotating cube approach for our product. Getting some good traction so far.
(Sadly, I'm not joking.)
 
Ell
> To improve it, you could make it not be a rotating cube.
 
 
what's the point in splitting your answer in two
"Silly answer" and "Serious answer"
it ruins the silly answer
 
5:18 PM
cube uis are the future patentlymobile.com/2013/12/…
 
it's like HEY GUYS I CAN BE FUNNY TOO RIGHT... RIGHT GUYS?
 
user1804599
@Pris Now Windows 9 will be designed with cube UIs in mind, even though nobody uses it on a cube.
 
user1804599
Metro 3D™
 
I can see them screwing up the UI for windows 10
 
@AlexM. Well, if the serious answer is 'You fucking stupid/insane? It's obviously impossible', then a bit of levity first helps, no?
 
5:20 PM
a serious answer has no purpose there
the only valid answers are those further trolling
 
considering that it's a rotating cube, I think that everyone knows the tongue-in-cheek nature of it.
 
@rightføld Windows 10.
 
@AlexM. lol
 
@orlp Just solved projecteuler.net/problem=190 in O(1), Easy optimization problem~
 
@rightføld Mr Burns uses it on his car.
 
5:21 PM
I'm still busy with projecteuler.net/problem=368
 
user1804599
@Puppy Excellent.
 
implementing some obscure paper with a TON of summations
 
anyway, the guy's pretty softcore, I think I'll try to make forms in WebGL using Unreal Engine
with tesselation
 
I'm almost done,but the chance it'll work is only like 20%
 
to make sure they look good
 
5:21 PM
make a rotating tesseract.
 
how would tesselation help you make forms
 
@orlp That happened to me with the Pascal's Pyramid Problem. I ended up with a very nice equation on paper C:
 
I don't have dominos where I live :(
but
 
thanks god
 
5:28 PM
aside from the QF pan pizza
 
nice guerilla marketing
 
any Pizza Hut pizza I got so far was a joke compared to other restaurants'
so I tend to believe that's accurate
 
wait. Pizza Hut is a restaurant now?
 
yes
with tables and waiters and chairs
and menus
and things other than pizza
mostly salads
 
user1804599
lol fastfood
 
5:29 PM
I don't eat those
I don't want people to think that I want to eat healthy
 
I like Pizza Hut. Haven't been in, like, a decade, mind you
Colleague asked me yesterday when my mum is planning to kick me out of her house and force me to get my own place. I'm like... what. I haven't lived with my mum in over a decade. I have a fucking mortgage. (So give me your salary, bitch)
 
user1804599
@AlexM. Eat salads.
 
user1804599
Salads are good.
 
Eat lead.
 
user1804599
inb4 he eats McDonald's unsalad
 
5:32 PM
@rightføld lol
 
going to mcdonald's for salads is like going to a hooker for a kiss (anonymous)
I don't eat salads, they don't contain animals and if they do contain animals it's too little an animal in there
animals stop you from being hungry, plants don't
 
tofuck you
as the vegan famously once said
 
he has a fucking mortgage
wow let's call the papers
 
user1804599
@AlexM. Hoeren neuken, nooit meer werken.
 
speak the fuck english
going home now be back in about a million years
 
5:34 PM
That soon?
 
user1804599
Okay, I got to the most boring part of implementing a compiler: mapping operators to functions.
 
the Celebriati?
 
user1804599
Lets do do notation first instead.
 
a secret group of celebrities controlling the world through their popularity?
 
5:35 PM
@Puppy You doan wanna mess wid dem!
 
@rightføld Do you have monads in your language?
 
user1804599
No.
 
What's do notation then?
 
TIL shovel knight has a cheat that replaces certain nouns in the game with "butt"
 
user1804599
I just map do { a <- b; c <- d; e <- f } yield a + c * e to flatMap(b, fn(a) => flatMap(d, fn(c) => map(f, fn(e) => a + c * e))).
 
user1804599
5:38 PM
Where flatMap and map are of course overloadable on their first parameter.
 
user1804599
It's impossible to have overloading work on return types in dynamically typed languages unless you want to require type annotations on calls to such functions. So I cannot have return.
 
user1804599
But such notation is still incredibly useful in particular for async code and list comprehensions.
 
user1804599
@R.MartinhoFernandes Pfft, what do you know about arguing? You're just a stupid robot.
 
> Please don't down vote this question people, Ive already been banned once, and SO is the only source of help for me...
 
@rightføld Wait, yours is a dynamically typed language?
 
5:47 PM
.... so tempted to get an ssd... but I've already spent too much this month on myself :S
 
I've spent too much this month on my shelf too.
 
is that typo?
 
No, just an horrible joke.
 
lol - just look at the bold in this, (and then OP gets the fucking signature wrong:) :
http://stackoverflow.com/questions/27803819/pthreads-leak-memory-even-if-used-correctly
 
best cloise those tabs :P
 
user1804599
5:52 PM
Oh right, I still have to fix <> so that it is the opposite of = instead of the same.
 
So, when @BartekBanachewicz says "loops are bad" he means that putting for(_someinitialization_; _somecondition_; _someoperation_) in your code is bad and you should use things like (in C++) the STL algorithms?
 
Ell
Okay I need to write a class in vanilla js
let's 'ave a google
 
> Meat ants (Iridomyrmex purpureus), also known as meat-eater ants or gravel ants, are a species of ant belonging to the Iridomyrmex genus. They can be found throughout Australia.
of course there's a species of ant that eats meat
and of course it's in Australia
 
user1804599
function User(id, name) {
    this.id = id;
    this.name = name;
}

User.prototype.someMethod = function() {
    return save(id, name);
};
 
user1804599
5:58 PM
@Ell bwahaha ^
 
even ants want you dead there
 
'Wrong signature' guy is fucking pissing me off now.
 
Ell
@rightføld OH boy
where do I put static methods?
 
user1804599
User.someStaticMethod = function() { … };
 
Ell
oh cool.
 
user1804599
6:00 PM
You can also just look at what CoffeeScript generates.
 
Ell
Hmm. Shouldn't it be var User = function ...;?
something about globals or something idk
 
user1804599
That doesn't matter.
 
user1804599
Unless you want to use it before it's defined.
 
Ell
oh kk
 
@Ell Google? Just post on SO - it's what every other fucker seems to do :(
 
6:05 PM
Damn ringing is sorta gone. I can still hear the fucker if I cover my ears.
I WON
 
@R.MartinhoFernandes Did you do anything to make it go away?
 
I waited it out.
 
Xeo
Psst: Doctor. Tinnitus.
 
@MohammadAliBaydoun I really hate that math papers use 1-based indexing
1-based indexing should be made illegal
 
Ell
okay darn javascript doesn't support private properly
I'll just use convention I guess
 
6:12 PM
@orlp What's your Project Euler Friend Key? c:
 
@orlp Indeed, if only to try and keep the waves of obi-wan posts from noobs at bay.
 
@MohammadAliBaydoun friend key? my username is orlp
 
Ell
meh I'm gonna use coffeescript
 
@orlp PE doesn't give such permissions knowing a username ;_;. The Friend Key can be found in the "Friends" tab C:
It's a giant 2-part hexadecimal string
 
141636_e9fbfed7649d085da1f49aefd821fc7a
 
6:22 PM
There we go <:
 
I'm going to do them all at some point
 
Now WE'RE FRIENDS ;_;
 
how many have you done?
 
right now ~100
 
@Ell If going down that path, might I recommend Dartlang?
 
6:25 PM
Compiling takes too much.
 
Ell
Oh I never knew dart compiled to js
oh it's statically typed too
 
@orlp I'm reading on Kempner series and it seems that it might be easier than it seems
 
@MohammadAliBaydoun it's basically one paper you have to implement
 
@Ell I have not used Dart in a while, but I like the package manager, that easily works with git, or local directories. Compiling usually works just fine, but a bit verbose. C#-like delegates.
 
it's just a tad annoying =/
 
Ell
6:30 PM
I'm gonna give it a try right now
 
@MohammadAliBaydoun eprints.maths.ox.ac.uk/1106/1/NA-06-17.pdf is basically it
 
@orlp I love solving these kinds of problems. They allow me to read mathematics research papers and learn new things ;_;
 
@MohammadAliBaydoun well, go ahead
I did it
it works
 
I solved Problem 190 earlier with Lagrange Multipliers
 
but the code is kinda annoying
still cleaning up mine
 
6:37 PM
I wonder if you can select the String X in a Sub-series of the Harmonic Series to get a special value like e or sqrt(2pi)
Oh wait.
Hmm. I was looking at the number thinking "I know this constant!"
Turns out, it's ln(10)
 
2.302585092994046
man I love always having a python shell accessible :P
I just write copy(log(10)) and done it's in my clipboard
 
ln(10) ~ 2.30 is the most useful thing to know
It allows relatively fast mental calculation of ln(x) :P
ln(2) ~ 0.69 helps too
 
Ell
dart2js looks a bit immature
and difficult to set up
I'll stick with coffeescript
 
If you ask me ln(210000), I say it's close to ln(200000) which is ln(2) + 5ln(10) ~ 0.69 + 5(2.30) ~ 12.2
Actual answer is ~12.25
:not_bad:
 
Meh - fucking 'Signature guy' deleted his question after I spend 5 mins on an answer. Bastards...
 
6:52 PM
look at those beautiful things
 
Ell
nice
 
$150 worth of knives for $15
thx carrefour and mum
 
'How is 999µs too short but 1000µs just right?' - it's like a kids bedtime story:)
@AlexM. I have a 'cheapo generic' chef's knife. I hate you.
 
interestingly, the cashier forgot to invalidate the code for the chef's knife :P
so I can get another one
 
@AlexM. ..........................
 
6:56 PM
I have a friend who is a hobby blacksmith. Gonna ask him if I can hammer me a knife.
 
OH GOD WHY DID I OPEN CHAT
7
 
What? Enthusiasm for kitchen equipment has to be better than continual goto/Vlad, surely?
 
I can't decide which algorithm makes the most sense for this.
 
goto was strange given how many ways there are to write crap code.
 
Ell
@R.MartinhoFernandes everythin okay there bud?
 
6:58 PM
No more, please!
@Ell lol
 
I have an inserter for a container<T>and I have a function F that converts elements of type Y to T and I have a container<Y> whose content I want inserted into the first container via F and my inserter
std::accumulate works if I write a functor, but then that functor takes the inserter as a parameter and doesn't use it.
 
@AlexM. I mostly use one big knife from Tescoma. I have no idea what I would do with so many knifes. :)
 

« first day (1543 days earlier)      last day (3397 days later) »