scripting

'TestString' is not declared. It may be inaccessible due to its protection level. (BC30451) [closed]

和自甴很熟 提交于 2019-12-19 04:12:32
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am trying out some on the fly code compilation using the VBCodeProvider class. What I want to be able to do is modify a public variable in my assembly

'TestString' is not declared. It may be inaccessible due to its protection level. (BC30451) [closed]

余生长醉 提交于 2019-12-19 04:12:08
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am trying out some on the fly code compilation using the VBCodeProvider class. What I want to be able to do is modify a public variable in my assembly

the HTML script tag and non-JS content - Firefox

眉间皱痕 提交于 2019-12-19 04:08:46
问题 It appears this code will request the file in Chrome and IE but not in Firefox. <script type="text/my-custom-mime-type" src="test.ashx"> </script> Is there a some spec that says browsers should only process JavaScript related mime-types? I know IE probably supports this because of the history with vbscript. Once you have "content" like this downloaded how can you get access to it? Does JavaScript/jQuery/? have some way of getting at this. UPDATE So there is 2 parts to question. Sounds like

Emacs M-x commands for invoking “GUI-style” menus

人走茶凉 提交于 2019-12-18 21:29:10
问题 Question: How could I find out the M-x equivalent commands for doing GUI-based operations in Emacs, in those cases where my Emacs-variant uses OS-specific desktop functionality? Background: Conventional understanding states that everything in Emacs is a command, and that commands can be invoked via M-x, as long as you know the name of the command. Assuming this statement is correct, what is the way to find the name of the commands used to trigger the "GUI-style" menus in a "desktop" based

find and replace string in a file

a 夏天 提交于 2019-12-18 19:09:30
问题 I'm trying to find and replace a string in a folder of files. Could someone possibly help me? My script is as follows: #!/bin/bash OLD="This is a" NEW="I am a" DPATH="/home/user/test/*.txt" BPATH="/home/user/test/backup/foo" [ ! -d $BPATH ] && mkdir -p $BPATH || : for f in $DPATH do if [ -f $f -a -r $f ]; then /bin/cp -f $f $BPATH sed "s/$OLD/$NEW/g" "$f" else echo "Error: Cannot read $f" fi done Now this seems to find the string 'This is a' and replaces with 'I am a', but this only prints to

find and replace string in a file

纵然是瞬间 提交于 2019-12-18 19:07:58
问题 I'm trying to find and replace a string in a folder of files. Could someone possibly help me? My script is as follows: #!/bin/bash OLD="This is a" NEW="I am a" DPATH="/home/user/test/*.txt" BPATH="/home/user/test/backup/foo" [ ! -d $BPATH ] && mkdir -p $BPATH || : for f in $DPATH do if [ -f $f -a -r $f ]; then /bin/cp -f $f $BPATH sed "s/$OLD/$NEW/g" "$f" else echo "Error: Cannot read $f" fi done Now this seems to find the string 'This is a' and replaces with 'I am a', but this only prints to

SSIS Execute Process Task Python script

无人久伴 提交于 2019-12-18 15:48:44
问题 I'm trying to execute a python scrip from SSIS Execute Process Task. I followed all the tutorials of how to do this an still the script is failing from the start. when i execute the python script out of SSIS it runs perfectly. This is my Python scrip: import sys import gender_guesser.detector as gender import xml.etree.cElementTree as ET from xml.etree.ElementTree import ParseError try: input("Press Enter to continue...") except SyntaxError: pass tree = ET.parse('user.xml') root = tree

mathematica start front end and eval notebook from command line

妖精的绣舞 提交于 2019-12-18 15:46:54
问题 Is there a way to start up a mathematica front end (GUI) from a (Windows) command prompt and have it eval a notebook without further user action? even though mathematica.exe takes the -run and -initfile options they dont work the same as they do with math.exe. (-run ''<<file.m'' wants to open a file named ''<<file.m'' for example) Thanks. The first answer looks promising, however I get FrontEndObject::notavail A front end is not available (per docs it is "UseFrontEnd" by the way.) Perhaps a

Equivalent to Unix eval in Windows

我是研究僧i 提交于 2019-12-18 15:27:29
问题 Was wondering how you'd do the following in Windows: From a c shell script (extension csh), I'm running a Python script within an 'eval' method so that the output from the script affects the shell environment. Looks like this: eval `python -c "import sys; run_my_code_here(); "` Was wondering how I would do something like the eval statement in Windows using Windows' built in CMD shell. I want to run a Python script within a Windows script and have the script run what the Python script prints

F# programmatically running .fsx script file

大憨熊 提交于 2019-12-18 13:39:15
问题 I'm sure this must be something really easy, but I can't seem to make it work. Let's say I have an .fsx script file and want to cause it to be executed programmatically. I'm guessing someone must have blogged about this at some point, but I can't seem to find an example that performs my simple scenario. Basically, I want to programmatically duplicate what happens when you right click on an .fsx file and choose "Run with F# Interactive..." 回答1: As asked in a comment, you can set