« first day (2013 days earlier)      last day (2953 days later) » 

5:09 AM
Any small chart library which you guys know?
I just need a linear line chart. for that I don't think I should include d3 which is around 150kb
 
@littlepootis Writable memory is one that you can change the contents of. Executable memory is one whose contents can be dumped directly into the CPU as instructions. It would be unfortunate if something happened to the instructions before they go to the CPU.
@Mr_Green vanilla canvas
 
I don't have that much time to learn canvas at this moment.
I should have learned it :(
 
@Sheepy nice
@littlepootis what people have hated about IOS
 
@littlepootis Yes. The term comes from OpenBSD. Other browsers don't have this unique security feature.
@Mr_Green Vanilla SVG also works great. If you know DOM you know how to manipulate it.
 
@JanDvorak I know. This is the first time I've heard of W^X though.
 
5:17 AM
@Mr_Green stuff to get you started: getContext("2d"), beginPath, moveTo/lineTo, stroke
 
yeah thanks checking some tutorials
 
I heard that back in the days, programs are expected to change themselves on the fly, because memory is so scarce.
 
Now they do so because the CPU time is so scarce :-D
 
@Abhishrek why was it hated? Can't find anything about W^X and iOS.
 
@littlepootis why you cannot build a JIT browser in iOS is because the memory is either writable or executable also that apple forces you to use UIWebView (:, I read it somewhere finding a link now
 
5:21 AM
ah, makes sense
 
The trick is to switch pages between the two modes, isn't it?
 
@Mr_Green Here is the SVG region chart tutorial. Skip the fill and you get a line chart.
 
yeah awesome
thanks
 
@Abhishrek yeah forcing even chrome to use it.
 
@littlepootis vOv they say its more secure that way
 
5:23 AM
@JanDvorak Easier said than done since you can't really allocate a page for each JIT routine. So when you updates a routine, other JIT-ed functions (in the same page) cannot run.
 
Can I double buffer - have each routine exist in two copies?
At least during a write
 
@Abhishrek Then you'll have to update the pointer to the routines - which is often compiled into the routine.
 
As in, dup the whole page, make the necessary changes in the copy, redirect new executions to the new copy, release the old copy?
 
@JanDvorak now you will have to do extra work every time you are doing this swap
how do you figure out it is the right time to swap ?
 
Each time you have a write
 
5:28 AM
Well, it'll be easier to just change the pointers. This is how JIT works, and X^W "just" added an extra steps to toggle the memory state before and after write.
 
Easier, but slower
Why should browsers take the easy route?
 
anyone know about getting Notifications to work on the file protocol in Chrome?
 
@Shea do you get a security error ?
 
no
 
@Abhishrek I would argue I am a nice person.
 
5:31 AM
@Shea Chrome? No. Chrome hates local sites. Fervidly.
 
@JanDvorak Of course you are, you are adorable!
 
I'm using Messenger for Desktop which essentially wraps the Messenger website with Chrome
 
@JanDvorak Yes, your a nice person.
 
@Sheepy Thanks for the new word.
 
@Shea yeah, it's nice
wait, wat
 
5:32 AM
I can't even get a Notification to trigger in developer tools
 
I hate having to have Chrome open
and I like the idea of having it in the system tray
 
@Shea you can do that with chrome (:
 
plus, it starts up boot up
can you??
 
5:32 AM
@Shea the thing you linked packs its own chrome
 
how do I achieve this?
 
@Shea lookup chrome extensions
 
what's interesting is that I can't even get a Notification to trigger in dev tools
 
"Minimize Chrome to tray"
 
ewww dude
you let Chrome run in the background?
 
5:35 AM
Messenger notifies you, whether or not you'd like to be notified.
 
@Shea you do the same
 
@Shea Does it work with --allow-file-access-from-files ?
 
just wrapped as messenger.exe
 
@Shea By using that app, you're doing the same.
 
@Sheepy That is why I was asking if he gets a security error.
 
5:35 AM
yeah, but atleast it's slimmed down
 
@Shea not at all
 
And added to that, overhead of god-knows-what.
 
hmmm
 
now you have two instances of chrome's tab manager and the chrome-crash-helper's
 
@Shea You have to ask Chrome nicely first. Nicely = while handling a user event
 
5:36 AM
@Shea Why would you think it's slimmed down?
 
okay
 
It's an electron app.
 
@JanDvorak DevTools should skip that
 
I'm wrong, according to the five Messenger.exe processes
 
@Abhishrek I finally got the custom story working
 
5:36 AM
@Abhishrek how?
 
@JanDvorak triggering the notification by code ?
 
@Abhishrek I mean, which calls specifically should bypass security?
 
@JanDvorak the calls which need explicit user input :P
should
 
@Shea Back to your notification problem. Try give us an exact error - the console should give you one. As you can see from our discussion, many things can go wrong.
 
5:38 AM
window.notifications.requestPermission();
 
there's no error
 
^ does that throw you a security warning ?
 
simply, nothing happens
nope
infact, Notifications.permission returns 'granted'
 
That's weird.
 
@Abhishrek nonono, I mean, when should a call to new Notification not require a prior permission?
 
5:40 AM
@Shea are you calling the .show();
on the notification object ?
 
let me try
 
@JanDvorak when you are doing it from dev tools I don't see a point in showing the nice I accept, decline dialog when you do requestPermission
 
that throws an error
 
@Shea which is ?
 
@Abhishrek What if I set up a time out from the dev tools?
 
5:41 AM
undefined is not a function
 
Well, then you didn't have a notification object :p
 
@Sheepy lemme check the spec though
 
I definitely do
can someone try to trigger a notification from the dev tools?
 
What if I rename the Notification class from the dev tools and instantiate it from page code?
 
5:42 AM
Oh yes. You are right. It only has the show event XD
 
I think this has something to do with that
 
@Abhishrek It's Notification.requestPermission() iirc
 
also, the app is wrapping the site using an iframe
 
@Shea the new spec should open the notification without the show so, sorry I confused with the older one.
 
It may not be limited to Chrome. Firefox also does not popup the permission dialog when I open a local file.
 
5:44 AM
well allowing all sites to use Notifications fixes it lol
 
lol
 
@Shea o_O
thats interesting
 
OH DONT DO IT SHEA DONT
 
yeah, no...
that's no solution
 
They spam notification adverts
 
5:45 AM
good for testing purposes though
 
what is window.noDiac do you guys have it in SO chat ?
 
it tells me it's a permission issue
 
@Shea whats the issue
 
idk
 
also try what Sheepy said
 
5:48 AM
probably something to do with iframes, file protocol, chrome version they're using, etc
I'm just going to get as much information together as possible, and post in on the project's git
they can figure it out, idk enough about this to fix it
 
I can't find the issue or spec, but it seems to be known that notification does not work on file://
Not in Chrome and not in Firefox. Edge does not have notification.
 
I think it actually works fine in this Chrome App
yup, works
 
@Shea Browser extensions and app has different permission than webpage. They can do cross origin request, for example, or read local file.
 
idk why one would need a standalone exe for this then
 
@Shea Well, some users only know exe.
 
5:58 AM
it worked great on Ubuntu though
I guess I'll get use to letting Chrome run in the background
or not, it's usually open if my PC is on, anyways
 
@Shea you will love having chrome open in bakcground there are many apps
that get installed as chrome extensions
 
well I can't get the app to minimize to the tray
I'll probably end up making my own version of this
concept is simple
 
My favorite chrome app ^
Their new launcher <3
@Shea Indeed
@Shea btw if your thing is running in electron github.com/electron/electron/issues/262
...
 
6:15 AM
It indeed is.
 
oh I see
 
hello..
i have fetch one problem about get data from array..
my code is..
var array=[002,005,02002,07];
document.writeln(array[2]);
result is 1026
if i remove zero before i add "02002" then result is correct but if i add zero then result will be different.
 
I dont get it , why webpack hot loader not working in my case
 
TIL about document.writeln
@sagarchopada 02002 is octal.
Not decimal.
It's base-8, not base-10.
All numbers in that array are octal.
02002 is 1026
 
6:21 AM
@littlepootis why it will be?
 
@sagarchopada Because that's how you represent octal numbers in JS.
 
1 message moved to Trash can
@sagarchopada 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 or pastie.org
 
I don't need to see the code. Learn about octal numbers.
 
@littlepootis okay thanks
 
6:33 AM
@littlepootis this is wonderfully error prone
 
@FlorianMargaine why :)?>
 
6:52 AM
Does egg maggi work?
 
in javascript, what is difference between 'returns a value' and 'evaluates to a value'?
 
short answer: control flow
 
what is the context ?
 
@svarog me?
 
6:57 AM
yeah
 
@svarog context is expression, function, variable
 
looks yummy
i think that a function returns a value, an expression evals to a value, a function\ can return a value to an expression
 
@svarog so you say they (evaluate, return) are more or less same?
 
more or less, yes and no.
 
7:02 AM
you return from inside the function, outside the function you get a value and eval
 
var i, len;
        for (i = 0, len = handlers.length; i < len && !handlers[i][handlerMethod](requestOrResponse, context); i++) {
        }
what is this ?

!handlers[i][handlerMethod](requestOrResponse, context)
why calling method like this ?
 
No good reasons. I'm very glad it is not your code.
 
it's microsoft's I think
 
That's what can happen if you have an array of functions
 
The logic is simple. But they should at least put that call into the loop and break.
@Mathematics To be exact, this loop is calling all handlers and break at the first that returns a true value.
 
7:13 AM
@BenjaminGruenbaum I was mentioned in the new onboarding thread...
 
@Sheepy thanks
 
any of you guys play scrabble here?
 
only with an anagram app
 
Have you figured out where I work @MadaraUchiha ? :D (PS: sorry if it's not you, I can't really remember with whom I had that conversation yesterday...)
 
@Thaenor I just know where you are from your IP
I didn't dig into where you work or where you live.
Or even if you used a proxy.
 
7:20 AM
So it was someone else.. @rlemon maybe?
 
I want to compare which is more efficient (in terms of memory/speed) way to hold the cells that have bonuses (i.e Triple Word score, Double Letter score, etc...)
 
@deostroll Are you trying to write a solver?
 
Use a dictionary, or a 2d array...?
 
why a dictionary ?
 
more like a game engine...
more like a game engine...
I feel that would save space...
 
7:25 AM
what about those that don't ?
 
Use a function. Pass in x,y and get the bonus back. Then it doesn't matter how you really do it, and you are free to experiment and upgrade it without affecting other code.
 
because there are only a few number of cells have bonuses compared to the whole board...
 
why save space you either way have a 2d array with an object from a cell
 
Array is usually the fastest.
 
@Sheepy this is what I am looking at if you are interested
 
7:27 AM
for*
 
@BenjaminGruenbaum @littlepootis that's a serious effort... not sure how I can make it more clear. I would do it this weekend, I really have work from 2 sources and exams to take care of this week :/
 
Line 8109
 
In case of scrabble, you can also reduce the cells to logical rules (code) that may or may not be faster than a 2D lookup, but I don't think it's worth the cost. So just use array.
 
@Sheepy "cells to logical rules" explain pls
 
7:29 AM
it only has 2 handlers, read & write, but I am not sure why it's doing this ?
handlers[i][handlerMethod]

handlers[0][read]
handlers[1][read]
 
@svarog if ( x === y ) if ( x === 0 ) return 'triple word'; else if ( x < 5 || x > 9 ) return get_letter_bonus(); else ...
Yeah. Just do a 2d lookup.
 
oh i see, thanks
 
hi guys.. is there some html wysiwyg editor that can keep html head and body tags?
 
@boomcode Common editors have that option. Have you tried google?
 
yes i did.. can u name one ? @shee
 
7:34 AM
!!tell boomcode google html wysiwyg editor that can keep html head and body tags
 
@AwalGarg are you serious?
 
@boomcode *you
 
@JanDvorak there was a discussion on meta few weeks ago, a room owner kicked someone for using too much ", ," in there sentence, they were not really appreciated
 
@boomcode For me, my second result is FCK, which also has a fullPage option.
 
7:37 AM
@littlepootis yes.
 
@Sheepy already tried.. does not work
 
@boomcode Well, Caprica's answers above has a few other different editors. If you don't want to debug FCK, try another until you found your editor.
You can also try google yourself for more than three results. I used your exact words.
 
7:53 AM
can anyone provide a good use case from Promise.race() ? :P
 
@svarog Make two identical requests to two different servers. Use only the result from the fastest server.
 
neat, thanks
 
@svarog Make a complex resource update operation involving multiple API calls, bail out as soon as an error pops up in one of those operations.
 
@Oleg That sounds more like Promise.all
 
@Sheepy Hmm, yeah. You're right.
 
7:59 AM
if i chain race to an all
 
So errors are ignored with Promise.race?
 
> The Promise.race(iterable) method returns a promise that resolves or rejects as soon as one of the promises in the iterable resolves or rejects, with the value or reason from that promise.
 
and how would i run a race when doing all ? lets say i want to catch the first then finished his operation but still run .then when all the operation array has finished ?
 
can someone tell me where this method coming from ?
return httpClient.request(request, function (response) {
 
Nope, the code is too small. Do you have a transcript of the screenshot?
 
from httpClient object :P
 
var requests = doRequests();
Promise.race(requests).then(handleFastest);
Promise.all(requests).then(handleAll);
Maybe something like this ^
 
aren't i running requests twice ?
 
Nope.
 
@svarog Promise are executed as soon as they are created - and you can only create a promise once.
 
8:08 AM
@Oleg Unless handleFastest and handleAll return functions, I bet you meant without the ().
@svarog No, see how doRequests() is only called once?
 
@MadaraUchiha Yep, exactly.
 
requests is the result of the action, not the action itself
 
oh, got it
@MadaraUchiha thanks
 
Morning caffeine hasn't kicked in yet...
 
Google is flagged as a dangerous site.
 
8:11 AM
@Oleg for me it won't going to help
@Thaenor u didn't knew :|
 
@Mathematics Why? You don't like coffee?
 
I'm only catching up on some news now. Github is also flagged.
 
@Thaenor lol
 
@Thaenor guess google is the gateway to all the dangerous sites :P
 
@Will that's not so much the problem. It's flagged as unsafe because there's some bad content hosted in google groups and such.
 
8:15 AM
Ah guess that makes sense.
 
@Oleg I do, but I am not that good with JavaScript :/
 
@Will same goes for github (because people can write their own code for their pages).
 
I would like to know where it is making ajax call in real

httpClient.request(request, function (response) {
I am having trouble with my url, but I am not sure
also, how can I see this library in a big picture
 
@Thaenor Not the first time.
@Thaenor Known fact. Github is full of politically incorrect concepts and security circumvent tools. Anyone who use it is a threat to the country, if only because it force you to use https.
 
@Sheepy including me?
 
8:18 AM
@Thaenor why you not human ? :|
 
@Mathematics the function httpClient.request performs the actual request and gives you a promise to keep tabs on it
 
@Mathematics @Sheepy said "Anyone who use it is a threat to the country," - anyone includes actual people
 
@Thaenor You, me, and everyone here. It is rumoured that China's communist party tried to DDOS GitHub for many days. It is that bad. ;)
 
@Neil yes, but I am not able to understand how it's using requestUri or url to make the request
 
It is like saying, "do this and when you're done, run this too"
 
8:20 AM
where is this method defined
 
@Sheepy waaaah???
 
@Neil I understand the promise thing, but not able to find the definition of httpclient.request method
 
@Thaenor Won't surprise me if NSA is next in the line. (roll eyes)
 
@Mathematics it is defined in your library
 
Anyone here know Yeoman?
 
8:21 AM
Microsoft's library, but where though
 
@Sheepy Scary stuff, and yet I won't look for another place to host my portfolio, I'm just too lazy for that.
XD
 
@Mathematics I am unfamiliar with that library, but if I had to guess, there's probably a file named HttpClient.js
 
this library doesn't has any dependencies
as far as I know
 
@Mathematics no, it wouldn't be a dependency
 
@Neil ok I figured out
this is whats happening,


httpClient = httpClient || odata.defaultHttpClient;
then

odata.defaultHttpClient = {
Line 8182
thanks for the help
 
8:24 AM
@Thaenor Good! Then you already know how dangerous it is! :D For the record, though, the DDOS thing is real.
 
No problem
 
Suup fellas.!!
 
@TusharShukla you say that again and I will run away
 
Ohh, sorry then
 
am joiking :P
 
8:25 AM
well i'm here to seek help on this question : stackoverflow.com/questions/36737818/…
Lol
 
guys
was Set available in all node versions?
can't find any data on it
 
@Sheepy :0
@Sheepy to be fair... China hack's anything.
 
@BartekBanachewicz Since v0.11.15, according to the V8 versions
 
@Thaenor Not like this. This is very high profile and public and undeniable.
 
Will node ever reach v1.0 levels?
Is there a particular reason behind keeping it under 1.0?
 
8:34 AM
@Neil Node is currently v5.10.1
 
@MadaraUchiha oh.
Must have taken a long nap
 
@Neil Quite.
 
When will java exceed version 1.4 then at least?
(Joking)
TIL that deuterium is non-toxic and tastes like water
 
I am thinking about creating an algorithm which will suggest you videos that you may want to watch
 
8:53 AM
@towc This is awesome, where do you draw your inspiration from?
 
naughty videos ?
 

« first day (2013 days earlier)      last day (2953 days later) »