Warranty Cost
When you buy a new server, please do not just consider their price tag. Please also take Warranty Cost and what kinds of support the hardware provider can support. For the server, you won't use it just for a year. You must need to extend the warranty. Moreover, the server need to be always on, we need to consider the support, whether they can come on-site as soon as possible. Actually, those terms are more important than purchase price of server.
Example Codes for Bootstrap - BootSnipp
As you know, I am learning about Bootstrap recently. I read their tutorial, that is great! I learnt a lot. Moreover, I really need to see some examples. I found a very good website for this purpose, BootSnipp. There are a lot of example design elements using Bootstrap, including all essential elements to build a website, such as Panel Table and Accordion menu. That is very very useful!
Memory plays a more important role than before
I am using PHP more than 10 years now. In the old time, PHP is a very light weighted language. This is just a interpreted language. Nowadays, many new features are introduced in PHP world, such as CSSLESS and object-oriented. They required more memory and CPU processing power. For CSSLESS, this involved a compiler too! First times compiling, that required a lot of memory. Thus, if you build a PHP website, I suggest at least you have 512MB(Well, comparing in windows side, that is not much at all).
b2evolution Further Performance Tuning
I have upgraded my blog from b2evolution 3.x to 5.0.7. I have experienced a lot of performance issues. I did some performance tuning. Maybe they are useful for you. Firstly, I cleaned all unpublished comments. That makes the database much smaller and faster to run. Moreover, I went to System->General, and unchecked Log hits for every public page. That save the execution time for each page. Then I deleted all hit logs in database. For the same reason, I wish the database to be smaller. These information is not very useful. I have other analytically software to track the visitor count. I wish those tips can help you have a better b2evolution.
Dynamically Create an instance of class in code
In C#, you can create an instance of class dynamically. For example, you can create an instance of class according to database values, rather than hard coded.
You just need to use reflection.
Code
ObjectHandle obj = Activator.CreateInstance(AssemblyName,className); | |
Controller = (IApp) obj.Unwrap(); |
Please note that, Assembly Name is without ".dll", such as "AdvgenContact.App.WPF", and the class name need to be full qualified, for example, "AdvgenContact.App.WPF.MainApp".
If you wish to know more, please check out our open source project, AdvgenContact.

