2014-01-28 Kun Ren
r
For R beginners, the first operator they use is probably the assignment operator 继续阅读 »
2014-05-20 Lingxian Kong
之前的一篇博客讲了AWS和Heat中AutoScaling的机制和大概的实现,本篇是上一篇的姊妹篇,主要讲autoscaling在heat中的简单使用。 环境准备 我们还是以一个模板为例,模板内容如下: { "HeatTemplateFormatVersion": "2012-12-12", "Description": "Template which create a base autoscaling for launch base.", "Parameters": { "InstanceType": { "Type": "String" }, "ImageId": { 继续阅读 »
2016-06-07 Lu Huang
本节实现的是同时使用opencv和matplotlib两种方式来显示图像,以比较二者之间的差别。 测试灰度图像 测试彩色图像 分析彩色图像出现差异的原因 实现过程 引用 不再赘述,代码如下。 python import cv2 import numpy import matplotlib.pyplot as plot 测试灰度图像 打开灰度图像,先用opencv显示,再用matplotlib显示,代码如下: ``` python test for a gray image img1 = cv2.imread("test1.jpg") using opencv cv2.imshow("Gray(opencv 继续阅读 »
2015-08-30 Jason Liao
Floats, absolutely positioned elements, block containers (such as inline-blocks, table-cells, and table-captions) that are not block boxes, and block boxes with 'overflow' other than 'visible' (except when that value has been propagated to the viewport) establish new block formatting contexts for their contents. 继续阅读 »
2016-07-22 ruki
xmake provides a convenient and flexible cross-compiling support, in most cases, we need not to configure complex toolchains prefix, for example: arm-linux- As long as this toolchains meet the following directory structure: /home/toolchains_sdkdir - bin - arm-linux-gcc - arm-linux-ld - ... 继续阅读 »
2018-03-16 Alex Sun
1. Shortcut Connection 随着网络层次的越来越深,就容易出现梯度消失或者梯度爆炸的问题,因此网络层数无法很深。残差网络(Residual Network)的出现很好的解决了这个问题。相关论文可以参考Deep Residual Learning for Image Recognition。 继续阅读 »
2016-06-07 Lingxian Kong
Nova flavor The flavor will be used for creating octavia service vm. We can create a new flavor or reuse an existing one. Commands: nova flavor-create --is-public False m1.amphora ${OCTAVIA_AMP_FLAVOR_ID} 1024 2 1 Option: [controller_worker] amp_flavor_id = ${OCTAVIA_AMP_FLAVOR_ID} Nova keypair If we want to log 继续阅读 »
2018-03-15 林长宇
问题 升级Mac后,Jekyll 无法启动了。 用GEM更新Jekyll居然出错了。 $ gem install jekyll ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory. 继续阅读 »
2016-04-11 Renfei Yu
Push 推送技术说明 [TOC] Java NIO 使用说明 参考资料 Java NIO Tutorial 简介 Java NIO (New IO) is an alternative IO API for Java (from Java 1.4), meaning alternative to the standard Java IO and Java Networking API's. Java NIO offers a different way of working with IO than the standard IO API's. 继续阅读 »
2013-01-03 Klaus Ma
Selenium a powerful suite of tools for web testing, but it’s dependent on browser (Firefox, IE, Chrome); and those browser need a displayer. As a console/command geek, it’s intolerable. After several days investigation, I’d like to introduce PyVirtualDisplay to run Selenium in a console with Python. 继续阅读 »