Skip to main content

Posts

Showing posts from 2014

7 Lợi ích của việc học nhóm

1. Giải pháp cho tính cao su Hầu hết các nhóm đều có quy ước về thời gian và địa điểm họp mặt hay làm việc từ trước và các thành viên tham gia đều đồng ý chấp hành khi tham gia nhóm. Nên nếu bạn là một thành viên trong nhóm, ít nhiều bạn sẽ cảm thấy xấu hổ khi lỡ một buổi họp nhóm như vậy. Nói về việc học một mình, thường thì bạn sẽ có xu hướng thế nào? Rất nhiều sinh viên không giữ được thói quen học đều đặn thường xuyên mà hay trì hoãn việc ôn bài cho tới buổi tối trước hôm đi thi. Vậy nên, nếu bạn là một người hay thích trì hoãn và cao su thì nên học theo nhóm, đấy là một giải pháp tốt. 2. Học nhanh hơn Khi làm bài tập cùng nhau, các sinh viên trong nhóm học thường sẽ học nhanh hơn là các sinh viên làm bài tập một mình. Ví dụ, đối với bạn thì thỉnh thoảng bạn sẽ thấy sẽ có vài phần của giáo trình rất khó hiểu, bạn còn tưởng nó hầu như là chẳng liên quan gì đến cái môn học của bạn nữa. Thế nhưng lại có nhưng sinh viên nắm rất rõ những phần như vậy và hiểu tại sao phần đó buộc

How to use composer with PHP, Yii framework

  Introduction: Some PHP components is installed using composer, like every other dependency framework. You can reference the page:   https://packagist.org/  . This page contains a lot of useful PHP repositories, libraries. The benefits of using composer are: When we create a library which depends on another libraries(of other developer), we of course do not want to copy all these libraries into our project(do not do that, they are not yours). We might want our project(library) to be condense, simple to use and always up-to-date. --> Therefore, we will create a file, which presents that our library is depending on some other guys... Our library users might want a small command to download everything they need, including our library. One command and everything is setup. User want the latest version of our library If you are a developer, how to install libaries using composer? First, lets imagine that your project need some external libraries(this is the fact, not

Dịch cuốn Founders At Work - phần mở đầu

Foreword   Vận động viên chạy nước rút chắc chắn phải phải trải qua giai đoạn chạy cấp tốc nhất và giai đoạn chậm lại một chút cho phần còn lại của cuộc đua. Những người thắng cuộc là những người thường chậm lại ít nhất. Đó là cách mà hầu hết các startup làm. Những giai đoạn sớm nhất là những giai đoạn mà productive(năng suất) nhất. Đó là khi mà họ có những ý tưởng thực sự lớn. Thử tưởng tượng xem Apple trong như thế nào khi mà 100% nhân công của họ chỉ là Steve Jobs và Steve Wozniak.   Điều đáng chú ý về pha này đó là nó hoàn toàn khác hẳn với hầu hết các ý tưởng của mọi người về việc một doanh nghiệp sẽ trông như thế nào. Nếu mà bạn nhòm vào đầu mấy ông đang tưởng tượng xem business nó thế nào thì đa số là bạn sẽ thấy hình ảnh mọi người mặc áo vét, ngồi thành bàn tròn mặt trông rất căng thẳng, dùng Powerpoint, và họ mang những bản báo cáo dầy cộp cho người khác đọc. Giai đoạn sớm của các startups lại hoàn toàn ngược lại, mà hơn nữa lại còn là bộ phận productive nhất trong toàn bộ

Setup splunk for virtual machine using Vagrant and Ansible

Splunk is a great tool for collecting and indexing data in any kind(log files, changes, tickets, scripts…) from any sources (sensors, networks, databases, smartphones,..( Then creating index for data which then support us to analyse data or search data in the way we like it. We want to try installing Splunk on Virtual environment in order to test, try, study… And with Vagrant&Ansible we can easily save our virtual machine configuration for next time use(in case my virtual machine was broken). There is already Splunkbox by Phips on githubs for simply installing:  https://github.com/phips/splunkbox 1.Download and install Virtual Box (You need a Virtual machine provider for Vagrant(Virtualbox is prefered)) https://www.virtualbox.org/wiki/Downloads 2. Download and install Vagrant   http://www.vagrantup.com/downloads 3. Download and install Ansible   http://docs.ansible.com/intro_installation.html   For MAC:  https://devopsu.com/guides/ansible-mac-osx.html

Server-side HTML vs. JS Widgets vs. Single-Page Web Apps

When I was deciding which architecture could fit our start up service, I found that API-centric architecture is very efficient. However, it has disadvantages as well, so, finally I can find what should I depend on to choose. Here is the content of pamela fox's blog  At the recent  GOTO Chicago conference , I gave a talk on  "Frontend Architectures: from the prehistoric to the Post-modern."  In just my first 10 months at Coursera, I've experienced the joys and woes of many different frontend architectures, and I wanted to share what I learnt. I detail everything in  the slides , but I'll summarize my thoughts here as well. How do you pick an architecture? We could make our decision by just checking Twitter and seeing what all the cool kids are talking about, but uh, let's pretend that we're more scientific about it than that, and figure out whats important to us as web developers. To start off with, here are a few things that users care a lot about

Install MySQL for python on Mac OS 10.9 with XAMPP

Assume that you already have Python installed. 1. Install XAMPP for MAC http://sourceforge.net/projects/xampp/files/ As it is a dmg file, it should be easy to be installed. 2. Now you need to install MySQLdb package for Python a. Download the lastest module of MySQLdb here : http://sourceforge.net/projects/mysql-python/files/latest/download b. Extract it to your prefered location. Notice: You might need to change site.cfg according to your mysql_config path. See the next step c. Setup your path Because you need to setup /bin and /lib folder of XAMPP's MySQL. So, let prepare your $PATH variable. > Edit your ~/.bash_profile ( or ~/.profile) by adding the following lines:  export DYLD_LIBRARY_PATH=/Applications/XAMPP/xamppfiles/lib export PATH=/Applications/XAMPP/xamppfiles/bin/:$PATH Notice: if you are not using XAMPP, you should edit above PATH by your mysql equivalent path. for example /usr/local/mysql/lib and /usr/local/mysql/bin Notice: About site.cfg(in y