Wednesday, October 30, 2013
AngularJS ng-option with IE8
IE always make our life a bit challenging. especially with AngularJS ng-option, it won't refresh the options unless we trigger it by modify the options content.
I guess this is the rendering issue in IE8, it try to compare the reference instead of the value.
Here is the code snippet if you need it.
Friday, October 18, 2013
AntiXSS for Web API
Most people forget to protect their site from XSS attack.
They simply accepting the fact that the smart javascript libary (AngularJS) will protect them by escaping the json characters.
But how about your legacy site, it still allow your XSS script to harm innocent user.
Unfortunately AntiXSS library doesn't protect you with Double open angle brackets which can pass this script in especially if the client use firefox.
Here is the complete snippets
They simply accepting the fact that the smart javascript libary (AngularJS) will protect them by escaping the json characters.
But how about your legacy site, it still allow your XSS script to harm innocent user.
Unfortunately AntiXSS library doesn't protect you with Double open angle brackets which can pass this script in especially if the client use firefox.
Here is the complete snippets
Thursday, October 17, 2013
AngularJS Placeholder for IE8/9 + Validation
After 5 hours looking how to fix IE8 bug with placeholder and required attribute,
I manage to find the problem and the solution.
The key problem is that our $formatter is executed before the model binder finish loading.
which caused the placeholder to be applied as a value.
You can guess, this lead to by passing your required validation.
So the key solution is to let the model binder finish their work first and then we do watermark of our control.
Key of the day : $timeout
Feel free to see the whole angular placeholder from my gist
https://gist.github.com/kkurni/7018564
I manage to find the problem and the solution.
The key problem is that our $formatter is executed before the model binder finish loading.
which caused the placeholder to be applied as a value.
You can guess, this lead to by passing your required validation.
So the key solution is to let the model binder finish their work first and then we do watermark of our control.
Key of the day : $timeout
Feel free to see the whole angular placeholder from my gist
https://gist.github.com/kkurni/7018564
Wednesday, October 16, 2013
Telerik Icenium first impression
An evolution of mobile development trends will demand cross development platform.
Goodies
There are heaps of new technology out there which make this idea close to reality.
Besides PhoneGap, Titanium, Monotouch, Today I will share my first impression with Telerik Icenium.
What is Icenium ?
A Platform for Hybrid Mobile Development which includes IDE, Simulator, Debugging Tools and Publishing.
IDEs
- Icenium Graphite - Windows IDE
- Icenium Mist - Cloud IDE
- Visual Studio Extension
First Impression
This new platform sound promising and it definitely make development easier and cheaper to maintain.
However there are some minor limitation which may not effect your decision to start using Icenium such as Icenium Mist which is their cloud IDE is still buggy.
This is nice to have gimmick but mostly developer will prefer to work on their own local IDE. It asked me to wait for compiling the code which should be expected to be quicker overtime.
Sample code
Here are my sample code if you want to have a quick look
Goodies
I love their idea to quick deploy to IOS device.
They use QR Code to wrap the link and will deploy into icenium ion container.
Saturday, October 05, 2013
Podcast project
Here is my podcast project dedicated for my lovely church.
Features :
* Searchable through ITunes
* Embedded player
* Fully CMS Website
Features :
* Searchable through ITunes
* Embedded player
* Fully CMS Website
Wednesday, October 02, 2013
Face detection using R
I just started to use cool statistic programming language tool called R.
Here is the example to do face detection.
https://gist.github.com/kkurni/6789379
The tricky part is how do you manage your memory for big processing data.
Suddenly my machine become very slow to me.
I will laverage AWS or google cloud machine for my dev machine
Here is the example to do face detection.
https://gist.github.com/kkurni/6789379
The tricky part is how do you manage your memory for big processing data.
Suddenly my machine become very slow to me.
I will laverage AWS or google cloud machine for my dev machine
Subscribe to:
Posts (Atom)