HNHacker News
TopNewBestAskShowJobs

sashthebash

227 karma · joined April 18, 2008

https://www.contentful.com
submissionscomments
sashthebash··on Ask HN: Review my startup: Storage Room - A CMS for Mobile Apps
Clickable: http://storageroomapp.com
sashthebash··on Ask HN: Do you encrypt your laptop's hard disk?
I am using Espionage (http://www.taoeffect.com/espionage/) on my Mac. Working great, I wanted to avoid whole-drive encryption for performance reasons and only encrypt what is necessary (my work related files, pictures, videos, etc).
sashthebash··on Google Instant Search Released
The real question is... will this increase or decrease Google's revenue through Adwords on the result pages?

They will for sure show more ads, maybe making chances higher for a user to click an ad, but at least for me, after trying it out a bit, it seems like I focus more on the results themselves when typing, as they change all the time, without giving attention to the ads.

And as already mentioned, long tail searches might be used less often, so you cannot buy cheap uncompetitive ads to drive traffic to your site, you have to use the big keywords that are suggested.

sashthebash··on The Top Idea in Your Mind
This is exactly why dating women is dangerous to your startup success ;).
sashthebash··on Romantic Love: The problem with Western cultures
Indeed.

Nothing really related to Hacker News, but that's one of the reasons why I "love" the site... those great off topic articles that apply to almost everybody and that let you see that there is a world beyond bits and bytes.

sashthebash··on Tokyo Japan Hacker News Meet – Fri 18 June (in 2 days)
I will be in Tokyo in July and beginning of August. Hope you will have another meeting!
sashthebash··on Tell HN: my hack to beat insomnia
Your mind is probably thinking about too many things. You can also try this trick.

I read about a simple technique in a meditation book (the purpose of this was not falling asleep, but it works for me). Close your eyes and start counting with a special technique to infinity.

The trick is to count one number while breathing in... slowly counting in your head until you are done breathing in and when your breath out immediately switch to the next number. There should basically be no moment where you have time to think about anything else besides the numbers. The switch from i to i+1 must be instant. Because if you are leaving gaps your mind starts wandering again.

If you find out that you got distracted start again at 1. Don't cheat.

Just run this JavaScript code in your head the next time (recognize that there are no calls to mind.thinkAboutSomethingElse()!):

___

var i = 1;

while(!body.isSleeping()) {

  body.startBreathingIn('slow');

  mind.thinkAbout(i++);

  body.startBreathingOut('slow');

  mind.thinkAbout(i++);
}

___

sashthebash··on Rethinking Rails 3 Controllers and Routes - PeepCode Blog
I encountered an even bigger problem/limitation while implementing a RESTful API with Rails. It was that it's not easy to follow one of the most important principles of REST (from Wikipedia):

"An important concept in REST is the existence of resources (sources of specific information), each of which is referenced with a global identifier (e.g., a URI in HTTP)."

I do not find the global identifier (URI) in Rails when I just do a "render :xml => @model" or "render :xml => @array". Instead of a global identifier the id of the object is in the representation of the resource.

What is missing are the links between all the resources. When a client fetches a collection it must guess or reconstruct the URIs manually for the individual members. This makes it impossible to change the route generation on the server without breaking the client.

In REST Rails Models are Resources, but Rails Models don't know anything about their global unique id (URL). I wish there would be a way to just say user.uri and I would get something like "http://myservice.com/users/1 or user.path "/users/1". It would be nice if this would be considered when rewriting the Rails router. Maybe the routes should be defined in the model (=resource) itself?!

I tried to implement links between resources in the API I created. You can find some information in documentation at http://wiki.tagcrumbs.com/developers/rest. In my opinion an XML representation of a truly RESTful service should look something like this: http://wiki.tagcrumbs.com/developers/resources/user#examples. Comments are highly appreciated.

sashthebash··on Allan Odgaard's Latest Comments on TextMate 2
I love TextMate and use it daily. But there are many features I am still missing. I am sad there were no updates for such a long time.

I really wish there would be some competition to heat things up. I am not talking about emacs or vi, but another great visual editor for OS X. Maybe Open Source... or maybe a startup could do this. There should be quite some money to be earned.

Or is there something comparable to TextMate that I don't know about?

sashthebash··on Mac OS X 10.6.3 Released
I wish Apple silently included support for new MBPs and will release those things soon. Getting really tired of waiting for new ones.
← PreviousPage 3 of 3