learn some c++ in a hard way.

#include <iostream>
using namespace std;

bool func(char* m)
{
    *m = '4';
    return true;
}

int main()
{
    char c1 = '3';
    cout  << "a" << c1 << func(&c1) << c1 << "b" << endl;

    return 0;
}

just tell me what’s the output of this code.

Posted in 日志 | 17 Comments

嘛无聊的列自己喜欢的东方OST

リーインカーネイション – 蓬莱人形 ~ Dolls in Pseudo Paradise

  • 因为东方脱胎换骨喜欢上的曲子……

少女秘封倶楽部 – 蓮台野夜行~ Ghostly Field Club

53ミニッツの青い海 – 卯酉東海道 ~ Retrospective 53 minutes

大空魔術 ~ Magical Astronomy – 大空魔術 ~ Magical Astronomy

  • 密封组大好き!

六十年目の東方裁判 ~ Fate of Sixty Years – 東方花映塚 ~ Phantasmagoria of Flower View.

  • 大家都喜欢山田

信仰は儚き人間の為に –  核熱造神ヒソウテンソク ~東方非想天則 ORIGINAL SOUND TRACK

  • 非想天则的版本更燃…

恋色マスタースパーク – 東方永夜抄 ~ Imperishable Night.

星の器 〜 Casket of Star – 全人類ノ天楽録 〜東方緋想天 ORIGINAL SOUND TRACK〜 ARRANGE DISC

  • 摸你傻!

感情の摩天楼 ~ Cosmic Mind – 東方星蓮船 ~ Undefined Fantastic Object.

  • 总是想起被莲妈狂虐……为什么星莲船这么难……

幼心地の有頂天 – 全人類ノ天楽録 〜東方緋想天 ORIGINAL SOUND TRACK〜 ORIGINAL DISC

  • 好吧,打倒这里的话没记错应该是全人类的绯想天了……

=-=-=-=-=
Powered by Blogilo

Posted in 日志 | 3 Comments

没题目

上周和 Yue 面基,他大老远从 CMU 这种大乡下跑到我这种大大乡下相当不容易。

周五 LIRR 到了之后于是去我家吃饭,我买了 10 盒咖喱终于派上了用场(按我的味道可以吃53顿的分量……),于是吃了咖喱。

老实讲我没啥吃过的地方,于是我的步调和在中国差不多,就是别人带我去哪吃过于是还是去哪吃。

我大乡下公交巨挫,于是坐车之后还是走了大概两公里就到了海边了。

来这当然是为了

吃龙虾!

吃完之后随便在码头逛了逛,看见天鹅一只。

然后又回去学校了。晚上这家伙又匆匆忙忙的走了……

说好的输入法问题的Sprint被大家都忘了……

=-=-=-=-=
Powered by Blogilo

Posted in 日志 | 1 Comment

Fcitx 4.2.7

All components in this release will depend on fcitx 4.2.7 due to they are
using the new build macro.

Now we have a new template repo for whom want to develop new addon for fcitx:
https://github.com/fcitx/fcitx-templates/tree/master

And for kdevelop user:
Create a new tar.bz2 with this branch, and now you can create fcitx project
with kdevelop.
https://github.com/fcitx/fcitx-templates/tree/kdevelop

fcitx 4.2.7
new feature for user:
* qt im module support per window input context.
* quickphrase add new custom ui editor.
* all pinyin now support stroke.
* add clipboard input support (Ctrl + ; to use it)
* fcitx-diagnose script for diagnose the problem
* new dark skin which can also work for non-composite window manager (though
looks not the same)
* Helping xmodmap user to correct loading ~/.Xmodmap by default
* Bind one input method with specific key.
* Translation update (German, and some spanish).
* Add “up” and “down” to paging key by default
* fcitx-config now will comment out the value which is same as the default
value upon save, so default value can be controlled by upstream fcitx change.
* reload only one addon configuration

new feature for developer:
* Big build system improvement
* remove intltool dependency
* auto-codegen tool  for cross module function.
* add libfcitx-qt, containing dbus stuff and provides custom ui plugin
* architecture.
* candidate window can be overriden to use horizontal / vertical by input
method. (kimpanel need KDE 4.10 to use this feature)
* paging can be override by custom function

bug fix:
* fix for xim restart.
* add more locale to xim by default.
* compatible with lua 5.2
* some other misc bugfix

fcitx-configtool 0.4.6
Add support for new custom configuration ui.

kcm-fcitx 0.4.2
Add support for new custom configuration ui.

fcitx-cloudpinyin 0.3.1
update to support clean quit.

fcitx-m17n 0.2.0
Fix py hide by default bug.

fcitx-rime 0.2.0
re-deploy support

fcitx-sunpinyin 0.4.0
adjust some default configuration for better user experience.

fcitx-unikey 0.2.0
use new custom ui to build macro editor

fcitx-hangul 0.2.1
fix icon path

fcitx-chewing 0.2.0
fix a bug in candidate selection.

fcitx-qt5 0.1.1
fix build and add libfcitx-qt5 for dbus.

此次发布的所有组件都依赖 fcitx 4.2.7,因为使用了新的构建宏。

fcitx 4.2.7
给用户的新功能:
qt 输入法模块支持不同窗口使用不同状态
快速输入添加新的图形化编辑器
所有拼音输入法都支持笔画输入
剪贴板输入支持 (默认按键为 Ctrl + ; )
fcitx-diagnose 脚本用于发现问题
重新制作的 dark 皮肤,无混成状态也能“凑合”使用……
默认将自动加载 ~/.Xmodmap
为单个输入法绑定按键
上下键现在也是默认翻页键了
fcitx-config 现在将和默认值一样的选项注释掉,使得fcitx上游对默认值的修改可以反应给用户。
翻译更新(德语和西班牙语)
fcitx-remote 可以用于设置当前输入法了
可以只重新加载单个插件的配置

给开发者的新功能:
构建系统改进,移除了intltool的依赖,添加了跨模块调用的自动代码生成
添加了 libfcitx-qt,包括 dbus 控制和自定义图形化界面插件的支持
候选词窗口的横纵可以被输入法选择覆盖
翻页可以用自定义函数代替

错误修复:
修复 xim 的重启
添加更多 locale 到 xim 的默认列表
和 lua 5.2 兼容
其他错误修复

fcitx-configtool 0.4.6
添加新的自定义 gui 的支持

kcm-fcitx 0.4.2
添加新的自定义 gui 的支持

fcitx-cloudpinyin 0.3.1
完整退出模块

fcitx-m17n 0.2.0
修复m17n拼音符号被默认隐藏的问题

fcitx-rime 0.2.0
重部署支持(fcitx重新加载配置时进行重新部署)

fcitx-sunpinyin 0.4.0
调整默认选项,去掉掉原来单一的 ing/ign ong/ogn 纠错改成 gn/ng 的纠错。

fcitx-unikey 0.2.0
使用新的自定义ui来实现宏编辑器

fcitx-hangul 0.2.1
修复安装图标路径

fcitx-chewing 0.2.0
修复一个候选词选择的问题

fcitx-qt5 0.1.1
修复编译,以及添加 libfcitx-qt5 (和libfcitx-qt相比只包括dbus部分)

Posted in fcitx development | Tagged , | 9 Comments

一个小故事

上次坐车回来的时候在车站等长途车,发现有一对情侣一副依依不舍的样子,然后我和我女朋友说“嗯,我们不能输给他们”。过了一会,来了辆市内公交车,那对情侣一起上车了。

把我的感动还回来!

=-=-=-=-=
Powered by Blogilo

Posted in 日志 | 5 Comments