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

That is a youtube clickbait right?
 
no
It's not
They're gong to do the same thing browsers are doing
 
> Instead of new stand-alone versions, Windows 10 would be improved in regular instalments, the firm said.
well, sounds like a plan
All these updates for free? :o
 
> Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
 
user365265
i am curious: i have compilated a require js file (490kb), is this large file size common ?
 
user365265
9:15 PM
or should i try to split the file somehow ?
 
user365265
into smaller chunks for example (one chunk for all 3rd party libs, and another for the core) ?
 
Is this meta question "confusing"? meta.stackoverflow.com/questions/293905/…
 
@mate64 depends on what you're requiring.
 
It was closed for being confusing.
unhelpful for a meta question requesting information about another question, that I'm trying to tidy up.
 
9:31 PM
Regarding the non-meta question that it refers to, I think a new question specifically about getImageData must be in order, I can hardly edit the question so much, and it would not only be starting at -3, but resistant to any up-voting.
Nobodies really answered about the low likelihood of a new user going though all this.
Oh, sorry allquix, I thought you were talking to me, it was to mate64
 
@alan2here your question is extremely poorly phrased to be completely honest.
All you're really asking is how to get the pixel values using canvas. All the rest is clutter
 
I mean the meta question about that question
 
Can I edit it into sanity?
Please?
 
yes please
Thank you
I was about to start it again with a question about where I am now, that looks much like the meta question.
I mean the answer to the meta question.
 
@alan2here do you get any errors in the developer tools?
 
9:43 PM
I'm just using CodingGrounds, on IOS Safari at the moment.
 
Do the developer tools show any errors?
 
I can get to other platforms now if needed.
I don't think it has developer tools.
 
I just want to know if the developer tools gives you an error, in order to see that in IOS safari you need to connect the iPhone/iPad to a mac, open safari, open dev tools on the device and check.
 
I supose with JS it must be an exception, other languages on the site are executed non-locally
 
If you want to enter there from another browser like Chrome on desktop - that also works.
 
9:45 PM
Cool, going to Windows - Firefox now.
 
good idea
inb4 I know what your error is and it's a cors issue
 
What is cors? (CORS?)
 
cross origin resource sharing, but before that - let's see what errors you have
 
Page not loading, but every other page is fine :(
I'll try getting another device connected up
 
Let me make things simple?
@alan2here Is the image you're trying to load on another domain?
 
9:55 PM
Yes
As per the code sample, it's a URL to the image, that successfully gets placed onto the canvas, that must be a copy.
 
Ok, in that case you can't call getImageData on it @alan2here
It's a security measure, so you won't for instace - load an image on my Bank's site containing a Pi chart of what I spend my money on and then read it and parse it.
It's for the same reason you can't make cross-origin AJAX requests to send money from my account to yours. It's a security measure - the third party image has to cooperate.
 
Windows machine now working, getting to project
Seems odd as I can view it in a browser.
 
If you open the dev tools - you'll see a security warning telling you exactly this.
 
It's not hyjacking it from another open tab
Ok, one moment
 
> Although you can use images without CORS approval in your canvas, doing so taints the canvas. Once a canvas has been tainted, you can no longer pull data back out of the canvas. For example, you can no longer use the canvas toBlob(), toDataURL(), or getImageData() methods; doing so will throw a security error.
This is your issue.
 
10:00 PM
so; you actually can display the pie chart of your expenses
:P
 
Elements, Network, Sources, Timeline, Profiles
Oh, I get it, because your locally running JS looks like it's on your session if your signed in to somthing.
 
@alan2here exactly, it's also known as a CSRF attack.
When a site makes requests in your name. Images are not cross-origin enforced but editing their data is.
 
You could answer the question and I'll mark this as correct.
And either of us could tidy it up too.
Are there sources of images that will co-operate?
I just need an example/sample image, somthing like an outdoor scene will do.
Dosn't need to have a very high resolution.
 
@alan2here host it yourself
on the same domain, same port, same scheme.
 
The JS is not on a domain I own
 
10:06 PM
@alan2here read the mdn link I posted about cors-enabled images or put it on the same server, or use a data-url
 
...^
 
Ok, data-url might work
Cool, one moment
unpacking a string into an image, a "literal" image
I see the tainted error on the console
 
Yup, that's what I said.
26 mins ago, by Benjamin Gruenbaum
inb4 I know what your error is and it's a cors issue
:)
 
10:27 PM
I was having trouble with the line being too long, but I now have the image :) constructed from the string, as a literaal in the code :)
 
Great, glad I could help, good night :)
!!afk sleep
 
Night :)
TY
 
Sounds dramatic
 
10:49 PM
user image
2
oops
I accidentally the JavaScript article
 
genuine edit
I quickly fixed it
 
11:12 PM
@BenjaminGruenbaum I've just seen your edit to the question, it's great, an exaggeration to say I was sure about the canvas, that was supposed to be part of the question, but it looks good in the question, you were sure about using Canvas so it's not a lie :)
 
@alan2here BenjaminGruenbaum is afk: sleep for real
 
The message was for his waking tomorrow.
 

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