« first day (1557 days earlier)      last day (3390 days later) » 

1:01 PM
What does dismiss do?
Does the following work?
 
function dismiss (notification) {
    _.remove(notifications, notification);
}
 
notifications.push(notification);
$timeout(() {})
$timeout(function () {
    dismiss(notification);
}, 10000);
 
@BenjaminGruenbaum The hell?
$(timeout(() {})
What is this witchcraft?
 
Presuming that ^ was meant to be a function
 
1:03 PM
Yeah, I thought that was clear and was lazy typing
 
@BenjaminGruenbaum you couldn't even spare a fat arrow? :P
 
@phenomnomnominal the difference is that a digest is run.
 
() => {} would have made it valid
 
Yeah I know that, I just don't understand why
 
And the thing watching notifications is an ng-repeat right?
 
1:05 PM
Yeah
 
@SecondRikudo Valid without the timeout?
 
@Neil No, just valid JS code
 
Timeout would have been 0 then? Insta-call to do a big nada?
Oh
 
$timeout(() => {})
 
@phenomnomnominal sounds like global state creeping somewhere. I can help if you can create a self contained example
 
Usually there is something working outside the cycle.
 
Can anyone suggest ideas to making it more awesome?
It works, but it only displays a line of text, which isn't very impressive :D
 
@SecondRikudo get rid of bower
 
@SecondRikudo needs more zag and pop
 
@phenomnomnominal Why?
 
1:07 PM
@BenjaminGruenbaum I'll sort it in the AM
@SecondRikudo because basically all it does is pull down GH repos and npm can do that itself?
 
@SecondRikudo make a tutorial out of it.
 
@BenjaminGruenbaum Maybe on my blog in 6-8 weeks
But this is a demo that I'm doing to introduce 6to5 in our workflow
at work
So I want something fabulous as fuck.
 
Also I agree with @phenomnomnominal , you'd be surprised how many people don't realise you can npm install a github url :D
 
@BenjaminGruenbaum Interesting, will have a look
But that's currently out of the question, this is merely a proof of concept, not actual application code.
 
I've got a pull request for a mercurial resolver about to go into bower, so I've had a decent play with the insides, and it struck me how kinda pointless it is.
 
1:10 PM
I don't want to deal with dependency crap, so I did whatever worked real quickly.
I'm referring more to everything in the src directory.
 
You can just npm install petkaantonov/bluebird and it'll fetch it from github
 
@BenjaminGruenbaum I believe you
Again, not gonna start micromanaging dependencies as this is a proof of concept...
 
I actually argued against 6to5 in our workflow today
 
why this heresy?
 
It's cool and all that, but we're already using typescript and I just don't know if there's any point in the extra complexity for let (being purposefully obtuse here btw).
TS -> ES6 -> 6to5 -> WebPack seems a bit much to me
 
1:14 PM
@phenomnomnominal Meh
With gulp and source maps, it doesn't really matter how many stops you have on the way.
 
I agree, and if it was a little project I'd agree. But it's the largest website in my country and any extra complexity has to have a significant gain. And I don't think it does. Yet.
 
@phenomnomnominal Do you use modules?
AMD or CommonJS or whatever?
 
Then you will most definitely benefit from 6to5
 
the TypeScript syntax for it is pretty much identical
 
1:17 PM
ES6 modules are the bomb
Not familiar enough with TypeScript tbh
 
@phenomnomnominal Uhm, let is supported in TS1.4, isn't it?
 
@RoelvanUden yep.
Which is why the conversation happened.
@RoelvanUden for it to work you have to target ES6, which means another compile step to run in browsers.
 
Oh. Right. Remind me not to jump in without reading the entire log.
Yeah indeed.
 
@RoelvanUden sorry, not the conversation here, the conversation at work where I argued against.
 
@phenomnomnominal Ah. If I may ask, what IDE/tooling do you use for writing TS?
 
1:20 PM
@phenomnomnominal if you're already using TS you don't really need 6to5 that much
 
WebStorm
@BenjaminGruenbaum agreed
 
I should try WebStorm for TS sometime soon.
 
@phenomnomnominal although - generators, you need those.
 
@BenjaminGruenbaum what's the .NET analog to generators?
 
TS doesn't support generators yet. It will come in 1.5, and async/await in 2.0 IIRC.
 
1:22 PM
@phenomnomnominal C# has had generators for many years.
 
@phenomnomnominal IEnumerable<T> and yield return/break
 
Internet Explorer numerable
 
I wonder why it takes them so long, 6to5 took a lot less time to make it was made by a single guy and it supports much more features as well as a stronger typesystem. The main difference is that 6to5 is modular so it plays with other projects well.
 
@BenjaminGruenbaum Just Microsoft bullshit I would guess
 
@BenjaminGruenbaum Wait, a type system? It can enforce types? How?
 
1:23 PM
Instead of having the es6 class transforms, the generators and the typing all in one place you'd use 6to5's class transform, regenerator for generators and flowtype for types.
@RoelvanUden it supports flowtype annotations
 
Right, that doesn't run on Windows so I paid no attention to it.
 
that flow thing looks awesome
 
Although to be fair I'm not sure I'd use it - and I think typescript is pretty decent as it is.
I just find it very funny that a few people working alone can beat Microsoft who put their biggest and best on it.
Although 1.5 looks like it'd solve a lot of issues, and 1.4 delivered union types which was good
 
@BenjaminGruenbaum because microsoft was so keen on "we ABSOLUTELY NEED classic oop"
 
1:28 PM
say, purescript has way better type system than TS too
 
@BartekBanachewicz they don't have classic oop though
 
@BenjaminGruenbaum It's a different ballgame, really. 6to5 is essentially nothing more than an AST translation from ES6 to ES5 with a run-time, whereas TypeScript and AtScript are all about static analysis features. That's completely different.
 
@rlemon it's in newest google translate app and works pretty well
@BenjaminGruenbaum it has zomg zomg inheritance
 
inb4 holy war
 
@RoelvanUden yeah, but TS does a million things where 6to5 uses a bunch of other libraries to do a lot of these things so development happens in parallel often.
 
1:30 PM
night folks
 
function formatCommandline(c: string[]|string) {
  if(typeof c === 'string') {
 
6to5 also doesn't force a runtime - it doesn't ship with a runtime explicitly
night
 
lel pattern matching anyone
 
@BartekBanachewicz it's coming, just gradual.
 
Well to be honest I do see the improvements in mainstream languages
 
1:31 PM
@BenjaminGruenbaum Of course that's true, but because they can make use of ES6 syntax all the other libraries just work. Adding data annotations on parameters will trip a lot of things because it's not valid JS.
 
now I'm waiting for The Next Big Thing
 
@RoelvanUden it's not that simple - there is a lot of work in keeping the syntax tree in good shape - for example flow type needs to works on ES6 constructs but that wasn't a big deal because of how the transformations work
 
Nukes.
 
@rlemon Computationally, that's really interesting
 
TypeScript also has some momentum with AtScript but we'll see if that actually happens
 
1:34 PM
@Unihedro Dependent Types
 
This is what really needs to happen to TS< though github.com/Microsoft/TypeScript/issues/1664
 
@BartekBanachewicz I like the sound of that.
vector<integer|bool>
 
@RoelvanUden meh
@Unihedro that's just a vector of unions
 
@RoelvanUden 6to5 already does that
 
cake|lie reward;
 
1:36 PM
@BenjaminGruenbaum Yeah, but without types :-P
 
I bought an awesome new shirt
 
@RoelvanUden it actually supports types with flowtype :P
 
send photo
 
@BartekBanachewicz ew
 
@FlorianMargaine it's a panda riding a bicycle in space
 
1:37 PM
whats the next big thing?
 
@BenjaminGruenbaum you're ew
 
send photo
@SuperUberDuper haskell
 
2 mins ago, by Bartek Banachewicz
@Unihedro Dependent Types
 
@BartekBanachewicz ur icky
 
1:37 PM
 
now send photo without shirt
 
not enough pandas
 
best retro game ever?
 
hi. in angular directives...if you return an object without restrict ... what does that property default to? element, attribute, or class, OR, all three?
 
1 message moved to bin
@rlemon We don't link to porn here.
:P
 
1:48 PM
you're just jelly. and man nipples are not porn
 
@SecondRikudo pfft
 
@SuperUberDuper Scala
 
@PrathikRajendranM Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@BenjaminGruenbaum what a prude right?
 
@BenjaminGruenbaum Have you seen this?
 
1:49 PM
lol @bin owner list
@SecondRikudo you know, Windows Phone has been doing that since 8.0 2 years ago :P
 
This works today with Google Translate ^
 
@KendallFrey lawl
ninjad
 
@rlemon you're insane
 
@FlorianMargaine someone in the HTML room was going to give me $100 to wear heels and short shorts
 
1:52 PM
do it
 
@BenjaminGruenbaum Command mannips learned
 
@FlorianMargaine I said I would. they revoked their offer
 
1:53 PM
@rlemon I would have obliged, had I wanted to see you in heels and short shorts :|
 
@BenjaminGruenbaum Not the same tho
It renders the translated text in the image, preserving all the fonts and color
 
I wonder what happened to goggles
 
@BenjaminGruenbaum I never found that feature :o
 
Google Translate can pretty easily translate texts in images already, but it's "live" since recently.
 
1:56 PM
 
@BenjaminGruenbaum It's still there, but it silently died.
 
@rlemon lol
 
@rlemon That is golden
 
hey! my webcam software has a 'Hulk' mode
neat
 
ember integration testing seems better than angular protractor
 
2:05 PM
Hi. I'm not sure this question is suited to SO, should we close it or not ?
0
Q: Logic behind using 12 column grid for responsive layouts

testndtvMany of the libraries which support responsive technique uses the 12 column grid system. e.g. the default Bootstrap grid system utilizes 12 columns Is there any reason or logic behind using a 12 column system and not something else ?

 
@dystroy it's actually interesting
 
OK, so I don't vote to close it.
 
@BenjaminGruenbaum Oh, that flow compiled version works~ish on Windows.
 
ASR
2:18 PM
	var jsonArray = []; //declare array

			jQuery.ajax({

				type: 'POST',

				url:'<%=resourceURL%>',

				data:{
					<portlet:namespace />cmd:'entities',
				},

				dataType:'json',

				method:'post',

				success: function(jsonObject) {

					try{

						alert("jsonObject inside success  " +jsonObject);

						if(jsonObject){

							var jsonArr = jsonObject.objJsonArray ;

							if(jsonArr != null && jsonArr != ""){
								var arr ;
								for(var i=0; i < jsonArr.length ;i++){
									arr = jsonArr[i];
 
@ASR There's so much white space in that code, it's racist.
7
 
Hahahaha
 
ASR
@SecondRikudo can u remove it I will repost
 
@ASR You can
Press UP a few times
 
@SecondRikudo yes, that's also what I think
 
2:22 PM
@dystroy I reported the guy who's a mod on both so and progs
reported to the guy*
 
@BenjaminGruenbaum am I doing this right? 'cos ITS PASSING \o/ fiddle
 
@SomeGuy I got a ping from you but I can't find it and don't know what it was about
 
23 hours ago, by Some Guy
@BenjaminGruenbaum Since you're one of my most regular subscribers, do you think this would be appropriate for an article on Wikipedia Me?
I asked in the HTML room, and apparently it was well-known, so I scrapped it. I might put that in as bonus content
 
Is anyone familiar with angularjs? I'm struggling trying to figure out how to pass an object from the directive's isolated scope to it's parent controller.
 
@RaphaelRafatpanah $scope.$parent?
 
2:33 PM
@user1858864 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@user1858864, there must be a better way.
 
@RaphaelRafatpanah tried to inject the parent controller into the child controller, along with $controller, then use $controller('ParentControl) ?
 
Let me try =)
 
@RaphaelRafatpanah another way - to use messaging (emit, broadcast, etc), I think.
 
Is ther a way to declare the object you want to share in the scope: {} object defined in the directive?
Something like, "vm.customer" is the object that is sharable, pass it to whoever requests it.
 
2:39 PM
@RaphaelRafatpanah maybe: {'var': '='}?
 
@SomeGuy ?
 
@GNi33 !
 
what's that about?
 
Sorry, I don't know what you want me to explain :P
 
@RaphaelRafatpanah You can pass a global Object that acts as a messenger between the two controllers but I've been told that's bad code
 
2:41 PM
the wikipedia article
it's Austrias most recent claim to international fame
it's where all those "we're gonna lock you up in our basements" - "jokes" from Octavian and me originated about a year ago
 
Haha, you mean Australia :P
 
Yeah, that would probably cause a problem since the directive needs to be used in multiple areas and its properties should not be bound.
 
Sorry :P
 
yeah, of course :D
 
@RaphaelRafatpanah also you can try to use Service. It is a little bit another aprroach, but looks like it is more 'angular' way.
 
2:42 PM
I'd never heard of it before, so I found it pretty interesting
Thought I'd ask if people thought it was suitable for my blog thingamajig
 
@user1858864, oh crap! I didn't think of using a service. But I think that will work.
 
@SomeGuy it was a pretty big deal back then though, was featured all over the world
 
But still, if the directive needs to be used more than once, a service probably wouldn't work.
 
@GNi33 Yeah, I probably missed it because in 2008, the Internet meant Club Penguin to me :P
 
2:44 PM
I'm going to keep trying. Thanks for ideas.
 
> On 28 June 2013, workers began filling the basement of the Fritzl home with concrete.
that's a fun bit
 
@RaphaelRafatpanah why? You can define your logic in the 'link' function, and it schould work many times. Of course you have to define Service as a dependence of your directive.
 
Bah, flowtype would be so much more useful if it supported jsdoc. Then it wouldn't need to differ from the JS language to get their annotations in..
2
 
0
Q: How to replace some of text in href of Anchore tag in jquery

ramanI have few anchor with URL like "http%3a//test.dev.test.com/posts/test test", i want to replace it with "http://test.dev.test.com/posts/test test" on window load function, i have tried below code for this but it is not updating the URL of anchor tags. $('a[href*="http%3a//"]').each(function () ...

please help me
 
I know some people from that town. After about a year after the incident, teenagers started to use the basement as party room. Pretty aweful
 
2:45 PM
@user1858864 oh?
 
@GNi33 I love Wikipedia for all the tiny details you get
@GNi33 Oh, wow
 
yeah, they didn't mention why they filled up the basement though ;)
probably not the only reason, but it was one of them
I think they were about to do that anyhow though
 
They probably didn't know well enough to put it in
 
horrible story overall
 
@raman The html is also needed as stated in comments :)
 
2:47 PM
@RaphaelRafatpanah something like this: stackoverflow.com/questions/15569168/…
 
she escaped 2006, after being kidnapped 8 years earlier
 
Dayumn. Thanks!
 
2 years later the Fritzl case was discovered
 
Makes Austria look bad, huh?
 
kinda
 
2:49 PM
India seems to have had a similar problem with rape
 
@user1858864, thanks!
 
but similar cases started to pop up everywhere on the world shortly after 2008
Italy, USA are just 2 that I remember right now, but there have been a lot
 
Sep 9 '14 at 5:07, by copy
@IonicăBizău Old trick
 
@RaphaelRafatpanah np. :)
 
@copy You know the GitHub CEO used it? :-)
 
2:50 PM
@GNi33 Oh yeah?
 
Probably because people started to get a little more curious after the Fritzl - case and the media coverage all over the world
 
the es6 arrow functions this behaviour is way diffenent
 
@SomeGuy it was all over the news
 
It feels weird to not know about global affairs when you were alive, but just weren't old enough to care
 
At least here - title was "the face of evil" or something like that
 
2:51 PM
Ah
So everyone but me knows about it
 
@BenjaminGruenbaum yeah
 
@RoelvanUden I +1d the issue for that
 
@SomeGuy write about the pickle crisis of 2004
 
Hahaha
 
@SomeGuy do you know "Now I Know"?
 
2:53 PM
Nope, I'll look it up
Oh.
 
have it subscribed for quite some time now, there are pretty interesting articles/stories popping up from time to time
 
Seems like what I have, but more intense :P
 
I think it's somewhat similar to what you do?
yeah, the guy's great, daily newsletter
 
posted on January 20, 2015

Mobilism 2015 will take place on 27th of March in Amsterdam. Today, our full line-up was revealed. Mobilism first-timers Petro Salema and Agnieszka Walorska are joined by veterans Seb Lee-Delisle, Stephanie Rieger (and me) to create a nice mix of the new and the familiar. And don't forget Tim Kadlec, Jacob Rossi, and Sascha Wolter, whom we announced earlier. (Unfortunately Patrick Lau

 
When using the github API, can you directly get a gist by name or do you need to list them all first to find the ID ?
 
2:58 PM
@dystroy By name? Gists have name?
Oh the description
Don't think you can, no
 
@GNi33 Yep, seems like it. Subscribed
 

« first day (1557 days earlier)      last day (3390 days later) »