Mountain Lion (10.8) has three main difference compared to Lion (10.7):
- XCode 4.4 does not install Command Line Tools by default
- X11 isn't available anymore
- The installed version of OpenSSL has some bugs
| Disclaimer: I have not run these queries against any database and the syntax is in pure SQL so adjust as it fits and ignore typos | |
| Create a table like this. | |
| CREATE TABLE words ( | |
| id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, | |
| group INT NOT NULL, | |
| word VARCHAR(100) NOT NULL, | |
| ); |
| #!/usr/bin/python | |
| # Raja Selvaraj <rajajs at gmail> | |
| """ | |
| Demonstrate use of pymongo to connect to a mongodb database on a hosted server, | |
| specifically mongolab | |
| """ | |
| # Use a database already created on mongolab |
| import java.io.IOException; | |
| import java.io.StringReader; | |
| import java.io.StringWriter; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import org.dojotoolkit.json.JSONParser; | |
| import org.dojotoolkit.json.JSONSerializer; | |
| import org.dojotoolkit.rt.v8.V8Exception; | |
| import org.dojotoolkit.rt.v8.V8JavaBridge; |