« first day (1374 days earlier)      last day (3588 days later) » 

@SecondRikudo I hope they didn't kidnap that soldier they say they did. That could lead to a real shitstorm.
 
Is there any bettr plugin?
fabric js is better?
 
@BenjaminGruenbaum They say they captured a soldier?
 
@SecondRikudo yup, "Shaul Aaron", google that name. Government denies of course but that's not an indication of anything really.
 
@Shin I didn't think fabric js could be used for website design
 
9:05 AM
@BenjaminGruenbaum I guess only time will tell
 
Is there any situation where : if (a) {...} will act differnt than if (!!a) {...} ?
 
nvm didn't read that right
Well, sure
 
You want to solve the puzzle or you want me to solve it for you :P?
 
mmmm :-)
I alwys do if (a) ... but Im afraid i might missing something
 
9:08 AM
It's ok to do if(a)
 
but is there any chance that method will return other value than the other ?
(true vs false)
if you say it's a puzzle , then I guess you found a scenario
 
ok, why does git not work from bower but when i run the command bower fails on it works fine?
 
ok i give up.
what's the scenario ?
 
bower install fails due to "public key" exit status 128 and outputs a git command
if i then run the command, it runs fine
 
if("false") console.log('if entered')
if(!!"false") console.log('if entered')
 
9:12 AM
- ?
+1
they both enters
 
Hmm, you're right.. wait
 
IMHO, if (foo) and if (!!foo) are equivalent.
 
Think much dirtier.
 
Morning all,
 
!!>if ([undefined]+'') alert('1')
!!>if (!![undefined]+'') alert('1')
seems to be one case
(didnt know , just tested)
 
9:17 AM
SyntaxError: Unexpected token >
 
Seems like an extreme case
To answer your question, they're not the same, but almost
That said, don't push your luck :P
 
@RoyiNamir this is invalid case
 
why ? they yield different result
 
You're comparing if (foo + bar) vs. if (!!foo + bar)
 
Yea
 
9:18 AM
Not the same thing.
 
mmm yup
sorry
 
True
 
@Neil @Neil I think it is better to create manually.What you think?
 
^agreed
 
if(!!(statement)) and if(statement) are equivalent.
 
9:19 AM
ok i guess they are ===
 
Not quite ===
 
@Cerbrus are you sure of that?
 
@Cerbrus proof ?
 
Well, technically, maybe, but then === would be an inaccurate way to compare if statements
 
9:20 AM
@BenjaminGruenbaum Yup, I've messages a friend back in the base to try and figure out for me if the ID they published matches
Although that doesn't mean much
 
!!>"foo" === !!"foo"
 
Caprica's dead
 
@SecondRikudo they could have just found an id
 
Capriccaaaaaaaaa
 
Oleg that's not realtes
 
9:21 AM
@RoyiNamir realtes?
 
I need help with this fiddle, i need to pin the first 3 columns and make the rest scrollable, currently it only pins the first one
 
relates
 
relates?
 
Negating a truthy or falsy value twice will always give true or false, so in an if statement it's the same thing.
 
9:21 AM
right side is bool where left side is string
the question is in the context of truthy falsy
 
@BenjaminGruenbaum Yup
 
you dont check truthy in your sample
 
@RoyiNamir exactly, that's why it's not necessarily ===
 
@oleg: I think he means: "That's not true"
 
^ yes
 
9:22 AM
Boolean(a) === !!a
 
so does if (a)... will yield the same result as if(!!a)... ?
 
Yes
 
Yes
 
Yes
 
what constraints
 
9:23 AM
depends on the constraints on a
 
C-C-COMBO Breaker!
 
@dystroy no, please, don't start again...
 
@Oleg Why?
 
@dystroy: We just discussed that :P
 
I'm sorry, didn't read before
 
9:24 AM
I wasnt here. what constraint
 
if does [[ToBoolean]] and enters if that evaluates to true, the question is if you can cheat it.
 
>_<
 
oh...
 
Unary ! also does ToBoolean(GetValue and returns the negation of it.
 
Can we monkey patch ToBoolean?
 
9:27 AM
Perhaps :)
 
Anyone say "yes" please.
So that we have a range of opinions to choose from.
 
@Oleg yes
 
And resurrect Caprica so that we can ask her the same question.
 
!!live
 
9:29 AM
if (!!"0"-0) {
 
@dystroy ew
 
-
that's not follow the (a) vs (!!a) pattern
 
@dystroy We've already discussed that.
 
~[]<<~-~-~+[]
([][]+"")[~~[]]
 
gosh
 
9:32 AM
obfuscation in its full power :-P
 
*its
 
:-)
 
Let's discuss some JSFuck, folks.
 
or some SO. How can you have more reputation in one year than in total when you're a recent account ?
 
9:35 AM
@dystroy Just ask a generic question on parsing HTML with Regex.
 
@dystroy extrapolation?
 
@JanDvorak Hu ?
 
@Oleg it will be closed at most 3 sec
just like " javascript math is broken"
 
maybe dummy voter
 
9:37 AM
@dystroy maybe he started in the negatives?
 
js chat, you're retarded. Why such border making the image tiny ?
 
@Oleg it's the only question with that topic and all other questions referes to this one
probably the most famouse one
 
Too famous
 
and dont forget the 0.1+0.2===0.3 Q
 
9:38 AM
People are referring to it to close any question with regex and html without even bothering to see if they're valid.
 
Anyone here does freelancing?
 
for me - the most annoying thing with SO is the downvotes anonymously / no-explanation-mandatory-field
 
> -1 bcz its ronk
 
@RoyiNamir anonymous downvotes are great
 
Im just saying they need to come with explanation( mandatory)
 
9:40 AM
It's the ultimate protection against the downvotee's angst.
 
Would you prefer to have to add a comment explaining to OP that his question is totally retarded ?
 
no , but as you can see from many OP's : @downvoter - comments are helpful
 
The "downvote reason" has already been discussed multiple times on Meta afaik.
 
Jon skeet does it all the time ( when downvoted)
 
9:42 AM
It's better to comment when you can be constructive, but when the question is just extremely lazy and stupid, commenting wouldn't add anything
 
@RoyiNamir there's no legitimate reason to downvote Jon Skeet
 
@dystroy I agree with that. but im talking about the more or less fine questions - where you suddenly see -1
 
It's pointless to comment, because: plus.google.com/u/0/+MichaelMahemoff/posts/5S3mfZ5rNCJ
 
> -1 because it's a debugging question
 
Jan - this is where vote to close comes up
 
9:43 AM
> -1 because OP pi$$3d me off yesterday
 
hhhhhhh
 
Downvote reason: "Filling for minimum character length"
And that's why it won't work
 
@RoyiNamir not if the question is clear and not a typo, but still useless
> -1 aoeuidhtn;qjkxbm
 
sometimes I ask useless questions - just to improve my knowledge with some topic
 
@RoyiNamir boo
 
9:45 AM
for example I asked couple of days ago about split via regex with positive lookahead
 
And why was it useless ?
link ?
 
5
Q: split line via regex in javascript?

Royi NamirI have this structure of text : 1.6.1 Members................................................................ 12 1.6.2 Accessibility.......................................................... 13 1.6.3 Type parameters........................................................ 13 1.6.4 The T generic ...

 
I mean the "only useful wrt this code" kind of useless, not the "why would anyone do that" kind of useless
 
it is useless becuase I could easily do split via " "
 
9:48 AM
or find via matched group. But I wanted specifically to enhance my regex skills and find split via positive lookahead ( regex)
 
@RoyiNamir ~2000 answers and questions no SO? Do you live here or what?
 
@Oleg no. I'm just very curious guy who knows that there are many things (for me) to learn :-)
espcially if you're a web developer. ( css , html . js ,c#)
 
@Oleg What do you mean with "~2000 answers and questions no SO" ?
 
sum i guess
 
@dystroy s/no/on/
 
9:50 AM
oh...
 
He gave 1053 answers and asked 938 questions in three years.
 
sorry, get it now... didn't understand the "no"
 
It makes ~1.8 posts per day on average including weekends.
oh... typo, my bad
 
938 questions in three years.... That's roughly a question per day
 
on problem, we usually automatically fix that when reading, it's just my autofixer wasn't no
 
9:52 AM
>_<
 
(ps - dont use split via captured group regx - it's not cross browser)
2
Q: Regex split by capturing parentheses - browser support :

Royi NamirLooking at this sample : >'1,2,3,4,5'.split(/,/) Result : ["1", "2", "3", "4", "5"] But looking at this sample : >'1,2,3,4,5'.split(/(,)/) Result : ["1", ",", "2", ",", "3", ",", "4", ",", "5"] From MDN : If separator is a regular expression that contains capturing parentheses, th...

 
@RoyiNamir why does it seem to me like you're looking for an off-site resource here?
 
here == chat?
 
here === the question
 
MDN doesnt state which browsers supports the split/()/. and I couldn't find any other information resource
so I thought I might ask here in SO
I don't see any problem
 
9:58 AM
we don't like gimme-teh-resource questions here
 
do you think this question should've not been asked ?
 
I'd reword it to "what browsers support this" and hope for an answer that quotes a reference (and if it doesn't quote a reference, ask through comments)
 
ah well , that's a stupid argument about a supid topic.
 
Not really. You stand the risk of getting closed this way.
 
because of the wording I've chosen in the question?
 
10:03 AM
Yes. Spammers like wording.
(also, closevoters like wording)
 
Just checking: Should two questions that are different, but happen to have the same answers, be marked as duplicates? meta.stackoverflow.com/questions/266244/…
 
anyway - I disagree :-). if it made me a better developer knowing which browsers supports it - then I got smarter. this link explains it : blog.stevenlevithan.com/archives/cross-browser-split
Internet Explorer and Safari do not splice the values of capturing parentheses into the returned array (this functionality can be useful with simple parsers, etc.)
anyway gotta go :)
 
@RoyiNamir Then ask which browsers support it ;-)
 
@Cerbrus - That depends, some questions are totally different, and yet have the same answer, those shouldn't be closed. Other questions are basically the same even if the question is worded differently and the code is different, for instance everyone asking how to return from an ajax function in many many different ways are really all looking for the same answer, "you can't".
 
If they are truly different questions, there is no clash with two questions with the same answer
 
10:07 AM
@adeneo: Yea, the meta question is about different questions / problems that have the same solution
 
to give an example, if I have an audio problem, and the solution is to restart my computer and I look for it on superusers SE, it would be wrong not to find anything simply because another unrelated question has as an answer to restart the computer as well
 
@Neil There will still be signpost duplicates
 
Yea, that's what I though. Apparently, Anthony Grist disagrees, though :/
@JanDvorak: meta.stackoverflow.com/a/266246/1835379 I think I covered that
 
@Cerbrus - In my opinion those shouldn't be closed .... because .... what @Neil said.
 
I'd say the rule of thumb should be: can a random googler notice the relation between the duplicate question / his question and the original answer?
 
10:11 AM
@JanDvorak At that point I would consider them related questions, and hence duplicates
 
Exactly. And the meta question is about cases where the questions are absolutely different. In the OP's words:
"So then, can two questions that are totally different, but just happen to have the same answer, be duplicates? Should the latest one be closed?"
 
I think it is a clear "No"
 
That's what I wanted to hear :-)
 
hi all, can I rely on self.history.length to either enable or disable a back button ? this is to be done in iframe and needs cross browser support.
 
@Neil then how should the newer one be answered? Copy/paste? "The answer is same as [link]: [quote]"?
@Yoda I'd rather not
 
10:13 AM
@Yoda DON'T DO THAT
Oh wait.
An additional back button?
Or the back button?
 
@phenomnomnominal sorry, I did not mean to toggle browser's back button, I have one another back button in my custom nav bar.
 
@Yoda EEEEEK
(yep, 5 E's)
 
@JanDvorak can't do much here. it is needed for our app as it needs to be embedded in other apps.
 
@Yoda let them provide a back button
You could track the history yourself. You can't really be sure about much in embedded "browsers".
 
nope, this app needs to own this. another reason is, the app will always run in different domain so you won't be able to access anything from parent or iframe.
 
10:18 AM
iFrames and history are a combination I don't really like; sorry
wait, where is it embedded?
 
in a parent application running on different domain.
 
in a web browser?
 
yes
 
that has its own back button?
 
yup, it is a hybrid single page application .
 
10:21 AM
why not use that one, then?
 
sorry, I think I didn't made my question clear to you. my question above related to this same back button as it is enabled even on the home screen when the page loads.
 
@SomeGuy I don't usually do 1 rep max, last time I did (about 1 year ago) I did 305 and failed for 315
 
@Yoda I don't think I understand. Why don't you rely on the browser's back button?
 
@JanDvorak No. The context changes. That makes all the difference
 
@Neil how to answer it, then?
 
10:28 AM
@JanDvorak under the hood it uses the self.history.back() and it uses self because it should not use parent's history. My question is if I can read history.length to toggle this custom back button.
 
What sense would it make that I be directed to a page answering an unrelated question, simply because the answer happens to be correct for my circumstance?
I don't see the point of that. Save space?
@JanDvorak It should be answered as it would normally be answered
The answers will be similar, if not the same, but that's fine
 
@Yoda Do different iframes even have different histories?
 
Yeah I believe so because when I navigate in iframe it is not added in the parent's history.
 
huh...
 
A guy walks into an office looking for a job. He sits next to another man who is waiting for his turn for the interview, who, talking about this and that, it is revealed that he has a half-dollar in his pocket.
He then walks into the office to do his interview. The man watches him doing his interview and thinks, "Wow, that guy with the half-dollar is going to get the job for sure."
He himself goes in for the interview and to his surprise, he gets the job. He later discovers that, by a weird coincidence he himself had a half-dollar in his pocket as well.
His prior knowledge that the man with the half-dollar would get the job was correct, but completely lacking context, it was worthless.
This has been your philosophical odd-ball commentary of the day.
 
10:39 AM
i hate today
 
o/
 
\o
 
> how to not have faith in humanity:
step 1: google 'wait for all images to load js';
step 2: look at the first page hoping to see something useful;
step 3: not finding anything that doesn't use a library;
 
@towc onload
 
@towc google loading gif
 
10:48 AM
@JanDvorak that's for only 1 image, you don't know if all of the others are done, and it wouldn't be elegant to do it for all of the images
 
@towc window.onload
 
@JanDvorak doesn't that only run after you load the dom?
 
@towc you can't load images before you mention them.
 
@towc Ask @shortCircuit, he did something like that yesterday
 
@JanDvorak what do you mean?
 
10:50 AM
@JanDvorak But you can definitely load images after the DOM is ready...
 
What images are you waiting for?
 
@JanDvorak some in the dom
 
multiple img.onload with a counter
or use promises. Say... err... no. Bluebird's a library and jQuery's a library.
 
@JanDvorak I remember there being something like an event listener for that, but I can't seem to be able to find it
 
Never heard of such a thing.
You can convert onload to promises, then wait until $.when .all of them to finish.
 
10:53 AM
@towc that's ez
 
@towc shortCircuit did something like that yesterday
I was talking to him about it.
Around the time I pinged you yesterday
 
apparently the listener is DOMContentLoaded
 
function getImage(url){
    return new Promise(function(resolve,reject){
         var img = new Image();
         img.src = url;
         img.onerror = reject;
         img.onload = function(e){ resolve(img);};
         document.body.appendChild(img); // append and remove to force
         document.body.removeChild(img); // actual load
    });
}
 
@BenjaminGruenbaum No libraries
 
Promise.all([url1,url2,url3,url4].map(getImage)).then(function(results){
    console.log("All loaded!");
});
 
10:55 AM
@towc that only waits for the DOM
 
@SecondRikudo who said anything about libraries?
 
@JanDvorak and it's content
 
@BenjaminGruenbaum Promises are already implemented in JS natively?
 
8 mins ago, by towc
> how to not have faith in humanity:
step 1: google 'wait for all images to load js';
step 2: look at the first page hoping to see something useful;
step 3: not finding anything that doesn't use a library;
2
 
@SecondRikudo yup.
 
10:56 AM
@BenjaminGruenbaum Whaaa?
 
@BenjaminGruenbaum I heard that the ES6 promises suck
 
Although Bluebird promises are superior in just about every way.
@JanDvorak they suck compared to BB promises since they're harder to debug and slower, but they're still a ton better than callbacks.
 
especially when it comes to all
 
Lots of other useful stuff - like Promise.race and so on, not as good as bb promises but you can work with it.
 
all this time I was testing on what I've put quite some time ago on my site, not on what I'm constantly changing in the local machine... and I was wondering why stuff wasn't working -_-
screw everyone..
yeah!!! Cheese life! It works!
window.onload was the thing apparently... but I was checking the wrong tab, thx anyway everyone
 
11:05 AM
This LearnGitBranching is ok, but too much BAD animations and the colors are just... ewwwwwwwww
 
@dievardump The level finish animation is horrible
 
Well, all of them
Mixing height width top left + opacity
 
@SecondRikudo @dievardump Oh, so we're all designers now, eh?
 
"come on"
@monners maybe not you. But I care about the user experience, and after one level I stopped
 
@monners Umm, yes, I'm a designer...
 
11:07 AM
@dievardump That hurts...
 
That's not my main job, nor my favorite skill, but yes, I can design and I do UX.
 
Yeah, yeah. I also am a slut for good UX. Just stirring the pot
Has anyone watched The Clone Wars animated series? Worth the time?
 
@JanDvorak @towc It's amazing, google actually counts jquery as a synonym of js
 
Wait, what? They are not the same?
 
They are
 
11:09 AM
@dievardump can I kill you?
 
Although first google page gave me this stackoverflow.com/questions/8682085/… which doesn't rely on a library
 
@towc Depends how.
 
@dievardump in the most cruel of ways
 
I made it two minutes into the first episode. No. Thank you.
 
@SecondRikudo let's just kill them with fire
@monners it's awful
 
11:10 AM
@towc Then it's ok
 
gonna give Jobs a crack. Can't be that bad...
 
I have been asked to create an application in Angular JS that is a little more sophisticated than a TODO App.
What should I go for?
 
@RahulDesai decline. It's impossible.
 
@RahulDesai thinkster.io Pretty good tut
 
@jAndy And how much do you weigh?
 
11:16 AM
@SecondRikudo why do you think so?
@monners Better than the one on angularjs.org? PS. I am completely new to Angular.
 
@RahulDesai Me too, and yeah. Goes a lot deeper
 
@RahulDesai I'm kidding
 
@monners sounds good!
@SecondRikudo I was just not getting what app should I go for.
I recently built this: jsfiddle.net/rdesai/csTS7/274/show
no Angular though
 
@RahulDesai Plenty of inspiration in eCommerce sites. Pick a cool feature and try to replicate it.
 
@monners alright
@monners That link looks real good.
 
11:24 AM
 
@RahulDesai So star it :P
 
How does either Win 8.1 or IE 11 qualify as "Cool", @towc?
 
win8.1 is actually pretty nice
 
@Cerbrus it has cool demos
 
@tereško ...
 
11:27 AM
and ie11 has impressive webGL support
2
 
Using 8.1 right now on my work desktop. I want win 7 back.
 
@BenjaminGruenbaum so i do not have relevent works so sending just photon and a kinda design i did for tipranks app porting the WP client you have
@tereško windows phone 8.1 is the baws
 
@AbhishekHingnikar lol .. I am not talking about phones
 
@Cerbrus you have a win anyway, it's a win-win situation
 
WebGL + Full Media capture (heck they let you control exposure and shutter time with javasscrippt) in the runtime, is a sexy mixture for camera apps in JavaScript :D
 
11:27 AM
-.-
@towc: I should slap you for a joke that bad xD
If only MS hadn't forced a tablet OS for desktops
 
@RoyiNamir This still gets a lot of upvotes. See this retarded question which got 3 upvotes : stackoverflow.com/questions/24798322/…
 
Ever tried using that side menu thing on a RDP connection to a server?
 
regarding IE, I find it sad that people, who have never worked with 6th and 7th, simply describe IE11 as crap
 
@monners Part of it is paid though.
 
@tereško: IE11 still has quirks Chrome / FF don't have
Not nearly as many, but still... I run into it every now and then
 
11:32 AM
@Cerbrus there are also strange bugs that are unique to firefox and chome
 
Not as many, in my experience.
The real problem, though, is that way too many people still use older IE versions
Which are a pain to develop for
 
@SomeKittensUx2666 YES
 
talking google support
i hope they cover accidental damage T_T
otherwise i haz no phone for a while ps @SomeGuy i am on whatsapp by my iPad :-|
 
11:58 AM
 
tell them why you don't want them to hire you
 

« first day (1374 days earlier)      last day (3588 days later) »