Enhance Yii sessions

Comments

Launch demo of our GXC-CMS

Hôm qua, sau một hồi vật vã với shared host Hostgator (Còn mất tiền vì ông Dreamhost trước đó nữa), cuối cùng mình cũng set up xong bản demo cho cái cms. Phew….Nó đây :

http://www.gxccms.com 

Trang frontend vẫn chưa show được nhiều tính năng của CMS, các bạn cứ tham khảo và xem bên backend nữa nhé. Có thời gian, mình sẽ làm lại trang demo.

Xong phần demo này, mình sẽ tiếp tục viết docs về cấu trúc cms hiện tại, cách tạo một layout mới, cách tạo một block mới để gắn vào layout….Các bạn cứ vọc trước đi nhé, và nếu có ý kiến phản hồi gì thì cứ liên hệ với tụi mình. 

[ENGLISH]

Yesteday, after a long crazy time with a new shared host Hostgator ( and lost money for Dreamhost discoung account :( ), I’ve finally done with the demo of our CMS. And the demo link is : 

http://www.gxccms.com 

The frontend demo doesn’t show much features of the cms, you guys just play around with it and the Backend zone. Feel free to contact us if you have any problems/suggestions. 

I will continue to write docs of cms structure, how to create new layout, blocks,…! 

Have a nice day and happy coding! ^^ 

Comments

Open source Yii CMS

Today, I and my friend decide to Open source our CMS written on Yii Framework. We move the code to Github. You can find it here :

https://github.com/nganhtuan63/GXC-CMS

We are still making the document for it and setting up a sample project. We love to have your ideas/suggestions/feedback about the CMS. It’s will be great if you can join us to make it better.

[Vietnamese]

Hôm nay, nhóm mình quyết định open source CMS viết trên framework Yii. Code được đặt trên Github, các bạn có thể vào link sau để xem :

https://github.com/nganhtuan63/GXC-CMS

Tụi mình vẫn còn đang viết cái document để bắt đầu và đang làm một project mẫu. Tụi mình hoan nghênh tất cả các ý kiến khen/chê cho CMS. Hy vọng các bạn sẽ thích và có thể cùng tham gia dự án Open Source này.

Happy coding! 

Comments

How to change default Controller in Yii

Để thay đổi controller mặc định trong Yii, bạn có thể thêm thông số sau vào file config/main.php .

‘defaultController’=>’controllername’ ( without Controller )

[ENGLISH]

To change default controller in Yii, you can add this param to the config/main.php file.

‘defaultController’=>’controllername’ ( without Controller )

Happy Coding guy! 

Comments

How to brainstorm for a website idea ?

Trước tiên bạn cần có một file note lại những idea hàng ngày của bạn, song song bên cạnh đó là một file note những băn khoăn, những vấn đề hàng ngày của bạn. Hãy nhớ siêng cập nhật hàng ngày những thông tin trên, bạn sẽ có được rất nhiều idea hay để bắt đầu. 

Bên cạnh đó, một ý tưởng hay phải là một ý tưởng có thể giúp cho bạn một cách trực tiếp, giải quyết được vấn đề của bạn. Đó là điều mấu chốt.

[ENGLISH]

At first, you need a note file that you will write down all your daily ideas. Besides it, you need to have another note file that lists all your daily problems, what you want to change, modify. From these 2 files, you will a lot of great ideas.

Besides, a good idea is an idea that you must work for you first. Try to solve your problems first mate.

Comments

Dogsly Iphone app - What does it means to me ?

Hôm nay đọc được thông tin về app : Dogsly trên Iphone, một app dạng như Instagram nhưng dành chuyên chụp ảnh các chú dog. Một chút vui và một chút vấn vương. Vui vì có người giống ý tưởng với mình ( Project Petzzie.com )  và đã làm nó “come to real” và một chút “vấn vương” rằng mình lại không phải là người làm ra nó. Nhưng không có gì phải nuối tiếc vì còn có quá nhiều projects cần làm và mình đều hài lòng với những projects hiện tại. Đó cũng là niềm hạnh phúc của mình lúc này. 

Có một điều rút ra: ít nhất thời điểm này có 2 project cùng với ý tưởng của mình và cũng đã có những người tham gia làm nó. Cho nên nếu bạn có một ý tưởng và bạn cảm thấy tự tin về điều đó thì các bạn cứ mạnh dạn “bắt tay” vào làm. Đừng để những người khác làm bạn nản chí hay bàn ra. Thường phải có một lý do nhất định/chính đáng nên bạn mới có được ý tưởng đó ( Môi trường, hoàn cảnh xã hội, nhu cầu bản thân, kiến thức chung và chuyên môn của bạn ) . Mọi điều hay ho nhất đều khởi nguồn từ một ý tưởng! It’s just a long but meaningful way! ^^

[ENGLISH]

Today i read a news about Dogsly, an Iphone app like Instagram but for Dogs photos only. I feel a little bit happy and lingering. “Happy” ‘s because at least, my idea has come real and lingering is due to I am not the one to make that app. But there’s no thing to regret because I am having too many projects to work on and I completely feel satisfy with them. That’s my happiness right now.

One thing I learned: There are surely 2 projects that have the same ideas with me and someone’s  made them. So, if you have an idea, don’t be afraid to make it. It will be OK. Don’t let others make you down and don’t care about their thoughts. You have your own reason ( Enviroment, Social, Self demand, General and your own domain knowledge ). Every cool things start with just an “idea”! It’s just a long but meaningful way! ^^

Comments

http://www.yiiframework.com/wiki/227/guidelines-for-good-schema-design/

Comments

Yii CActiveRecord Performance and Optimize

Trong source GXC CMS hiện vẫn sử dụng nhiều CActiveRecord để làm việc với Database. Từ trước đến nay vẫn băn khoăn về việc sử dụng CActiveRecord hay DAO và cái nào sẽ cho performance tốt hơn. Hôm nay ngồi tìm tham khảo thì thấy có link này :

http://www.sheldmandu.com/php/php-mvc-frameworks/yii-dao-vs-active-record-performance

Nói chung, nếu sử dụng DAO thì nhanh gấp đôi CActiveRecord nhưng khi đã set cache cho  schemaCachingDuration thì kết quả sử dụng cả 2 gần ngang nhau. Nên tạm thời quyết định sẽ vẫn tiếp tục “heavy use” thằng CActiveRecord và kết hợp với Caching. Có thời gian sẽ tham khảo và tìm cách chuyển qua DAO nếu được.

[ENGLISH]

When I developed my GXC CMS v1.0, I used a lot of CActiveRecord to work with Database. Until now, I still wonder about the performance between CActiveRecord and DAO and which will deliver better performance. Today, I found a link at : 

http://www.sheldmandu.com/php/php-mvc-frameworks/yii-dao-vs-active-record-performance

In general, DAO is x2 faster than CActiveRecord but when setting cache schemaCachingDuration for CActiveRecord, the results are almost the same. So for now, I decided to continue “heavy use” CActiveRecord with Caching implement. When having time, I will learn more and transfer my CMS to DAO if possible.

Have a nice day you guys and Happy Coding! ^^ 

Comments

Heavy Web Optimization – Front-end Side

Bạn mình : Võ Duy Tuấn, chủ nhân của  BlogHocTap có làm một seminar về các kỹ thuật tối ưu hoá phía Frontend. Các thủ thuật rất hay và mình cũng học hỏi được rất nhiều. Các bạn tham khảo qua slide dưới nhé! Chúc mọi người một ngày vui 

[ENGLISH]

My friend : Võ Duy Tuấn from BlogHocTap  has just made a seminar for front end optimization. It is very useful and I’ve learned a lot of optimize techniques from his seminar. Won’t waste your time anymore, check out his slide below :

Comments

my DRUM - Roland V-Drum TD-4

my DRUM - Roland V-Drum TD-4

Comments