php2python.com is super useful for learning all the little things which always need doing when moving from #php to #python, e.g. splitting a string using another string, or pretty-printing a dict.
php2python.com is super useful for learning all the little things which always need doing when moving from #php to #python, e.g. splitting a string using another string, or pretty-printing a dict.
I love that #php now has shiny namespacing and a thriving code sharing community, but I think the heavily hierarchical namespacing practises used by some of the community (e.g. symfony components) are unhealthy.
They are difficult to memorise, relying on (often slow) IDE autocomplete, and encourage a use
statement for each class. That’s pretty much a scoped equivalent of from x import *
in python — not a good practise! It’s still namespace pollution, it just takes longer to write.
I am trying to use a more python–like, package-centred approach with much fewer subnamespaces. The outcome of this should be that you use
the package name:
use BarnabyWalters
osse;
…and then using all the classes/subnamespaces from that root, e.g: $t = Posse\Helpers::convertHtmlToTwitterFormat($s);
Created this evening: a partial parser for ABC notation. It currently only handles headers, including ones within the music, but not inline headers. For the #taproot tunes module
Brennan Novak great to see you auto–POSSEing! And pleased that you found the truncenator useful. Also check out the stuff in BarnabyWaltersPosse, there’s a more up to date version of the truncenator as well as some other syndication helpers.
Glenn Jones I can highly recommend kangoextensions.com as an open source framework for cross-browser extensions. I’m using it for indieweb reply and own-your-comments
Just some simple performance–enhancing on #taproot these last few evenings — cached and parallelised pingbacks and identengine.com requests.
T1: Checking to see what’s up with the weird note author thing
Rolled out usage of the menu
element on #taproot. I’m looking forward to more browser support for HTML context menus, that will really open up the possibilities for cross-browser extensions
According to whitespacestrippers.com, neither caching nor lossless compression exist or are in common usage on the web.
To all exeter_web people who saw my #microformats talk last night: I documented my usage of µf on my own site, hopefully it’s a useful real–world reference if you’re interested in using µf2 yourselves :)
Implementing pingback alone has already caused me more headaches than any other aspect of #taproot. WHY XMLRPC, HIXIE?
New on #taproot: Notes tagged with review
get h-review
added to their container class string. Not yet sure how to optimise e-description
and p-name
yet. #microformats
adamstrawson lookin’ good! How about some rel=me
goodness on those profile links? Helps great tools like identengine.com (⇐ has cool API) exist
@karlpro wrt your opera dev article, check out microformats 2 h-geo, Ben Ward’s hparse-js for parsing and my own php-mf2 online syntax checker :) #microformats
Registered taprootproject.com for #indieweb reasons. My publishing software is being released soon! /cc sandeepshetty
Doing a mass find-and-replace operation on the Perch Blog app so I can have more than one running at the same time. If you want to do something similar, here are the strings you need to replace:
blog
⇒ yourName
Blog
⇒ YourName
perch_blog
⇒ yourPrefix_yourName
PerchBlog
⇒ YourName
And then obviously rename the .class.php
files and activate as you would any other app.