Specs

重新打包rpm包

。_饼干妹妹 提交于 2019-12-21 20:26:11
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1.安装rpmrebuild 和安装rpmbuild rpmrebuild下载链接: https://sourceforge.net/projects/rpmrebuild/files/rpmrebuild/ rpmbuild直接用yum安装 :yum install rpm-build 2.配置rpm编译目录 vi ~/.rpmmacros %_topdir /data/rpmbuild 保存。 3.创建目录解压rpmrebuild文件到/data/rpmbuild中 mkdir -p /data/rpmbuild && cd /data/rpmbuild mkdir ./BUILDROOT mkdir ./SPECS cd /data/rpmbuild mkdir tools cp rpmrebuild-2.14.tar.gz ./tools/ cd tools tar -zxvf rpmrebuild-2.14.tar.gz cd .. 4.安装准备重新打包的rpm(例如:rpm-build) rpm -ivh rpm-build-4.11.3-40.el7.x86_64.rpm 5.反编译提取SPEC文件 #查看rpm安装名称 rpm -qa|grep rpm-build cd /data

Visit pages using PhantomJS directly when writing specs with TeaSpoon - Jasmine

↘锁芯ラ 提交于 2019-12-21 05:43:12
问题 I'm trying to write a Javascript spec for my Rails 3.2 application using Teaspoon (the Jasmine version). I'm trying to write a spec that does something like this describe("Fun", function() { var page = require('webpage').create() //ERROR it("should be so much fun", function() { page.open('/pageToTest/') expect($('#HereIsTheParty')).not.toBe( undefined ); }); }); However, require('webpage') doesn't run ( Error: Module name "system" has not been loaded yet for context ) even though the

How to get card specs programmatically in CUDA

戏子无情 提交于 2019-12-20 10:00:06
问题 I'm just starting out with CUDA. Is there a way of getting the card specs programmatically? 回答1: You can use the cudaGetDeviceCount and cudaGetDeviceProperties APIs. void DisplayHeader() { const int kb = 1024; const int mb = kb * kb; wcout << "NBody.GPU" << endl << "=========" << endl << endl; wcout << "CUDA version: v" << CUDART_VERSION << endl; wcout << "Thrust version: v" << THRUST_MAJOR_VERSION << "." << THRUST_MINOR_VERSION << endl << endl; int devCount; cudaGetDeviceCount(&devCount);

Generating arbitrary (legal) Unicode character with scalacheck?

心不动则不痛 提交于 2019-12-10 17:09:38
问题 I'm trying to create a generator that produces (non-zero-length) legal unicode strings, with scalacheck 1.6.6 and specs 1.7 (scala 2.8.1). I hoped I could just create generators like: object Generators { def unicodeChar: Gen[Char] = choose(Math.MIN_CHAR, Math.MAX_CHAR).map(_.toChar).filter( c => Character.isDefined(c)) def unicodeStr: Gen[String] = for(cs <- listOf1(unicodeChar)) yield cs.mkString } ...then use them from specs like: import org.specs.Specification import org.specs.matcher

Using the “should NOT produce [exception]” syntax in ScalaTest

穿精又带淫゛_ 提交于 2019-12-09 14:03:48
问题 I'am toying with Specs2 and ScalaTest for BDD in Scala. I've written expectations in Specs2 when I am asserting that a given exception should not be thrown. "do something" in { { .... } must not(throwA[MyException]) } I was hoping to be able to write the equivalent in ScalaTest like: "do something" in { evaluating { .... } should not produce[MyException] } But this does not compile and I could not find way of doing it. Is that even possible? Many thanks in advance. 回答1: This is not possible

Decoding gcc specs file line

喜夏-厌秋 提交于 2019-12-06 06:59:34
I have a problem with the implicit LIBRARY_PATH modification of g++ between two versions ( g++ -v gives this info). I set the LIBRARY_PATH to a single local directory where I have custom libraries. However, it turned out that only one version of the g++ (let's call it version A) correctly linked, the other (version B) linked to the system-default, which was not desired. Apparently, the order of directories was mixed up and my specification was not properly respected. It is a similar issue to LIBRARY_PATH not used before /usr/lib anymore in gcc 4.2 and later? although not with these versions.

5G射频室内测试的关键技术

余生长醉 提交于 2019-12-05 16:40:05
0 引言 从20世纪80年代第一代(1G)移动通信开始到今天的4G,移动通信及其衍生技术极大地改变了人类的物质和精神生活。从话音通信到数据通信,特别是移动互联网和物联网的快速发展,预计2010年到2020年,全球移动数据流量增长将超过200倍,我国将超过300倍,移动通信技术自然也会出现新的演进。目前,5G已经成为全球的研发焦点,国际电信联盟(ITU)、第三代国际计划(3GPP)和电子电气工程师协会(IEEE)都已牵头开展了相关技术和标准的研究和制订,我国也相应成立了IMT-2020(5G)推进组[1-5]。 IMT-2020推进组将5G应用分为四大场景,即移动互联网的连续广域覆盖场景和热点高容量场景、移动物联网的低时延高可靠场景和低功耗大连接场景,相应的峰值网速指标达到10~20 Gb/s,时延在1 ms,工作频段也提高到6 GHz以下(目前选定3.5 GHz)的低频段和高达毫米波(6~100 GHz)的高频段[1-6]。 5G不仅仅是一次技术上的升级,也是一个催生新应用新技术的广阔平台。虽然工作在较4G移动通信更高的频段,同样的相对带宽意味着更大的绝对带宽,但由于移动通信工作在自然物理环境中不可避免的多径效应导致的衰落,使得既定的高网速很难达到,需要采取多种新技术来提高带宽,其中大规模多输入输出(Massive MIMO)技术是其中的关键技术。Massive

How to mock Blob and Click() in jasmine Specs in angular js

℡╲_俬逩灬. 提交于 2019-12-05 12:44:21
How to write Jasmine specs for Blob and Click() event. Every time I am running Specs its downloading file. Can I mock this (and browser also). Thanks var csvFile = "a,b,c",filename="abc.csv"; var blob = new Blob([csvFile], { type: 'text/csv;charset=utf-8;' }); if (navigator.msSaveBlob) { // IE 10+ navigator.msSaveBlob(blob, filename); } else { var link = document.createElement("a"); if (link.download !== undefined) { // feature detection // Browsers that support HTML5 download attribute var url = URL.createObjectURL(blob); link.setAttribute("href", url); link.setAttribute("download", filename)

Seq empty test with specs2

孤街浪徒 提交于 2019-12-05 06:08:24
How can I check if a Seq[String] is empty or not using specs2 in Scala ? I am using seq must be empty or seq.length must be greaterThan(0) but I end up always with type mismatch errors. ret is Seq[String] ret.length must be greaterThan(0) [error] ApiTest.scala:99: type mismatch; [error] found : Int [error] required: org.specs2.matcher.Matcher[String] [error] ret.length must be greaterThan(0) I think the type mismatch error is caused by another bit of code than that which you've posted. Your example should just work with: ret must not be empty I've tried and confirmed to be working correctly:

Using the “should NOT produce [exception]” syntax in ScalaTest

╄→尐↘猪︶ㄣ 提交于 2019-12-03 22:12:21
I'am toying with Specs2 and ScalaTest for BDD in Scala. I've written expectations in Specs2 when I am asserting that a given exception should not be thrown. "do something" in { { .... } must not(throwA[MyException]) } I was hoping to be able to write the equivalent in ScalaTest like: "do something" in { evaluating { .... } should not produce[MyException] } But this does not compile and I could not find way of doing it. Is that even possible? Many thanks in advance. This is not possible directly in the latest version of ScalaTest because the method should of EvaluatingApplicationShouldWrapper