« first day (159 days earlier)      last day (48 days later) » 

00:00
Filtrr2("#imageToEdit")
it gives a different timestamp
so I think you can't create an instance with the same selector
what are your thoughts?
That I need to get my hands deep in the code
The Filtrr code is pretty sloppy
I have to manually call a canvas to data url transaction rather than a helper class to get the image
and the author had like 35 filters built in originally, and then he removed them for some reason
hasn't committed to the project in way too long
I will probably sound too quited for a while now
I'm studying the code in greated detail than before
Can I ask you something?
Where's the event handler for the buttons with the effects?
0
Q: How can I remove all these else-ifs that return if a chess square is attacked?

ajax333221I have this list of at least seven else-if, when their condition is met, I change the same boolean is_attacked to true. This should be simple but I can't figure out in what way I can achieve the same on a more readable way. if(request_is_attacked){ if(as_knight){ if(piece_abs_val==2)...

$$("[data-imagefilter-filter]", document).forEach(function($el) {
    $el.addEventListener("click", function(e) {
        global.ImageFilter.applyFilter(this.dataset["imagefilterFilter"]);
    });
});
do you mean that
or applyFilter?
That
Sorry
00:29
Change that middle line to this:
global.ImageFilter.applyFilter(this.getAttribute("data-imageFilter-filter"));
thanks
but that's not the issue, right?
Hopefully is
alright I made that live on the link I gave you
IT WORKS
00:32
Now, lets hunt for your issue
oh yeah
the line works
but the bug is still persistant
But it only works once
Yes, the bug you mentioned is there
But
Now I can see why it's there
And where
    this.f = Filtrr2(this.CANVAS_ID);
this line is the issue
It won't make a new Filtrr2 instance
It keeps trying to make an old one
so I thought
this.randomId = this.CANVAS_ID.replace("#", "") + Math.ceil(Math.random() * 9999);
00:42
var canvas = document.createElement("div"); <-- what?
um yeah
I've still got to improve this
Originally, if you remember, in the Image Filter question, I was using a different filtering library
Try changing it to canvas
that required a canvas input
I remember
no, it needs to be div
00:43
Weird
oh wait I think I got it
yep I got it
it's potentially broken though
this.randomId = this.CANVAS_ID + Math.ceil(Math.random() * 9999);
Why you need a random it?
45 mins ago, by Quill - HAT MANIAC
so I think you can't create an instance with the same selector
00:46
But you need to give a selector?
Sorry, I'm trying to think
you can't make an instance twice with the same selector
so each time the element is created, I'm assigning an incrementer to it
so each time it has a unique id
I got it so far
Why don't you try passing the image directly?
not an option
like I said
shitty library
but the best for applying different filters
00:54
That's a lot of contradictions there
According to the source code, you can pass a selector or an element
hmm?
so I tried that
but then I get
> Uncaught TypeError: Cannot read property 'nodeName' of undefined
img element or canvas element?
01:02
Try the img
oh hold up
I was using new Image
not document.createElement('img')
Oh, yeah
I forgot to mention to avoid using new Image()
2
Q: Using canvas drawImage in chrome extension content script

KepiI'm trying to use drawImage on Canvas Context in injected content script from my Chrome Extension. testCanvas = document.createElement('canvas'); testContext = testCanvas.getContext('2d'); var image = new Image(); testContext.drawImage(image, 0, 0); In Chrome 26 it works ok, but in dev...

Read that
01:06
Basically: Chrome is kinda sucking and is getting a bug-mesh
okay I'm still getting the same result
Weird
File a bug
Or use your aproach
1 hour ago, by Quill - HAT MANIAC
hasn't committed to the project in way too long
like years
The code is broken
The F function accepts an element
01:35
@Quill-HATMANIAC May I have your help?
I have a few CSS problems there
I can't figure out what the heck is going on
Thanks dude
the codepen
post it in main chat
I did
4 guys fell on it
(Well, it has 4 stars)
in The 2nd Monitor, 33 mins ago, by Ismael Miguel
http://codepen.io/anon/pen/obbRVV?editors=001
I have an idea
Pin it
(The message with the link)
Plenty of people will fall (if plenty come here)
02:33
0
Q: website with Java Script embedded in it

Paul KelleyI am working on a website using a revised version of my last question, a dice roller that gives an output on the face of a die, but cannot figure out how to include that into html I tried looking it up but to no effect. If you could please help me that would be great. <!DOCTYPE html> <html> <...

0
Q: Creating Animal Inheritance hierarchy using function constructor

overexchange Problem statement You need to create the Animal base class having four fields: 1) name 2) sound 3) owner 4) favFood You need to create a derived class Cat such that every instance of Cat inherits instance members of Animal. In addition, Cat adds a new instance mem...

02:56
Yo @IsmaelMiguel what does he mean by POJS?
03:10
Yo @IsmaelMiguel you should edit that new Image point into your review of my filtering question
 
3 hours later…
05:59
0
Q: A simple css selector parser.

jkriscould you guys let me know what's the problem of the code below. var classNames, tag, id, selector='div#pid.foo.bar'; classNames = selector.split('.'); // ['foo','bar'] id = classNames[0].split('#')[1]; // 'pid' tag = classNames.shift().split('#').shift(); // '...

 
9 hours later…
15:14
1
Q: How to properly handle java instant ajax request/respond with angular?

Jason ZI am trying to build a food search app. Technology I am using angular and spring. Currently I am using the yelp api, but its done in Java side. I think what I have achieved is really bad design, it works, but the data is not always get updated correctly. Here is what I've done: For java, I cr...

 
1 hour later…
16:42
-1
Q: Catastrophic backtracking issue with regular expression

Sayan PalI am quite new working with Regular Expressions and currently facing a problem regarding that. I am trying to build a regular expression that matches string in below format: OptionalStaticText{OptionalStaticText %(Placholder) OptionalStaticText {OptionalSubSection} OptionalStaticText} Optional...

-3
Q: Why my xmlhttp.status return 0 in Chrome but in IE work?

JohnnerI think the problem is related to CORS, but I not understood how. http://www.html5rocks.com/en/tutorials/cors/?redirect_from_locale <!DOCTYPE html> <html> <body> <h1>Meu Projeto</h1> <button onclick="math()">Current Math</button> <div id="teste"></div> <div id="status"></div> <div id="read...

 
1 hour later…
18:14
0
Q: Complex mapping from object to an expression string

Matias CiceroI should begin by explaining some context information. I'm writing a JavaScript service that handles communication between the client and a NoSQL database. The database is offering us a web API so we can do some operations on it, such as query, insert, delete, etc... Basically, we send the ope...

 
2 hours later…
20:39
-1
Q: Such code, Much wow, very FizzBuzz

Quill - HAT MANIACSo, I've written FizzBuzz for a dialect of JavaScript called Dogescript. It has the same functionality as JavaScript, it simply changes some of the syntax points: [A few from the language spec] shh [comment] - // [comment] very [var] is [value] - var [var] = [value] [var] is [value] - [var]...


« first day (159 days earlier)      last day (48 days later) »