Cloud Servers
Recently, I have a lot of clients moved their services to cloud services, they are trying to remove their server rack. That is good for small businesses, they don't need to spend the money to maintain their servers. But the cloud backup storage is relative expensive and that is not very fast to get the data from servers via broadband. Thus, there is still some draw back.
Not found c:\preload\convert.cmd in ThninkPad
My friend brought a ThinkPad SL500 to me. The login password are changed by somethings, that sounds some virus in there. I decided to rebuild the machine. So, I pressed F11 during the startup to enter the recovery center. Then I choose the option to recover the machine with factory setting, I got the message "Not found c:\preload\convert.cmd ". I phoned their helpdesk, I have been told that is because of recovery partition are missing. Thus, the only way to grab a recovery disk from Lenovo.
The reason to use repository pattern
In our AdvGenCMS, we use the repository pattern in the data layer. Inside each repository, there is a LINQ datacontext. We are completely hiding the LINQ from the upper layers. In this way, we can switch to use another ORM technology in the future without other layers. We need to the repositories. That is the reason to use repository pattern
Get your upgrade Windows 8.1 from Windows 8
Today, a friend asked me whether that is good to upgrade from Windows 8 to 8.1. My answer is "Good,please go ahead"! Windows 8.1 is better than Windows 8. At least you will have IE 11 and a "Start" button, although that is a kind of "Windows 8". Moreover, this upgrade is free. I can't think of any reasons to stop that.
IOS Error:'Cannot create an NSPersistentStoreCoordinator with a nil model'
I backed to build my first iOS app again. Today, I got this error:'Cannot create an NSPersistentStoreCoordinator with a nil model'.
Actually, that is easy to fix.
Please make this line of code:
Code
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"[name]" withExtension:@"momd"]; |
The [name] you filled in is same as your model file (.xcdatamodeld).
For example I got a TipRecord.xcdatamodeld then this line should be:
Code
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"TipRecord" withExtension:@"momd"]; |