脚本

Greasemonkey script is running on every web site [closed]

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I set a greasemonkey script to be included on only one web site: http://example.com/* but it's running on every web site I go too.. I removed it and added it again with only 1 include but it's still running on every page, what could I be doing wrong? 回答1: This is usually caused by a malformed metadata block. There must be no leading space and directives are (usually) case-sensitive. Good: // ==UserScript== // @name YOUR_SCRIPT_NAME // @include http://YOUR_SERVER.COM/YOUR_PATH/* // ==/UserScript== Bad: // ==UserScript== // @name YOUR_SCRIPT

HSQL Create Procedure Syntax doesn't seem to match the documentation

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using HSQL as my in memory test db for running integration tests. In production, I have an oracle 10g database. The idea is to run the db create scripts that I used to create the db in oracle to create the same db in hsql for the integration tests. I'm running into roadblocks regarding differences in syntax, that despite indicating to HSQL that the syntax is oracle, I keep getting stuck on creating stored procedures. My test db bean is defined as such: <bean id="dataSource" class="org.springframework.jdbc.datasource

ElasticSearch run script on document insertion (Insert API)

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Is it possible to specify a script be executed when inserting a document into ElasticSearch using its Index API ? This functionality exists when updating an existing document with new information using its Update API , by passing in a script attribute in the HTTP request body. I think it would be useful too in the Index API because perhaps there are some fields the user wants to be auto-calculated and populated during insertion, without having to send an additional Update request after the insertion to have the script be executed.

Supervisord “exit status 1 not expected” running php script

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having issue try to configure supervisor to run a php script. Running supervisor in debug mode gives me this: 2015-03-09 08:53:06,342 INFO supervisord started with pid 2030 2015-03-09 08:53:06,358 INFO spawned: 'worker1' with pid 2031 2015-03-09 08:53:06,423 INFO exited: worker1 (exit status 1; not expected) 2015-03-09 08:53:06,424 INFO received SIGCLD indicating a child quit 2015-03-09 08:53:07,440 INFO spawned: 'worker1' with pid 2032 2015-03-09 08:53:07,587 INFO exited: worker1 (exit status 1; not expected) 2015-03-09 08:53:07,589

insert content script when page was changed by history.pushState and ajax call

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've faced with the problem with inserting content script into the page which was changed by history.pushState and ajax call. I've found the similar topic at stackoverflow, but that solution doesn't work for me (that solution was in using of chrome.webNavigation.onHistoryStateUpdated and "popstate" event ). Here is a fragment of my manifest: "content_scripts": [ { "matches": ["https://vk.com/audios*", "https://vk.com/al_audio.php*"], "js": ["jquery-2.1.4.min.js", "getListOfSongs.js"] } ] chrome.webNavigation.onHistoryStateUpdated works only

Bootstrap : TypeError: $(…).modal is not a function

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i've been trying to call bootstrap modal from jquery and keep getting this error message : TypeError: $(...).modal is not a function Here is my code : <button id="btnTest" class="btn btn-default">Show Modal</button> <div id="dummyModal" role="dialog" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" data-dismiss="modal" class="close">×</button> <h4 class="modal-title">Error</h4> </div> <div class="modal-body"> <p>Quick Brown Fox Jumps Over The Lazy Dog</p> </div> <div

Multiline YAML string for GitLab CI (.gitlab-ci.yml)

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to write a gitlab-ci.yml file which uses a multi-line string for the command. However, it seems like it is not being parsed. I've tried both the - | and - > with identical results. stages: - mystage Build: stage: mystage script: - | echo -e " echo 'hi'; echo 'bye'; " When it tries to run, it only shows echo -e ' as the script to run, and not the whole multiline string. This causes issues for me. What would be the correct syntax to write something like this? 回答1: Since the problem seems to be related to multi-line scripts not being

`Connection refused` in WebStorm NPM debug configuration

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Bearing in mind that I have only the loosest understanding of what a debugger is really doing, I need help setting up the WebStorm npm debug configuration for an express.js application. Here's me so far-- I click debug with my settings as I think they should be (below): /Users/me/.nvm/versions/node/v4.4.1/bin/node --debug=8090 /Users/me/.nvm/versions/node/v4.4.1/lib/node_modules/npm/bin/npm-cli.js run-script start To debug "start" script, make sure $NODE_DEBUG_OPTION string is specified as the first argument for node command you'd like to

VBS website login script - “Object required” error

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to write my first website login script but always getting an error in line 9 position 9 saying: "Object Required: 'getElementByID(...)' 800A01A8. Here's my code for the real working site so that you may have a try: Call Main Function Main Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_") IE.Visible = True IE.Navigate "https://www.valuedopinions.com/eng/signin" Wait IE With IE.Document .getElementByID("tx_voputilities_pi1[email]").value = "my@email.com" .getElementByID("tx_voputilities_pi1[password]").value =

jScript debugger error, in simple script

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on a local html file, stored on a Win7 machine and opened in IE 9. This html file uses javascript and jStorage. However, when I run, I get the error "SCRIPT5007: Unable to get value of the property 'set': object is null or undefined." This error points to the statement $.jStorage.set("Key", "Hello"); . What am I doing wrong? I've made the html and javascript about as basic as I can, to narrow things down. Here's the html: <!DOCTYPE html> <html> <head> <title>Backlog Tracker</title> <script src="jquery-2.1.1.min.js"></script>