Asv3's Blog

December 7, 2010

When something not working as expected

Filed under: front-end, general, javascript — asv3 @ 2:15 pm

Was helping an friend on some JavaScript code. was using yui-dom-event and same code was working differently on ie and ff. since I was helping remotely I couldn’t guess more out of it. Finally after 1 day of full calls and chats finally asked him to expose the url. finally figured some html tags were being closed improperly. so moral of the story is, “if your well known library behaving weirdly in different browsers first thing you should look at is, generated html source”.

February 15, 2010

Google IME

Filed under: general — Tags: , , , — asv3 @ 10:57 am

Ever wondered how to key in Indic languages in your applications? which IME is better. By far I found  Google IME , good enough to start with. Once you start typing your word  it will start giving suggestions to you, you can selection options using arrow keys and enter key, if word you intended is not found in the list, you can open the keyboard provided with the suggestions popup and click on the letter you need. Over all this feels comfortable, and productive way of typing indian languages. My experience with Kannada was very good.

But this is windows only, this is the only time I felt bad about have a MAC. but any way I have windows box and home, and life going on, 😉

November 23, 2009

Whole New Approach to HTML Editing

Filed under: front-end, general — Tags: , , , , — asv3 @ 2:50 pm

How much time in a day you spend coding html? How many times unmatched div (any for that matter) tags are frustrated you? Here is a quite promising answers to such problems.

Zen-Coding , yeah Zen-coding, smashingmagazine.com’s Sergey Chikuyonok have come up with exiting, yet promising solution for we web-developer’s delight.

You can turn html:xt>div#header>div#logo+ul#nav>li.item-$*5>a

into

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt; <html xmlns=”http://www.w3.org/1999/xhtml&#8221; xml:lang=”en”> <head> <title></title> <meta http-equiv=”Content-Type” content=”text/html;charset=UTF-8″ /> </head> <body> <div> <div></div> <ul> <li><a href=””></a></li> <li><a href=””></a></li> <li><a href=””></a></li> <li><a href=””></a></li> <li><a href=””></a></li> </ul> </div> </body> </html>

with just snap of a shortcut.

Go ahead and explore @ http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/ or http://code.google.com/p/zen-coding/

September 18, 2009

Object Oriented Javascript

Filed under: general — Tags: , , , , , — asv3 @ 9:35 pm

I keep hearing now a days, OO Javascript is the buzz word, may be the time has come to think that who-ever can implement OO concepts in Javascript rule the front-end development. Is that completely true? I don’t think so, whatever technique people are using to do OO Javascript are outdated techniques in ActionScript. We with ActionScript started using prototype long before even Flash MX 2004 and ActionScript 2 arrived. That was the only way to write manageable code in ActionScript by then.  I remember doing some games using such methods, we used to use #initclip #endinitclip to define ActionScript code that need to be executed before MovieClip is initialized. All done, but it’s OO Javascript creating a wave now in Front-End development. But I can say it’s time for us to do some thing interesting with JavaScript, when every body telling the OO JS is cool, that should have some thing super cool in it. Please join us in exploring super cool features on JavaScript in coming days.

September 17, 2009

Finally Succeeded with posting code sample with colors

Filed under: general — Tags: , , , — asv3 @ 11:04 pm

I did Google around the web for figuring out how to post the code sample with color highlighting enabled in my blog. Tried many times without much success, finally before I got frustrated things opened it self. I remember doing some blog thing using Live Writer, downloaded it, copied my code from notepad++ to winword as HTML/RTF, pasted from WinWord to writer with paste special, selecting keep formatting, every thing working fine. Here is on sample.

var tmp:String="ravi kumar anantha";

Blog at WordPress.com.