« first day (2148 days earlier)      last day (3025 days later) » 

00:25
@Meredith woah
@littlepootis hey dude
00:38
Ultrasound of little sheep Alpha. I didn't expect the name Alpha to get so much support when I proposed it to the family. Don't ask whether I will suggest Beta for the next (if any).
@Sheepy boy or girl
Boy!
I'm going to resign and will be very busy finishing projects. Already not sleeping well. Expect to see me a lot less here >_<
What do yu guys prefer
    const response = await fetch(url, params);

    if (!response.ok){
      throw new Error('Error getting profile from the request');
    }

    return await response.json();
@Abhishrek Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
when you have to format code like that?
@Sheepy My Math Teacher named his children Alpha - Gamma
00:59
@Abhishrek What do you mean? which part do you question?
@Sheepy is it just me or does he look like a human to everyone else
user image
2
1st birthday.
01:50
Ugh, I'm installing something with "2012" in the name.
is it visual studio?
02:06
It's probably visual studio
It's movie maker
I already have visual studio installed on every computer
I might be blind, but anyone else thinks github.com/awalGarg/devtools-timing-attack/issues/2 this has nothing to do with the repo itself?
wrong repo
It's a firebug issue, apparently.
> Please help me asap.
^ same guy, same thing
But isn't firebug dead?
(Look at the open issues)
02:21
That guy has poor mouse aim.
I am curious how he even stumbled upon my repo. It has nothing to do with firebug :/
Hmm I need to make something less transiently helpful. So far my OSS stuff has only received stars and stupid issues/PRs (like github.com/awalGarg/netmonitor/pull/3 this fine guy).
OMG Orbiter has a new version! cc @rlemon @Luggage @Jhawins @Everyone that's ever played KSP
Hey guys
Can prototype be used to mutate a Promise?
lol i forgot about those quirks of orbiter
like audio being a mod
03:17
@littlepootis Imagine my disappointment when the first ultrasound is already too late to capture his tail :<
This hurricane is pretty lame
@Knu It's a feature, not a bug
Knu
Knu
how many times I have heard that justification :)
I've got a tee that says it
Wanted to send pics but it's in the laundry
Knu
Knu
03:47
Id understand if he asked for dragonfly though
before Opera completely lost it
 
2 hours later…
05:30
Latest round in space vs tab: space wins
Mornin all
Hi...Why this NodeJS doesn't return currently. i Use callback on done function...but this is not problem ..i need to write my return value to output using write() method ( i mean res.write() ).. My working copy: jsfiddle.net/3gvbk1gu
Ekn
Ekn
@MadaraUchiha hey, happy birthday!
@Knu Because extension API isn't accessible to regular webpages?
@littlepootis Surprisingly correct answer :P well done
06:11
What is ECMA?
!!tell SreekanthKarini wiki Ecma International
something like this jqueryscript.net/zoom/… for angularjs how can i use it
multi zoom image
hello :)
or similar library for angularjs
06:18
Anyone mind if I ask an off topic question?
go go go
:D
@TolaniJaiye-Tikolo Welcome to the JavaScript chat! Please review the room 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.
Thanks @CapricaSix
06:36
no body exist ..that familiar with Node?
no
@Sheepy why I don't go /cc @AwalGarg
@Mostafa nobody that has the time to dedicate maybe ;)
@Mostafa Your fiddle contains too much code and you can't run the code in it, because it's NodeJS code
Most of what you posted there is probably irrelevant to your problem
@user6582640 we like off topic questions because we're iff topic people
@BenFortune that basically includes only the bits with brackets and function keyword.
07:50
i dont know. Im sorry — FreezY 7 mins ago
That was his only comment haha
08:06
@BenFortune what about jQuery: the good parts
oh it's that sheet on the floor
@rlemon @Loktar woo-hooo
08:22
@BenFortune god, this joke is old
@FlorianMargaine sure
Is there a plain-text list of all registered npm modules somewhere?
Is Duct typing an official term?
@Jonathan you mean duck typing?
No I mean a really naive duck type check
08:32
@MadaraUchiha Happy birthday :)
Duck typing is as official a term as rubber duck debugging
Not plain, but they're all there
hi guys, I'm trying to cread a grid table using jQuery
so instead of adding :
1 message moved to Trash can
@mcmwhfy Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@Caprica Six dear admin
this format coding is not working
so .... WTF !!!
08:59
Javascript Guru here? please help me with this question stackoverflow.com/questions/39285158/…
I wrote helpful doc about communication between react components
if(keypressed("ctrl") && keypressed("k")){
    //this works just fine
    alert("hooray");
}
hi all
@KyLim Welcome to the JavaScript chat! Please review the room 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.
@GNi33 the event also has a ctrlKey property, so you only need the k event
09:04
yeah, that's not supposed to be valid js anyways
@towc what if it isn't attached to an event at all? Maybe he just happens to want to know if ctrl + k is pressed for no apparent reason
Maybe the page is loading and you want to be able to congratulate the user for using the ctrl and k keys
09:21
hi
anyone know how to change the background color or a repeater component in Enyo?
Hello @BrianJ
Tried the following, the set content prop works, but addClass doesn't seem to do anything. My aim is to change the item background color
Hmm, is enyo new? I have never heard of it before now
hi, am trying to create JavaScript SDK for our platform with a similar implementation like that Facebook JS SDK for logging a user into our system.

Trying to see the most secure way to communicate back the authToken to the main window, while making use of postMessage API as domains don't match
@BrianJ probably best to use css to stylize it
09:26
@Neil it is pretty new yes
trying to get my head around the properties
Unless specific lines should have a different color, in which case you should still set a line's class, not add the background color directly
I updated my js bin to include the css I use
The idea is that the tapped event would change the background color of the selected item in the repeater
to give feedback that the item has been selected
The properties are probably meant to be what you need to know to construct the list, and not information that changes as it is being constructed
Setting a property during may create a loop
Just a guess though. I don't use enyo
ok I was trying to add the css class when the item is tapped
so thought that would work
by changing the item bg color
@GNi33 try doing that from a mac laptop, will not work ;)
09:38
@BrianJ you need to attach an event listener and change the color when clicked
I wouldn't attempt to regenerate the list
Even if it is only clientside
@Neil how can that be done without an event?
It may be that you can't easily do this using the framework, though sometimes the solution isn't to hammer the square until it enters the round hole
use an hydraulic press instead
@towc the code just isn't inside an event block
doesn't have to be
he has some storage to keep track of it through events
09:42
I was mostly kidding. Not that you'd ever really need to do that
oh
well, in game dev you very often check if keys are pressed outside of the event listener
what one may do is store an object with each key that should be used to the corresponding event if the key is pressed, and if the key is not down it's either "false" or something falsey
works most of the time
so I want to create some jQuery elements like this
<div id="grid" class="gridTable">
				<div class="row">
					<span class="cell"></span>
					<span class="cell"></span>
				</div>
        	<div class="row">
					<span class="cell"></span>
					<span class="cell"></span>
				</div>
        	<div class="row">
					<span class="cell"></span>
					<span class="cell"></span>
				</div>
        </div>
True, timing is important enough to have to react to events at the right times and not necessarily when the event occurs
so you actually do if( keys.k ){ do things for normal k; if( keys.k.ctrlKey ){ expand here; }}
but instead of adding html elements I wan to add them usin jQuery
and repet that row many times
09:46
Can create a lot of ugly little flags if it isn't done right
which method is better to do that
@Neil that's exactly what I'm attempting in my existing code. The onTapped event calls to change the background color of the repeater item tapped
@mcmwhfy does it have to be jQuery? It's pretty simple jQueryless
@BrianJ well take a look at any example of how to do this without enyo
@towc yes, I must create those elements using jQuery
09:48
they are few and far between :P
@Neil document.addEventListener( 'keydown', function( e ){ keys[ e.keyCode ] = e }
as simple as that. Then I'd get another array to translate the keycode numbers into semantic actions
for example actionKeys = { jump: [ 32 ], left: [ 40, 67 or whatever ] }
at that point I can modify the initial listener to only have to handle semantics, in a simple searching for loop
@BrianJ google toggle background color javascript
Lots of examples if you know what to search
document.addEventListener( 'keydown', function( e ){
 for( var action in actionKeys )
   if( actionKeys[ action ].indexOf( e.keyCode )
      keys[ action ] = e;
}
for example
@towc The c++ code for this would be a bit messier
@Neil oh, we're in JS, screw anything with a structure :P
but it can still be done pretty easily I'd think, not even hackingly
surely not as easily as JS <3
09:53
But js objects are one of the nicer advantages of using js
@Neil using the following gives no console error, but the background color of the item doesn't change either
        item.$.repEPRID.style.backgroundColor = "rgb(244,113,33)";
@BrianJ try .style.setProperty( 'background-color', 'rgb(244,113,33)' )
Hello all
@towc tried that but tells me
IncidentTickets.js:632 Uncaught TypeError: item.$.repEPRID.style.setProperty is not a function
@BrianJ then style is not what you think it is. Try logging it
console.log( yadiyadiyada.style )
10:03
ok good point
Hello everyone. This season I am trying to learn how to make preloaders. There so many articles about this in the web so I started looking for websites that have nice preloaders and learn from them on how to make one.
So I found this very nice website with a very well made preloader.

https://www.weblounge.be/

I am trying to find which script is making this preloader to work so nice. Any help would be more than welcome. I used the developers tools but I couldn't find much on how the preolader is activated and waits until the page is loaded.
@Bajaj looking for an answer to come out of the sky or do you expect us to tell what's going on by glancing at that?
@towc any knowledge about socket ?
@Bajaj you haven't defined any io, guess you have to add a library?
@Mdermez you didn't just... 0.o not MY scrolling
I hope you're happy with yourself
@towc so I logged the style value, gives me the following
10:06
@towc ? I don't understand
@towc which lib sir ?
In github link, it is empty as i defined in my code @towc
@BrianJ that doesn't mean that it is the standard DOM style attribute
Is there no way to obtain the DOM element from the click event through enyo framework?
@Neil I haven't seen any way from Googling
@BrianJ then you don't use enyo for events either..
Not shaping up to be such a great framework imho
The docs are awful
it's a dom-like event I think
managed to change the color using
item.$.repEPRID.applyStyle("color", "blue");
problem now is that every time I open the list, the previous selected item is still colored
@BenFortune same error mate
:(
@Bajaj Not from where I'm standing.
10:26
@BrianJ you need to keep a reference to the old and untoggle the color
(Or nothing if reference is undefined)
yeah was thinking that @Neil The list closes before I see the color changing, so maybe I should apply a sleep 1000 after changing the bg color?
atm I only see the color has changed after re-opening the list
Closes?
@BenFortune do you use skype ? i will send you my code files
hangout ?
@BenFortune
10:29
If the list closes, then the framework has added a click listener to the list to close it
Find a way to prevent the closing of the list, preferably "enyo's" way
]within the tapped event, I call this.$.popAsset.hide();
which hides the pop up list
should probably do a wait there
@BrianJ so don't do that. :)
@BenFortune
please upload again
because nothing to show
10:43
so thought this would work to delay close of popup, didn't though
               //Set timeout to show color change of item before close popup
               setTimeout(function(){},2000);
		this.$.popAsset.hide();
@BrianJ setTimeout( ()=>this.$.popAsset.hide(), 2000 );
@Sheepy @BrianJ knowledge about socket ?
@Sheepy ok thought using an anonymous would have worked too?
anyways your code worked
@Bajaj nope no knowledge on that apart from what college professors told me
@Bajaj No. I have done Java socket and packet debug, but I don't know JavaScript socket, no.
@BrianJ Problem is your anonymous function is empty. You need to put the hide code in it. But then you'll need to capture the value of "this" in a closure. Arrow function should be simplest.
ok makes sense :)
10:50
@Bajaj No pinging random people please.
Fuck sake, no
okay bbye
Thanks Ben.
11:08
Hello

"coords[n] undefined" : http://pastebin.com/Ygj2rz6c

Does anybody see why I get this error? (I don't)
coords[n] undefined on line 24.
What does ...a mean ? Its from this answer stackoverflow.com/a/36504668/5936814
1 message moved to Trash can
@SagarNaliyapara Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
$('#image1').addimagezoom({ // single image zoom
    zoomrange: [3, 10],
    magnifiersize: [300,300],
    magnifierpos: 'right',
    cursorshade: true,
    largeimage: 'hayden.jpg'
})
how to integrate this into angularjs Directive
@trilolil coords is an empty array.
@SagarNaliyapara Is that a demand?
11:14
not demand how can i demand it..
@BenFortune oh yes now I see, my bad. Tvm.
i'm learner
@BenFortune Thanks
I have try with following directive but it does not gives zooming effect
        return {
            restrict: "A",
            link: function(scope, element, attr) {
                console.log("sd");
                var opts = scope.$eval(attr.multizoom);
                console.log(opts);
                $(element).addimagezoom(opts);
            }
        };
@SagarNaliyapara "not working" is not a valid problem description
Unless we're talking about unemployment
Oh yeah, that is much better!
11:27
Cc @KendallFrey
I've seen it from my grandparents place (they live in Victoria bc)
It's amazing to see, but when I saw it I didn't realize how little of it I was seeing
@rlemon what do you think of my new paint? youtube.com/watch?v=WeFCJCG1GIc
I don't see how that can be an issue actually. I now have the same error but on line 28

http://pastebin.com/27V5mEgs
Can't you assign values to an empty array?
At first sight this doesn't make much sense...
That's because you changed it
11:34
?
You were originally trying to loop an array without anything in it, at an undefined index.
for(m=0; m < coords[n].length ;m++){
yes I modified the loop
yes indeed but I now have the same error, but on line 28.
@KendallFrey what is that
Create a reproducable jsfiddle.
@Neoares I wanted a custom paint job for my car. So I hacked one together yesterday.
11:36
@KendallFrey nice
It could use some improvement, but mostly little things
@KendallFrey do you have a F1 car?
._.
kind of
There's no way to get it out of the computer unfortunately
@KendallFrey Did you paint flames on it?
no
I may put some maple-shaped "flames" on it
11:42
Then how's it supposed to go fast????
Speed holes
it's got a 700hp (?) engine in the back
Here you have a jsfiddle: http://jsfiddle.net/o6hu33sL/28/

The error happens on line 36 in the HTML part
the goal is to dynamically recalculate the coordinates
of my area's
You had that in one of the previous iterations...
12:03
@BenFortune I am affraid I don't get what you mean.
What's up with this version?
@BenFortune Well it doesn't worl properly when you rescale the image, I had a few issues. (don't remember exactly where the issue was). So I just rewrote it entirely in my own way.
Yeah, because your coordinates were wrong, just redo them.
Ok I am painting my terrace right now. Will look at it a little later.
Don't you think my code would work?
12:12
hey, what is equivalent of Math.floor() in jQuery
13
@mcmwhfy $.youveHitRockBottom();
jQuery is a DOM manipulation/utilities library written in JavaScript, and any JavaScript functions can be used with it, including Math.floor()
@ phenomnomnominal yeah, I know that but I thought there is a jQuery equivalent
@@ thank's
@mcmwhfy I love you
12:16
// you can define a floor plugin in jQuery
$.fn.floor = function(){ return this[0]|0 };
console.log($(3.3).floor());
(yes, it's not exactly flooring)
$(3.3) won't work will it?
Just tried it and it doesn't
but $(-3.55).floor() won't be exactly the same than Math.floor(-3.55)
@phenomnomnominal what exactly did you try ?
@DenysSéguret did you try it with actually jQuery, or $ in Chrome?
Ahh jQuery 2
3 must use qsa under the hood?
Oh nope I'm even dumber
It works whatever the version
$ on the jQuery website isn't jQuery.
yes, it's painful to test in the console now
@littlepootis you're not thanking me for my wonderful plugin, are you ?
I'm thanking for all them exports on your sites
ok
(yes, you can test the jquery floor code on Miaou's console)
It guy asked to show up for 7am meeting for the first time in years
@yeah, I love you too mate but only if you've done "bleaching" procedure
:D
@rlemon You people have tricked me in many ways on every Friday
@FlyingGambit This one was easy to spot, you obviously lack training
yea we are not even trying to trick you anymore
pfft..Trolls >_>
mhm
12:30
next time, try at least to hack an important page, like the google home page or the FBI, to embed the friday's gift before linking us to it
@ rlemon, the above sentence is for you mate
@DenysSéguret will do
almost forgot :D
@rlemon And tell me how you did it
@FlyingGambit unicorns
hey
how could you store a ref to a previous index when a function is called a second time?
12:34
closure
I know if I store it in the event function, it will be lost on the second call
any thoughts on setting the ref as a global class level var
?
why insertBefore needs to be called over the parent?
is "Viola!" the new meme?
JavaScript Viola!
It's not a meme she's a girl @SterlingArcher has been dating.
in spanish, violar means to rape
12:39
oh, I thought he wanted to say "voilà!"
He wanted to, yes
!!learn viola <>https://chat.stackoverflow.com/transcript/17?m=32565578#32565578
@KendallFrey Command viola learned
@rlemon Are you planning to get Orbiter? You should!
@KendallFrey hadn't even heard of it
12:42
Howdy. Does anyone know a bit about CKeditor?
There's an update
I want to try it out
see if I can land on the Moon. it's not like KSP...
I'm having a silly problem which is probably not worth opening a question :)
!!welcome Unique_Key
@Unique_Key Welcome to the JavaScript chat! Please review the room 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, thanks. I'll shoot, then
12:44
:gets behind cover:
I'm trying to intercept a click event on one of its buttons, and I've read about using CKeditor's event handler as described here: ckeditor.com/forums/CKEditor-3.x/How-know-which-button-clicked
But, problem is my code isn't being recognized: I have it integrated in an asp.net application, and if I put that script on my page I'm getting an error that editor is an undefined variable. Where would I place it, exactly?
hi
I have been banging with nodejs Buffer
does someone know how to skip n bytes, the buffer.slice() docs in nodejs doesn't say what does start and end value indicating .. l
12:59
I know what buffer from does
oh
using buffer.slice

« first day (2148 days earlier)      last day (3025 days later) »