Dreadful title right? Thought I'd see if Stack overflow is quicker than me testing something while I get a thousand interruptions from other work :)
I'm updating an old VB net application and trying to refactor some of the logic as I go. The app looks for data from a single date across a few tables and writes that view to a file.
Writi...
Hi,
I'm trying to call a different tooltip according to an anchor tag's id attribute. My JavaScript code is as follows:
$(function()
{
$('.tippy').qtip(
{
content: {
url: "http://mydomain.com/product/mini/" + $(this).attr("id") // doesn't work
},
hide: { when: 'mouseout', fixed: true },
positi...
I'm new to VB.Net. I'm using a library call setInstance(ByVal instance As UInteger) in my VB.Net code. The parameter I need to pass is an Integer. Is there anything I need to do to convert the integer parameter to an unsigned integer? The number is garunteed to be positive and less than 10.
...
I'm having trouble with sprite animation in XNA that appears to be caused by a struct passed as a reference value. But I'm not using the ref keyword anywhere. I am, admittedly, a C# noob, so there may be some shallow bonehead error in here, but I can't see it.
I'm creating 10 ants or bees and animating them as they move across the scree...
Hi,
In my Cake application I have a controller "completed_projects". Its index action takes no arguments and lists some projects. Different pages can be accessed by
example.com/completed_projects/index/page:23 etc.
I want to make the url's like this:
example.com/portfolio/page23
Obviously I need to make some routes for this. I've tri...
How can I find or list PowerShell's -as family of parameters?
So far I found -as Type e.g. -as[Int]
Also I have found -asHashTable
My questions is what other -as parameters are available?
...
Hello,
My question is related to C# function parameters. I'm used to C++ where parameters are values by default unless you explicitly specify them as references. So, in C#, how do I make function parameters to be passed by value instead of by reference? Actually, I just want to know how to pass a variable, and not have that variable mod...
HI,
I'm using the Nivo Slider, a jQuery plugin allowing to create slideshow. He's perfect but I've just a little problem. Each pictures have an id (or another element like rel for example) and I would like to give this parameter in the callback function of Nivo (beforeChange: function(){}).
But the problem, in this beforeChange callbac...
Hey,
I have an abstract class Medium, where one of the datamembers is an enum.
private Taal talenOndertiteling[];
public enum Taal {
NEDERLANDS, FRANS, DUITS, ENGELS, SPAANS, ITALIAANS
}
public Taal[] getTalenOndertiteling() {
return talenOndertiteling;
}
public void setTalenOndertiteling(Taal[] talenOndertiteling) {
this....
I have the strange aversion to passing in multiple ID parameters to a single stored procedure. For example, this feels just wrong:
GetMyObject(ListofIDs, OtherParam1, OtherParam2, ...)
I understand HOW to do it (correctly if I must).. but I don't feel like I should do it. I feel like it defeats the purpose of a "get item" stored proced...
Let's say I have methodA
def methodA
note = Note.find(params[:id])
note.link = params[:link]
note.linktype = params[:linktype]
note.save
redirect_to(notes_url)
end
When I call this method from a view like this, it works fine
<%= link_to image_tag(w.link, :border =>0), methodA_path(:linktype => w.linktype, :lin...
I am trying to override the window.alert to pass multiple parameters.
Please someone explain me why for/in inherits Array.prototype.tester's body into list?
Thank you very much.
Array.prototype.tester = function() {
return 'tester';
}
window.alert = function() {
var args = Array.prototype.slice.call(arguments);
var list ...
Please solve/answer problems to get program to work. I am not fully understanding the passing variables by reference or value and I think that is what is making this so hard. So if you could fix the program. I've been at this for the last 2 days. I have included my full code.
paxdiablo suggested this and I'm trying to do what they said
...
Possible Duplicate:
C++ passing variables in from one Function to the Next.
The Program is working but when it comes to getUserData it asks for the same information 4 times and then displays the results with negative numbers. I used test numbers for number of rooms 1, 110 for sqrt feet in the room, 15.00 for cost of paint.
/...
I have an URL and need to extract a part of it.
The url is like this:
http://website.com/get.php?url=http://www.website2.com/index.html?articleID=123456
And I need to extract this part:
http://www.website2.com/index.html?articleID=123456
How would I do this in Objective-C?
...
I have a list of functions as:
FUNCS=[{'someattr':'somedetail', 'func':baseapp.module.function_name}, {...}, ...]
Unfortunately it doesnt work if i try calling the func with
FUNCS[0]['func']
I get the error
Tried function_name in module baseapp.module Error was: 'module' object has no attribute 'function_name'
I presume there mus...
Hi.
I want to call a dll function in Delphi 2010. This function take a string and write it to a printer with USB interface. I do not know in which language the dll is developed with. According to the documentation the syntax of the function is:
int WriteUSB(PBYTE pBuffer,DWORD nNumberOfBytesToWrite);
How can I declare and use my func...
I am writing a Clojure library and I am wondering what is the best practice for setting configuration parameters of a library.
Many libraries (like those in clojure-contrib) use global level parameter like *buffer-size* which the user can set by calling set! on them. But this does not seems to be best way to me as it creates a global s...
Basically I'm trying to alias:
git files 9fa3
...to execute the command:
git diff --name-status 9fa3^ 9fa3
but git doesn't appear to pass positional parameters to the alias command. I have tried:
[alias]
files = "!git diff --name-status $1^ $1"
files = "!git diff --name-status {1}^ {1}"
...and a few others but those did...
Hello!
I am looking for some simple and efficient parameter container that would act like a in-memory-xml file representation (or ini-file, as another sample).
I mean, basically it could store sections and sets of parameters for each section, have easy accessors like GetValue("ParameterName") and simple return value casting.
It would ...