The Travels of Marco Cai

  • Home

  • About

  • Tags

  • Archives

  • Search

[Java Review] 1: The World of Java

Posted on 2018-03-12 | Edited on 2018-03-15 |

The following notes are based on the book: << Head First JAVA >> and video series: 手把手教你用Java基础教程 - 北京尚学堂 - 马士兵

- Java is a interpreted language

After .java is compiled into .class, JVM takes .class as input, one line at a time, translates a line into machine language to have it executed.

(The other kind is complied language, ex. C/C++)

Read more »

Photo Test

Posted on 2018-03-12 |

Photo link Test:

Read more »

[Notes] Mongodb

Posted on 2018-03-09 | Edited on 2018-03-14 |

Below are some self-collected commonly-used commands.

start

1
2
3
4
5
6
7
8
9
10
# run in the background
mongod

# open interactive shell
mongo

# in python
from pymongo import MongoClient
Client = MongoClient()
db = Client[dbname]
Read more »

[Notes] Database

Posted on 2018-03-09 | Edited on 2018-03-14 |

Useful links:

  1. nosql intro:
    http://www.runoob.com/mongodb/nosql.html
  2. Different kinds of databases summaries:
    https://www.jianshu.com/p/107c6b045245
Read more »

[Notes] Mac Command Line

Posted on 2018-03-08 | Edited on 2018-03-14 |

Marking down some commonly used shell command:

Mac 命令行命令

history 显示命令历史列表
[Tab] =命令行自动补全
↑(Ctrl+p) 显示上一条命令
↓(Ctrl+n) 显示下一条命令
clear 清除 shell 提示屏幕
exit 注销
history 显示命令历史
reset 刷新 shell 提示屏幕

Read more »

Hello World

Posted on 2018-03-08 | Edited on 2018-03-10 |

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Read more »

[LeetCode] Challenge log 561

Posted on 2008-04-12 | Edited on 2018-04-12 |
561. Array Partition I
  1. quick sort O(2nlog2n) <= O(20000* (log2+ 100))
  2. ordered array trick O(n + max - min) = O(2n + 20000) <= 40000
Read more »

[LeetCode] Challenge log

Posted on 2008-04-09 | Edited on 2018-04-10 |
.
Read more »
1…1213
Mingxiang Cai

Mingxiang Cai

A learner, a hobbyist.

128 posts
56 tags
© 2019 Mingxiang Cai
0%