09 2017 档案

Django上传并显示图片
摘要:非常详细的教程,教大家一步步用Django上传与显示图片。用例子学习是一个不错的方法,下面我用一个非常简单的例子为大家讲解Django中图片的上传与显示。 1. 创建名称为‘a’的项目 2.在项目‘a’中创建名为‘b’的app 3.把b加入到settings.py中的INSTALLED_APPS中 阅读全文

posted @ 2017-09-29 16:56 蚂蚁flow 阅读(1157) 评论(0) 推荐(0)

Split string every nth character?
摘要:https://stackoverflow.com/questions/9475241/split-string-every-nth-character 阅读全文

posted @ 2017-09-28 17:10 蚂蚁flow 阅读(169) 评论(0) 推荐(0)

C语言如何获得精确到毫秒的时间
摘要:在做测试或性能优化时,经常要知道程序运行的时间,在Linux系统可以使用time命令来计算程序运行运行所消耗的时间,能精确到毫秒,如果要精确到代码块或某个操作运行时所消耗的时间,time命令就不给力了。如果对时间的精度要求不高的话,可以调用标准C的接口time来得到开始和结束的时间,再调用difft 阅读全文

posted @ 2017-09-28 14:45 蚂蚁flow 阅读(17495) 评论(1) 推荐(4)

I420转RGB
摘要:http://blog.csdn.net/huiguixian/article/details/17288909 阅读全文

posted @ 2017-09-27 19:47 蚂蚁flow 阅读(1134) 评论(0) 推荐(0)

image compression with libjpeg
摘要:http://www.aaronmr.com/en/2010/03/test/ Working on the project I've seen in the need for compression to capture images with a webcam from the robot, t 阅读全文

posted @ 2017-09-27 13:13 蚂蚁flow 阅读(472) 评论(0) 推荐(0)

java求两个圆相交坐标
摘要:最近由于项目需要,根据两个圆函数求出相交的坐标。实现代码如下,另感谢两圆求交点算法实现Java代码,虽然他所贡献的代码中存在问题,但仍有借鉴意义。 1.两个圆相交的数学求法 在中学数学中我们知道,一个圆可以作如下描述,以x1,y1为圆心,r为半径的一个圆: 那么假设现在有两个圆C1与C2,其中C1与 阅读全文

posted @ 2017-09-21 13:37 蚂蚁flow 阅读(1995) 评论(1) 推荐(0)

判别式
摘要:根的判别式是判断方程实根个数的公式,在解题时应用十分广泛,涉及到解系数的取值范围、判断方程根的个数及分布情况等。一元二次方程ax^2+bx+c=0(a≠0)的根的判别式是b^2-4ac,用“△”表示(读做“delta”)。 任意一个一元二次方程 均可配成 ,因为a≠0,由平方根的意义可知, 的符号可 阅读全文

posted @ 2017-09-21 13:32 蚂蚁flow 阅读(976) 评论(0) 推荐(0)

This inspection highlights chained comparisons that can be simplified.
摘要:https://stackoverflow.com/questions/26502775/pycharm-simplify-chained-comparison In Python you can "chain" comparison operations which just means they 阅读全文

posted @ 2017-09-16 11:03 蚂蚁flow 阅读(2231) 评论(0) 推荐(0)

What is the maximum length of a URL in different browsers?
摘要:https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers Short answer - de facto limit of 2000 characters 阅读全文

posted @ 2017-09-12 13:41 蚂蚁flow 阅读(346) 评论(0) 推荐(0)

nginx调整large_client_header_buffers
摘要:https://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers Syntax: large_client_header_buffers number size; Default: large_c 阅读全文

posted @ 2017-09-12 13:33 蚂蚁flow 阅读(10755) 评论(0) 推荐(0)

uWSGI调整buffer-size
摘要:https://uwsgi-docs.readthedocs.io/en/latest/Options.html#buffer-size buffer-size argument: required_argument shortcut: -b parser: uwsgi_opt_set_64bit 阅读全文

posted @ 2017-09-12 13:27 蚂蚁flow 阅读(955) 评论(0) 推荐(0)

Python3中bytes和HexStr之间的转换
摘要:1 Python3中bytes和HexStr之间的转换 ByteToHex的转换 def ByteToHex( bins ): """ Convert a byte string to it's hex string representation e.g. for output. """ retur 阅读全文

posted @ 2017-09-11 18:55 蚂蚁flow 阅读(3787) 评论(0) 推荐(0)

导航