今天试着用了一下socket编程,虽然是以前基本没有接触过的领域,不过因为Unix/Linux基本哲学之一就是“一切皆文件”,一些最基本的操作倒也是很快就上手了。就和普通的文件操作一样,“open -> write/read -> close”。
Monthly Archives: October 2014
10年後の私へ、永远不会后悔与CLANNAD的相遇
又一次看了CLANNAD。又一次泪目。
坂道之上,樱花树下。
CLANNAD在我心中的位置是其他任何作品都不可超越的,也超越不了的。当一部作品讲述的故事真正达到「人生」这个层面上以后,它就不仅仅是一个商业产物,它还包含了对人生的诠释,可以作为一个人的人生指引。
iOSOpenDev command line tool build error
Those days, I upgraded my Xcode to XCode6. Then when I compiling a command line tool, it gave me 1 error that
target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphoneos' platform
The application hierarchy changes in iOS 8
As all we know, iOS 8 - iOS 8.1 are able to be jailbroken by pangu jailbreak. After jailbroken my device, I found it is much different from previous iOS version.
Install Cydia on iOS 8 - iOS 8.1 manually
To install Cydia on iOS8-8.1 manually.
1. Install OpenSSH in pangu application.
2. Download those two debs on your computer.
http://apt.saurik.com/debs/cydia-lproj_1.1.12_iphoneos-arm.deb
http://apt.saurik.com/debs/cydia_1.1.13_iphoneos-arm.deb
locale: Cannot set LC_ALL to default locale: No such file or directory
When I did apt-get upgrade operation on my server, there was some warning messages that said: locale: Cannot set LC_ALL to default locale: No such file or directory. Continue reading locale: Cannot set LC_ALL to default locale: No such file or directory
Do NOT use "void main()" in C/C++
When I had the class 「Fundamental of Computer Science」 tonight, my teacher present a slide that writes void main(). I pointed out the mistake that main function's return type should be int in C/C++.
The father of C++ program language, Bjarne Stroustrup, once posted this on his personal website in column C++ Style and Technique FAQ.
显示金字塔
今天上了「Java语言程序设计」,讲到了循环,因为对这些基础的非常熟悉,所以提前写完Java版的之后就开始浪CLisp版本的显示金字塔了。
Continue reading 显示金字塔a brainfuck problem
Yesterday evening, 0xSuu sent me a problem but which requires to write in brainfuck language. The complete problem is here.
Continue reading a brainfuck problemThe University of Tokyo Written Exam 2014 Problem 4
Problem 4
The dwrite function shown below is a system call which directly writes the data in the user memory area specified by data, whose size is size bytes, to the disk.
Continue reading The University of Tokyo Written Exam 2014 Problem 4