作者: MtZero

  • 六月总结

    • 端午节去了澳门,买了一堆吃的。
    • 为唯一一届 SMIE 毕业生拍毕业照。
    • 高考。
    • Apple WWDC Special Event.
    • 老爸生日。
    • 排球队男队纪念照、欢乐赛、男队聚餐暨换届。
    • 广东各地中考。
    • 24号期末考试完毕,晚上和家庭组去扬名吃饭,买了几本书。
    • 次日去了九洲城,买了一堆吃的。
    • 英国脱离欧盟。
    • 开始实训,内容是“智能小车应用与开发”。对比了一下目前各组的成果,产生了一点谜之优越感。
    • 今天又去了九洲城,买了一堆吃的。
  • 又到一年毕业季。

    毕业总是令人伤感的。

    也预祝即将参加高考的师弟师妹们马到成功。

  • 长沙 Day 1

    长沙 Day 1

    原定于 4 月 29 日晚 23 时 50 分发车的 K6624 次列车,在广州站发生大面积晚点的背景下,晚点 3 小时又 10 分钟,终于在 30 号的凌晨三点钟拉响了出发的汽笛。经过 8 个小时的不眠煎熬,我们终于在十一时许到达了长沙火车站。

    【珍爱生命,远离绿车】

    (更多…)

  • 今天终于稍稍得空来写两句话。

    (更多…)

  • 这段时间真是忙得透不过气。

  • 在 Xcode 控制台中输入 EOF

    在终端(Terminal)中,我们可以使用组合键 control + D 来输入一个 EOF,但是此法在 Xcode 控制台中行不通。有两个在控制台输入 EOF 的方法。

    1. 按照顺序按下组合键 control + Q, control + D。
    2. 按下组合键 option + shift + /,此时控制台中会出现字符“¿”,回车即可。
  • Ubuntu 终端管理开机启动项

    编辑 rc.local 脚本:

    sudo vim /etc/rc.local

    若脚本已在 /etc/init.d 中且权限已设置为 755:

    #添加启动项,NN为启动顺序
    sudo update-rc.d ServiceName default NN
    #禁用启动项
    sudo update-rc.d -f ServiceName remove
  • Repost: Mac OS X 下配置 SSH 密钥自动认证登录

    https://g.32ph.com/post/mac-ssh-remote-authorized-key.html

  • Check the types of arguments in python

    def my_abs(x):
        if not isinstance(x, (int, float)):
            raise TypeError('...');
        elif x>0:
            return x;
        else:
            return -x;
  • The Overloading of Operator << and >>

    class String {
    public:
        friend ostream& operator<<(ostream&, const String&);
        friend istream& operator>>(istream&, String&);
        //other members
    private:
        char *str;
    };
    
    ostream& operator<<(ostream& os, const String& str){
        int i=0;
        while (*(str.str+i)!='
    class String {
    public:
    friend ostream& operator<<(ostream&, const String&);
    friend istream& operator>>(istream&, String&);
    //other members
    private:
    char *str;
    };
    ostream& operator<<(ostream& os, const String& str){
    int i=0;
    while (*(str.str+i)!='\0') os<<*(str.str + i++);
    return os;
    }
    istream& operator>>(istream& is, String& str){
    is>>str.str;
    return is;
    }
    ') os<<*(str.str + i++); return os; } istream& operator>>(istream& is, String& str){ is>>str.str; return is; }