Mobil Mewah

Salah satu sumber Inspirasi.

Wednesday, 31 July 2013

Form Validation in AngularJS

Every Web application will need a sort of validation before user enter submit button. This usually makes a round trip travel of the data to the server. For example user fill form, then submit the form to the server. After checking in server, there were errors and the form sent back to the user with error message for the user to fix. This give an unnecessary round trip request to the application server. In AngularJS, we minimize the roundtrip request to the server, because AngularJS tend to be Ajax application with REST api backend. We validate the form input from the user before submitted to the server. But remember, we cannot depends on client...

Monday, 29 July 2013

VIM Editor for productive programmer

If you are in linux world and do some basic hacks, the command line you will have by default will be Vi . Vi Editor There are some command line which more extensible and many plugin, called VIM. This editor not just text editor. In first attempt you will see this VIM application is only simple notepad editor in windows. This is the basic VIM without any plugin loaded. You will like VIM later on. What a programmer want is of course some smart...

Tooltip on Twitter Bootstrap

Just now I managed to use Tooltip on Twitter Bootstrap theme for my website. I follow just the template in the example     <a href="#" rel="tooltip" title="first tooltip">hover over me</a> But nothing happend as expected. All the file included there, the bootstrap.js and the bootstrap.css with complete feature in it. Check inside the bootstrap.css, there are entry for tooltip class. Also in the bootstrap.js there are handler for Tooltip. Searching around via google, i found out that Bootstrap ToolTip feature cannot be used just like that, you need to add some invocation in the head, when document.ready function. Here...

Sunday, 28 July 2013

How to use syntax Highlighter in blogger

If you are a Developer and do blogging and post your code inside your blog, you want to have it display nicely and also it will help others see your post with smiling face. There are some utility for this, called syntax highlighter. We can use it in blogger, just insert some javascript in your HTML Head in your blogger template. The code base on JavaScript and almost every blog I found use it. Here are the code to add : SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.all(); The main file is the shCore.css , shCore.js Then in your code just add <pre class="brush: js"></pre> And make sure the javascript...

Improve web application loading

So you have a web application, and it contains HTML in it. The size for each page around 300kb or some have 800kb .Whatever the size your application server generate dynamically, it needs time to load, consume network bandwidth in server, memory usage in server, also consume resource in routers, firewalls, client modem, client CPU and memory and so on. You can say for client is not to big. They have cache locally , every web browser now have local cache. But still the browser need to check with the web server if there are any change in the content before load it from the cache. It still consume resource. Now shift to the server point of...

Saturday, 27 July 2013

Angular JS for Single Page Application

Recently I came up to see a front end framework , which many of them in the net you can find. The reason for that is i need a framework to build a web application with ajax technology for front end and also backend with ease. Then i find many of the framework and learn some of them. I found BackboneJS is interesting, but many coding with MVC framework type coding. Then i also hear AngularJS which developed by google developer there, obviously by many smart people. AngularJS also provide MVC standart, but they said in their documentation that AngularJS is MV* type of framework. And after reading many resources in the web and a Book,...

Page 1 of 2512345Next
Twitter Delicious Facebook Digg Stumbleupon Favorites More