« first day (1790 days earlier)      last day (3382 days later) » 

00:09
ayy lmao
We are preparing to upgrade our Secondary Services Edge routers. You may see some service disruption starting in ~5 minutes
00:43
@Lalaland yep, those are the "breaking changes" if you well
 
1 hour later…
01:52
oi
02:05
Bam Change window called perfectly. Also all work is done :)
cool
02:28
k
03:19
Has anyone here worked as a reviewer for Packt?
such a specific job and company
I know.
They reached out to me to review some stuff.
I did that.
And I didnt get any credibility for that.
I have been waiting for months.
They are such a fraud. I just dont know whom to reach out to.
send them an email
So you think I didnt follow up?
with ccs
i never think, thinking is bad
03:25
I feel like publishing all the email conversation online. They need to get their shit together.
I would never wish this happen to anyone.
@RahulDesai I've worked with Packt
@SomeKittens How was it?
Same level of quality as you
What the fuck is wrong with these people?!
They wanted me to do a video course on canvas, ended up telling me to redo it three times before I told them to shove it
03:26
@Sheepy MDN articles talking about objects(function constr+object literal notation) have many issues, there are technical review requests raised. Can you point me to a good(reliable/up to date) documentation about these these topics? EloquentJS is not that good for this.
wow
I hear you.
Hi all, just leaving this here - (js infographic) d2brer6wwumtdu.cloudfront.net/wp-content/uploads/2015/09/…
what is the equivalent of 'as' in php in javascript?
@winresh24 what as?
like in a sql query ?
foreach $sample as $samples
03:37
ohh
in
for in
yes
okay thanks
yw
03:39
^ that
thank you :)
you're welcome - though CS^ already pointed out :)
lol
nice
how about ->?
same
03:45
I'm looking for a (kinda) cheatsheet for bitwise operations - anyone?
Ha that's great
send love then :)
will do for sure
one last question :)
why I can't call child?
$.ajax({
                    url: "https://www.sample.com/",
                    type: "post",
                    dataType: "html",
                    success: function (data) {
                        $('.homepageNrListDuurzaam ol li:first-child .top5Title').html($(data).find('.top5Title').html());
                        }
                    });
                });
04:04
happy new morning
How did you know i would be interested .... :) — Baba Apr 23 '13 at 18:41
@AwalGarg you too? :)
yep :P
(great answer btw, +1)
cool :)
nice to see ppl wanna get bitwise
so... how did you know? :-P
@AwalGarg neah, formatting sux there, but it was a long time ago
lol, not sure what to say :)
04:09
@CSᵠ looks quite readable to me
am I calling it right?
@CSᵠ did you steal it from the book of dark magic?
it was nice writing that, started from a few things i knew, then researched some "what ifs"
some of those you can see in my answer
04:10
awesome
thnx
that letter position thing is pure gold, but i doubt many would use it
yeah, it's really intriguing. I wonder how many other patterns might exist
there are quite a few, but i've listed "the best" suitable characters
04:27
In computer security, a billion laughs attack is a type of denial-of-service (DoS) attack which is aimed at parsers of XML documents. It is also referred to as an XML bomb or as an exponential entity expansion attack. == DetailsEdit == The example attack consists of defining 10 entities, each defined as consisting of 10 of the previous entity, with the document consisting of a single instance of the largest entity, which expands to one billion copies of the first entity. In the most frequently cited example, the first entity is the string "lol", hence the name "billion laughs". The amount...
!DOCTYPE lolz
lol
> Defenses against this kind of attack include capping the memory allocated in an individual parser...
I wonder how could that be done
That's at the kernel level
man nice
Not using XML is also a very viable option
yeah
04:33
nice article
or just parse the XML with regexp :D
04:44
I am making a website that renders on both the server and the client, meaning the exact same (React) components must be able to run both in node and on the browser. How do I handle fetching data? On the server I want to go directly to db while on the browser I'll obviously need xhr. Is there a clean way to do some kind of strategy pattern? I was thinking I'd inject a middleware to handle the fetching but can I provide two different implementations via require in two different environments?
I'd rather not have to resort to if (window) or other bs like that
dependency injection?
That's a requirement for a strategy pattern, yes :)
oh wait, yeah, I'm overthinking this aren't I?
Whatever kickstarts the app provides the middleware
normally you DI through the constructor / at initialisation time
Yeah, I have different entry points for the server and the browser, so I'll just have to pass in the right implementation there I guess
require("sharedStuff.js")({backend: database, ...})
04:49
I kinda want my components to not know if they're on the client or server though
But maybe I'll just pass the middleware via props from the initializer, or make a lookup-service
then make the data source opaque
You can even pass it a mock data source for testing
That implies making it a singleton?
or a classless object
(which I'm fine with btw)
That gave me some ideas to work with, thanks :)
04:53
Yeah, I have to write it up first though, it's a hobby project but I couldn't stop thinking about it in the shower this morning so just needed to feed my brain a bit so it can go back to doing other stuff
I've never used CR before, might give it a go
maybe not
Hello
i am facing one issue
i am using bootstrap-select.js for dropdown
scroll bars disappearsin it
this is my code
That's not code. That's a screenshot of a part of something that the browser generated from what it understood of your code.
05:11
oh yes
highlightes is part of dropdown
There's a special place in hell for people who post screenshots of their code.
hmm
ok sir
sorry for this
They have an example in their docs with a scrollbar, but it's the ugliest, least intuitive one I've seen in a while: silviomoreto.github.io/bootstrap-select/#scrollYou
I have inspect this there is no animation fade in class
when i click on arrow
i think i am using older version of bootstrap
well, then...
05:40
hello
can i paste one more screen shot
to explain one issue
Somehow I don't think we'll be able to help even if you do
Did you leave your crystal ball at home today?
05:55
My crystal ball is out of mana. It should recharge overnight.
Please name your favorite JS libraries
06:15
damn screen freezed and I lost all 7 crons I wrote
bah definitely not my day
Mornin'
mornin
user3119231
06:30
Mornin'
06:41
How (for (i of [ 1, 2, 3 ]) i*i ); is different from [for (i of [ 1, 2, 3 ]) i*i ]; ?
I did understand the meaning of generator function which yields 1, 4, and 9 in first case
@JanDvorak how much does mana cost a month? Just curious
Anyway to make jekyll render fenced backtick blocks as synax highlighted code blocks?
cc @Mr_Green ^^ you work with jekyll right?
07:09
is there a syntax error in this [for (item of my_list) if (item > 3) item] comprehension?
@PleaseTeach JavaScript. JavaScript is a good library for jQuery.
5
my_list = [1, 3, 5, 9, 2, 6]
jQuery has a strong dependency on JavaScript
@AwalGarg yes I worked with jekyll but I didn't get your question.
user3119231
@RoelvanUden well played, bro. well played. o/
07:11
@Mr_Green yeah figured out, it's a bug github.com/jekyll/jekyll/issues/2709 :-(
and they closed it because it is a coderay bug or something :/
ohh ok
I like nunjucks more than jekyll
currently, researching more on it
For all jekyll like stuff, you can see this staticsitegenerators.net
i like nunjucks too
i like that it allows you do have template inheritance
yeah seems awesome
currently, I am using mixture of nunjucks and gulp from here. github.com/carlosl/gulp-nunjucks-render
This guy did a great job
Using this, we don't need any webserver or backend language support like ruby or php
and most important it obeys DRY concept
@overexchange Nope, that's fine.
Or my_list.filter(x=>x>3)
hello i have set min-width of div and now div width resizes its width with its child element. is there anyway i could catch this resize width event?
07:33
@MuneemHabib please explain clearly what exactly you are trying to do.
i just want event whenever element resizes
there is resize event but its only called when window resizes
why exactly you need that?
there might be a better suggestion if you explain in detail
ok sir
let me explain
afaik you only get resize events on the top level of the document
i have a tree. i have set min-width of div which contains tree. Now if tree expands then parent div resizes accordinly. Issue is this there is a scroll when tree height increases now if tree expands then tree nodes cut off almost 5-10px due to scroll
07:40
Adding a div as wrapper to that existing div might work
where should i add that div?
Ruby deserves much more hate than it gets.
@MuneemHabib just wrap it to the existing div
Is spread operator very handy in JS programming? what exactly is spread operator doin here?
function myFunction(x, y, z) { }
var args = [0, 1, 2];
myFunction(...args);
I want to make a functionality where if someone clicks on a span the span gets highlighted and then when the delete key is pressed , the span is deleted .. gist.github.com/argentum47/… this is where I set the tag which is selected .. but the problem is how to I do the delete part... I can on componentWillMount do a document.addEvenetListener onkeydown if its a delete key then delete the selectedTag , but
the problem is there is a text field too .. its like <div><InfoPanel/><TextArea/></div> .. so writing something in the textarea and pressing delete would trigger that too.
ruby is like
def i_hate_ruby
p "Hate! Hate!"
end

alias_method :collect :i_hate_ruby
ok I have an idea .. when infoPanelOpen addlistener else removeListener
07:55
0
Q: Static response WORKS! While Asynchronous doesn't work

Dhaval MarthakI'm creating an angular directive for realtime chart displaying here is the code which returns everything including link:function() { } inside directive. Here is the code for static directive which works perfectly angular.module('app').directive("flotChartRealtime", [ function() { ...

Can anyone help me regarding this?
08:06
@overexchange it 'unpacks' an array; ...x is equivalent to x[0], x[1], x[2]
i find it quite handy
@overexchange Same as myFunction.apply(null, args);
Probably more useful for destructuring
It's unpacking the array.
you could also do myFunction(-2, -1, ...args, 3, 4)
and it will work as expected
^^ Oh yeah, you said that!
08:18
Need help with understanding part of the await spec :)
> When the value passed to await is a Promise, the completion of the async function is scheduled on completion of the Promise. For non-promises, behaviour aligns with Promise conversation rules according to the proposed semantic polyfill.
Okay, so I can await a function which returns Promise. What if I don't want to use native ES Promises and use bluebird instead? My question is: Does await work with any "thenable" or any Promise implementation, or just the native one?
ah, the ol' promise conversation rules…
Can't find it :/ Any hints? :)
@Miszy Bluebird promises are A+, which means that they are completely interoperable with native and other Promise libraries
So in short, yes await will work for bluebird Promise
@Miszy Yeah, it will work fine with bluebird.
Thanks :)
Do you know where I can find "Promise conversation rules"?
08:23
@Cauterite Can I say myList = (1, 2, 3, 4);?
@overexchange nope
well, you could, but it wouldn't do what you expect
!!>(1, 2, 3, 4);
@Cauterite 4
Because it's just a comma operator wrapped in parentheses :)
08:25
@Cauterite How myList = (for (i of [ 1, 2, 3, 4 ]) i) different from ` myList = (1, 2, 3, 4);`?
you probably want to do myList = [1, 2, 3, 4]
I think you're trying to copy & paste code from Python? ;)
@overexchange myList = [1, 2, 3, 4], parentheses do not define lists in JavaScript.
@overexchange ehh, JS syntax is full of inconsistencies like this; 'fraid they're just not equivalent
it would make sense though, from a language-design point of view
@Cauterite this is aweful
@overexchange it's not the worst flaw in the language, i can assure you ;)
In python, we have tuple syntax myList = (1, 2, 3, 4) another immutable data model
08:31
immutable structures would certainly be nice to have in JS
Object.freeze([1, 2, 3, 4]) is probably the best equivalent
pretty sure freeze doesn't affect sub-structures though
08:44
who loves this confirmation prompt
i managed to finally kill it for good today
my new day resolution is to blog more. actually, start a blog. I mean try to. ~_~
@Cauterite imustknowthesecretyoumusttellmeNOW!!!!!!!!!!
@Neil ehehehe
there's a conditional jump in shell32.dll which i changed to unconditional
08:52
@argentum47 heeeeyoo
@Cauterite Me too
I moved to linux.
Problem solved.
too easy
@Cauterite Like your mom.
¬_¬
@MadaraUchiha almost dropped it :P
08:54
@AwalGarg Almost :D
@Cauterite You can pretty easily create ones
@MadaraUchiha huh, that does seem pretty neat
Errybody check this: gist.github.com/awalGarg/ca9fafd3107d88387772 (veery quick POC ofcourse)
@Cauterite It's implemented well too.
is it like the implementations used by clojurescript?
@Cauterite I haven't looked at closurescript's so, I don't know.
08:56
@AwalGarg cute! Why the require()()?
But most structures there are implemented as trees.
@phenomnomnominal Because it returns a function?
@phenomnomnominal require returns the function exporteed :P
@AwalGarg obviously...
oh, shit, sorry :)
Still, ew.
put it in a variable damn you :P
08:58
yeah, but the catch is, it lacks scoping in modules :P so foo is exposed globally lol
@AwalGarg Meh, use closures.
@Neil email me if you're genuinely interested
@Cauterite Not if I have to mess with system dlls, no
can I mix these two line to one line ?
Perhaps once upon a time when I was younger and more foolish
08:59
$('.l_votedown').attr('href', urlhref.replace("&rb=1", ""));
$('.l_votedown').attr('href', urlhref.replace("&vv=1", "&vv=-1"));
urlhref is a variable.
@MadaraUchiha well with a good define and require implementation, you won't even need a bundle/module system, you can just use closures. but I don't want that extra indentation :( I want to emulate real modules
@AwalGarg you're gonna end up implementing System aren't you
@phenomnomnominal not until I see the WHATWG spec actually moving ahead
If you say so.
09:08
are there games where you basically kill people like final destination ?
@Abhishrek Like, arrange strange accidents for them to die in?
Say throw err one more time fucking node, one more time
> OK. ~Node probably
0
Q: socket.io authentication with sharing session data, how io.use() works

SrleInspired by How to share sessions with Socket.IO 1.x and Express 4.x? i implemented socket authentication in some "clean" way where is no need to use cookie-parser and to read cookies from headers, but few items remain unclear to me. var express = require('express'), session = requ...

They just add internal slots like anything. some day, they will have to deal with it... some day.
09:26
@AwalGarg hiyaaaa
@argentum47 sup dude
also @argentum47 /me needs help. miaou?
work is cool ... but life is frozen ... gimme some idea for cool thing to showcase
@AwalGarg gmail?
on it
@MadaraUchiha yes
@MadaraUchiha I mean I don't wanna be a psychopath
but there is neighbours from hell a game i used to love where you created strange accidents for your neighbour to destroy their vacation
09:47
jira is so clunky
why do companies still use it
I remember that anyone share a plugin of browser,
It disable a result of w3schools on google
what is the name abuot plugin?
sounds more like a job for a userscript than a plugin
why you want to hide w3cschools sits ?
sites*
I install it now in FF but not work
after try to restart browser
09:57
@Simply 'cause they're ranked far higher than they should be
TIL: when you use usb debugging on an Android with chrome://inspect you have access to the phone's clipboard. Managed to paste text I copied on the phone about two days ago into chrome devtools on my PC
@ivarni Hah! Cool! Did not know that. :D
hehe OK @Cauterite
@Simply It was an understatement. "w3shools is the bane of all human existence" is slightly more accurate.
10:09
@JanDvorak undefined
@AwalGarg try refreshing the message.
@AwalGarg Object.keys(global)
@JanDvorak I am in strict mode. global ain't defined ^^
anyone good some good JS equivalents for a statement like for (i = 0 to 5) {…} ?
such as for (let i in Array(5).fill(0)) {…}
[0,1,2,3,4,5].forEach(...)
you can use jquery array.each(function(){...});
10:18
@Simply how does that help me?
do you want to loop through an array ?
no, i want to loop some code N times
1 message moved to Trash can
@OliverK Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
preferably with an index variable exposed to the looping code
then whats the problem with for (i = 0 to 5) {…} ? this
10:21
@Simply it's not valid javascript
1 message moved to Trash can
@OliverK Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
for(var i = 0; i<= 5; i++){...} is valid JS
i'm well aware, but it's overly verbose
Verbose? This. Is. Javascript!
Because (let i in Array(5).fill(0)) is so much better.
10:23
Hi guys. For some reason when I attempt to perform a redirect to an internal page it prepends /#/ to the URL in AngularJS pastebin.com/LgUX3ahS What am i doing wrong?
@RoelvanUden if i liked that alternative i wouldn't be asking for suggestions
@OliverK Nothing. It's the way routing works.
Hmm right.. Any way to redirect rather than using routing? And what are the benefits of routing?
Still getting my head around Angular
@Cauterite You might like CoffeeScript :P
i might indeed
10:25
@OliverK The routing you use, with #, is used by angular-route for linking URLs to controllers and templates. You can set 'html5mode' that doesn't use it, but that'll hit your server and you have to have a server-side component to handle it. The Angular way is to simply use it as is :P
might be _underscore.js helps you @Cauterite but i don't think you should use it, this is not major prblem
Oh interesting! I'm trying to have PHP interact with AngularJS, still playing around with it. Sounds interesting, thanks:) @roel
!!are you drunk?
@Neoares Doubtfully
guys any idea why it my filter is not defined? jsfiddle.net/uo4ewxfv/1 Something seems to be wrong with the way I set up my parameter
10:35
@Asperger check line 2
@Cauterite Ok I will
function(elem) { var elem; ... -- not good
@Cauterite I actually defined elem when I called my function. At least that is what I thought
i'm thinking more about this part
`filter (function(…`
@JanDvorak var elem = 0 better?
10:37
That's even worse
What do you recommend then Jan?
how about var filter = (function(…
The elem is undefined until it is passed down by a parameter
not trying to declare a variable by the same name as an argument to the function?
@Cauterite or function filter(...
or that
10:40
Why did you pass it in a variable? It worked then. My version, without the variable did not work however.
or is because I swapped the order of function and the name of the function?
10:53
Anyone else thinks that usage of Perl should be punishable by law?
@JanDvorak isn't usage of it punishment enough?
Not for some.
still better than PHP at least

« first day (1790 days earlier)      last day (3382 days later) »