The Mac terminal provides a powerful “textutil” command, which can be used to convert .doc files to .txt files directly from the terminal without opening the .doc file.
Here is the command which can be used for the same :
$ textutil -convert txt yourdocfile.doc
Here, the doc file “yourdocfile.doc” will be converted to txt file and a new file “yourdocfile.txt” will be created in the folder with the contents of the doc file.
The CONVERT() function allows you to convert dates in the same way as the CAST() function
mysql> SELECT CONVERT(20041031, DATE);
| CONVERT(20041031, DATE) |
| 2004–10–31 |
1 row in set (0.00 sec)
It is possible to convert GL point to UITouch point in cocos2D using the following code :
Consider a GL point, glLocation.
CGPoint location = [[CCDirector sharedDirector] convertToUI: glLocation];
// Now location will contain the UITouch point corresponding to GL point, glLocation.