Welcome...



...All those moments will be lost in time, like tears in rain....

- soliloquy from Blade Runner


Bits and bytes do get lost, awash in the rain of data flow that is Internet. They slip away from us, never to found again... some of them will be captured here, many more will not... like tears in rain...



Wednesday, June 5, 2013

Anti forgery token

 Premise is simple - you need token to verify that this is you who is posting to the page and not somebody else posting for you.

 Token is written to the form and to the cookie using HtmlHelper.AntiForgeryToken() helper, and when form is posted, controller will validate the token for the post action that has token validation attribute enabled:
 
[HttpPost]
[ValidateAntiForgeryToken(Salt = Constants.AntiForgeryTokenSalt)]

 There is a great article by Scott Gu about it:

http://weblogs.asp.net/dixin/archive/2010/05/22/anti-forgery-request-recipes-for-asp-net-mvc-and-ajax.aspx


Thursday, May 16, 2013

Star trek t shirt

 This from the Star Trek store:
http://www.cbsstore.com/star-trek-personality-grid-and-picard-is-better-t-shirts/detail.php?p=451621&v=cbs-thebigbangtheory-star-trek

10 reasons by Picard is better than Kirk:

10. Picard is a man of culture.
9. Kirk was scared of a little tribble.
8. Kirk wouldn’t go anywhere alone.
7. Picard looks fantastic in spandex.
6. Picard lasted more seasons than Kirk.
5. Picard doesn’t need hair to feel like a man.
4. Picard’s ship logs contain more syllables per word than Kirk’s.
3. Picard hasn’t contributed to the population explosion.
2. Kirk only worries about his own butt.
1. The Borg only assimilated intelligent life.


I love #1 and #8 :)

Friday, April 26, 2013

Facebook feed dialog cutting description text passed using CSS

If you use Feed Dialog to post to the wall, Facebook will cut off your description.

Looks like this is "by design" :( Dirty word, isn't it?

 You can pass text in a description as much as you want, but Facebook has CSS that squeeze your text into box 72px tall... without "See more..." or anything like that.

 I can understand the box part, but no "See more"? Why not??? It's already there, and I, as a user, want to see the rest... Doesn't make sense.

And here's the bug report:

https://developers.facebook.com/bugs/125436114284682

Friday, April 19, 2013

Responsive design catching on

 Article abotu 10 commercial websites that uses Responsive design:

http://www.business2community.com/online-marketing/10-awesome-examples-of-ecommerce-sites-using-responsive-web-design-0465157

Again, responsive design is not for everyone, but if you are trying to reach widest audience possible, that's something that should be incorporated early on into site (re)design. It does pay off when people are using different devices to come to the site.