text stringlengths 8 267k | meta dict |
|---|---|
Q: Is it possible to connect to Mac OS X 10.5 Leopard's built in vnc server at a low color depth from Windows? If I attempt to connect to Mac OS X 10.5 Leopard's built in vnc server at a low color depth from Windows, the client bombs after connecting. It only works when I set it to the highest color depth. I've tried w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Getting actual file name (with proper casing) on Windows Windows file system is case insensitive. How, given a file/folder name (e.g. "somefile"), I get the actual name of that file/folder (e.g. it should return "SomeFile" if Explorer displays it so)?
Some ways I know, all of which seem quite backwards:
*
*Given ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Silverlight- DataGrid control - Selection Changed event interfering with sorting I'm currently playing with the Silverlight(Beta 2) Datagrid control. Before I wired up the SelectionChanged event, the grid would sort perfectly by clicking on the header. Now, when the grid is clicked, it will fire the SelectionChang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I use an icon that is a resource in WPF? I have a .ico file that is embedded as a resource (build action set to resource). I am trying to create a NotifyIcon. How can I reference my icon?
notifyIcon = new NotifyIcon();
notifyIcon.Icon = ?? // my icon file is called MyIcon.ico and is embedded
A: If you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Redundant Call to Object.ToString() I have a function that takes, amongst others, a parameter declared as int privateCount. When I want to call ToString() on this param, ReSharper greys it out and marks it as a redundant call. So, curious as I am, I remove the ToString(), and the code still builds!
How can a C# co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to create a scalable Moebius-strip in WPF? A moebius strip is a surface with one side.
How would one define such an object in XAML/WPF?
How could such an object be manipulated in 3D, scaled up and down and rotated using C#?
A: Using the Helix Toolkit I was able to get it one on-screen in a couple of minutes.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why should I care about compacting an MS Access .mdb file? We distribute an application that uses an MS Access .mdb file. Somebody has noticed that after opening the file in MS Access the file size shrinks a lot. That suggests that the file is a good candidate for compacting, but we don't supply the means for ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Limit dev environment to e-mail only certain domains for testing (XP smtp IIS) I'm developing a website on an XP virtual machine and have an SMTP virtual server set up in IIS -- it delivers mail just fine. What I would like is to confirm that any emails the site sends are only going to a specific domain.
The XP fire... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the "best" canonical implementation of Equals() for reference types? Implementing Equals() for reference types is harder than it seems. My current canonical implementation goes like this:
public bool Equals( MyClass obj )
{
// If both refer to the same reference they are equal.
if( ReferenceEquals( obj, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using 7-Zip from Delphi? I would like to use the 7-Zip DLLs from Delphi but have not been able to find decent documentation or examples. Does anyone know how to use the 7-Zip DLLs from Delphi?
A: 7 Zip Plugin API
http://www.progdigy.com/?page_id=13
A: Zip and 7z with NO DLL, try out Synopse:
http://synopse.info/f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: I'm looking to use Visual Studio to write and compile using the open source version of Qt4 Does anyone have details in setting up Qt4 in Visual Studio 2008? Links to other resources would be appreciated as well.
I already know that the commercial version of Qt has applications to this end. I also realize that I'll p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: TFS annotate/blame summary report for a project In Team Foundation Server, I know that you can use the Annotate feature to see who last edited each line in a particular file (equivalent to "Blame" in CVS). What I'd like to do is akin to running Annotate on every file in a project, and get a summary report of all the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: VisualSVN Server wants a username and password I've renamed my server and am trying to get to the VisualSVN Server repository via TortoiseSVN. In this post Gordon helped me find the right command - thanks Gordon.
Now VisualSVN Server is asking me for a username and password. I don't recall setting one and if I did I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to write static code analyzer for .net I am interested in writing static code analyzer for vb.net to see if it conforms to my company standard coding guidelines. Please advise from where i have to start.
A: I would suggest you use Mono's Gendarme. It's a very nice tool, with plenty of built in rules. It also ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: CSS : Bad Gray Line to the side of the Navigation Bar on my Website I'm maintaining the Perl Beginners' Site and used a modified template from Open Source Web Designs. Now, the problem is that I still have an undesired artifact: a gray line on the left side of the main frame, to the left of the navigation menu. Here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Installing just Quicktime libraries on Windows There's Quicktime SDK for Windows, but any application that uses it needs quicktime runtime libraries to be installed on the system (SDK itself just has headers and library stubs, and not the actual DLLs).
If my application uses Quicktime, I'd like to install the necess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make clipboard ring appear in VS2008 toolbox? It seems as if making the clipboard ring appear in the VS2008 toolbox is pretty elusive. Does anyone know how to turn this on ? Ctrl-Shift-V works fine, but I'd like to see what on the ring.
A: You should give Ditto a try. It saves everything you put in your cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I make an HTML table the same width as its containing div tag? I have a table inside a div. I want the table to occupy the entire width of the div tag.
In the CSS, I've set the width of the table to 100%. Unfortunately, when the div has some margin on it, the table ends up wider than the div it's in.
I need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Delphi Out of resources Every project I compile with Delphi 7, in which I do not compile with run-time packages, gives a linker error: "Too many resources". Even a blank application gives this error.
In other words: Delphi died on me.
A: What happens when you try to build it from the command line?
(i.e., \Program F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How To Detect If Type is Another Generic Type example:
public static void DoSomething<K,V>(IDictionary<K,V> items) {
items.Keys.Each(key => {
if (items[key] **is IEnumerable<?>**) { /* do something */ }
else { /* do something else */ }
}
Can this be done without using reflection? How do I say IEnumer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Date.getTime() not including time? Can't understand why the following takes place:
String date = "06-04-2007 07:05";
SimpleDateFormat fmt = new SimpleDateFormat("MM-dd-yyyy HH:mm");
Date myDate = fmt.parse(date);
System.out.println(myDate); //Mon Jun 04 07:05:00 EDT 2007
long timestamp = myDate.getTime();
System.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the best way to force yourself to master vi? A good while ago, I read an article by the creator of viemu, clearing up a lot of the misconceptions about vi, as well as explaining why it's a good idea (and why it's been very popular for the last 30 years+). The same guy also has a great set of graphical cheat ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "208"
} |
Q: How do you force a CIFS connection to unmount I have a CIFS share mounted on a Linux machine. The CIFS server is down, or the internet connection is down, and anything that touches the CIFS mount now takes several minutes to timeout, and is unkillable while you wait. I can't even run ls in my home directory becau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "166"
} |
Q: Modify an xml files in a jar file with Java I currently am tasked with updating an XML file (persistance.xml) within a jar at a customers site. I can of course unjar the file, update the xml, then rejar the file for redeployment. I would like to kind these command line operations in a Swing App so that the person ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: what is the flex (ActionScript3) syntax for a function valued function's type? What is the syntax to declare a type for my compare-function generator in code like the following?
var colName:String = ""; // actually assigned in a loop
gc.sortCompareFunction = function() : ??WHAT_GOES_HERE??
{
var tmp:String = colN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Has anyone hooked up BizTalk and Fogbugz? We have an intranet system that schedules routine tasks. We also have Fogbugz for bug tracking. When an urgent bug comes in, we track that task in the bugtracker. However, I need to write back to both the Intranet and our CMS. I'm thinking Biztalk as the middle piece, but am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I check CPU and Memory Usage in Java? I need to check CPU and memory usage for the server in java, anyone know how it could be done?
A: If you are looking specifically for memory in JVM:
Runtime runtime = Runtime.getRuntime();
NumberFormat format = NumberFormat.getInstance();
StringBuilder sb = new StringB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: Tools to effectively manage the information? How do you guys manage the information overflow?
What are the tools that you guys use?
One of the usefull tool is RSS feed reader.
Does Any body uses any other tools or any other ways to effectively manage the information?
A: Be an information snob.
If the blog doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I store the window size between sessions in Qt? I have a QMainWindow in a Qt application. When I close it I want it to store its current restore size (the size of the window when it is not maximized). This works well when I close the window in restore mode (that is, not maximized). But if I close the window i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Is there a platform independent way (Java?) to read an audio CD's TOC? I would like to avoid using native libaries if at all possible. Surely there is a better way to solve this issue for Linux, Windows and Mac OS X.
A: Sorry, you're out of luck. You'll need JNI, and it'll be obnoxiously different for different p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: On Windows Mobile device, what is the best way to display an OK button instead of the X button? I have a C++ program that when run, by default, displays the X in the upper right corner. Clicking X, minimizes the program. I've added code using the SHInitDialog function to change the X to OK, so that clicking OK exits... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can you send a signal to Windows Explorer to make it refresh the systray icons? This problem has been afflicting me for quite a while and it's been really annoying.
Every time I login after a reboot/power cycle the explorer takes some time to show up.
I've taken the step of waiting for all the services to boot up an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Deploying VSTO Project to Server Is it possible to place an application using vsto if the office is not installed? It doesn't appear to be so, but I was wondering if anyone had a work-around.
A: VSTO wraps Office's Automation interfaces. Office is doing the work under the covers, so must be installed.
A: Just to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which to use, eruby or erb? What's the difference between eruby and erb? What considerations would drive me to choose one or the other?
My application is generating config files for network devices (routers, load balancers, firewalls, etc.). My plan is to template the config files, using embedded ruby (via either ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are there any projects for replacing HTML and the current javascript? Google created protocol buffers as a replacement for the bulky XML method of data transition. Faster XML processing was just not good enough. Most of the web has grown up as a hodge podge of different technologies that have been integrated to wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way for my binary to react to some global hotkeys in Linux? Is it possible to listen for a certain hotkey (e.g:Ctrl-I) and then perform a specific action? My application is written in C, will only run on Linux, and it doesn't have a GUI. Are there any libraries that help with this kind of task?
EDIT: as a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What causes a velocity Template.merge() failure? How does one avoid it? Our team has been experiencing a recurring problem with velocity templates. Upon rendering, some throw a RuntimeException with the message "Template.merge() failure - Unable to render Velocity Template, '/template.vm'". We have not been able to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: where can I find vim-enhanced resources? I recently installed vim-enhanced , but I can't find any article/tutorial related to it.All I could find is a page that briefly describes it's new features , along with several RPM's to download .
What exactly does it have to offer to scripting languages that regular vi/vim ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to run a script as root on Mac OS X? What should I type on the Mac OS X terminal to run a script as root?
A: As in any unix-based environment, you can use the sudo command:
$ sudo script-name
It will ask for your password (your own, not a separate root password).
A: sudo ./scriptname
A: In order for sudo to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Bash or KornShell (ksh)? I am not new to *nix, however lately I have been spending a lot of time at the prompt. My question is what are the advantages of using KornShell (ksh) or Bash Shell? Where are the pitfalls of using one over the other?
Looking to understand from the perspective of a user, rather than purely ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: What is the recommended error_reporting() setting for development? What about E_STRICT? Typically I use E_ALL to see anything that PHP might say about my code to try and improve it.
I just noticed a error constant E_STRICT, but have never used or heard about it, is this a good setting to use for development? The man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How can I cause subversion to check out projects from other repositories? I recently was working with a subversion project that checked out code not only from the repository I was working with, but also from a separate repository on a different server.
How can I configure my repository to do this?
I'm using the subv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any tools to generate an XSD schema from an XML instance document? I am looking for a tool which will take an XML instance document and output a corresponding XSD schema.
I certainly recognize that the generated XSD schema will be limited when compared to creating a schema by hand (it probably won't handle optional ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "151"
} |
Q: Delegating a task in and getting notified when it completes (in C#) Conceptually, I would like to accomplish the following but have had trouble understand how to code it properly in C#:
SomeMethod { // Member of AClass{}
DoSomething;
Start WorkerMethod() from BClass in another thread;
DoSomethingElse;
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I compile mod_dontdothat on Windows I cannot seem to compile mod_dontdothat on Windows. Has anybody managed to achieve this?
Edit:
I've tried compiling the file according to the readme on the site and I've tried to add extra libs to reduce the link errors. Ive got the following installed:
*
*Apache 2.2.9
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I create a command line (unix/linux) instruction that uses variables to execute numerous commands? I need to rearrange some content in various directories but it's a bit of a pain. In order to debug the application I'm working on (a ruby app) I need to move my gems into my gem folder one at a time (long stor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a quality, file-size, or other benefit to JPEG sizes being multiples of 8px or 16px? The JPEG compression encoding process splits a given image into blocks of 8x8 pixels, working with these blocks in future lossy and lossless compressions. [source]
It is also mentioned that if the image is a multiple 1MCU b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Uninstall Mono from Mac OS X v10.5 Leopard I installed Mono on my iMac last night and I immidiately had a change of heart! I don't think Mono is ready for prime time.
The Mono website says to run the following script to uninstall:
#!/bin/sh -x
#This script removes Mono from an OS X System. It must be run as root
r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Tool to parse a file I'm trying to figure out the best way to parse a GE Logician MEL trace file to make it easier to read.
It has segments like
>{!gDYNAMIC_3205_1215032915_810 = (clYN)}
execute>GDYNAMIC_3205_1215032915_810 = "Yes, No"
results>"Yes, No"
execute>end
results>"Yes, No"
>{!gDYNAMIC_3205_1215032893_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can i combine two columns containing Richtext data/files What is the best way to maniupulate richtext / *.rtf data in SQL server 2005 / 2008
I have looked at ocx solutions. Maybe creating some CLR stored procs??
The problem is that I have several notes written in richtext that need to be combined for ease of rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I implement custom drag functionality in a Flex list control? Flex has built in drag-n-drop for list controls, and allows you to override this. But they don't cover this in examples. The built-in functionality automatically drags the list-item, if you want to override this you find the handlers are being set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a PowerShell "string does not contain" cmdlet or syntax? In PowerShell I'm reading in a text file. I'm then doing a Foreach-Object over the text file and am only interested in the lines that do NOT contain strings that are in $arrayOfStringsNotInterestedIn.
What is the syntax for this?
Get-Content $filen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How do I add a namespace reference to a SOAP response with Apache Axis2 and WSDL2Java I'm looking at the SOAP output from a web service I'm developing, and I noticed something curious:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns1:CreateEntityTypesResponse xm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: XBAP Application, can these work in Google Chrome? I'm developing a .NET 3.5 XBAP application that runs perfectly fine in FF3 and IE6/7 etc. I'm just wondering if its possible to get these to run under other browsers, specifically (as its in the limelight at the moment) Google Chrome.
A: At the moment, XBAPs do not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Which resources should one monitor on a Linux server running a web-server or database When running any kind of server under load there are several resources that one would like to monitor to make sure that the server is healthy. This is specifically true when testing the system under load.
Some examples for this wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why isn't there a viable mod_ruby for Apache yet? As popular as Ruby and Rails are, it seems like this problem would already be solved. JRuby and mod_rails are all fine and dandy, but why isn't there an Apache mod for just straight Ruby?
A: It's perhaps worth double-clarifying mislav's point that mod_rails isn't ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Does Scripting.Dictionary's RemoveAll() method release all of its elements first? In a VB6 application, I have a Dictionary whose keys are Strings and values are instances of a custom class. If I call RemoveAll() on the Dictionary, will it first free the custom objects? Or do I explicitly need to do this myself?
D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Detecting concurrent modifications? In a multi-threaded application I'm working on, we occasionally see ConcurrentModificationExceptions on our Lists (which are mostly ArrayList, sometimes Vectors). But there are other times when I think concurrent modifications are happening because iterating through the collectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to stop a mp3 file from being downloaded by flash when in streaming mode I have a flash player that has a set of songs loaded via an xml file.
The files dont start getting stream until you pick one.
If I quickly cycle through each of the 8 files, then flash starts trying to download each of the 8 files at the sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to check the strength of a password? What is the best way of ensuring that a user supplied password is a strong password in a registration or change password form?
One idea I had (in python)
def validate_password(passwd):
conditions_met = 0
conditions_total = 3
if len(passwd) >= 6:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Beginning Java EE I know something about Java but completely new to Enterprise Java. I'm trying my hand with NetBeans 6.1 and GlassFish Application Server.
Please guide me to some resources which tell me actually what java enterprise applications are, how they are different from normal java classes etc.
Also which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Obtain parameter values from a stack frame in .NET? I would like to be able to obtain all the parameter values from the stack frame in .NET. A bit like how you're able to see the values in the call stack when in the Visual Studio debugger. My approach has concentrated on using the StackFrame class and then to reflec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: What datatype should be used for storing phone numbers in SQL Server 2005? I need to store phone numbers in a table. Please suggest which datatype should I use?
Wait. Please read on before you hit reply..
This field needs to be indexed heavily as Sales Reps can use this field for searching (including wild character... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: Remove columns from DataTable in C# I have a DataSet which I get a DataTable from that I am being passed back from a function call. It has 15-20 columns, however I only want 10 columns of the data.
Is there a way to remove those columns that I don't want, copy the DataTable to another that has only the columns defin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "142"
} |
Q: How to make a web app appear at the root of the site? I have a bulletin board (punBB based) that I was running out of the root directory for a couple of years. I foolishly decided to do a little gardening and in the process moved the punbb code into it's own subdirectory. The code works great; as long as you point t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make jQuery effects run in sequence, not simultaneously? How do I have two effects in jQuery run in sequence, not simultaneously? Take this piece of code for example:
$("#show-projects").click(function() {
$(".page:visible").fadeOut("normal");
$("#projects").fadeIn("normal");
});
The fadeOut and the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Best way to implement Google Custom Search on an aspx page Google custom search code is provided as a form tag. However, Asp.net only allows a single form tag on a page. What is the best way to implement their code so you can include it on an aspx page (say as part of a Masterpage or navigation element).
A: You ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you quickly find the URL for a .NET framework method on MSDN? How to you find the URL that represents the documentation of a .NET framework method on the MSDN website?
For example, I want to embed the URL for the .NET framework method into some comments in some code. The normal "mangled" URL that one gets se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: General Development Notes During a typical day programming, I implement functions in a way that I would like to remember. For instance, say I tuned a DB insert function that, when I come across the situation again, I want to find what I did to resuse.
I need a place to keep the solution(what I did), and I need to fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I limit execution time for a Perl script in IIS? This is a shared hosting environment. I control the server, but not necessarily the content. I've got a client with a Perl script that seems to run out of control every now and then and suck down 50% of the processor until the process is killed.
With ASP scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the easiest way to get total number for lines of code (LOC) in SQL Server? I need to provide statistics on how many lines of code (LOC) associated with a system. The application part is easy but I need to also include any code residing within the SQL Server database. This would apply to stored procedures, fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a working on-the-fly compilation in NetBeans 6.5 and how well is it doing? I learned today that NetBeans 6.5 should have an on-the-fly compilation of (single) Java files. This feature is well known from Eclipse: Simply store the file and the compiled class is stored, too. Is NetBeans working the same way? I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create instance of generic type in Java? Is it possible to create an instance of a generic type in Java? I'm thinking based on what I've seen that the answer is no (due to type erasure), but I'd be interested if anyone can see something I'm missing:
class SomeContainer<E>
{
E createContents()
{
retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "643"
} |
Q: How to display a dynamically allocated array in the Visual Studio debugger? If you have a statically allocated array, the Visual Studio debugger can easily display all of the array elements. However, if you have an array allocated dynamically and pointed to by a pointer, it will only display the first element of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "154"
} |
Q: Problem accessing the content of a div when that content came from an Ajax call Here's a very simple Prototype example.
All it does is, on window load, an ajax call which sticks some html into a div.
<html>
<head>
<script type="text/javascript" src="scriptaculous/lib/prototype.js"></script>
<scri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting a chroot jail from within How can one detect being in a chroot jail without root privileges? Assume a standard BSD or Linux system. The best I came up with was to look at the inode value for "/" and to consider whether it is reasonably low, but I would like a more accurate method for detection.
[edit 200... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: What is an unsigned char? In C/C++, what an unsigned char is used for? How is it different from a regular char?
A: In terms of direct values a regular char is used when the values are known to be between CHAR_MIN and CHAR_MAX while an unsigned char provides double the range on the positive end. For example, if CHAR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "532"
} |
Q: scope resolution operator without a scope In C++, what is the purpose of the scope resolution operator when used without a scope? For instance:
::foo();
A: It means global scope. You might need to use this operator when you have conflicting functions or variables in the same scope and you need to use a global one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: How can I detect when an Exception's been thrown globally in Java? How can I detect when an Exception has been thrown anywhere in my application?
I'm try to auto-magically send myself an email whenever an exception is thrown anywhere in my Java Desktop Application. I figure this way I can be more proactive.
I know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How do you quickly find the URL for a Win32 API on MSDN? How do you quickly find the URL for a Win32 API on MSDN? It's easy for .NET methods -- just add the method name (for example, System.Byte.ToString) to http://msdn.microsoft.com/library/.
However, for Win32 APIs (say GetLongPathName), this doesn't work: http:/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HQL querying columns in a set Is it possible to reach the individual columns of table2 using HQL with a configuration like this?
<hibernate-mapping>
<class table="table1">
<set name="table2" table="table2" lazy="true" cascade="all">
<key column="result_id"/>
<many-to-many column="group_id"/>
</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the implications of running a Microsoft access database in both 2003 and 2007? What are the implications of running a Microsoft Access Database in both 2003 and 2007?
Is there some class I forgot to take?
The program was originally built in office 2003, and then run in 2007. Issues seem to happen when the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you start running the program over again in gdb with 'target remote'? When you're doing a usual gdb session on an executable file on the same computer, you can give the run command and it will start the program over again.
When you're running gdb on an embedded system, as with the command target localhost:321... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How to make a Side-by-Side Compiler for .NET Nikhil Kothari's Script# is quite possibly one of the most amazing concepts I've seen in the JavaScript arena for quite some time. This question isn't about JavaScript, but rather about language compilation in the .NET runtime.
I've been rather interested in how, using th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why isn't Scalar::Util::Numeric installing correctly? I got this output when running sudo cpan Scalar::Util::Numeric
jmm@freekbox:~/bfwsandbox/sa/angel/astroportal/dtu8e/resources$ sudo cpan Scalar::Util::Numeric
[sudo] password for jmm:
CPAN: Storable loaded ok
Going to read /home/jmm/.cpan/Metadata
Database was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In how many languages is Null not equal to anything not even Null? In how many languages is Null not equal to anything not even Null?
A: In VB6 the expression Null = Null will produce Null instead of True as you would expect.
This will cause a runtime error if you try to assign it to a Boolean, however if you use i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Open Source Database Plugin For Eclipse? Does anyone know of a good open source plugin for database querying and exploring within Eclipse?
The active Database Exploring plugin within Eclipse is really geared around being associated with a Java project. While I am just trying to run ad-hoc queries and explore the sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: "Could not reformat the document" in ASP.NET, VS2008 I'm in an ASP.NET UserControl. When I type Control-K, Control-D to reformat all the markup, I get a series of messages from VS 2008:
"Could not reformat the document. The original format was restored."
"Could not complete the action."
"The operation could not be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: SelectedIndexChanged event handler getting old index I'm handling the onSelectIndexChanged event. An event is raised when the DropDownList selection changes. the problem is that the DropDownList still returns the old values for SelectedValue and SelectedIndex. What am I doing wrong?
Here is the DropDownList definiti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What languages implement features from functional programming? Lisp developed a set of interesting language features quite early on in the academic world, but most of them never caught on in production environments.
Some languages, like JavaScript, adapted basic features like garbage collection and lexical closures,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multicolor cursor in X X has the method XCreatePixmapCursor to create a cursor from a pixmap with a color depth of 1. The foreground and background colors can be other than black and white, but there are only two colors.
Is there a way to create a multicolored cursor in X?
A: You probably need to use the X Cursor ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sys is undefined I have an ASP.Net/AJAX control kit project that i am working on. 80% of the time there is no problem. The page runs as it should. If you refresh the page it will sometimes show a javascript error "Sys is undefined".
It doesn't happen all the time, but it is reproducible. When it happens, the use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: XSLT processing in/from ruby Can anyone recommend an efficient method to execute XSLT transforms of XML data within a Ruby application? The XSL gem (REXSL) is not available yet, and while I have seen a project or two that implement it, I'm wary of using them so early on. A friend had recommended a shell out call to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Execute an insert and then log in one SQL command I've been asked to implement some code that will update a row in a MS SQL Server database and then use a stored proc to insert the update in a history table. We can't add a stored proc to do this since we don't control the database. I know in stored procs you can d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Force numerical order on a SQL Server 2005 varchar column, containing letters and numbers? I have a column containing the strings 'Operator (1)' and so on until 'Operator (600)' so far.
I want to get them numerically ordered and I've come up with
select colname from table order by
cast(replace(replace(colname,'Oper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make embedded servlet engine instantiate servlets eagerly? The problem is simple, but I'm struggling a bit already.
Server server = new Server(8080);
Context context = new Context(server, "/", Context.NO_SESSIONS);
context.addServlet(MainPageView.class, "/");
context.addServlet(UserView.class, "/signup");
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make VS compiler catch signed/unsigned assignments? The Visual Studio compiler does not seem to warn on signed/unsigned assignments, only on comparisons. For example the code below will generate a warning on the if statement but not the initial assignments.
Is there anyway to make it catch these? I'm already at W4 b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NHibernate to not cache a property How can I configure NHibernate to not cache a file?
I know I can create a method that does an HSQL, but can I through a configuration setting in the <class>.xml file or the hibernate xml file itself to not cache a property?
A: You cannot set secondary caching settings at property ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the uses of "using" in C#? User kokos answered the wonderful Hidden Features of C# question by mentioning the using keyword. Can you elaborate on that? What are the uses of using?
A: Things like this:
using (var conn = new SqlConnection("connection string"))
{
conn.Open();
// Execute SQL statement ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "354"
} |
Q: Deleting certain classes on running an external tool in eclipse? I've set an external tool (sablecc) in eclipse (3.4) that generates a bunch of classes in the current project. I need to run this tool and regenerate these classes fairly frequently. This means that every time I want to run sablecc, I have to manually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.