#pyramid

/

      • blaflamme_ joined the channel
      • blaflamme joined the channel
      • c0le has quit
      • c0le joined the channel
      • waigani joined the channel
      • waigani has quit
      • tisto_ joined the channel
      • avn has quit
      • mengu has quit
      • mengu joined the channel
      • mengu has quit
      • benbangert tries to figure out how to generate a URL to the root dir
      • raydeo
        what's the root dir?
      • NotreDev has quit
      • benbangert
        found it ;)
      • ${request.resource_url(request.root)} did the trick
      • raydeo
        ah... probably just request.application_url as well
      • frispete_ joined the channel
      • benbangert
        right, just wanted the root
      • raydeo: getting paste.ofcode.org to be serverless using AWS Lambda
      • so been updating it to run properly with the latest pyramid and such
      • raydeo
        ah fun... what are you using for managed cassandra? or is it on redis?
      • benbangert
        also fixing up the cloudfront CDN to use HTTP/2 for the resources and fixing all that
      • redis, so I just threw up an elasticache instance
      • raydeo
        cool
      • benbangert
      • also switching to HTTPS
      • frispete has quit
      • raydeo: oddly, when I deploy the cookies stop working
      • x58
        benbangert: why not use the url generation that allows you to point to a remote URL?
      • So that in testing you can just use local, then in prod switch it?
      • benbangert
        yea, I need to fix this up a bit
      • first task was moving it to serverless, next task is fixing it up more ;)
      • x58
        I see a single cookie being set. Named zappa
      • benbangert
        yea, so, API Gateway is funky. heh
      • it only lets a single cookie move between the outside and inside
      • so all the internal app cookies are consolidated into a single big zappa cookie
      • Zappa compacts/expands them across the boundaries
      • this is pretty slick so far though, just hitting 'zappa deploy' to stick a new version online
      • redir joined the channel
      • atomekk joined the channel
      • zupo joined the channel
      • yleclanche joined the channel
      • mr_jolly joined the channel
      • econoraptorman has quit
      • disko joined the channel
      • XeL64 joined the channel
      • zepolen has quit
      • zepolen joined the channel
      • ronnix joined the channel
      • mr_jolly has quit
      • fxhp has quit
      • agitator joined the channel
      • Charlie_X joined the channel
      • bochecha__ joined the channel
      • bochecha__ is now known as bochecha
      • bochecha has quit
      • bochecha joined the channel
      • agitator joined the channel
      • agitator joined the channel
      • atomekk joined the channel
      • uralbash joined the channel
      • zupo joined the channel
      • zupo joined the channel
      • Ergo joined the channel
      • Ergo
        morning
      • brokency1le joined the channel
      • agitator joined the channel
      • hi guys - how do you solve CSS/JS problem in your applications? does every release ship precompiled/compressed statics or do you handle that during deployment somehow?
      • moo-_-
        Ergo: I run bundling script during the deployment on the server
      • but I'd prefer to do this locally pre-deployment
      • jhauser_ joined the channel
      • jhauser_ is now known as jhauser
      • Charlie_X
        Ergo: I'd do everything in the http server
      • But I guess it depends how much you're shipping.
      • http2 makes a lot of the older strategies redundant.
      • evilbungle joined the channel
      • Ergo
        Charlie_X: well you still need to transpile es6 to 5 etc
      • Charlie_X: do you have some examples of how do you do it?
      • ie. how do you set up nodejs and buil pipeline?
      • Charlie_X
        I don't have anything that complicated.
      • You might want to talk to blaflamme when he's around.
      • But it's probably worth checking what mod_pagespeed can do now.
      • I personally think a lot of the JS stuff is wheel reinvention.
      • Ergo
        Charlie_X: they love that :-)
      • Charlie_X
        Apparently so.
      • moo-_-
        Ergo: I would do transpile locally
      • Ergo: and then package all JS it to a wheel and install with pip
      • if Python is your thing
      • Ergo
        moo-_-: thats what i usually did
      • Charlie_X
        It wouldn't surprise me if mod_pagespeed can now manage "transpiling" but I've not needed to worry about that.
      • Ergo
        i need to use gulp
      • Charlie_X
        We don't have any "appified" websites.
      • Ergo
        i was thinking about shipping every part of UI/SPA as separate python package - then run build on it and copy to statics dir for httpd to serve
      • Charlie_X
        I reckon it's still worth looking up what you can just let the server do.
      • Ergo
        but it might be a bit tricky
      • Charlie_X thinks SPAs are fucked up
      • Charlie_X: im about 95% sure its impossible since i need to multiple build steps with webpack/gulp/wthatever
      • Charlie_X: i still have to live with it :D
      • or i can go the way moo-_- suggests - but for python develop to work in production usually that would mean versioning build results
      • Charlie_X
        Maybe. I can't really comment on stuff I don't do myself. See remark above about wheels
      • Ergo
        which is kind of crappy
      • Charlie_X
        certainly sounds crapy.
      • Ergo
        well its certainly error proof
      • thing is most of time i dont do "releases" - i have one "rolling" app running via python develop
      • Charlie_X
        You can use your own PyPI though which takes a lot of the pain away.
      • Ergo
        but i still need to update the js
      • Charlie_X
        I assume this "appification" is why some webpages are getting so fucking fat.
      • TransferWise user page: 6 MB. Why?
      • waveform joined the channel
      • El_Rolando joined the channel
      • bomb-on joined the channel
      • Ergo
        Charlie_X: 6mb is excessive :D
      • Charlie_X: then again react source is 750kb :D
      • agitator joined the channel
      • cyphase_eviltwin joined the channel
      • nilo joined the channel
      • moo-_-
        Charlie_X: angular
      • Charlie_X: but think positively,
      • subsequent page loads are fast
      • Charlie_X
        No, they're not. It's just badly written crap.
      • Developers should spend more time on lower specc'd machines and slower connections.
      • hvelarde joined the channel
      • c0le has quit
      • agitator joined the channel
      • zupo has quit
      • c0le joined the channel
      • stevepiercy
        everytime you use a carousel, god kills a kitten
      • Charlie_X
        If only it were just carousels…
      • Bedtime for you, young man!
      • stevepiercy
        this is the only reason for carousels
      • there are no other good reasons
      • stevepiercy waves to Charlie_X
      • Charlie_X kills a kitten for stevepiercy
      • Charlie_X are you going to any conferences this year?
      • Charlie_X
        Hopefully. Just don't know which ones.
      • stevepiercy
        i plan on going to http://ploneconf.org/
      • Charlie_X
        That might be possible.
      • stevepiercy
        i went to my first ploneconf last year, and i think it was better than any pycon i attended
      • Charlie_X
        I had hoped to be able to get to that but didn't have funds at the time.
      • Difficult comparison: domain specific stuff is generally going to be better. But I also think PyCon has lost its way a bit.
      • stevepiercy
        PyCon is all about big data, number crunching, science, and django
      • Charlie_X
        This year… it's always been "fashionable". I miss the lack of depth as much as anything.
      • stevepiercy
        I hope to be planning a move to Oregon instead of attending PyCon this year
      • Charlie_X
        It's become a recruitment exercise as well.
      • stevepiercy
        true, if i were looking for regular employment, i might be interested
      • munch_ joined the channel
      • being self-employed and enjoying it doesn't provide much motivation to become a regular employee