我把硬盘摔坏了 天哪

第一次是因为光驱坏了bios开机时读不到而进不了系统,被农夫拿去直接重装了系统,没了我一夏天的东西和三中樟中的历史性照片(几百Mb)

第二次因为partition shrinking出错我一昏头进入 i don’t know what i’m doing 状态把全盘格了(320G),那时是大一到大二的样子

第三次因为少打一个字 dd if=/boot/grub/stage1.5 of=/dev/sda 一摁 enter 全盘被格(320G),是我做的一个数据库的工程,别的用 testdisk 找回来了,可这个工程的区就是回不来

这次就直接是机械性的摔坏了(1T),毁灭性的啊!里面有很多video,主要以前chigago bulls的比赛录像好多都在这

RIP my data and memory

 

nvidia 347.09 notebook driver add support for OpenGL 4.5

finally, nvidia’s new driver — 347.09 added support for OpenGL 4.5.

usually nvidia’s desktop driver will support new OpenGL standard pretty fast after the specification release(like a few weeks after), but for notebook users you’ll need to wait for quite some time(several months). so for OpenGL 4.5, it take about 4 months, damn it’s long wait.

anyway now i can enjoy the new API on my notebook, yay.

gl4 pushed

the god damn thing didn’t take 3 seconds, but i just don’t want to do it, pissed like this? now i got my beloved gl4 to sourceforge(link), finally. after so many years, this thing could see some sunshine for the first time.

a word about sourceforge’s quality of service though: i would much prefer http://cgit.freedesktop.org/‘s style of project interface, you can check a project’s commit and history so easily, not like github and gitorious(and sourceforge)’s style of presenting project summary.(just a personal thought)

well, if you count the time of customizing sourceforge project page and writing this artile, it did take hours, the git push command just take seconds.

empty?

empty?

reason?

i got no pillar of emotion.

i could use some drugs but they will run out surely

especially when you can’t handle how much to consume at a time

you always want to see the end

so hungry hum?

although self contain is a option but that’s too cruel and didn’t seem to work too well.

with love, i could be anything.

 

how server in china pissed me when configuring ntp for Raspberry Pi

so i got a Raspberry Pi recently and when compiling stuff, i got the time screwed error, clearly the system time is not right as rpi don’t have a hwclock.

after some easy googling i know i can use ntp to sync time with network  server whenever rpi boots, then i got this page to guide me through the set up. after some messing around and reading the whole article several times, i found my problem is ntpd -qg simply won’t return.

as you can read from that article, ntpd -qg should say “ntpd: time set +%%%%%%s” in the end, but i can’t get that message. running with some debug information with ntpd -qgd showed the ntpd seems can’t get a answer from the server, so i’m still in 1970.

then i find the official page and get more dump commands. ntpq -p gives a abnormal output: all delay, offset, jitter is 0, and the refid is .INIT., this is very bad. then i tried ntpdate pool.ntp.org, and it tells me there is no suitable server to sync the time, omg!

in /etc/ntp.conf, you can check which server ntp is using. mine is the default one: 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, there should be some redirecting stuff, you can see with ping 0.pool.ntp.org, the address i get starts with 202., so it’s a china server(also from the domain name). it’s sensible because it always choose the closest one for you. now that is the problem, how can i trust a chinese server to deliver ntp service properly?

now the solution would be pretty obvious: use a eu or us server. just prepend pool. with us., you got 0.us.pool.ntp.org, 1.us.pool.ntp.org, 2.us.pool.ntp.org. this time ntpd -qgd would happily tells me it has got the time set properly, and ntpq -p also prints sensible results.

welcome back to 2014!

how to get nexus 7 2013 otg working with usb mass storage

nexus 7 2013 has out-of-box support for otg wired mouse and keyboard, if you root it and install stickmount, you can mount usb thumb drive, but not your hard drive, the reason is pretty simple, your hard drive need a 5V voltage drive to work, but that otg cable from your tablet can’t provide that. some people suggested hack open a otg cable and wire a extra usb head just for 5V power, connect that usb head to your computer ‘s usb port(which has standard 5V power), and it works. i don’t have tools for that but found my own way:

just buy a 3 headed usb cable that use 1 of the heads to draw power if needed

the good thing about this is 3 headed usb cable is a standard product, you can buy it easily, you don’t have to hack open a existing cable to make your own gear.

i thought this was a obvious solution, not sure if anyone has find it before me, but i can confirm it did works, for my nexus 7 2013.