« first day (1432 days earlier)      last day (3517 days later) » 

5:02 PM
.when('/myRoute/paramA/:paramA/paramB/:paramB/paramC/:paramC', {
templateUrl: 'abc.html',
controller: 'pwrController as pwrCtrl'
});
I want the paramA paramB paramC to be optional
how to do that ?
 
Ok last one.
 
Any of these can be present
 
@SterlingArcher they should actually do it and power it with cortana
 
I have a minecraft account but I don't think I'll ever care.
 
I cant survive them boxes
 
5:06 PM
does a single JavaScript error on a page break addEventListeners?
 
depends on the error
and you should fix errors, regardless
 
if I can find it..
 
Oh guys! What values should I use in hidden input elements when I need to pass booleans to the server?
 
this is at the bottom of my page and it does not do a darn thing.. argh
document.getElementById("plusImgEvent").addEventListener('click', function(){
alert('HELLO!');
}, false);
 
@Qcom read that back to yourself. There's only 2 booleans ;)
!!afk lunch
 
5:09 PM
true, false and FILE_NOT_FOUND
 
well no good night for now
 
@SterlingArcher But but if I have value='true' or value='false' everything gets stringified when submitted in a form correct?
 
how can I add multiple event listeners in the same line?
 
So if I'm in a js environment on the server I'll have to check if (inputVal === 'true') rather than if (inputVal)
 
@Qcom Empty for false, non-empty for true?
Seems most straightforward
 
5:11 PM
@Jhawins that soon?
 
@SomeKittensUx2666 Jhawins is afk: lunch forrealz this time
 
Or, you know, pass a checkbox
 
@Zirak That's a good idea; is that conventional in any way?
 
can an addEventListener only work in Chrome and Not IE?
 
I thought it'd make most sense to use type='hidden'
 
5:12 PM
wish I had not listened this morning about this new technique.. it has set me back a couple hours.. argh
 
@JoJo IE8- don't have a decent event system
 
ok in IE9
 
@Qcom shrug
 
el.addEventListener([/*something here to register it for different events like click, dblclick etc. togethet */], function);
 
but were gonna need to support 8 too
 
5:13 PM
@Zirak Sounds good enough to me ;)
 
yep, got that: document.getElementById("plusImgEvent").addEventListener("click", addStartTimeRow);
function only contains an alert, alert shows in Chrome but not IE 9
confirmed
I changed back to an onclick event in IE9 and not a problem
 
That makes sense. As said, IE8- sucks.
 
thanks guys for letting me talk it out
its IE9 though
 
@JoJo By "this new technique" you mean "not using inline events, which has been considered bad practice for years now"?
 
@JoJo huh? That's weird
 
5:17 PM
@Zirak ola :-)
 
Not in any compatibility mode?
 
yep, onclick works but not document.getElementById("plusImgEvent").addEventListener("click", addStartTimeRow);
 
bloody hell looks like that's not possible
 
how check Zirak?
F12?
it says IE9 Compat View
 
urm, I remember IE's dev tool saying something about that, there was also the weird icon in the url bar
 
5:19 PM
ThiefMaster ♦
chat user since 2010-10-25
 
changing back ot onclick event shows the function alert.. dunno
 
Ryan Kinal
chat user since 2010-10-25
 
but it cost me 2 hours.. grrr
 
> Hackathon to Develop Cloud-Aware App for Non-Profit
that's remarkably specific.
 
@SomeKittensUx2666 by ?
 
5:20 PM
your all pry putting out code that breaks in IE9 lol
 
@Abhishek THE PLOT THICKENS
 
ah well, real g'night.
 
@SomeGuy ?
This is why i quit facebook -_-, if i knew how to hack gmail would i sit here ?!?
 
Why would someone downvote my Bluebird with Angular question :/
 
I was the turkey all along
 
5:23 PM
The plot thickens
 
It wouldn't thicken so much if you'd stop adding flour!
 
0
Q: Passing multiple parameters in an AngularJS route

charger73I am trying to implement a angular route which should have multiple parameters. Here is an example of what I tried: .when('/myRoute/paramA/:paramA/paramB/:paramB/paramC/:paramC', { templateUrl: 'abc.html', controller: 'pwrController as pwrCtrl' }); Now the problem in this is that I ne...

 
Nobody seems to realize that there is no step-by-step guide to hacking. It's all guesswork.
 
THANKS, HOLLYWOOD
 
5:25 PM
@copy @Zirak SexualLobster refs are awesome
 
@Jhawins You're eating the new girl? That's not a nice "welcome" party
 
@Zirak Jhawins is afk: lunch forrealz this time
 
@SomeKittensUx2666 and bolly wood
 
2
^ and this guy
 
!!youtube wrong number
 
5:25 PM
 
@SomeKittensUx2666 WHAT THE HECK ... just what the heck
 
@SomeKittensUx2666 That looks awesome
He's so leet
 
he could of atleast done 'netstat -a' to get all p2p connected to him
 
@SomeKittensUx2666 OMG SO 1337
 
@CapricaSix Sounds like TomSka
 
5:28 PM
@SomeKittensUx2666 I love how honest his user name is: "NextGenHacker" and he sounds like a 12-year old.
 
"tracer t" lol
 
tracer tt
 
semicolon omg cracking up here
 
!!youtube meanwhile
 
5:29 PM
 
LMFAO
> Not the semicolon, the little dot-dot
> 10 people are currently using Google
this is hilarious
 
@BenjaminGruenbaum hehe, you've introduced us, he's awesome
 
gaaaaah ahahahahaha
not sure if too-well-planned troll or complete imbecile
 
user2620028
Someone with good javascriptfu please help explain to me where i am going wrong jsfiddle.net/hatterismad/qjoofh2h
 
@AaronSiciliano You're using jQuery.
You're welcome.
All question to @Loktar, he's going to be a certified jQuery expert.
 
5:34 PM
@Loktar even has his w3schools jquery certification.
 
I am certified by w3schools in jQuery do i get a cookie ? No
 
That's truly unfortunate, @AbhishekHingnikar what posessed you to pay for that garbage?
 
user2620028
@SecondRikudo in fact i am going through it and removing the jquery. If i receive assistance i might be able to learn standard practices better.
 
@NickDugger i was joking bro
 
@AaronSiciliano I'm currently busy, but if you'll still need it I'll be happy to have a look a bit later :P
 
user2620028
5:37 PM
@SecondRikudo Will keep that in mind. Thank you
 
> the girl says she hacked somebodies facebook once
 
user2620028
@AbhishekHingnikar hacked as in found her password written down on a piece of paper under her keyboard?
 
haha $95 for jQuery "certification"
Social hacking would be easy if you know someone stupid....
and you're willing to call it hacking
 
Its still easy if you just wanna read their messages, and you are skilled enough to make a facebook app
 
5:41 PM
Guys need some recursion assistance
I'm trying to convert a JavaScript object to an eBay API ready URL
 
Oh, I just meant phishing and such.
 
it's baaaaaack!
 
Call someone up and tell them you're the facebook inspector...
 
Given the following example object, I need to get this URL (with linebreaks for readability)
{
    itemFilter: [{
        name: 'MaxPrice',
        value: 25,
        paramName: 'Currency',
        paramValue: 'USD'
    }, {
        name: 'FreeShippingOnly',
        value: true
    }, {
        name: 'ListingType',
        value: ['AuctionWithBIN', 'FixedPrice']
    }],
    paginationInput: {
        entriesPerPage: 2
    }
}
itemFilter(0).name=MaxPrice
&itemFilter(0).value=25
&itemFilter(0).paramName=Currency
&itemFilter(0).paramValue=USD
&itemFilter(1).name=FreeShippingOnly
&itemFilter(1).value=true
&itemFilter(2).name=ListingType
&itemFilter(2).value(0)=AuctionWithBIN
&itemFilter(2).value(1)=FixedPrice
&paginationInput.entriesPerPage=2
 
5:44 PM
lol
 
@SecondRikudo oh comon that florian with mustache looked cute
 
@AbhishekHingnikar And you can look at it forever
In the Sandbox
 
lol
 
5:47 PM
not sorry
 
Right
So anyone for my question above?
I'm trying (and failing miserably)
 
@SecondRikudo what language is that ?
 
@AbhishekHingnikar JavaScript
 
do you mean [] instead of () ?
 
@AbhishekHingnikar I wish.
That second one is a URI query string
I added line breaks to make it readable.
 
5:48 PM
 
@SecondRikudo well that looks do-able
 
@AbhishekHingnikar I failed to do it without a quadruple nested loop.
 
@SecondRikudo you suck
 
If you can show me how it's done with recursion I'd be forever (forever being approximately 30 minutes) grateful.
@AbhishekHingnikar Yes, my recursion skills are rubbish
 
5:50 PM
gimme a minute
this won't go recursive afaik
 
@AbhishekHingnikar Because of the mix between arrays and objects?
 
@SecondRikudo nope clearly your itemFilter is an array
i am thinking of a solution with reduce, but now i think recursive map might be a better solution
 
reduce is a form of recursion, but if you can find it, go ahead
 
@SomeKittensUx2666 Probably
Congrats on your NodeBB server hosting, by the way :P
 
@SomeKittensUx2666 This reminds me of youtube.com/watch?v=BBQ7ukwK56Q
 
5:56 PM
NodeBB? People do actually use that? Interesting
 
@BenjaminGruenbaum @Zirak @Mosho ^
XDDDDDDDDDDDDDDDDDDD
 
@NickDugger Don't know about that. I'm congratulating him because he's going to win it for free
 
I don't need to know hebro to get the joke! lol
 
function mapper(key, value){

    if( Array.isArray( value ) ){
         return deduceFromArray( key, value );
    }

    if( typeof mapper === 'object' ){
          return deduceFromObject(key, value );
    }

    return  '&' + key + '=' + value;
}
something like that
now...
 
I think NodeBB was a nice idea and experiment, but it just seems so tacky.
 
user1596138
5:59 PM
@NickDugger you're tacky
 
@Jhawins well, you're a garden gnome
 
function deduceFromArray(key, value){
        return value.reduce(function(prev, curr, index){    return prev + '&' + key + '(' + index + ').value = ' +  value };
}
 
user1596138
> false
 
> walnuts
 
@NickDugger It does amaze me that forums are like the TI-84's of websites.
 
6:00 PM
@SecondRikudo ugh lemme just implement it for you now. fk
what have u got me into -_-
 
@Retsam I still go to one forum, but I used to be a part of 3-4 at a time.
 
@NickDugger Yeah, there's one set of forums I check fairly religously
But it's just odd that forums themselves pretty much look and function identically to how they looked a decade ago.
 
@PeterGraham Congrats!
 
@Retsam yeah. As we become more ADD as a society, we rely on instant gratification, and forums simply don't offer that.
 
@SomeGuy woo, I guess
 
user2620028
6:05 PM
can anyone point me in the right direction of addeventlistener to htmlcollection
 
@SterlingArcher I wanna see it
 
@rlemon SterlingArcher is afk: lunch
 
you know, for science.
 
I think it's less about societal "ADDness" (though, maybe. I've used the term "tl;dr" society before), but a breakdown of internet communities in favor of large-scale social media?
 
@AaronSiciliano loop through the elements, and apply the event listener to each
 
6:07 PM
I think the point is to use the forum for my game.
 
user2620028
    @nickDugger
        for (var i = 0; i < thumbnails.length; i++)
        {
            thumbnails[i].addEventListener("click",alert(thumbnails[i].src), false);
        }

Like that? Cause thats what i have right now...
 
What game?
 
Ah
@AaronSiciliano I dunno, what's your thumbnails array look like?
is it images?
 
@SomeKittensUx2666 You suck at marketing :p Link to it!
 
user2620028
6:08 PM
yes
 
What's broken about your code?
 
user2620028
Well for one, it all fires onload instead of waiting to be clicked. And then the click does nothing.
 
I think @mikedidthis has the most influential marketing skills. He puts something on his Dribbble and it gets so many views
 
Because you need to put the alert inside of a function... like so:
 
6:09 PM
@SomeGuy ha, I rank low on Dribbble, you should see how the players do it.
 
thumbnails[i].addEventListener("click", function() {
    alert(this.src);
});
@AaronSiciliano
 
@mikedidthis You've driven the most traffic to Space Burn so far :P
I think it was similar for Phone to Chrome gaining interest
 
user2620028
@NickDugger Ok that registered the click events properly.... But just made me even more confused because thats what i tried earlier.... Will go play with it some more.
 
Sure thing, mate
 
@AbhishekHingnikar any luck? :)
 
6:13 PM
@SomeKittensUx2666 My heart bursts with joy
 
My nipples explode with delight.
 
@SecondRikudo distracted
 
@AaronSiciliano I think... this is just a guess, but I think what you tried before was alert(thumbnails[i].src) but when you're adding an event listener in a loop, you need to use this
 
@SomeKittensUx2666 I was expecting angry ticks.
 
!!s/ticks/liciks/
 
6:18 PM
@Cereal @SomeKittensUx2666 I was expecling angry ticks. (source)
 
I am not a smart man
 
@Cereal @SomeKittensUx2666 I was expecting angry liciks. (source)
 
I give up
 
user2620028
@NickDugger thank you nick that got me on the right path. I didn't realize i had to enclose the method i was calling inside of another method for the code to operate properly :/
 
@AaronSiciliano I made the same mistake when I started off. I still don't understand why 100%, but it mostly makes sense, lol
 
6:21 PM
@SecondRikudo sorry i wont be able to finish it ... massive distraction
but here is the trick
make a function that stringfies an Object
and another to serialize an array
recursion
 
Jsonify?
 
There are a handful of songs that just really move me; one of which is "Your Song", by Elton John. Don't even care that he likes peen, he makes some great music.
 
you shouldn't care if anyone likes "peen"
 
Likes peen? That's a new one
 
@AbhishekHingnikar But the thing is that the object's string is dependant on its key one level higher
 
6:24 PM
I'd care if I liked peen.
 
@SecondRikudo pass the key
 
@rlemon I live in Texas, it's mandatory to care about who likes peen. It's a very conservative state, you know.
 
walk( key += 'deeperLevel' );
 
@NickDugger don't promote it
 
6:25 PM
touche'
I think I used that wrong
 
complacency might be the lesser evil, but it doesn't make it good ;)
 
I just don't care about anything.
 
> My new router ssid is : This is SPARTA !
 
@NickDugger I care when they spout their viewpoints
 
Mine is HOME-F207
 
6:27 PM
so whatever don't let people bully you into not sharing your opinion :P
if you like peen whatever, but if you like peen and make it one of your defining characteristics you're dumb.
 
I'm just so tired of people and their silly people ways, that I don't even pay attention to anything anymore that doesn't directly involve me. Gonna fux up the internet with sopa or whatever, what's new? The world we live in makes me sad :'(
 
meh don't focus on the negative then :P
 
THERES SO MUCH OF IT
 
focus on how the world is one of the safest places its ever been in known history.
 
Unless you're a reporter and get caught by isis
 
user2620028
6:30 PM
Would anyone like to critique? Converted my project from Mix of JQ and JS to JS. jsfiddle.net/hatterismad/qjoofh2h
 
@AbhishekHingnikar A different problem is that they key is dependant on the type of nestes structure
For arrays I need key(0)... key(1)... for objects I don't
 
@NickDugger true, however now you dont have to worry about dying from childbirth, the common cold, or being called a witch in most places of the world :P
 
to be fair, I am a witch
 
!!s/w/b/
 
@SecondRikudo to be fair, I am a bitch (source)
 
6:31 PM
Had to be done.
 
user2620028
nvm. Outclassed.
 
@AaronSiciliano are heading, second, link, last, etc valid html attributes? I'm thinking no.
 
user2620028
No they are not Nick, They are custom attributes i am going to use later for something. Thoughts?
 
@AaronSiciliano I was about to point out the same thing. They should be prefixed with data-
 
data-heading, data-second etc
data-* attributes are compliant
 
user2620028
6:33 PM
I had looked into that and attempted the data binding attributes and failed...
 
user2620028
They act no differently? still accessed the same way?
 
did you try elem.dataset.somethingHere? Because that doesn't work for me either, lol. I always have to do setAttribute
 
user2620028
Yeah i think so
 
user2620028
But problem is i want to set the attribute by text in the html
 
user2620028
Not by JS
 
6:35 PM
then do it with data-* because what you have now is not valid.
 
user2620028
ok
 
user2620028
wow retsam.... i must of had a messed up article i read on it because it wasn't that easy... and it didn't work hahaha
 
@AaronSiciliano Yeah, no, the "data-" prefix is just a naming convention, mostly. They're no less usable than any other attributes, and are more usable in other ways.
 
user2620028
Cool. I will use that. No other issues you guys see? I noticed a logic error i made in it but that i can fix on my own
 
6:39 PM
I'm seeing logic for thumbnails, but I don't actually see thumbnails.
 
user2620028
And by that i mean, no other fundamental JS issues, the likes of which lemon yells at me for every time he sees my code....
 
user2620028
:) yeah i had a slider i made before with thumbnails, i modified it to include on a website im helping a friend with and this is the end result. I set their opacity to 0 and overlayed them on the main image to make buttons essentially
 
Well, having an image element without a src is odd. Why not just generate an image via js? var img = document.createElement("img"); img.src= "something";
 
user2620028
I have no good reason other than this was easy.... And possibly because it would affect css positioning of other objects right?
 
Ah. The collectionToArray bit looks a bit odd, what's the purpose of that? Converting an array-like into a real array?
 
user2620028
6:42 PM
converting a htmlcollection to a javascript array
 
user2620028
Now that i think about it.... I had a good reason for doing that... And then through iterations of modifications i think that reason has completely gone away....
 
Seems like you might not need to convert it to an array. I don't see you slicing, splicing, etc
 
@AaronSiciliano Yeah, personally I'd give it a name that indicates it's an array-like, (or a htmlCollection) and just keep it as a htmlCollection.
 
user1596138
@SomeKittensUx2666 nah nothing yet
 
call is useful when converting array-like objects to arrays
 
user1596138
6:44 PM
Was just saying
 
user2620028
Yeah i don't need it as an array anymore lol. Didn't notice that was useless anymore
 
user2620028
I will keep it untill i am done with the project and deem it useless till at the end of the project :P
 
@SterlingArcher You mean for actually converting, or just for using Array.prototype functions with an array-like directly?
 
Both, actually
 
How do you use it to convert?
 
6:45 PM
I think [].slice.call(htmlCollection, function() {}); would convert it
 
user2620028
Actually i do need it! i am using array methods in one spot to be lazy
 
Something like that lemme check
 
40 mins ago, by rlemon
@SterlingArcher I wanna see it
 
[].slice.call(htmlCollection); is it
 
your rage quit letter
 
6:46 PM
@rlemon there was no ragequit speech :( it was a lie. A BOLD FACED LIE
 
NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.map = HTMLCollection.prototype.map = Array.prototype.map;
NodeList.prototype.filter = HTMLCollection.prototype.filter = Array.prototype.filter;
NodeList.prototype.reduce = HTMLCollection.prototype.reduce = Array.prototype.reduce;
NodeList.prototype.every = HTMLCollection.prototype.every = Array.prototype.every;
NodeList.prototype.some = HTMLCollection.prototype.some = Array.prototype.some;
 
@AaronSiciliano I'd just use Sterling's trick (or rlemon's), rather than write your own code to convert
 
I would rather write my own code than use this ugly trick over and over
 
I'd rather Jordan's trick over mucking about with adding to the prototypes
it's probably safe here, but I never like doing it
 
user2620028
I have never used prototype ever so... gonna stay away from confusing myself further.
 
6:49 PM
@AaronSiciliano prototype methods rock, definitely learn them asap
 
it's just putting the array methods on the HTMLCollection and NodeList prototypes
but if the browser decides to ever implement those itself on the same objects, you are fucking with native stuff
which probably isn't good
 
@AaronSiciliano If you don't understand [].slice.call(arrayLike, args), that's worth looking into.
 
not to mention they are attached to every object of those instance, so they add a slight bit of overhead
 
user2620028
brb
 
@rlemon HTMLCollection != NodeList?
 
6:51 PM
nope
they are very alike but different
 
Yeah, just put a normal function into the util module of your project
 
@rlemon Aren't they only attached to the prototype, not to every object?
 
15
Q: Difference between HTMLCollection, NodeLists, and arrays of objects

user1032531I've always been confused between HTMLCollections, objects, and arrays when it comes to DOM. For instance... What is the difference between document.getElementsByTagName("td") and $("td")? $("#myTable") and $("td") are objects (jQuery objects). Why is console.log also showing the array of DOM...

 
@Retsam passed with the prototype chain iirc
 
dat girl is awesome !
 
6:53 PM
My cousin just sent me a picture I took of him back our freshman year of college passed out with his head in the mini fridge xD
 
@rlemon Isn't it when you call "something.foo" it looks if "something" has a property "foo", then looks if it's prototype has a property "foo", etc.
 
@AbhishekHingnikar gave up. Went with this monstrosity: jsfiddle.net/brd4hkLh/1
If you ever have a chance to make a cleaner looking solution, please let me know
 
looks fine
@RyanKinal @Loktar
 
@AbhishekHingnikar RyanKinal is afk: lunch
 
i laughed so so so hard when i read that.
 
6:58 PM
lol
yeah I'm not overly concerned with ISIS in the homeland
 

« first day (1432 days earlier)      last day (3517 days later) »