« first day (2305 days earlier)      last day (2866 days later) » 

08:00
@towc not really
user6438653
he's up to g*y stuff
@rlemon or @Zirak : May I use a part of Caprica's code on our work slack room ?
got your hackathon mentor yet?
user6438653
@Zirak u own cap?
zirak wrote her, rlemon owns the host machine
user6438653
08:02
ahh right, dang
@KarelG what's the license?
(yeah sure, it's always good to ask, I don't mean it that way)
08:14
but I don't need cap as whole, but a part of that
the license does kindly tell you to feel free to use the software provided and modify it under your own name if you wanted to
yeah, but you're never sure with zirak :P
ofc, then you'd have to face Zirak's Wrath
he's most likely fine with it :) start adding folder with "slack" in the already existing repository, then branch and hope
at least you can start working on it
Does anyone have any idea that How to retrieve original value of "this" in javascript
yes
08:19
I mean, i have a js file that i have to edit
the same way you retrieve anything
but there exists a lot of this there........... So, I couldn't figure out the original value/object/instance
sometimes this can hold multiple values
So, i have been trapped in the jigsaw of "this" :( :(
or rather, can be used by multiple constructors
go to the beginning of the function, see what the name is, and see where it is being used
08:21
Yes, i read an wonderful article about,, "the scope of this in js" but still I couldn't figure out
either in .call, as .prototypes or other stuff
@tow
c*
@towc ok
i checked with alert(this) but it prints object Object
if it's in an event listener, unless you're doing fun stuff, this is the object
@W.Jack alert calls .toString, try console.log
08:22
so, condole.log would print the actual value of this ??
user6438653
condole.log, true
or if you really want to use alert, use JSON.stringify(this). It won't work if this has any cyclicity (arrays/objects containing themselves) or methods (functions). In that case, definitely use the console inspector (with console.log)
@W.Jack yes
Is the inspect element in brower ?
I meant, in event listeners, this is the element
browser *
08:24
@W.Jack or F12. Then make sure your console is open by either clicking on the console tab, or toggling it by pressing esc
(to edit messages in this chat, press the up arrow until reaching the message and simply edit. There is a time expiration)
user6438653
holyholyohlyshitshitshit
did you discover gore hentai?
Ok.. many thanx... I am trying right now ..
user6438653
@towc haha, not yet.
user6438653
08:26
It's so big
user6438653
That's what she said
user6438653
Zirak's ok in the head aye?
ah, check the comments :P
it's just zirak
user6438653
hahaa
user6438653
08:29
@Sami you left?
@KarelG it's not like you have friends
user6438653
Hey @arulpragash
keh
hi @shad0wk !!!
user6438653
@MadaraUchiha @ThiefMaster I love your dimonds
user6438653
08:31
It's me @WATERYMEL0N
user6438653
I am asuming you know the story?
user6438653
Hey @Loktar
user6438653
@KendallFrey The pizza is aggressive. #PizzaGate weirdo
user6438653
Hey @SterlingArcher!
user6438653
Hey @phenomnomnominal The other NZ'der
user6438653
@rlemon Come back
user6438653
Not many kiwis here
@shad0wk multiple almost meaningless pinging is very much against this room's policy
user6438653
Like I care, lol.
You're going to get yourself kicked.
08:35
ah well, it will hit you at some point :)
This time for a few months.
user6438653
Nah
user6438653
Meh
and he'll just change accounts, he gets that
user6438653
Yup
user6438653
08:35
I'll change ip as well
like I care
user6438653
So I don't get ip banned
there's still a thing called fingerprinting mate
automatic
user6438653
yup...
how do you plan to combat that?
and there are other automatic ways around it
08:36
prosthetic fingers
you're just not enough of an issue
user6438653
lol
user6438653
@littlepootis Bluetack works
haha pootis
was you not a RO before ?
There should be one around this time
I was never an RO.
08:38
there are, it's just pointless to kick
user6438653
RED ORNAAGE
user6438653
RED ORGY
user6438653
lol
there's also the thing about muting/ignoring
it's just for those starred messages (that pdf link and "future depends")
user6438653
08:38
why would you mute me
user6438653
I dind't star the pdf link
ohhh @waterymelon...
user6438653
That pings me
user6438653
phenomnomnominal is an ro
user6438653
too many people are ro's
user6438653
08:40
It doesn't ping me. LOL
user6438653
Just f8king with ya
user6438653
@Sami you left you have to go to this to get back in discord.gg/5BNNqwY
user6438653
@arulpragash We moved to discord
user6438653
Rishav wants us back here, but here isn't as cool
user6438653
The people are the same
user6438653
08:41
The chat itself isn't
awesome..
im there...
user6438653
right
@towc If I were an RO, I'd have kicked.
actually wait, he can't just change accounts
user6438653
@littlepootis If I was the ceo of stackexchange you'd be gone
08:44
this one had a rep of 1.1k in november already, which is about when we started hearing about waterymelon
so, he's farming and has a limited amount
a ban is totally due
btw, he's on my ignore list
user6438653
This is 8 months old
The melon/shadow trainwreck? Yeah, those accounts are a good idea to mute
user6438653
THis is the same account all along
user6438653
melon is shad0wk
user6438653
check my account
08:47
@towc console.log still showing.... Object { _: Object in that case
@W.Jack click on it and it will expand
user6438653
@BobJoeDoe and @winter are different
user6438653
@towc I am not farming assh*le
user6438653
Why do you hate me so much?
user6438653
08:48
I haven't done anything ot you
yeah... wonderful... i got all the stuff @towc
yw :)
btw... that does Object { _: Object actually mean ?
it means that this has a this._ which is an object
user6438653
08:49
@towc
yes... now things are getting out......
user6438653
@ivarni?
@shad0wk Kiwi is a bird
if not a fruit
user6438653
Yup
user6438653
And a person
08:54
@shad0wk Go for Dinner
user6438653
wat
When u going 2 hv ur dinner ?
@towc if you ask me, that's something weird
-_-
user6438653
Already had it
08:56
it means Object _ has an object
function A(){
  this._ = {};
}
new A;
that produces the result
yup the scope has a property called _ which is assigned an object literal
_ is usually an internal variable, and not meant for the user to be used, but still there in case the user has to do advanced stuff
or it's just the result of minification
user6438653
hey @ben
user6438653
09:00
\o
\o
@towc yes but I don't see a reason to do this._ = {};. If i see _ then it's anonymous (for lambda's)
ok now it looks gay
@BenFortune can we call for a ban on shad0wk? It won't be useless, turns out he actually put effort in the account :)
user6438653
09:02
lol
Wow, befriended a girl on omegle.
She knows C++.
@littlepootis No girls on the internet
@KarelG or you haven't seen enough patterns :)
user6438653
09:02
yup
user6438653
it was a dude
@littlepootis teach her JS while she's still young
singletons ?
user6438653
pootis doesn't want to admit it
user6438653
but he's gay
user6438653
09:03
liek iddubz
@KarelG doesn't have to be singletons
which pattern do you have in mind then, when seeing that ?
@shad0wk prove it
user6438653
He is offeneded by the word fag
it's usually not _ because that's literally lack of meaning, but you do sometimes see _stuff or __stuff
09:04
!!> "little pootis" === "gay"
@FlyingGambit false
Caprica never lies
how to make an icon move automatically based on browser screen size
user6438653
But var gay = "little pootis"
user6438653
09:05
!!> "little pootis" === gay
if the object has a pretty specific functionality and name that would make the meaning of the non-exposed variable intuitive, then it can be okay to just call that variable _
user6438653
@shad0wk true
@jacobian that makes no sense
you mean favicon? normal image?
See Caprica did not reply to you
learn about media queries
user6438653
09:05
!!>iambanned
@towc _stuff = ... is more clear than just _ = ...
or setting favicons with javascript
footer icon so that it will move when browser screen is minimalized
@KarelG yes, but sometimes it's not required, if it's intuitive enough that there has to be a hidden property, and what it does
09:07
the icon that I had right now is not moving when I decrease the resolution. I need it to move based on the resolution
eh, I use (let|const) foo = ... as hidden property. Not binding to this
but anyways, just saying my thoughts
@jacobian that means nothing
do I use css?
@KarelG hidden but still available to the user, that's what I'm saying
the user should normally never need it, but for either debugging purposes or advanced stuff, it's there
@jacobian You need to have a responsive design which can be accomplished using css ie media queries
09:08
don't fall into jQ, use css
user6438653
bye
@towc You still there ?
yes
not for long
Ok.. I will discuss with you later sometimes
!!urban later sometimes
09:13
if you want to treat me like a tutor/employee, you might as well do it all the way :)
@FlyingGambit No definition found for later sometimes
@towc What if he pays you good ?
I'll be a happy goat
See money is the solution to all problems
definitely ;)
09:15
I know you are a man, but even I would blindly marry you if you were rich
yay happy sprinkles
I just have to kidnap you, that doesn't require that much money
@FlyingGambit you're 57, he's 16
and a half
Naw, if you kidnap, you will only get a part of the money, if you marry you get to ditch him and transfer it your account
@littlepootis Money makes love blind
but you will have to wait till you are legally an adult
which is 18
we wait for 2 years
or just marry in another country
09:19
what country allows child marriage ?
and damnit, I'll be 17 by the end of the month :/
I won't count as a cute kid anymore, I'll just be a kid
@FlyingGambit I might be very wrong, but many african ones?
Hey look at the bright side, one more year then you can get your driving license
that's not much use
I don't want a car yet
at most a motorized bicycle
Be a Man, grow some chest hair
so, you want to see my chest hair?
09:22
On Behalf of the SO community, yes we do
@towc nothing there
Longue is better than this room
@littlepootis you just set off a chain of emotions in me that is not describable with words
popular Chinese call to kids: 小鲜肉
@towc it's part of islamistic culture. So high likely you can find (legal) child marriage in countries with islamistic emphasis (Saudi-Arabia)
Gambit is probably male
09:25
I really don't want to spend my morning researching gay child marriages
oh heh, google docs is actually pretty compatible with elinks
that's pretty good
@littlepootis Ofcourse, don't doubt my chest hair
Any idea why my Angular-xeditable is not working. There are no error in console, when I click editable text nothing happend.
why in chrome console, when you write var foo do you get undefined?
@Arto don't know, use Vue instead
@SuperUberDuper I am not going to change my framework at this point :d
angular gets a bad rap here
09:34
not assigned any value, so would get undefined when you press key Enter.
but you don't get that value when running node
you would have to console log it
user6845426
Morning all :D
user6845426
Currently really nervous. Have a grad interview today.
dont be nervous
just point them to your github!
your the boss!
user6845426
Yeh! I'll interview them lol
09:44
people in interviews like to make people feel uncomfartable
its a very unatural env
interviews suck in general
you probably know more than them
its there chance to go on a power trip
user6845426
Yeh i'm really not fond of them. But I guess its all experience either way
in chrome:
var item = 3
undefined
item = 3
3
strange
if you declare a var, you always get undefined on the next console output
@SuperUberDuper Yeah, that's intended
because a variable declaration doesn't return anything
09:55
well either does foo=3
in node you only get the value if:
console.log(item = "test")
unless there is some node setting to make it like the browser
but you can't do
console.log(var item = "test")
@SuperUberDuper That's not a declaration, that's an assignment
well its both
10:19
does chart.js support themes?
hey guys Can some1 give me advice how to sort folders before files
so first list of folders and then files
@Mralwayswrong wat folders ?
i have a script where i have foldertype and file type
it sorts now on name
$("#button-sort").click(function(){

  var sort, el = $('#drive-content')
  sort = el.find('.sortbox').sort(el.hasClass('asc') ? dec_sort : asc_sort)
  el.toggleClass('asc')
 function asc_sort(a, b) {
    return ($(b).find('.sorteren .item-title').text()) < ($(a).find('.sorteren .item-title').text()) ? 1 : -1;
  }

  function dec_sort(a, b) {
    return ($(b).find('.sorteren .item-title').text()) > ($(a).find('.sorteren .item-title').text()) ? 1 : -1;
  }

  el.html(sort)
    $(".folder-icon").unbind("click");
like the windows style
10:38
no one ?
@Mralwayswrong You need to consider folder type in your sorters. We can't be more specific because we don't know how you can get folder type in your code.
10:56
So i'd like to create a custom event, when i dispatch it i'd like to send a parameter is this possible?
this._collisionEvent = new Event("collision");
@Mutch95 You cannot add param but can add property to your custom event object: developer.mozilla.org/en-US/docs/Web/Guide/Events/…
So i cant really return a dynamic value then?
Not sure what you mean by that :(
hmm, what i want to do is detect a collision between two objects. If it is true then i want to trigger the event and send the object that was hit with the event
2
Q: How to create, add custom properties to and fire custom events in vanilla Javascript

AzeirahScenario: While browsing the web for a solution to Javascript Custom Events, I couldn't find any practical examples, and even the MDN resource is really limited. I am trying to rebuild paperjs' onMouseDrag event. My intended use is for a paint-like web-application. The onMouseDrag event fires ...

11:07
Thanks sheepy, this would still work in es6 right?
i just dont see where he set the values of the properties
I'm using Angular material md-select I set the first option as a label (select item), the item is required field, is there a way to trigger the required a attribute when selecting this option ?
@Mutch95 The ES6 spec does not care about DOM, and the DOM does not care about JS version. The answer set the clientX and clientY on the custom event object.
but it doesnt look like he is actually declaring the properties
@Mutch95 JavaScript has no class. Sometimes it is feasible to declare properties in the constructor or the property chain. But as I said the dom event is not part of js and you have no control over it, so you do the next best thing: you assign them dynamically. As long as you assign the same properties in the same order, the performance will be almost as good as declared.
but if i declare the event in a constructer i cant really assign them dynamically
11:19
you can do that. Just store it to a variable and assign properties
that's not very elegant, maybe i'm doing this wrong
@Mutch95 Looks like we are not thinking about the same thing when we say declare. Are you doing it differently from the example?
constructor(canvas, width, height, fps) {
        this._canvas = canvas;
        this._width = width;
        this._height = height;
        this._fps = fps;

        this._frameRate = 1000 / this._fps;
        this._frames = 0;
        this._gameObjects = [];

        this._updateEvent = new Event("update");
        this._collisionEvent = new Event("collision");

        this._setupCanvas();
        this._update();
    }
which is obviously inside of a class
@Mutch95 This constructor is for a js object, not a dom event object. DOM may not allow you to fire a non-event object; I am not sure, but even if it is allowed now it may be disallowed in the future.
Any suggestions on how i could listen for "events" outside of a class then?
11:24
@Mutch95 Let's back step a bit. Do you want to reuse the DOM event system, or do you want to create your own internal event system? Because ES alone does not have event system, class or not.
probably my own event sytem then
this is what im working on, simple game engine for js canvas
Well, you have to code it yourself. Do you know design patterns?
nope
!!afk lunchie lunch
@Mutch95 Hmm... it'd be good to study them. They will help you understand the behaviour of the DOM system - for example the DOM part is Composite pattern and the listener part is Observer pattern, events may be fired by a Visitor etc. Understanding what you want to do is the first step to build it.
11:33
any good microsconsulting websites out there?
0
Q: Decapitate Title Case

CerbrusHave a look at this list of active meta questions: The only question in there that's using "Title Case" is Tim Posts' announcement. As @CodeCaster mentioned, I agree "Title Case" looks rather silly: "This post is fine and all, but I stand by my earlier comment: Title Case Looks Ridicu...

#grindsmygears
@Mutch95 Alternatively, you can define what you mean by "event system" on your own, without referencing DOM. If you search "javascript event system" you will get many code, but only you can decide whether they meet your needs.
yeah, I found this gist.github.com/wildlyinaccurate/3209556 but I dont really understand how it works
Part of learning. :)
11:44
this i can understand @BenFortune you're a legend
It's an awful class, made it when I started with ES6 lol
No comment XD
But, it works :P
well i can follow your footsteps, i'm learning es6 right now ;)
oh no
i just realised you're using arrow functions
Map is actually quite fast
11:46
What's wrong with arrow functions?
Plus I'm actually not :P
you are using a spread though
I think it's a ES6 feature
in your usage.readme you are
But arrow functions are great
Arrow Function is the greatest feature of ES6. I can live without class.
11:49
Classes are bae
You people just lack class
I like classes too :(
It's nice syntactic sugar in my opinion
please explain why you think arrow functions are the greatest feature?
@Mutch95 I have the feeling that you don't really understand how js works, which may be one of the reasons why you like class. But that's ok.
11:51
Im not getting any errors but these arent any valid expressions are they?
var fooBar = 9;

3;
3 + 6;

fooBar;

fooBar + 3;
nah, im a nub :(
@Asperger they all look right
This will give me an error in C, C# etc
Yes it will
@FlyingGambit C# sees these as wrong for example.
11:52
@Asperger If you remove the semicolons, they become valid expressions, except the variable declaration
var doesnt exist in c#?
It does, but it's not the same as in JS
@Sheepy aaaw :/
oh ok
a simple statement like 4 + 4; Visual studio. In chrome however, testing in jsfiddle I dont get any errors at all
11:53
I thought var was only there in JS
@Mutch95 Anonymous functions are very useful in javascript. Arrow function make them shorter, sometimes dramatically shorter (esp. combined with destructuring), and solves a common problem of this. Class adds more smoke and mirror up the illusion of class, but is not as dramatic a improvement over what it really does.
yes it is.
I swapped it with "int"
The thing is JS treats statements differently it seems.
@Asperger Search for Static typed and Dynamically typed languages
Interestingly google dart doesnt throw any errors either.
@FlyingGambit *static
11:54
@FlyingGambit oh ya right. I forgot that js is dynamically typed xD
@KendallFrey Thanks
Strictly speaking its wrong though
a statements 4 + 4 is pretty useless therefore its wrong.
So even though we dont get compiler errors in js or dart etc. Its still wrong as it does not adhere to the specification of an expression
var in C# automatically assigns the type based on the right side of the assignment, so var a = 3 will work, but var b without assignment won't. There's a dynamic type for dynamically typed variables.
11:57
I see
@BenFortune what happened to the read me?
Well thats correct. As does java or c. Anyhow, 4 + 4 is just floating in the air. The only valid expression that is not an assignment would be a function call.
It's a gist, not a repo
or an increment or decrement (post / prefix)
11:59
@Cerbrus I'm not used with that but Does It Really Annoy You ?

« first day (2305 days earlier)      last day (2866 days later) »