Is there a way to change the window title of my SQL Server Management Studio to display current server I'm connected to?
To know which DB I'm connected to, I have to scroll all the way up to see the name of the server and it's a pain..
Maybe there's an available plug-in or something.
I would like to put a large variable definition in a separate file for the sake of getting it out of the way. I must be doing something wrong though, because my puts call isn't putting anything out.
my_class.rb:
class foobar
def initialize
require 'datafile.rb'
puts @fat_data
end
end
datafile.rb:
@fat_data = [1,2,3,4,5,6,7,8,9,10]
Can you use require this way?
Say there are multiple requests in a integration test, some of them are sphinx calls(locator for example).
Should we just stub out the entire response of these sphinx call, or, since it is a integration test, we want to excise the entire test without stubbing. If that is the case, how do we still keep test independent in the situation when sphinx fails, no internet connection, or third party server non-responsive.
Give reasons.
Thanks
Hi All,
Does everyone know how to create custom button in the excel that display simple window form in csharp language?
For example:
A button called "Show" in the excel toolbar that show messagebox pop up.
I'm writing a Java program that will be used on both Windows and Mac. In the program, I'm using FFMPEG to convert a MOV file to an FLV. On Windows, it's no problem -- simply call the command. But on Mac, I'm not quite sure what to do. Does the user really have to install FFMPEG on their machine, or can it somehow be included in the Java application?
Thanks for any help/guidance!
I'm trying to retrieve all the addresses from the address book and display them in a tableview, but I am having trouble understanding the structure of the dictionary for which street addresses are returned. Does anyone know of a tutorial or relevant code snippet for extracting the street address(es) of contacts in the AddressBook?
Does anyone know what C# compiler does under the hood with the following code?
dict = new Dictionary<int, string>()
{
{ 1, "value1" },
{ 2, "value2" }
}
It is not clear to if it creates the KeyValuePair instances and call the Add method, or do something more optimized. Does anyone of you know it?
Im using like this:
def child_render
super_render {
print GridModule.new.render
}
end
def super_render
@yield_value = yield
end
and got: Cannot yield from a Proc type filter. The Proc must take two arguments and execute #call on the second argument.
hi.
i am new to this cubes concept in sqlserver . i need to connect to cubes and and query and get an result and display that result in grid view
any help would be great telling how to connect to an cube, articles on it, code any thing that can help me to achieve the result
thank you.
hi i am integrating authorize.net AIM api into my shopping cart. i have a developer account from auth.net and i am working locally. when i do auth.net api call, i get
SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
i assume it's because i dont have ssl on my local machine. how do i get over this so i can test on my local machine? thank you
Hello
If have a new project (ProjNew ) where i want to put several classes, that are on other project (ProjOld).
The problem is i want to maintain the old classes marked with Obsolete to avoid running all my projects and check if they using it.
But in that way this may throw a ambiguos class name error because i didn't explicity call by namespace..
There is an way to say in the obsolete what assymbly to use in ambiguity case=
I have an event handler that I want to be connected to a button through xml.
Basically, I want to define it as a string in my xml file, then use the property inspector to select the name of the handler for my button (the "on Click" property).
How do I define a call to the function in the string?
I'm using Qwt for some scientific graphing, and I'm working with some fairly small numbers, the smallest being around 1.0e-22.
I'm trying to call
setAxisScale(xaxis, xmin, xmax) //xmin = 0, xmax = 2.0e-10
But when I do, the application locks up.
I haven't found anything in the documentation that refers to a minimum value. Xmin and xmax are both doubles, so that shouldn't be a problem.
Is this a bug in Qwt, or am I doing something wrong?
Thanks in advance
I have a problem with Flex module. I want to access url variables by this.loaderInfo.url, i call a function in createionComplete handler of module and sometimes it works and sometimes it doesn't. (Can't access... null). Any suggestions?
I have a windows form application that when it starts needs to see if the user has Excel installed on the computer and if not display a message informing user that part of functionality will be disabled.
Is their an easy way to perform this check?
Working in Visual Studio 2008 with VB.Net
I need to update an old classic asp, and I have to call a function that normally returns an array, but under certain circumstances might return either Nothing or an undefined value.
How can I check that the result actually returns an array?
Is there a way to cache widgets. For example if you place your widgets on high volume websites then each time when someone access that site, a call will be made to your server to get the widget code. This way my server can get too much overloaded just to display the widget . Can I cache the widget HTML code and place it on some server like Akamai. Any suggestions or tips highly appreciated.
Thanks in advance.
When this code is executed:
var a = 24
var b = Array (1, 2, 3)
a = 42
b = Array (3, 4, 5)
b (1) = 42
I see three (five?) assignments here. What is the name of the method call that is called in such circumstances?
Is it operator overloading?
i pass int to next activity using this code
Intent intent = new Intent(A.this, B.class);
intent.putExtra("selectedType", i);
startActivity(intent);
and then receive this in activity B
Intent intent = new Intent();
int i = intent.getIntExtra("selectedType", 0);
Toast.makeText(getApplicationContext(), String.valueOf(i),
Toast.LENGTH_LONG).show();
but when in this activity, it always display 0.
I neet access to current object in a static method.
Code:
protected static $name;
public static function name($modulename)
{
self::$name = $modulename;
}
public function __call($name, $arguments)
{
$me = new test(self::$name);
return $me->$name($arguments);
}
I want to be able to call method log in Log class. Like this
echo Mods::name("Log")->log("test");
How do i do that?
I need to use method like:
DoSomething<(T)();
But i don't know which Type i have, only object of class Type. How can i call this method if I have only:
Type typeOfGeneric;
I am writing a JIT on ARM Linux that executes an instruction set that contains self-modifying code. The instruction set does not have any cache flush instructions (similar to x86 in that respect).
If I write out some code to a page and then call mprotect on that page, is that sufficient to invalidate the instruction cache? Or do I also need to use the cacheflush syscall on those pages?
I have a uiwebview that loads a iframe to display a pdf file.
But only the top left corner of the pdf file i visible, I need to fit the pdf file inside then iframe, that is, I need to scale down the pdf file so that all of it is visible.
I know that with webpages you can open a pdf and set the starting scale on it like this page1.pdf#zoom=25 but that doesnt work in the webview. Does anybody know what to do?
Is it possible to use Hudson only as a passive server,i.e, not using it for building purpose instead sending build results generated by some other tool in maybe XML format and using Hudson to only display the results??