ANT 使用ivy构建时ivy-resolve卡住是什么原因?

[ivy:resolve] :: resolving dependencies :: org.apache.pig#pig;
[ivy:resolve] confs: [compile]
[ivy:resolve] found xmlenc#xmlenc;0.52 in maven2
[ivy:resolve] found com.sun.jersey#jersey-bundle;1.9 in maven2
[ivy:resolve] found com.sun.jersey#jersey-server;1.9 in maven2
[ivy:resolve] found com.sun.jersey.contribs#jersey-guice;1.9 in maven2
[ivy:resolve] found commons-codec#commons-codec;1.4 in maven2
[ivy:resolve] found commons-httpclient#commons-httpclient;3.1 in maven2
[ivy:resolve] found commons-configuration#commons-configuration;1.6 in maven2
[ivy:resolve] found commons-collections#commons-collections;3.2.1 in maven2
[ivy:resolve] found javax.servlet#servlet-api;2.5 in maven2
[ivy:resolve] found;1.1.1 in maven2
[ivy:resolve] found org.mortbay.jetty#jetty;6.1.26 in maven2
[ivy:resolve] found org.fusesource.leveldbjni#leveldbjni-all;1.8 in maven2
[ivy:resolve] found;2.5.0 in maven2
[ivy:resolve] found org.mortbay.jetty#jetty-util;6.1.26 in maven2
[ivy:resolve] found javax.inject#javax.inject;1 in maven2
[ivy:resolve] found javax.xml.bind#jaxb-api;2.2.2 in maven2
[ivy:resolve] found com.sun.xml.bind#jaxb-impl;2.2.3-1 in maven2
[ivy:resolve] found;3.0 in maven2
[ivy:resolve] found;3.0 in maven2
[ivy:resolve] found aopalliance#aopalliance;1.0 in maven2
[ivy:resolve] found org.mortbay.jetty#jsp-2.1;6.1.14 in maven2
[ivy:resolve] found org.mortbay.jetty#jsp-api-2.1;6.1.14 in maven2
[ivy:resolve] found org.apache.hadoop#hadoop-annotations; in fs




weixin_37794056 能不能说详细一点怎么处理,我也是卡住很长时间,求救……
接近 2 年之前 回复
Smox 重启指重启maven服务器
大约 5 年之前 回复
Smox 不是一个问题~~
大约 5 年之前 回复


Csdn user default icon
已经安装了ant,并且执行了ant ivy-bootstrap 然后ant eclipse后一直卡在这个界面几个小时没动.. ![图片说明]( 很崩溃,求求大佬们解决!
使用ant1.10.7编译nutch2.3.1时遇到以下报错: ``` resolve-default: [ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: :: [ivy:resolve] :: loading settings :: file = /usr/local/nutch/ivy/ivysettings.xml [ivy:resolve] [ivy:resolve] :: problems summary :: [ivy:resolve] :::: WARNINGS [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: org.springframework#spring-core;4.0.4.RELEASE: configuration not found in org.springframework#spring-core;4.0.4.RELEASE: 'master'. It was required from org.apache.nutch#nutch;working@lxp-virtual-machine master [ivy:resolve] :: org.springframework#spring-context;4.0.4.RELEASE: configuration not found in org.springframework#spring-context;4.0.4.RELEASE: 'master'. It was required from org.apache.nutch#nutch;working@lxp-virtual-machine master [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS BUILD FAILED /usr/local/nutch/build.xml:468: impossible to resolve dependencies: resolve failed - see output for details Total time: 18 seconds ``` 网上没有找到相关的内容,有没有大神遇到过这个问题,该如何解决呢?谢谢!
Buildfile: /usr/local/apache-nutch-2.3.1/build.xml Trying to override old definition of task javac [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found. ivy-probe-antlib: ivy-download: [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found. ivy-download-unchecked: ivy-init-antlib: ivy-init: init: clean-lib: resolve-default: [ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: :: [ivy:resolve] :: loading settings :: file = /usr/local/apache-nutch-2.3.1/ivy/ivysettings.xml
想向eclipse中导入solr源码,用ivy和ant按步骤操作,在根目录下运行ant eclipse,但根目录下没有.class文件,还需要别的配置么,哪位大哥指点一下.![图片说明](![图片说明]( 提示E:\kaifachajian\solr-4.10.3\build.xml:111: The following error occurred while executing this li ne: E:\kaifachajian\solr-4.10.3\lucene\build.xml:194: The following error occurred while executing this line: E:\kaifachajian\solr-4.10.3\lucene\common-build.xml:438: impossible to resolve dependencies: resolve failed - see output for details
mysql error 2013 skip-name-resolve并没有用
度娘的解决办法无效啊,还是我打开方式不对, ``` # For advice on how to change settings please see # # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the # *** default location during install, and will be replaced if you # *** upgrade to a newer version of MySQL. [mysqld] skip-name-resolve # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 256M # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # These are commonly set, remove the # and set as required. # basedir = D:\MySQL # datadir = D:\MySQL\data # port = ..... # server_id = ..... # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M ``` ![图片说明](
Searching Treasure in Deep Sea 深度搜索
Problem Description A deep-sea salvage company found out that there was a sunken ship in some deep-sea area of the Pacific with a case of priceless treasure in it. The senior leaders concluded as followed: There may be some sea monsters, they may cause some distraction. The company had some most advanced intelligent underwater robots. They were equipped with enough weapons to kill the monster. After they research a map, they got information as follow (according to the Sample Input): S indicated the starting place. E indicated the place of the treasure case. D indicated the doors of the rooms in the ship. K indicated the keys which were needed while opening the doors. H indicated the stairs went up. L indicated the stairs went down. "#" indicated the walls which separated the rooms. Every lowercase in the map indicated a monster. The enclosed space formed by the doors and the walls was called a separated room. Entering a room needed a key K to open a door D. After that, the key could not be used any more, the door would be open for ever, and there would be no need to use the key. The total number of rooms in the ship was not exceeding 30, the total number of the monsters in the ship was not exceeding 26, and the number of the monsters in each room would not exceed 3. There was no monster in the rooms where S and E, H and L were in. The advanced intelligent underwater robot carried a machine gun whose cartridge clip capacity was 100 bullets and enough spare ammunition. It could re-load the bullets if given a chance. The surface of its body was equipped with 100 components. If all the components were destroyed while fighting with the monster, the robot could not function any more and would sink into the sea for ever. If only a part of the components was destroyed, the robot could recover if given a chance.The robot could attack the monsters in two ways; one is feign attack, and the other fierce attack. The feign attack would cause 1 reduction of the monsters' life value, and the fierce attack would cause a certain amount of deduction of the monsters' life value according to the degree of the fierce attack. The robot had 10 kinds of fierce attack tactics at most. Every attack tactics differed in bullet consumption and the certain reduction of the monsters' life value. For example, a certain kind of attack tactics would consume 30 bullets, and reduce 35 life value of the monster. The life of the monster was so limited that when the injuries accumulated to a certain amount it would be killed. Suppose its life value was 100, and every attack would reduce a certain amount of life value. When robot enters the treasure vessel, it searches the rooms one by one. As soon as it encounters the monsters, it will attack the monsters immediately. By consuming a certain amount of ammunition, a certain amount of the life value of the monsters is reduced. And then, the monsters attack the robot and destroy a certain number of robot's parts. Then they attack each other alternately like this. However, each time the robot launches attack firstly. If there are two or more monsters, the robot must kill the first one before another attack, and the monsters won't help each other in the battle. The choice of the order of attack is decisive when a number of monsters are in a room, because it closely relates with the final result of this battle. The robot itself and machine guns it takes possess the capacity of restoration. The robot will re-load 2 bullets when it launches an attack. In the same room, the robot will repair 10 damaged parts of the body surface and re-filled cartridges after it kills a monster. The robot can't leave the room until all monsters are eradicated. At the time he leaves the room, 100 damaged parts are repaired and 100 cartridges are refilled again. It should be noted that, under no circumstances will the robot's parts and bullets of cartridges be more than 100. Now intelligent underwater robot has been put into the sea, gradually approaching the location of the treasure vessel. Whether it can eradicate deep-sea monsters, and return the treasure box is the problem that you are supposed to resolve. Input There are several test cases. The first line of each case has 3 positive integers k, n and m (1 <= k <= 3, 1 <n, m <= 100), indicating that the deep-sea shipwreck is of k floors, each floor is a maze composed by n rows and m columns. (The Sample Input map is seen as below). That is, the maze is composed by characters of n lines, and each line has m characters. The following line has an integer p (0 <= p <= 10), indicating that there are p kinds of fierce attack tactics for the robot. Then there are a lines and each line has two positive integers, indicating the consumption of the number of bullets and reduction of the life value of the monsters as a result of injury by the robot's tactics. Then there is an integer q (0 <= q <= 26) taking up one line to indicate that there are q monsters in the treasure vessel. The following are q lines, and each line has one positive integer, indicating the number of damaged parts of the robot by those q monsters for one attack. Monsters are expressed in lowercase letters which are formed as a sequential increase from latter "a" to the letter "z". For example, when q = 10, then the names of the monsters are a, b, c, d, e, f, g, h, i, j, then the 10 lines of positive integers are the number of destroyed parts of robot as the result of the attack of those 10 monsters. Finally, there are k * n lines, every n lines indicates a floor of the ship, each line has m characters. The K floors are given from high to low. Input is terminated by the end of the file. Output For Each test case, if it can arrive "E" place, then output "Yes", or output "No". Each output takes up one line. Sample Input 1 5 10 0 0 ########## #S #K # E# #  #K #  # #  D  D  # ########## 3 5 10 1 1 10 3 1 2 3 ########## #  #aKKKK# #LKDcKKKK# ####bKKKK# ########## ########## #    DL K# #H ####### #  D  D E# ########## ########## #        # #  H     # #  S     # ########## Sample Output No Yes
![图片说明]( maven第一次创建项目,仓库是我创建的新文件夹,并且在setting.xml中配置了,但是当我创建项目时就会报错Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.1这是什么原因 我上网搜报这种错误是因为配置位置写错,当我已经仔细检查过了,好像没问题, 我是根据黑马程序员的javaweb教程一步一步配的,不知道哪里出了问题 求各位大佬帮帮忙!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
更新pip老是出现下列一大串的文字,我在网上查了许多方法,都没用,有哪位大佬能说一下有什么方法解决这个问题。 这是使用管理员的运行 C:\Windows\system32>python -m pip install --upgrade pip WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='', port=443): Read timed out. (read timeout=15)")': /simple/pip/ Collecting pip Downloading (1.4MB) |█████████████████████▌ | 962kB 2.9kB/s eta 0:02:44ERROR: Exception: Traceback (most recent call last): File "D:\Program Files\python\lib\site-packages\pip\_vendor\urllib3\", line 397, in _error_catcher yield File "D:\Program Files\python\lib\site-packages\pip\_vendor\urllib3\", line 479, in read data = File "D:\Program Files\python\lib\site-packages\pip\_vendor\cachecontrol\", line 62, in read data = File "D:\Program Files\python\lib\http\", line 454, in read n = self.readinto(b) File "D:\Program Files\python\lib\http\", line 498, in readinto n = self.fp.readinto(b) File "D:\Program Files\python\lib\", line 669, in readinto return self._sock.recv_into(b) File "D:\Program Files\python\lib\", line 1241, in recv_into return, buffer) File "D:\Program Files\python\lib\", line 1099, in read return, buffer) socket.timeout: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Program Files\python\lib\site-packages\pip\_internal\cli\", line 188, in main status =, args) File "D:\Program Files\python\lib\site-packages\pip\_internal\commands\", line 345, in run resolver.resolve(requirement_set) File "D:\Program Files\python\lib\site-packages\pip\_internal\", line 196, in resolve self._resolve_one(requirement_set, req) File "D:\Program Files\python\lib\site-packages\pip\_internal\", line 359, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "D:\Program Files\python\lib\site-packages\pip\_internal\", line 305, in _get_abstract_dist_for abstract_dist = self.preparer.prepare_linked_requirement( File "D:\Program Files\python\lib\site-packages\pip\_internal\operations\", line 195, in prepare_linked_requirement unpack_url( File "D:\Program Files\python\lib\site-packages\pip\_internal\", line 1058, in unpack_url unpack_http_url( File "D:\Program Files\python\lib\site-packages\pip\_internal\", line 920, in unpack_http_url from_path, content_type = _download_http_url(link, File "D:\Program Files\python\lib\site-packages\pip\_internal\", line 1152, in _download_http_url _download_url(resp, link, content_file, hashes, progress_bar) File "D:\Program Files\python\lib\site-packages\pip\_internal\", line 861, in _download_url hashes.check_against_chunks(downloaded_chunks) File "D:\Program Files\python\lib\site-packages\pip\_internal\utils\", line 75, in check_against_chunks for chunk in chunks: File "D:\Program Files\python\lib\site-packages\pip\_internal\", line 829, in written_chunks for chunk in chunks: File "D:\Program Files\python\lib\site-packages\pip\_internal\utils\", line 156, in iter for x in it: File "D:\Program Files\python\lib\site-packages\pip\_internal\", line 794, in resp_read for chunk in File "D:\Program Files\python\lib\site-packages\pip\_vendor\urllib3\", line 531, in stream data =, decode_content=decode_content) File "D:\Program Files\python\lib\site-packages\pip\_vendor\urllib3\", line 496, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "D:\Program Files\python\lib\", line 131, in __exit__ self.gen.throw(type, value, traceback) File "D:\Program Files\python\lib\site-packages\pip\_vendor\urllib3\", line 402, in _error_catcher raise ReadTimeoutError(self._pool, None, 'Read timed out.') pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='', port=443): Read timed out. WARNING: You are using pip version 19.2.3, however version 20.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
ERROR: Unable to resolve dependency for' 问题
谁帮我看看是什么原因 ``` compileClasspath': Failed to transform artifact 'espresso-core.aar (androidx.test.espresso:espresso-core:3.1.1)' to match attributes {artifactType=jar}. Show Details Affected Modules: app ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Failed to transform artifact 'runner.aar (androidx.test:runner:1.1.1)' to match attributes {artifactType=jar}. Show Details Affected Modules: app ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Failed to transform artifact 'monitor.aar (androidx.test:monitor:1.1.1)' to match attributes {artifactType=jar}. Show Details Affected Modules: app ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Failed to transform artifact 'espresso-idling-resource.aar (androidx.test.espresso:espresso-idling-resource:3.1.1)' to match attributes {artifactType=jar}. Show Details Affected Modules: app ```
![图片说明]( 请问为什么这四个name字段出现cannot resolve symbol的问题
Android Studio 软件关闭offline work 进去Sync特别慢。
关闭offline work 进去Sync特别慢,比如一个主项目A下面包含了多个库B,C,D ,这时在主项目只添加一个依依赖库需要联网下载(关闭offline work),只要Sync就一直 : Gradle Sync:Resolve dependencise:**B**:DebugUnitTestRuntimeClasspath Gradle Sync:Resolve dependencise:**C**:DebugUnitTestRuntimeClasspath Gradle Sync:Resolve dependencise:**D**:DebugUnitTestRuntimeClasspath 如图:![图片说明]( 一般一个项目库多的话需要1个小时。 我的Setting Gradle 配置如下: ![图片说明]( 我真的不想等那么久了,每次添加一个库都需要1小时来Sync才费时间了。 谢谢你们了。
请问关于 maven 的依赖,在父工程里导入,和在子工程里导入,有什么不同?
![图片说明]( +++ ## 之前我导入依赖都是直接在父工程的pom.xml文件里导入的。 ## 子工程不需要倒任何依赖,直接就可以写代码。 | ## 但是这次写了个 Spring Cloud Config 相关的程序, ## 一直报错。 | | # 做了多次的对比和调试,最后发现有几个依赖一定要写在子工程里,否则会报错。 | | ## 有没有大神知道是怎么回事呢? ++++++ 更新 报错内容: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configClientController': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'eureka.client.service-url.defaultZone' in value "${eureka.client.service-url.defaultZone}" at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties( ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at$doGetBean$0( ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh( ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at org.springframework.boot.SpringApplication.refresh( [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at org.springframework.boot.SpringApplication.refreshContext( [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at com.configclient.ClientApplication_6002.main( [classes/:na] Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'eureka.client.service-url.defaultZone' in value "${eureka.client.service-url.defaultZone}" at org.springframework.util.PropertyPlaceholderHelper.parseStringValue( ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders( ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders( ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders( ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at$processProperties$0( ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject( ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata.inject( ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties( ~[spring-beans-5.2.2.RELEASE.jar:5.2.2.RELEASE] ... 17 common frames omitted ++++++ ## controller ![图片说明](
比如promise.all,我的vscode在我鼠标移上去后会给出这样的提示,我主要看不懂最上面那一行,大概能理解他再告诉我格式,但还是看不太懂,请大手子解答一下,这应该是插件的效果吧,能解答一下具体是哪一款插件吗![图片说明]( 然后还有下面的 => loadimg(src))这种写法,请问这是es6才有的吗,能具体解释一下这样子写遍历的可用方法和注意事项吗 源代码如下,我跟着老师在学习,这个demo是体现所有图片都加载完成后才一起显示的demo ``` const loadImg = (src) => { return new Promise((resolve, reject) => { const img = new Image() img.src = src img.onload = ()=>{ resolve(img) } // img.onload = resolve(img) 不能这么写,包括下面的reject,因为函数带括号就代表着直接执行,那就相当于onload状态还没到的时候,后面的reslove已经执行了 img.onerror = (e) =>{ reject(e) } }) } const imgs = ['','',''] const promises = =>{ return loadImg(src) }) Promise.all( => loadImg(src)) ).then((res) => { console.log('res',res) res.forEach((img) =>{ document.body.appendChild(img) })}) ```
解決vue.runtime.esm.js:619 [Vue warn]: Failed to resolve directive: waves
vue.runtime.esm.js:619 [Vue warn]: Failed to resolve directive: waves ``` <script> import waves from '@/components/directive/waves' export default { components: { Pagination }, directives: { waves } ...... } </script> ```
JavaScript 代码里的“var Lua”、“nsitemsale: function(d, e, a)”分别是什么意思? 及怎么调用“nsitemsale: function(d, e, a)”得到 “var c”的值?
``` var Lua = { nsitemsale: function(d, e, a) { var b = "nsenitemsale"; var c = d.luaUrl + "/" + b + "_" + d.partNumber + "_" + d.vendorCode + "_" + + "_" + d.version + "_" + d.provinceId + "_" + d.lescityId + "_" + d.lesdistrictId + "_" + d.itemTypeFlag + "_" + d.vendorT + "_" + d.vendorFT + "_" + d.userLevel + "_" + d.reallDistrict + "_" + d.mdmCityCode + "_" + d.barcode + ".html"; promiseFactory.changePromiseItemSale($.Deferred()); $.ajax({ url: c, dataType: "jsonp", jsonp: "callback", jsonpCallback: "wapData", cache: false, error: function(f, h, g) { if (a) { a() } }, success: function(f) { if (f && f.code != "200") { if (typeof sendSAMessageV2 == "function") { sendSAMessageV2("Icps", "2", "pds-spxq-2firstIoError", "四级页第一个接口异常") } } if (f && { sn.allpowerful =; sn.luaItemType =; sn.earliestArriveDate = ""; sn.imageDoamin = ? : ""; if ( && { sn.earliestArriveDate = } } promiseFactory().itemSale.resolve(); $.when(promiseFactory().vip, promiseFactory().itemSale).then(function() { if (e) { e(f) } }) } }) }, detail: function(d, e, a) { var b = "nsendetail"; var c = d.luaUrl + "/" + b + "_" + d.partNumber + "_" + d.vendorCode + "_" + d.lescityId + "_" + d.lesdistrictId + "_" + + "_" + d.cateGoryCode + "_" + d.catalogId + "_" + d.price + "_" + d.snslt + "_" + d.proviceIdP + "_" + d.salesOrgP + "_" + d.ownerPlaceP + "_" + d.vendor + "_" + d.netPrice + "_" + d.fixedFlag + "_" + d.passPartnumber + "_" + d.version + "_" + d.priceType + "_" + d.brandCode + "_" + d.pckMsg + "_" + d.brandId + "_" + d.cateoryId + "_" + d.itemType + "_" + d.luaItemType + "_" + d.earliestArriveDate + "_" + d.allpowerful + "_" + d.mdmCityCode + "_" + d.custno + "_" + d.detailWarrList + "_" + d.twocategoryId + "_" + d.memberType + "_" + d.vipPrice + "_" + d.parminalNo + "_" + d.marketVipPrice + "_" + d.marketVipPriceType + "_" + d.mktActStartTime + "_" + d.mktActEndTime + "_" + d.ybPrice + "_" + d.bigSmallFlag + "_" + d.o2oCarFlag + "_" + d.userLevel + "_" + d.pgPrice + "_" + d.govPrice + "__" + d.rental + "__" + d.jwMemberType + "_" + d.jsdStoreCode + "_" + d.jsdSupplierCode + "_" + d.mdJwd + "_" + d.shJwd + "_" + d.bookCanSave + ".html"; $.ajax({ url: c, dataType: "jsonp", jsonp: "callback", jsonpCallback: "detailCommonLogic", cache: true, error: function(f, h, g) { if (a) { a() } }, success: function(f) { if (e) { e(f) } } }) }, }; ``` JavaScript 代码里的“var Lua”、“nsitemsale: function(d, e, a)”分别是什么意思? 及怎么调用“nsitemsale: function(d, e, a)”得到 “var c”的值? 谢谢大神指教
Showstopper 代码编写
Problem Description Data-mining huge data sets can be a painful and long lasting process if we are not aware of tiny patterns existing within those data sets. One reputable company has recently discovered a tiny bug in their hardware video processing solution and they are trying to create software workaround. To achieve maximum performance they use their chips in pairs and all data objects in memory should have even number of references. Under certain circumstances this rule became violated and exactly one data object is referred by odd number of references. They are ready to launch product and this is the only showstopper they have. They need YOU to help them resolve this critical issue in most efficient way. Can you help them? Input Input file consists from multiple data sets separated by one or more empty lines. Each data set represents a sequence of 32-bit (positive) integers (references) which are stored in compressed way. Each line of input set consists from three single space separated 32-bit (positive) integers X Y Z and they represent following sequence of references: X, X+Z, X+2*Z, X+3*Z, …, X+K*Z, …(while (X+K*Z)<=Y). Your task is to data-mine input data and for each set determine weather data were corrupted, which reference is occurring odd number of times, and count that reference. Output For each input data set you should print to standard output new line of text with either “no corruption” (low case) or two integers separated by single space (first one is reference that occurs odd number of times and second one is count of that reference). Sample Input 1 10 1 2 10 1 1 10 1 1 10 1 1 10 1 4 4 1 1 5 1 6 10 1 Sample Output 1 1 no corruption 4 3
idea 使用gradle 构建 报can't resolve symbol 'mavenBom'
本地测试没有问题,但是部署上服务器后,出现部分地址能访问,但是某些JSP页面找不着 ERROR ErrorPageFilter:225 - Cannot forward to error page for request [/qrCode/statement] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting to false 本地测试一点问题没有,Jenkins,部署完成后,访问时出现这个问题,但是也有些网也能访问 是URL的问题,还是什么原因呢个,请大神指导1
Linux服务器:64G内存、320G硬盘、20M带宽;nginx、PHP、MySQL MySQL数据量在1亿左右。现在并发是10000,宝塔后台负载状态一直都是100%,业务处理/数据访问比较多【数据库增删改查频繁】。服务器运行一段时间之后MySQL崩溃了,重启MySQL之后,命令链接mysql -uroot -p 输入密码后需要很久才能连接到数据库,有时还会卡死导致无法连接数据库。 nginx配置图 ``` user www www; worker_processes auto; error_log /www/wwwlogs/nginx_error.log crit; pid /www/server/nginx/logs/; worker_rlimit_nofile 51200; events { use epoll; worker_connections 51200; multi_accept on; } http { include mime.types; #include luawaf.conf; include proxy.conf; default_type application/octet-stream; server_names_hash_bucket_size 512; client_header_buffer_size 32k; large_client_header_buffers 4 32k; client_max_body_size 50m; sendfile on; tcp_nopush on; keepalive_timeout 60; tcp_nodelay on; fastcgi_connect_timeout 100; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_buffer_size 64k; fastcgi_buffers 4 64k; fastcgi_busy_buffers_size 128k; fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; gzip on; gzip_min_length 1k; gzip_buffers 4 16k; gzip_http_version 1.1; gzip_comp_level 2; gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml; gzip_vary on; gzip_proxied expired no-cache no-store private auth; gzip_disable "MSIE [1-6]\."; limit_conn_zone $binary_remote_addr zone=perip:10m; limit_conn_zone $server_name zone=perserver:10m; server_tokens off; access_log off; ``` MySQL配置文件 ``` #password = your_password port = 3306 socket = /mysql_log/mysql.sock [mysqld] binlog_cache_size = 256K thread_stack = 512K join_buffer_size = 8192K query_cache_type = 0 max_heap_table_size = 2048M port = 3306 socket = /mysql_log/mysql.sock datadir = /www/server/data default_storage_engine = InnoDB performance_schema_max_table_instances = 400 table_definition_cache = 400 skip-external-locking key_buffer_size = 1024M max_allowed_packet = 100G table_open_cache = 2048 sort_buffer_size = 4096K net_buffer_length = 4K read_buffer_size = 4096K read_rnd_buffer_size = 2048K myisam_sort_buffer_size = 256M thread_cache_size = 256 query_cache_size = 0M tmp_table_size = 2048M sql-mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES explicit_defaults_for_timestamp = true #skip-name-resolve max_connections = 500 max_connect_errors = 100 open_files_limit = 65535 wait_timeout=100 interactive_timeout=100 #log-bin=mysql-bin #binlog_format=mixed server-id = 1 expire_logs_days = 1 slow_query_log=1 slow-query-log-file=/www/server/data/mysql-slow.log long_query_time=3 #log_queries_not_using_indexes=on early-plugin-load = "" innodb_data_home_dir = /www/server/data innodb_data_file_path = ibdata1:10M:autoextend innodb_log_group_home_dir = /www/server/data innodb_buffer_pool_size = 4096M innodb_log_file_size = 2048M innodb_log_buffer_size = 0M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50 innodb_max_dirty_pages_pct = 90 innodb_read_io_threads = 32 innodb_write_io_threads = 32 [mysqldump] quick max_allowed_packet = 500M [mysql] no-auto-rehash [myisamchk] key_buffer_size = 1024M sort_buffer_size = 16M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] #interactive-timeout ```
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
MyBatis 是一款优秀的持久层框架,它支持定制化 SQL、存储过程以及高级映射。MyBatis原本是apache的一个开源项目iBatis, 2010年该项目由apache software foundation 迁移到了google code并改名为MyBatis 。2013年11月MyBatis又迁移到Github。
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip installselenium -i ...
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca...
Python爬虫精简步骤1 获取数据
爬虫,从本质上来说,就是利用程序在网上拿到对我们有价值的数据。 爬虫能做很多事,能做商业分析,也能做生活助手,比如:分析北京近两年二手房成交均价是多少?广州的Python工程师平均薪资是多少?北京哪家餐厅粤菜最好吃?等等。 这是个人利用爬虫所做到的事情,而公司,同样可以利用爬虫来实现巨大的商业价值。比如你所熟悉的搜索引擎——百度和谷歌,它们的核心技术之一也是爬虫,而且是超级爬虫。 从搜索巨头到人工...
Python绘图,圣诞树,花,爱心 | Turtle篇
每周每日,分享Python实战代码,入门资料,进阶资料,基础语法,爬虫,数据分析,web网站,机器学习,深度学习等等。 公众号回复【进群】沟通交流吧,QQ扫码进群学习吧 微信群 QQ群 1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle()...
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东...
一、背景 二、爬取数据 三、数据分析 1、总人口 2、男女人口比例 3、人口城镇化 4、人口增长率 5、人口老化(抚养比) 6、各省人口 7、世界人口 四、遇到的问题 遇到的问题 1、数据分页,需要获取从1949-2018年数据,观察到有近20年参数:LAST20,由此推测获取近70年的参数可设置为:LAST70 2、2019年数据没有放上去,可以手动添加上去 3、将数据进行 行列转换 4、列名...
1.Javascript 语法.用途 javascript 在前端网页中占有非常重要的地位,可以用于验证表单,制作特效等功能,它是一种描述语言,也是一种基于对象(Object)和事件驱动并具有安全性的脚本语言 ...
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o...
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ...... ...
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!...
木马概述 灰鸽子( Huigezi),原本该软件适用于公司和家庭管理,其功能十分强大,不但能监视摄像头、键盘记录、监控桌面、文件操作等。还提供了黑客专用功能,如:伪装系统图标、随意更换启动项名称和表述、随意更换端口、运行后自删除、毫无提示安装等,并采用反弹链接这种缺陷设计,使得使用者拥有最高权限,一经破解即无法控制。最终导致被黑客恶意使用。原作者的灰鸽子被定义为是一款集多种控制方式于一体的木马程序...
前言 目前每天各大平台,如腾讯、今日头条都会更新疫情每日数据,他们的数据源都是一样的,主要都是通过各地的卫健委官网通报。 以全国、湖北和上海为例,分别为以下三个网站: 国家卫健委官网: 湖北卫健委官网:
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。 再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。 下文是原回答,希望能对你能有所启发。 如果我说,这个世界上人真的分三六九等,...
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合...
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名...
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计...
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允许使用这...
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧???? 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升自...
1.Matlab实现粒子群算法的程序代码: matlab代码求解函数最优值: 讲解通俗易懂,有数学实例的博文:
很多人知道爬虫,也很想利用爬虫去爬取自己想要的数据,那么爬虫到底怎么用呢?今天就教大家编写一个简单的爬虫。 下面以爬取笔者的个人博客网站为例获取第一篇文章的标题名称,教大家学会一个简单的爬虫。 第一步:获取页面 #!/usr/bin/python # coding: utf-8 import requests #引入包requests link = "http://www.santostang....
前端JS初级面试题二 (。•ˇ‸ˇ•。)老铁们!快来瞧瞧自己都会了么
1. 传统事件绑定和符合W3C标准的事件绑定有什么区别? 传统事件绑定 &lt;div onclick=""&gt;123&lt;/div&gt; div1.onclick = function(){}; &lt;button onmouseover=""&gt;&lt;/button&gt; 注意: 如果给同一个元素绑定了两次或多次相同类型的事件,那么后面的绑定会覆盖前面的绑定 (不支持DOM事...
相关热词 c# 为空 判断 委托 c#记事本颜色 c# 系统默认声音 js中调用c#方法参数 c#引入dll文件报错 c#根据名称实例化 c#从邮件服务器获取邮件 c# 保存文件夹 c#代码打包引用 c# 压缩效率