« first day (976 days earlier)      last day (3975 days later) » 

2:00 PM
http://logopond.com/gallery/detail/196977 /
http://alextass.com/wp-content/uploads/2012/03/noa-free-freedoom-logo-design-alex-tass.jpg
 
@SimonSarris what's the bug?
 
@BenjaminGruenbaum I don't want to revive the argument as it's moved on (sorry...horrible connection problems), but the selectors were one example of a broken system.
 
Oh, I'm not good at typefaces. See if I can find a good existing one.
 
BEHOLD.
@Connor @dystroy
e.detail JUST KEEPS INCREMENTING
instead of saying the number of clicks (single/double/triple click, etc)
 
0
Q: embedding programming languages into other languages

series0neIn C/C++, there is a keyword that allows you to enter assembly language directly into a method. Example int Main() { __asm // notify the compiler that this block is assembly language. { push ax; xor ax, ax; int 33h; mov ax, 1; int 33h; pop...

 
2:06 PM
Where is normalised the detail property of the event ?
 
@Zirak There is no argument about it. Selectors are a pretty broken system in jQuery. Like I've said before, they solve some problems, but what jQuery uses them for is simply not one of those problems, querying the dom for nodes I creates is just retarded.
@SimonSarris I get sometimes 0 and sometimes 1 (Linux/Chromium)
 
@KendallFrey ok :)
 
I always get 1 in windows chrome
 
@BenjaminGruenbaum zero?
it should be 1
always 1, because you cant double click because the alert box interrupts you
 
behold! it doesn't work like I would have liked it to! tinker.io/269d2/2
 
2:09 PM
If you click somewhere else and mouseup on the canvas it gives a 0
 
@SimonSarris
> The detail attribute inherited from UIEvent indicates the number of times a mouse button has been pressed and released over the same screen location during a user action. The attribute value is 1 when the user begins this action and increments by 1 for each full sequence of pressing and releasing. If the user moves the mouse between the mousedown and mouseup the value will be set to 0, indicating that no click is occurring.
Do you move the mouse on IE10 ?
 
@Feeds Best embedding happens in JS
 
@dystroy Yes
Here's the bug, filed June 6th apparently:
 
tinker.io/269d2/3 works better if I limit you to only the most powerful force generated by the motion
 
2:09 PM
There exists a language jQuery which is embedded in JS ;-) .. guys thats a joke laugh pls
 
@SimonSarris Yes, if I click very fast on the canvas I get sometimes 0 and sometimes 1.
Chromium 21 /Debian
@copy I still get one.
 
@copy ohhhh thats semi-understandable
 
@SimonSarris There's not even a confirmation... Is MS usually reactive on bug reports ?
 
@rlemon \o hey brio
 
@dystroy MS is HORRIBLE with bug reports. Clipping is broken in canvas in IE10 (not 9) and their response was like "lol oh well next version"
I stopped submitting bug reports for Chrome and IE
they just don't care at all
I have like 9 open Chrome bugs still
 
2:13 PM
You were the one already talking here about the canvas cliping bug, right ?
 
in contrast the Firefox team is amazing with bug response/turnaround
Yes I think so
 
An engineer should explain them how this kind of automatic message is painful :
> Thank you for your feedback.

> Every piece of feedback we receive is important to us and helps us improve the quality of Internet Explorer. Unfortunately, we are unable to address your feedback during this release. We will address this issue in the next release of Internet Explorer.

> We continue to welcome more feedback, so please don't hesitate to report other ways that we can improve Internet Explorer.
 
@AmaanCheval @IvoWetzel @Loktar @rlemon and the rest can you guys send me C# & Unity tutorials ? (Wherever applicable ) keep pinging for week if u remember any
 
Somebody should tell them that due to Google discontinuing Chrome Frame we need them to fix the most important canvas bugs...
 
so the big question: What's the best workaround for getting single and double clicks on IE10?
 
2:18 PM
@SimonSarris debounce and count?
 
timers are an ugly solution :/
 
IE is an ugly solution
 
@Darkyen Read Skeet's C# book.
 
call IE10 a beta, and don't fix anything
 
@BenjaminGruenbaum its tooo big :-(
 
2:19 PM
timers look like an acceptable solution...
 
"if you NEED to use IE, please AT LEAST switch to IE9 mode. IE10 is buggy"
 
but imo double clicks aren't really a good UI thing. And how would you handle that on mobiles ?
 
If KDE got one thing right, it's disregarding double-clicks
 
where "buggy" is an euphemism for a bodily waste
DOuble clicks are useful for scoping selections
 
oh derpy me
I handle double clicks with a timer already on touch devices
 
2:22 PM
This makes me think I should try to test IE10, or look for more reports. I kept on IE9 on my virtual machines and I'm a little out of date regarding the state of IE...
 
I might as well use that same timer/distance code for IE10
 
click = place the cursor; dclick = select one word; 3click = select the whole paragraph
 
IE10 has loads more issues than IE9, but more HTML5 features
nothing important, though
 
@AlexanderKludt Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
just like form sugar
 
2:23 PM
and double clicks
 
@JanDvorak yeah thats super useful
 
"form sugar" ?
 
it's not
 
Why would I use my mouse to select text? That's silly
 
@Zirak depends on what you're holding
 
2:26 PM
var x:float = 3;
 
@SimonSarris ever done anything with cross origin resources on canvas?
 
turn off :-( from unity
thats Actionscripty not javascripty
 
@rlemon yes
but no circumventing
 
tl;dr I (think) cors is enabled, the .htaccess file is there and the mod_headers is installed
 
@JanDvorak The ducks in the bathroom are not mine
 
2:27 PM
but I still get tainted canvas on tinker, codepen et al.
 
what about if the html/js is local?
 
if the file is on the same domain you mean?
 
I mean take everything and put it on your computer to avoid any proxying of request by fiddle/codepen
no idea what they do behind the scenes
also have you tried testing it with: client.cors-api.appspot.com/client
 
tinker.io/8d4a9 cross-origin error here
 
Your computer is not local to codepen
 
2:29 PM
so its only on tinker.io, but with the same code
 
yea i'm testing on file://
 
@rlemon tried using cors - did not work out well. We are just using a local proxy script now to accomplish this
 
damn, cors clearly isn't enabled.
well wtf.
 
@AlexanderKludt CORS normally works. I have a few applications (not compatible with IE) which rely on CORS headers.
 
first 10 minuts in javascript (part of unity) and i have already realized thats NOT javascript atall
+= is overloaded... !wtf!
 
2:32 PM
@rlemon I wonder if it is because the initiator of the request is tinkrbox.net and not tinker.io
 
@dystroy I had to cover full cross browser so, well yeah that was the problem there
 
but that seems unlikely
 
What do you mean?
 
@SimonSarris didn't work locally
 
This is a interesting intro to js btw eloquentjavascript.net
 
2:34 PM
Is window.innerHeight the wrong size to set the size of a canvas which takes the whole window to?
 
I usually
height = canvas.height = document.body.offsetHeight;

but then you need some css.
 
jQuery is helpful for working with incompatibility like that. It's kind of bloat though.
 
html,body { height: 100%; margin: 0px; padding: 0px; }
canvas { position: absolute; }
@NoBugs did you just suggest jQuery for copy's problem?
5
 
+1 for what rlemon suggests - this works out nice
 
@rlemon ah well there you go
your cors is bad and you should feel... sad
 
2:35 PM
@SimonSarris I'm Native American... we don't know how to share right.
 
@rlemon I'm 99.9% it has workarounds for the funny height/width in IE
 
and i'm 99.9% that was bad advice. no scratch that.. i'm 100%
 
@BenjaminGruenbaum I might go with a Dell Vostro 3560. Found out a local store sells it with linux installed...it's not really as good as the system76 I wanted to buy, but it's decent. This is the closest one I could find on newegg: newegg.com/Product/Product.aspx?Item=N82E16834200635
I'll have to ask what distro they sell it with...
 
Fucking hell! If I ever again hear someone tell me that 16GB RAM is useless I'll go slap him.
 
@rlemon why?
 
2:36 PM
16GB RAM is useless (if you have a SSD)
 
@NoBugs because the 'workaround' is like 2 lines of code. not ~9000 lines of bloatware
 
@Zirak A friend of mine bought a Vostro and he's very happy.
 
@NoBugs Also, copy probably doesn't need IE support.
 
@copy Mhmm, I'd slap you less hard because you mentioned SSD at least.
 
2:37 PM
@copy 16GB isn't that much, I use up 16GB often.
 
considering IE10 supports the height well.. and he's dealing with Canvas...
 
@copy Have you ever tried to build Chromium?
 
@BenjaminGruenbaum I'm still sad I can't (as easily) get the one I wanted. oh, first world problems...
 
@dystroy so you are like a CORS pro?
 
2:38 PM
I use less than 4GB with 1 XP Virtual Machine open
 
@Zirak It's very decent for a dell.
 
@OctavianDamiean No, why would I?
 
@copy You use lightweight software, I use bloated software and don't care that it's bloated since I have the hardware to drive it.
I don't mind getting less price/value if I get a higher overall value.
 
@OctavianDamiean I've never had the need for more than 8GB
 
@AlexanderKludt What is this new image we've never seen here before?
 
2:39 PM
and I run tons of lxc
 
@BenjaminGruenbaum for NoBugs
as he probably never seen that one
 
@BenjaminGruenbaum How about less price and still more value? :p
 
jquery isn't doing much magic it seems jsapi.info/jquery/1.8.3/jQuery.fn.height#L11118
 
@CarlesAndres Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
2:42 PM
@copy How about an editor that understands code :)?
Also, multiple monitors with multiple VMs. Also, lots of browser windows.
 
@rlemon no. I've just set the origin to allow my applications when needed. Nothing fancy.
 
@FlorianMargaine Have you tried to build Chromium?
 
is there anything about my gist above that screams i'm doing it wrong?
 
@OctavianDamiean why would I do that?
 
@rlemon use node instead of PHP :P
 
2:44 PM
@BenjaminGruenbaum I have that as a command line tool, it runs every 30 seconds and I press two keys to have a look at the current state in my tiling window manager
 
Well, then I see how you don't need more than 8GB RAM.
 
@BenjaminGruenbaum OK. tell me how to serve this file (mp4) in node with CORS enabled for codepen
TELL ME! TELL ME NOW!
 
I'm using this line:

Header set Access-Control-Allow-Origin *
without the quotes around that start
 
suck suck.. beg.. beg... feeling of self importance
 
maybe you should leave those quotes out around that star in your htaccess, also have you checked if those headers are really being sent?
 
2:45 PM
nope
 
I never used htaccess for that... When I can avoid Apache settings, I avoid it...
 
@copy use tmux
 
well, then you should have a look - or just use jquery
 
@FlorianMargaine Why not tags
@rlemon Works fine, thanks
 
@copy I use both
tags are for windows, but I have a single tag for terminals
 
2:48 PM
@rlemon Use express, add a header to response object.
 
@FlorianMargaine Okay, but what advantage does tmux have now?
 
that should work, headers are fine so far
 
but it doesn't
 
what's the error ?
 
2:51 PM
now, does it make any difference that the file is in /demos/ (the mp4 file)
 
@c24w Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Unable to get image data from canvas because the canvas has been tainted by cross-origin data.
Uncaught Error: SecurityError: DOM Exception 18
 
just try a request directly against that file
and see if the headers are correct as well
 
says file not found
but it's the right url
If you navigate to it it works
 
what kind of query do you do ? A simple GET ?
 
2:52 PM
<video src="path">
then context.drawImage(video, 0 ,0)
 
hmm, does it work if you use an image instead?
 
CORS specify methods. There might be something to do for videos...
 
@copy dunno, I guess it's personal preference to handle terminals. It's lightweight and works nicely with them.
 
the issue is you cannot manipulate cross origin data
 
@Shiuyin Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
user1648409
2:53 PM
Hi, someone here who can help me with three.js? :/
 
do not ask to ask - just ask
 
Anyone using asm.js optimizations in Firefox yet? Looks useful.
 
user1648409
Ok - I have three.js code which adds a 3D Model to the scene, when using console.log(scene) it says scene has no 1 children, but render(); won't display anything. What am i doing wrong here?
 
I need a help.I have a problem with tinymce editor
Can anybody help me please ?
 
@Shiuyin a little code sample would help here
 
2:56 PM
@AlexanderKludt tinker.io/0d397
var loader = new THREE.OBJLoader();
loader.addEventListener('load', function (event) {
    model = event.content;
    model.traverse(function (child) {
        if (child instanceof THREE.Mesh) {
            child.material.map = texture;
        }
    });
    model.position.y = -80;
    scene.add(model);
});
loader.load('body.obj');

console.log(scene)
 
@Shiuyin put your console log into listener - this is asyncronous
 
@Samithaఠ_ఠ with Bananas and a dash of unicorn
 
threeD js? cool!
 
your scene will only have the model after the load listener was called
 
2:57 PM
@JanTheHuman Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@rlemon please help me after it
 
user1648409
@ Alexander Kludt: Yes, moved it int othe listener, still gets called, still outputs that scene has now 1 children (a Object3D) and still won't render anythign.
 
@Samithaఠ_ఠ no
find someone who's used the control first maybe?
 
@Shiuyin I'm not really an expert in three.js so maybe you need to trigger a render after you added the model to the scene?
 
ask a Q on main site, post a link here and wait
this is VERY specific question
 
2:59 PM
yes, that's the better solution
 

« first day (976 days earlier)      last day (3975 days later) »