parameters

GIMP, python-fu: How to disable “Input image” and “Input drawable”

爷,独闯天下 提交于 2019-12-13 02:39:54
问题 i am confused a little about the art of how gimp generates the gui for python plug-ins. gimp generates two, for my script, needless fields. "Input image" and "Input drawable". how can i disable them? I didn't find anything about it in the standart documetation. my register method: register( "fixPngColors", "fixPngColors", "fixPngColors", "Author", "Author", "2013", "<Image>/plug-ins/BATCH PNG Color Fix", "", [ (PF_DIRNAME, "png_input_directory", "Png directory(INPUT)", ""), (PF_DIRNAME, "png

How to pass the parameter in SQL query from PowerShell

五迷三道 提交于 2019-12-13 02:15:39
问题 I have this code in PowerShell, that executes SQL query to UPDATE my table: $Connection=new-object data.sqlclient.sqlconnection "server=server;database=mydb;trusted_connection=true;" $Connection.open() For ( $i = 0; $i -le $ActID.Length; $i ++ ) { $cmd = New-Object System.Data.SqlClient.SqlCommand $cmd.Connection = $Connection $cmd.CommandText = " update Table set Note = @PATH " $cmd.Parameters.Add("@PATH", $ActID[$i].Values) | Out-Null $cmd.ExecuteNonQuery() } I tried to update the table

MySQL ODBC Parameter issue

ⅰ亾dé卋堺 提交于 2019-12-13 02:13:35
问题 Okay, so I'm getting a weird error with this function. It's saying: Exception Details: System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.27-community-nt]Column 'CommentNumber' cannot be null But I can verify that the variable commentnumber is indeed getting a value. If I put a Response.Write right before the command.Parameters.Add("@CommentNumber", commentnumber);" line I get 1 returned (which is correct). public string commenter(string commentnumber, string

Jenkins parameterized build changing default value

对着背影说爱祢 提交于 2019-12-13 01:50:01
问题 I am using the Jenkins "extended choice parameter" plugin and want to schedule the build to run periodically without human intervention. The parameter for the build is selected from a drop down list. The drop down list for the parameter is generated through an external script and I always want to pick the top most value as the default value. Is there a way to select the top most element as the default value for the scheduled job? I read there are ways to run a job remotely using the url but I

How do I pass an object array into a method as individual parameters?

人走茶凉 提交于 2019-12-13 01:27:24
问题 I have the following code: public class MyClass { private Delegate m_action; public object[] m_args; public MyClass() { } public MyClass(Delegate action, params object[] args) { m_args = args; m_action = action; } public void Execute() { m_action.DynamicInvoke(m_args); } } The problem with this approach is that the m_args is an object itself, and its contents are not being flattened out into individual params entries. How can I fix this? 回答1: I think you are mistaken. The params seems to work

ember 2 parameters in a action of a select menu

岁酱吖の 提交于 2019-12-13 01:26:40
问题 I'm trying to pass more than one argument in an ember action. The problem is that one of the arguments is value='target.value' and apparently Ember doesn't like to add a second one. How can I pass these two parameters? value='target.value' works if I only need one argument. I've tried to write it this way but category is undefined. {{#each selectorsData as |selectorItem|}} <select onchange={{ action selectorItem.action value='target.value' category='selectorItem.name' }}> I've tried this way

Make Stored Procedure parameters cascading in Crystal Reports

戏子无情 提交于 2019-12-13 01:12:00
问题 I don't have a lot of experience using Stored Procedure as a data source for Crystal Reports. My question is that when you connect to an Oracle Stored procedure which has 2 parameters - Country and City, the parameters are already mapped in Crystal individually. Is there a way i can make these parameters cascading i.e. Country > City, either on front end or backend 回答1: After you add a stored procedure to the report, you should see the two parameters listed in the Parameter Fields section in

How-to correctly pass params between Parse Cloud Code and the Client? (httpRequest Example)

Deadly 提交于 2019-12-13 01:06:22
问题 I've seen some examples, read the docs and read other question however I'm still not quite sure where to add/properly add params to be passed between Cloud Code and my Client side correctly. For Instance, Here I am creating a new class from a httpRequest in my Cloud Code In my Cloud Code main.js Parse.Cloud.define("POSTfromCloud", function(request, response) { //runs when Parse.Cloud.run("POSTfromCloud") on the client side is called Parse.Cloud.httpRequest({ method: "POST", headers: { "X

Problem passing parameter to applescript via terminal/bashscript

杀马特。学长 韩版系。学妹 提交于 2019-12-12 23:24:31
问题 I'm trying to control multiple VLC instances via bashscript and applescript - i access them via their pid. I got this working in a small manual test, which works fine: tell application "System Events" set VLC_VGA to application processes whose unix id is 598 repeat with proc in VLC_VGA set the frontmost of proc to true keystroke "p" using {command down} end repeat end tell I now want to dynamically insert the pid (598 or whatever it may be). This is what I have so far - but won't work:

Crystal Reports parameter selection limit?

喜你入骨 提交于 2019-12-12 20:22:22
问题 I'm trying to make a Crystal Reports 11 report off an Oracle database that's grouped by user. I've got over one thousand users. I want to create a parameter field that prompts the person to select which users they would like to view the results for. However my parameter selection field is only showing 221 of the possible users. The users appear in alphabetical order because of the SQL command's Order By statement. I'm wondering if there is a limit to the number of dynamic default values that