Many bulbs

I followed Andrew Price’s tutorial and made this light bulb scene.

​ blender 2.78

​ samples: 3000
​ compositors: post

Read More

TP-Link WR703N

一块小小的路由器,WR703N,是那么的强大。我的这一块是我2013年在某东上买的。当时就是为了能把学校墙上的网络共享出来,而且还是用的iNODE拨号,我记得。

一直稳定着为我服务着,后来,回国后学校的网络已经变成pppoe拨号了,所以也就没用上它。看着一天天的落灰,偶尔想起来,拿出来试了下,发现自己已经忘记应该怎么用OpenWRT系统了。重新一刷,💣,砖了。

周末有点时间,做一个串口引线吧,焊上后,重刷。

刷不死UBoot。

没用几天,忽然想到学校是有ipv6的,所以。。。

原生的内核烧写文件太大,无法安装的挂载USB的包,然后,下载源代码,重新生成剪裁过的内核烧写文件。

opkg安装usb相关的包,挂载8G的U盘,安装ipv6的包。

配置,ipv6地址的转发。

😍,搞定。

现在我可以说,如果你有一块WR703N,还是卖了吧,买个高端一点的免于折腾。💁💁🏰

Read More

极简

这个世界太过繁华

繁华到了快要凋零

多少舍近与求远

都是无谓的挣扎

物质与环境

Read More

TPLink703N Hacking

偷得半日闲,在TpLink 703N的软件和硬件上同时做一些Hacking的工作,主要是焊制了串口的通信接口TTL,通过与USB转串口工具与PC机连接,以及刷上了不死U-boot,可以开心的使用OpenWRT了。

在这个过程中,参考了国内外大量的前辈经验,先一并感谢之。

Read More

从头开始又何妨

过去总是害怕自己的生活不够稳定,但是生活嘛,哪里有一直很稳定的呢?无论是身处高位,还是在于平常之地。日子都会在一天天的过去,一天天的变化着。只要你在努力着,机遇还是会有的。如果真的当你闭上双眼的那一刻时,机遇还是不曾到来,那,也只好安心的去了。
有了平静和心安,才能看到生活的五彩斑斓。

Read More

How to build muscles

Get great muscles

Some people spend years trying to put on muscle or get more toned, but just can’t seem to make it happen. Others see themselves in the mirror wearing a swimsuit, and realize that they want to get more toned or fill out some muscle, but just don’t know where to start. Whether you want to bulk up, get more curvaceous calves, enhance your chest, or achieve any other muscle building goal, you’re about to get 10 tips to build muscle fast.

Muscle Building Tip #1: Lift

In “How To Build Muscle,” you learn that the only way to significantly increase muscle is to cause muscle fibers to tear, and the only way to do that is to subject your muscles to external forces to which they’re not accustomed. So unless you have a heavy manual labor job like moving or construction, you must get your hands on barbells, dumbbells, and weight lifting machines to see significant muscle building progress.

Read More

Finally

I just wanna post a screenshot of a game.

Nihilumbra

Read More

Twinkle Star

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
'Generate starry sky    [STARS.BAS]
DIM level(3) 'magnitude levels
RANDOMIZE TIMER 'so that each sky is different
SCREEN 12 '640x480 pixels
m1 = 3 'average number of mag 1 stars (default 3)
r = 8 'star number ratio per magnitude (default 8)
totalstars = m1 * (1 + r + r * r + r * r * r) '# of stars in the sky
level(1) = m1 / totalstars 'compute levels to make
level(2) = m1 * (1 + r) / totalstars '4 different magnitudes
level(3) = m1 * (1 + r + r * r) / totalstars
DO 'this is the loop that generates a new sky
CLS 'clear screen/sky
FOR i = 1 TO totalstars 'generate stars one by one
xp = RND * 640 'x position on the screen
yp = RND * 480 'y position on the screen
magtst = RND 'generate a number to determine magnitude
mag = 4 'start by assuming faintest star
IF magtst < level(3) THEN mag = 3 'then brighten if
IF magtst < level(2) THEN mag = 2 'generated random number is
IF magtst < level(1) THEN mag = 1 'within specified level
SELECT CASE mag 'now plot star according to magnitude
CASE 4
PSET (xp, yp), 8 'faintest star (try changing colour to 7?)
CASE 3
PSET (xp, yp), 15 'brightest star with a single point
CASE 2
CIRCLE (xp, yp), 1, 15 'increase app brightness by increasing size
PAINT (xp, yp), 15
CASE 1
CIRCLE (xp, yp), 1.5, 15 'brightest stars have largest area
PAINT (xp, yp), 15
END SELECT
NEXT i 'go back and plot all stars until finished
DO
a$ = INKEY$ 'wait for a keyboard input
LOOP WHILE a$ <> CHR$(27) AND a$ <> "q" 'ESC generates new sky
LOOP WHILE a$ <> "q" 'q quits program
END

Read More

百姓

:(

兴,百姓苦;
亡,百姓苦。

Read More

XCode Debug C++ array

I got a bad cold, :<, and it’s cold now.

However, I got a piece of code to check the contents of a pointer:

1
2
3
4
5
6
7
8
9
10
11
(lldb) memory read -t double -c `10` _new
(double) 0x11003b000 = 141.29869002655289
(double) 0x11003b008 = 141.29869002655286
(double) 0x11003b010 = 141.40261994689422
(double) 0x11003b018 = 140.80829186560609
(double) 0x11003b020 = 139.10087794852376
(double) 0x11003b028 = 137.67006305574671
(double) 0x11003b030 = 138.72145263361659
(double) 0x11003b038 = 140.38247728672476
(double) 0x11003b040 = 141.17656578812017
(double) 0x11003b048 = 140.41071936746977

Read More

PopClip

It is a productive tool on Mac OS, which can pop a small menu for the common operations on texts, like Copy, Paste, Looking up in a dictionary et al. Additionally, I add some customized extensions, they are:

Read More

Mac gone

I was broken when my Mac was stolen, I am sad until now.

However, I don’t think my life should be ruined by this.

Come on, cowboy!

Read More

A command for UTF-8 encoding

I know it is a common command for Vimers, however, I knew it just now.

:write ++enc=utf-8 test.m

Done!

Read More

XVim playboy

Today I found XVim which is a plugin for XCode, it offers a flood of funcitons of VIM for Xcode. Actrually, I only wnat the navigation functions. h,j,k,l,w,e,b are engough for me. When coding in XCode, I am comfortable with Apple’s touchboard. In Insert mode, I also prefer to use Emacs-like navigations, ctrl + n, p, e, a, d. So I made some modification in the rc file of XVim, a .xvimrc file in my home directory:

Read More

Vim as a new user

突然发现Vim的使用还是不够好,里面很多东西还没有熟练的使用,因此又折腾了一下。可能还是越简单的东西越容易高效的使用吧。这次折腾的几个功能都是最常用的,我想用Vim来完成基本的文字输入、记录、博客、Shell脚本、C、C++的编程应该对于我来说是比较全面的了。

  1. 显示行号

Read More

Good

Today, I was surprised that Google revised the smart zoom in Chrome. I submitted the report several weeks ago asking if Chrome can act like Safari to automatically zoom the website text content when you double click on the content.

Read More

Fortran

Fortran is a great programming language, but I am not good at it. More effort are needed. Come on, boy!

Read More

How to Stop Giving a F**ck What People Think

从这个题目上来看“如何不再在意别人眼中的你”虽然作者用词激烈点,但是相信也是他(她)自己的心声。此文有鸡汤文的嫌疑,然偶尔给自己充下电也是件不错的事,下面是我边读的感想和边翻译的内容。

We’re all guilty. Every day from the moment we wake up, we live our lives caring what other people think of us.
我们都是有罪的。每一天从我们醒来起,我们始终都在关心着别人是怎么看待自己的。

We accept the status quo for what it is because everyone around us does. We tip toe our way through life by doing things in order to please others, not because it’s what we believe in. Eventually our actions, appearances, and lives become molded by how we think other people perceive us. How are these pants going to make me look? What will my colleagues think if I spoke out? Are those people talking shit behind my back? If I take this job, what will my friends and family think of me?
我们一直接受这种现状的原因是我们周围其他的人也是这样。我们小心冀冀的这样做去取悦别人,而所做的这些东西却不是我们信仰的。最终,我们的行为、外貌打扮和整个生活都被“别人是怎么看我的”这个标准左右着。比如下面的这些问题:一条裤子好不好看?我讲一些话同事会怎么看?有别人在我背后说坏话么?如果我做这份工作我的朋友和家人会怎么看我呢?

Read More

OSX下五笔到底哪家强?

软件综合症晚期的我,已经不期望能够康复了~
清歌五笔输入法在保证功能齐全的前提下已经相当稳定了,但是我还是想折腾一下「神级输入」:鼠须管。
过去我一听说它的名字就不想去使用了,但是网上叫好的呼声一片,我禁不住蛊惑花了几个小时折腾了一把,得到「果然是神级输入法」的结论。
先说我达到的效果:

Read More

iPad电容笔与软件对比

在iPad air 2上做了测试,先说笔吧。我一共买了三支:

握感不错,但是在屏幕上书写的体验特别差,笔尖会出现较大的偏移,而且在非自己软件里会出现滞后现象。

推荐指数:#

外观漂亮,精致带笔帽。握感也很出色,果然不愧是Wacom出品的。随身携带很方便,因为没有蓝牙连接功能,所以无压力感应设置,作为一支日常的写写画画的笔足够。

推荐指数:####

这个笔是我感觉功能和外观都很满意的一支,配合自家的Paper软件来随手画点东西,记点东西都很不错。充一次电可以用好久,不必担心用一段时间就没电。握感上可能有一点点不适应,因为它是扁的,但是手感上绝对舒服。可以与iPad蓝牙连接,也可以直接当普通电容笔使用。

推荐指数:#####

Read More