#indiewebcamp 2012-12-27

2012-12-27 UTC
#
tantek
maybe create a test fb account
#
aaronpk
oh yea I have one
#
aaronpk
meh too much trouble
#
tommorris
it would be spectacularly useful if APIs like Twitter (and FB) would let you set them into "test" mode, which would let you call them, and they'd do everything they actually do, but don't actually publish the data to your feed for real. put a big marker next to the posts that says "FAKE POST" or something.
#
tommorris
that way you could bollocks things up without annoying hundreds or thousands of people.
#
aaronpk
when I connected FB I could have checked the "only visible to me" option for the twitter posts
#
tommorris
I know MediaWiki API has the ability to do that. there's some parameter you can pass which basically is like a "dry run" mode. so you can test out complicated stuff and it returns everything it should do, but doesn't actually write the result to the DB
#
aaronpk
cool. changed IFTTT to be only visible to me when it posts.
#
tommorris
I've written a Wikipedia bot that requires on some asynchronous queue processing (it's downloading articles for processing while other things are uploading) etc. and being able to dry run it i suseful.
#
tommorris
s/requires/relies/
#
Loqi
tommorris meant to say: I've written a Wikipedia bot that relies on some asynchronous queue processing (it's downloading articles for processing while other things are uploading) etc. and being able to dry run it i suseful.
#
tantek.com
edited /Facebook (+13) "User:Adactio.com"
(view diff)
#
tommorris.org
edited /Facebook (+233) "/* Facebook API */ adding how to do so"
(view diff)
#
tommorris.org
edited /Facebook (+6) "/* Facebook API */ should specify language"
(view diff)
#
tommorris.org
edited /Facebook (+69) "/* from Twitter */ +1"
(view diff)
#
aaronpk
really enjoys getting tantek's posts via PuSH
#
tantek
heh - really got to find a way to stage posts without PuSH
#
tantek
that was a test post to @falcontest
#
tantek
I've got a bug with overescaping ampersands
#
aaronpk
also the twitter username code managed to get A-Q. is that because the max length of a twitter username is 20 chars?
#
tantek
I guess?
#
tantek
every once in a while I post something that reveals bugs in my code and then I have to fix them
#
tantek
ok I think this is because Twitter changed their handling of & in the API since I last touched this code (years ago?)
#
tantek
ah apparently that's been a longstanding bug in my Falcon queue - discovered it this past April: http://twitter.com/t/status/196029984094162945
#
@t
proposals accepted! speaking @osbridge on #webactions http://t.co/5yzpE6An &amp
#
Loqi
#indieweb http://t.co/bl1a1eWv #osbridge (ttk.me t4Hc2)
#
tantek
heh - and Loqi has an overescaping bug as well!
#
tommorris
really needs to find an excuse to visit Portland and revisit SFO.
#
aaronpk
oldie but goodie
#
aaronpk
hm I see room for improvement
#
tantek
right now I'm using just this for matching twitter @-references:
#
tantek
(?:\\@[_a-zA-Z0-9]{1,17})
#
tommorris
plans epic LHR → PDX → SFO → LHR trip.
#
tommorris
I really wish regexes were properly specced out, such that you could take a regex, compile it, get back a consistent parse tree, and then test that parse tree against implementations to see which features are implemented.
#
aaronpk
hm well this is an interesting problem http://rubular.com/r/HEkLRWKf7P
#
tommorris
shouldn't the negative lookbehind be checking for any non-space characters?
#
tommorris
try ((?<![^\s])\@[_a-zA-Z0-9]{1,17}) instead
#
aaronpk
yea the negative version works well too http://rubular.com/r/rPC2YiR5UT
#
tommorris
negative lookbehind for non-space character should work
#
aaronpk
rubular is like my favorite site ever
#
tantek
wow that's pretty cool
#
tantek
hmm - so which is better in terms of performance?
#
tantek
((?:^|(?<=\s))\@[_a-zA-Z0-9]{1,17}) or ((?<![^\s])\@[_a-zA-Z0-9]{1,17}) ?
#
tantek
or more compatible?
#
aaronpk
not sure, there aren't any mentions of performance on that site
#
tantek
I think I better understand the former
#
tantek
so I'm going to try that
#
aaronpk
I think they would both be about the same for compatibility, because they're both lookbehinds, the difference is positive vs negative
#
aaronpk
tommorris' might be faster because there is one less component
#
tantek
aaronpk - odd, I'm getting a JS syntax error with that regex
#
tommorris
now that Node exists, I'm so tempted to make a regex tester that lets you put a regex and some sample strings in and it tests them using the regex engines in Perl, Ruby, Python, JavaScript, Java and .NET.
#
tantek
with both of those actuall
#
tantek
SyntaxError: invalid quantifier
#
tantek
tries some extra backslash escaping
#
tantek
nope that didn't work
#
tantek
this works:
#
tantek
(?:\\@[_a-zA-Z0-9]{1,17})
#
tantek
but when I replace it with:
#
tantek
((?<![^\\s])\\@[_a-zA-Z0-9]{1,17})
#
tantek
I get SyntaxError: invalid quantifier
#
aaronpk
Chrome gives me "Invalid group"
#
tantek
:( those regexes don't seem to work in JS
#
aaronpk
oboy. w3 wants me to get Esri to join as an organization
#
aaronpk
rather than have me join as an individual
#
tantek
of course they do
#
tantek
tell them no for now
#
tantek
too hard to properly escape / quote regexes to make them work generically
spinnerin joined the channel
#
aaronpk
oh yea it's 12/27 for you now :)
#
tantek
well I'm not going to put a regex into CASSIS that only works in PHP
#
tantek
and not in JS
#
tommorris
Hmm. LHR → PDX → SFO → LHR for £715. looks like indiewebcamp-pdx may be a possibility next year.
#
tantek
so here's the other challenge, ?@foo shouldn't link, but @foo,@bar should
#
tantek
(both of @foo and @bar)
#
tommorris
tantek: the OSBridge conference site links to all 2012 stuff. ;-)
#
tantek
I believe you're looking for #osbridge ;)
#
tommorris
that said, the wiki has session notes all CC BY. ftw.
#
tantek
and has openid logins
#
tantek
it's pretty sweet
#
tantek
for the wiki even
#
tantek
and screw it - I'm adding another special case of not linking @-references in addition to the CSS set (@import @media @font @font-face @namespace @page @charset)
#
tantek
no autolinking @ABCDEFGHIJKLMNOPQ
#
tommorris
I'm tempted to do some kind of link substitution thing by having a database which pulls from the Twitter API to translate links to Twitter usernames.
#
tommorris
So if I type <a href="http://tantek.com/">Tantek</a>, it replaces it with @t when it sends it to Twitter
#
@ralphmercer
I would pay money for an open, no advertisement web, but never to be walled in by proprietary platforms.. #ownyourdata
#
tantek
tommorris - I think aaronpk's setup does that.
#
tantek
IG does that as well, that is, it translates IG @-references to Twitter @-references when cross-posting, if the person @-referenced has linked their twitter account to their IG account.
#
aaronpk
tommorris: I do it the other way around. I type @t or @tantek on my site, and it links to twitter by default, or if there is a record in users.txt, links to their domain with a little icon
#
tommorris
So, on that Lanyrd post, I initially did <a href="http://lanyrd.com/">@Lanyrd</a>, then just edited it to remove the @.
#
tantek
aaronpk - it should work either way, regardless of what you as the user type (Postel's law and all that ;) )
#
tommorris
after posting, that is.
#
tantek
and the Twitter Blackberry app auto-recognizes @ABCDEFGHIJKLMNOPQRSTUVWXYZ in the asciibet as a Twitter ID. Ok, now I don't feel so bad :)
#
aaronpk
with the ? before it?
#
tantek
no, just in the middle of the string
#
aaronpk
just realized wordpess' atom feed has no way of paging back in time
#
tantek
aaonpk - hence the need for hAtom
#
tantek
feeds are ephemeral
#
tantek
HTML is crawlable discoverable with archives and such, all marked up in hAtom
#
aaronpk
ah, cool
#
tantek
tommorris nice!
#
tantek
(and quite rare ;)
#
tommorris
Rails makes publishing multiple formats quite easy.
#
tantek
hmm looks like github service hook to twitter is down, my update to cassis.js didn't make it to twitter.com/cassisjs
#
tantek
and when I tried to update the oauth link on the github side, github returned a 500 error :(
#
tommorris.org
edited /why (+398) "I'm gonna be bold and say there is a "community" here."
(view diff)
#
tommorris
I just read Sumanah's keynote at OSB2012, and it reminded me of when I met her in Israel and she said something along the lines of how getting participation starts with documenting the crap out of everything.
#
tantek
and favstar *also* has the asciibet over linking bug: http://favstar.fm/users/t/recent
#
tommorris
ha, and it downcases it too.
#
tantek
#FAIL
#
tommorris
we're gonna end up finding all the bugs in Twitter clients with that tweet.
#
Loqi
FIND ALL THE BUGS http://loqi.me/635
#
tommorris
actually, I wonder: that's an interesting challenge. Come up with a tweet that packs as many potential rendering bugs into 140 characters as possible.
#
tommorris
could actually be useful, if there was a Twitter account which just has fucked up potential rendering issues.
#
tommorris
call it AcidTweet. ;-)
#
tantek
so the whole point of posting that asciibet tweet for me was so I'd have a quick an easy Helvetica reference accessible on my iPod for sketching from
#
aaronpk
lol! awesome
#
tantek
now to start trying to draw them. a few hundred times and I should be good. repetition works for stuff like this.
skitchen, zztr and tantek joined the channel
#
aaronpk
!tell tantek I stole your buttons for http://500lattes.aaron.pk/ thanks!
#
Loqi
Ok, I'll tell him that when I see him next
#
aaronpk
(dns hasn't finished propagating so you may see the wrong site for another hour or so)
laurian and tantek joined the channel
#
Loqi
tantek: aaronpk left you a message 3 hours, 14 minutes ago: I stole your buttons for http://500lattes.aaron.pk/ thanks!
#
tantek
aaronpk - nice!
#
tantek
btw - apparently I posted them to Dribbble in earlyish 2011 http://dribbble.com/shots/147165-2011-101-Falcon-previous-next-arrow-buttons
#
aaronpk
oh nice!
#
aaronpk
I just re-wrote that site using a minimal php framework
#
@aaronpk
Trying out a new PHP web development stack: Slim Framework, Savant Templates, idiorm ORM: http://t.co/hWrFS2Yz
friedcell joined the channel
#
tommorris.org
edited /why (+74) "/* Why Indie Web Camp community? */ almost forgot that"
(view diff)
laurian and tantek joined the channel
#
@DatenundGesundh
@EricTopol: We're at 2,500,000,000,000 Mio bytes of data generated per day and rising http://www.nybooks.com/articles/archives/2013/jan/10/how-he-got-it-right/?pagination=false” importance to #ownyourdata
lmorchard, tantek and andreypopp joined the channel
#
@brennannovak
@JamieRighetti @AmberLyon the first mainstream attn was 2.5 yrs ago called Diaspora but there are many more #IndieWeb platforms out there