#dev 2016-08-16
2016-08-16 UTC
KevinMarks, mindB, mindB2, KevinMarks_ and rascul joined the channel
AngeloGladding joined the channel
#
AngeloGladding hey rascul, KevinMarks_
#
AngeloGladding i wanted to abstract 63-69 out of download function so that other distro-specifics could be handled at the main level
#
AngeloGladding KevinMarks_ is there dynamic "source"ing going on in those files or what do you want me to be looking at?
#
AngeloGladding rascul: my problem specifically was..
#
AngeloGladding cool.. i imagine ammending this file until it is utterly grotesque -- that'll make me feel complete
#
AngeloGladding once I've got a nice clean Python3 env I can get back to my purity
#
AngeloGladding so i'll remember that
#
AngeloGladding but my problem..
#
AngeloGladding setting shatemplate
#
AngeloGladding shatemplate="SHA1 ($filename) = $sha1sum"
#
AngeloGladding setting that inside the function allows me to use the variable
#
AngeloGladding setting it outside the function.. is there any hope?
#
AngeloGladding the local variables $filename and $sha1sum
#
AngeloGladding hmm..
#
AngeloGladding i want to rip that conditional out of `download()`
#
AngeloGladding i don't know really a) if it's possible or b) how
#
AngeloGladding right
#
AngeloGladding was the idea
#
KevinMarks_ No, more that I end up writing python scripts that call other python scripts and do their own directory walking rather than using shell for it
#
AngeloGladding KevinMarks_: have you ever solved the "source" a Py2 env from Py3 script or vice versa?
#
AngeloGladding oh ok.. no need for locals.. everything proceeds in a single execution thread anyway..
#
AngeloGladding let me read those links you gave me, set up a testing environment and rerun w/ the changes
#
AngeloGladding ok
#
AngeloGladding yeah and i want to give you the quickest feedback
#
AngeloGladding give me a couple of minutes
#
AngeloGladding so are you saying turn `local urlbase=$1` to `urlbase=$1`?
#
AngeloGladding maybe you can advise a better overall approach
#
AngeloGladding to lines 38-90
#
AngeloGladding just download, verify and unpack
#
AngeloGladding i'm tempted to turn it into python but I've been down this path before..
#
AngeloGladding i'm certain bash can handle it
#
AngeloGladding done
#
AngeloGladding hmm..
#
AngeloGladding the if statements contain the variable names from the download() function though
#
AngeloGladding so when those strings are set, outside of the context of download() they appear to evaluate to ""
#
AngeloGladding so define them outside of the if statements?
#
AngeloGladding so $shatemplate contains variables that are set inside the download() function
#
AngeloGladding i'm having a hard time describing the problem
#
AngeloGladding do you see what i'm talking about?
#
AngeloGladding k
#
AngeloGladding several beers in myself
#
AngeloGladding conclude the conversation at any time
#
AngeloGladding i've got some reading to do
#
AngeloGladding on bash that is
#
AngeloGladding do you see my problem though w/ $shatemplate?
#
AngeloGladding that's the crux
#
AngeloGladding $shafunc is fine because its static
#
AngeloGladding $shatemplate is reliant upon the variables passed into download()
#
AngeloGladding k cool
#
AngeloGladding to state the obvious you can exit out after the first call to download, supply the script with six arguments and test away
#
AngeloGladding i'm still here
#
AngeloGladding ?
#
AngeloGladding i see your changes
#
AngeloGladding haha
#
AngeloGladding VOODOO MAGIC!
#
AngeloGladding :)
#
AngeloGladding carry on
#
AngeloGladding i searched the google for cross-platform shell scripting
#
AngeloGladding didn't find a canonical resource
#
AngeloGladding seems like this kind of thing would be solved on stackoverflow or s/t
#
AngeloGladding or like a forum circa '97
#
AngeloGladding totally n00b here lookin' for some guidance :)
#
AngeloGladding wk
#
AngeloGladding quite the situation i've backed myself into here..
#
AngeloGladding i guess.. fuck it..?
#
AngeloGladding a bit of verbosity won't kill a bootstrap script
#
AngeloGladding lol
KevinMarks joined the channel
#
AngeloGladding but can you describe your line 17 magic?
#
AngeloGladding so what is the word in this case?
#
AngeloGladding interesting
#
AngeloGladding alright
#
AngeloGladding real quick
#
AngeloGladding did you pick up on my question earlier about "source"ing a virtual env from within a python script?
#
AngeloGladding i'm learning everything about bash at this point
#
AngeloGladding oh ok
#
AngeloGladding haha
#
AngeloGladding no python?
#
AngeloGladding no venv?
#
AngeloGladding ahh.. --user flag
#
AngeloGladding haven't used it but heard of it
#
AngeloGladding kind of a pseudo-venv
#
AngeloGladding alright
#
AngeloGladding right
#
AngeloGladding envs are kinda hard to manage
#
AngeloGladding interesting..
#
AngeloGladding how about a VPS setup
#
AngeloGladding valid
#
AngeloGladding ?
#
AngeloGladding cool
#
AngeloGladding i'll check that out as well
#
AngeloGladding i'll read about those bash changes you've recommended
#
AngeloGladding but for deployment.. so far all hosts provide multiple users..
#
AngeloGladding that's probably the best takeaway here
#
AngeloGladding thnx
#
AngeloGladding i'm going to ponder the consequences of each sober
#
AngeloGladding and i'll keep you apprised
#
AngeloGladding :)
#
AngeloGladding could simplify things a bit
#
AngeloGladding so what about system packages
#
AngeloGladding ?
#
AngeloGladding do they carr over?
#
AngeloGladding yeah
#
AngeloGladding damn..
#
AngeloGladding the options
#
AngeloGladding i feel like that'd be great on a single-user VPS but then i think of my dev machine
#
AngeloGladding i'd love the installer to work in both contexts
#
AngeloGladding ...
#
AngeloGladding and shit
#
AngeloGladding wait
#
AngeloGladding the whole point of needing to source was this:
#
AngeloGladding my setup requires supervisord which requires 2.7
#
AngeloGladding and my code is written in 3.x
#
AngeloGladding is that compatibile
#
AngeloGladding bile..
#
AngeloGladding that's how py's venvs are making me feel
#
AngeloGladding :)
#
rascul it is this one? https://github.com/angelogladding/canopy
#
AngeloGladding so the script is downloading nginx, redis, creating a py27 for supervisor to manage nginx, redis, a uwsgi app, a background task manager and a crawler, .. more to come
#
AngeloGladding yes
#
AngeloGladding manage all the things
#
AngeloGladding and more to come
#
AngeloGladding damnit loqi not now
#
AngeloGladding :)
#
AngeloGladding so if you look at line 222 of https://gist.github.com/angelogladding/c01eb1a1707804864a6235117e3e886f you'll see I've got multiple programs i'd like to manage
#
AngeloGladding swarm is a task manager.. sequentially fulfilling bg tasks..
#
AngeloGladding kaleidoscope is a semantic crawler
#
AngeloGladding canopy is a uwsgi app
#
AngeloGladding i intend to have at least a bittorrent app as well
#
AngeloGladding *definitely* going to have more manageable services
#
AngeloGladding so while i hate that i need a second env to accomodate supervisor
#
AngeloGladding is that even a thing for VPS?
#
AngeloGladding init is a weak spot of mine
#
AngeloGladding debian is most familiar
#
rascul for uwsgi, just put the config in /etc/uwsgi-emporer/vassals
#
AngeloGladding well i suppose the more important one is my host
#
AngeloGladding webfaction: CentOS
#
AngeloGladding that requires su?
#
AngeloGladding vps don't got no r00t
#
AngeloGladding :)
#
AngeloGladding er?
#
AngeloGladding asteria is not in the sudoers file. This incident will be reported.
#
AngeloGladding ""
#
AngeloGladding lol
#
AngeloGladding wait
#
AngeloGladding sorry
#
AngeloGladding not vps?
#
AngeloGladding i'm targeting the lowest cost hosting
#
AngeloGladding https://www.webfaction.com/ scroll down -- shared @ $10/mo
tantek joined the channel
#
AngeloGladding and that'll give me root?
#
AngeloGladding of course...
#
AngeloGladding 100% of the other homebrew attendees are on 1&1 and GoDaddy..
#
AngeloGladding homebrew club LA that is
#
AngeloGladding i know....
#
Loqi DigitalOcean is a virtual private server provider targeted towards developers and offers low cost cloud servers in data centers across the world https://indieweb.org/DigitalOcean
#
AngeloGladding damn
#
AngeloGladding keep it simple
#
AngeloGladding or do it right
#
AngeloGladding supervise everything out of the home dir and support as many providers as possible
#
AngeloGladding ...
#
AngeloGladding now i see i have realistic options
#
AngeloGladding thought root-level hosting was out of the price range
#
AngeloGladding sheesh.. gettin' tired
#
AngeloGladding i'll look into my options tomorrow
#
AngeloGladding just want to get my code live on all the hosts
#
AngeloGladding just want to get my code live on all the things
#
AngeloGladding don't leave me hangin' loqi
#
AngeloGladding ...
#
AngeloGladding you rascal
#
AngeloGladding oh wow
#
AngeloGladding haha
#
AngeloGladding lol
#
AngeloGladding don't even know where to begin
#
AngeloGladding called loqi a rascal for not meming my last statement
#
AngeloGladding clearly i've been brainwashed by your username
#
AngeloGladding and am delerious at this late hour
#
AngeloGladding + too much bash
#
AngeloGladding :)
#
AngeloGladding nice
#
AngeloGladding and i'm angelo
#
AngeloGladding nice to meet you ray
#
AngeloGladding verbatim.
#
AngeloGladding such
#
AngeloGladding get rascul.io live and i'll add it to my crawl
#
AngeloGladding but your github
#
rascul https://rascul.xyz now but nothing there yet
#
AngeloGladding lol
#
AngeloGladding static html derived from a rust generator
#
AngeloGladding :)
#
AngeloGladding and we come full circle
#
AngeloGladding wow man
#
AngeloGladding check my github in the next couple of days
#
AngeloGladding i feel the same way
#
rascul i like gogs https://gogs.io/
#
Loqi Gogs is a self-hosted Git server with additional features such as issue management https://indieweb.org/Gogs
#
AngeloGladding `canopy-software` should obviate github
#
AngeloGladding alright
#
AngeloGladding i'll see you in the chat no doubt
#
AngeloGladding gnight
#
AngeloGladding RASCAL!
KevinMarks_, KevinMarks, tantek, loicm_ and AngeloGladding joined the channel
#
@RikMende Since I moved from @dreamhost to @indiehosters I can't IndieAuth/login to https://woodwind.xyz - I do see this … https://rmendes.net/2016/since-i-moved-from-dreamhost-to-indiehosters-i-cant-indieauthlogin (twitter.com/_/status/765496492836655104)
rMdes joined the channel
#
@RikMende @botwikidotorg @Veronica Great! are you implementing #webmentions on the botwiki wiki ? (twitter.com/_/status/765497372415844352)
mindB, doesntgolf, cmal and rMdes_ joined the channel
#
@Inkwater_Masha How to #Self-Publish Your Own Books as a Business Model http://byregina.com/self-publish-your-book/?platform=hootsuite #indieauth (twitter.com/_/status/765538719910731777)
rMdes_, singpolyma, ChrisAldrich, KevinMarks, mindB, gRegorLove and rMdes joined the channel
cmal joined the channel
rMdes_ joined the channel
#
gRegorLove ChrisAldrich: ^ that should make LA show up on /this-week for 8/24 now
#
gRegorLove aaronpk: this-week uses the locations listed on /events, right, not the p-location on the event permalink?
#
ChrisAldrich Thanks gRegorLove, it'd have taken me ages to figure that out
doesntgolf joined the channel
#
gRegorLove It's confusing. It looks at the event permalink to get the photo, so it seems it would look there for locations too.
#
gRegorLove So clarifying with Aaron to be sure
chrisaldrich1 and KevinMarks joined the channel
rascul joined the channel
#
aaronpk oookay i just updated this with the code that's actually used to generate the newsletters https://github.com/indieweb/this-week
AngeloGladding joined the channel
#
gRegorLove GWG: I think ben_thatmustbeme's method is a good guide. I followed that, at least.
#
gRegorLove record referrers, async verify they link to you, store verified ones as possible vouches.
#
gRegorLove Here's my table structure for referers and vouches: https://github.com/gRegorLove/ProcessWire-Webmention/blob/master/Webmention/Webmention.module#L251
#
gRegorLove Then the methods for referers and vouches start here: https://github.com/gRegorLove/ProcessWire-Webmention/blob/master/Webmention/Webmention.module#L1722
#
gRegorLove I would use WP cron to process referrers regularly
#
gRegorLove Example?
#
gRegorLove (I'm presuming you mean sending and receiving Vouch, btw. Referer stuff is needed only for sending.)
#
gRegorLove Receiving and verifying might be an easier first step
#
gRegorLove They're not expensive
rMdes joined the channel
#
gRegorLove I process only one row at a time, but that's mainly because of the latency of getting the URL's HTML and verifying it links back.
#
gRegorLove Which reminds me I need to do some heuristics about huge pages. Ran into a problem with it trying to verify a huuuuge page (which was spam)
#
chegalabonga.com created /User:Chegalabonga.com (+981) "Created page with "Hi guys and gals! My name is David Peach and I am in the process of moving posts from various places to my new permanent domain, https://chegalabonga.com Chegalabonga is a made..."" (view diff)
chrisaldrich_, KevinMarks and singpolyma joined the channel
#
rascul.xyz edited /User:Rascul.io () "(-683) redirect to rascul.xyz because rascul.io is no more" (view diff)
#
Loqi A sparkline is a small, simple, data-dense graphic with typographic resolution that is shown inline and in-context with relevant text https://indieweb.org/sparkline
KevinMarks joined the channel
KevinMarks and ChrisAldrich joined the channel
#
rascul.xyz edited /HTTPS (+6) "/* Obtain */ let's encrypt is no longer beta, client is now from eff and called certbot" (view diff)
#
rascul probably isn't important to include instructions anymore since they're nicer to read from https://certbot.eff.org
KevinMarks and KevinMarks_ joined the channel

