2014年1月24日 星期五

[CakePHP] Pros and Cons of using cakePHP

http://www.bootstrappist.com/archives/to-cakephp-or-not-to-cakephp-should-you-use-it-or-dump-it/

To sum up from the article,

PROS:
  • Shortens dev. time
  • more secured
  • pretty coding
  • widely supported
  • trend (?!) - many people talk about it
CONS:
  • Not for complex issue
  • Not always necessary
  • Not really a "native PHP" training

[Apache + PHP] php_mbstring.dll missing

Wanna install 'Bake' for CakePHP. In cmd, when trying 'bake', an error prompts out like below (with solution included) :


http://aaron1102.pixnet.net/blog/post/51096054-%5B%E6%9E%B6%E7%AB%99%E6%9C%8D%E5%8B%99%5D%E9%A1%AF%E7%A4%BA%E9%81%BA%E5%A4%B1php_mbstring.dll%E7%9A%84%E8%A7%A3%E6%B1%BA%E6%96%B9%E6%A1%88

[Eclipse] Change Default Text File Encoding in Eclipse

Window -> Preferences -> General -> Workspace : Text file encoding

[CakePHP] Better Performance – Speeding Up Your CakePHP Website

http://doctorfox.wordpress.com/2013/08/20/better-performance-speeding-up-your-cakephp-website/

2014年1月22日 星期三

[Project Management] Drupal Case Studies

So, the story begins ... We want a online shopping website but we don't know what framework or tools can catalyze the development progress. The time frame is around 1 to 2 months. WordPress is good for layout process, but not good for customizing for our needs. Custom-made proprietary website likes our old one ... ya it is custom-made but wow, seems much work to do ...

All in a sudden we came up with a question: how about ... Drupal?

Found that several comprehensive project case studies have been put on Drupal, which can be brilliant reference sources for the newbies like us, I recommend this to you also to understand if Drupal suits your project needs.


We have selected some main points to glance through in our preliminary phase, which might help for your decision making if you are in the same situation:
  • Why Drupal was chosen
  • Team Size
  • Time Spent
This is what our rough result found:
  • Drupal should be suitable for more likely the medium or large sized project
  • One of the impressive features for Drupal is taxonomy, which seems more relevant to journal-related, news-related or story-related projects
  • It requires skills and trials for us the Drupal newbies before the "real" development
  • Roughly the projects take about a year or more for a small team size
As seems the findings above do not benefit much for our aim, thus, the idea of using Drupal is ABANDONED in our case.  



[Tomcat] An Introduction to Tomcat Catalina

Just notice that Catalina is very useful tool for taking logs of the server, thus wondering what Catalina in Tomcat is ...

https://www.mulesoft.com/introduction-tomcat-catalina

2014年1月21日 星期二

[ClouSE][EC2] What is ClouSE? What is EC2?

http://www.oblaksoft.com/documentation/

Something relates to MySQL, Cloud, EC2 and storage stuff?

So, what is EC2, more precisely, Amazon EC2?

http://blog.soft.idv.tw/?p=823

  • What is Cloud Computing?
  • -> What is SaaS (Software as a Service)?
  • -> What is PaaS (Platform as a Service)?
  • -> What is IaaS (Infrastructure as a Service)?
  • What is Amazon Web Services (AWS)?
  • -> What is S3 (Simple Storage Service)?
  • -> What is EC2 (Elastic Compute Cloud)?
  • -> What is SQS (Simple Queuing Service)?
  • -> What is VPC (Virtual Private Cloud)?
  • How to get my AWS?


http://blog.soft.idv.tw/?p=824

  • What is VPS (Virtual Private Server) and VM (Virtual Machine)?
  • What are the differences between VPS and VM?
  • What can EC2 do?
  • How to get start with my EC2?
  • How to use my EC2?

[Discussion on Framework] Pros and Cons of using Framework

http://www.1stwebdesigner.com/design/pros-cons-frameworks/

http://themetaq.com/articles/the-pros-and-cons-of-using-a-front-end-framework

Summing-up on using Framework:

PROS

  • Development Efficiency
  • Less Decisions Required
  • More widely Tested
  • Minimized Cost
  • Documentation and Community Support
CONS
  • Less Underneath Skills Trained
  • Less Flexibility
  • Virus-spreading Medium
  • Performance
  • Update Issues / Outdated Issues
  • Collaborations on Customization
BEST solution never exists and BETTER solution depends on the situation. Discuss and know your needs. Stay open-minded in your discussions.

[WordPress] Custom Functionality Plugin for WordPress

Why and How to Create Custom Functionality WordPress Plugin
http://www.onextrapixel.com/2012/06/26/custom-functionality-plugin-for-wordpress-pros-and-cons/

Discussion on WordPress MVC Compliance
http://stackoverflow.com/questions/2857143/is-wordpress-mvc-compliant

MVC Framework Plugin for WordPress
http://wpmvc.org/

2014年1月10日 星期五

[WordPress] Some PHP Code Standards stated by WordPress

http://make.wordpress.org/core/handbook/coding-standards/php/

Some Highlights:

Indentation 
Rule of thumb: Tabs should be used at the beginning of the line for indentation, while spaces can be used mid-line for alignment.
Comma of Array
Note the comma after the last array item
Regex
It’s most convenient to use single-quoted strings for regular expressions 
End of Line / End of File 
Remove trailing whitespace at the end of each line of code. Omitting the closing PHP tag at the end of a file is preferred.
SQL Formatting
$wpdb->prepare() is a method that handles escaping, quoting, and int-casting for SQL queries. 






[Unrelated] Extension Reading on Programming Jargon:
http://www.codinghorror.com/blog/2012/07/new-programming-jargon.html

[Wordpress] Some Code Function References

To interact with Wordpress database using PHP codes:

Insert Post
http://codex.wordpress.org/Function_Reference/wp_insert_post

Set Post Terms ( Tag or Category )
http://codex.wordpress.org/Function_Reference/wp_set_post_terms

Add Post Meta Field Data
(May be needed after added some plugins and would like to be compatible with them)
http://codex.wordpress.org/Function_Reference/add_post_meta

Create Post Category
http://codex.wordpress.org/Function_Reference/wp_create_category

2014年1月9日 星期四

[Version Control] The Art of Commit Messages

http://coenjacobs.me/art-commit-messages/

Compare this two:
  1. “Fixes bug described in #20″
  2. “XYZ_Class test() method visibility to public to fix errors in #20″

[康復路] 試完又試

見了醫生,因為血色素又變低了,醫生想檢查是否「缺鐵」為成因,檢查又檢查…… 感覺有些麻煩……又抽血,又要留樣本…… 令我回想起當日入院的時光,因為一些原因,留樣本只需留一次,免卻留三次的麻煩;現在每天都要留一次,連續三天。每天早上就要跑醫院一趟再上班。 幸好也完成了。 第二次抽血...