Windows Server 2012 hands on
Yesterday, I rented a cloud server from Rackspace. This server installed Windows Server 2012.
This is my first times to use this operation. It is using the similar interface with Windows 8, that sounds a kind of Metro UI and without a "Start" button. I found I need some time to learn, I have spent 10 minutes. I did not find the control panel and IE successfully. Finally, I typed a URL in windows explorer, then I got IE opened.
That is IE 10, which is same as Windows 8 too. Moreover, I found that is much much faster than IE 9.To sum up, that is faster and need time to adapt the new interface!
Online Advertisement cost more than before
I found the cost of traditional Online PPC Advertisement is increasing. That is because more people are using Online PPC Advertisement, therefore more people are getting in the bid of keywords. Well, even I said that costs more, that is much cheaper than other traditional media. I think we need to still work hard on finding a creative way of free advertisement, such as blogging, twitter and facebook. Cutting cost, mates.
Entity Framework sounds better than LINQ to SQL
Recently,I did some researches for Entity Framework and LINQ to SQL. I found Entity Framework sounds better. It got better facilities. It can generate data tables from EDX and if the tables can generate the updated classes from the database. If you are using LINQ to SQL, you need to update manually. Entity Framework sounds a more completed ORM, LINQ to SQL is only a tool to translate the objects into SQL. But I think LINQ to SQL is more lightweight.
ColorBox- Jquery Light Box Plugin
I found a good Jquery Light Box Plugin, ColorBox. I love it, because it supports to load iframe in a light style. That is a better way to load a sub-page rather than using a pop-up windows. It is less annoying. Moreover, that is easy to use, just like this:
Code
$(".iframelink").colorbox({ iframe: true, width: "80%", height: "80%" }); |
Google Web Fonts went strange
I have experienced a virtuemart page went very well in the development environment but after it went live, some fonts in the template went strange. That is because the live environment is https enabled and the template is hard code of the css files of Google Web Fonts in the page:
such as:
Code
<link href='http://fonts.googleapis.com/css?family=Oswald&v1' rel='stylesheet' type='text/css'> |
Well, that is not hard just two lines of PHP codes
Firstly, we should check whether they are in https site
Code
$httporhttps = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; |
Then, we change all font css reference like this:
Code
<link href='<?php echo $httporhttps; ?>fonts.googleapis.com/css?family=Oswald&v1' rel='stylesheet' type='text/css'> |
Finally, the fonts will display correctly