« first day (1028 days earlier)      last day (3916 days later) » 

10:25 AM
@Rarst looks verrrry(!) nice. Only thing that's sad is that i uses .js files to store the source pathes. Would be nicer to have a configuration option to plug in GeoJSON data as there's enough of that floating around in the interweb and anybody could decide on resolution her-/himself.
 
open issue on github :)
scaling is kinda meh. it poorly fits container if container dimensions have different ratio from map file
 
I really like how rob.is utilizes full stack Twitter Bootsrap :)
 
@kaiser That page doesnt seem to load for me ... - or is that the joke with it? ;)
 
Use dev tools - inspect source :)
@Rarst 60 open issues...
fork would be easier
 
lol issue "split Sudan"
 
10:36 AM
@kaiser yeah, it loads a whole lot of JS stuff ... but nothing happens :P
 
@kaiser note it's fork itself
 
@Rarst popout issue! :D
@s1lv3r love it :)
 
@kaiser Strange humor. :-)
 
there's nothing that should happen there. Just set everything up, adds title. FIN!
@s1lv3r you haven't seen his avatar on Twitter...
 
original project has 66 issues...
 
11:25 AM
@Wyck Have you already seen the GitHub issue? User brings interesting problem: How and where to discuss the links?
@StephenHarris Note the following:
$origDate = new DateTime( '2008-05-12' );
$updateDate = $otherDate = $origDate;
$updateDate->setDate( date( 'Y' ), $updateDate->format( 'm' ), $updateDate->format( 'd' ) );
// Now all above assigned dates have been set to the current year.
// To avoid this, set variables on different lines.
Didn't instantly get around that all references would change head/desk
 
@kaiser Cheers, for the heads up. I didn't realise that. That's odd behaviour though.
Because $updateDate = $origDate would work fine...
 
@TomJNowell You available right now ?
@StephenHarris yep :)
@StephenHarris funny sidenote: If the original DateTime object was returned by a function or method, only the other two variables would change but not the $origDate... for whatever reason.
function getOrigDate() { return new DateTime( '2008-05-12' ); }
$origDate = getOrigDate();
$updateDate = $otherDate = $origDate;
$updateDate->setDate( date( 'Y' ), $updateDate->format( 'm' ), $updateDate->format( 'd' ) );
// Now the later two of above assigned dates have been set to the current year.
// $origDate would stay the same
And I'm not even sure if this happens always or just in the case I had to fix previously :P
 
11:43 AM
@kaiser ok, was going to say that would make sense till I saw the example and what you meant :/
 
@kaiser all three dates change in either case, you are confusing something
 
@Rarst well I got some steps in between: DataTransformers, so maybe that was the border that allowed the orig value to stay like it was. Didn't test above example, hence "not sure".
 
@kaiser I somehow missed this
@Rarst looks nice! Bit more of a hassle if they hadn't bundled the world map in with it though
 
12:23 PM
@TomJNowell hassle how?
 
@Rarst having to make a worldmap vector from scratch
 
I am not sure about your wording there... they are bundling world map and several others
 
12:51 PM
exactly, hence it would be a bit more of a hassle if they hadnt
 
that's a high level of hypothetical :)
anyway, I should probably like make some slides actually about Composer...
 
2:03 PM
@Rarst may be of interest to you wordpress.org/plugins/voce-widget-cache
 
2:19 PM
@TomJNowell not much to it
 
just a thought, you cache everything and add filter to exclude or whichever
whereas you can cache widgets by ID with that one
if I find the WP Cure Cancer plugin though I'll let you know, Im sure thatll be more than momentarily interesting
 
I can't simultaneously implement opposite approaches
 
@Rarst nonsense
it can always be done witht eh right architecture and approach
 
@TomJNowell had you been using WordPress again?
 
2:45 PM
@Rarst trying desperatly to extricate myself from it
I see the light, thinking it's the exit, then realise it's just a glowy graphic on a Yoast widget
 
@TomJNowell You'll never get out of WordPress...
 
3:28 PM
0
Q: Faving multiple chat messages

kaiserAs some might know, we have LoopChat, which often features hilarious quotes. All those were extracted from our favs list - the "starred messages". But often "starred"/faved quotes get out of context and aren't funny anymore when you don't know the whole dialogue. Request: Let us bulk-"star"/fav...

 
 
3 hours later…
6:17 PM
Shog9 on August 09, 2013

With over 100 sites on various and sundry topics, Stack Exchange has become something of a juggernaught: keeping this many different communities healthy and well-supported can be a bit overwhelming at times. We’d never be able to pull it off if there weren’t so many of you pitching in to help, and so I’m more than happy to announce that we’ve managed to convert another dedicated volunteer to full-time cat-wrangler:

Jon became fascinated with computers when he got to play with his cousin’s Commodore 64 circa 1986. Over the years, Jon went on to write many fine Hello …

 
 
3 hours later…
9:04 PM
hey there
 
hiya
 
I have one question :)
 
it's friday midnight, don't expect much of it :)
 
9:49 PM
aaand spooked.
 
Anyone good with HTML parsing? Help me out~plz! Me love you long time. :)
 
@MichaelEcklund drop native perversion and try Symfony DomCrawler
 
google.com
 
Knew it
Thanks though. :)
 
9:54 PM
nothing personal. I just have memories of parsing. memories that better stay buried.
:)
 
10:05 PM
@MichaelEcklund use php.net/manual/en/domnode.getlineno.php to get the line number of each node found. When building your array of nodes, also attach the node line number as the node key [linenumber] => 'tag' then sort the array by key. That should return the exact order of each node.
 
10:18 PM
then again that might only work with xml
 
@userabuser Someone answered it with a solution. Works flawlessly.
 
10:36 PM
$matches = array();
$dom = new DOMDocument;
$dom->loadHTML($content);

foreach($dom->getElementsByTagName('h2') as $node) {
    $matches[$node->getLineNo()] = $dom->saveHtml($node);
}
foreach($dom->getElementsByTagName('h3') as $node) {
    $matches[$node->getLineNo()] = $dom->saveHtml($node);
}

ksort($matches);
I went ahead and tested it anyway, and it works...
@MichaelEcklund glad you find an answer though
 
Roots got so much CSS on github it's no longer considered PHP project...
 
@MichaelEcklund or this for more concise code;
foreach(array('h2', 'h3') as $tag) {
    foreach($dom->getElementsByTagName($tag) as $node) {
        $matches[$node->getLineNo()] = $dom->saveHtml($node);
    }
}

ksort($matches);
 
10:54 PM
Anchor CMS got quite big on GitHub
 
 
1 hour later…
11:56 PM
class-wp-xmlrpc-server.php has 111 hooks , it's a record
 

« first day (1028 days earlier)      last day (3916 days later) »