This year, I really wanted to work on my output, and I think I’m doing pretty well. Here are some things that I’ve been publishing:
Regular monthly blog posts on yakushima.blog A few posts this year on the Geolonia blog for work However, updates on this personal blog has been not so great – the previous post is the “2023 review” post, after all.
I’ve been updating this blog from 2012, when we officially incorporated Flagship.
Want to mix LocationMatch and ProxyPass? Not so fast.
<LocationMatch ^/(regex/here/.*)$> ProxyPassMatch http://backend/$1 </LocationMatch> Don’t forget to use ProxyPassReverse if you need it (it shouldn’t be inside the LocationMatch directive, though).
References:
ProxyPassMatch docs Bug 50048 - ProxyPass(Match) within Location(Match)
If you haven’t noticed, you can’t use anchor links:
<a href="#hello">Go to id="hello"</a> Inside Facebook Apps (Page tab, Canvas app, etc). So I wrote a little snippet that emulates this behaviour by using FB.Canvas.scrollTo(x, y);
/* anchorlinks-fbcanvas.js Enables anchor links (<a href="#hello">Go to id="hello"</a>) in Facebook Canvas (page tabs, canvas app, etc) Requires: jQuery, Facebook JS SDK */ jQuery(function($) { $('a').filter(function() { return $(this).attr('href').match(/^#/); }).each(function(i, el) { $(el).click(function(e) { e.preventDefault(); var elementId = $(el).
I’m sure you have heard of App.net by now. The paid, non-advertisement-supported “live social stream” (read: Twitter). They set a $500,000 goal, and raised more than $800,000 - a clear indicator that some level of demand is there for such a service.
There are two levels of membership, the $50 “User” level and the $100 “Developer” level. A developer account will give you the necessary API keys to build apps that connect to App.
Been wondering how to simply retina-ize your website? Put this at the end of your site:
$(function() { try { if (window.matchMedia('(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2)').matches) { $('.autoRetina').each(function(i, e) { var orig_src = $(e).attr('src'); var new_src = orig_src.replace(/^(.*?).(png|jpe?g|gif)$/i, '$1@2x.$2'); $(e).attr('src', new_src); }); } } catch (e) {} }); If you’re on a Retina-equipped device, your images with the autoRetina class will automatically be replaced with their Retina counterparts. If you’re familiar with iOS development, you’ll feel right at home.