python语言特性之引用

不得不承认的是,被我们所偏爱的python也并不完美,但这并不阻碍我们追求完美。有时候你会感觉这一路上危险重重,你必须得小心翼翼的避开那些陷阱,因为一旦踩上就是满盘皆输,你得学会避开危险,然后再去体验旅程。最后,提前祝你旅途愉快!

关于Django的CSRF和跨域访问机制

The CSRF middleware and template tag provides easy-to-use protection against Cross Site Request Forgeries. This type of attack occurs when a malicious website contains a link, a form button or some JavaScript that is intended to perform some action on your website, using the credentials of a logged-in user who visits the malicious site in their browser. A related type of attack, ‘login CSRF’, where an attacking site tricks a user’s browser into logging into a site with someone else’s credentials, is also covered.
The first defense against CSRF attacks is to ensure that GET requests (and other ‘safe’ methods, as defined by RFC 7231#section-4.2.1) are side effect free. Requests via ‘unsafe’ methods, such as POST, PUT, and DELETE, can then be protected by following the steps below.

直播平台概述和直播服务器架设

不会做直播还混什么互联网

2016年国内各种直播应用如雨后春笋一般涌现出来,各大主打云服务的国内互联网巨头纷纷推出了自己的视频直播平台的解决方案,比较优秀的有七牛, 阿里的大视频解决方案,网易的云视频,当然腾讯也不甘落后,推出了类似的视频云

事实上,网络直播由来已久,但之所以会在2016年一下子火起来,我觉得一是短视频社区的火爆带动了整个视频行业,促成了网络直播的流行。再者,大部分人通过早期的微信公众号,微博等自媒体媒介尝到了甜头,网络直播片天地自然也不能放过。最后各类mooc在中国大地遍地开花,教育行业对直播也有相当需求。最后,事实上对于直播,国内具有相当的技术积累。