Select VS Epoll

  • Post author:
  • Post category:其他

Select VS Epoll的原理说明 版权声明:本文为linyu123原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.csdn.net/linyu123/article/details/84814314

继续阅读 Select VS Epoll

gerattr

  • Post author:
  • Post category:其他

描述 getattr() 函数用于返回一个对象属性值。 语法 getattr 语法: getattr(object, name[, default]) 参数 object – 对象。 name – 字符串,对象属性。 default – 默认返回值,如果不提供该参数,在没有对应属性时,将触发 AttributeError。 例子 class Person(NamedTuple): '''人类'''…

继续阅读 gerattr

Hadoop和Spark的区别

  • Post author:
  • Post category:其他

hadoop Hadoop是一个由Apache基金会所开发的分布式系统基础架构。 用户可以在不了解分布式底层细节的情况下,开发分布式程序。充分利用集群的威力进行高速运算和存储。 Hadoop实现了一个分布式文件系统(Hadoop Distributed File System ,HDFS)。HDFS 有高容错性的特点,并且设计用来部署在低廉的(low-cost)硬件上;而且它提供高吞吐量(high…

继续阅读 Hadoop和Spark的区别

Jenkins通过Publish Over SSH实现前端项目部署到远程服务全纪录

  • Post author:
  • Post category:其他

上篇 Jenkins通过Publish Over SSH实现前端项目部署到远程服务全纪录 聊了通过 Jenkins Nginx 实现前端自动化部署的整个过程,不过上篇文章部署的场景是 Jenkins 和 Nginx 服务在一台机器上. 但是很多情况下,我们的 Jenkins 可能是单独在一台服务器, Nginx 服务可能根据环境的不同在多台服务器上,这时就需要 Jenkins 远程推送前端代码到不…

继续阅读 Jenkins通过Publish Over SSH实现前端项目部署到远程服务全纪录

Win10+Anaconda+Tensorflow2.0安装教程(手把手带你安装tensorflow)

  • Post author:
  • Post category:其他

安装说明: 平台:windows 版本:tensorflow2.0.0-alpha0(cpu版本) 安装方式:pip 一、安装环境 Tensorflow2.0.0的CPU版本环境需求简单,安装比较简洁。 TensorFlow是基于VC++2015开发的,所以需要下载安装VisualC++ Redistributable for Visual Studio 2015 来获取MSVCP140.DLL的…

继续阅读 Win10+Anaconda+Tensorflow2.0安装教程(手把手带你安装tensorflow)

HDU 1518

  • Post author:
  • Post category:其他

题目: http://acm.hdu.edu.cn/showproblem.php?pid=1518 超时了N遍。。。那个关键的神奇剪枝。。对于当前树枝要么现在用,如果现在不用。。以后也不要用了。 下面是AC代码: #include<iostream> #include<algorithm> #include<cstring> #include<cstdi…

继续阅读 HDU 1518

MySQL-union和select绕过

  • Post author:
  • Post category:mysql

#绕过union和select绕过方式 1.大小写绕过 ?id=0'%A0u NI on%A0se LE c T %A01,2,3%A0and%A0'1'='1 2.复写单词绕过 ?id=0'%A0uni union on%A0s select elect%A01,2,3%A0and%A0'1'='1 3.报错注入 #演示案例 1.复写绕过 sqli-labs-master/Less-27 1.判…

继续阅读 MySQL-union和select绕过

Java求3-50之间的孪生素数

  • Post author:
  • Post category:java

求3-50之间的孪生素数 Java代码如下: public class luanshengsushu { public static void main(String[] args) { int i,j; int s=1; int n = 0; boolean flag=true; int a[] = new int[50]; for(i = 3; i <= 50; i++) { flag …

继续阅读 Java求3-50之间的孪生素数

FFmpeg API 变更记录

  • Post author:
  • Post category:其他

最近一两年内FFmpeg项目发展的速度很快,本来是一件好事。但是随之而来的问题就是其API(接口函数)一直在发生变动。这么一来基于旧一点版本的FFmpeg的程序的代码在最新的类库上可能就跑不通了。 例如一年前的程序中,获取媒体信息使用的函数是av_find_stream_info()。但是最近的版本中,av_find_stream_info()函数已经无法使用了,取而代之的是avformat_fi…

继续阅读 FFmpeg API 变更记录

SpringBoot整合MongoDB教程

  • Post author:
  • Post category:其他

1.整合过程 ①添加MongoDB对应pom依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency> ②配置文件,app…

继续阅读 SpringBoot整合MongoDB教程