HI everyone,
Just looking for a website or pdf reference which has a color palette of the .NET (Visual Studio 2008) foreground colors? (E.g. like AliceBlue, AntiqueWhite, Cyan....)
How would I refer to a hash using the value of a string - i.e.
#!/usr/bin/env ruby
foo = Hash.new
bar = "foo"
"#{bar}"["key"] = "value"
results in
foo:5:in `[]=': string not matched (IndexError)
from foo:5
How do I use the value of bar (foo) to reference the hash named foo? Thanks!
Hi ,
My problem is the following :
I have a class A that inherits from an abstract base class. I override all the virtual functions from the base class, and I have a constructor like this :
A::A(B* b)
{
this->b=b;
}
In the constructor of class B , I have the following piece of code:
A* a=new A(this)
However this line of code gives the…
Hi all,
I have an android application that utilizes another project as a project reference. i've gone into the application options, build path, and then selected the project in project references.
everything builds and deploys fine, but when i try to run the application and instantiate a class in that project, i'm getting a…
Hi
I am using DataContract with preserveObjectReferences set to false (default). Under any circumsatnces will it cause a Circular reference and cause Serialization Exception?
if yes, could you please xplain with a sample scenario?
Thanks
Lijo
i have some picture files that were included in a vb.net project
how do i reference those files in my code?
what it be just filename.ext
or would it be project/filename.ext
or would it be something like environment.getfolderpath.project/filename.ext??
the build action is NONE, and it is to be copied to output folder
How can I pass an array of struct by reference ?
example :
struct Coordinate {
int X;
int Y;
};
SomeMethod(Coordinate *Coordinates[]){
//Do Something with the array
}
int main(){
Coordinate Coordinates[10];
SomeMethod(&Coordinates);
}
Hello,
I am trying to use the http_get function. But I get a undefined reference error. I understands that this means the function can not be found. However I do no know how to fix this? Could somebody help?
Cheers
From the book "Groovy and Grails recipes" I'm using the following code snippet:
String HelloLanguage = "def hello(language) {return \"Hello $language\"}"
However, I get a compiler error "You attempted to reference a variable in the binding or an instance variable from a static context." because language can't be bound.…
As far as i can see in a situation like this:
var x = [];
var y = {};
y.someProp='asd';
This doesnt work:
x.push(y);
What I want to do is add a reference of y to x so that later if I will "delete y;" I want it also to be removed from the array x.
Hi,
On the MSDN, I have found following:
public event EventHandler<MyEventArgs> SampleEvent;
public void DemoEvent(string val)
{
// Copy to a temporary variable to be thread-safe.
EventHandler<MyEventArgs> temp = SampleEvent;
if (temp != null)
temp(this, new MyEventArgs(val));
}
I do not…
A colleague of mine sets reference to null in finally blocks. I think this is nonsense.
public Something getSomething() {
JDBCConnection jdbc=null;
try {
jdbc=JDBCManager.getConnection(JDBCTypes.MYSQL);
}
finally {
JDBCManager.free(jdbc);
jdbc=null; // <-- Useful or not?
…
Can we initialize python objects with statement like this:
a = b = c = None
it seems to me when I did a = b = c = list() will cause circular reference count issue.
Please give your expert advice.
if i have this code in jquery:
var parentDiv = $(this).parent('.copyInstance');
inside this div there is a form.
how do i reference a form element inside this selector? i want something like this
$.post($(parentDiv + " Form").attr('action'), $(parentDiv + " Form").serialize(), function(data) {
});
but…
Hello Iam working in a global int in which a variable will be used later. I've made the global variable like this:
class Foo
{
public static int stream = Bass.BASS_StreamCreateFile(path1.Text, 0, 0, BASSFlag.BASS_DEFAULT);
}
which will be later called like this:
Foo.stream
and it can also…
Hey,
I'm trying to use the Libxl library in my eclipse c/c++ project. Right now I'm using the minGW compiler in eclipse.
With this following code:
Book* book = xlCreateBook();
I get this error:
/src/xls2csv.cpp:22: undefined reference to `xlCreateBookCA'
Any help would be greatly appreciated :)
I want to identify from where a visitor coming to my webpage.Is there anyways to getting that reference in a javascript file.eg: if my website is www.example.com.if user getting this site from google or bing search,then i need to identify that,user from google or bing respectivly.How can i get this in…
In Fluent NHibernate, given an automapped component, is there a convention for setting up a parent reference back to the "holder" of the component?
By having for example a property named Parent or something like that? I can't seem to find any information about how to do it or issues about it.
I'm having problems wrapping my head around this. I have a function
void foo(istream& input) {
input = cin;
}
This fails (I'm assuming because cin isn't supposed to be "copyable".
however, this works
void foo(istream& input) {
istream& baz = cin;
}
Is there a reason that I…
System.DllNotFoundException was unhandled Message=Unable to load DLL 'sqlite3': The specified module could not be found.
I already reference the DLL. I check it on Debug folder and it was there. I also search how to "include" it in the project but they don't specifically explain how to do it.
…
I have a dll installed in GAC. I have not issues reading that assembly from asp.net applications the assembly reference i have done in web.config is able to refer to that assembly.
But in the console application, when i put the below in the app.config file, the solution gets compiled, but i am…
Let us say that we have following array:
my @arr=('Jan','Feb','Mar','Apr');
my @arr2=@arr[0..2];
How can we do the same thing if we have array reference like below:
my $arr_ref=['Jan','Feb','Mar','Apr'];
my $arr_ref2; # How can we do something similar to @arr[0..2]; using $arr_ref ?