#dev 2017-11-08

2017-11-08 UTC
#
@kuraine
Good news everyone, apparently full width text counts as 2 characters, so if you tweet like this your character limit will be back to normal!
(twitter.com/_/status/928037107993427968)
grantcodes joined the channel
#
@vgan
@miklb I noticed using the twitter client with my bots that some had it, so I tried the regular API call with >140 chars and it worked.
(twitter.com/_/status/928058106134884352)
tantek joined the channel
#
radiopetushki.net
edited /IRC_People (+110) "/* Nicknames */"
(view diff)
#
radiopetushki.net
edited /IRC_People (-110) "/* Nicknames */"
(view diff)
clintpatty, [miklb], renem, leg, tbbrown, tantek, ben_thatmustbeme and [eddie] joined the channel
#
[eddie]
!tell tantek: you might want to try the API again now. They are claiming as long as the rest of your endpoint code is up to date it should just work: https://twittercommunity.com/t/updating-the-character-limit-and-the-twitter-text-library/96425
#
Loqi
Ok, I'll tell them that when I see them next
[eddie], barpthewire, cweiske and tbbrown joined the channel
KartikPrabhu joined the channel
tbbrown, cweiske, barpthewire, renem, ben_thatmustbeme, dougbeal|mb1, ludovicchabant, j12t, sebsel, Kongaloosh_, ScalaWilliam, treora, Ruxton, petermolnar, jjuran, wagle, Zegnat, Kaja, raucao, wladz, jacky, aaronpk, oodani, dougbeal|imac, sknebel, prtksxna, dgold, deathrow1, badtuple, jonnybarnes, bear, dansup, voxpelli, kline, blueyed, rhiaro, kapowaz, tommorris, GWG, myfreeweb, plindner, eli_oat[m], AlanPearce[m], grantcodes, mindB, schmarty, zoglesby, TheGillies, loicm, [kevinmarks], jeremycherfas, eli_oat, tantek, John___, [eddie], Guest78407, snarfed, dougbeal|iOS and [keithjgrant] joined the channel
#
Loqi
[aaronpk] #49 increase shortening length to 280 characters
[eddie] joined the channel
#
[eddie]
snarfed++ for getting bridgy publish updated to 280 already this morning
#
Loqi
snarfed has 18 karma in this channel (314 overall)
#
[eddie]
Just did a test post after I saw the bridgy issue closed and it worked!
#
aaronpk
do I not understand python?
#
aaronpk
named parameters for function calls are a thing right?
#
aaronpk
apparently I don't know what i'm doing. I don't get why it isn't working
#
[eddie]
aaronpk: Do they have to be in order?
#
[eddie]
target_length BEFORE format?
#
aaronpk
I don't think so, I thought it turns it into a dictionary effectively
#
[eddie]
I don't know python either, just trouble-guessing
#
[eddie]
ohhh okay
#
petermolnar
no, there is no need for order with named arguments
#
petermolnar
aaronpk what does 'not working' mean?
#
aaronpk
it's still truncating to 140
#
petermolnar
I don't see any obvious reasons, it should work
#
petermolnar
change it in the function definition temporarily
#
aaronpk
that's part of brevity which is a different repo, and I have no idea where that's installed
#
aaronpk
ohh I might have not restarted the service
#
aaronpk
I thought it was running under passenger but I think it's actually not
#
aaronpk
progress, now I get a 500 server error ?
#
aaronpk
now where is uwsgi writing its logs
#
aaronpk
oh great, more errors I dont understand
#
aaronpk
it's getting importerrors trying to run it
#
petermolnar
lemme' see it somehow
snarfed joined the channel
#
petermolnar
`sudo pip3 install raven` unless you're running it in a virtualenv
#
aaronpk
shouldn't that also be added to requirements.txt?
#
petermolnar
yes, it should
#
aaronpk
k I added it, then re-ran pip install -r requirements.txt and it looks like it installed
#
aaronpk
ran `. venv/bin/activate` again
#
aaronpk
but still getting the error that it's missing
#
aaronpk
oh, something is making it run under python3 but I installed it to python2
#
aaronpk
why do I even have two versions of python installed?
#
petermolnar
that is a long story
#
petermolnar
comes from the os level
#
petermolnar
pip3 install -r requirements.txt
#
aaronpk
hm I don't have pip3
#
aaronpk
now I do
snarfed1 and [kevinmarks] joined the channel
#
petermolnar
re 2 vs 3: many of the ubuntu projects used to be python2 and the default install is still python2 in many cases even though the libs that were not ported to python3 should simply die
#
petermolnar
how exactly are you starting the service?
#
aaronpk
well right now i'm trying to run it from my active ssh console. i'll move it to the ubuntu init script later
#
aaronpk
so: `. venv/bin/activate` then `uwsgi --ini silopub.ini`
#
petermolnar
uwsgi doesn't respect the virtualenv
#
aaronpk
oh boy
#
aaronpk
k maybe I don't need the virtualenv?
#
petermolnar
if you don't virtualenv, you need to pip3 install with sudo, so it's available system-wide in /usr/local/lib/python[version/
#
petermolnar
if you don't virtualenv, you need to pip3 install with sudo, so it's available system-wide in /usr/local/lib/python[version]/
#
aaronpk
that's fine
#
aaronpk
oh I get it
#
aaronpk
so now I just run `uwsgi --ini silopub.ini`
#
aaronpk
yay it works
#
Loqi
giggles
#
petermolnar
so virtualenv is useful to try things and throw away or when you don't have sudo
#
petermolnar
otherwise, just install it system-wide, once you trust the libs
snarfed joined the channel
#
aaronpk
this is the only python app I run so i'm not super concerned
KartikPrabhu joined the channel
#
aaronpk
thanks for the help petermolnar!
#
aaronpk
learning a new language is one thing, but the whole environment and deploying apps is always so drastically different
#
petermolnar
I know... I kinda have to learn java again due to work... a language and environment I wanted to forget
[keithjgrant] joined the channel
#
[keithjgrant]
My MP endpoint on Heroku seems to be acting up ?
gRegorLove joined the channel
#
[keithjgrant]
Oh. My office blocked the app ?
#
[keithjgrant]
They block everything. It's insane
#
[keithjgrant]
Looks like I can move to a custom domain/subdomain on Heroku, but I'll lose SSL unless I upgrade to a paid plan
#
sknebel
[keithjgrant]: I see you use cloudflare for your main site, you could put that in front of heroku as well?
#
[keithjgrant]
Hmm. Yeah, I should be able to. Didn't work at first, but need to double check config
#
sknebel
sadly you can't put different routes on different origins on the free cloudflare, that'd be especially nice
#
[keithjgrant]
I barely understand what I'm doing whenever I deal with dns config
#
gRegorLove
dns is magic
#
[keithjgrant]
Ok, dns is fine. Heroku is serving 404
snarfed joined the channel
#
[keithjgrant]
I added the domain in the Heroku settings. Maybe I don't need that. Just point cloudflare to the same URL I've been using
snarfed, tantek, snarfed1 and [keithjgrant] joined the channel
#
[keithjgrant]
Now my Netlify build is hanging. Why does everything break at once? ?
#
sknebel
(if you use netlify you could also use them to pass through the mp endpoint to heroku I think, that might be easier than setting up cloudflare a second time)
#
aaronpk
I always forget about google webmaster tools but there's some pretty amazing information in there
KartikPrabhu joined the channel
#
@netlifystatus
We've mitigated the immediate cause of the slowdown and are still working to put a more thorough fix in place. If you have stuck builds, please contact support so we can restart them for you.
(twitter.com/_/status/928342447138136064)
jjuran joined the channel
#
aaronpk
oh no, instagram's https://www.instagram.com/aaronpk/media/ URL doesn't work anymore
tantek joined the channel
#
snarfed1
aaronpk: what was it?
#
aaronpk
a JSON list of a user's instagram photos
#
dgold
so no more OYG?
#
aaronpk
I guess they finally finished switching to GraphQL
#
aaronpk
nah I just had to use their GraphQL endpoint instead :P
#
dgold
yeah, I just found that too
tantek, tbbrown, leg and KartikPrabhu joined the channel