ArchLinux Manjrao i3wm安装中文输入法

After installation of i3wm complete, it’s time for install Chinese input method for ArchLinux. $ sudo pacman -S fcitx fcitx-im fcitx-ui-light fcitx-libpinyin fcitx-sunpinyin $ sudo pacman -S ttf-dejavu adobe-source-han-sans-otc-fonts $ cat .xinitrc ... export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx" ... $ sudo reboot To verify, run fcitx in terminal, check if there is any warns or errors.Then run fcitx-configtool. If there isn’t input methods under “Input Method” tab,run sudo pacman -S fcitx-cloudpinyin fcitx-sunpinyin fcitx-googlepinyin fcitx-libpinyin. ref:http://leetschau.github.io/blog/2014/10/15/084044/……

阅读全文

获取七牛上视频的宽高及提交转码时变形问题

#视频宽高问题 1 通过 访问地址后面增加?avinfo 获取视频信息 2 判断 streams[x][’tags’] 内是否有 rotate 字段 有且等于 90 或270 则表示,外层返回的 宽高是颠倒的,需要 互换使用 #提交转码变形问题 如上面提问 在提交转码,传递转码分辨率宽高时, 若视频信息streams[x]['tags']['rotate']存在宽……

阅读全文

linux下如何杀死僵死的图形化界面

一、图形化窗口杀死: 开一个终端 , 输入 xkill ,然后指到僵死的窗口,点左键。 二、进程杀死 开一个命令终端:可以和grep合用,列举出所需进程号,之后杀死。 $ ps -A $ kill -9 PID https://blog.csdn.net/yumengkk/article/details/8160337……

阅读全文

golang http panic: runtime error: invalid memory address or nil pointer dereference

下面代码将报错,提示panic: runtime error: invalid memory address or nil pointer dereference resp, _ := http.Get(link.ImgUrl) defer resp.Body.Close() body, _ := ioutil.ReadAll(resp.Body) 正确的应是, defer resp.Body.Close() 应在 ioutil.ReadAll之后 resp, _ := http.Get(link.ImgUrl) body, _ := ioutil.ReadAll(resp.Body) defer resp.Body.Close() 菜鸟总结 0.0……

阅读全文

安卓手机在linux下刷入twrp第三方recovery

1 自行下载需要刷入的twrp.img文件 下载地址:https://twrp.me/Devices/ 2 安装adb fastboot sudo apt install adb sudo apt install fastboot 3 手机开启开发者模式,并连接电脑 4 依次运行下面命令即可 // 进入fastboot adb reboot bootloader // 刷入 twrp镜像,twrp-xxxx.img 替换为你自己的twrp镜……

阅读全文

golang 生态中不错的组件

觉得不错的Golang优秀组件。算是个人笔记吧,只有介绍,没有使用说明。 web 框架 Go的框架有很多很多,但至今还没有一款能和Spring媲美的神级框架出现。所以大神都是自己直接写,不用框架。这里介绍我用过的2个框架gin和beego,前者路由速度快,后者功能全。但还是我前面讲的那句话……

阅读全文

最近文章

分类

标签

友情链接

其它