« first day (2601 days earlier)      last day (2572 days later) » 

user2620028
00:00
@Luggage not sure.
user2620028
i haven't ever needed to meet clients at work
user2620028
or meet clients ever for that matter
Do you work for an agency or product shop?
user2620028
not sure what those terms are to be honest
As in, do you pump out stuff for clients, or do you work on an internal product
user2620028
00:01
contracted to work on a project for another company
sometimes they object, my 5 year plan is to do what my coworker did: first make yourself invaluable, then ask to work remotely because you "have to move" because life. If they say no than say gosh I guess I need to give my notice then, i'd like to work here but have to move etc. Then - remote work!
Oh, you're a contractor?
user2620028
my company has a contract to work on a project for another company
@Webster If you have to do that then you've got a shitty boss
user2620028
@Webster i am hoping they see me this way right now lol
00:05
Woosh. Just finished making and eating dinner
It's 1am tho
Pita bread takes so long to grow
if they already let people work from home sporadically, it's not a new concept and not unreasonable to ask. Would you be willing to accept partial, if offered?
user2620028
@Luggage partial what
like work from home some days of the week
user2620028
i mean, i am looking to move across the country
ohh.
user2620028
00:06
that would be highly inconvenient lol
I missed that part.
indeed.
user2620028
the drive to work takes 3 days
user2620028
one way
@HatterisMad that's not an excuse!
user2620028
@KamilSolecki worst commute ever
00:08
@Loktar did you get the Necromancer for Gauntlet?
I remember when it was 5 days each way. uphill. in the snow.
traveling somewhere to use their computer seems not optimized
Sorry for being a day late, there was a pretty big traffic jam on the way from Orleans to Philadelphia
some places with mostly-local people don't know how to work remote
I mean I'm not surprised
user2620028
00:09
@Luggage we work with remote teams from the other company
It takes some proper organization to get remote work set up well
well, you could try not asking and see if they notice.
or ask.
user2620028
hahaha
workstation, pjs, coffee, cats, what else?
@KamilSolecki it really does
it was much harder than I expected
00:10
to stay on tab is challenging
I have issues with it, which is why I rented a co-work space in the past
user2620028
i have worked remotely in the past and i think i am a lot more productive doing that then when i am at work
user2620028
especially whenever a large part of my day is my coworkers asking me for help
It was very distracting for me to stay on the task.
yea. offices aren't ideal and that's one of the reasons
00:11
Yeah when I was starting out and we had internet problems, and back then I did not have backup internet, I'd rush home to work from there.
too easy to turn around and interrupt other people
user2620028
we have our own offices, so we can just shut the door if we want to
funny how the silicon valley open office plan turned out to be less productive
user2620028
but if i don't help them, it might be a couple days that they spend on a 30 minute project because they are stuck
everyone does?
00:12
they knew it would be
every study said it sucks
Man, few more months and I might have my own office finally
I'm back :-D Has everyone lost a ton of weight?
user2620028
personally, no
I gained so much weight
Like 5kgs
don't eat so many hamburgers
ya dingus
00:17
Hah, I really cut out on them!
Today was a healthy meal
Lamb koftas in pita bread with yoghurt and lemon
nice, you made them?
Aye
Forgot to take pics tho, but will tomorrow
sounds yummy
Gotta get Kendall and ssube just a little hungry :)
@Webster sad part is it wasn't an ideal idea after I came back from work at 7 pm, cause the pits bread took ~3h to get done
how do you cook them? not risen right?
on the inside of a tandoori oven?
00:21
Risen actually
they seem so flat
I made them in a pan, just because my place doesn't feature a tandoori oven :P
So the thing is
You let them grow, so they get puffy, then you flatten them with your hands and put onto a pan with oil
cool, i've never made those
when theyre done can you split them to make a pocket?
They will grow a little while being cooked, just enough for you to cut them in half and cut pockets in them
Ive bought pitas and made falafel plenty of times
we've been making schwarma
00:24
@Webster ohh, it wasn't that bad.
lol i think
:D
Yeah I think I found a good hydrolization value for the pita breads
73.5%
how do you make that happen?
So 1 part water for 2.75 parts flour
s/parts/cups if you want about 8 pitas
+ 1 package of dry yeast
+ like a tablespoon of olive oil
00:28
hmm interesting, did you know they use vodka and other volatailes in dough because they will evaporate out and make it crispy?
for crusts
Oh. Had no idea, nice.
we've been trying to use almond flour instead, it can make a few bread like things
@Webster can it make spice bread?
hmm, probably, it doesnt make fluffy bread
Omg xd
@ssube @KendallFrey @SterlingArcher @rlemon
00:40
look at the cute little welsh boy
Hi! Anyone here?
@MagnusPilegaard 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.
Ohh missed the rules - my question: i want to check if a dropdown option has been clicked and if that option has the data-* of something. My code looks like this: gist.github.com/anonymous/ca08f5a491007acbc93131584537ef2d
#studieretninger is the select's id - even though the option i click on has the data-dansk and the value of a it returns false
is this correct to serve an html file in /dist folder?
`app.use(express.static(__dirname + '/dist'));`
00:45
do you need another forward slash after the dist?
do i?
i tried that, it didn't help
sorry, whan the grownups come back they can help you
i've been trying to serve an html file for 2 days now
i've work on it for hours and hours each day i come back from work
i can't get it to work
i'm about to jump out my building window
multiple underscores may be a problem
oh and if you have single quotes outside (they look like accent marks) do you use double quotes inside?
looking again thos are apostrophes or accent marks
that is just MD to get it to <bold> in the chat
obviously it didn't work
00:49
@AlexBollbach Since you are specifying a full path to express.static, you should also specify a url in the app.use
whatttt
people have been telling me "NO don't specify a first argument"
see i literally don't understand any of this
i've been reading up on it for maybe 10 hours now
its no clearer then when i started
you want to go to what url to see /dist/index.html ?
Is this the wrong room for jquery?
00:52
every url should return that because i'm building a react-router app. HOWEVER, i do want to be serving static assets on a certain subpath (localhost:8080/demos)
i dont think so magnus, people are just away
but only if an additional path component is specified e.g. localhost:8080/demos/myDemo
ohh, so you want ALL urls to serve a single file. You code serves all files by their name
all paths (except for /demos/:someDemo) .. yes
but i'd start off with just being able to successfully serve /dist/index.html and have it load its bundle.hs
js
i have an array [john, 5]
do i map like this?
result3.map(x => ({ type: x[0], marketvalue: x[1] }));
because at console.log it didnt do anything
00:55
You can do what you want with just express-static or a few lines of code, but may I suggest another small express middlware just for this purpose? see this example (from my boilerplate): github.com/luggage66/boilerplate/blob/master/src/server/…
that looks too complicated to me
is my map correct?
preferably i want the lowest level but most terse solution that teaches me as much as possible about how this service business actually works
keep it mind i'm almost at the point of having a nervous breakdown based on fstruggling to accomplish such a simple result for days now
if you were able to impart even one parcel of knowledge about express serving that wasn't contradicted by another thing on the internet within an hour you might just save my life
in that case, drop express.static (for the index.html) and jsut use res.sendFile
@Shmiddty I don't think so, not that I recall anyway
00:58
express stati is for service all files in a directory. you can just return a specific file, if you like.
I bought it super close to release and played it
usually when i send the /dist/index.html directly with sendFile() it works (in so far as i see my html render in the browser) but then it fails when fetching the <script>'s javascript file
I see webster
Just got confused, as there was no answer to my question
or reaction
but keep in mind once my client is hitting url's like demos/foo demos/bar I want my express app to have the behavior of serving static files from my demos/ directory.
// for some urls
app.use('/demo', ...);
// for all others
app.use((req, res, next) => res.sendfile(path.join(__dirname, "dist/index.html"));
00:59
so i wonder if there is a way i can opt into static serving only for routes/paths with (demos/:match) kinda pattern
damn
yes.
> TS2551: Property 'renderLoading' does not exist on type 'Home'. Did you mean 'renderLoader'?
that is some next level error
since when does TS have this :o
in your solution you aren't using express.static(<root>). i think that this piece of middle ware is providing a lot of problems for me. i don't know how it works and because its so abstracted i can't easily see whats breaking.
@Webster you don't happen to know anything about jquery and data?
01:02
I am not using it because express.static looks up a file based on the url. If the url is foo.txt it looks for foo.txt. You don't want that. You just want to return index.html no matter what the url is (after all other possibilities, like /demos/foo, are not matched)
morn
i had suspected that express.static was failing for a reason like that. but i assumed that i had overcome that by placing subsequent route handlers later on in the code that would catch those cases.
@Tavo do you have any knowledge in jquery?
nope, sorry
No problem
01:04
I've been using this qutebrowser thing all night on my laptop, it has a keyboard navigation thing that's just really convenient
You hit f, and it shows keys you can press to follow a link
that might be a bad approach. my thinking was i will place files in the directory tree that i want served statically (mainly a bunch of folders in demos/) and that express.static would see those and serve them. however, if it didn't find a static file it would pass off middleware control to the next function which would just return index.html
@Luggage when i run your code i still wind up with the "Uncaught SyntaxError: Unexpected token <" error.
@MagnusPilegaard Your code looks fine... Can you stick that in a jsfiddle so I can see it break?
by having this in my index.html
`<script src="./bundle.js"></script>`
@Luggage sure! :)
is that error from the html or bundle.js?
or on the server in node?
01:10
it doesn't appear to be properly fetching the bundle.js
when i look at what chrome thinks bundle.js is it is:
<body>
	<div>----------------<div>
	<script src="/bundle.js"></script>
</body>
which kinda makes sense because remember we are sending index.html for // for all others
ahh, so bundle.js is also the index.html
umm
its requested in the html file through a script tag?
This is fine. This is do to the 'catch-all' working. We just need to put in some code to server the other bundle files BEFORE that.
bundle.js is actually just a javascript file with one console.log statement in it
01:12
is this a webpack bundle?
so.. it will be
but right now its just a console.log statement
i'm trying to reduce the potential error sources at the moment
ok. gotcha. one sec.
People who subscribe to this vision: https://gist.github.com/haf/9ff8742c0caeaaf23859ce80cc6b9b58 for a future #fsharp and help me maintain a project, will get 8 hours of individual tutorship from me. PM me to claim the hours.
lol what
@MagnusPilegaard data-dansk is on an <option> and you are looking on the <select>
'this' is that select during a change event.
@AlexBollbach ok. so.. we may want all the bundel files to have a url like /dist/bundle.js. Does that match your build folder, too?
I think you mentioned using ./dist as your build output, right?
typically i choose 'dist' yes
01:17
app.use(express.static('dist'))
before the index.html line from earlier
and my build setup should be as simple as an html file with a "root" id div and a script tag for the forseeable future
@Luggage would it be #studieretninger option
it's one of the options of the #studieretninger select.
it just needs to check the option selected if it has the data value
data-dansk="a"
right. So, you have a reference to the <select>. get it's current selected option and look for data-dansk on THAT
01:20
@Luggage still get the same "<" error
@AlexBollbach did you change the url in your index.html to match? is it /dist/bundle.js ?
or still ./bundle.js
@Luggage well i thought that was what i did, atleast if changing #studieretninger to #studieretninger option in $("#studieretninger option").change etc
so why would it add dist?
this is why i don't like the express.static. i simply can't grok how it works
try: #studieretninger option:selected
is the express.static recommendation to handle the automatic javascript fetching by the index.html?
01:22
@AlexBollbach I made it /dist to avoid conflicts
make it / if you want
but serve dist
thier example of that: app.use('/static', express.static('public'))
@Luggage just tried, nothing happens there
@MagnusPilegaard works for me.
look at the example i pasted. i use two paths
you want /dist to be /. that's two paths.
Hey what's it called in JavaScript when you wanna have a tree array, like {1[a,b,c]; 2[d,e,f];} etc.
01:25
@Luggage sorry but i don't understand
a collection?
trees are graphs..
not sure there is a JS word or data structure that has a JS-only name..
i don't understand why its failing to send bundle.js . express.static docs state the first argument is the directory from which to serve the file. and i'm requesting "/bundle.js/"
and there is a bundle.js in the dist folder
so why is "app.use(express.static('/dist'))" not sufficient
app.use('/', express.static('dist'))
your example adds an additional piece but that is the first argument to app.use() which i thought was the route to match to invoke the route handler
yeah that does not work either
01:27
get it? You want to serve files from /dist but you don't like /dist in your URL do you have to give it the other argument so it KNOWS
do i have to make sure the script tags src attribute is properly formatted? e.g. /bundle.js, ./bundlejs, bundle.js
depends if you want ti to be relative or absolute
I suggest absolute, since with single page apps, index.html will be served from anywhere
@Luggage of course i get that one sentence. i get that app.use's first argument is how the client path is matched, and that express.static's first argument is the directory from which to server on the actual server host machine.
but somehow i'm not getting it in total
@Luggage thanks! Seems to work just great
01:30
looks right.
use an absolute url for the bundle.js (in the index.html)
so /bundle.js
or /dist/bundle.js
also, just test it manually, too. Just type in /bundle.js into the browser and see if it gets the right file.
try both.
it fetches the html file
tried both. in code. in address bar
with which one?
always fetches html. tries to parse as js. uncaught "<"
/dist/bundle.js | /bundle.js | ./dist/bundle.js | ./bundle.js
i may have tried veery conceivable permutation of script src's, express.static roots, app.use handlers, and source orderings of route handlers by now
yeah that fetches the html fil
should get you the script. if not, then i suspect it's not in dist on your disk. show me the command you used to start the server
it appears to be passing over the static middle ware and hitting the route handler that always returns the html
nodemon index.js
and /dist is in the same folder index.js is?
/dist/bundle.js
/index.js
/Users/alexanderbollbach/Dropbox/alex_stuff_2017/web/express-test/dist
/Users/alexanderbollbach/Dropbox/alex_stuff_2017/web/express-test/index.js
first one is the path from get info for bundle.js
01:35
ok.. yea. that should be good but try using an abolsute path to the second argument of express.static
using __dirname, as before.
so absoluate paths are any starting with "/" right
yes
if i use dirname then i don't need to make it absolute myself
app.use("/", express.static(__dirname + 'dist')) doesn't work either
wait..
well, yes.. but feed an absolute path to the static middleware. I suspect it's not serving bundle.js from the right location
but.. i am trusting its there.
you mean absolute path like from /Users/me/Dropbox/...
01:37
path.join(__dirname, 'dist')
yeah so same problem
uncaught syntax error "<"
for - app.use("/", express.static(path.join(__dirname, 'dist')))
its fetching the index.html
the server log is:
a request
/bundle.js/
i'm not sure it matters, but that trailing slash is odd..
it can matter, since there is no folder named bundle.js
well i don't know what is adding it
chrome adds it to the address bar
if i do localhost:8080/bundle.js and hit enter
hm.. that's not right.
can you just commit this code somewhere?
or gzip or something?
01:43
as expected.
right
so something is ary on my system
I am also on mac, as you are, but that should not matter one bit here
Has anybody any clue why my VueJS app crashes when I try to import a new component ?
because i've implemented a neural network in c and i've spent almost half a week on getting an index.html to serve properly
ok out the window i go
by system i mean ..system
well, feel better knowing the code is right?
01:45
import RegisterComponent from "./components/Auth/RegisterComponent"; // Works
import FooComponent from "./components/FooComponent";
maybe i have some funky chrome plugin
yea, that trailing slash should not happen
i guess i do
what is going on though
it seems to be my browser doing this
Whenever I use the import for Foo component, the app doesn't load!
that requires a like.. 300 response from the server and your code has none
01:46
There is no error on the console
No errors from the webpack
No error on the browser console
If I remove the 2nd import, I see my form again
When I add it again, it crashes!
Foo Component has this code:
<template>
    <div>
        <h1>Foo Component Created!</h1>
    </div>
</template>

<script>
    export default
    {

    }
</script>
The path is 100% accurate
lol these scammers from react-bootstrap have extra css on the components demo page
@Luggage so what do i do
touch yourself at night?
call IT
try safari
disable plugins.
reboot
are these files on some network share or other shenanigans?
so i tried safari
01:49
Are you using something like fiddle that intercepts http requests for testing?
took me a couple minutes to find the damn js console
but...
it friggin working
yay?
did you install the latest OSX patch and then leave you laptop unattended for someone to log into root?
@Luggage, do you have any idea? (sorry for disturbing you)
so i turned off all my extensions and cleared browsing settings/cache and now its working
Nope. I would have spoken up if I had an idea. Odd problem. I'd start eliminating parts until you reduce it to the bare minimum. Debugging by brute force.
01:53
@Luggage, I did
Also, please don't ping random people that you aren't in a conversation with, please. If someone is able/willing to answer, they will.
I understand
I ended up at import statement
If I comment it out, the app works
@AlexBollbach next time you install java, uncheck the box. :)
if I uncomment, it crashes
Btw, I'm using laravel-mix
@Luggage re-enabled extensions. still works. maybe something in chrome was cached? and it was assuming bundle.js == bundle.js/ because it wants me to use the cached thing because i have no idea..
anyway i'd so pay you bitcoin if i had more bitcoin i'd never have thought adding the trailing slash wasn't normal behavior
01:55
could be. if it got a 301
(permanent redirect, from a previous middleware config)
just a theory
that would have shown in the network tab, but you may not have been looking for it
what would i have been looking for
i believe i saaw a 304
301 is possible but i can't say for sure
it tells you when it's using cache for a file/url.
cleared the cache.. damn nabbit
sure but bundle.js != bundle.js/
i'd hope that know networking history would change that fact
no*
I found a really strange problem
If I try to use the 5th import it crashes!
it works if there are 4 import statements
I think maybe you need to clear your cache and uninstall plugins, too, pal.
02:00
the fonzy approach
02:10
@Luggage Yes! It worked. I uninstalled all packages, cleaned the cache and then reinstalled the packages
Now its working
Really strange.
But thanks for the help :)
@Luggage its doing it again
hmm, isn't fetch supposed to handle an object body?
02:29
Hi
Can someone tell me how does passing a callback function to other function often to execute callback at end, works, I mean how does it always execute at end??
function bar(foo) {
    /* do your work */
    foo();
}

bar(function baz(){

});
thats how :P
you call it at the end
02:57
@ssube your job is devops, right?
Having a dedicated DevOps person who does all the DevOpsing is like having a dedicated collaboration person who does all the collaborating.

« first day (2601 days earlier)      last day (2572 days later) »