Một vài lưu ý khi cài đặt php7 (php-fpm) từ source code trên linux (fedora)

Giả sử bạn muốn cài đặt trên fedora, php7, php-fpm với nginx là proxy hứng request đẩy qua cho php xử lý (thông qua php-fpm). Khi cài đặt từ source code có thể bạn sẽ gặp những vấn đề sau: Thiếu các thư viện khi chạy lệnh ./congigure Chỉ định đường dẫn đến thư mục sẽ cài php mà bạn muốn( hữu ích khi bạn muốn cài nhiều phiên bản php trên môi trường làm việc của bạn)....

March 1, 2016 · 2 min · longka

Laravel 5 BindingResolutionException in Container.php line 827

Error: [caption id=“attachment_248” align=“aligncenter” width=“300”] laravel-ioc-binding-exception[/caption] Context that caused this eror [caption id=“attachment_249” align=“aligncenter” width=“300”] test controller[/caption] [caption id=“attachment_250” align=“aligncenter” width=“300”] foo service with php primitive type[/caption] When working with laravel 5, have you ever ask yourself that how** Laravel IOC** work, how **Laravel IOC** can handle concrete class binding instead of defining in somewhere (for laravel in Service providers). Basically, if you inject a concrete class to another class, it will automatically bind to that class by laravel Container...

January 18, 2016 · 2 min · longka

A diagram to implement realtime server (pubsub model)

A diagram to implement realtime server (pubsub model) [caption id=“attachment_190” align=“aligncenter” width=“300”]realtime app (pubsub model)[/caption] @todo: add more description, demo code...

November 30, 2015 · 1 min · longka

A note about solid Principles (Demo in Symfony2)

Single responsibility ( a class have only one reason to change, do not mix up (mess up) everything in a class) Open for extend, close for modification( move common behavior to interface, flip injection - Uncle Bob) Liskov Substitution Principle, eg: same output format (array , json, specify type of Type- signature must match, preconditions cannot be greater, post conditional at least equal to, exception type must match)....

October 25, 2015 · 1 min · longka

release kunvertor.com beta version

This private project was started long time ago (since july, 2015). Today, I decide to public beta version of kunvertor.com or chuyendoipdf.com In this project, I used: symfony2, mysql as web app nodejs + redis as real-time server gearman as job queue server apache pdfbox to extract text from pdf (http://pdfbox.apache.org/index.html) I will spend more time to write more detail about how to implement this stuff. Now, breath deep and go to sleep ;)...

August 24, 2015 · 1 min · longka