« first day (1285 days earlier)      last day (3657 days later) » 

7:01 PM
I wonder if vanillajs is a good tag synonym for javascript <.<
 
Joe
anyone have or planning to take any CIW test for certs? half looking for a class to sharpen some skills / wondering if the certs have any value, if anyones had any doors opened with any certiciations
 
No problem with this in the console : (function a(b){ return b ? a(b-1) : "finished" })(1500);dystroy 23 secs ago
should probably be closed
 
Joe
curious b.c i know there are quite a few with sketchy reputations and more or less deemed "useless" or unnecessary
 
@Joe Certs are useless for programmers
 
Joe
@SomeKittensUx2666 none of my business probably so please answer at your discretion, do you have your masters?
 
7:06 PM
nope
 
Joe
im just sitting on a bachelors myself and its in an adjacent field... finding myself a developer for the past 4 years looking to invest in it
just curious to see what everyone else does / is doing
 
Do something that publicly shows your ability to Get Things Done
 
@ChrisSchmitz 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.
 
I'm a master baster
I cook a mean chicken ;)
 
Joe
@RUJordan mmm bbq
 
7:16 PM
14 min until lunch
!!nudge 14 eat!
 
@SomeKittensUx2666 Nudge #1 registered.
@CJD 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.
 
Opinions on the viability of a 13 inch display for development?
 
depends on the resolution
and how good your eyes are :P
 
Joe
@RyanKinal i like a rig for the road and taking notes but if im stationary bigger is better for me.. more monitors the merrier as well
 
had a cute-ass latte today, imgur.com/6cZYKuv
 
7:24 PM
It very much depends. I can't stand smaller screens, my laptop is a 15.6 and it sometime annoys me. But some people, especially students or people who travel a lot, like the 13.3 or 11.
 
cute ass-latte*
 
I have a 17 currently. I think I'd be okay with a 15. But a lot of the machines I'm liking are 13 or 14.
 
@RyanKinal Done it, totally possible.
 
On a daily basis?
 
these idiots at work gave me a thinkpad with a crappy 14" 1366x768 display
and a 1400x900 secondary display -_-
 
7:28 PM
Hey guys! I get this error for the following line. Am I not just looking hard enough or have I done something wrong?

var r = new Array(), j = -1, post = JSON.parse(response);
 
slowly dying of lack of pixels over here
 
Ouch
Yeah, I'm looking at higher resolutions than that
 
Joe
@RyanKinal more often then not i test pilot at bestbuy before i spend 600 bucks or more... i wouldnt risk ordering one of the smaller machines without testing how cramped the keyboard is
 
@MagnusBurton that's not an error. it's a line of code.
 
@RyanKinal semi. Dev was split between netbook and PC.
 
7:29 PM
Gotcha
This would be an every weekday kind of machine
 
@nderscore Oh yes sorry. Forgot the error. Here it is: Unexpected token <
 
But I do have a decent extra monitor
 
@RyanKinal I used it in class, or when working from friend's room
 
Right
 
@SomeKittensUx2666 nudge eat!
 
7:30 PM
Ugh. It seems like every decent machine I come across has a 5400 rpm hdd
 
@MagnusBurton there's no < on that line. The error must be coming from somewhere else.
 
Actually, my Pixel's screen is 12.85"
 
Hi
 
but that's a 3:2 ratio
 
Right
 
Tom
7:42 PM
How should I go about breaking a line every n-th element on ngRepeat in AngularJS?
 
Vanilla is better.
 
Tom
I've tried making a filter which kind of works, but throws obscene amount of errors in console.
 
@Tom With CSS?
 
Tom
Obscene is probably not the word I was looking for.
With Javascript, AngularJS specifically.
I have something like
`<div ng-repeat='photo in photos'>
` <div class='photo'>...
I want to do something every n-th loop
 
What is "something"?
 
Tom
7:46 PM
I wrap every 3 elements in one div which creates a line
every 4th element I need a new wrapper
if that makes sense
 
Sounds like you are using too many wrappers.
 
Tom
At the moment I'm using this filter: pastebin.com/fQK0bWw0 and as mentioned earlier, it's working fine. However this is what I'm getting in console: i.imgur.com/lRlhMOh.png.
@RyanKinal I'll try that. Thank you.
 
A better version: jsfiddle.net/38dmC/1
 
Tom
@bjb568 I don't really understand the way it works though. Could you elaborate on it more?
 
7:53 PM
@Tom Inline elements are like text, the flow freely. Inline-block elements are like text, they flow freely. But they also can have widths, heights, and margins. They are like block elements with float:left, except they never need to be cleared.
Give them a width, so they will fill up the available space.
Since they have 5px margin, you need calc() to subtract the margins from widths.
A responsive version: jsfiddle.net/9C5zp
 
Tom
Thank you @bjb568 and @RyanKinal.
 
“You must be shapeless, formless, like water. When you pour water in a cup, it becomes the cup. When you pour water in a bottle, it becomes the bottle. When you pour water in a teapot, it becomes the teapot. Water can drip and it can crash. Become like water my friend.” - *Bruce Lee*

That's what your inline elements are like, water !
 
Tom
@adeneo always reminds me this: zenhabits.net/…
 
user1596138
8:15 PM
Busy day....
 
@Athos 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.
 
Hi all
 
@qwerty hi
 
How be u?
 
Mebe goodly
 
8:31 PM
does anyone know where I can find grunt requirejs config with external files ?
I've been struggling with this for a while
in dev it works well
but after build it doesn't work
 
Vanilla is better.
 
harder to optimize and uglify
more things to remeber
 
@bjb568 no it's not, not with what he's talking about. Learn what's going on instead of being a parrot.
 
If you need to uglify, you have too much code.
@SomeKittens SQWAAAAAAWK!
Polly want vanilla! Polly want vanilla!
 
thanks @SomeKittensUx2666 :p
 
8:34 PM
@PedroEsperança Doesn't grunt have the ability to load external JSON?
I know we did something like that with our s3
 
I think it does, and all the sources I found talk about how it's possible and easy
but none actually load external sources
 
One sec - lemme look up exactly what we did
 
aws: grunt.file.readJSON('grunt-aws.json'),
 s3: {
   options: {
     key: '<%= aws.key %>',
^ how's that look?
 
I actually didn't know how to do that so I learned something
 
8:36 PM
@SomeKittens Ugly. But probably really nice in the non-vanilla world.
 
but that's not exactly what I need
my prob is in the client side
at least the error is
let me show
requirejs: {
paths: {

jquery: 'EXTERNAL LINK',
doy ou use requirejs ?
 
world navigation added to my game!
much like minecraft's spectator mode:you can't interact with the world, there is no gui showing, and no form of rapresentation of you
so I guess I'm better than them: it took them 7 years to do it
:P
 
What game? Link?
 
rapresentation: When someone with clothes 3x's their size and far too much jewelry attempts to act in your interest.
 
8:40 PM
still need to add world navigation online, I'm working on local machine
 
@PedroEsperança I don't.
 
@PedroEsperança I do: I could help
 
thanks anyway ;)
 
now that you knowexactly what to say, do it concisely
and I'll try to answer
ok: now to character logics
 
8:54 PM
@Typo 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.
 
How can I find all form elements to do a submit with?

 <script>
$("#form").submit(function(e) {
    console.log('Submit Clicked');
	e.preventDefault();
	var postData = $('#form').serialize();
    request = $.ajax({
        url: "functions.php?do=adminmenu",
        type: "POST",
        data: postData
    })
    .done(function(response, textStatus, jqXHR) {
        // do something
		console.log('Submit Done');
    }//return what was found into <div>
	,function (data) {
                $( ".contentarea2" ).html( data );
 
$('form')
 
This returns empty array
 
Learn you a CSS selector.
 
So, not with javascript?
 
8:57 PM
@Alan You're missing the point of jQuery.
 
How so?
 
the string inside that $() has all the power of a CSS selector
that's why jQuery was designed
So I can do $('td > div.heading img.profilePic')
 
Sorry, I may be asking dumb questions, very new to JS and Jquery
 
@bjb568 Please stop posting useless messages.
 
CENSORSHIP!
 
8:59 PM
@Alan Do you know how CSS selectors work?
!!define censorship
 
@SomeKittensUx2666 [censorship](http://en.wiktionary.org/wiki?curid=undefined) The use of state or group power to control freedom of expression or press, such as passing laws to prevent media from being published or propagated.
1899, Arthur Christopher Benson, The life of Edward White Benson, sometime Archbishop of Canterbury: Volume 1
such a curious thing — it is the only thing left of the old censorship of the press."

I think that censorship is an admission that you have lost an argument
 
@SomeKittens Do I have to agree with everything you say to be allowed here.
 
Not really, I have gone through the JQuery site and tried to use what I read
 
I also tried something like this, but also got an empty array:
var $inputs = $form.find("input, select, button, textarea");
    var postData = $form.serialize();
 
9:02 PM
document.querySelectorAll('#form input, #form select, #form button, #form textarea')
 
Thanks, I will google that to see where I should put it
 
@Alan I recommend you click on bjb568's name and select "Ignore this user (everywhere)"
4
 
:)
 
@Jhawins we shall dominate the world.
lol
 
@SomeKittensUx2666 best advice I've heard all day
 
9:05 PM
Same.
 
snapick.me <- what do u guys see ?
 
<html><!-- LOCALIZERS: If in a right-to-left locale, add dir="rtl" to the HTML element. --><head>
    <link rel="stylesheet" type="text/css" href="page-load-errors.css">
    <!-- LOCALIZERS: You might want to change the font family. You can also add styles to override sizes, etc. -->
    <style>
        BODY {font-family:'Helvetica Neue';}
    </style>

    <!-- LOCALIZERS: The next line contains the page title that appears in the window's title bar -->
    <title>Failed to open page</title>
</head>
 
@AbhishekHingnikar webpage not available
 
I thought I should have .serialized it, but getting error.
	var postData = document.querySelectorAll('#form input, #form select, #form button, #form textarea').serialize();
    request = $.ajax({
        url: "functions.php?do=adminmenu",
        type: "POST",
        data: postData
 
9:07 PM
@RUJordan gosh :[
 
Error code: DNS_PROBE_FINISHED_NXDOMAIN
 
@Alan Don't paste code without knowing what it does.
 
pffct
i forgot to save the zone file :$
 
@Alan You just stuck my code into a random place? :)
 
Also, learn to check your console, that's an error
 
9:07 PM
am i an idiot ?
 
!!s/code/junk/
 
@RUJordan @Alan You just stuck my junk into a random place? :) (source)
 
sorry had to.. it was the perfect setup..
@KendallFrey would be proud
 
Sorry, just trying to do something "myself" and not outsourcing it. Trial and error
 
9:10 PM
Tutorials are helpful. Use them.
 
"We need again a super smart front end engineer immediately." via @rkoutnik
Woo, I was featured!
 
The first one (no www)
 
@echew 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.
 
9:15 PM
lol recruiterbro geeks me
 
anything wrong with the hosts file ?
 
@AbhishekHingnikar the first one
> Hello World! // Stuff!!!
Current user group is: www-data
 
wow @Jhawins somewhere deep inside we got confused
same ip three different outputs :> [in the wrong order]
 
9:35 PM
Finally done with work
 
is it possible to retrieve the elemnt that was clicked? Lets say i have 5 divs with the same class myClass. How would i make a click function that would only fire for this element??
 
@EliteGamer just use this
 
Would that not return all the elements with that class?
 
this would refer to the element clicked on
 
oh, alright. Would $(this) be the same?
 
9:48 PM
No, this is a DOM element, $(this) is a jQuery object
You can use both, but they're not the same
 
Ok, i have a div, inside the div i have a button. This jQuery plugin will allow me to print the div, so my code looks something like this:
$(".printable").click(function(){
        $(this).PrintArea();
});
But this would refer to the button correct? Or the entire .printable object?
 
The entire printable element
 
Ok, well that works how i want it to
 
Word up
!!tell rlemon youtube avenged sevenfold walk
 
9:52 PM
I am guessing the bot selects the first video that meets the search terms?
 
I'd have to check the source code but I would assume so
So it's not very handy if you don't know the exact keywords
 
yep
 
I was always perplexed by A7X
their first album was so good, then they progressively got more and more pop
radio album after radio album :(
 
Yeah they lost their unique factor after the Rev died
City of Evil was a masterpiece
 
waking the fallen was the best for me
 
9:58 PM
@JayLane 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.
 
Is that the one with Unholy Confessions and Second Heartbeat?
 
yeah
 
Yeah that was a good one
 
one of the few albums I can say doesn't have a single sub-par song
 
I would say my favorite band is Bullet for My Valentine
They're not as heavy now, but only slightly. There isn't a single song on any album that I don't like from them
 
10:01 PM
I'm addicted :( flappy2048.com (mostly to pushing enter too early)
 
the only song of theirs I really know is scream aim fire
 
Like not one song. Every album. No other artist is like that for me
 
because I used to enjoy playing it
I'll give them a go
 
@Mosho here's the best song from each of their albums (in order): Hand of Blood, Tears Don't Fall, Waking the Demon, and I'm torn between Not Invincible / Dirty Little Secret for the newest album
 
oh, I used to play waking the demon too
oh, and tears don't fall
lol
 
10:05 PM
Honorary mentions: All These Things I Hate Revolve Around Me, P.O.W., No Control, and Just Another Star
 
alright, will listen at the gym today
 
one of my favorites of theirs: youtube.com/watch?v=C-CG5w4YwOI
 
> Tappin the phones like yeah. Shreddin the docs like yeah!
LOL
 
lol, love him
 
0
Q: Is there a way to attach the result of a promise to a factory?

mossI have a set of data that is used throughout an angularJS app. I have a service which retrieves this data from a php script using $http. Rather than call this service in each controller I would like to have the data-set stored in a factory. How might I do this? Here is what I have right now: '...

 
10:13 PM
here it is with the latest features :) enjoy copot.eu/matei/games/dastul/game
reccomend seed 3301
to move use arrow keys
if for some reason the screen has no blocks it means you've reached world limit, just go in the opposite direction
 
libressl.org <- trololol comic sans !
 
BLINK TAAAAAGS
 
bliiiink!
 
> This page scientifically designed to annoy web hipsters. Donate now to stop the Comic Sans and Blink Tags
epic !
just epic
freshbsd.org/search?project=openbsd&q=file.name:libssl gosh.. holy code read party they having.
 
10:24 PM
 
@Mosho i have never seen a library so old getting commits at that speed
usually the libs i use like liblame, etc are almost never updated
 
10:41 PM
Come to the JavaScript room, we'll make you a pro in no time! — RUJordan 42 secs ago
 
@RUJordan dude doesn't have enough rep
 
Oh shit, I forgot you need 20 rep to get in here
 
@RUJordan well... 4 downvotes won't help for sure...
+1ed
we just need 7 more people to upvote
and I guess it's the only question in SO asking how to create a basic object in js... so it's actually an helpful question
 
Helpful yes, but it's a thousand times a duplicate
 
Reason for upvote: We are here to create the google search results. — bjb568 9 secs ago
I could not find a duplicate.
 
10:53 PM
29
Q: Which way is best for creating an object in javascript? is "var" necessary before variable of object?

JamnaSo far I saw three ways for creating a object in JavaScript, which way is best for creating a object and why? I also saw that in all of these examples the keyword "var" is not used before property, why? is it not necessary to declare "var" before the name of a property as it mentioned that Prope...

9
Q: Javascript creating objects - multiple approaches, any differences?

UmairI have seen a few different ways to instantiate objects in javascript, wanted to know the benefits/drawbacks of the various approaches and why you would use one over the other. Approach 1 var obj = { prop: value, . . . } Approach one is standard approach, nothing new :) Appr...

 
@RUJordan that is asking for difference
@RUJordan that is dumb
 
266
Q: How to "properly" create a custom object in JavaScript?

Michael StumI'm still trying to understand JavaScript, and I wonder about what the best way is to create an object that has properties and methods. I have seen examples where the person used "var self = this" and then uses "self." in all functions to make sure the scope is always correct. Then I have seen ...

They all deal with object creation though
 
@RUJordan not the kind of question someone would look for on the internet
 
!!google javascript create object stackoverflow
 
10:55 PM
Everything on SO deals with coding, but not all questions are duplicate of each other.
 
trust me, there's a lot of "how do I make an object" questions
 
If you can find one, dup vote.
 
@RUJordan well, then just for the sake of cheese let this guy get here
 
Plus it's a great on-topic question from a user who clearly needs help and has found the right place to ask it. And asked it properly.
 
I upvoted to help him get chat access, but he asked properly, included what he tried, so I can't ever hate on that
I remember all too well learning JavaScript and it was crazy confusing to me at first lol
@WesleyBellah come join us!
@copy <3 i see u
 
10:59 PM
You must be a genius then
 
well... he's he's already at 23 rep
 
@copy far from it :) I just try my best
 

« first day (1285 days earlier)      last day (3657 days later) »