HNHacker News
TopNewBestAskShowJobs

lautis

69 karma · joined March 4, 2010

submissionscomments
lautis··on Rails 3.1 Asset Pipeline in the Real World
Rails 3.1 RC release blog point has good pointers on what has changed.

http://weblog.rubyonrails.org/2011/5/22/rails-3-1-release-ca...

lautis··on Rails 3.1 Asset Pipeline in the Real World
You're unfortunately correct. This worked initially fine for us, as all resources were served through CDN. However, when images were changed and deployed the results weren't expected.

ERB helpers seem to be the only way currently.

lautis··on HTML Email Boilerplate
HTML email is like violence: if it isn't working, you're not using enough of it.
lautis··on JSON: The JavaScript subset that isn't

  > {"JSON":"rocks!"}
I don't think this is such a good point. While the example is not a valid expression, it is a perfectly good JS value/statement, like (almost) all other JSON. Wikipedia might go a bit too far in saying that all JSON formatted text is legal JS code, but (IMHO) it still is a perfectly good subset.

The unicode part is a clear error and should be fixed.

lautis··on Techniques To Simplify Sign-Ups and Log-Ins
That's why you should use HTML5 autofocus attribute (perhaps with a JS fallback).

http://www.whatwg.org/specs/web-apps/current-work/multipage/...

lautis··on [dead]
"Elevated error rates on Twitter.com" – http://status.twitter.com/
lautis··on Fructose: compile Ruby into PHP
It won't work.

First, HipHop doesn't support create_function, which is used in the example.

Second, feature mismatch between Ruby and PHP will make efficient compilation quite hard and most likely be far from optimal. The languages doesn't seem to be very easily optimizable either.

HipHop isn't a silver bullet either: sometimes it seems to be faster than cached PHP bytecode, but not always.

lautis··on Locale
Locale sounds pretty sweet.

I wish my iPhone would be able to do this too, but it is probably a bit too much of configuration for Steve. Also, depending on your configuration, it could lead in breaking the semantics of the physical ringer switch.

For Mac OS X, there is an app which does pretty much what Locale does: MarcoPolo. I found it very useful when I needed to change SMTP server based on where I was.

lautis··on Emscripten (LLVM-to-JavaScript compiler) 1.0
If we wanted to have LLVM-based native clients, Emscripten would definitely be needed.

Distributing binaries isn't feasible as they aren't portable. Chrome would like to address this by distributing LLVM bitcode[1] and then compile this to native binary using LLVM. Portable Native Clients were introduced as an idea one year ago, but AFAIK there hasn't been much development, mostly because LLVM itself isn't very portable.

If native clients would be the path for future web apps, we can't reasonably expect the whole world to switch to LLVM in one night. There would have to be some fallback. As both Portable Native Clients and Emscripten work on LLVM bitcode, Emscripten would be the natural choice.

[1] LLVM's name for their intermediate language, low-level bytecode

lautis··on SaaS for US customers but located offshore
PayPal can be used internationally, but it has some caveats.

Simple recurring billing works quite well, except that you have no control over the subscription. Only thing you can do is to cancel it via PayPal interface. Multiple plans become quickly painful.

There's also Adaptive Payments API, which is available for non-US companies. PayPal doesn't really trust you: subscriptions are limited to one year in length, but you have the control of when and how much is billed (within limits of the "preapproval"). Adaptive Payments API is quite painful to use and is challenging from UX point of view. It's probably cheaper to incorporate in the US and use some other merchant gateway than to implement PayPal Adaptive Payments in your software.

lautis··on [dead]
"Forced out of Apple" sounds a bit harsh as the article claims that Ive wants to move back to UK.
lautis··on Don’t be fooled. 24-bit will not fix computer audio
Digital audio has had the capability to reach the limits of human hearing, this capability has been rarely used. The main problem is, as the article pointed out, that consumers prefer convenience over quality. Making records sound "louder" makes them more suitable for playback in non-ideal environments.

While 24-bit audio won't directly help with bad mastering practices, it might indirectly encourage producing of records with higher dynamic range. And, 24-bits should also be enough to reach limits of human hearing in dynamic range, although I personally don't feel the need of reaching the threshold of pain.

lautis··on Poll: How do you bill recurring payments?
We use PayPal Adaptive Payments. It's far from perfect: all paying customers must have a PayPal account and (in Europe) payments can be set up only for a year in advance. The term "preapproval" is also likely to frighten some customers.

Adaptive Payments was chosen as the standard recurring billing API doesn't allow us to automatically manage subscriptions, which becomes an issue if you have multiple plans. However, we had to implement billing scheduling ourselves. PayPal was for us the only option which didn't require us to store CC information on our servers.

← PreviousPage 2 of 2