« first day (2703 days earlier)      last day (2470 days later) » 

00:02
hmm
!!> null == 0
@Mosho false
!!> null > 0
@Mosho false
!!> null >= 0
@Mosho That didn't make much sense. Use the !!/help command to learn more.
@Mosho true
00:02
u wot
I don't see how that happens even with type coercion
 
3 hours later…
02:44
where is everyone
o/
Watching OW League
oh, want to play a quick game of OW perhaps, as well? :B
ohwait, Dallas Fuel is playing atm?
They just finished.
They were playing Florida Mayhem
If you missed it, you should watch a replay..it was a nail biter.
who won, though?
02:57
btw, not really up for playing OW right now, too sluggish right now, sorry wasn't ignoring the question
np
They finished 2-2
:B
oh shit no, they not finished
a draw breaker?
03:01
I'm not completely farmilar with the way sets work in the league yet
But yeah, they're going for a 5th
Okay, yeah, explicit tiebreaker map
I'm rooting for DF to win this match
Florida Mayhem, gotta rep the home state
@BadgerCat all of us were born in 2017, yes.
Also I miss Ivo and Kittens.
It may be for privacy, some people get iffy about their specific date.
In some countries (like trollLand) its used to verify your identity
such secure!?
03:04
What is trolland in this situation?
Where I am
I'm confused, but I'll err on the side of caution
aw man
I love watching people play Tracer and Widowmaker, they do stuff so fast
LOL that widow
...
03:11
Winston had some fun bouncing on that point.
oh god, I'm so salty
@Ikari take a dip?
-.-
I meant go for a swim
lol i like dat nick
03:20
@ShrekOverflow well, I was salty, as in salty over the fact that DF didn't win the match :B
also, a swim at this point of time in the day would certainly be too cold
a quick question: how to insert latex math into comment
I used $ not working
@Ikari oh please
… I tell you what, they're going to be down with hypothermia within the next minute or two :B
03:25
@Niing You can't on SO chat
I want to use it on comment of Code Review, not in chat
I don't think you can use it outside of math.se
Ohh, so sad... but why $$ work? I want the inline version
I cannot edit my comment now... QQ
idk just rtfm
Ok, thank you
03:33
@Ikari where are you?
Within 30* of North/South Pole?
um, no
@HatterisMad You have talked about cars some. I'm trying to install automatic lights(timer, light sensitive, or hooked to the ignition-easiest) in my Honda Element. I believe all it would require is an 30 or 40 amp automotive relay but I hate stripping wires and doing electrical. Is there a cheap place to take it?
03:54
morn
04:05
Tavo is that you?
Is this your true true true form?
what should I try making in React next... planning for something like a local watch list store...
04:27
In AngularJS's ui-router, if I have an element with an empty ui-view attribute and another element (inside the first one) with ui-view="child", will doing .state("a", { url: "/", component: "cmp" }) override whatever state I have for the child ui-view?
04:58
til normal flac music files have ~1MB/s data stream, whereas dsd vinyls have like ~12MB/s
05:53
Is there a dreadful spec
on async getters / setters
06:31
syntax I'd like to see:
let x = { a: 1, b: 2, c: 3 };
let y = { a, b } from x;
console.log(y); // { a: 1, b: 2 }
unless there's already a static easily analyzable way to do it
that isn't:
let x = { a: 1, b: 2, c: 3 };
const { a, b } = x;
let y = { a, b };
console.log(y); // { a: 1, b: 2 }
because this is what I've been doing. Which in my usecase wasn't too bad, because I was using a and b in that scope
user2620028
06:58
@William i am going to be doing this to my own soon, i wouldn't know where to take it. I don't trust automotive shops to work on my shit anyways to be honest.
07:21
nice
08:12
Morning fellas
I'm not your fella, bud
I'm not your bud, pal
hey guys, happy sunday
can you tell me what's wrong with this json object?
1 message moved to Trash can
@jason 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
{ 'metro': {
'codes': [
'3100000US12060',

],
'coords': [
[
49.246292, -123.116226
]

],
'names': [
'Vancouver --- deneme'

],
'population': {



5476241
]
},
08:17
Hey! Any body can help in exporting data into excel.
Issue is. I am getting data in form of json. One field contains data with html tags like
"text" : "<p><strong>Data</strong></p>"

While eporting, i am getting data with tags. I want data should come with styling. e.h here data should in excel with bold. am not able to convert this html text into its rexpective format. anybody can help ??? JS/jquerry/ajax anythng will be fine
@PranavKumar 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.
@jason what do you expect it to return?
various brackets are mismatched
I am trying to read this json from a .js code, but it gives parsing error
you probably meant to use a [ in population
then you'll want to use " instead of ' around property names and strings
@jason what is the error?
something like XML parsing error, but it gives it in a non-English language
on firefox
08:19
@jason copy-paste it here
the .js code?
the error
XML ayrıştırma hatası: iyi düzenlenmiş değil
./a.json
row: 1, column: 1:
you're probably not parsing it as JSON
how are you trying to parse it?
and besides that, it is actually invalid JSON
to parse a JSON string in JS, use JSON.parse(string)
I'm trying to get json like this : $.getJSON('missions.json', function(data){
say it's a.json
I fixed that [ in population but it's still same
08:23
you still have mismatched brackets
what does the error say in english?
don't make me google it, if I wouldn't learn much out of it
xml parsing error, badly created file
something like this
try inserting some actual xml
I checked all brackets, they seem ok now
see if that parses correctly
@jason paste it
<a>hey</a>
do this
it didn't give the error with this, but why the heck am I getting xml error while working with json?
08:27
:shrugs:
ok thanks
09:00
09:12
Guys, I want to find a library that can help me do something like this
Where the BTC text is constantly after the number as thought it's part of the text, but only the number is editable
What search terms should I use? I tried input suffix and the likes, but got only "why dozent my :after workz?!" style questions
build one!
rebuilding the wheel is always fun!
@MadaraUchiha did you try shadow dom?
@Ikari Sounds like a headache to me
@ShrekOverflow I haven't how's the browser support these days?
"No" seems to be the answer :D
@Ikari Sounds like a headache to me
I can either use contenteditable which is a pain to work with
or make it inline
and apperance: none
Or fake it somehow with only the number being the input, and the container styled to look like an input, then somehow the input needs to grow along with the text
09:15
and then add :after
don't quote me on that i did it yeaaaars ago
@MadaraUchiha that can be a good solution imo
@ShrekOverflow jsfiddle.net/Lg7w5sfq Doesn't seem to work :(
i'll do it in 30 mins
sorry afk atm
some css hackery would be needed to fix the input width thingy
otherwise this approach seems to work well... :/
09:25
@Ikari That's the hard part though
Faking an input is easy
The resize bit is the difficult part, especially since you can't rely on character size being uniform or even consistent
yeah... stackoverflow.com/questions/3392493/… the answers here say the same thing
so, can we somehow get computed text width from js
oh wait, the second answer seems like it could work...
So my options are creating a mapping of character to character pixel width, which isn't TOO bad considering I have only numbers and . to worry about, but still
Or do what the second answer does, yeah
the other choice would be to use contenteditable but limiting it's input to numbers and filtering it is a pita
But then I rely on DOM, which is a wee bit risky, given I need to support SSR as well
Besides, I was hoping for a library :D
:B
09:30
@MadaraUchiha I used to use the canvas api's measureText method to do stuff like that: towc.eu/ccc/vote.php
found the pen where I first implemented it 😃 codepen.io/towc/pen/QbdOZv?editors=0010
late may 2015
@towc That's good, thanks!
mmm, would come in handy
also, co-incidentally enough I switched to Chrome today
@Ikari From?
Firefox
would switch back to it in a couple of days, until I start liking Chrome :B
oi @BenjaminGruenbaum, will there be some dank features in node 10
09:57
@KamilSolecki modules
\o
@MadaraUchiha oh sweeet
stripped down to that
09:58
\o/, thanks
@MadaraUchiha is there any publicly available feature sneak peek? I couldnt find any
@KamilSolecki You can compile master
(refresh, there was some bad code style)
It's actually pretty easy
yeah, I meant like a list, a changelog
10:00
do a diff?
welp
nvm found it
@KamilSolecki link?
wait mistakes were made
I found one for 0.10 XD
lol
Close enough.
10:16
the fact that this ridiculous country banned trade on Sundays is a joke.
they said they did it to protect people from vile and evil corporations that make them work, now people are protesting because they can't get extra money
wow I found an open one hail hydra.
I just finished a jar of nutella in about 4 hours today...
and I want moar nutella
12:10
@MadaraUchiha that first part is oddly similar to what I do
... at least... what I say that I do
@Zirak Hahahaha perfect
12:28
@MadaraUchiha unless you are devops, then your screen likely looks like the first one :Nutella
@ssube can you confirm
12:47
@BadgerCat I knoooooow. Where are you actually? (which country is that?)
Mexico
I'm really worried Caprica didn't trigger a game message... usually if I don't type anything for more than 10 hours I got insta "the game"'d
it's ok
@jAndy The Game
@jAndy The Game.
thanks
lol
why...
He's hiring
ooooh! Send him my CV please: towc.eu/cv
he should think twice about hiring guys who are playing the game. Much degeneration
a bit too early in the week for that though
13:03
@jAndy THE GAME!
buddy.. I'm enjoying my 30minute protection time
!!nudge 31 @jAndy the game
@MadaraUchiha Nudge #1 registered.
@jAndy <3
<3
13:11
so, apparently I finished 9 animu series in the previous month
That's a ton of animu
13:28
:P ikr, well our school was closed for the most part of the previous month, for preparatory leave for the entrance exams :B
uhm wut
me?
> exams are closing schools and preventing students from learning. Ban exams!
@MadaraUchiha nudge @jAndy the game
I didn't mean that :B I meant like the school wanted students to get some free time aside from the school curriculum to prepare for the exams by their own, but a month of that leave proves more than plenty imo
13:38
I said that
well, I quoted a fictional character who might say it
@MadaraUchiha @SterlingArcher in the DVD options for Borat
> There is also a choice of Hebrew, but this is merely a joke; choosing the Hebrew language option results in a warning screen reading "You have been trapped, Jew!"
o sweet, you get to see the drone ship fail
13:57
lol
Ti(1/cot)ic
14:16
@KamilSolecki tons, giving a talk about it week after next
@jAndy no, sorry
14:31
@BenjaminGruenbaum can you share some secrets? ;)
cc @KendallFrey @SterlingArcher
@KamilSolecki async iterators, modules, lots of fun stuff, new v8
Native fs Promises support
14:49
@rlemon wat
Also, how will the new module system be different than it currently is in node?
@KamilSolecki You'd have actual import and export as opposed to require() and module.exports
oh damn, I got used to es6/tyoescript so much that I forgot it's not a thing natively
heh, cons of using babel
@BenjaminGruenbaum are you guys slowly moving towards making everything promise based and ditching callbacks?
(for async stuff, of course)
14:58
@KamilSolecki no, callbacks are still supported
ok, so both. Nice.
no more promisifying!
> Number of people who died by becoming tangled in their bed sheets
How? /me is confused
15:35
Guys, my head is going to implode. I have a table with UK-formatted dates, and i am trying to compare each of them with a minimum-date and a maximum-date. But as it seems, the loop "jumps" over SOME dates, while it calculates the other ones.
@CDoc 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.
codepen.io/helios/pen/dmPvXE here is my pen. Any suggestion appreciated!
They say write tests first.. code later.. :\
this is my test :/ i just need to include this in a project of mine... i hate dates.
don't turn links into buttons
use a button and style it
16:16
@cswl its one way to do it, but by no means it's the only preferred one
16:39
Thats why you use a date time library with a solid API like.. moment.js
@KamilSolecki yeah, those might just be screenshots of tmux
I saw some htop in there for visuals
17:16
@ShrekOverflow have you done any web servers with rust? Is there a specific crate you like to use for spinning up an http server?
nevermind, I found some I like
17:49
@Mosho Thx for the reply, I even prefer more those ones (so not the template functions of styled-components), you lose autocompletion in code editors, but not really a big deal for me. I find it lighter than CSS-modules, easier for theming, and those global variables, and also dynamic props (but as you say, it's not that frequent at all)
you lose autocompletion of css values, only actually
18:06
autocompletion is a big deal for me, as well as linting and other features IDEs give you with css
and there's nothing heavy about css-modules
but that's just me
they are just a mangling of a css class name and one lookup object.
@Luggage We don't even do the mangling part
Because automated tests
Only scope per file per classname
I love that you can burn off water with a flare stack :P
@KendallFrey Ever seen thermite?
Or magnesium?
sure but these flare stacks only use electricity, and they produce a flame
Although now I'm thinking you're talking about a video game
I love debugging broken documentation for a library in a language that I'm only just learning
In all of the examples, none of the functions were explicitly returning, so I assumed that there was implicit returns that were just the last statement in a fn, but it was breaking, word-for-word copied from the example
so I added a return statement, and it worked
10/10
this is Rust, btw
this http library is kind of shit anyways. the API is weird and bad
18:52
Really? So you're using a new library in a new language and the API looks quirky weird and bad to you?
Must be a first :D
lol
No, I'm just thinking about how I would have designed the library
Like, this library makes every http header an imported function
so you have to do .with_header(ContentLength(x))
which is just weird
I'm more used to being able to specify keys/values, either as some sort of map, or something. I don't even know how I'd pass in a custom header with the way they have this set up
There's a lower level, http2 library that I'm eyeing, but I think you're basically spinning up a tcp server and then using http helper methods on it, which seems tedious
fuck yea, all rocket components automated
now we wait
@ndugger I'm more laughing at myself than anything
Since I always do that, I learn new stuff and my immediate intuition is that it's shit because it's weird and different.
My intuition is typically right and most stuff is shit, but it's still funny.
19:29
anyone know why my svg text is not showing in phantomjs render to pdf
20:14
@ndugger which one did you take ? Iron / Hyper ?
Hyper
@KamilSolecki @SterlingArcher @Vap0r @rlemon
Erm I found Hyper to be too Java inducing for my tastes and stuck to Iron
It in turn uses hyper
but since its not maintained anymore vOv
@ndugger quality
 
1 hour later…
22:03
I finally invested in a smart purchase. Gonna get my teeth straightened :)
I'm gonna smile like a motherfucker
you seen the guy that 3d printed a retainer and fixed his own teeth?
I actually looked into that option but the printer he used was pretty intense
Good for him actually, that precision of printing is intense
JK.
JK.
Hey guys, what do you do when res.setHeader does nothing at all? No error, and no header?
```
app = express()
app.use connectTimeout "120s"
app.use errorHandler() if process.env.NODE_ENV == "dev"

app.use (req, res, next) ->
res.setHeader("X-does-this-even-work", "nope")
next()

routes = require "./routes"
routes.attachTo app

server = app.listen process.env.PORT, =>
host = server.address().address
port = server.address().port
```
Its not caching. The Date header shows that it has got a response right now. I'm just lost and scratching my head
@JK. Have you seen the output of that?
Because it's wrong
Or maybe it's just the formatting
Is that coffeescript?
22:08
yeah fix the formatting
JK.
JK.
Yeah, output doesn't have the header:
HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 7327
ETag: "1540810979"
Date: Sun, 11 Mar 2018 21:57:45 GMT
Connection: keep-alive
Yes, coffeescript. Sorry I tried to use slack style lol
ctrl+k
I believe you need to return next() not just call it
@SterlingArcher Calling is fine
22:10
@BadgerCat thank you bae
@BenFortune whaaaaaaaat
@Zirak I'm so proud of you buddy
@SterlingArcher Returning does nothing, it doesn't pass it through the middleware or anything
Unless you're using koa
I'm gonna need to see the header then
JK.
JK.
The compiled js returns next()

    app.use(function(req, res, next) {
        res.setHeader("X-does-this-even-work", "nope");
        return next();
    })
22:12
@JK. Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
JK.
JK.
Sorry I did.
I love it when people apologize to a bot lol
@JK. what's the actual header you're using
JK.
JK.
Actually I'm trying to figure out how to change the headers. Trying to remove the Express header, it fails in the same way - nothing at all happens.
@SterlingArcher It's been a long haul
This is a total random question that's unrelated to anything productive. Is it possible to create your own variable identifier. So something like var, const, or let?
22:21
If you can recompile the js engine, yes. Otherwise, no.
Alrightttt
Thanks lol
Or just use decorators and skip the foreplay lol
oh i forgot about that band
@SterlingArcher When are you getting a bass so @Mosho, you and I can jam
@Zirak not sure, I just made a rather large purchase so maybe in a month or 2 so I don't overwhelm my budget?
lol
22:22
:(
22:33
@SterlingArcher what did you buy?
@Zirak I guess your rather large purchase was the pant?
@FlorianMargaine invisible braces
so I can smile pretty
looks like it's not working
oh, @Neoares birthday is very close to my son's
uh
22:38
@KarelG and @towc have the same birthday
@Neoares my son was born on 24/06/2015
damn french date formatting
>:(
in spain we have that format also
22:56
Yeah but nobody cares about Spain
I do
omg @rlemon It took me 5 days to realize May'd sounds like the pirate mate
omg Im so ashamed of myself
23:16
Oh wow, the kit they're sending me after it's processed will show me what my smile will look like after treatment
that's awesome
23:32
holy fuck this is good, and it's not even that heavy @Loktar @Mosho @rlemon @GNi33 @BenFortune @Neoares

« first day (2703 days earlier)      last day (2470 days later) »