« first day (1782 days earlier)      last day (3149 days later) » 

12:01 AM
@rlemon did she make lemonade?
congrats :)
 
on what? not fucking it up in five years? :P
 
Found a really shotty way of extending native objects in ES6...
class DocFrag {}
DocFrag.prototype = Object.create(DocumentFragment.prototype);

class Something extends DocFrag {
    ...
}
It's more like classical inheritance than prototypical, but it gets the job done
 
user406009
Prototypical inheritance is usually annoying.
 
Nah, I prefer it
 
12:24 AM
@rlemon i would consider 5 months a milestone achievement
 
user406009
@ʞɔᴉN You should make your gravatar the reverse of @Nicks. It would be hilarious.
 
@Lalaland it was, for like a month. untill he changed it :(
anyways it confused and enraged people
 
I'm gonna drop IE8 support in my polyfills; it's too much retarded to try to get working
 
do it
 
I changed my avatar to a better one
rapey thomas the train engine
 
12:34 AM
dropping ie8 is the best thing you can do for any project
 
( ͡o ͜ʖ ͡o)
 
user3233318
What about the bounce rate?
 
user406009
Isn't IE 8 the last version of IE for Windows XP?
 
I wanted my polyfills to be able to reach that far back, but not having proper getters/setters is unbearable
 
user406009
Think of all those poor windows XP users out there.
 
12:35 AM
Chrome.
 
it was the shipped version on Vista as well
which is why It's stuck around longer than it should have
 
ie9 is ES5. That's way better than es3.
 
@user148098 what about the children??
 
user406009
 
Yeah, but Vista shipped with IE8
 
12:36 AM
yea, only xp is stuck. but.. chrome.
lots of 'normal users' use chrome now, anyway
 
user406009
Microsoft's latest browser is actually quite decent.
 
To the last XP user: Fuck you.
 
user406009
Edge or whatever.
 
@Luggage I'LL NEVER LET GOOOO
 
user406009
We just had someone on Lounge<C++> who was clinging to windows XP.
 
user3233318
12:37 AM
Are transitions and animations well supported now?
 
user406009
"But, ..., nothing is good as XP!"
 
@Lalaland was probably me
 
user406009
@ʞɔᴉN Not unless you have legions of sock puppets.
 
user406009
And very good acting skills.
 
12:39 AM
snipe was me
sino was.. nvm I can't even act that bad
 
Hey all, I'm trying out React for the first time, and I'm a little tired of this message:

> You are using the in-browser JSX transformer. Be sure to precompile your JSX for production

I figured that since I'm using Node, there has to be some node module that I can use with Express that just hooks some URL and compiles all this stuff on the fly (ideally with caching), but I can't find one. The best I can find is [this](http://christianalfoni.github.io/javascript/2014/08/15/react-js-workflow.html) big blog post that talks about gulp.
 
user3233318
I am asking because I was having strange behaviors. But it could be on my part.
 
user406009
And then we discover, everyone in this room were secretly ʞɔᴉN's sock puppets all along. He really just likes to talk to himself
 
@Sidnicious you using some tool to build your .js?
like babel?
 
you are my only friends
 
12:42 AM
or webpack, gulp, grunt, bwoserify, etc
 
@Luggage Nope. Right now, I've just got a minimal Express project and some static files… I'm not really up to speed with modern build processes :).
 
user406009
Darn, that would actually be a great idea.
 
user406009
Make a room "Chat simulator"
 
so react works best when you run all your client .js files through a transpiler.
 
user406009
And have bots say things based off markov chains from the rooms.
 
12:43 AM
A 'modern build process' is needed here, but there are some quick ways to get set up.
 
@Luggage That's the impression I got, but so far everything seems to be fairly complex, and generally a separate tool that you run. I was expecting something I could just drop into express, point at a directory, and have it build stuff on the fly.
Okay, yeah, what's your preferred 'modern build process'?
 
@Lalaland then I could use the room's messages as raw data for my spam operations
 
gulp is pretty popular and the babel plugin you'll need has a complete working config as an example: npmjs.com/package/gulp-babel
 
user3233318
Has someone had problems with transitions?
 
depending how you want to package up your .js files into bundles, you can add on some fancy tools like webpack or browserify
but that gulp-babel config will give you a "compile all these .js files into another folder" setup
 
user406009
12:46 AM
@Sidnicious Oh yes, you don't need a seperate jsx transformer when you use babel.
 
Hey guys, can someone help me out here ?
 
@LuluthoMgwali 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.
 
0
Q: HTML5 audio element with source being audio stored as varbinary bytes from database

Lulutho MgwaliThis is a normal audio player, but if i wanted my source to be audio stored in my database how would i go about achieving this ? <audio controls="controls" autoplay="true" loop="loop"> <source src="WhiteChristmas.mp3"/> </audio> This how i am currently reading the audio files from my database...

 
Gotcha, so I still need to run a separate tool? Would I be shooting for something like this (scroll down to "The Solution")?
 
Thanks @CapricaSix
 
12:48 AM
yea, something like that. that's gulp+browserify which isn't bad
 
user406009
@Sidnicious Yeah, something like that.
 
I feel like building a version of this that's integrated with Express and has sensible defaults for react/es6/etc. :). Is there a reason this stuff is separate (like, a reason this is a bad idea)?
 
express is a server, not a build tool.
you build once, not every time someone requests a file
 
user406009
2 reasons I can think of . 1. Transforming code is expensive. You only want to do it once. 2. Less dependencies for shipping your app.
 
that said.. there are ways to build ont he fly in express, if that is what you deetrmine you need
but you probably don't really want that.
 
user406009
12:50 AM
@Sidnicious My only change to that guide would be to swap out babelify instead of reactify (github.com/babel/babelify). Only do it after you get everything working of course.
 
user406009
@Luggage The only time I can think of when you want to build on the fly is if your app runs client submitted code. Like jsfiddle or something.
 
just to give an idea, with gulp, using babel and browserify, my build process is 1.3 seconds... if your server has to wait 1.3 seconds before it actually starts doing any real work, you're doing it wrong.
 
my build process is almost a minute
 
yeah, I'm working on something really small
our build process at work is a few minutes
 
In my head there'd be an express middleware that takes your source dir and a URL at which to serve the compiled code, it'd fork off a process to handle builds in the background, compile once at startup, and watch the directory to recompile when things change.
 
12:51 AM
things like that already exist; it's called gulp
 
@Sidnicious you solve that by having a start script that runs the gulp (or other build system) process, then starts your express app
and that allows it to restart the app when a file needs to recompile and other such fancyness
also.. you'll soon want a build process for the server, which would rule out that plan
 
Maybe I'm just bitter that there's no 'hello world' for this stack that doesn't involve lots of lines of config and writing your own start script.
 
that link i gave has a complete example
takes all .js files from /src and compiles them into /dist
 
Oh, the npm page?
 
thorugh babel, which will convert JSX among other things
 
12:58 AM
Lemme spend some time reading that before I say anything else.
And thanks for all your help so far :).
(Both of you)
 
i'm closing my laptop. good luck. once you get a build process, you'll reap the rewards. having tools to transform (or just validate or otherwise process) your JS is damn useful
 
Thanks! Lookin forward to it.
 
1:11 AM
> Here's what you think after playing a lightly modded stock KSP: *Why haven't we been to mars yet?*
> After playing Realism Overhaul that changes to: *How did Sputnik even happen?*
can confirm
 
1:32 AM
the grammar in the DOM spec is just bad... I don't understand what half of this shit says
 
I'm fucked
 
> Let FRAGMENT be the result of invoking the fragment parsing algorithm [DOM-PARSING] with the new value as MARKUP, and the context object as shadow host
explain that bullshit
 
fuuuuck
 
nevermind... I think I get it
now get to mars, you slacker
 
I'm not even in orbit, and I'm broke
sigh
At least I have an orbit-capable rocket
FACK
 
1:49 AM
hii, i'm using featherlight on my site, and i can't seem to figure out how to edit the content before it gets put in the lightbox. github.com/noelboss/featherlight. I know I need to use beforeOpen but that's all I got. Can anyone take a quick look and see if I"m missing something?
 
YAS
I love the way this game makes me hate it
 
This is different.
 
@CorwinAshley 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.
 
 
1 hour later…
3:07 AM
BOOOOORING
 
user406009
@rlemon The meta post in question: meta.stackexchange.com/questions/229913/…
 
3:23 AM
@SomeKittens did you do a misdirect.ion.land think?
 
@phenomnomnominal Have idea, don't have time
 
@SomeKittens what was your idea?
 
Create a "Personal image" for the user (along the lines of RSA and/or banks), but the URL is the key and so a request for the image gets sent to my server
 
oh nice, that's really good
 
why does a promise start resolving immediately outside of a function, but if it's declared inside a function, it doesn't start resolving until the function is called?
 
3:27 AM
@NathanJones replace "promise" with "console.log"
 
@SomeKittens oh...duh. thanks.
 
@NathanJones hah, no sweat, happens to all of us
 
If I have array:
currentHoliday  = [months[currentMonth], 'none');
How would I go about making currentHoliday[0] equal to whatever the currentMonth number is with months, so it would change.
Ex:
currentMonth = 2;
which would be march, but It says January.
 
can I ask for an upvote?
 
@Micaela 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.
 
3:28 AM
@CapricaSix ok thank you
 
@Micaela not generally, no
 
4:12 AM
xup hos
 
not the stock market!
 
no wurt
 
Hello, does this src path look correct to a webservice. just want to make sure that thats not where im having problems
audio.src = 'WebService.asmx/PlayAudio?id=' + id;
 
no
yes i mean
maybe
 
lol @taco you not helping.
 
4:20 AM
k ok
alchol
 
@Lulutho huh? He's definitely, maybe unsure or not... it's perfectly clear :p
 
you say that I love you is not the words i want to hear from you
 
its not that i dont want you not to say it, but if you only knew
you'll help now @taco
?
 
kkk
 
4:36 AM
0
Q: HTML5 audio element with source being audio stored as varbinary bytes from database

Lulutho MgwaliThis is a normal audio player, but if i wanted my source to be audio stored in my database how would i go about achieving this ? <audio controls="controls" autoplay="true" loop="loop"> <source src="WhiteChristmas.mp3"/> </audio> This how i am currently reading the audio files from my database...

 
more than words
 
more than words?
 
sex
 
4:54 AM
will the way we calculate median change is the array is sorted in descending order? gist.github.com/caseyjustus/1166258
 
@deostroll I don't see why it would
 
(values[half] + values[half+1]) / 2.0
noted that the code is sorting in ascending order...my input array is already sorted in descending order...
so I kind of don't want to sort again...
 
Well, the two middle numbers in a sorted list would be the same two numbers no matter if you sort ascending or descending? They'd just swap places?
And since you're averaging them anyway, it doesn't matter if they swap places
 
so I should go with (values[half] + values[half-1]) / 2.0
 
You shouldn't need to change the formula
Consider [1,2,3,4] and [4,3,2,1]. Which two numbers are the two middle numbers in those arrays?
 
5:00 AM
which is better? This: audio.src = "../../WebService.asmx/PlayAudio?id=" + id; or this? document.getElementById('test').src = PlayAudio(); This is the funtion that i use to reac the Webservice function PlayAudio() {
var id = $("[id$=hiddenWord_id]").val();
$.ajax({

url: "../../WebService.asmx/PlayAudio",
data: "{ 'id': '" + id + "'}",
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
success: function (data) {
//If you want to add more functionality when the method is called successfully(when do they click, before or after the match.
 
okay...point noted...thanks...
 
@deostroll The reason they do half+1 is that they found half using var half = Math.floor(values.length/2);
So the sort order doesn't matter, it's all about finding the position
 
@LuluthoMgwali You cannot return some data from ajax call. You need to set src in the ajax onsuccess.
And if you ask me to pick, I will pick the direct url assignment to audio.src. Much simpler. I do not see the ajax adding anything new.
 
m59
Woot, I just hit 1m reached on SO.
@ssube but Angular is great for getting rep haha
I have 11k rep just from Angular answers.
 
@Sheepy they both seem not to go trough to the webservice.
 
5:08 AM
@m59 I used to farm a bit there but once it really picked up popularity the quality of questions gave me headaches and I had to stop :)
 
m59
Yeah, I only answer one on occasion now.. I finally found one tonight that I hadn't seen before and was a decent endeavor.
1
A: Dynamically generate select menu options for each unselected item in an array

m59Here's one way you could do it. Live demo (click here.) <div ng-app="myApp" ng-controller="MyCtrl"> <div>Selected: {{selected}}</div> <div>Available: {{notSelectedHours()}}</div> <div ng-repeat="item in selects() track by $index"> <select ng-model="selected[$index]" ng-options="hour fo...

I wish there were better questions - only 18 answer away from gold angular badge ;D
 
Your jsbin demo doesn't work for me
 
m59
browser?
 
but answer looks sound :)
Chrome 44
 
@LuluthoMgwali Then you need to debug that. First check whether server return anything. Then check whether what is really returned. Not much we can help from the JS side.
 
m59
5:12 AM
Strange. Anything in the console? @ivarni ?
 
Getting some errors from JSON.parse for some reason, possibly not related to your code at all
I run HTTPS Everywhere plugin, could be the culprit
 
m59
Nah. jsbin is just boney like that.
 
Yep, that was the problem
going back the the URL and adding HTTPS works
You could have put that into the link from the answer ;)
 
5:35 AM
0
Q: Console is not showing any message in log

Nafees Anwari am using following script to test something $(document).ready(function () { function calculate() { var myObj = { x: 1, y: 5, z: 3 }; console.log(myObj) } $('#calc').on('click', calculate); }); but i don't get anything i...

Noob
 
6:07 AM
31
A: Are C# arrays thread safe?

Jon SkeetI believe that if each thread only works on a separate part of the array, all will be well. If you're going to share data (i. e. communicate it between threads) then you'll need some sort of memory barrier to avoid memory model issues. I believe that if you spawn a bunch of threads, each of whic...

^ So read operations from a c# array are always safe...even when two or more threads are trying to access the same array element...?
 
user3119231
morning :D
 
Oops wrong room :0
 
user3119231
Yeah, this is what I just thought
 
6:22 AM
-1
Q: Migrate a windows 8.1 app to windows 10 universal app

Aman Khatrii am trying to migrate from an existing 8.1 app (working perfectly fine) to win 10 universal app. There are a lot of obstacles like MSApp.execUnsafeLocalFuntion being removed. There are a lot of js errors. Some of errors being- The app couldn’t resolve ms-appx://code.jquery.com/jquery-1.10.2.js ...

Mornin! :D
 
user3119231
what the hell.
 
@Callum stop being cheese racist XD
 
morning
 
user3119231
morning
 
6:41 AM
morninh
 
6:51 AM
Hello. i have a function which is found in a later on loaded JS.
the function is called : applyCodeStyling()
How can I configure chrome to pause when that method is invoked ?
I dont have any file which I can set break-point because the JS file is loaded dynamically.
Is it possible ?
 
7:10 AM
@RoyiNamir Does it change any DOM elements?
 
@RoyiNamir After the page is loaded with the js file, add the breakpoint, then refresh the page
it should be smart enough to remember the breakpoint and apply it when it sees the same file again
 
If you right click a DOM element in chrome you can add breakpoints on DOM manipulation, I haven't used it much but you might be able to use that
 
Not sure how to vote on that so vote to dupe-close one and OT-close the other
I'd expect both to be closed and eventually roomba'ed anyway
 
@m59 Looks like he'd be fun at parties
 
7:22 AM
@BadgerCat Thanks! cc @FlorianMargaine @Loktar
 
@ivarni Yes it does. so now you make me think that i can put a break point on "when subtree modfied"., thanks.
@Neil Yes thank you. But I set " disable cache". so every it loads it again. I will check if it works.
@ivarni but I think it's a too ahead stage because the dom is already being modified. I need the exact first line of that function when it is executed.
 
guys anybody knows how much data can pouch db handle in browser?
 
Hi
nvm
 
7:43 AM
Bye
 
7:55 AM
wow
 
Monring!
 
Please some one answer my question
 
we don't know the answer :/
!!answer his question
 
@Cauterite That didn't make much sense. Use the !!/help command to learn more.
 
see
 
8:13 AM
Hi ppl Just a question about git; If I do a git pull --rebase will it erase the modification i've done on my branch ?
 
"ppl"? Wanna kick?
 
¬_¬
 
Nobody for helping me on git :( ?
 
the documentation doesn't help?
 
8:23 AM
@RoelvanUden Ok perfect ty :)
 
...
 
@JanDvorak You can :/
 
I can kick you for disrespecting the english language? I'm glad you don't mind :D
 
What have I done again to this poor language? Ain't even able to see it :(
 
"ppl" and "ty". "Ain't" almost counts, too.
 
god forbid you save a few keystrokes by using commonly understood abbreviations
 
Ho common this is not disrespect this is glorifying ;)
 
@Cauterite cn u rd tis? cn u? do u lke it?
 
Ez
 
@JanDvorak i said commonly understood
 
8:29 AM
He got a point
 
@Cauterite well, aren't these commonly understood?
 
Yeah but not commonly "accepted"
Eventually the u but "cn" first time I see this
 
even "u" is disrespectful
 
lol
 
8:46 AM
|v| $ur3 vve @|| sp|< 1337 2
 
@Purag Thanks, btw what do you suggest in an angular app? pouch or loki.js?
 
Well, I hoped to support you by showing how far it can go. Thanks for the warning.
 
oh. Noted. Sorry.
1 message moved to Trash can
 
9:01 AM
@MadaraUchiha how old are you? ~1027 y.o.?
 
what do you guys think about ECMA 6 and TypeScript ?
 
ES6 is pretty nice
 
ES6 and TypeScript are both pretty nice
 
I can check my own types myself, thank you
 
TypeScript is pretty nice
 
9:08 AM
@JanDvorak do you trust everyone else working on your codebases to do the same?
 
Only tried TS briefly, I prefer ES6 though
 
@phenomnomnominal good point; I'm a soloist
 
The nicest thing I have found is tests literally not compiling cause someone changed an interface
 
What do you think about Purescript et al.?
 
Haven't actually used it. Looks fairly powerful, but way too scary to pull into our codebase
 
9:13 AM
Does TS require type definitions? Say you need to import a small library that doesn't have any, do you have to write them?
 
I'd take TypeScript over PureScript.
 
@BenFortune nope
it's a super set
so just renaming a js file to .ts is valid
 
mostly
 
@BenFortune No, it's not required, but it is recommended. If you don't provide typings, it becomes the any type, which is just like normal JS -- not type checked at all.
 
Nice, thanks.
 
9:15 AM
Not really; sometimes it infers the type, sometimes it uses any
 
@JanDvorak Mostly? Is there anything that ISNT valid TS that IS valid in JS?
 
thanks this info is useful
 
Kinda depends
 
TypeScript is Async or Sync ? :D
 
if you have ES6 imports and don't target ES6 with the compiler you'll get errors
 
9:16 AM
@RoelvanUden Yes. I've heard of a case where it mis-inferred a type, and then rejected valid access as invalid
 
@VeeeneX TypeScript is a superset of JavaScript. It's the same as JS. You can have callbacks, or promises, or even async/await (just like ES7). Pick your poison.
@JanDvorak Sounds like a bug. It was solved I suppose?
 
@JanDvorak that's probably just a bug though right?
 
IDK if it was fixed
 
Outch @RoelvanUden, so there is no way how to use it without callbacks ...
 
@VeeeneX of course there is, you are misunderstanding
 
9:18 AM
@VeeeneX ... It's just like JavaScript. Did you not read what I said? You can use whatever you want. Callbacks? Sure. Promises? Sure. Async/await? Sure. Whatever you want.
 
@VeeeneX promises (kinda not callbacks), await (uses promises)
 
Maybe not generators?
 
You can use generators too if you please.
 
I haven't tried them with TS
 
I write most of my TS with async/await which also uses generators of sorts. They work fine, but that is TypeScript 1.6 and not the current stable 1.5.3.
 
9:19 AM
What I really want are monads. Await works for promises, but not for arrays or even (god forbid) the Maybe type.
 
I remember that ES6 specifically worked towards being a subset of TS.
 
Hmm, looks like the new node.js site is up, nodejs.org/en
 
And that is why we have fat arrows instead of thin arrows, for example.
 
I wonder when v4.x.x will release.
 
It is either "soon" or "when it is ready". From experience, they are interchangeable. ;)
 
9:23 AM
@RoelvanUden Yes I've read that, I mean pastie.org/10391248 this
 
@VeeeneX I have no idea what you mean...
 
@ssube ping
 
Hey guys can multiple ajax async calls overwrite each other? I have multiple webworker threads and they all call the same ajax function in the main thread. By the time I get to the bottom success function the object attributes are overwriten.
 
@RainyCats 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.
 
9:30 AM
Links to a pastebin that contains 2422 lines of code:
-1
Q: js functions works fine on initial call then get a 'is not a function' on subsequent calls

ZabsI have a web app that has a drag & drop interface to reward students, one of this aspect of the app allows a user to drag & drop & reward onto an individual student. On Line 1231 there is the function 'onBuddyRewardGiven' within the 'reward.type' switch statement in this function there is a 'pos...

 
@RoelvanUden Let it beee :D
 
user3119231
Bees? Oh no.
 
@RainyCats ajax calls don't write to anywhere. Are you writing somewhere from your success callback, or are you reusing the same XHR object to make two different AJAX calls?
 
Just deloyed my first 100+ lines PowerShell robot. May I say I learned another language?
 
9:32 AM
:DDD
 
Greetings
Can someone help me on this:

http://stackoverflow.com/questions/32336627/how-to-drag-and-drop-multiple-elements-on-a-field
 
user3119231
@Cerbrus good job, mr.
 
!!welcome FranciscoMariaCalisto
 
@FranciscoMariaCalisto 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.
 
9:34 AM
Ok sorry for the inconvenience.
 
@JanDvorak I have several plugin objects and all of them spawn a webworker. The webworker posts a message back calling fetch() function which does a ajax call inside the main thread. I log the objects id [this.getId()] at the beginning of the function and in the ajaxs success function and it gets overwritten by the last plugin to be run.
 
code?
 
gimme a minute
 
said six minutes ago
 
trying to copy stuff across vnc, just wont copy and paste
 
9:42 AM
Can't you just copy to pastebin remotely?
 
are you trying to reuse this?
 
Can I use slimerjs without opening window?
 
Teo
Hi guys, in my MVC web application I have to send my form and a string to my Controller. If I send via $.ajax POST only the serialized form (with "Serialize" method) it's ok, but if I send also the string, my controller receive NULL form... :-(
This is the code I use: http://pastebin.com/VhFF3qkE
 
@Teo 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.
 
9:49 AM
I wrote it, there are mutliple Plugins and each spawns a webworker now those webworkers all run at the same time and will call that function at the same time as well.
 
Error 404 occured, I will call the maid (@Zirak)
 
What exactly is getting overriden, then?
 
self inside getMetricById 2 178, end of getMetricById 2 9 undefined 178. The nine is the id at the end of the ajax call and the 2 is the plugin id at the beginning od the get function
 
Teo
@RoelvanUden Thank you very much.. I will try also there but I think that my problem is in the javascript $.ajax POST call :-(
 
9:51 AM
Im not sure whats going on, its like the Plugin objects attributes get overwritten.
 
*I'm, *what's, *it's, *object's
 
@Teo It's not. It's the way ASP.NET MVC tries to model-bind the data, and that's a MVC-specific problem. Not a JavaScript-specific one. You just need to make sure the JS side sends SANE data and the appropriate headers. Continue in C# ;-)
 
Grammar nazi >.> Thanks for the help though. I've been trying to debug this since this time yesterday.
 
@RainyCats found the bug. Reread line 7
 
Teo
@RoelvanUden Thank you very much. Have I nice day! ;-)
 
9:53 AM
    me = this; ?
 
Yep. What's wrong with this line?
If you're not sure, turn on strict mode. It will tell you.
 
Ermm, im just getting that plugin instances context?
 
*I'm, *instance's
not quite. There's something missing on that line.
add "use strict" to the first line, it will tell you.
 
oh wait, is it because I'm not using 'var' so im declaring it globally?
 
correct
 
9:56 AM
It worked!!!! Jan thank you so much
 
Hi guys Here any programmer. Who know little about nsis?
 
@Mike 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.
 
!!define nsis
 
@JanDvorak No definition found.
 
Nullsoft Scriptable Install System
 
10:07 AM
I know nothing about that.
 
Anyone?
 
then I guess you mean "a little"?
!!welcome mike
 
@mike 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.
 
I want to change the uninstaller icon?
WriteUninstaller $INSTDIR\uninstaller.exe
 
Is that a Javascript question?
 
10:10 AM
Nullsoft Scriptable Install System
 
Doesn't look like javascript to me
 
That's not JavaScript. I didn't know you could program without JavaScript.
 
0
Q: var a = "xxx" not recognized as a string

TimonI've got the following piece of javascript. $.get("/Search/Loadmore") .done(function (data) { $.each(data, function (i, val) { var string = "abc" + "def" + "ghi" var result = string.replace("abc","xxx"); }); }) This code throws ...

Horrible answers EVERYWHERE
Goddamn
 
<cue Woody and Buzz Lightyear picture>
!!afk to lunch and beyond
 
Hm, lunch? So Jan is around the same timezone...
 
10:25 AM
 
10:46 AM
Company I work for is on the edge of going into administration. ._.
 
user3119231
LiveScript = Ecmascript = Javascript ???
 
I'm trying to remove <script> from string regex101.com/r/zM8bI0/1, yes page of google.com with following code: pastie.org/10391482 but this code doesn't replace it with ""
 
Sir, Please rewrite the code for me? — Mike May 18 at 20:54
 
<script> is matched but not replaced
 
@BenFortune Wow
 

« first day (1782 days earlier)      last day (3149 days later) »