I started to love Visual Studio 2013
I started to use Visual Studio 2013 for some new projects. I found there are a number of new features make our life easier, such as displaying the number of references for each class and method.
Those small features help us to build the applications easier.
Check contains a string
In PHP, there is not a simple function similar with C#, such as '"michael".contains("mich")'. However, you can use strpos which is to find the position of the first occurrence of a substring in a string. because if it cannot fund a substring in a string, it will return false. Thus, if it doesn't return false, therefore the substring is existed.
PHP
strpos($address['name'], 'michael')!==false |
The support for Windows Server 2003 will be ended soon
Source:Open Clip Art Using Under Public Domain Attribution
This year, Microsoft ended the official support for Windows XP. Today I got a notification from Microsoft, Windows Server 2003 will be ended soon, the official data is 15 July 2015. That is a server product. I think that is essential to have a update support, such as the security packs. That is a time to upgarde!
Customize a shipment method in Virtuemart
Source:Open Clip Art Using Under Public Domain Attribution
The shipment plugins can configured by zip code to make the shipment method only available within a range of zip code. But not every country has zip code. So, I need to customize the shipment plugin.
To do this customization, I need to put my own code in:
PHP
protected function checkConditions ($cart, $method, $cart_prices) { |
In my case, I need to check values in $address.
How to open eps file by using Opensource software
I got an .eps file. I know I tried to use GIMP for this purpose. But it doesn't work. Finally, I found an opensoure software, scribus. It can open .eps file and save it into svg. Finally, I can use Inkspace to edit it.
I found scribus is a kind of Opensource alternative for InDesign. That is quite useful.