« first day (1630 days earlier)      last day (3317 days later) » 

12:25 AM
@carb0nshel1 yes
 
@carb0nshel1 You bolded trigger, what are you actually trying to do? Are you sure you're asking the right question?
@NickDugger You can throw a CSS animation on top of a html5 video with rounded borders and a box shadow. Pretty sure that'll push the limits of what you can do in a browser... just not very meaningful :p
 
My qualm is that they call that full-stack development...
Unless their stack only consists of the front end? lol
 
@NickDugger :D for a long time we didn't have any backend because it was completely handled by a google service. the full stack was literally frontend :| but youre definitely right.. they dont have people that know what theyre talking about write those descriptions
@NickDugger just cram as many buzzwords in there as possible... :p
 
I still applied for the job, though lol
because the description still matches my skillset
 
@carb0nshel1 Also you should take a look at window.matchMedia if I'm understanding your question correctly
@NickDugger :) as you should... even if it didnt, still cant hurt to apply
 
12:38 AM
My favorite is the ones like: We are looking for someone with experience in PHP, Cobalt, AS3, Ruby, Linux, Java (Javascript at least), Typescript, NoMySQL. Must have at least 10 years experience with WebRTC and Gulp.
Like someone just googled "programming" and threw in all the words that came up.
 
12:54 AM
hello
i use this library
http://suyati.github.io/line-control/
it is a text box editor
by default this jquery library disable right click
how can i enable it ?
 
In angularjs, is it common to have the controller inside the directive?
that is the directive returns an object
with controller as key
and as a function as value
the only thing I have found is this: teropa.info/blog/2014/10/24/…
 
@GrantWatters Carbon is a troll around here.
Most of us have ignored him.
 
@SomeKittens Good to know :)
 
@Trufa You can set a controller for a directive in the directive object, yes
Not very common, but possible
 
@SomeKittens ok, because the code I'm starting to read has basically every controller that way
 
1:04 AM
does anyone know what i am asking about ?
 
@Bassem Do you feel comfortable editing the library? You could delete editor.js:1081
 
i open the library
i found this on line 1081
$('#contentarea').bind("contextmenu", function(e){
if($('#context-menu').length)
$('#context-menu').remove();
var cMenu = $('<div/>',{id:"context-menu"
}).css({position:"absolute", top:e.pageY, left: e.pageX, "z-index":9999
which part exactly u want from me to remove
 
1:31 AM
@Bassem Well I don't really want you to remove any of them.. but that call to .bind("contextmenu") is what is handling the right-click functionality. Getting rid of it will re-enable the default behavior.
 
I have to variables var coupon_discounted in the if/else blocks. What do I get a warning about a duplicate declaration? Isn't the var prefix making their scope local? Is it IDE-specific?
 
Why would you declare variables with a duplicated name in first place?
 
@StevensHaen Read about "hoisting" - variable definitions (but not initializations) get their scope hoisted to the top of the current function or script
 
@StevensHaen var isn't block-scoped.
you have to wait for ES6 to get that :)
 
@phenomnomnominal Sexy - didnt realize let/const had different semantics, fun stuff
 
1:44 AM
@GrantWatters yep, wouldn't be much point in let otherwise
 
2:09 AM
1 message moved to Trash can
 
Hey, how would you exaggeratedly express food that tastes nothing to sound even worse than "It tastes like cardboard"?
I'm seriously curious about it
 
2:43 AM
0
Q: Looking for an expression that sounds worse than "cardboard" to describe blandness of a food

TemporaryNickNameHow would you exaggeratedly express food that tastes nothing to sound even worse than "It tastes like cardboard"? I want a word that sounds beyond a average man can imagine. "Shit" would have its unique flavour, so I wouldn't put that in the list.

 
m59
3:09 AM
@phenomnomnominal If I understand correctly, WebRTC is only helpful for streaming to other browsers. Will we ever be able to stream to servers, such that this would be possible?

streamFromBrowser.pipe(fs.createWriteStream('my-video.webm'));
 
@m59 as far as I know, a server can be one of the peers in the p2p connection
 
m59
hmmm.
 
Well I don't know if anyone has made anything to do that yet, but it seems impossible for that to be impossible.
Assuming you can figure out the behind-the-scenes stuff of webRTC
hmmm I wonder if this documentationless project actually works... github.com/mlasak/node-webrtc
Nevermind... just looked at the code...
or the lack of
 
m59
yeah :/
 
3:26 AM
I'm kind of disappointed that there still isn't anything for that. I was looking for something like that a year or two ago.
 
m59
Not sure what this is yet - lynckia.com/licode/index.html
 
3:40 AM
go to bed
 
 
2 hours later…
5:16 AM
Hello everyone
 
Hello
 
need help on NodeJS
I wish if anybody can help me out..
 
I'm relatively new, but I can try.
What's up?
 
Are you familiar with socket.io and socket.io-client ?
 
@Pritam ^^
I just used it in a project!
Not an expert though.
 
5:19 AM
Great!
 
What do you need help with?
 
What are the maximum number of sockets can one create using socket.io-client?
 
Hmmm. Not sure.
I have a feeling it only depends on the server's resources.
 
Okay.
 
My project is still under construction. I tested it once by sharing it on reddit. Someone created bots to spam new connections...
It got up to thousands of connections...
Then the server rebooted.
But not sure if it's different from real connections. Not sure how the connection spam worked.
 
5:22 AM
server can handle millions of connection. that's the magic of socket.io.
 
And the website is running on a single-core CPU, 1GB RAM, Ubuntu.
Yeah, I think so.
 
and also of nodeJS
 
Yeah.
Node is awesomesauce.
 
may be that's y your system was crashed..
 
Yep
If you need any reference material with Socket.IO, my website's source may help. It's a smaller project, so kind of easy to read.
 
5:24 AM
sure..
 
I still love that song
I listen to it like once a week
 
The video is pretty terrible though
 
Anyone know MongoDB/Mongoose here?
 
5:44 AM
Wondering what mongoose.connection is.
I see people doing var db = mongoose.connection;
Is it just a reference to the database?
 
that's right
 
I've never used MongoDB without Mongoose and I'm new to it.
So I can access MongoDB functions like dropDatabase through it?
 
Cool. I think Mongoose isn't documented very clearly.
For noobs like me, at least.
 
It's pretty well documented imo
 
5:46 AM
well, yeah you are right
 
There's just a lot to document
And it gets overwhelming
 
True.
 
right
 
jQuery has some seriously awesome documentation.
 
5:51 AM
is something wrong with miaou
 
rip forearms pic
 
Then why can't I see my messages, its like in lockdown
 
Hi Guys,

I am getting an error while my page try to access JSON file from another server. Any idea? The error as follows

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://logements1971.com/ajaxzip2/data//zip-216.json. This can be fixed by moving the resource to the same domain or enabling CORS
 
hm, that's normal
 
6:04 AM
Enable cors
If you don't own the data you're trying to deal, ask the owner to enable cors
Or use jsonp, or scrape it with your server
 
or maybe jsonp
well :P
"scrape it with your server" curl and grep ?
 
Something like that
Bunch of ways to do it
 
what are the other ways?
 
Depends on what you're using on your server
You can dl files without curl in php
 
jsonp sounds good.
 
6:09 AM
@Anand The remote server would need to support jsonp though for that to work.
 
Usually if they have cors and jsonp disabled, they don't want you using their data
 
@Meredith Well as long as you're not breaking their ToS I don't see any issues with it. Some APIs do require a server-side request because they need a token secret as well.
 
Yeah but ethics
 
@Meredith JSON hosted in client's server. I am trying to access it using a different server. If I have to request them to enable CORS/JSONP, How they would do it. Because they have no idea how to do it, guys.
 
What
What are you getting data from?
 
6:15 AM
Let's say I have a jQuery event on a button twice in my script. Older or latest would trigger?
 
Test it
 
@Meredith Thank you
 
@Anand It really depends on their server setup... I would google for 'enabling cors in XXX environment' and see how that goes :|
 
Both will get triggered !
 
@GrantWatters Thanks
 
ASR
6:18 AM
how to add css for text-decoration:none fo the below : <a class="resources_button" href="">Autism - multi-sensory stimulation (snoezelen)</a>
 
a.resources_button { text-decoration: none; } ?
 
ASR
.resources_button a:hover{
text-decoration:none;
}
I HAVE USED THIS ONE BUT NOT WORKING
 
Why do you think it isn't working?
Hint: it might be the descendant selector
 
ASR
yes
 
yeah
 
6:22 AM
oyeah
 
ASR
thanks
working :)
 
What did you end up using?
 
 
hi guys,im trying to decide on a module system,i've got a lot of leaflet plugins(16 and growing) that definitely need shimming,google maps and picker apis(available only as urls) among others(a jquery-lodash-bootstrap-handlebars stack),which one should I choose,do not want to add a new file to shim config whenever i add a plugin
i want to use browserify but a lot of front end modules seem to be badly published needing a large shim config...
 
OUT? three sports in one ?
 
6:35 AM
@vamsiampolu Sounds like you might be better off just using bower
It's not a module system but it'll manage your dependencies
 
6:47 AM
yeah,but the problem is that i have to think of where to place the script when writing a new file
 
@GrantWatters How to use JSONP? Do you have any links which teach that?
 
and I currently manually compile the files using grunt uglify plugin manually to a total of 7 files(these files have to be copied over to another system quite frequently)
 
7:02 AM
@Anand ideally, you don't
 
user4330208
Anyone know how to trigger a js function when a media query is met?
I'm learning lots about CSS, and i know a little javascript. The one thing I can't seem to do now is start a CSS animation when a media-query is detected.
 
Test the appropriate conditions in code? You can't really detect, for example, that the media is a printer ("if the media is a printer, don't animate the marquee" is kinda automatic)
 
user4330208
Well, i'm trying to listen for screen size changing
 
7:06 AM
@carb0nshel1 on("resize"
 
user4330208
like @media( max-width:600px ){ }
 
i used it with semantic-ui sidebar
 
user4330208
on resize!!!! EUREKAAAA
 
Did you seriously say "I've discovered" about something I'd just told you?
 
Really
 
user4330208
7:10 AM
no i mean
 
user4330208
thanks @JanDvorak. EUREKA as in thats it! You solved it!
 
user4330208
good job! You da Manster!
 
user4330208
But now: I put it to the test.
 
Interjection: Wikipedia
  1. eureka
  2. eureka
  3. eureka
 
user4330208
nice definitions.
 
user4330208
7:12 AM
I usually use the 3rd one, when using it tho
 
http://stackoverflow.com/questions/29427658/‌​need-javascript-regular-expression
 
@carb0nshel1 Hi
 
user4330208
Don't drag me into this troll!
 
user4330208
I refuse!
 
user4330208
*runs away screaming naked
 
7:14 AM
How can screams be naked?
 
user4330208
no seriously @EnglishMaster. Whats up?
 
Or are you screaming "Naked!"?
 
@Anand I dont - but I'm sure google has some great resources :) The basic idea is that you specify a JS callback function to the server which will be invoked when the data is available. You load the data into a script tag which will then execute. Here's a gist taken from a project... I'm sure there are better libs and that jquery handles jsonp just fine. gist.github.com/cowsrule/c4bc5c8a35f497ed5677
 
user4330208
@Cerbrus, all of the above
 
@carb0nshel1 NOTHING
 
user4330208
7:19 AM
Great man. Learned alot about CSS media queries today.
 
user4330208
One less step before world domination.
 
user4330208
It seems javascript RESIZE is the best solution to respond to the window dimensions with functions though. Was hoping it was more CSS-Y
 
Right, that's cool
 
user4330208
-Also, no joke in daily update some guy is asking why there is a stack overflow ad that has pictures of penis's in it. Don't take my word for it.
 
user4330208
-1
Q: Anyone else annoyed by this advertisement?

David WallaceThere's one advertisement that frequently appears in the right margin of Stack Overflow pages, that I find annoying and distracting. Does anyone else feel the same way? The advertisement in question is for a Microsoft Developer Camp. It has a man with his arms folded. To the left of the man, ...

 
7:24 AM
1
Q: Looking for an expression that sounds worse than "cardboard" to describe blandness of a food

TemporaryNickNameHow would you exaggeratedly express food that tastes nothing to sound even worse than "It tastes like cardboard"? I want a word that sounds beyond a average man can imagine. "Shit" would have its unique flavour, so I wouldn't put that in the list.

 
Never seen it. Adblock ftw. — Cerbrus 6 secs ago
 
@Cerbrus Why adblock SE? >:-(
 
user4330208
I think that dude is trolling. Why no picture>?
 
Maybe he didn't want to annoy us?
 
user4330208
If i saw piture of blue erect penis on SO ads first thing im doing is instagraming that thing
 
user4330208
7:27 AM
no homo
 
1:30 minutes until leaving work
 
user4330208
@EnglishMaster This is the most productive time!
 
@JanDvorak: I adblock everywhere
 
user4330208
adblock is good, but what about those Javascript popups?
 
Adblock catches those
 
user4330208
7:29 AM
...
 
I haven't seen a popup in months
 
user4330208
is it for chrome only?
 
Ok, there are two possible girls that I can flirt on at my work, 1) looks not bad, small breasts, short and must be tight in general 2) uglier than 1, big hip, bigger breasts and speaks English
Which one would you go for?
 
some ads on SE are actually interesting
 
No, there's a firefox one too
Most aren't, though, @JanDvorak
 
user4330208
7:30 AM
@EnglishMaster The one without a blue erect penis.
 
@Cerbrus no need to throw away the pearls with the sand
 
@EnglishMaster seriously
 
I'm serious
 
"Jobs near me" in amsterdam...
"Near me"
yearight
 
user4330208
rotfl
 
7:33 AM
lol
 
user4330208
no jobs near amsterdam?
 
can i use glob patterns in browserify-shim?
 
!!s/no /blow/
 
@darkyen00 blowjobs near amsterdam? (source)
 
user4330208
why the sexual innunedno? @CapricaSix
 
7:34 AM
 
user4330208
Consider this a warning.
 
user4330208
One more time and I'll have my boy @phenomnomnominal kick you.
 
user4330208
i think phenom actually kicked me....
 
user4330208
Nah. Can't be.
 
user4330208
Good night people. Here's to another day, sleep is well earned. good job :)
 
7:44 AM
Seriously, you guys should just leave.
 
That's not a penis. That's a stylised hand. — Jan Dvorak 9 secs ago
 
lol
 
@JanDvorak what? now I have to keep an eye out for that ad
haha
 
how is the first thing he is seeing there a erect penis? I probably wouldn't have thougt of it this way, and my mind is all kinds of screwed up sometimes
 
7:50 AM
@Retsam unless the electronic devices are holding coffee with their penises, that is. — Jan Dvorak 34 secs ago
had to
 
hahaha, that's even better
> Scott Guthrie reveals new technology to build business apps, fast. And yes, it involves balancing coffee cups on your erect private parts. #sexist #ad
 
I do admit the heart is suggestive, though — Jan Dvorak 10 secs ago
 
Guys, give me names of system that is used to centralise login data and stuff. I mean centralising login.
I knew one but I forgot
 
@EnglishMaster do you mean oAuth or OpenID (not actually systems but "standards")?
 
@tukka 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.
 
8:01 AM
Yeah thx
It was OpenID
 
great!
 
@JanDvorak no, I registered for an offline month
so should you !
it starts in 12 hours :D
 
Do I look handsome?
I just want to hear general opinion from the crowd
 
Natalie Dormer looks handsome
 
Are you fat?
 
user4330208
8:11 AM
@EnglishMaster you are asking a room you know is 100% full of guys
 
If not then you're fine
 
user4330208
Wait..Meredith.
 
user4330208
u a gurl?
 
Yes
Meredith is a girl name
 
user4330208
A/S/L
 
8:11 AM
Seriously
 
user4330208
jk lol
 
Alright.
 
user4330208
Anyway, so we have had onresize for years and no one has been making responsive websites until now?
 
@Meredith u girl?
 
Scroll up
 
user4330208
8:12 AM
english are u trying to be a mini me
 
user4330208
i hate how similar you come off to me.
 
user4330208
And its like I'm ( seen as a troll ) too which makes it even worse.
 
how to apply the setTimeout in the emitEvent gist.github.com/argentum47/7e02c41a355245e0be15 I am trying to improve my coding skills
 
First, I'm not a troll to begin with, and I'm at work so I cannot talk a lot so let's get to the point straight away. You are pretty gay.
 
So gay
 
user4330208
8:15 AM
See what i mean. I would say that!
 
Seriously, can we not ban people for being completely toxic to the chat rooms environment?
 
@carb0nshel1 That's not good
 
@Retsam you can ignore people
 
user4330208
w/e, I guess that's just how you are english. Its cool.
 
not sure if Caprica is still capable of banning people
 
8:16 AM
@GNi33 True; but it still does damage to the room having people that everyone has to ignore, or else put up with the bs
 
but to be fair, it didn't work out that well anyways
 
!!summon Caprica.pipe(!!toss and ban)
 
@argentum47 Registered; need 1 more to execute
 
what did I do
 
I have no idea
 
8:18 AM
:D
 
47 minutes to go\
30 mins
 
to what?
 
That doesn't sound right
 
8:33 AM
Hey, my picture's changed from a Ugandan handsome man to a adorable Quokka
 
Quokkas are the best
 
USA FTW
 
gif from EnglishMaster was moved
 
Greatest damn country in the world
 
9:38 AM
mornings
 
hi
 
ASR
9:59 AM
var x=$(this).attr('id'); for this is it correct $("'#a'+x").slideToggle(); ?
var x=$(this).attr('id'); for this is it correct $("'#a'+x").slideToggle(); ?
 
I don't know what you're asking
But adding a number to the end of an id isn't a good idea
Use classes instead
 
string concatenation is costly :P
 
It's also messy as fuck
 
1 message moved from Java
 
ASR
I am generating id dynamically like 101,102,...etc, suppose the value 101 is stored in x, there is another div with the id #a101, I have stored 101 already in x, now I have to call slideToggle() for the div id #a101.
 
10:04 AM
Don't do that
 
use event delegation ... the .on("event", "element", cb) stuff
 
Why are you generating IDs?
 
ASR
there is no option for me , because i am using velocity.
I am giving provision to add the content the user want, for example the user want to add more events he can do.
 
It generates ids for you?
 
ASR
no by using velocity I am generating
see this is my code :
 
10:10 AM
Don't generate ids
 
ASR
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
    alert('jquery loaded');

    //alert(#$(this).attr('id'));
    $(".plus").click(function(){

        alert("plus clicked");

        alert($(this).attr('id'));

        var x=$(this).attr('id');
       alert('value of x '+x);
       $("'#a'+x").slideToggle();
    });
});
</script>

#set($menucount = 1)
#set($a=101)
#if (!$event_image.getSiblings().isEmpty())
	#foreach ($cur_event_image in $event_image.getSiblings())
 
uggghh I wish people would stop loading libraries from google
 
Yeah use bower dude
 
ASR
its my local system.
 
Also this is a lie alert('jquery loaded');
 
10:12 AM
So
 
jquery has been loaded before that
 
And don't debug using alert
 
Also use .on() to attach events instead
 
And use classes instead of ids
 
Tx3
I created new Node + Gulp + Browserify question that has easy to reproduce error. Any ideas ladies & gentlemen? stackoverflow.com/questions/29429639/…
 
ASR
10:13 AM
showing this Uncaught Error: Syntax error, unrecognized expression: '#a'+x
for the line
$("'#a'+x").slideToggle();
 
You should read a book on javascript
 
ASR
yea sure, but I should finish it now.
 
ASR
thank you.
 
ASR
10:37 AM
solved my problem
 
Good job
 
ASR
10:54 AM
   $('#a'+$(this).attr('id')).slideToggle();
thank you
 
oh boy
 
Your solution is wrong
 
@ASR $(this).attr('id') is an abomination
 
I've told you to use classes like 6 times
 
linking two dom elements by name is almost certainly a bad idea
when they are created, you should be saving that information for later
 

« first day (1630 days earlier)      last day (3317 days later) »