« first day (1847 days earlier)      last day (3086 days later) » 

12:00 AM
@CSᵠ well the test is, boot the system, let it communicate home, kill the network connection (power down the switch). timing has nothing to do with it, built a rig to kill the switch at a standard time after boot...
20% of the time (tops) it fucks with the serial comm.
 
wow, so much can fail at each stage
 
yea 3 days testing
 
braek it up into smaller and smaller tests
 
tomorrow I'm going to start removing more elements
problem is I cannot consistently make it happen... I hate that.
2/10 isn't always 2/10, I might go 20-30 tests before it fails.
I still want to learn how to consistently make it fail, because then I can focus closer on the real solution. :/
 
crl
stupid question, when uploading image to your browser, then to a server, is base64 the only possible format to send them? jsfiddle.net/crl/m7whsods/9
 
12:13 AM
@crl Binary?
 
crl
I thought so, but can you make it with this fiddle?
 
readAsBinaryString?
 
crl
nice, thanks
 
If you're only dealing with images, readAsDataURL is more than fine.
 
is there a way to refer to the top of my browser using javascript?
 
12:21 AM
@JaydenFreh the title?
 
crl
@BenFortune thanks jsfiddle.net/crl/m7whsods/11 (but url gives the same than base64)
on chrome46
 
no like under where the bookmarks would be. What I am ultimately trying to do is have my nav bar's position property switch from static to fixed when the top of the browser gets to it(so that the user does not need to go all the way back up). I just dont have a way to refer to the top of the window(and everything ive seen uses jquery)
 
well if it is in the dom it is an element
you can refer to it by however it would identify itself.
 
@crl readAsDataURL is base64...
 
crl
ok, til, perfect, guess I'm tired
 
12:25 AM
@ivarni I'm gonna start saving money for a trip to Norway; any location suggestions?
 
thanks ill looks into it
 
@JaydenFreh first, develop the top nav as you would. then you need to get the wrapping element and change its position (css/style property) from position: <whatever> to position: fixed; on the scroll event when the page scrolls past the position you predefine.
that, in a nutshell, is how it is done.
 
12:39 AM
@JaydenFreh jsfiddle.net/0wLd6x5e feel free to use this for reference.
 
any former c++ guys here?
 
crl
ok, those event bubblings are hard..jsbin.com/pujabew/6/edit?html,css,js,output I'd like to make sure I can drop the blue thing only in lightyellow things, not in the intermediary white div (currently it can)
 
use capture
not bubbling
 
crl
what's that?
 
addEventListener(evt, fn, useCapture=false)
change that to true
 
crl
12:42 AM
oh that way, oh that argument, thanks a lot Rob
 
capture the event
 
bubbling as a default is stupid. I wish I could control that with a boolean flag in React, but I have to use event.stopPropogation
 
@crl not sure if it will work, but I think it will?
but it is worth testing
 
@abdul-wahab You might want to change your profile bio; most people wouldn't refer to python as "creamy"
 
1:20 AM
Babel 6 (with es2015 + stage-0) breaks on exporting classes with static properties: github.com/babel/babel/issues/2700
hell, it seems to be just plain broken.
Yeah, fucked to high hell; have to revert
 
1:50 AM
@Nick I forgot to ask, how was the cider?
or I did, and forgot I did
 
Very strong cinnamon/clove flavour, but pretty high alcohol content, so just chug it, and you'll do fine
I've been too busy to start another batch, but I'll be going with a recipe next time
 
might I suggest one of my mead recipes?
 
no blindness?
 
mead === honey wine, but you can carbonate it
@Nick ~$25 === ~23L of mead
ingredient wise.
depending mostly on how much honey costs you at the market
 
Well, I'm gonna do another cider again, but I'm gonna get a second carboy and do a mead
I'm not worried about price
 
1:55 AM
I'm 8 carboys strong and like 5 batches in
so you can ask me anything you like
 
What is dark energy?
 
6 in constant brew, 2 rotational
 
How do magnets work?
 
@Luggage wind fire water earth fucking magnets how do they work
@Nick DAMMIT
 
great minds
 
1:56 AM
I saw you post it, but I had to finish
anyways, if any of you are ever in my area, I have like 2-3L of booze to send you home with
at any point in time
(fuck tinder, I'll make friends with alcohol)
@Nick I have recipe for 3 successful meads, and two ciders. ping me if you ever want them
actually 1 cider
you know the other
 
Anyone here wanna take a look at jsfiddle.net/1mxd8qsz/4 and tell me why the hell my button is not being disabled when the form is invalid? :( It's using the "ng-disabled" directive
 
@rlemon Can you ship it to the boonies?
 
 
3 hours later…
5:14 AM
Just hit 200 upvotes on answer! All I really did was make a GIF
Hilarious how SO works
 
I want to redirect to different page after 2 seconds when page appears
setTimeout(function(){app.initialize();}, 2000); I have tried this
but its not working
 
I need help with this to create a click library github.com/kamlekar/HTML-Skinning-Boilerplate/blob/master/site/…
The main aim of this library is to let the devs not write JavaScript after including this library
they just need to use the necessary classes and attributes in HTML element itself.
 
Like jquery
 
not even close to jquery
This library is actually meant for HTML developers who are poor in JavaScript but good with HTML and CSS
^ I have many in my office
 
Why don't you teach them JavaScript then?
 
5:25 AM
yes I will but don't you think a small library like this will be helpful in all projects?
 
Not really, no
 
can anyone suggest me anything where i am doing mistake
 
please explain why?
 
Because you can't build any real application using click events and text replacement
 
My company actually deals with only HTML Skinning (least usage of JavaScript, mostly we avoid it)
In such cases, adding a simple library like this will be helpful. I think?
because HTML devs just do add classes dynamically but not write any functionality
 
5:28 AM
Might as well teach your developers basic JavaScript then
 
I will but we try to avoid using JavaScript because it is not related to HTML dev (providing Static content)
but for things going faster in all upcoming projects, I am writing a HTML Skinning Boilerplate
which holds this small js library, which they just need to include and handle clicks by providing the class names and necessary attributes
but as I am not good with JavaScript, I am asking for help here to contribute to that library.
where can I ask for help to contribute?
 
For starters, you could ask for a codereview: codereview.stackexchange.com
 
@NakAndroidDev Your description of the problem "not working" makes it difficult to suggest anything. Can you define "not working"?
 
but I didn't complete it.. not even 20%
atleast if someone gives me idea of how to do it, I will do it on my own
 
@rism setTimeout() delay callback is called immediate when page loads. I have tried with 5000 timeout but it also has same result
 
5:40 AM
Where are you calling it from?
 
in body tag
 
Anyone know a node module for rendering a folder structure to html?
 
1 message moved to Trash can
@NakAndroidDev Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
<body>
<script type="text/javascript">
setTimeout(function(){app.initialize();}, 5000);
</script>
</body>
 
Can anyone help me with dynamic control add and delete issue?
 
5:43 AM
@NakAndroidDev well there you go
you likely want to use onload event which will fire after your page is initialized
 
how can i fix that
 
152
Q: window.onload vs <body onload=""/>

ManuWhat exactly is the difference between the window.onload event and the onload event of the body tag? when do I use which and how should it be done correctly?

 
@phenomnomnominal I didn't get you
I do know some node modules, could might help you
 
@Mr_Green He wants something like ls for browsers
So if index.html is missing, it'll just list all the files and directories
 
nope. no idea
 
5:52 AM
@NakAndroidDev setTimeout will push the function you specify onto the call stack after the timeout period. Because you inlined the call into the body the timer starts running the moment the parser encounters it. So your time out will be from the time the script tag is encountered not from the time the document is deemed loaded.
 
what could be the use of such requirement?
 
@Maurize peace :D
 
@rism ok thanks let me try this
 
@BenjaminGruenbaum I am gonna blog about this. I got 1 more than you. headlines on way. "I take all your jobs" :D
 
6:08 AM
I got 14 actually
 
@SagarLimbani 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.
 
YES! YOUR DOMAIN IS AVAILABLE. BUY IT BEFORE SOMEONE ELSE DOES.
Woohoo! This is it. I'm going to make millions.
 
i build html canvas for drawing purpose it's work fine in desktop but problem is when i use mobile and ipad two line are join
hello
 
crl
6:29 AM
slept only 6 hours.
 
any one help me
 
@Sag Could you please give us an example on jsbin.com or jsfiddle.net, with the minimal amount of code necessary to reproduce the problem?
 
7:28 AM
@crl did you make that command?
 
crl
examplepls?
 
o/
 
crl
 
@crl yep. what is the name? also edit it to to add the SSCCE link
 
crl
!!info examplepls
 
7:29 AM
@crl Command examplepls, created by Stephan Muller on Fri, 29 May 2015 13:19:46 GMT, invoked 1 times
 
> invoked 1 times
nice
 
crl
I think the invoked times is by its owner only, because chat.stackoverflow.com/search?q=examplepls&room=17
 
!!info examplepls
 
@AwalGarg Could you please give us an example on jsbin.com or jsfiddle.net, with the minimal amount of code necessary to reproduce the problem?
 
crl
!!live
 
7:31 AM
:(
 
crl
:<
 
@AwalGarg Command examplepls, created by Stephan Muller on Fri, 29 May 2015 13:19:46 GMT, invoked 2 times
@crl You do not have permission to use the command live
 
@crl ^^ increased :D
 
crl
weird
ah it's by the one who did !!info, smart bot
 
no, I think it resets everytime cap is refreshed
 
crl
7:33 AM
oh right :/
 
@CapricaSix i am not able to upload jsfiddle.net .can i put my code here
 
I want to replace requirejs with system.js, i see different files in system.js/dist folder, what are the purpose of these files ? github.com/systemjs/systemjs/tree/master/dist
 
systemjs is not requirejs
 
system.js vs ** system-csp-production.js** vs system-register-only.js ?
 
neither is it a drop in replacement for requirejs
 
7:39 AM
@AwalGarg i know, but it can load AMD modules, and i want to gradually move my project to es6.
 
then use babel
 
@AwalGarg stackoverflow.com/questions/33332911/… (it is a drop in replacement).
@AwalGarg i will, but my project is big, can you explain the different between system.js, system-csp-production.js and system-register-only.js ?
 
@AminRoosta that's not what the answer says
 
@AwalGarg one of the comments said **


I got it working. The problem was that the define function and the require function was not available on the global scope. I had to do like this: window.define = System.amdDefine; window.require = window.requirejs = System.amdRequire; **
so i think they got it working (right?)
@AwalGarg
anyone know the difference between .js files in system.js?
 
crl
can't read and type the morning, also don't overbold
 
I am using promises to perform XHR from angularjs. I perform an ajax call from my controller which calls another ajax function. If this is the case, how do I notify the controller when the second ajax request is complete?
 
@AminRoosta I am not sure you understand how module loading works in js/browser land. Also please tone down the bold text, we can read :) AMD is different from es6 modules.
systemjs implements the obsolete es6 dynamic module loading spec.
 
hello
 
@AwalGarg can you give a link, (you mean i should not use system.js?).
 
The .then() case of the first ajax call is handled inline, and inside it I'm performing the second ajax call
 
7:45 AM
@AminRoosta help me
 
@AminRoosta You can use whatever you want, but you should not use systemjs the way you think you should. If you want to use es6 modules, use babel.
 
@SagarLimbani Sure, let me read your Question.
 
@AwalGarg thanks.
 
babel will transpile the module syntax to systemjs System calls (among other possible options) and then systemjs will do the magic.
 
7:46 AM
Don't close it as dupe though.
The linked question is a different problem.
 
@Nick Depends on what time of year you want to go, but generally I find western and northern Norway to have more interresting nature (dem fjords). Northern is great both winter (aurora borealis) and summer (midnight sun). I know lots of tourists enjoy Oslo but I find it a boring city, possibly because I spent most my life there. Are you looking for hiking/trekking or do you prefer seeing things from a bus or a boat? And also season matters, so spring/summer/autumn/winter?
 
why canvas line drawing automatically join together in html javascript
it's happen only in mobile device
 
Are you using consecutive lineto calls?
 
1 message moved to Trash can
@SagarLimbani Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
ok sorry
 var onPaint = function () {
            if (tool == "pencil") {
                ctx.beginPath();
                ctx.moveTo(last_mouse.x, last_mouse.y);
                ctx.lineTo(mouse.x, mouse.y);
                ctx.closePath();
                ctx.stroke();
            }
 
7:53 AM
Hm
 
crl
I guess closePath closes the path
 
I'd guess the same
 
but it'only happen in mobile
 
Maybe the canvas implementation detects lines that share end points, when rendering
 
i don't want to join two line when drawing
 
crl
7:58 AM
just try without that closePath, but I suck at canvas..
 
i am calling on touchstart and mousemove
  var onMouseDown = function (event) {
            var elements = (allElementsFromPoint(event.pageX, event.pageY));
            for (var i = 0; i < elements.length; i++) {
                if ($(elements[i]).hasClass("slide-draggable")) {

                    $(elements[i]).draggable();
                }
                else if ($(elements[i]).hasClass("slide-canvas-layer")) {
                    if (tool == "pencil" || tool == "brush") {
                        canvas.addEventListener('mousemove', onPaint, false);
 
Are you aware how often the touchmove / mousemove events are called per second? I wouldn't be able to tell individual lines apart like that
 
crl
why don't you pass arguments in onPaint function? like an event? where are last_mouse, mouse defined
 
which type of argument
canvas.addEventListener('mousemove', function (e) {
                e.preventDefault();
                last_mouse.x = mouse.x;
                last_mouse.y = mouse.y;
                var offSet = cumulativeOffset(this);
                mouse.x = e.pageX - offSet.left;
                mouse.y = e.pageY - offSet.top;
            }, false);
i define mouse.x and mouse.y
 
crl
but they are defined in another place, than the touch start event
 
8:10 AM
i take all event Lister
 
crl
and what is mouse?
 
i declare global variable to store x and y var mouse = { x: 0, y: 0 }; var last_mouse = { x: 0, y: 0 };
 
crl
shouldn't use global vars when they are shared like that (by either mousemove or touch)
you can access those positions in the event itself, each time, so do it for each listener
 
can i give you my full code
 
crl
only if it's a jsbin or fiddle
 
8:14 AM
i can mail you?
 
crl
no
 
ok
i am stuck
 
crl
use some WD40
 
i have my custom js how to upload in jsfiddle
 
crl
if you can't do that, we can't help you, use plnkr if you need maybe
 
8:19 AM
ok
 
8:36 AM
Okay so i cannot use sourcemaps
 
Okay so I can't find my stress boll
 
crl
*a
 
@ssube ftr, I just found that prepending \ skips any alias check :D so \uptime would execute the real uptime, not the aliased version!
 
@AwalGarg and I just found my stress boll.. WIN-WIN!
 
@AwalGarg any idea how to use sourcemaps
for our specific usecase
 
crl
8:47 AM
!!urban boll
 
@crl [Boll](http://boll.urbanup.com/2801054) A mother fucking bad ass with a big dick.

A man who gets a lot of pussy

Some one who cums a huge load
 
@Abhishrek the sourcemap package doesn't work?
 
@AwalGarg sourcemap works linenumber column number
but we don't have them :-| remember ?
 
hmm, well you aren't really doing traditional transpilation. so sourcemaps don't look like a valid choice for this.
@Abhishrek why do you want to map it back to source text anyways?
 
@AwalGarg I don't want it to map to text
 
8:50 AM
then?
 
@CapricaSix Lovely, if I only knew it before I miss spelled :D
 
I just want the path to the node responsible
remember i can edit code in realtime thanks to majestic v8 ;-)
now its obvious that I should be able to show errors at the exact node :D
 
nvm
 
and do what with it ?
 
err, wait
 
8:51 AM
It will map it to line x col
I don't have line x col
I have 0.path.1.subpath pattern remember ?
 
@Abhishrek store source text node marks in your json structure :D
 
no api in the module for that
 
you'd need to patch whatever code generator you are using, then :D
 
@AwalGarg erm i was talking about sourcemaps
 
@Abhishrek just don't use sourcemaps.
 
8:54 AM
@AwalGarg erm okay :->
 
crl
wa?.. bug on Chrome? output.jsbin.com/pujabew try to drag the "drag me" on the right, the preview appears far on the left
 
The logical think I thought was to parse the error log
for line: col
and then convert it to my own version of sourcemaps
but me hates non-standard shit :P
 
you want to get the point where error occurred, not the entire text mapping. so just add a hook to the code generator to mark what part of code points to what branch of the flowchart.
@Abhishrek do you also have any kind of error recovery in place for common syntax errors?
 
@AwalGarg yep ;-)
 
@Abhishrek then it will make the above a slight bit harder :D depending on how aggressively you recover from errors.
 
8:59 AM
@AwalGarg hangouts
 
crl
found a damn chrome bug, drag effects with float:left in CSS fuck around output.jsbin.com/pujabew/16 vs display:inline-block output.jsbin.com/pujabew/18
 
@crl we know that since forever
 
crl
well that was just me actually :) doing shit output.jsbin.com/pujabew/20 (it works even with float:left)
 
9:35 AM
well that's fishy in ff too
 
crl
@CSᵠ even output.jsbin.com/pujabew/21? (note: it's not 'sortable' yet, working on it now) it's just drag-droppable
 
just ugly
 
crl
9:58 AM
output.jsbin.com/pujabew/22 (move preview bugs again on "drag me9")
 
10:10 AM
Hello all
I've got this ng-click function that adds 1 to a property when a click is initiated
except, it adds 1 when the click is released
is there a way to add the one, on keypress down and not up ?
 
well that was easy :p
 
Someone can help me?
I have survey system, and when i make new survey i put the options as new line.. how i can add the options to db by new line?

my code:
pastebin.com/A2C9vX1h
 
@UnderPhp this is a php question btw
how are you doin it right now?
 
@CSᵠ in do it with php, but in php room no one available
sorry for my english
 
10:26 AM
how you do it in php now?
 
i dont do it with php now.. i want do it with php
 
crl
do teh code for me pls
 
@crl yes, yes, how?
 
$( "p" ).removeClass( "myClass yourClass" )
will this remove two classes ?
or is it removing myClass and replacing it with yourClass?
 
@emporio you literally copied that from the docs
just read it
 
10:30 AM
@emporio What makes you think it works that way?
Just... ugh
 
a confirmation that it works as is written would be comforting
"but data, you're not supposed to develop feelings.. !"
 
crl
!!s/Cla/A/g
 
@crl or is it removing myAss and replacing it with yourAss? (source)
3
 
lol
best !!s/ ever
 
@emporio or you could just fucking try it and not waste peoples time?
 
crl
!!learn tinyup <>**↑**
 
stahp
 
HAMMAHTIME!
 
:(
 
so so rudes
 
10:34 AM
!!why you do dis to me
 
@Neoares because you touch yourself at night
 
:$
 
@crl Command tinyup learned
 
!!tinyup
 
 
10:35 AM
5 messages moved to Trash can
 
crl
I'd like to find a fatter unicode up arrow
 
Bold doesn't work
 
rekt
 
 
crl
10:37 AM
!!tinyup
 
@crl
 
user3119231
Hello guys!
 
hi @Maurize o/
 
user3119231
@Neoares \o
 
\o.
 
crl
10:41 AM
oops ns
 
@AwalGarg :D
 
user3119231
Girls on the way to toilet during party
 
I didn't think I did particularly well :D
 

« first day (1847 days earlier)      last day (3086 days later) »