« first day (2388 days earlier)      last day (2562 days later) » 
00:00 - 20:0020:00 - 00:00

12:01 AM
yeah I went to a university there
 
@Mosho I know the guy who I used to buy this house
he's okay
literally my only reference point tho
 
one more than me
 
nvm, just looked him up
he's not a realtor anymore
 
lol
 
he was getting into some small business when he helped me buy my house
 
12:09 AM
oh damn
 
I guess he's all in now
 
I don't even want a realtor
but the MLS cartel...
 
yea
who's you bank here?
honestly. just go there.
they like it when they get to get all your business. might cut you a nice deal on mortgage rates.
anything above 2.5% 5 year fixed is a rip off.
 
TD
I already have one mortgage with them
I let it renew automatically and it's like 3.7% :\
 
ouch.
I'm with co-operators. they set it up for me. 2.49% 5 year fixed. and it's dropped since.
I'm pretty sure I could get 2.3% right now
 
12:14 AM
I might not have the best credit score
 
mines "outstanding"
 
I had mortgages and paid back but last time I was there I had to ask my mom for a co-sign to get a subaru
 
tl;dr I basically went bankrupt without going bankrupt. had 0 credit for years. then all of a sudden got a fresh creddit score and was paying everything on time
=== best fucking credit score you can have
I was floored
 
why did you get a fresh credit score
 
after X years it recycles apparently.
 
12:16 AM
hmm
 
I had no idea I had good credit until I bought this house. at a time I couldnt get a phone in my name.
 
I think it only affects down payment anyway
 
it should affect rate, too
 
when I applied for the mortgage the agent let me know it was, and I quote "the best credit score he's ever seen in 30 years"
 
and/or
 
12:17 AM
@rlemon lol
I could pay what's left of my shitty mortgage in cash
 
makes sense though, if there is a recycle. I thought my credit was garbage, so I've been working to improve it without ever checking my score.
 
and then take a new one?
wonder if that'll work
or there are fees that make it not economical
 
it's just a rolling history. like ~7 years, i think
 
my 'debt' was a bad history with a cell provider which fucked me over. and after 7 years that nulls.
and my tax 'evasion'.
which I took care of.
 
I haven't filed in years
 
12:19 AM
I didn't file for ten years.
 
lol
 
lol
 
filed them all, payed like $600, got like $3000 in gst back pay
 
sigh, I might get fucked by an immigration officer when I land too
for being away too long
 
and in the middle east
if you have a beard, trim it
 
12:29 AM
you clearly haven't been to canada
and regardless, I'm the whitest person I've ever met
 
that'll help the credit score, too.
 
probably
these salaries are shit
 
baltimore, MD is about the same
 
yeah but it's baltimore
 
12:33 AM
still higher, though.
jerk. :)
 
@KendallFrey pretty much
 
@Mosho is that USD or CAD?
 
cad
 
ouch
yeah those are really bad then
 
software engineers make more in tel aviv though
wtf is wrong with toronto
@towc no surprise there :X
 
I honestly don't know why bratislava isn't being flooded with turists and young people wanting to start a business
everything's there, really
it's an amazing city for various aspects. Maybe just not publicized at all, or bad reputation because "eastern europe"?
budapest doesn't get that rep though
 
@towc except people with money
 
that's why turists could go
and there's so much room for potential and investment
 
1:03 AM
and it's probably corrupt af
 
@Mosho Moose took over the government of Toronto
 
not nearly as much as italy or romania a few months ago (I honestly have no clue how much changed)
 
romania is super corrupt
 
still, pretty corrupt, but that's not a problem for turists or small businesses
 
it is a problem for small businesses
 
1:04 AM
oh, how?
 
taxes, fees, having to bribe officials
 
in what occasions to techies need to even face officials for anything?
they don't really need industry grounds or anything
 
licensing for anything, for example
and there's no local talent, I assume
so why even go there
 
there's a lot of interesting programmers actually, they just don't leave the country much because family and not having enough money to afford moving out
I don't want to sound like a fanboy
 
bottom line, eastern europe is a shithole
 
1:07 AM
but bratislava really amazed me in terms of how bloody amazing it is for techies
 
sad but true
 
again, bucharest and budapest don't really get that "bad reputation"
I'd think that techies would say "oh! I know a couple of amazing coders from bucharest! Really nice and clever guys!"
bucharest is a boiling pot of startups that are kind of actually working right now
budapest is a nice city because of other reasons
but I actually haven't met a single slovak programmer outside of slovakia
 
it's nice for tourism
 
but there definitely are, and a lot of them
 
but most local people anywhere you go are poor and miserable
soviet union type stuff
 
1:09 AM
maybe this is the point in time where they get to shine. Maybe not
it would really grind putin up actually :/
and coz trump, there won't be much support in the next couple of years
but if there's a nice president after him, there could be so many possibilities
anyway, I definitely sound like a fanboy by now
so I better stop
 
he's not a president
he's a king
 
HAMMERTIME!
 
gotta wait until he's dead
 
I kinda feel like he may not even last the full 4 years
 
it's not just him alone. he's got people everywhere in the government. it's a regime
 
1:12 AM
@towc ofc he will
 
I'm too young and inexperienced to make predictions
 
ohh, i thought you were talking about putin
 
if he does even half of what he says he will be pres for 8 years easily
 
before this campaign term, I didn't even know about the difference of republican and democrat :/
 
and now you do?!
 
1:13 AM
now I know they're 2 different things :P
one is a donkey, the other is an elephant
and they all stand on a turtle
and that's all I know
 
also, both the donkey and the elephant are substained by strings
the strings lead up to a gay clown
that's what the 2016-2017 has taught me
 
1:35 AM
hi folcs
                    console.log("googleBody", body);
gives me:
        googleBody {
      "success": true,
      "challenge_ts": "2017-04-30T01:34:07Z",
      "hostname": "localhost"
    }
                        console.log(body.success)
gives me: undefined
why?
node.js application
 
1:47 AM
this worked:
                        if (body.success !== undefined && !body.success) {
maybe someone can explain me, why I cant get the value (true or false) from the boolean body.success in node.js but in the browser console it works.
 
Because body is a browser-specific object.
 
hmm duh! it didn't work!
 
It's not part of the nodejs api.
 
request.post({
                url: 'https://www.google.com/recaptcha/api/siteverify',
                form: {
                    secret: 'mysecretfake-wWERHN7eY',
                    response: response
                }
            },
            function (error, response, body) {
                console.log("googleBody", body); //json object with success: true|false
               console.log(body.success); //undefined!
})
@littlepootis no it has nothing to do with that
body is here a local variable
 
body is a string
 
1:57 AM
really?
oha
omg
Stringify
let me try
 
parse
 
 
2 hours later…
3:54 AM
Wow :o, he should be teaching in college xD
 
 
1 hour later…
5:04 AM
what is ... in es
 
The spread operator
or destructuring.
 
<Slider {...settings}>
 
what does it mean here
hm.....thanks luggage i will chck the link
 
5:10 AM
thanks
 
Where all the smart people at
Guess they are not on here...being they are smart they are probably sitting in their mansions eating caviar
 
I'm sm.. hey.. you almost got me.
 
...lol
you would think you could do something like make a CSS transform origin stay centered at all times...
until you try it and are up at 12:22 am on google
listening to Frank Ocean
 
5:31 AM
@solacyon caviar is gross
 
Never had it
Apparently thin sheets of gold is pretty good on icecream
 
6:11 AM
Can you use 🍌 in npm package name?
 
6:35 AM
no
 
 
4 hours later…
10:40 AM
Hi! I have a list of items from angularfirebase2 populated into html with ngFor='let item of items | async' (click)='onSelect(item)' ---- But in my onSelect method I don't have access to the item $key. What are my options? I get items from an itemService.getItems() which takes care of the req in another file.
 
11:08 AM
var notes = fetchNotes();
notes.filter((note) => notes.title === title);
saveNotes(notes);
Can anyone tell me, that title is referring from which scope?
(note) => notes.title === **title**
is that equal to (note) => notes.title === (self/this).title
 
@JudeNiroshan Closure
It's not equivalent to this.title, no.
For example
function saveOnly(title) {
  var notes = fetchNotes();
  notes.filter((note) => notes.title === title); // title is the title from line 1
  saveNotes(notes);
}
Apr 26 at 19:37, by Sterling Archer
the inside is so moist
 
(note) => notes.title === title correct me if I'm wrong
filter() method is used to iterate all the items in an array and removes the elements which doesn't satisfy the condition
 
you're wrong
 
this isn't ruby. There's no magic: note refers to note and notes refers to notes
and?
the point is that your thing correctly compiles and does something
 
11:22 AM
@towc yeah. but I wonder, where that title is belongs to
 
it's just that what it does is not what you want it to do
and not because you haven't kinda understood .filter
a.filter( b => a.c === d );
this is what you currently have
madara answered your question
but that's not why your code isn't working
 
@towc actually my code does work
 
well, it shouldn't then
you're either always filtering everything out or keeping everything
unless you have a weird getter thing, but I doubt it
 
Here is my entire method hastebin.com/ilijuyenob.php
 
coz that code is different than what you have
 
11:37 AM
that's the entire code
 
notes.filter((note) => note.title === title);
// not the same as
notes.filter((note) => notes.title === title);
You had a typo in your first example
 
yeah. now I got it :)
 
12:07 PM
is there any difference doing
INSERT INTO players (id, tmp2, tmp3, tmp4) VALUES (0,0,0,0) ON DUPLICATE KEY UPDATE id=id;
instead of
INSERT INTO players (id, tmp2, tmp3, tmp4) VALUES (0,0,0,0) ON DUPLICATE KEY UPDATE id=id, tmp1=tmp1, tmp2=tmp2, tpm3=tmp3;
cause most ppl do the latter but unless am wring for mysql optimization the first one is the correct
 
12:24 PM
@mosho
 
12:39 PM
@mosho
 
12:58 PM
@mosho
 
@Mosho!
 
user6820627
Hey, why do people usually <!-- /.container -->?
 
they.... don't?
 
user6820627
 
user6820627
 
user6820627
1:11 PM
<!-- /.container > above ^
 
yeah noone that I know does that. It might help if you're not sure what you're doing
actually, it's probably auto-generated
 
1:31 PM
Hi
What's the best way to create a vue app that will work offline? I've been looking at Electron as there are a number of projects on github related to this github.com/SimulatedGREG/electron-vue1
Essentially all I really want is when the user opens a file within my dist folder a script will set up a simple server and run the static code in their default browser. Is that possible? or do I need to package the app as a desktop app?
 
@LearnHowToBeTransparent To keep track of the closing tags, though any decent editor can do that for you
@AlanSutherland Electron is essentially it's own browser, with a bunch of APIs tacked onto it
 
its based off chromium right?
 
Yup
 
thinking its the way to go but was just wondering if theres a way to create a little bash script that launches a python simple server on the users machine when they open index.html
I'm cloning a flash app and the clients being awkward about it having to work offline :/
also wondered if service workers might be an option
 
Electron is a good way to do it, since you can package the app into a single executable.
 
1:37 PM
yeh
 
Not sure about python, I don't use it
 
guess it means I only have build for chrome rather than every browser so may actually save a lot of time
 
What will the server be doing?
 
vue is literally like any other library
 
it's needed for vue to work
 
1:39 PM
What? You don't need a server for vue
 
manage to get any javascript working offline, and you'll get vue working as well
you can imagine vue as being like angular, except there are many misconceptions regarding that. So imagine it like jQuery
 
Vue is probably closer to angular.
They're both MVVM
 
when you run npm run build webpack compresses the vue project to the dist folder and adds the message:
Build complete.

Tip: built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.
 
@AlanSutherland Sure it will
 
it doesnt work
maybe I should go through and make sure all js is local and not cdn
 
1:45 PM
@AlanSutherland As long as you're referencing your paths correctly, there shouldn't be a problem
 
@BenFortune yeah, but you can get angular to run on a server. In terms of "how to... install" it's much closer to jQuery
 
@towc But he won't need a server if he does it right
 
yeah yeah, exactly
but if I said "think of it as angular", he might still think he needs a server
 
But you don't need a server for Angular either
 
if this works I owe you a beer
but in config/index.js I've changed it to assetsPublicPath: './'
 
1:49 PM
but you can, so there may be some confusion
 
ran build again and no joy
 
Might be different for webpack 2
 
this is my webpack.prod.conf.js
var path = require('path')
var utils = require('./utils')
var webpack = require('webpack')
var config = require('../config')
var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var CopyWebpackPlugin = require('copy-webpack-plugin')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')

var env = process.env.NODE_ENV === 'testing'
 
Where did you add it?
Also what errors are you getting?
 
in config/index.js I changed the assetsPublicPath to './'
GET file:///static/css/app.fdd56f6a92dda9600f04d904c8bce98a.css net::ERR_FILE_NOT_FOUND
index.html:1 GET file:///static/js/manifest.1db5374f12ca5bf56cb3.js net::ERR_FILE_NOT_FOUND
index.html:1 GET file:///static/js/vendor.cff86f507e9e76c4a514.js net::ERR_FILE_NOT_FOUND
index.html:1 GET file:///static/js/app.38525406c3822f3d0ade.js net::ERR_FILE_NOT_FOUND
the webpack.prod.conf.js was generated by vue-cli when setting up the project, haven't changed any webpack settings
 
2:04 PM
Ah okay, I'll try it out
 
this is my config/index.js
// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')

module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
productionSourceMap: true,
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
 
@AlanSutherland Change assetsPublicPath to './'
Works for me
 
hmm weird
just tried it on a fresh project these are the steps:
vue init webpack test
cd test
npm install
npm run dev
then change assetsPublicPath to './'
npm run build
 
in config/index.js
 
open dist/index.html
still getting same error
 
2:17 PM
@AlanSutherland You've gotta change the one in the build property too
 
sorry what do you mean?
 
Do a ctrl+f in the config file for assetsPublicPath...
 
And you've noticed there's more than one?
 
haha just did
thanks that gets app running atleast though it's not working perfectly
thanks for your help
 
2:22 PM
Hello.
 
It's me
 
think I still need a server, it loads one view now at least but I cant change views.
 
@FlorianMargaine Haha, yeah, it feels a bit strange, doesn't it? I'm not even a teen anymore
@FlorianMargaine Yay! I'll dig into that through the week :D (Weekend's nearly over and I've got to run now :/)
Thanks
 
I'm having a lot of trouble with Date right now. It is inconsistent and causing undefined errors in a sorting loop I've got. The problem is that it is changing the dates I am trying to set across the range of a week.
I've got a very small example of what I'm doing here. Can anyone see any obvious problems?
I've got an example of what output looks like for the snippet:
Hold on, I'll have to try something else first.
 
2:37 PM
have you tried moment.js it's pretty good for avoiding a lot of time related bugs
 
2:52 PM
moment is to Date what jQuery is to DOM
Only moment still has valid usecases in modern browsers today
 
@AlanSutherland Thanks.
I found the bug.
Each day of my week is the day at time 0:00:000. So when I'm sorting, I increment an integer variable while the next event to be sorted occurs later than the current day. If on Sunday, an event occurs past 0:00:000, then the difference function returns that the current day of the week is still too small and it increments to Monday - out of bounds.
 
hi
 
@Owatch Congrats on figuring it out yourself!
 
Thanks, I waste so much time on these silly mistakes.
 
We all do :P
 
3:15 PM
hey guys so im making this great porn site but the player aint working any help?
3
 
@Komninos 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.
 
@Komninos no
 
Answers like this are flawed, because if you're using rounding on the difference between times on a day, if the difference is close enough to 1.0 then it will state that the events are a day apart, whereas they are not unless the value >= 1.0. You can't say that you ate breakfast yesterday at 23:00 just because the difference in time / time of a day is closer to 1 than 0.
 
3:39 PM
The real lesson here should be: date and time is complicated.
 
The real problem is that it's just not a strictly followed spec, or it's a spec with holes in it. You'll get a ton of differences between Chrome and FF, that you'd end up writing your own library anyways, so might as well just use moment
 
@Owatch Like I said, moment is to Date what jQuery is to the DOM
It takes all the ugliness and inconsistencies, and gives you a reasonable, consistent API
Unlike jQuery, though, moment has legitimate usecases today, even if you're working with modern browsers.
 
JS date was copied from Java Date... which has been replaced with something better designed. For Java.
 
3:59 PM
nvm
> we're looking for PHP devs to work in its open source SDKs. Ping me if you want to know more. Flexible, remote and cool people :)
 
What is that about?
 
4:47 PM
I love my heavy moment.js dependency.
It's like a tumor of love.
 
I usually wrap it if I use it for just a few of its API methods
 
5:33 PM
!!> undefined <= undefined
 
@BenjaminGruenbaum false
 
Fun thing that just bit me
 
@SomeGuy German & Mostek are overwhelmed so we kinda need more php people
 
6:10 PM
Well, that made me laugh.
Now there's water all over the desk.
 
Anonymous
If anyone wants to include their repo on npmjs.com/org/javascriptroom ping me
 
We already have a github organization; so thanks, but no thanks
 
@samayo wait, who are you?
 
Anonymous
Nobody.
 
Anonymous
Ok, I'll see myself out now.
 
6:21 PM
You have 20k chat messages which is way more than most people I don't recognize, since I lurk here a lot more than I write.
Ah, I remember you. You're phpn00b or something like that.
 
lol
Eritrea -> PHP Fan -> php noOb -> samayo
 
The avatar turned you in
 
Anonymous
Yeah :)
 
Anonymous
@ndugger It's more like:
 
Anonymous
> TheCompletePHPNewbie -> Eritrea -> PHP Fan -> php noOb -> SimoneQ -> samayo
 
Anonymous
6:29 PM
There are more, but I can't remember.
 
6:40 PM
in recycle bin, Dec 15 '12 at 21:47, by The COMPLETE PHP Newbie
@tereško You are a faggot, and that is for calling me stupid.
 
lol
 
... I will jsut leave it here
 
lovely
 
6:52 PM
sup guys
 
@BenjaminGruenbaum When & Where is that ?
 
7:13 PM
haha, someone is squatting npmjs.com/org/javascriptroom? Poor lonely bastards.
 
@FlorianMargaine What is that?
I don't quite get it
 
7:37 PM
 
close enough
 
7:51 PM
Hey everyone, could some take a look at this?
 
 
0
Q: Why doesn't this get added to my model?

huzal12On the client-side, I have a view: block content .container-fluid(ng-controller='SignUpController') .panel.panel-default .panel-heading .panel-title h3 Sign Up .panel-body #signupbox.mainbox.col-md-6.col-md-offset-3.col-sm-8.col-sm-offset-2 f...

 
finally got the new wifi and promptly hid it
 
I suspect it's with the scope.register function but I don't know how to fix it
 
new wifi?
 
7:59 PM
@Zirak multithreaded event loop
 
00:00 - 20:0020:00 - 00:00

« first day (2388 days earlier)      last day (2562 days later) »