« first day (1895 days earlier)      last day (3277 days later) » 

00:52
@rlemon Hammered it!
Does anyone know if sly.js can be a substitute for ajax or if its more of just a simple slider.
@confusedgrasshopper 'substitute for ajax' no
ajax is a technique, facilitated by XMLHttpRequest API
the lib you speak of may utilize it, but it doesn't replace it.
there are however wrappers around said api
01:12
okaaay, I'm just using sly.js to horizontally scroll between my pages, but if i put dynamic content in my pages will it still work.
no clue
that is a very broad question
It's not broad at all.
> if i put dynamic content in my pages will it still work.
you don't at all tell us how you plan on implement dynamic content, nor how sly.js would facilitate that
so yes, it is broad
like stuff from my database
still not helpful
01:29
damn @rlemon that is a beat up box
I'm still waiting on a package that was supposed to be here on Saturday.... really frustrating
ohhh
yea
haha was going to say it's still on the page even
fucking ups
01:30
yeah, that is nuts man
nothing damaged I hope
was a kindle
it seems okay
for my mom
you need a skinning knife bro?
I made one, have no need for it
01:43
If I wanted to use sql stuff on each page would sly.js work to navigate through them
retro lan party time
new Christmas tradition
nice
5 win 98 machines all setup and ready :p
got the gf a new ps4 for her bd (dec 9) and a wii u + dk + mario kart for xmas
damn nice man
01:58
I hope she wants the wii u
she never mentioned it
but said she wanted a "racing game" and she liked the wii
!!s/wii u/d/
@ndugger I hope she wants the d (source)
woah there cap, that's not appropriate
abr
abr
gyazo.com/45077e56d13d052b86a45263d87183a7 would someone care to elaborate to a newbie like me what that error is?
02:11
@abr 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.
abr
abr
I did ask a question alongside a link tho @CapricaSix
@abr She's a bot; I think you mean JSON.stringify -- there is no JSON.encode in javascript
abr
abr
I'm importing the "com.adobe.serialization.json.JSON;" library tho
is this java or javascript?
I have no idea what that package is, and from the name of it, it sounds like a java package, but your code looks like javascript... what is this?
abr
abr
as3, there isn't a channel for it and I believe quite similar to javascript so I came here
02:15
as3? Yeah, not many of us do action script.
probably not gonna get much help here
abr
abr
my apologies
but could you elaborate on the json stringify tho?
extra knowledge won't hurt
well, in javascript, the method name to encode an object into JSON is JSON.stringify, not encode; I simply figured you were trying to use a method that didn't exist. However, you're importing a package that has an encode method, so I have no idea.
Have you looked up that package and seen if it even has an encode method?
huh, strange that flash would throw an error, then
abr
abr
would stringify do the same objective that I plan to do with encode?
wraping a few objects to it, it is
02:19
don't worry about stringify; you're not using javascript
I'm not gonna be able to help on this one
sorry
abr
abr
it's alright, do you know any channel that might help tho? I'm kinda lost searching for the right area to ask
Nope, flash is dead. Finding people in chat to help you is gonna be hard.
abr
abr
thanks anyway :]
02:31
i still not found answer
for it
is question can't understand or?
Read the comments; someone told you what you need to do
yeah...they told this is duplicate
but not
this is not a duplicate i think
it is
02:35
to the maths guys if you're interested (or just willing to help me figure out a curiosity): math.stackexchange.com/questions/1587381/…
try actually reading the comments and reading the linked question.
yeah i saw..i think they didn't understand my question. i want to return multiple..i already told my english is no good...they didn't understand it..
not its closed
can't find my answer
0
Q: Split and map array from comma separated string list in angularjs

feniixxI want to merge two lists that are comma separated, CENTURY, BADGER & 65, 85 to form an array like: [{name: 'CENTURY', price: '65'}, {name: 'BADGER', price: 85}], the lists are in an json object: { unit: '35 lb', brands: 'CENTURY, BADGER' prices: '65, 85' } So what I've done is a f...

If your english is bad, how do you expect us to help you? We can't read minds.
Like I said, you already have an answer; complaining about it is just going to make people mad
 
1 hour later…
03:45
@abr AS3 is not exactly JS - I think it arrived a bit earlier than we have HTML5 (including JSON.*). If you google "as3 json encode" you should find the code you need.
Kinda curious. How secure is a payload method like this? pastebin.com/DzGhfYUL
@SterlingArcher need a lil help, ping me on hangouts if you can.
@Abhishrek SterlingArcher is afk: shuttering
@Hybridwebdev It is secure if the domain is not dynamic and you control the domain.
@Sheepy yup, it will be a static call to a domain I control.
04:00
I am just not sure it can guarentee load order.
@Sheepy Actually, after extensive testing, the payload chains quite reliable :)
Why not just stuff them at the end of body?
Sure.
@Sheepy, its part of an embed code we provide to sites. Think of the facebook fanbox embed code. Same concept.
Ah, I see.
Just wanted to be 100% sure it wasnt prone to hijacking or anything like that
04:04
Nope. Things it can't defend against is usually beyond your control. If you worry about hijacking you should make it https, though.
 
1 hour later…
user3047181
05:18
tell me if something like this can be improved owenmcnaughton.github.io/QzQ-Emotional-Timeline
05:44
Instruction can be improved. I put a book name and it seems to do nothing. I click All twice and they all disappears.
I later realised that I am supposed to put this room's chat log into that small box.
Because the text is gone everytime I can't play with the resolution.
Any clue on how can I check if two resources (image sprite and audio file) are loaded before executing a function?
So, i just spent a whole week trying to get html elements to follow world space in a canvas! Finally got it all working tonight!
@Frondor Listen to their load event - before you loaded them.
06:00
@Sheepy For that, I must create the elements first somehow... Does that emit an onload event?
@Frondor Load event - all events - will be put on hold while javascript is running. You can create an element, listen to its onload, and then wait for the event.
 
1 hour later…
07:12
1 hour later
07:24
Happy holidays, everyone!
How many of you poor souls are working today?
I am working today #notchristian
they should give you a day off anyway I would assume
well, depends on where you are of course
I'm working too
I've just finished for the day
Evening of the 24th here
8 AM in France, so not going to be finished soon
07:36
Je suis désolé?
no, it's OK
!!afk must wake my son
@phenomnomnominal o_o
@phenomnomnominal Is your boss evil or something
Or is it just a cultural thing
@Meredith nah I just had a tonne of shit to get done haha
I'm not taking any time off except the statutory holidays
not a fan of xmas really
07:46
:(
@phenomnomnominal same for me
Christmas is like
my families all split up, and I don't believe in God haha, nothing to be sad about really!
The best day of the year
@Meredith meh
07:47
I still get a long weekend
If you want to give, or to see your family, don't wait for a specific day
I mean, it's not like christmas is the only day of the year that i see my family
My folks told us they were splitting on christmas a few years ago. Kinda killed it haha. So I'm gonna have a chill day, go for a swim, hang out in the sun, play some fallout. It's gonna be dope
Oh yeah, it's summer here too, so it's already weird haha
Where are you, again ?
07:50
That makes me sad :(
New Zealand
@phenomnomnominal what a mood killer
@Neil hahah soz
"We're getting a divorce. Want some more ham, Johnny?"
pretty much
but meh, we're all adults
08:01
nah, if I've learned one thing over the years it's that adults are just big kids that hide emotions better
you never really mature, you simply tell yourself that it isn't as bad as it seems and you bury it deep inside
or you know, talk about it, process it, deal with it?
Nah I definitely feel like I've matured in the last few years
@phenomnomnominal right, well that's the best way to deal with it for sure
I'm well aware of how terrible life it. But also well aware of how little it all matters in the end. I guess that makes it easier?
most people don't realize that though and either act like adult children or think that burying emotions deep is best
@phenomnomnominal Certainly not to me :P
08:03
Oh yeah, that's 100% true. Just a bad trap to fall into
@copy sure thing :)
When I argue with my wife, she sometimes takes it personally, but I'm just talking about things that bother me and trying not to be personal
See there's your mistake, you got married :P
We're all better off alone :D
:(
You'll find someone
she'll act immature when we fight, and I'm just trying to come to some agreement
08:05
@phenomnomnominal life is also pretty awesome.
@Meredith Haha, everyone acts like that's a solution?
@BenjaminGruenbaum oh fuck yeah.
We're ALIVE. We get like 80 years to do cool shit. And that's it. There's a whole bunch of awful, and a whole bunch of great.
@phenomnomnominal Idk I'm just saying that if you've given up hope, don't
It's not a solution, but it exchanges one set of problems for another :P
I never really got the idea of hope? Sounds like sitting around waiting for things to get better to me.
No you aren't supposed to just sit around
08:07
Although I'm enjoying the JS therapy room on xmas eve vibe
Hope is about believing that something is possible
@Meredith Exactly! I don't hope for stuff, I just make it happen
hope is that side effect of living your life for a purpose.. when things go bad, you have to decide things will get better or we stop living
it's when you depend on hope that it gets to be a problem
Sometimes hope is the only thing that keeps you going
Whatever works I guess. I know my patterns, and I know how to get out of spirals.
08:09
what keeps me going is that for all the shit that I go through, many people have it ten times worse and I just need to stop being a baby about it
^ this so much
How many people in the world have college educations? I think that alone puts me in the 1% bracket
There are so many other reasons I should be grateful as well, it is really quite humbling when you think of it that way
For me, it's staying healthy, keeping fit, creating stuff. I'm lucky enough that those are all I have to worry about.
@Neil I don't like to compare myself to others, for better or worse.
@MadaraUchiha why not?
08:12
Idk you're allowed to be upset
It doesn't matter if other people have it worse
Some people are perfectly happy being with just their nose above the water-level with 10 children.
Some people are only happy if they have more than 6 figures in their bank account for padding
Some people don't care about any of it, and are perfectly happy while they're on the move.
Each person has a different thing that makes them happy.
I agree with @MadaraUchiha
Usually I just binge drink if I get upset
Not only that
I don't envy those with more than me, but at the same time, I feel I can't squander what I have for those with less than me
08:13
But just because some other person is standing in more shit than me, it doesn't mean I don't stand in shit.
And people forcing their own opinions of happiness on people is such a cause of conflict
But you're right, happiness is relative
I should focus on getting myself out of the shit, rather than being happy I'm not as shitty as this other guy.
if you're always going to be happy tomorrow, you'll never be happy today
@Neil Think about it this way.
Say you donate 10% of your proceedings to charity every year.
08:14
5%
@Meredith that's not great. But I understand it.
4%
Would you rather them to be 10% of $50,000, or 10% of $500,000?
To help those less fortunate than you?
10% of $500k of course
The more you have, the more you have to give.
That's how I like to think about it.
Not "I feel sorry for this other guy"
08:15
@MadaraUchiha If only everyone saw it like that
Lots of people think the more you have, the more you have to lose.
I see it like that, but more on the level of helping with my talents as a programmer
Not everyone can do what we do
@Neil It applies to anything. Money is just a number, after all.
the same cannot be said for other professions
It's a rather important number, sure.
But it is, just a number.
The beauty of knowledge is that me giving you some of mine doesn't reduce my knowledge.
08:20
JavaScript regulars meeting TODAY AT 19:00 GMT. Be there...
When is it planned ?
@MadaraUchiha I'll be sleeping in a few hours, but I'll be around til then
At 19:00 GMT (you'll be awake again @phenomnomnominal )
08:21
@MadaraUchiha ping other ROs too
do we have an agenda?
@Jhawins @ndugger @monners @Zirak @Cereal @SomeGuy @BenjaminGruenbaum @Shmiddty @copy @SomeKittens @BadgerCat @DenysSéguret @Cerbrus @KendallFrey @Mosho @FlorianMargaine @AwalGarg @phenomnomnominal @rlemon @RoelvanUden @Loktar @Luggage @SterlingArcher @ssube room meeting today.
@phenomnomnominal Same one from last time.
We were 3-4 people.
So we're redoing.
crl
crl
there should be a @owners
pretty sure Madara scripted that :) seeing how it did JanDvorak and someguy :p
@crl you can tell since he split by spaces which doesn't work for two leter names :P
crl
crl
08:28
hehe
@crl Yeah, crappily.
crl
crl
@MadaraUchiha make it a command on cap maybe :)
@crl Doable cc @rlemon
crl
crl
hmm the string would be hard coded.., but yea as an extension
@crl Not necessarily. Cap knows who the ROs are.
crl
crl
08:29
yep
0
Q: Inheritance hierarchy using object literal notation

overexchangeIn the below visualiation, object literal geolocation is under context of navigator(i.e., navigator.geolaocation), but as per below code, <script type="text/javascript"> function showLocation(){ if(navigator.geolocation){ navigator.geolocation....

@Zirak yeah, but the extension api doesn't seem to let extensions create hyperlinks. Atleast I didn't find anything for that.
crl
crl
u no class dude
guys, small script to create a shallow copy of an array, hmm .slice()
@MadaraUchiha dat edit history. also, adding an event in the schedule pings all regulars anyways :P
@MadaraUchiha don't count on me
08:36
Madara Uchiha has added an event to this room's schedule.
Madara Uchiha has removed an event from this room's schedule.
crl
crl
I'll replace Florian then :p
@MadaraUchiha what time is this in freedom time
It appears as though if I create an event, it will be announced in the global site's sidebar
So I'll let someone else schedule it XD
Mod superpowers FTW
on it
08:37
i think it happens anyway
@nick 14:00 EST
at least on the chat site
@MadaraUchiha PST is true freedom
@nick ...
!!tell nick google 19:00 gmt to pst
jokes on you I already did that
@MadaraUchiha can you... like, edit everything? :P Yes.
crl
crl
@nick you don't know how much your timezone differ from gmt?
+13hrs mother fuckers :P
I so future you can't even handle it
i know UTC-8, not familiar with GMT though
08:41
@nick GMT === UTC
why they make it so confusing though
@nick Because times.
use UTC it's more universal
probably something to do with daylight savings
crl
crl
use GMT it's more Green
08:42
wich one is that
Are you done with the horrible puns?
@AwalGarg even after the 2 minute time limit?
probably not
Come on people, now isn't the time for puns.
loool I was just trying to come up with a pun involving time
08:44
Give it a second
08:55
@BenjaminGruenbaum Promise.all() is aggregation, what's Promise.race()?
@MadaraUchiha also a form of aggregation.
crl
crl
segregation, oh sorry we said to stop
HAMMERTIME!
@phenomnomnominal lol I came back to this room after 10 mins and no one appreciated your pun
Promise.all aggregates by returning a promise for all the results fulfilled, race aggregates by returning the first promise to fulfill/reject and ignoring the rest.
08:57
tragic really
@BenjaminGruenbaum SO shirts ftw
@BenjaminGruenbaum are the others still resolved?
we need to start a petition or something
(even if ignored)
I guess my question is more: does Promise.race run .cancel() on the other promises?
you can cancel promises?
is that a bluebird thing?
I'm not sure actually, there has been long debates about that
my boss is gonna send me a t-shirt "angry nerds"
09:03
cool
yeah, but I just don't see how can we cancel a promise (or interrupt anything, really) without having magical powers from the engine itself because single thread
@nick ?
@FlorianMargaine ignored
2
Q: How to find the closest element using jquery

MahadevanI have searched in SO I found so many examples but mine was little different from all. 1) initially i have a row if the user click save & next button it will say you have 13 fields missing 2) if the user click the addmore button and he did not type any value in the text field then...

09:05
@AwalGarg what?
Why'd you need magical engine powers? The reason you can't cancel a promise is because that wasn't specced - libraries can and do do this.
crl
crl
@BenjaminGruenbaum is it 'easy' to have progress events on a promise (thinking of a post upload progress feature)
it seems promises are not compatible for that, imo, they either fulfill or reject, no intermediary states
@BenjaminGruenbaum just checking if we are on the same page: cancelling a promise means preventing the promise function from reaching completion mid-way, right?
or is it just disrupting the then chain?
@AwalGarg mid way - at some point where it yields control - for example if it's a chain - at the next step of the chain. If it's a generator/async function - calling .return on it which runs only finally blocks.
@crl right, don't use a promise for that, use observables or pass a callback to the promise creating function and call it on progress.
@BenjaminGruenbaum but then that is not a generic cancel. Here is my promise: Promise.delay(50). How'd a generic Promise.prototype.cancel cancel it?
crl
crl
ok
09:08
@AwalGarg Promise.delay would implement an onCancel (passed as third constructor argument) and when you call it it'd clearTimeout on the underlying timeout and remain pending forever.
finally blocks attached would run.
@BenjaminGruenbaum eh that's just shifting the problem to onCancel function. I have a synchronous read from localStorage of 2megs of data which takes like 10 seconds on an old mobile. I don't think there is a way to cancel that process once it starts even in the onCancel function.
(lets say 2megs on a single key, so you can't say "interrupt once reading current key finishes") :P
@AwalGarg right, because JS always runs on completion - that's why you shouldn't use localStorage for things that are 2mb key/value pairs.
@BenjaminGruenbaum exactly, and thus I fail to see how Promise.prototype.cancel can be implemented in userland without having magical powers from the engine :P
Sure it could, localStorage.setItem doesn't return a promise though.
Obviously platform APIs would need to support cancellation.
what does bluebird's cancel do, then?
09:14
Is there any "legal issue" if I imitate an in-game feature (achievement system) on a jquery plugin using game's assets? Even if I write a disclaimer providing the assets owners?
Exposes that onCancel and implement cancellation semantics - a lot of browser APIs support cancellation, a lot of Node APIs do too.
@Frondor yes of course.
@BenjaminGruenbaum ahh
Any idea how can I evade that? =D
The proyect is 100% open source tho
@Frondor does the project you're borrowing from have a license file?
09:19
@BenjaminGruenbaum (sorry, would've directly replied but on mobile) blog.stackoverflow.com/2015/12/stack-overflow-gives-back-2015
oh that, lol.
I'm Nick in the comments, dunno why I assumed you would make the connection lol
@BenjaminGruenbaum Are you referring to this us.blizzard.com/company/about/copyrightnotices.html ?
Oh - it's blizzard?
They'll definitely sue you - they're assholes :D
Fuck xD
09:24
hi what was wrong in my question why i am not getting the closest element any suggestion
blog.dustinkirkland.com/2015/12/… interesting, I always do wonder how much ubuntu has actually touched the market
$(".cloned_field").closest(this).addClass("required_Field");
.closest(this) ? what's "this" ? how are you defining that variable?
i am trying something like the above code the required_Field adding in that field not for the row how to do :(
var adddiv = $('#MemberCountDiv').html();
im getting the complete div in my adddiv and what I want is to change the elements id inside it any idea how to do that?
09:31
Assuming you already know what a child element is, adddiv.find(element).attr('id', 'your-new-id'); where "element" should match the child element class/id/tag.
@Frondor yes i know the elements thanks let me try it
crl
crl
09:55
oops it's bad

« first day (1895 days earlier)      last day (3277 days later) »