« first day (2012 days earlier)      last day (3159 days later) » 

00:19
re-morning
@Luggage mdr
00:41
why udacity cannot make subtitle files ?i'm following some video tutorials from udacity .but srt files doesn't work due to incorrect format
0:00:00.412,0:00:03.420
As JavaScript developers we frequently make use of closures which
One does not simply achieve orbit by accident. — Jan Dvorak 13 secs ago
this is epic
@JanDvorak not according to HHGTTG
or KSP
@FastSnail do you have subtitle file for it?
00:45
@happy yes
the One does not simply ... is pretty nice
@FastSnail what is the format of the video?
@happy mp4 format.vlc shows 0:00... as subtitle instead of text .
now i'm trying to use regex to rewrite it
stop shoving spaces before periods, please.
@FastSnail I have an idea: put your video in a html5 video tag and add a div to override the video then use javascript to read your srt file and inject its content into the div
> Rated B for bullshit
00:53
@JanDvorak B movie are quite good actually
hey do you have a portfolio ?
@FastSnail OK, please stop shoving spaces before question marks and exclamation marks as well
@JanDvorak what?
why
a lot of people I know in the field suffer from OCD. I am among them myself. Things that seem like detail to you are, well, irritating for other. I am not implying the OP is OCD btw.
I believe you mean OCPD ;-)
00:59
probably
can we replace this in to this just using regex?
0:00:00.412,0:00:03.420
As JavaScript developers we frequently make use of closures which

0:00:03.420,0:00:05.550
are a concept many people find confusing.
to

1
0:00:00.412,0:00:03.420
As JavaScript developers we frequently make use of closures which

2
0:00:03.420,0:00:05.550
are a concept many people find confusing.
Where should said regex get those numbers?
it seems like your file is corrupted. What have you tried so far to repair it?
@JanDvorak numbers should increment 1,2...
Where should said regex get those numbers?
01:01
@FastSnail try to copy / paste your srt file content on this -> gorissen.info/Pierre/files/SRT_repair.htm and use the given file as your subtitle package. Let me know if it worked
@happy noo it makes some funny changes
@FastSnail what do you mean?
it doesn't repair it
@FastSnail do you want to send me those file so I do some black magic?
i wrote a simple regex nuw i can replace groups .but the problem is i don't know how to add numbers
01:05
@FastSnail >:-(
hey, is that a screenshot of code?
user2620028
lol
no that's the regex
To me it looks like a screenshot of a regex instead
user2620028
01:07
i hardly ever post in the chat anymore but i do get many laughs from reading chat
laughing is good for health
user2620028
thank god, thats the only thing i have been doing for my health lately
@happy yes .and here is a example srt d2uz2655q5g6b2.cloudfront.net/ud853/…
@FastSnail >:-(
i love udacity tutorials .not boring as lynda
01:11
@FastSnail >:-(
@JanDvorak i don't know what u a saying
^kick pls
no pls
01:28
@SterlingArcher Guess how many alligators I saw on saturday
user2620028
@Meredith 5?!
Like 10
Like 10
Oh darn :P
user2620028
XD
Don't pretend you didn't do that on purpose
user2620028
01:29
Hey sterling, read some of your stuff on your site. You are good at writing.
I did it on purpose :D
@HatterisMad thank you!
user2620028
no problemo home skillet
lol I just heard so many "fuck you"s on live TV during the caps game after a major penatly xD
@FastSnail just received a call, must go
> penatly
01:34
@happy good bye
Flyer fans are so pissed off because their team got hammered with PENALTIES because of a cheap shot and fighting anybody he could punch
What a shitty crowd
@SterlingArcher ofc it's completely impossible that you're biased
they keep throwing stuff into the ice
cost their own team a delay of game penalty
Ima cheer for Philly now
lol it's 5-1 about to be a 3-0 series lead good luck xD
01:43
if they lose I'll cheer for your next opponent
either the penguins or rangers lol
Are you a Canadians/Canucks/Maple Leafs fan?
read penguins, got excited, realised sports, less excited.
@SterlingArcher Leafs, kinda
Canadians yes, Canadiens no
but there are no Canadians this year
Speaking of which, did you install the new extension yet?
01:47
lol 6-1
no and i'm not gonna
>:(
It's legit this time and I have proof
Also, you can even make your own
There's an API for it
please love me
please clap
slow claps
@KendallFrey well the romans were so forward sighted on their urine collection policies
02:15
Sorry I was working on a toggle function that was trickier than it should have been
I don't get it
Do you know what that is a picture of?
the "million dollar coin flipper"?
A lady [at an airport] holding a tablet with an arrow?
02:39
Does anyone knows here how to inject javascript in swf chat ?
@J.Doe Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
02:51
@KendallFrey lol
And wow, 3 million messages already
30 million*
@J.Doe userscripts (greasemonkey/tampermonkey), extensions, or just plain running stuff in the console.
@KendallFrey, yes I tried with doing it on console but how do I find the events i tried for(func in $("#id")) i did get a bunch of names
03:05
@SomeKittens Hah, nice! Sounds like fun
@jandresrodriguez Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
anybody with webpack experience?
03:24
Nooooo Doris Roberts died :(
03:42
> The user has already been kicked from this room.
Dammit
04:19
who'd u kick
don't remember
04:56
i hate my job so much
i can't until i get a new one
05:14
@AniketShivamTiwari Apply for KVS
They are hiring CS Graduates and they pay very well.
user2620028
I am in need of a new job :( friday was my last day at my job
@HatterisMad :'(
bro
user2620028
dudebro?
yes dudebro! same here (I am looking for a decent job too)
user2620028
I have been looking for a decent job for a while (now i am kinda looking for any job lol)
05:21
@HatterisMad apply for auth0.com :D
@SomeKittens o/
05:35
no i don't want to go to KVS .
I want to work in a IT company but good one
05:52
How to decide which company is good and which is bad?
@Mr_Green flip a a coin?
@JordanDavis In both cases, I will do the loop. I still can't see why I shouldn't do this? — Mr_Green 9 secs ago
^ not sure whether I am wrong or not
@Mr_Green flip a coin?
okhay...
0
Q: How to set Timezone of another country in javascript

LoveyshI want to set the count-down timer according to the current time of Nigeria (west africa GMT+1). I don't know how set current time according to Nigeria. If i print this value $current-date = new Date();, i will get current time of India. How do i change it so as to get current time of Nigeria (WA...

Howdy y'all
06:01
@FlorianMargaine gluck!
Hey guys, hope you are all doing fine. I hope you can shed a light on me... I'm trying to make a Sticky Notes board written on Javascript/jQuery. Most of the code is working, I'm able to write a title and description on some html inputs and the note is there. I'm using some arrays to store the information of the notes, as well as their unique id.
The thing is that I've been trying to delete the note from both the DOM and array, but nothing seems to work so far. I was thinking on storing the id on a variable, but I'm only storing the last id addedto the array, not the id corresponding to the
@AndrésAvilaWille Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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! Sure, sorry about that.
Hi. I'm struggeling w/ something really annoying.
I've added a function in my Script that disables POST Autosubmits on Enter but sadly this only works with Firefox. Is there a crowws browser solution for this? Disabling the post in the form is no solution, as the Buttons should be clickable.
Here my script: http://jsfiddle.net/ou1eqgsb/7/
Any Ideas?
06:12
@TechTreeDev Hey Smithy, can you do me a quick favor?
Check over my code quickly
Crap, wrong chat, wrong person
Never mind
:'D
+* cross instead of crowws. Also, every button on the page relaods it, except in FF.
Mornin' guys!
(Link-only answer)
Delete works as well
06:31

SO Close Vote Reviewers

This room is for support and discussion about reviewing and co...
also, Mornin'
Yea, I'm in there.
function ABC () { this.a = "a"; this.b = null; this.c = ""; }
ABC.prototype.test = function() { return this.a; };
var abc = {a: "b", b: "a", c: "b"};
abc.prototype = ABC.prototype;

abc.test(); // outputs b
Hey guys
Is it possible to do something like that above in javascript
Looks like valid syntax to me
But it won't do what you want.
!!mdn setprototype
or Object.create
06:41
with Object.create you still can't use a literal to set the properties
yeah googling didn't return it. LOL, I googled stereotype
I'd still use new and set the properties, most likely.
for( var method in ABC.prototype )
	abc[ method ] = ABC.prototype[ method ].bind( abc )
perhaps?
@CapricaSix thanks
@JanDvorak I'm looking for a convenient way to convert JSON objects to it's relative type
And yeah, have I quoted yet that "Changing the [[Prototype]] of an object is, by the nature of how modern JavaScript engines optimize property accesses, a very slow operation, in every browser and JavaScript engine. The effects on performance of altering inheritance are subtle and far-flung, and are not limited to simply the time spent in obj.__proto__ = ... statement, but may extend to any code that has access to any object whose [[Prototype]] has been altered" ?
06:46
don't worry. This is just for a small hack I'm working on.
Nothing serious
@andho In the news tomorrow: Hacker hacks Google.
I wouldn't feel comfortable skipping invariant checks on an object. Too much OOP indoctrination.
@andho Says the seeder of every enterprise project ever.
Always code as if your side project would one day evolve into the flag ship of a multi-national corporation that nobody is able to maintain just because of your crappy coding years ago. Because it will.
If they make this "Prototype" into a production app, it's not my problem :P
Sure is
06:51
maybe someone assist me with finding right keywords -- I need something like this,
odata.intel.com/QueryBuilder
So far your chat-fu has been as bad as your google-fu ;-)
@Mathematics: at very least add http:// in front of urls in your chat.
Oh, wait, that's a URL?
@Cerbrus hahaha I thought it was just a sample URL
06:55
@Mathematics I would guess html or javascript query builder would be the right keywords
nice toy
I found couple but non of them works like intel's
const ABC = { a:'a', b:'b', c:'c', test(){ return this.a; } };
Object.assign( Object.create( ABC ), {a: "b", b: "a", c: "b"} ).test(); // 'b'. This what you want?
You'll have to code one
Repost:

Hi. I'm struggeling w/ something really annoying.
I've added a function in my Script that disables POST Autosubmits on Enter but sadly this only works with Firefox. Is there a cross browser solution for this? Disabling the post in the form is no solution, as the Buttons should be clickable.
Here my script: http://www.jsfiddle.net/ou1eqgsb/7
Any Ideas?
06:56
last choice would be to use winhttrack...

but pretty sure there will be something out there
@TechTreeDev crows don't have browsers. Are you browsing through crows?
@TechTreeDev is read-only an option for you?
@Sheepy the setPrototypeOf worked for me. Not sure I understand your code. Need to check Object.assign.
@JanDvorak Negative.
@andho setPrototypeOf has massive performance hit. Try not to do that. Create a new object with the prototype you need, then Object.assign.
@Sheepy yeah, I think Object.assign might be a better choice.
06:58
^
IS a better choice
For the record, eval and with is worse than setPrototypeOf. Don't use them, either. That shouldn't be hard. Yesterday we talked about not using var at all.
@Sheepy wait what? No var??
I need a transcript to that
And a transpiler
surely possible to do
07:02
!!> i = 4; console.log(i * i);
20 hours ago, by Madara Uchiha
And the sooner it goes away the better (I mark usages of var as compilation errors in my project)
@Cerbrus "undefined" Logged: 16
No var :D
Oh okay. So replace with let and const. Both keywords seems immutable. So away with variables?
let is mutable. And is block scoped. And retains its value in a loop block.
20 hours ago, by Madara Uchiha
@Thaenor Here's the workflow: use const, if you need to mutate the variable's value, think hard if you really need to, and if you do, let.
20 hours ago, by Madara Uchiha
@AwalGarg I've found that, at least in the projects I'm working on, that if you have var and can't convert it into let, you have some sort of a bug you aren't aware of, or you have a bug waiting to happen
07:08
Too much info. Been away too long. Will research after finishing stuff!
Just start with avoiding eval, with, or setPrototypeOf. I personally also avoid new and prototype and bind (and now var). Things I'm not avoiding includes innerHTML (write only) and regular expression.
const i={value: 0}
@JanDvorak heh would you prefer frozen / literal i = {value: 5}
@Sheepy why you like sheeps ?
over const i = Object.freeze({ value: 3 })
07:16
is just like,

const i = 3 + DontChangeMethodSignature();
@Mathematics why do you like mathematics?
@Neil why do you like neil ?
@Mathematics Why, you don't like sheeps?
I like turtles
@Abhishrek I would prefer ary.map.with_index {|el, i| ...}
07:18
@Neil why do you like Neil?
@Sheepy not as much as to put sheepy as my name :P
@Neil Neil river do you mean ? :P
the hell is "Neil River"?
!!wiki neil river
Hartwell Neil Riser, Jr., known as Neil Riser (born April 25, 1962), is a funeral home owner in Columbia in Caldwell Parish in northeastern Louisiana, who is a Republican member of the Louisiana State Senate. He was an unsuccessful candidate in the 2013 special election to fill Louisiana's 5th congressional district seat vacated by Rodney Alexander. He was defeated in the runoff election held on November 16, 2013, by fellow Republican Vance McAllister, a political newcomer from Swartz, who held the seat for only thirteen months. == Early life, education, and business career == Riser's grandfather...
@GNi33 ▲
07:19
eh, close enough :-)
checks out
it's still called "Nile" though
Seems legit
@Mathematics Let's just say I'm more than disappointed that my new baby won't be born in the year of sheep / lamb / goat
is there a year of the goat?
With a name like Neil, you wouldn't believe all the many ways to mispronounce/misspell
07:21
!!wiki year of goat
@Abhishrek The Gods of Wikipedia did not bless us
!!google year of goat
@Neal can attest to this as well
!! google neil river
!!wiki Sheep (zodiac)
oops it was Nile river :|
The Goat (Chinese: 羊; pinyin: yáng) is the eighth sign of the 12-year cycle of animals that appear in the Chinese zodiac related to the Chinese calendar. The sign is also referred to as the Ram or Sheep sign, since the Chinese word yáng is more accurately translated as Caprinae, a taxonomic subfamily which includes both sheep and goats. The Year of the Goat (alternatively, Year of the Ram or Year of the Sheep) is associated with the 8th Earthly Branch symbol, 未 (wèi). == Goat or Sheep == The Chinese word yáng refers both to goats and sheep, with shānyáng specifically goats and miányáng sheep. In...
Neil and Nile are completely different pronounciations
Google: 2 smrt 4 U
07:22
!!google zodiac are bullshit (:
@Mathematics *facepalm *
@GNi33 nah, they're quite similar
Niil and Nail
07:23
@Mathematics The Koreans also have their twelve zodiac, similar (has sheep) but not the same with Chinese ones. Sadly, no one seems to care.
I used to be called Neil the banana peel in elementary school
3903
Q: Why does HTML think “chucknorris” is a color?

user456584How come certain random strings produce various colors when entered as background colors in HTML? For example: <body bgcolor="chucknorris"> test </body> ...produces a document with a red background across all browsers and platforms. Interestingly, while chucknorri produces a red back...

seriously ?
Both Korean and Japanese zodiac got piggets.
I think what I hated most about that is that I didn't even get the reference
Chinese weirdness #1: A goat and a sheep are the same thing.
Chinese weirdness #2: Blue and greena are the same thing.
Chinese weirdness #3: "four" and "death" are the same thing.
!!google Neil the banana peel
can we now stop talking about sheeps ? they don't code :|
This one does, sometimes
now even sheep use javascript, we are doomed. — Persijn Dec 8 '15 at 13:25
OMDays
Do you do mathematics too, Mr/Miss sheep ?
No. I suck at mathematics. I have studied calculus but has returned it to my teacher. I tried to study formal method. I passed but I don't want to touch it again.
07:29
But then what will you do when computers stop trusting you?
I don't even know my computer slaves trust me. Mine don't seem to be.
Can I use JS to keept the values of a HTML Form after I submitted it to PHP? The only option, which is annoying af ist to write an echo in every value field
@TechTreeDev Yes. Search stackoverflow. Normally done with localStorage or sessionStorage.
@Sheepy Thanks, that are two points to start with :)
@Mathematics Hmm. Does statistics, randomness, vector, matrix, set, scale analysis, or boolean algebra counts as math?
07:41
other then algebra, matric, set, vector nothing does in your list :p
lol
@Mathematics wat
back to business, I deleted elements from page using chrome tools, can I copy the HTML now :|
@Mathematics No.
ok, let me try then
anything sheepy say, do the opposite
07:44
@Mathematics depends
@Mathematics what?
Meh, I really hate programming at times.
I thought it is well know that only masochists are great programmers. With programming being the sadist mistress.
Hi guys!
@CrazzyMarc Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
07:51
Does someone know a fun API to play with and learn?
@CrazzyMarc There is a great one that I played with and learned. It is fun. Promise. Its name is Win32.
Are you trolling me?
It's a miracle, really. It let you do OOP without using OO.
To be fair, your question is way too board. Win32 is indeed an API. Perhaps the biggest ever.
Even Java is an API. Oracle and Google are fighting for it. I'd advise you find something that you are interested in.
07:54
Here is a fun API booleans.io
A fun API, meh depends on what you want
go build something with wit.ai
or watson api
@Sheepy stupid board questions always too wooden
or wolfram alpha's api
@Neil I honestly don't understand these "give me a project idea to learn programming" questions. My experience is if you cannot even think of one project, one software, one tool you are passionate in, just leave programming while you still can.
@Sheepy the problem is simple, and that's that there are literally thousands of technologies to invest your time in
Even determining which is the one you want to learn is intimidating
But we have no system for that unfortunately
08:04
So is life. Which makes me wonder how they got into programming in the first place.
@SomeGuy ping/call me on hangouts, need suggestions :-)
Such is life, that's true, though I think the point is that you can be passionate about programming without being able to do it, where the same cannot be said for say, sql
runs a jQuery over esolangs.org
At least the idea of programming is tangible to the layman
Ah. Tangible. I have lost myself in the matrix too long to remember what that feel like.
08:08
@Neil not everywhere
I think you can be passionate about javascript, but not before you understand what it can do
@CrazzyMarc erik.js.org/fsfoaas learn this. It's fun.
Hey ppl
Nothing to do with Js but have you ever seen _suo.doc before ?
@littlepootis in what sense?
I misread what you said
08:12
@CrazzyMarc That was intended to be more humorous than trolling. So... if you still feel like it, can you at least narrow down the scope? You don't like window apps, ok, how about games? social networks? IM bot? Artificial Intelligence? And, most importantly, what kind?
Another thing I suck at. I suck at proposing API to learn.
I know. Hope he won't think this is a room with a troll sheep. Trolls are cute, by the way. When you have been playing D&D for 20 years behind the DM screen, all monsters look cute.
One less potential programmer (maybe)
Maybe. Maybe.
user5503464
0
Q: how can i check given date is between two dates in monodb?

komal{ "_id": { "$oid": "asdf976" }, "Categories": [{ "mainmodels": [{ "submodels": [{ "price": "2000", "submodelname": "lumia021", }, { "price": "2000", "submodelname": "lumia341", } ], "Status": "Active", ...

user5503464
08:16
help me out
@komal in order to do this, you need to know how to compare two dates and you have to know how to and conditions together
Which one of these do you not know how to do?
@komal It would have been easier to compare the dates if they were in the YYYYMMDD format. Hint, hint.
08:34
@komal You asked it 18 minutes ago... be patient
she didn't even say anything right?
guys any lights on this?
2
Q: Pause youtube video when slide the next item

user3932810I am using bootstrap slider on my page. I need to pause the currently playing video when slider moves to the next one. I tried using youtube callback but it doesnt seems like working, may be my way of applying is not right. here is what I have used jQuery(function ($) { $('div.carousel-...

@JanDvorak Or proper Dates
Can you store these in MongoDB?
@user3932810 Well, you got some code, a short description, and even a fiddle in the top voted answer.
08:40
@JanDvorak Yeah, I think they get serialized to ISO format though
But then you can use $lt and $gt IIRC
@Sheepy that didnt solve the purpose... first slide video always works but the problem is in the other videos
AKA YYYYMMDD with some fluff? :-D
Does anyone know if there's a way to modify a .babelrc config programmatically?
yes I did this once
but forgot :(
>_<
08:41
except by opening the file, you mean?
@user3932810 you need to repeat the event registration for each video you know
I don't want to touch the file, yep.
I tried to: require('babel-register)({plugins: [...]})
But the .babelrc file takes precedence.
I want to unshift a custom babel plugin to the list of defined plugins.
@JanDvorak If ISO, usually "2016-04-19", "2016-04-19T08:43:47", or "2016-04-19T08:43:47.417Z". There are some variations, such as week of year, but I don't think YYYYMMDD is one of them.
Those hyphens don't affect sorting and are just fluff.
Yes. But if you remove them, it is simply ymd and not iso.
08:48
What I said was that ISO = YYYYMMDD + fluff. Which is true.
Sorry you are right. I was wrong.
Yes. ISO-8601 has got it all covered. String sortable in all forms. I now like it even more.
It's just a weird mixed base number now.
The bases being 10-10-10-(3.65 or 3.66)-10-(2.8..3.1)-10
@Mr_Green moment.js
I am in IST timezone and I have a string related to EST. How to get minutes related to EST from my place which is IST?
wow you just linked to future message.
but what if I just want to go with JavaScript? would that be PIA?
EST + IST + JS = PITA
I got this doubt after seeing this post.
@HariDas seems you are not in EST timezone. pls check mdn docs. — Mr_Green 6 mins ago
ok
08:59
I get EST and IST, but what is PIA?
Most timezones are offset from each other by a full hour. Converting minutes manually should then be easy if you know what timezone you want to convert from and to.
Google tells me pita is edible...

« first day (2012 days earlier)      last day (3159 days later) »