parameters

Using JSON as config in flashembed of jQuery Tools

jQuery Tools has flashembed which can pass a JSON object as a config parameter to the embedding Flash object. See the official page. But it does not tell exactly how to get the JSON object in Flash. And that's the question... How?? ...

MSAccess 2003 - VBA for passing a value from one form to another

So how can I pass a value from one form to another? For example: The user select's an organization from a list and this opens up a trip form that allows a user to enter various information regarding the trip. At one place I would like to add another little pop up form where they can enter contact information (just a name and phone for PO...

Get Caller Absolute Path - Bash Mac OS X Leopard

I am running a jar file from within an app bundle on Mac OS X Leopard. I need to pass into the jar a parameter. The parameter is the absolute path of the file which called the app bundle. I have my short bash script below. I know $0 gives the absolute path to the app bundle itself. Does anyone know how to store in a variable the path I...

Standard Library Containers with additional optional template parameters?

Having read the claim multiple times in articles - I want to add this question to Stackoverflow, and ask the community - is the following code portable? template<template<typename T, typename Alloc> class C> void f() { /* some code goes here ... */ } int main() { f<std::vector>(); } Is the implementation that supplies std::vector...

GWT Change URL after processing request parameters

I want to support linking with url request parameters in my GWT app. Example http://host/app?action=A&amp;p1=v1&amp;p2=v2 I am able to process the action=A & other params, but once I am done with that, I want to change the URL to remove them. The problem is that once the user comes to the webpage, for completing the "action" with para...

Use SELECT AVG with parameters "SELECT AVG(@parameter)" SQL!!

I'm working with a table of float values, but I enter the column by parameter SELECT AVG(@var) AS Aver FROM ListVal When I enter the column name (the parameter) I recieve an error: That the datatype nvarchar is not valid for the avg operator. But all the columns are float. Help!!! please ...

How do you effectively unit test the parameters of dynamic languages?

This answer hit a nerve with me on something I have never understood with how you handle parameter types in dynamic languages vs. a static language (my perspective being informed or deformed - as you prefer) from Java. Given a method foo that takes a parameter bar in a dynamic language, there is no enforcement at compile time of the typ...

Bake Flash swf using dynamic parameters on server-side?

For examples sake, lets say I have a Flash SWF on my web server. The SWF is quite simple, it just displays a text string in some font in the middle of the stage. The SWF takes certain parameters, one of which determines what text string is displayed. So if the parameter's value is "hello world!" the SWF would display the text "hello worl...

M/S - Access 2007 - Displaying Values of Parameters in a FORM

I'm just learning Access 07 and coding so, this may be a very simple question: I have a FORM that I want to display the value of Parameters so that I know what I have inputed. Similar to [Start Date] & [End Date]. "Your query will start at 07/01/2009 and end on 07/10/2009." I can do this in a REPORT "Parameters!Start Date.value" but...

How to pass a parameter to a windows service once and for all at install instead of each start

We have a Windows Service application that can accept command line parameters like: MyService -option So far, when we want to start the service with a parameter, we either do it manually from the Service Properties dialog (in the Start parameters box) or with the command sc start MyService -option What we would like is a way to...

do you have to specify the length of the type in a sproc parameter?

Does SQL Server allow you to declare stored procedure parameters like this? @username NVARCHAR Or do you always have to specify a size like this? @username NVARCHAR(100) ...

Running an executable with parameters in C++ and get the return value;

How do you run an executable with parameters passed on it from a C++ program and how do you get the return value from it? Something like this: c:\myprogram.exe -v ...

Replacing a querystring parameter value using mod_rewrite

I would like to map this: `http://www.example.com/index.php?param1=value1&amp;param2=value2&amp;param3=value3` (etc. ad infinitum) to `http://www.example.com/index.php?param1=newvalue1&amp;param2=value2&amp;param3=value3` (etc.) ie. just change the value of a single parameter in the querystring. I know what the old value is, so I a...

What is the maximum number of parameters I can use in a subsonic 2.1+ 'IN' statment?

I think i am hitting a limit. I have two IN statements in the SQL generated by subsonic. Or am I hitting the varchar ( 8000 ) limit? When I send i fewer parameters, the statement returns results, when I send in more, the result set comes back blank. Below is what I am catching in SQL Profiler: exec sp_executesql N'/* GetDataSet() */ ...

When using a PHP function that requires a callback, how do we pass a custom parameter to the callback?

For example, http://www.php.net/manual/en/function.preg-replace-callback.php <?php // this text was used in 2002 // we want to get this up to date for 2003 $text = "April fools day is 04/01/2002\n"; $text.= "Last christmas was 12/24/2001\n"; // the callback function function next_year($matches) { // as usual: $matches[0] is the complet...

Query Parameter and Category Parameter?

Hi all, in the example URL below, what would the QP and CP be? http://vivisimo.com/vivisimo/cgi-bin/query-meta?radiobutton=site&amp;v%3Aproject=vivi&amp;query=enterprise+search&amp;submit.x=0&amp;submit.y=0&amp;submit=Submit Would QP be "query" and CP be "site"? Or, would it be "vivi&query" and "site&v%3Aproject"? Thanks for any help!...

CakePHP: best way to call an action of another controller with array as parameter?

In a controller, what is the most appropriate way to call the action of another controller and also pass an array as parameter? I know that you can use requestAction to call actions within other controllers. But is it possible to pass arrays as parameters using request action? And no, I do not want to put the action in the App Controll...

What are these GCC/G++ parameters?

Hello, everyone. I've been using the UVa Online Judge to solve some programming challenges, and, when submitting my solutions, I'm told the judge will compile my code using the following parameters to GCC/G++ that I don't know: -lm -lcrypt -pipe -DONLINE_JUDGE. What do they do? Thank you very much in advance! ...

How to get the parameter value of the currently active component in Joomla

I'm creating a custom template, and i have added a parameter 'headerpic' to various views. <param name="headerpic" type="filelist" default="" label="Header Image" description="Select the image for the header" directory="images/headers" filter="\.jpg" /> The client can then change the header image for each page from a drop down list. ...

Method with Object argument won't accept anything other than an Object

We have a VB.net function with the following signature in class InitializerFactory: Public Shared Function Create(ByRef ui As Object) As IModeInitializer I'm attempting to test this function by passing in a mock of ui (using Rhino Mocks): MainForm ui = mocks.StrictMock<MainForm>(); IModeInitializer item = InitializerFactory.Create(re...