« first day (2349 days earlier)      last day (2599 days later) » 

1:00 AM
sorry
 
i'm not.
 
because you're not Canadian.
 
@Allenph pff, you raise good questions :P
you'll prolly make a good room regular
but don't keep the js room's event loop blocked for too long
 
shrecked.
 
@Shmiddty how about 3 hours from now? [CS:GO, I'll most probably die a lot.,
 
1:03 AM
@Shrek Does that mean I talk to much? Haha.
I tend to do that. I think a lot of it is because I'm young. I don't even think about it.
 
@Allenph no most people in this room are like JS runtimes. Block the event loop by a long running cmputation and they crash.
 
Anyways, I have to bail. I already stayed an hour after. Peace, all.
 
@Allenph *most people here probably went through a phase like that or similar.
 
@Shrek I'm still failing to get your analogy.
 
try this in your console


while(1) {

}
 
1:05 AM
@Shrek Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
I did that and it told me that it wont halt
 
HAMMERZEIT!
 
@Meredith which browser :o ?
Thats bloody good! Chrome crashed as usual
 
hey can we add a command that makes the bot kill itself when i say fuck off
 
just alias die to fuck_off
I am guessing he did that :P
 
1:07 AM
die only works for room owners
 
@Loktar ugh
 
@Meredith lol
 
Ohh, I just got it.
 
1:38 AM
I wonder who this reminds me of
 
accidentally overwriting snack with bed
classic
 
@phenomnomnominal clbuttic
 
artisanal
 
2:15 AM
Does anyone have a list of proposals that babel has supported in the past, but have been retracted?
Also, were there any proposals that have gotten to stage-3, but ded?
/cc @BenjaminGruenbaum @AwalGarg
 
Proposal #24 - Rejected - Replace ; with 🐌
 
Proposals are numbered?
 
That one was.
 
Link?
 
Um.. I'm not being serious.
 
2:19 AM
Oh..
 
The real proposal was to use 🎱
 
3:11 AM
Hello, all. I wrote a program to do deep copy of an object/array. Only own enumerable properties are taken into account. This program detects circular references and throws an error if any is found. Could somebody tell me if my program does its trick? Could you spot any bugs?
 
3:24 AM
You could do the circular references thing a bit easier
JSON.stringify will throw if given a circular object
You could abuse that
 
really? that's great
 
!!> var a = {}; var b = { a: a }; a.b = b; JSON.stringify(b);
 
@phenomnomnominal "TypeError: cyclic object value"
 
 
2 hours later…
5:19 AM
hello, I am having some issues with devextreme datagrids and excel export
 
user7426734
0
Q: How to upload multiple files to aws s3 bucket with angular2?

face turnI am trying to upload multiple selected files to s3 upload. right now it works for one, how can i convert the same to support multiple files ? Here is the function: UploadTickets(files: any) { console.log(files); console.log(AWS); // for (let i in files) { let file = files[0...

 
5:41 AM
@CapricaSix bot works here ?
!!> Good Morninf
 
@Rush.2707 "SyntaxError: missing ; before statement"
 
!!> GM
 
@Rush.2707 "ReferenceError: GM is not defined"
 
!!> signifies JavaScript execution
 
6:21 AM
I want to do the following

export default class HttpError extends Error {
    constructor(status, message) {
        super(message || httpStatusCodes[status]);
        this.status = status;
    }
}
and then check using instanceof HttpError
for some reason instanceof returns false
any idea why?
 
depends
but probably cause of how extends is handled for native types
 
@phenomnomnominal it turned out to be babel
I think natives should be extensible
 
6:58 AM
import httpStatusCodes from './httpStatusCodes';

function HttpError(status, message) {
    this._err = new Error(message || httpStatusCodes[status]);
    this._status = status;
}

HttpError.prototype = Object.create(Error.prototype, {
    constructor: {
        value: HttpError,
        writable: true,
        configurable: true
    }
});

Object.defineProperties(HttpError.prototype, {
    status: {
        get() {
            return this._status;
        }
    },
    stack: {
        get() {
            return  'HttpError: ' + this.message + '\n' + this._err.stack.split('\n').slice(2).joi
Solved it with this :P
apparently v8 keeps track of who accesses .stack
don't think this will help though :(
 
7:12 AM
10
Q: Extended Errors do not have message or stack trace

ssubeWhen running this snippet through BabelJS: class FooError extends Error { constructor(message) { super(message); } } let error = new FooError('foo'); console.log(error, error.message, error.stack); it outputs {} which is not what I expect. Running error = new Error('foo'); console...

 
@ssube I was just thinking ...
why do i have to map the times when gathering these from +/- servers ?
I only have to "convert" it to an uniform time outline. By this, I can remove all that TZ diff calculations towards UTC from each server
i just discovered geek-and-poke.com whose some really fits right
 
 
1 hour later…
8:48 AM
@littlepootis nothing got to stage 3 and lost, Object.observe was the closest, lots of babel supported proposals are dead.
The easiest example I could think of is RegExp.escape which is a proposal I was in charge of - it never made it past stage 0 but it works in core-js with Babel until this day :D @littlepootis
 
Looking for a developer familiar with AWS to help with an urgent issue. Want to compensate. Anyone available?
 
Delto what are you loooking for?
 
whats with these chatroom titles?
 
My apps hosted on AWS are giving me "No space left on device" and PHP errors.
It's hurting my business
If anyone has some time, I'd love to pay you to help me resolve this.
 
codementor, freelancer
idk
 
9:00 AM
My developer is offline
Someone invited me to a private chat, but I misclicked and it vanished.
 
@Delto that was me :)
 
Oh, do you have time to assist me?
 
@Delto Probably, do you have an IAM user that I can use to access your AWS account?
 
To be honest man, I'm not very savvy with AWS. I just did a quick search about IAM, and no I don't think I have anything in place.
But if you add me to skype, perhaps we can work through this on a screen share?
I'll pay you whatever you'd like. I need this resolved urgently. Thank you Glenn
 
I am facing a problem and someone has already asked this question on SO but to my much dismay, no one replied. Could you please look into itsdf
1
Q: Google chrome Upload Speed vs Firefox

VishnuApplication is uploading a large file. Google chrome is reaching maximum of 800 to 900Mbps on LocalHost. But Firefox can reach up to 2Gbps or More! Why this much difference? Changing responseType to blob helped in GET request. How to Make upload (POST request) faster on Google Chrome. function ...

 
9:12 AM
@Delto it probably filled up with logs
 
@ssube I have no idea where to go to clear the logs. I'm in the EC2 instance using WinSCP... and I see where I have my files hosted (the folders), but lost from there.
 
check which folder is biggest in /var/log
 
o/
 
@ssube Yeah... unfortunately that's way over my head. Haha.
 
Joe
9:44 AM
I have a question
please help
 
!!welcome Joe
 
@Joe 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.
 
Joe
how does for example eclipse know that when I write if statement so it do exactly what I wrote ,, I mean is an if statement implemented in the hardware ? how is that? what hardware does that? thank you
 
wat
 
Joe
this question is very interesting for me
I was always wondering about the answer
 
9:48 AM
wat
 
if you press on the key "i", it gets displayed to the editor
nice right ? :D
then "f" ... same
then you have "if"
 
the if statement is transformed in machine code (that contains the instructions), which is executed by CPU ... the closest a sane person can get to machine code is learning assembler
 
woohoooo
 
Joe
what language does the CPU use to transform an if statement?
ok so assembler is the language
 
CPU uses machine code
users.cis.fiu.edu/~downeyt/cop3402/machine.htm (this is for the old 8088 machines)
 
Joe
9:51 AM
ok
I see so the eclipse is using that CPU to do its work? true or false?
 
in general, all programs use CPU
 
Joe
ok
can we say that eclipse is just a transformer to make CPU understand the code?
 
no
 
Joe
ok what you say?
 
because eclipse is just a glorified text editor
 
Joe
9:55 AM
and that text is managed by CPU ! true ????
 
yes, but not in the way you mean it
all applications on your computer use CPU
 
Joe
ok
it seems for me that eclipse works as calculator but the CPU make the values displayed.. true?
 
no
 
Joe
ok
eclipse and CPU work together to do the if statements ect
 
no
 
Joe
9:59 AM
what you say?
 
eclipse is just a text editor
 
Joe
why not we cannot use word to do coding?
 
This coversation... wow! true??
 
you can, it would just be really dumb
 
Joe
yes man true because I really do not understand the connection between eclipse and CPU
 
10:01 AM
the text editors, that are intended for developers have various features, like auto-complete and syntax highlighting
 
you cannot do it in word because it doesn't have a compiler and interpreters
 
true pros use notepad^
 
@KarelG that's bullshit
 
a programming language is being compiled / interpreted into a language (machine code) that the CPU can use
 
you can code in word and then strg + c that code into a compiler
 
10:02 AM
@tereško wha ... I do want to see you displaying a window with "hello world" from word only. No shell. w/o interpreter w/o compiler
 
Joe
notepad? Iam not joking bro ,, I want to learn myself
 
@KarelG when you write JS in vim, what happens?
 
learn how programs work
it's saved as text file
 
@KarelG how would be writing code in vim different from writing in MS Word?
 
What do I win?
 
10:04 AM
you ... :P
 
@KarelG what is preventing you from saving test as plain-text document using MS Word?
and then compiling it
 
actually, i should have a different phrasing
 
@Joe why are you so fucking fixated on eclipse?
 
Joe
@tereško it is just an example ,, you can talk about MATLAB program or what ever you want
 
henlo
 
10:08 AM
here, some options for you @Joe
 
oh, right, forgot that one
 
Joe
that is for javascript?? can I use them for java coding?
 
java is to javascript like car is to carpet
they are different languages
 
Joe
I know
yes man
 
10:09 AM
but yes, you can use those editors to also write java
and c
and erlang
and php
 
Joe
great
 
the code that you write in the text editor is just that - text
 
Joe
thank you all very much
 
it has to be transformed, before it an be executed (that is done by compiler or interpreters)
 
Joe
thanks man @tereško
ok
 
10:11 AM
for example, your web browser has a built-in interpreter to be able to run javascript
 
Joe
I see
I appriciate your help ,, you cleared alot of thing for me
 
my advice for you would be to find a book about programming and read it
 
Joe
I guess in that browser we do not use CPU ,, true?
I will try to improve my self
 
21 mins ago, by tereško
in general, all programs use CPU
browser is a program
 
Joe
ok very good
thank you
 
10:22 AM
Is stackoverflow the right place to ask stuff like CFL design and PDAs?
 
@Asperger yeah may be
 
@Rush.2707 I remember I asked something in regards of creating a set of production rules for X etc
many views but no answer so I deleted it
 
@Asperger don't worrry .... it happens
 
Joe
10:40 AM
here is a further explination of what we discussed en.wikipedia.org/wiki/Compiler
 
10:56 AM
Is it possible to merge splitted bundles in Webpack ? Asked here
 
@Eris why are you not using https?
 
How do you know it's not served in HTTPS at first place ?
Site sends HSTS header so all reuqests are 307 internally
And rewriteurl module in IIS
 
@Joe try reading a book on Computer Organization.
I'd recommend CS:APP.
Or Nand 2 Tetris.
 
Joe
are those books?
 
Joe
11:06 AM
thank you brother
I will try to read ,, many thanks
 
11:19 AM
how can I simplyfie this:
if(i == 0) ...
if(i ==1) ...
if(i ==2) ...
for loop?
 
yeah ... Well it depends of what happens in the body. But in most cases yes
 
@JohnDoe2 Sounds like a switch block
for will probably not be helpful
 
11:32 AM
@JohnDoe2 You can also do this:
var arr=[funcForZero , funcForOne , funcForTwo...]; //order matters
var result =   arr[i](); //invoke
 
hey guys
any angular2 superheros in here?
I'd like to know at what stage of the lifecycle I should load data from my angular service which will be consumed by the child component in the view (I use @Input to pass the data to the child component)
 
@Eris That's clever, and not in the good way
 
@KendallFrey Switch is less clever. I can assure you that
Unless (!) there are gaps in the numbers ( 0,1,2,6)
OP showed example. My code is more dynamic / faster than switch. Test it.
He can append additional funcs to the array , without caring about IFs/Switch — while using switch - he should change the code every time !. That's not how you should program.
 
11:51 AM
@Eris If the compiler is smart enough, switch will at least be as fast as an array of functions, and probably much faster.
 
What about adding switch code each time a new function is arrived ?
I'm not going to argue as it much more dynamic way and faster BTW . I hope you won't say "switch" ( for that scenario) in an interview.
 
@JohnDoe2 what is the actual problem, that you are trying to solve?
sounds like you want us to fix you buggy "solution"
 
can someone have a look at this kopy.io/yTptg need coding practice my code is bad
 
@JohnDoe2 do you just need to remove the last child? developer.mozilla.org/en-US/docs/Web/API/Node/lastChild
 
@Eris Seems easier than creating a whole new function
 
11:58 AM
Oh boy...
nevermind
 
@JohnDoe2 also, you rally should use jquery things, that can be easily done with native JS
 
@tereško why?
 
which part?
because jquery is slow and promotes bad practices (like that code you wrote there)
 
"you rally should use jquery things, that can be easily done with native JS"
@tereško I did this but missing one part kopy.io/ZxNaR
 
that would be another example of bad practices, @JohnDoe2
 
12:10 PM
got a small doubt reg, react lifecycle event shouldComponentUpdate ...I understand that on returning false, rendering won't happen. But When we return false, will props and state get updated to new ones or will be old values only?
 
@tereško how would you code that?
 
code what?
100$/h
 
@tereško my little snippet
I posted
 
creating a context free language and converting it for a pushdown automation is so damn hard
 
@JohnDoe2: Don't prefix all your variables with $
Don't forget the var statement in the for loop's declaration.
 
12:28 PM
I need to add a 'neat thing' for my first javascript project, can anyone give me an idea? lol
 
bring back the <blink> tag
 
12:43 PM
@rlemon whyyyy
 
it was awesome
 
that tag is frequently used on nineties "look i build a website" garbage website
 
<marquee><blink>Attention! this banner rocks!</blink></marquee>
 
you can simulate it ...
 
not the same
 
12:46 PM
you can bring it back... with CSS3 jsfiddle.net/Lt5hqnyf
 
2 mins ago, by rlemon
not the same
 
ok. * gives up *
 
gonna never give you up
 
1 message moved to Trash can
@Hello 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, pastie.org or a demo site like jsbin.com
 
I brought it back
cc @Luggage ^
 
12:58 PM
good morning everyone
 

« first day (2349 days earlier)      last day (2599 days later) »