Blade & Soul Dark Skyscraper Last Boss

最近企鹅服剑灵更新了新 24 人本 暗黑摩天楼, 短短几天 1~3 Boss 就被广大壕玩家攻破. 然而老 4 烛魔王 可能是因为没有攻略的原因久久无法攻下…

斗鱼 虎牙 上看各个主播直播各种团灭… 这实在是太凄惨了! 太欢喜了!

显得没事儿去找了找攻略, 无意间找到了一个 不完全攻略一部非常有参考价值的通关视频.

Read More

Live Stream and Record on Linux

一直以来 MKER 我都有逛各种弹幕类在线视频网站的习惯, 看看 BiliBili 什么的视频站呀, Douyu TV 什么的直播站之类的.

看 视频/直播 看久了, 渐渐也有了自己做 UP主/主播 来弄一些 奇奇怪怪 有趣的东西的想法… 以至于今天这篇 折腾向 的文章诞生.

这篇文章主要说的是如何在 Linux 平台下 Screen Record 录制屏幕Live Stream 在线直播.

Read More

Shadowsocks & ChinaDNS on OpenWRT

由于我 Buyvm 的年付 $15 的 VPS 在之前到期了, 所以说我以前自行搭建的 Shadowsocks (以下简称为 SS) 服务也无法使用了. 于是最近都一直在使用一个好基友 福音乐章 分享给我的 SS 服务. 可是很不幸的, 他的 SS 服务也由于 VPS 的到期而关闭了 TAT (免费的午餐木有了!!!).

以上是今天文章的背景交代. (这是写小说/剧本么?! 大雾!!!)

虽然可爱的 福音乐章 再次友情分享了一家 VPN 服务商的帐户给我. 但是由于这家服务商仅提供 openVPN L2TP PPTPSSTP 的服务, 并没有 SS, 所以我还是决定不使用他分享给我的 VPN.

Q: 为什么我不使用以上 4 种 VPN 呢?
A: 因为我家路由使用 OpenWRT + Shadowsocks + ChinaDNS 进行 DNS防污染 + 智能翻墙. 而 SS 在其中扮演着重要的角色, 是无法被代替的!

在书写这篇文章的时候, 我突然发现我好似从未在 Blog 里发布过我的 OpenWRT 路由配置相关的文章, 于是今天就顺势一起介绍一下…

Read More

Transfer to Hexo

由于我的 Buyvm VPS 在 2015/04/01 到期, 并且想弄一个静态 Blog. 于是就有了今天这一件事情.

WordPress 转移到 Hexo.

在此之前, 是打算使用 Octopress 的, 只不过在本机上折腾了半天, 还是玩不来. 又在Google上搜索到了基于 Node.jsHexo 这个玩意儿, 随即折腾下来玩了玩, 感觉挺顺手的.

(我才不会告诉你, 我其实是感觉 Node.js 执行效率比较高呢!)

Blog 托管在 Github Pages & GitCafe Pages. 并设置了 DNS智能解析. 大陆解析到 GitCafe, 国外则是 Github.

(感谢 Github & GitCafe 提供的免费且优质的服务)

至于如何从WordPress 转移到 Hexo 我就不多说了, 随便搜索一下就会有一大堆的.

这次又算是一篇水的不能更水的文章了吧?! (现在可一点都不水了!)

半年多没有更新过了, 在转移之后会逐渐恢复更新.

By a lazy man.

  • 2015/04/01 再编辑

为了不让这篇文章太水, 所以说我还是跟从大众, 写一下如何从 WordPress 转移到 Hexo, 并且同时托管至 Github & Gitcafe 的过程吧:

Read More

Transfer Arch Linux

My Arch Linux is installed in a very very old hard disk, and this disk quickly broken. So, I transfer all of data in this disk to other.

I find many methods transfer Linux system, such as tar, cp, even dd.

Finally, I chose rsync.

Because I using the UEFI and Btrfs. So I should prepare some things before transfer system.

Create a EFI partition. [FAT32 and mark a boot flag. here drive is /dev/sda1]
Create a Btrfs data pool. [And create some subvolume, here is 'rootfs' and 'homefs'. here drive is /dev/sda2]
Mount /dev/sda2 subvolume 'rootfs' on /mnt
Mount /dev/sda2 subvolume 'homefs' on /mnt/home
Mount /dev/sda1 on /mnt/boot

After preparatory work is completed, I start to transfer system by rsync.

rsync -avP /home/ /mnt/home/
rsync -avP /boot/ /mnt/boot/
rsync -avP --exclude=/home --exclude=/boot --exclude=/proc --exclude=/sys --exclude=/mnt --exclude=/lost+found / /mnt/

After rsync work is completed, I should modify /etc/fstab and /boot/grub/grub.cfg. Change all of the UUID in them.
Tip: Use the blkid to view partition UUID.

At last, use UEFI SHELL -> bcfg to modify Boot list of M\B.

Completed.
Once-through.

Tip: /usr/bin/ping maybe lost SUID?

Remove Windows Boot Manager

Yes, it’s really. here have a violent method to remove Windows Boot Manager (UEFI BOOT ITEM in M/B).

Okay, Let’s to kill it!

First,
Remove some files in your Windows Hide Drive [That have space 120~200 MiB’s Drive].


/EFI/Boot/bootx64.efi
/EFI/Boot/

Read More

Some examples for using Qemu

I said a virtualization tool in yesterday and today I will share some examples for using Qemu.

First, Creating a hard disk image:

QEMU provides the qemu-img command to create hard disk images. For example to create 15GB image in the qcow2 format (of course, you can use RAW format):

qemu-img create -f qcow2 <qcow2_disk_image> 15G

Second, Installing the operating system:

Here using i386 platform you can using x86_64 or more yet.

qemu-system-i386 -cdrom <iso_image> -boot order=d <qemu_image>

Finally, Normal booting virtual machine:

qemu-system-i386 [options] [disk_image]

Read More

Adjustment Vim help to GTK+ develop

Today, I have adjustment my text editor VIM.

Added ctags support, GTK+ syntax highlight and devhelp support.

I’m using GTK+ to develop the GUI program. so, tags is GTK+ functions tags, syntax highlight is GTK+ too. and GTK+ reference manual is view from devhelp, so I added devhelp support.

Read More

Some Experience in Programming in Windows.

I learned some Windows programming way these days, Such as Win32 API. Here is some experience of mine.

1. Troublesome to create window or widget.
I think the function to create window/widget in Windows too trouble.
All window/widgets are all created by the two functions [CreateWindow] & [CreateWindowEx].
It’s leads to these 2 functions have many Parameter, make you confused.

2. Disorganized Reference Manual (MSDN library).
Of course, if using search in MSDN library, you don’t think it.
But! When you view a function prototype, you will start jump from here.
Let’s to try.

CreateWindowEx function -> Extended Window Styles -> About Window Classes ...
-> RegisterClass/RegisterClassEx function ...
-> About Window Classes ...
-> Window Styles ...
-> CREATESTRUCT structure ...
-> CLIENTCREATESTRUCT structure ...

Oh, it’s too spectacular…

3. Message mechanism… I don’t know what to say. you will know after you use it.