05 2012 档案
摘要:IE9也不支持,我晕。目前知道chrome,safari支持的。好先上资料http://www.ibm.com/developerworks/web/library/wa-offlineweb/http://www.ibm.com/developerworks/cn/opensource/os-androidiphone2/index.htmlhttp://www.ibm.com/developerworks/cn/xml/x-html5mobile2/http://www.ibm.com/developerworks/cn/xml/x-html5mobile3/iOS Web App 开发心
阅读全文
摘要:如果我想用本地图片帮定到django models的imagefield,要怎么做?如下:fromdjango.core.filesimportFileimg=File(open(your_local_image_file))s=some_model.create(image=img)s.save()即可~!
阅读全文
摘要:fprintf(stdout,"%s",buffer);这会在屏幕打印出buffer.但是,当使用while(1){accept(...);rec = recv(...) ;fprintf(stdout,"%d",rec) ;}会没有输出~~why???这个时候,fprintf在什么地方输出呢?找到原因了:stdout是行缓冲的,所以遇到\n才会输出,如果没有,就会一直等待~~所以上面的fprintf改为:fprintf(stdout,"%d\n",rec) ;即可!
阅读全文
摘要:int accept(int socket, struct sockaddr *address, socklen_t *address_len);int bind(int socket, const struct sockaddr *address, socklen_t address_len);int connect(int socket, const struct sockaddr *address, socklen_t address_len);int getpeername(int socket, struct sockaddr *address, socklen_t *address
阅读全文