I, Kiet Tran

PHP Session Locks – How to Prevent Blocking Requests

Reference from: http://konrness.com/php5/how-to-prevent-blocking-php-requests/ — Many people are aware that modern browsers limit the number of concurrent connections to a specific domain to between 4 or 6. This means that if your web page loads dozens of asset files (js, images, css) from the same domain they will be queued up to not exceed this limit. This same problem can happen, but even worse, when your page needs to make several requests to PHP scripts that use sessions. Problem PHP writes its […]

56 total views, 1 views today

Read more

Một số ví dụ đơn giản về new isolate/isolated scope (scope: {…}) của directive trong AngularJS

Một trong những khó khăn cho những ai mới làm quen với AngularJS đó là vấn đề sử dụng new isolate/isolated scope (scope: {…}) của directive. Đối với vấn đề sử dụng loại {scope: true} hoặc {scope: false}, các bạn có thể đọc bài sau để hiểu rõ hơn: Understanding Scopes in Angularjs Bài viết này mình sẽ đề cập 3 loại scope sau: interpolated scope (@) two-way binding scope (=) expression binding scope (&) Mình hi vọng một số […]

138 total views, 1 views today

Read more

Getting Started ES6

Reference from: http://www.2ality.com/2015/08/getting-started-es6.html — This blog post helps you to get started with ECMAScript 6 (ES6): It explains how you can interactively try out ES6. It lists ES6 features that are easy to adopt, along with how those features are coded in ES5. Trying out ECMAScript 6 There are three simple ways to play with ES6: Web browser: use the online Babel REPL, an interactive playground that compiles ES6 to ES5. There is nothing to install with this option. Command line: […]

92 total views, no views today

Read more

Top 10 ES6 Features Every Busy JavaScript Developer Must Know

Reference from: http://webapplog.com/es6/ — I recently went to HTML5 Dev conference in San Francisco. Half of the talks I went to were about ES6 or, as it’s now called officially, ECMAScript2015. I prefer the more succinct ES6 though. This essay will give you a quick introduction to ES6. If you don’t know what is ES6, it’s a new JavaScript implementation. If you’re a busy JavaScript software engineer (and who is not?), then proceed reading to learn the best 10 features of […]

161 total views, 6 views today

Read more

Thiết kế RESTful APIs

Reference from: http://techtalk.vn/thiết-kế-restful-apis.html — Hôm rồi thấy anh bạn share document về RESTful APIs của Shoptify, tự dưng nghĩ đến hình như chưa có bài viết nào bằng tiếng Việt về cách xây dựng RESTful APIs mặc dù vấn đề này đã khá phổ biến. Vậy nên tôi viết bài này, chia sẻ một số best practices mà chúng tôi đã thảo luận và áp dụng khi thiết kế và xây dựng APIs cho sản phẩm của mình. Tại sao API […]

124 total views, 1 views today

Read more

Công cụ front-end được yêu thích của năm 2015

Reference from: http://www.sitepoint.com/front-end-tools-favorite-finds-2015 — We’re just about at the end of 2015 and I’m sure you’d all agree it’s been another year jam-packed with new tools for web design and development. While doing my newsletter I’ve come across lots of interesting things, so I thought it would be cool to summarize some of my favorite finds in a year-end post. Before I begin, I should mention: I can’t necessarily vouch for the quality or security of any of these tools. Just […]

109 total views, 2 views today

Read more

AngularJS Corner – Using promises and $q to handle asynchronous calls

Reference from: http://chariotsolutions.com/blog/post/angularjs-corner-using-promises-q-handle-asynchronous-calls/ — The AngularJS $q service is said to be inspired by Chris Kowal’s Q library (github.com/kriskowal/q). The library’s goal is to allow users to monitor asynchronous progress by providing a “promise” as a return from a call. In AngularJS, the semantics of using a promise are:

A number of Angular services return promises: $http, $interval, $timeout, for example. All promise returns are single objects; you’re expected to research the service itself to find out what it returns. […]

128 total views, no views today

Read more
1 2 3 4