« first day (1888 days earlier)      last day (3064 days later) » 

12:10 AM
an AS ByteArray would probably be Int8Array in JS, right?
 
Probably Uint8Array
 
That sounds right, thanks
 
12:24 AM
There aren't any really good log (log errors to a file) modules on npm...
I'll have to bake my own in my framework
 
Hey, that's what I'm looking for. Yes, I searched for "log", "error log", "log file" on npm
 
didn't mean "have you looked" in general, moreso have you looked at winston :P
 
oh, no, haven't seen it yet
 
sorry I realize how that was ambiguous
 
12:26 AM
looks exactly what I was looking for
 
sup folks
 
sup
sadly 12 days won't be a thing this year. I am too busy to setup the software. I may finish rafflemon one day and will have to makeup for it (I know I'm not obligated, but I feel like it)
6
Sorry anyways.
time got away from me
 
I'd offer to do it, but there really isn't enough time to get it set up, so I totally understand
 
yea I need a day or so to get the software really ready for it
I won't have time for that until the 19th
which is already too late now
tl;dr work shit, and a lot of stuff needed to get done with very few people. which is why cap was also down for a time.
 
Does anyone here happen to know a lot about PayPal? They have like 10 different services that all have vague names and all sound like the same thing and half of them are deprecated or something.
 
12:39 AM
winston seems way too complicated for just simple error logging. Their api is ridiculous
 
your api is ridiculous
 
it probably is
 
Forgot to mention, every Paypal page on Google is a 404...
 
I've got a friend named Winston
and his API is quite ridiculous
and by API I mean his ability to function in a social setting
but, like, he's an engineer, so whatever
 
Mine probably would be too if my name was Winston
 
12:45 AM
for real tho
his parents are the cruelest type of parents
Big-city criminal defense attorneys
 
I've got a friend named winston..
he became a real big deal one day
 
is this song lyrics
 
First Lord of the Admiralty or something
long story short, he was fat
 
is his last name Churchill
 
:P
 
12:47 AM
I think I've met the guy before
My friend may or may not have been named after him
 
So..anyone remember that time I said my answer went unnoticed?
47
A: How loud would the Sun be?

Sir CumferenceThe Sun is immensely loud. The surface generates thousands to tens of thousands of watts of sound power for every square meter. That's something like 10x to 100x the power flux through the speakers at a rock concert, or out the front of a police siren. Except the "speaker surface" in this case is...

 
If I debug this code, I could not see numberInput going readonly for 10 sec. I just get a blink of red color.
 
It got 47 upvotes...
 
Wait is paypal only available in US, UK, and CA? What kind of hell is this?
 
@SirCumference I upvoted it
someone in either this room or another one reposted a link
 
12:52 AM
@ShotgunNinja thanks!
really? why?
 
because it's fucking awesome
you really went above and beyond on that one
 
Thanks, had to nerd out XD
But it was a pretty cool thing to think about.
 
1:20 AM
I created test with toastr.js
and created toastr.classic :D
 
cheers m8
:)
 
:)
 
@SirCumference sir cumference I have missed you
you should join us more often
 
@SirCumference Did you know that a 1100dB sound would create a black hole the size of the universe?
 
kendall that's crazy talk
 
1:25 AM
its true
enough energy to make that sound for 1 second is enough energy to destroy the observable universe
 
1:37 AM
i trust you doctor frey
 
1:47 AM
Hmm, conflicting information. Do 3-pin case fans have speed control or not?
 
sir cum ference
 
@KendallFrey EUHHHHHHH i don't think so
well, perhaps
not sure and too lazy to research further
 
2:35 AM
> A: Pagefile.sys can go on [a RAM disk].
> OP: Why would I need to put RAM into RAM...? That's useless.
lol
 
...yeah
about that, lol
 
Any improvements in this OOJS code?
 
Because everyone knows you measure downforce in foot-pounds
 
3:04 AM
@overexchange You should read through this
It's the best way to implement inheritance in javascript imo
 
ok
@Meredith I am new to OOJS, so I wrote that code. Do you think the inheritance code looks fine?
I will read that book today, for sure
In general, do you write OOJS code in JavaScript or Does JQuery also help you to write OO code? am new to this
Is JQuery used only for DOM access? Do we use JS for writing OO code?
 
Javascript isn't an object oriented language
So forcing object oriented principles on it isn't always the best solution
So in general you don't write OO javascript
 
am not getting you. Don't we use JS function constructors to design inheritance hierarchy?
 
3:19 AM
Do you know about prototypical inheritance?
It's different from the inheritance in java, for example
 
yes, inheritance thru prototype object of every function constructor. this is what I did here
my question is, does JQuery syntax also helps in providing prototypical inheri or do we need to use JS syntax for providing prototypical inheri?
 
Just avoid jquery for now
You don't need it
 
3:37 AM
I ended up writing my own simple error logging. Way smaller than something like winston, and writes lines similar to this real one:

[12/16/2015, 9:33:37 PM] [error] 500 Internal Server Error: /users/me
 
3:47 AM
@Meredith How handy is it to use design pattern using JS amidst designing a website? Do you know any such website desgined?
 
4:02 AM
@overexchange Knowing your design patterns is incredibly important
You won't need all of the ones in that book, but you should be writing purposeful and deliberate code
 
4:48 AM
Hi~
I see a SO question in the close queue, with a very simple while loop code. The question is how to make it not a loop (i.e. simple remove the while). What should I do?
 
I usually just ignore questions with that level of stupid.
 
So I take that as "Skip" (roll eyes)
 
I also just don't bother with the review queue
 
@overexchange While using constructor will result in prototype inheritance, that is just because JS does not have other inheritance. When we directly talk about prototype inheritance as an alternative to constructor, we mean Object.create and related extension such as the special __proto__ property. This way we skip the constructor/new mess and keep hierarchy clean.
@overexchange David Walsh wrote some pretty good blogs about it: davidwalsh.name/javascript-objects
 
0
Q: Comparing the jQuery dates between from date and to date not working as expected

MahadevanCurrently working on jQuery dates. Where I need to compare the from date and to date in the clone rows also for example if I select from date as 12/01/2007 and to date as 12/01/2005 an alert should come your from date is greater than to date. In the second scenario if the user click add row butto...

 
5:05 AM
jQuery dates. Hmm. That's new. The wonder of javascript, I suppose?
 
oh ok
:)
thanks for the editing sheepy :)
@Sheepy
it looks good
 
So sayeth the woolly one.
 
Hope it helps. I personally would not debug it unless the code is simplified (at least trim by two third), but I have learned that there are better hearted animals on SO.
 
:)
can you please explain me how you want to simplified the code because those code are required for comparing :(
 
@Mahadevan I'd start with more modularity. You're mixing element selection with date parsing / computation. You should be able to just look at it and see obvious sectioning.
It's quite hard to even grasp where to start as it stands so many won't bother.
 
5:19 AM
ok
 
As far as your problem is concerned, we don't need to know you want to alert an error or empty the input (which is bad, by the way). We also don't need job title or employer input.
You are dumping your code, instead of trimming it down to a minimal reproducible case.
In fact, the process of trimming down a case often reveals the real problem, even to us. So it will help if you try to do that.
 
^^
The other thing is you haven't actually stated a problem. More a specification.
 
ok thanks @sheepy and @rism
i will modify
again
kindly please check this
is this what you want
 
no
 
kindly please check this
sorry fo the above
 
5:28 AM
no. you're not getting it. this goes back to the other night re: debug. (i think it was you)
start with stating the problem
 
ok
 
Perhaps you can start by totally removing the HTML and CSS and datepicker, and focus on the diff code with hard coded dates.
This should cut the code by half by my estimation.
And allow us to focus on the logic instead of having to mentally filter out the date pickers.
 
sorry guys i have removed code which is not required

but i have the code for cloning because the problem is happening there also
 
can I modify installed NPM's on node?
 
Sure
If you're asking what I think you're asking
But don't
 
5:35 AM
well, I tried just going into the installed NPM directory, and adding console.log('testing');, but it doesn't see to have worked
 
npm just download code to your project folder. You can modify them, but it will break when you manage (e.g. upgrade) them with npm in the future, either manually or through a build script.
 
You did something wrong then
 
@Shea global or local?
 
Yeah. You did something wrong. Debug time. Good luck.
 
cause you may have both installed and you modified the other one
 
5:37 AM
it's local, maybe I put it in the wrong file
 
Btw if you're trying to fix a bug, fork it on github and then submit a pull request
 
I'll try just copying the file over, and require('file.js');
 
I heard Node.js v5.2 is out.
 
no, I'm just trying to make a slight modification for oauth-signature, where I require to be able to define my own parameter order
 
@RahulDesai Uh, yes. Kind of. Latest stable is 5.3
 
5:39 AM
oh ok
 
@Shea Just wrap the function
 
@Shea Can't you use a wrapper function or adaptor pattern?
 
kinda embarrassing, but I'm way behind on learning design patterns
but now that you mention it, I can do that
 
thanks
 
5:43 AM
@Meredith Thanks for sharing that.
That guy is badass.
 
wrapping it is going to work, thanks for the idea :)
BAM! got it
feelsgoodman.jpeg
 
@@AwalGarg lets finish zifingo this weekend
and be done with it ?
 
6:06 AM
i am totally new to svg and html. Wanted to created multiple rectangle also adding drag event handler so that rectangle could be dragged. Can anyone help me out with the same. jsfiddle.net/Lcquxurb
 
6:20 AM
@AwalGarg venkatesh sir will call you
 
@Abhishrek AwalGarg is afk: night
 
code review.
 
6:37 AM
hi guys! good morning!!
 
Good morning guys.
 
hi Jacques
 
Hey @coderz
 
Hi guys
 
@jrhamza 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.
 
6:45 AM
Hey @jrhamza
 
Hi
I have one issue with saving a base64 string (pdf/csv) to file locally in Safari
is there any workaround for that? please help. and thanks in advance
I had posted stack overflow : stackoverflow.com/questions/34158473/…
 
6:59 AM
@KarelG I placed it within the loop. It doesn't return any errors anymore and doesn't work either -_- :'(
 
I just finished a scary-effective sms flooder poc
I sent myself ~25 "hello"s in 20 sec, using a single throw away phone number.
Tomorrow I'll have fun with it, by adding more throw away phone numbers, and randomizing the phrases
 
0
Q: Comparing the dates between from date and to date not working as expected

MahadevanI need to compare the from date and to date in cloned rows. For example: If I select from date as 12/01/2007 and to date as 12/01/2005 an alert should come your from date is greater than to date. If the user click add row button in the from date if the user gave 12/11/2004 and the to date as 12...

 
7:16 AM
what exactly happen in javascript injection in HTML
 
@Tirth you should be more precise in your question. A javascript injection is just having some arbitrary javascript being executed in the browser of another user when it shouldn't be. The way to achieve it depends on the site and its flaws
 
hmmm
thank you :)
 
7:35 AM
Non-minified Angular.js v1.3 is about 1MB.
Wow.
 
sahi
 
Why i cannot pass the last element this way?
 
1 message moved to Trash can
@Achu Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
Sorry, here it is jsfiddle.net/ok9dpe4r
any idea?
 
1
Q: Image filename not getting inserted in db using Multer

nickBI tried using multer as was specified in a tutorial. Then realized that it does not work in the same way now as it was used to be. So I checked the github page of multer and followed the documentation. However, my image though getting uploaded, the filename is not getting stored in the database. ...

someone have a look at this
i got stuck
 
8:18 AM
When using AngularJS, is it possible to coerce a string to boolean like this:
`data-ng-class="'red-border': !errors['full_name'];"`
 
@HassanAlthaf Don't know.. why don't you find out?
 
I tried that, and it doesn't seem to work.
I was thinking of a way to do that
 
what makes you sure it didn't work?
what is the value of errors['full_name'] when you test it?
 
I get a long ass error.
It's a string error message.
Since JS coerces any string which is not null or undefined or 0 to true, I tried to do that
 
well then there doesn't seem any problems from that perspective
Try this:
!errors['full_name'] ? 'red-border' : ''
actually no, try
!!errors['full_name'] ? 'red-border' : ''
 
8:25 AM
@Neil That didn't make much sense. Use the !!/help command to learn more.
 
@CapricaSix wasn't talking to you
 
@Neil That doesn't show any errors, neither does it apply the class.
I'm assuming that this is not allowed.
 
if it weren't allowed, I assume it would show some error
then do this:
true ? 'red-border' : ''
Does that apply the class?
 
@Neil It was a CSS issue. Had to do !important to override the existing color.
@Neil !!errors['full_name'] ? 'red-border' : '' worked perfectly. Thanks.
@Neil Whats the idea behind !!?
Wouldn't it coerce the string to true, and then NOT it? That will bring false. Oh.. then you make it to true. Ok, got it, Thanks. @Neil
Correct me if I'm wrong.^
 
crl
quadruple combo ping
 
9:11 AM
why is that design patterns book starred, it is mostly useless now
(just warning/mentioning, not saying "don't star")
 
9:23 AM
why it is useless?
I was planning to buy
 
do you have a link for that book?
 
oh yeah just noticed
 
8 mins ago, by Mr_Green
why it is useless?
 
does it cover es6? it doesn't look like it does
 
9:32 AM
no idea
 
@rlemon you don't have to apologize for not giving out expensive things for free. It was generous of you the last times. No one is holding it even remotely against you - <3
 
Hi guys, what do you add to return type for a function in javascript in xml comments for intellisense to work? e.g. when I return a number, I add type as Number but for an object, do you write Object or the name of type like Customer?
 
9:49 AM
@GeoPhoenix No, it doesn't exactly cover ES6. But the patterns are useful and apply to ES6 nonetheless.
 
@Mr_Green because the design patterns employed in that book are now obsolete. JS tooling has matured out of module revealing pattern, ES6 has classes and ES7 has decorators. You should rather learn about those patterns in a language agnostic way, instead of thinking strictly in ES.
That book hardly talks about what we see pretty much everyday now. Promises are one really good example for that.
It might have been an excellent resource when it was written, but not anymore.
 
True. Any new recommended resource for design pattern or js pattern?
 
Just learn application architecture methodologies separately - language agnostic.
 
Yes. I also prefer something more abstract and away from a specific language. Gang of Four or Head First? (They have to start small and start somewhere...)
 
I haven't read either of those. I have been meaning to, but I have heard many bad things of Head First. Anyways, I don't think I am qualified to give an opinion on those two.
 
9:58 AM
@SiddharthP "Intellisense"? You sound like a C# dev.
 
Ok. Fair enough. Perhaps I should put up a link to wikipedia's design pattern page? :)
 
@SiddharthP You don't. JSDoc is a way to add annotations to indicate your intentions, and some IDEs can pick this up and process them to help you write code. Once you do anything a little dynamic, all IDEs fail and won't make sense of it anymore. Including IDEA and VS.
 
Free design pattern guide: https://en.wikipedia.org/wiki/Software_design_pattern
If you don't like it, you are welcomed to improve it!
 
@RoelvanUden yeah I'm a .net dev using VS as IDE. I'm using an extension to add xml comments inside a function. It doesn't use JSDoc though. I can see the summary, param details but no return type info or description in the intellisense.
 
@ssube Not possible, order from top to stick to SVN..
 
10:03 AM
@AwalGarg agreed
 
@SiddharthP /// <summary> kind of notation is truly awkward to see. Why not use the standard, JSDoc, like everyone else? JS is not C#, don't treat it as such. VS2013+ understands most of JSDoc anyway,.
 
@RoelvanUden yeah I realised it later that VS 2013 uses JSDoc. I was using this extension before and it had this update for 2013, so I updated this and still use it. I'll try JSDoc now. So, I believe we can just write return type as Number, Object or name of the constructor function, right?
 
Usually yes. Why not just try it?
 
@SiddharthP Yes, you can do that. Note that there are different flavors of JSDoc, so see usejsdoc.org and developers.google.com/closure/compiler/docs/js-for-compiler. I prefer the latter as it more clearly documents your intentions, but it's a little harder to understand. In your case, simply make a @return {number} The result of this sum kind of annotation.
 
@RoelvanUden ok thanks
 
10:59 AM
can i split the value like this
var chktoDate = $(".endDate",$(this).prev().val().split("/"));
 
<!doctype html public "display of affection"> what on earth is this
 
@shortCircuit Well... a doctype that is good enough to force browser into standard mode?
 
the above code is correct
can we split the value like that
because when i check this i am not getting
in the console
 
@Sheepy no idea .. but I am not finding anything fruitful .. letme chach what that public keyword does.. I mean with some url it would have made sense :P
 
@Mahadevan The split part is ok. But you are essentially saying $( ".endDate", [ "12", "17", "2015" ] ) which does not make sense to jQuery.
 
11:08 AM
that hat event thingy, do i get to keep the hats after the event or do they disappear? feeling like playing tf2 once again
 
oh wait
public was used in html 4 for doctype declaration
 
@shortCircuit That identifier part may be uri. If it is not url it should starts with "-//" or "+//", e.g. "-//W3C//...". So... oh wait you mean the word "public"? Yes that is valid.
@someFolk They will disappear.
 
@Sheepy thanks! that sucks tho
 
actually i am trying this
@Sheepy
i am checking the comparision
 
That... is quite different from what you posted above.
 
11:12 AM
sorry for that
 
I think a number of us have told you multiple times that you need to learn how to debug javascript.
!!tell Mahadevan google youtube javascript debug
 
Try the videos. They are shorter than the time you have spend bashing your head.
 
11:34 AM
hi
 
@AshaKoshti 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.
 
this is my fiddle to generate pdf using js
but the onload function is not getting called everytime in loop
any one around?
@CapricaSix
 
@Adempiere_HotCake 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.
 
crl
!!would you mind helping him?
 
@crl Certainly not
 
11:47 AM
why does jquery val() returns a string from a type range input and not a number?
 
I guess because DOM attributes are defined as DOMString.
 
any one can answer mine question
?
 
and why doesn't a type number return a string if the value is set to a string
 
@madalinivascu please help me with above fiddle
 
I guess because DOM attributes are defined as DOMString (why aren't you parsing yourself?).
 
11:50 AM
@jAndy
anyone please help me
 
@AshaKoshti do not ping users randomly for help. They see the question and will help if they feel like it.
 
crl
v irr. ping/pang/pung :p
 
Hi all
 
but no one is helping
so i m asking to them
 
12:01 PM
When nobody is helping you with your problem, this may due to one of the following options: A) They don't know, B) They don't care, C) You're annoying, D) They are busy, or E) all of the above.
 
:o
lol every one except me is a javascript RO
where do I send my CV?
@KendallFrey how did you get that hat?
> post or vote on Dec 18
 
@Neoares I guess the room meeting
 
Hi , can i add properties in an object through recursion ??
 
!!wat
 
@CapricaSix not that gif :(
 
@Trasiva NO ONE MESSAGED ME
 
no one ever massages me
 
none ever likes me
 
@KendallFrey starts massaging
ew, wtf
 
12:39 PM
@ozil 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
 
1 message moved to Trash can
 
Please don't post the same question/link more than once, it gets noisy really quick.
 
@ozil She's a bot
 
But anyways, what is your question?
 
12:42 PM
ahh ok
 

« first day (1888 days earlier)      last day (3064 days later) »