Posted by yrashk
I was using iTerm on Tiger to get tabbed terminal UI, but now in Leopard Terminal has tabs. Though many of friends and I was complaining about cycling through tabs. Cmd-Shift-{ and Cmd-Shift-} and not really convenient shortcuts. So, here is a damn easy solution:
And do not forget to restart Terminal!
Posted by yrashk
Are you using YUI Loader with Rails and config.action_controller.asset_host = "http://asset%d.site.com" to distribute your assets? Unhappy with YUI Loader because it has no idea about Rails asset_host? Not anymore!
In your HTML layout:
<script type="text/javascript" charset="utf-8">
var assetHost = <%= controller.asset_host.to_json %>;
</script>
and in your load procedure:
loader = new YAHOO.util.YUILoader();
loader.base = '/yui/';
// ...
if (!assetHost.empty()) {
loader.assetHosts = [0,1,2,3,4].collect(function (i) {return assetHost.replace("%d",i); });
}
loader._url = function(path) {
var u = this.base || "", f=this.filter;
u = u + path;
if (f) {
u = u.replace(new RegExp(f.searchExp), f.replaceStr);
}
if (loader.assetHosts && loader.assetHosts.length > 0) {
this.assetCounter = this.assetCounter || 0;
if (this.assetCounter > this.assetHosts.length - 1) {
this.assetCounter = 0;
}
u = loader.assetHosts[this.assetCounter] + u;
this.assetCounter++;
}
return u;
};
loader.require(...);
//...
Code is somewhat dirty and a kind of monkey patch, but works fine for me so far!
Posted by yrashk
Today after I was charged 39 EUROs by Litmus for a forgotten trial+ subscription at Paypal I thought about how to handle such situations.
Here’s what I’ve figured out:
- Trial subscriptions are evil. You can easily forget about them and you will be charged for a service you do not really use.
- If you offer a trial subscription to your potential customers, send them an email few days before trial period expiration.
- SaaS expenses for the dormant account are approaching zero (or at least they are not very high), so refund last payment with no question for a customer that have not really used your application or just decided that it was a wrong purchase.
That’s what I’d like to stick with while running Issues Done. We have no refund requests so far and our current trial period is sorta unlimited, so that’s all working for us :)
When we’ll open doors for everyone (not only early adopters) we will probably review our trial/paid terms but we’ll stick to the ideas I’ve outlined above.
P.S. If you use Litmus but decided to cancel your PayPal subscription for some reason — better do this just before next period. It seems that currently Litmus blocks your account just when you cancel your subscription. How funny.
P.P.S. Payment was finally refunded after requesting refund through Paypal