« first day (2144 days earlier)      last day (2795 days later) » 

12:06 AM
Come on Sterling Archer you weren't lying when you said you are the stupidest genius around were you? Of course chromium is linux based!!
@SterlingArcher
I would be surprised if google has released anything that isn't linux based?
Even windows now has part of linux built in I have been told
@AndrewL. how are you doing andrew?
 
@William really? 0.o what
I'd have thought it's against their extreme testing mentality
 
@towc do you what the article
@SterlingArcher bash isn't linux based I don't understand
 
just out of curiosity
 
12:23 AM
Good @William long time no see. Looks like you also for a new profile
 
@towc I believe this is it infoworld.com/article/3053557/linux/…
 
I liked the moon :(
 
@AndrewL. it was the earth in grayscale but I might change it back
 
Oh, haha. I remember watching Matrix as a kid, gave me nightmares for a while
 
not bash sorry, the bash terminal is linux based
 
12:25 AM
Motherfucker (sometimes abbreviated as mofo, mf, or mf'er) is an English-language vulgarism. While it is usually considered highly offensive, it is rarely used in the literal sense of one who engages in sexual activity with another person's mother, or his or her own mother. Rather, it refers to a mean, despicable, or vicious person, or any particularly difficult or frustrating situation. Alternatively, it can be a term of admiration, for instance in the jazz community. == VariantsEdit == Like many widely used offensive terms, motherfucker has a large list of minced oaths. Motherhumper, motherfugger...
> it is rarely used in the literal sense of one who engages in sexual activity with another person's mother, or his or her own mother.
"own mother" is also a link to incest
not that I promote such things
 
@Mosho, is it only me or you've not been on for ages?
:D
nice to see you again
 
I'm always there
in the shadows
 
oh, nice!
 
it's nice to be seen
 
notice me senpai
^ obligatory
 
12:32 AM
did anyone hear something
:>
 
1:09 AM
How to set the margins of an html page when I print it with JS?
0
Q: Fit HTML to page size when printing (POS printer)

Marny A. LópezI am trying to print a page to a POS printer. The printer model is the Epson TM200II. The scenario is as following. The html that I am printing: $message = '<!DOCTYPE html><html moznomarginboxes mozdisallowselectionprint><body">' . '<table id="print-area" style="height: 100%; bord...

 
1:46 AM
That is some beautiful code you have there
 
2:16 AM
anyone seen 2001 space odessy?
I saw it today for 1st time
 
3:12 AM
Yeah saw it about 20 years ago
 
@AaronLavers Welcome to the JavaScript chat! Please review the room 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 hours later…
6:17 AM
Interesting. .spread on a Bluebird promise that returns a string spreads each character of the string. Makes sense, but slightly surprising.
 
Oh, now I'm sad. I had a comment on a meta thread about removing the limit on a bounty's size: "For 50k rep? I'd learn brainfuck!"
It was removed :-(
 
Hello guys !
 
6:35 AM
Anyone have any experience with CORS and IE?
 
@rism Kind of. Simplest way is to use jQuery v2 (or even v1).
 
Hi Sheepy 0/
Heres my story
My problem is that IE does not set the origin header to null on a CORS 302, and yet expects null back from the response.
But If i force the server to send null it blocks the request.
So it's like it sends one thing "www.example.com" and expects another "null".
 
If I recall correctly, CORS 302 is a pretty bad idea and is handled inconsistently by browsers and browser versions.
 
So Im finding.
But a=SPA, b=API, c=Auth. If i hit a and it needs data it goes to b, and if not authorised reaches out (302's) for token in c. Doesn't seem "illogical".
Works if they are different sites "mysite.com" and "example.com", but if they are sub domains of "example.com" IE over trusts and sends "a.example.com" but then doesn't trust access-control header with "a.example.com" in it.
Anyway I wont write a book about it... but that's my current pain.
 
Lol. Yes IE do a lot of over trusting and being paranoid XD
Sorry can't help with 302 maze :<
 
6:49 AM
np. Nor can MS.
 
 
2 hours later…
8:41 AM
I'm creating a chrome extension ,how to pass parameters from popup* to content script. *popup as in
    "browser_action": {
    "default_popup": "popup.html"
  },
I have few inputs and on submit I should pass values to the content script
 
Thanks Denys
 
user3119231
9:27 AM
"Boats, Boats, Boats" - Like really?
 
@Gouverneur Pokemon related title will be restored soon
 
Back from the vacation. Anything new?
 
@Neil We no longer think jQuery is cool in this room
 
@OliverSalzburg is that the latest verdict then?
 
user3119231
@OliverSalzburg We thought it is cool?
 
9:38 AM
Is sizzle still cool though?
 
Actually, the only cool thing now is to write everything from scratch, because you don't really need any external dependencies
 
user3119231
^
 
user3119231
The new specification brings some nice APIs
 
9:57 AM
@Neil I guess as soon as CSS3 selectors were implemented, Sizzle lost its coolness.
 
@jAndy popular libraries often fill holes in language functionality, in this case css
 
I guess that is true for jQuery (which of course includes Sizzle). But as soon as language functionality fills up, those libs just fade away........
but not jQuery!
 
hi, is anyone knows angular2
 
@Rajni Welcome to the JavaScript chat! Please review the room 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.
 
@Rajni ask your question. If the javascript gods are generous today, you will get a response
 
user3119231
10:09 AM
You said my name?
 
I have some doubt in angular2.
In angular2 constructor why to prefer private access specifier?
 
@Rajni to prevent it from being instantiated I assume
That doesn't mean that it is impossible, more like it is something that you shouldn't be doing for whatever reason, usually a hidden class
 
@Neil
actually am tried with public access specifier also. then also its showing same result. And we can not use this public variable outside that file
 
@Rajni are you exporting it?
 
yes. am used this public in appcomponent. Which also includes childcomponent.
and then am using that public variable from app to child component. but its not accessible.
 
10:18 AM
@Rajni so it isn't accessible if it is public or not. That means something hasn't been done properly. It should be visible when it is public
 
AppComponent.ts
import { Component } from '@angular/core';
import { ChildComponent } from './child.component';
import { OtherService } from './other.service';

@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
directives: [ChildComponent]
})
export class AppComponent {
title = 'app works!!';
selectedItem: any = {};
sqftRate: number = 10;
total: number;
length: number;
width: number;
quantity: number;
items: any = [{name:'a', rate:20}, {name:'b', rate:36}, {name:'c', rate:42}];

constructor(public frompar: OtherService){}
 
1 message moved to Trash can
@Rajni 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
 
@Rajni please make a concise example that doesn't work as you expect
 
ok
import { Component } from '@angular/core';
import { ChildComponent } from './child.component';
import { OtherService } from './other.service';

@Component({
  selector: 'app-root',
  templateUrl: 'app.component.html',
  directives: [ChildComponent]
})
export class AppComponent {
  constructor(public frompar: OtherService){}
}
    ----------------------------------------------
import { Component } from '@angular/core';

    @Component({
    	selector: 'child-app',
    	template: '<h1>hello</h1>'
    })
    export class ChildComponent {
    	username: string = frompar.getUsername();
    }
 
What happens when you access it?
 
10:43 AM
in childcomponent getting issue. "Cannot find name 'frompar'"
 
@Rajni frompar is just a parameter name in AppComponent if I am not mistaken
You sure that's right?
 
thats only parameter name
Am getting same issue either with public or private. so my doubt is what is the difference in these two in this case.
 
In this case, no difference. They both don't work as you're using them
You're using frompar like it were a class member
 
yes
ok Neil. Thanks for your help. Just i was trying to find out why to prefer private only. Wherever am reading all are using private.
 
11:00 AM
Wow, room has been.. inactive today.
 
11:26 AM
Hi, I have a Date related question,
say i have a date in ISO8601 format
`2016-08-26T12:00:00.000-07:00`
how can I make js display the date in that particular timezone (-0700)?
disregarding the local machine timezone
 
is it possible to achieve without any additional libs?
 
 
@dr3w Well, you already have the date in that specific timezone. That's what the string gives you. It's 2016-08-26. The problem is usually to get the point in time description for another time zone
 
if I get this right, the time is in UTC and then there is timezone offset, so for this timezone it should be Aug 26 05:00 am
 
11:40 AM
@dr3w If there is an offset, then it's not UTC
In UTC, the same timestamp would be 2016-08-26T19:00:00Z
 
ok, I see
Thanks!
This profile defines two ways of handling time zone offsets:

Times are expressed in UTC (Coordinated Universal Time), with a special UTC designator ("Z").
Times are expressed in local time, together with a time zone offset in hours and minutes. A time zone offset of "+hh:mm" indicates that the date/time uses a local time zone which is "hh" hours and "mm" minutes ahead of UTC. A time zone offset of "-hh:mm" indicates that the date/time uses a local time zone which is "hh" hours and "mm" minutes behind UTC.
 
Sounds good
 
I've always thought that datetime values and timezones should be separate
To show a formatted date, you'd pass the value and the timezone (if desired)
Timezones are just superfluous to the datetime value imho
 
Yeah, optimally, you store UTC time and render with additional time zone information
 
@Neil The problem with that is you get datetime values without an attached timezone, meaning they refer to more than one date and time.
 
11:55 AM
You tend to see a lot of undesirable behavior when you associate a timezone to a date, like automatic offsetting or automatically showing an offsetted date value when formatted even when the actual value says otherwise
Behavior isn't apparent in any circumstance contrary to other datetime operations
@KendallFrey it is sort of a shit sandwich, but I personally would prefer to simply accept an optional timezone value when formatting datetimes with the defined and somewhat intuitive idea that you provide only context to the value. No automatic offsetting
 
The problem goes away if you force all datetimes to be in UTC until they are formatted
Then you have an implied timezone
I wonder if there are any relativistic datetime libraries
 
@KendallFrey sort of. . The problem arises when you "change" its timezone. Behavior is not clear if you assume that it was UTC prior
 
@Neil no, I mean that you can't change the timezone
 
If you accept that it has no timezone, then by adding one, no offset is required, and behavior is clear
@KendallFrey that works too
 
I'm also the guy that thinks the whole world should switch to UTC for day-to-day life, so there is that.
 
12:02 PM
@KendallFrey oh god, I thought I was alone. .
Everyone thinks it's such a crazy idea, but no timezones is a huge advantage
 
List of things that need to go and provide no benefit: DST, timezones
 
Who cares if 8 am doesn't mean that the sun is rising. Seriously
You'd get used to it
 
@Neil Most of the time it doesn't anyway, since sunrise moves around
 
In fact
 
@Neil well then we'll have to switch to 24 hour clock
am/pm would no longer make as much sense depending on your location
 
12:04 PM
I work with people in a different timezone, and I know how inconvenient timezones are
 
@rlemon I am fine with that
Smarter anyway
 
"Let's meet at 7:00"
"Is that our time or your time?"
 
but 12 hour clock saves space
:D
 
So, yeah, just get everyone in the world to wake up at 6:00, regardless of if the sun is up or not, so that @KendallFrey can communicate with people easier
 
@OliverSalzburg You know that's not what I meant
 
12:06 PM
@KendallFrey the irony is that switching to the new system, you'd only require the additional question "UTC or standard time zone system? "
 
What is "standard time zone system"?
 
Swatch Internet Time (or beat time) is a decimal time concept introduced in 1998 by the Swatch corporation as part of their marketing campaign for their line of "Beat" watches. Instead of hours and minutes, the mean solar day is divided up into 1000 parts called ".beats". Each .beat is equal to one decimal minute in the French Revolutionary decimal time system and lasts 1 minute and 26.4 seconds (86.4 seconds) in standard time. Times are notated as a 3-digit number out of 1000 after midnight. So, @248 would indicate a time 248 .beats after midnight representing 248/1000 of a day, just over 5 hours...
There
 
What we're on now. . It doesn't really have a name now
 
@Neil Of course it wouldn't be that. We'd have switched
 
the problem with doing this is that everyone will slowly (maybe) return to a localized time. "ohh yea, we didn't like waking up at 2200 so now it is 6:00 syracuse time"
 
12:07 PM
Remember when Sweden switched to driving on the right?
@rlemon nah
The only reason we have local time at all is people used to measure time based on sunrise
We don't do that anymore
 
user6542529
Hello
 
@Ferdinand Welcome to the JavaScript chat! Please review the room 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.
 
@KendallFrey some will insist to use the old system, make no mistake
 
I think it would have to be done at a national level, much like adopting SI units.
 
Making it twice as confusing when someone asks to meet with you at 6:00
 
12:11 PM
no
 
No? In what sense?
 
It wouldn't take more than a couple of days to get familiar with what time everything happens in UTC
 
It would be like asking a physicist to set the experiment temperature to 140 degrees. Kelvin? Celsius? Fahrenheit?
 
Well it's obviously not Kelvin
 
Could be. . Why not?
 
12:16 PM
@Neil Because you said degrees.
 
Once you've established the protocol, there is no issue. If everyone uses UTC, the world is better off. But like the metric system vs the imperial system, there are still plenty that use both indiscriminately
@KendallFrey I bet I could find you someone that says 140 degrees Kelvin
I am one afterall ;)
 
Not a physicist
 
Maybe, but that is irrelevant
 
I think the confusion would be enough to force people to stick to one.
 
Unless the UTC system is meant for just programmers or some other specialized niche and not the whole world
I would only use UTC if people could understand me
 
12:20 PM
Obviously some law that forces businesses to display hours in UTC, etc.
 
The problem is that the only guys whose mind is ready for that switch are the guys whose mind manages to correctly deal with the current situtation
(i.e. coders)
 
For a while, you'd probably have to write it like 6:00 - 17:00 UTC
Technically, it is compatible with our current system
I do sometimes wonder what a galaxy wide coordinate system would be like
 
What do you mean ? Something not assuming some kind of "day" unit related to the rotation of some specific planet ?
Our own body is tuned for a day duration of about 24 hours
 
@Neil stardate
 
@DenysSéguret I mean, supposing you are a star captain in another system, how do you unambiguously communicate a destination to earth that pinpoints where it will be when you arrive?
 
12:27 PM
@Neil IGA standards.
 
IGA?
 
@DenysSéguret I heard it's 25 hours, interestingly enough
 
Assuming I'm a human, I would refer to the universal time system established by my ancestors on their (regrettably lost since) planet
 
@Neil Intergalactic alliance
 
@KendallFrey I've heard it to be a little more, based on some experiments. But I'm not sure they were really significative
 
12:31 PM
morning guys
quick question.
 
Were stardates ever explained?
 
can react be a replacement for meteor js?
 
it has a huge ecosystem though
flux, graphql, react native
and others.
which part cant it replace?
 
@Ming the name part. Meteor is an awesome name for a library
 
12:34 PM
Reactor
 
I prefer asteroid.js
 
Reaction js
 
sry. im still new to react and meteor but what exactly cant react do?
it does front end well. u mean the back end db?
will its ecosystem of libraries eventually replace meteor in the near future?
 
@Ming from a practical pov, does it matter?
Is there anything that you cannot do with your program that you could do with meteor?
 
Why use some bloated shit like meteor when you can just write the same thing in vanilla JS?
 
12:39 PM
@Neil i just want to know which one to learn first. if react can do everything, then i wont bother with meteor.
@littlepootis i dont know. it seems to have alot of stars on github
 
urgh, still having issues with my bluetooth headphones...
sometimes they work, sometimes they don't
 
@Neil if meteor is not a good choice, any ideas for alternatives?
 
schrodinger's headphones
 
You can use ArrayBuffers to create new Blob() objects can't you?
 
you make them not work by observing them
 
12:40 PM
Found this in /var/log/Xorg.0.log

[ 15222.148] (II) input device 'E3:28:E9:20:83:3D', /dev/input/event15 is tagged by udev as: Keyboard
[ 15222.148] (II) input device 'E3:28:E9:20:83:3D', /dev/input/event15 is a keyboard
and that's the MAC of my headphones -_-
 
@Ming I would do you a disservice to tell you to use a specific library. They all have pluses and minuses
 
@towc Debian?
 
And in my experience, there is no library that does everything
 
@littlepootis no, I switched to arch in the meantime
 
jQuery is the only library that doesn't suck
 
12:42 PM
(that IS a joke)
 
@towc That's gr.. you suck.
 
I would avoid meteor but mostly because it is a little outdated
 
@Neil understood. but can react / its ecosystem do all, or will i still need to depend on another external library. if so, is react & meteor a common combination in your opinion?
oh. i see
which one will you choose then?
 
@Neil It's outdated now? Lmao?
 
 
12:43 PM
@littlepootis the hype train for it has stalled
 
I love how quickly them new shiny frameworks fall in and out of spotlight.
 
mate-volume-control displays it correctly as headphones :/
 
@littlepootis has it gotten a lot of new development these days that I am not familiar with?
 
@towc um
blutoothctl
scan on
 
that's what I did to connect to the headphones
 
12:43 PM
pair ID
 
@littlepootis lol yeah. javascript is maturing at the moment though so it's makes sense
 
connect ID
 
puberty and trends go hand in hand
 
@towc ah
 
power on → agent on → default-agent → scan on → pair MAC → trust MAC → connect MAC
and it's successfully connected
after the first pairing all that's needed is connect MAC
 
12:45 PM
yep
 
that's what I've been doing for most of my previous debian life
now it's worked at random intervals on this install
 
@bitten JavaScript is going through her period
 
I think it was pretty similar in the beginning of the other debian, then I must have installed things overtime that somehow fixed that
 
@littlepootis sexism?
 
so I did try installing a few random packages that could have helped
 
12:47 PM
@littlepootis let's hope she'll atleast share the chocolate
 
@rlemon euphemism
 
@bitten and then let's stop on that metaphor
 
@littlepootis based around a stereotypy which may or may not offend some women
 
@DenysSéguret agreed
 
um, agreed
 
12:49 PM
this is what blueman is saying
still, Xorg.0.log says it connected as a keyboard
dmesg just said it connected
 
The bluetooth GUIs never really work.
@towc lol..
 
checked a couple other logs, nothing weird
 
Did you try typing with it?
Maybe it is a keyboard
 
@rlemon it has a power, volume up and volume down button
they don't seem to give any interaction
 
That's enough
 
12:50 PM
If you load in a binary file.. you have a Blob-Object. Now you want to read that binary data in chunks... using the FileReader API read in the whole thing as ArrayBuffer-Object. So far so good, now you're .slice()'ing the ArrayBuffer into little ArrayBuffers, but in order to read the binary result of each chunk, you have to create another BLOB, create another FileReader to use readAsBinaryString?
 
actually, wait, I can do more tests
 
can somebody confirm that? or is there any shortcut to directly see/read the binary data of an ArrayBuffer
 
nope, it's not interacting
it seems to always work fine right after reboot
then something just goes wrong
I'll dig deeper in the logs, but doubt I'll be able to even notice what I'm looking for
btw, this is what dmesg was saying every time I connected them:
input: E3:28:E9:20:83:3D as /devices/virtual/input/input25
the input** increments every time I connect
it's also weird because it's not actually an input
and I can't find /devices/ or anything similar
 
are they those cellphone headphones?
 
actually wait, I may have found devices
what do you mean? I can connect them to the phone too
they're bluetooth only
 
12:58 PM
nvm
 
heh, this is weird: locate devices/virtual returns nothing, but tree | grep devices/virtual returns many things
adding sudo doesn't change it
 

« first day (2144 days earlier)      last day (2795 days later) »