« first day (1509 days earlier)      last day (3455 days later) » 

12:07 AM
@SomeKittens I thought you guys were going to be in TS?
 
We're using hangouts
go to Miaou for teh linkz
 
Is there a way to do something like var i = 0; i = i + 1 in jquery?
 
@Todd 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.
 
@Todd What part of that?
jQuery isn't a language, and doesn't have variables as such
 
@Todd in jq you'd write the last part: i++
 
12:15 AM
lol. I'm sorry, guys.
I'm not trolling; I'd just never used the chatroom before and was curious.
Seems to be active! Thanks!
 
@Todd jQuery is for DOM (not int) manipulation.
 
oh, god.
I'm sorry, room. I was totally kidding. Just testing how active the room is -- quite impressed with that bit.
 
hmmm
How could we create a stackoverflow bot?
in Node?
 
problem is SO is built in Asp.Net
 
@CS just curious; why should that matter?
I mean, what is this bot hypothetically designed to do?
 
12:25 AM
!!tell Apoph1s google stackoverflow chat bot
 
lol. Oh, man... I was almost done typing up my SO node bot into the chat input.
 
Someone just went a little star-happy
 
@monners JOIN US
 
@monners y u no hangout
 
12:36 AM
Want some fun? Here's Jeff Atwood encouraging the internet to flood the SJW block list with PRs: twitter.com/codinghorror/status/539927338352275456
 
omg
Writing a SObot in Node is hard :(
 
@CSᵠ :waves:
 
@RyanKinal :wave: back
 
12:53 AM
39 mins ago, by Todd
Is there a way to do something like var i = 0; i = i + 1 in jquery?
It really says something about this room that nobody seemed to think that was a joke question...
 
Right? I mean, I actually felt bad having asked it when the help began.
 
@Retsam We are trying to be nicer
that was covered in the last monthly meeting.
 
But... With that said, it DID indicate that the room is relatively active and attentive.
 
noooooooooooo
 
m59
1:01 AM
Is it normal that i have to do sudo gulp. Otherwise I'm getting EACESSerror when the server tries to startup (I have gulp setup to start the server)
 
@m59 No; you've probably got a permissions error somewhere, I'd imagine.
 
@m59 that's not normal, talk to your doctor
 
m59
Oh, bad question anyway. It doesn't matter how I do it. I just can't start a server.
ah, I bet I know
nope, sure don't.
These files were copies from windows...
 
1:17 AM
@rlemon hangout?
As in Google?
 
Correct
 
@monners go on miaou
 
m59
I think the problem is the port I'm using
Linux doesn't seem to like it.
 
Port 80 requires sudo
 
m59
166, but I'm reading that anything under 1024 is bad.
 
1:25 AM
correct
 
m59
LOLLLLLZZZ
I think I'm destined to make every noob mistakes possible at least once.
Changing the port stopped the errors, but I couldn't get the page to open up.
Helps to open the browser in Linux rather than Windows ;D
I setup Port Forwarding, so that won't be a problem!
 
Can someone explain why a vigenere cipher decodes R to T when the key is Y?

Should it not decode to H?
 
1:42 AM
Good afternoon!

How can we determine if a binary tree is a 2-3 tree?

Any help would be appreciated!
 
@user159870 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.
 
Oh nevermind.
 
2:09 AM
"I eat a lot more nuts" - @rlemon
 
I was about to do exactly the same thing.
 
What, eat nuts?
 
Post Lemon's quote
 
m59
2:39 AM
gnome is trollin'
It's using different colors from the palette than it was before
 
2:59 AM
back, got beer
 
 
1 hour later…
m59
4:04 AM
Is this a lie?
      "ie/6..latest",
      "chrome/22..latest",
      "firefox/16..latest",
      "safari/latest",
      "opera/11.0..latest",
      "iphone/6",
      "ipad/6",
      "android-browser/latest"
is there actually a way to test all those browsers from the same OS?
 
@m59 3rd party service, eg saucelabs?
 
m59
yeah, that makes sense
 
Yeah, that's probably Sauce.
We almost hired one of their top guys.
 
4:57 AM
Hi, how do I match the text "[ORG] something" with regex? I am using this: /^\[ORG|PER|LOC]\s[a-zA-Z0-9]$/ but it is matching just [ORG] as well.
The tag could be either ORG, PER or LOC
 
var x = new Foo();
x.isPrototypeOf(Foo); //false
Why?
 
var Foo = function () {};
var x = new Foo();
Foo.prototype.isPrototypeOf(x);
 
@RahulDesai You need the "One or more" indicator.
 
@SomeKittens Its working without that too. jsfiddle.net/rdesai/27vfd38w/1
 
@RahulDesai That's because you're missing an escape and capturing group.
 
5:12 AM
raises ears to hear about regex
 
@SomeKittens Where exactly am I missing escape? I add it this way: /^\[ORG|PER|LOC\]\s\[a-zA-Z0-9]+$/ still doesnt work.
 
@Unihedron in my head i read that as "CA-CAW?"
 
@RahulDesai because you're also missing a capturing group. Those pipes don't mean what you think they mean.
 
@RahulDesai wrong location for |
It matches: "[ORG" at the start or "PER" or "LOC] (some stuff)" at the end
 
!!> '[ORG] adsa'.match(/^[ORG|PER|LOC]\s[a-zA-Z0-9]+$/)
 
5:14 AM
no match
 
@phenomnomnominal That didn't make much sense. Use the !!/help command to learn more.
 
because yer doing it wrong
!!> '[ORG] adsa'.match(/^[ORG|PER|LOC]\s[a-zA-Z0-9]+$/)
 
@Unihedron null
 
see, no match
 
@phenomnomnominal null
 
5:14 AM
Works in the console?
 
What do you want to do? I'll give you the proper regex
 
@SomeKittens isnt it or?
 
Never mind I won't, gotta go now
Don't blow up your servers!
 
@Unihedron We don't give teh codez here
 
@SomeKittens oh
TIL: no free code for javascript
:)
 
5:15 AM
Ahh, I copied the wrong one
 
/^\[[ORG|PER|LOC]]\s\[a-zA-Z0-9]+$/ works :D
@SomeKittens thanks bro
 
it only works because it's broken
it should be (ORG|PER|LOC)
not []
 
damn
 
195
A: Reference - What does this regex mean?

aliteralmindThe Stack Overflow Regular Expressions FAQ If you want to truly learn regular expressions, then read Jeffrey Friedl's "Mastering Regular Expressions" from beginning to end (3rd edition, on Amazon) Quantifiers Zero-or-more: *:greedy, *?:reluctant, *+:possessive One-or-more: +:greedy, +?:r...

@RahulDesai read it all pls ^^
 
/^\[(ORG|PER|LOC)]\s[a-zA-Z0-9]+$/ is the correct answer
finally
:D
 
5:18 AM
it's still not
change [a-zA-Z0-9] to [^\W_]
 
then it's an A++ regex
 
@Unihedron does ^\W_ passes emails too?
 
okay...so you use it on the constructors; not on the instances? I thought it was similar to using `instanceof`

`x instanceof Foo`
 
@RahulDesai [^\W_] is the shorthand for [a-zA-Z0-9], and it runs better
in oh so many ways
 
5:20 AM
@Unihedron sauce?
 
@deostroll it is similar.
 
@phenomnomnominal ^ my last msg...
 
But it's not the same.
Surprisingly, you use isPrototypeOf on the prototype.
 
okay
 
@SomeKittens originally a trick for regex golf, eventually proven to work better ASCII-range-wise
 
5:21 AM
@RahulDesai only check for @ in an email address.
 
@Unihedron neato
 
science and experiments conducted in RegEx chat room, not enough time to search for it, gotta go now bai
 
@phenomnomnominal for bonus points, check for gnail.com
 
it's retarded to try it with regex, and if they fuck up the email address, don't let them complete registration.
@SomeKittens Do you watch New Girl? When the guy referred to it as "guh-mail" I lost my shit.
 
@phenomnomnominal How about [^\W_@] for email?
@Unihedron ^
 
m59
5:23 AM
has anyone used testling?
seems so awesome, yet is so broken
 
1480
Q: Using a regular expression to validate an email address

acrosmanOver the years I have slowly developed a regular expression that validates MOST email addresses correctly, assuming they don't use an IP address as the server part. Currently the expression is: ^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$ I use this in several PHP pro...

> note that ""@[] is a grammatically correct email address.
 
5:47 AM
Anyone know of a node package for file merging (not concatenation)?
 
Hi all
i am having a problem with date
can anyone please help me
 
Don't ask if you can ask, just ask.
 
how to get the week day from a given date
if i give 2014-12-02 it should return me

2014-11-30
2014-12-01
2014-12-02
2014-12-03
2014-12-04
2014-12-05
2014-12-06

if i give 2014-12-20 then

2014-12-14
2014-12-15
2014-12-16
2014-12-17
2014-12-18
2014-12-19
2014-12-20
using javascript
is it possible to get like this using javascript
 
@AlexMan it's certainly possible, but what have you tried?
there is a handy library called moment.js for manipulation dates.
You could definitely write this yourself though, and probably should, it'll be good learning.
 
@phenomnomnominal thanks
 
5:51 AM
!!> new Date().getDay()
 
@phenomnomnominal 3
 
Gives you the integer value of the day.
Sunday === 0
That can tell you how many days either side you need to get the days of that particular week.
 
so with this we need to write a logic ....am i right
 
Yes
But don't just fucking repeat yourself.
Read what I'm suggesting.
Now go and try to implement it, and if you get stuck, get your code to work in CodePen or JSFiddle and bring it back here. Someone will help you
 
thanks @phenomnomnominal ...i will do that....and sure i will let you know if i face any issues
 
5:54 AM
 
okay
 
oneJS, cool or no cool?
basically a javascript extension (no need for semicolons apparently) that fuses webgl, js, and GLSL with a quite simple API
 
THE SODOMIZER. BEST NAME EVER.
 
Hi All
 
6:17 AM
Hello everyone
 
@deltonio2 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.
 
Thank's!
I don't have any questions now, I'm just looking how works the chatrooms
 
@SomeKittens your team? :)
 
6:42 AM
here's mine :)
 
Hi. $(document).keypress(function(e) {console.log(e); }) logs to console on normal key presses. But when I do combo-keystrokes like ctrl+c, etc...the console never logs...is this not possible?
 
 
7:00 AM
What is the regex to match multiple tags followed by multiple words? something like "[ORG] Lorem [ORG] ipsum".

I tried /(\[(ORG|PER|LOC)]\s[^\W_]\s)+/ but it is missing something.
 
@RahulDesai Uh, no
 
@SomeKittens kewl!
 
I don't understand why when I type ctrl+b - I get keyCode:2 instead of 98 jsbin.com/vikedebuqu/1
^plz check console window
 
7:15 AM
hallo
 
7:29 AM
Any idea about my regex question, guys?
 
HDT
try /\[(ORG|PER|LOG)\](.+?)\[(ORG|PER|LOG)\]/gi
http://jsfiddle.net/r3rtmwse/1/
 
@HDT 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.
 
@HDT ...why?
There's a much better solution - He's looking for one or more of $STUFF. Does regex have a "one or more" operator?
 
HDT
how about bbcode pattern? [OPENTAG] and [/OPENTAG] as closetag?
 
Also, why not use a capturing group and a backreference? I'd assume he wants the tags to match?
 
7:58 AM
Hey Friends - I'm new to using JS in the DOM and trying to display a JS Object in HTML...I know how to loop through the object in JS, but I don't know how to show the results in a div tag...
 
@theartofbeing 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.
 
did anyone used jquery timline js?
 
I have a fiddle if anyone is interested in looking at the code: jsfiddle.net/8tzgs7z8
:(
 
HDT
jquery is okay?
 
Is there a simple way to toggle jquery .animations for example one click opening animations and seond click closing animation
 
HDT
8:14 AM
using jquery slideToggle @makat
 
@HDT yeah but can you queue animations in there
Because when i tried i couldn't
 
HDT
custome toggle you must use a flag to check the event. EX:
var flag = false;
$(button).click(function(){
if(flag){
animate show
}
else
animate hide here
flag = !flag;
});
 
i need help?
 
i can help?
 
did you used jquery timline js?
 
8:20 AM
no?
@HDT that is so ugly x.x
@makat toss your code in a fiddle
 
@BasementKeyboardHero so can you help me relating to jquery timline js
 
@BasementKeyboardHero deleted my old code but writing one in fiddler to show right now.
 
@Mubeen1992 make a fiddle and isolate your stuff
@HDT we have a room for that :)
 
@BasementKeyboardHero sorry can't make fiddle it works with json
here is link of my site
 
Unless you can isolate and reproduce your problem can't really help you
 
8:26 AM
@BasementKeyboardHero okay, but can you visit plugin site there is a method of adding BC dates
there is written if i enter date like -200 it will show 200 BC in timeline
but you can see my site instead of showing 200 BC it is just showing -200
 
HDT
your data
0: {startDate: "-250", endDate: "-250", headline: "Full timeline", text: "",…}
1: {startDate: "-200", endDate: "-200", headline: "Test dfgh", text: "dfghzug",…}
2: {startDate: "-100", endDate: "-100", headline: "Redesign of my portfolio", text: "",…}
3: {startDate: "-80", endDate: "-80", headline: "Developed a Gmail Client", text: "",…}
4: {startDate: "-50", endDate: "-50", headline: "Another time-lapse experiment", text: "",…}
5: {startDate: "-20", endDate: "-20", headline: "My first experiment in time-lapse photography",…}
 
yes
 
Is anyone able to help me with displaying a JS Object & Properties in a HTML/Div tag?
 
@hdt as you can see i have added -250 so according to their duid it should show 200 BC
 
I have a stypi or fiddler open with some code I've already created
 
HDT
8:32 AM
@theartofbeing
if you data is json, use JSON.stringify
$(div).html(JSON.stringify(dataobject));
 
I'm capturing the data from a form
<form onsubmit="return addGroceryItem(this)" method="post">
<input name="item"><br>
<input name="category"><br>
<input name="price"><br>
<input type="submit" value="Add item">
<input type="button" value="Show list in Console Log" onclick="console.log(grocery_list)">
</form>
and sending it to a function that stores it as an Object with properties
 
@HDT any recomendations?
 
HDT
i don't understand what you want :(
 
here is plugin link
I need to add BC dates in my timeline like 200 BC, 500 BC
 
@hdt
whoops
@hdt I want to take the items in that object and display them in a div tag like this:
<div id="grocery_item" class="container">
<div class="item">Item Here</div>
<div class="category">Category Here</div>
<div class="price">Price Here</div>
</div>
 
8:38 AM
so i found in plugin guides that if anyone want to use BC dates like 200 BC he can enter -200 so timeline will change it to 200 BC
 
HDT
your mean absolute time?
 
But as you can see in my site it is showing -200 not 200 BC
 
HDT
@Mubeen1992 wait, i'm reading your plugin to find how to show custome date in your timeline
 
you guys need to learn to format your messages, hit ctrl + k when you paste in code
 
my bad...new here.
 
HDT
8:41 AM
@BasementKeyboardHero ctrl + k not working on my macbook, also command + k :(
 
@HDT ctrl + k works on my macbook
 
@HDT okay
 
@SomeKittens sorry, I don't follow. Kittenz != SomeKittens.
 
@mikedidthis traitor
 
@SomeKittens To clear it up, there's another user called Kittenz in the HTML room
 
8:47 AM
@BasementKeyboardHero aye
 
scumbag mike, check the js room before the html room x.x
 
He had a pending ping!
 
^ that
 
@BasementKeyboardHero 'course he does
 
he's got like 20 in the other room :P
i v been pinging him for the past 2 days :P
 
8:48 AM
stalker
 
And he's been seeing and ignoring them
So they weren't really pending at all :P
 
:(
I thought you were the one x.x
 
@SomeGuy delegation
 
m59
can a glob have two paths?
 
@BasementKeyboardHero your last pings: eiii, o. and pst. I apologise I didn't have a comeback for any of them :D
 
8:52 AM
>.<
 
m59
Sort of like an array of two patterns, but I need it in one (string)
 
What streaming sites do you guys use?
 
@m59 why don't you take an array?
 
m59
that's the question of the day ;D
 
@phenomnomnominal papystreaming
 
8:53 AM
@phenomnomnominal streamallthis.is
 
m59
@FlorianMargaine Karma's preprocessors take an object property name as a string which is a glob pattern
screwy
preprocessors: {
  'foo/bar/*.js' : ['browserify']
}
If I could get other/files/in.there that would be great..
 
preprocessors: {
    'foo/bar/*.js': ['browserify'],
    'bar/foo/*.js': ['browserify']
}
 
m59
I think that makes two bundles.
 
ah..
I use browserify with a single entry point tbh...
 
m59
I'm probably hacking anyway :/
Trying to make tape work with karma
without having to write boilerplate code in the tests themselves
So, I need to require('tape') and get the same tape my tests have
  window.__karma__.start = function() {
    tape.createStream()
    .on('end', function() {
      window.__karma__.complete({
        coverage: window.__coverage__
      });
    });
  };
I need that to get bundled with my tests, and using the same instance of tape
 
9:01 AM
Can someone explain why Object.keys(Array.prototype) returns an empty array...where as there are lots of documentation on the methods on Array.prototype over at MDN...
 
HDT
@Mubeen1992 i just debug your javascript

VMM.Timeline.TimeNav
timeline-min.js:1 init
timeline-min.js:1 DATA SOURCE: JSON
timeline-min.js:1 DATA SOURCE: JSON STANDARD TIMELINE
timeline-min.js:1 HAS STARTPAGE
timeline-min.js:1 NOT A VALID DATE?
timeline-min.js:1 -300
timeline-min.js:1 VMM.Timeline.TimeNav init
start must nonnegative number
@theartofbeing you still need help?
 
@HDT did you read "How do I add B.C. dates?" section on plugin page?
 
9:22 AM
0
Q: why Object.keys(Array.prototype) returns empty array?

deostrollFollowing this code first: function User(name, dept){ this.username = name; this.dept = dept; this.talk = function(){ return "Hi"; }; } function Employee(){ User.apply(this, Array.prototype.slice.call(arguments)); } Employee.prototype = new User(); for(var x in Em...

 
9:34 AM
!!weather pune
 
@RahulDesai Pune: 30.161C (303.311K), Sky is Clear
 
thats better
 
m59
@FlorianMargaine I think I found a better way. I've never done a pull request for stuff like this... mind telling me if you think it's reasonable?
 
m59
I just added
if window, window.postMessage(etc)
in nicer terms ;D
That makes it possible to hook onto it for karma's sake
window.addEventListener('message') { if message is that one ... respond }
  if (typeof window !== 'undefined') {
    window.postMessage({name: 'tape-end'}, '*');
  }
If that's a sufficient check for running on the browser and a suitable message (never done either before), I don't see why this would be a bad thing.
 
9:42 AM
that sounds like a nice PR
do it and see what substack tells you :)
 
m59
cool. You wouldn't think I can hook onto that .emit('end'), right?
I only vaguely understand its context, but I'm pretty sure there's no getting to it from outside.
 
!!weather NY
 
@deostroll Sorry, I couldn't get the data: Error: Not found city
 
!!are you for real?
 
@deostroll I can neither confirm nor deny
 
9:45 AM
!!cool :)
 
@deostroll That didn't make much sense. Use the !!/help command to learn more.
 
!!/help
 
Hello can anyone help me on how to disable button(outside of iframe) till a form in iframe loaded completely
 
@deostroll Information on interacting with me can be found at this page
@NarikenabilliSagar 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.
 
!!who is your master?
 
9:46 AM
@deostroll But of course
 
@CapricaSix, sure thanks
 
!!weather bangalore
 
@deostroll Bangalore: 30C (303.15K), few clouds
 
!!coffee
 
@deostroll "undefined"
 
9:48 AM
!!alert('hello')
 
@deostroll That didn't make much sense. Use the !!/help command to learn more.
 
@AbdulMohsin 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.
 
10:12 AM
Hi all! Could you please help with this snippet? How to refer to 'foo' field inside 'bar' instance without use of object's "a" name? Need something like "this.foo" but it doesn't work
a = {
foo: 'print trhis',
bar: function() {
console.log(a.foo);
},
baz: function() {
new this.bar();
}
}
a.baz();
 
@Kichrum 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.
 
Hi All Any Dojo Dgrid expert here?
 
@Shog9 I got the swag THANK YOU :D
Pics soon whether you people want them or not
 
@benji Not using your mikedidthis avatar?
 
10:32 AM
@BenjaminGruenbaum What swag?
 
no
@PeeHaa hmf, ok, dupe-hammered
 
Works for me :)
 
o_O I thought I would have a lot of pings from @BenjaminGruenbaum when I come here... but no luck :( :/
 
11:34 AM
I just found out Americans don't have Boxing Day.
Mind blown.
 
@phenomnomnominal Noobs
 
@rlemon sorry i missed the hangout yesterday ... I ded
 
@MShahzad you looking to hire ?
 
11:54 AM
@phenomnomnominal I just found out NZ has Boxing Day.
 
typical!
 
Guys, need and example where null and undefined check matters...
 
@deostroll Any database field that is nullable?
 

« first day (1509 days earlier)      last day (3455 days later) »