text stringlengths 8 267k | meta dict |
|---|---|
Q: Handling HttpRequestValidationException gracefully and ASP.net AJAX compatible? ValidateEvents is a great ASP.net function, but the Yellow Screen of Death is not so nice. I found a way how to handle the HttpRequestValidationException gracefully here, but that does not work with ASP.net AJAX properly.
Basically, I g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Programmatically determine how many comments a blog post has What is the most efficient way to determine how many comments a particular blog post has? We want to store the data for a new web app. We have a list of permalink URl's as well as the RSS feeds.
A: If the blog is controlled by you, a "Select count(commen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a magic number, and why is it bad? What is a magic number?
Why should it be avoided?
Are there cases where it's appropriate?
A: I assume this is a response to my answer to your earlier question. In programming, a magic number is an embedded numerical constant that appears without explanation. If it appears ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "597"
} |
Q: How Does gcc on Solaris Find Its Libraries? I'm trying to install 'quadrupel', a library that relies on ffmpeg on Solaris x86.
I managed to build ffmpeg and its libraries live in /opt/gnu/lib and the includes are in /opt/gnu/include but when I try to build quadrupel, it can't find the ffmpeg headers.
What flags/conf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it worth learning to use MSBuild? I simply wondered whether people thought it was worth learning to use the MSBuild syntax in order to customise the build process for a .net project, or whether it is really not worth it given the ease with which one can build a project using visual studio.
I am thinking in terms... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: SEO Superstitions: Are
A: There's several reasons to avoid inline/internal Javascript:
*
*HTML is for structure, not behavior or style. For the same reason you should not put CSS directly in HTML elements, you should not put JS.
*If your client does not support JS you just pushed a lot of junk. Wasted bandwith... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can UDP data be delivered corrupted? Is it possible for UDP data to come to you corrupted? I know it is possible for it to be lost.
A: Possible? Absolutely. Undetected? Unlikely, since UDP employs a checksum that would require multiple-bit errors to appear valid. If an error is detected, the system will likely drop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: UDP vs TCP, how much faster is it? For general protocol message exchange, which can tolerate some packet loss. How much more efficient is UDP over TCP?
A: UDP is faster than TCP, and the simple reason is because its non-existent acknowledge packet (ACK) that permits a continuous packet stream, instead of TCP that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "222"
} |
Q: Sources of good, free icons/images for applications & web apps with permissive license? I'm interested in finding good icons/images that can be used in both 'free' and proprietary programs.
Please include a description of any license restrictions associated with the source of the icons you suggest.
A: I use two se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Organization of C files I'm used to doing all my coding in one C file. However, I'm working on a project large enough that it becomes impractical to do so. I've been #including them together but I've run into cases where I'm #including some files multiple times, etc. I've heard of .h files, but I'm not sure what the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Combining and Caching multiple JavaScript files in ASP.net Either I had a bad dream recently or I am just too stupid to google, but I remember that someone somewhere wrote that ASP.net has a Function which allows "merging" multiple JavaScript files automatically and only delivering one file to the client, thus reduc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Invalid iPhone Application Binary I'm trying to upload an application to the iPhone App Store, but I get this error message from iTunes Connect:
The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate.
Note: The details of original question have be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: What are the advantages of packaging your python library/application as an .egg file? I've read some about .egg files and I've noticed them in my lib directory but what are the advantages/disadvantages of using then as a developer?
A: One egg by itself is not better than a proper source release. The good part is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What are the most useful (custom) code snippets for C#? What are the best code snippets for C#? (using visual studio) VB has a lot that are pre-defined, but there are only a handful for C#. Do you have any really useful ones for C#?
Anyone want to post a good custom one you created yourself?
Anyone?... Bueller?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What are some advantages of duck-typing vs. static typing? I'm researching and experimenting more with Groovy and I'm trying to wrap my mind around the pros and cons of implementing things in Groovy that I can't/don't do in Java. Dynamic programming is still just a concept to me since I've been deeply steeped stati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Is it possible to develop DirectX apps in Linux? More out of interest than anything else, but can you compile a DirectX app under linux?
Obviously there's no official SDK, but I was thinking it might be possible with wine.
Presumably wine has an implementation of the DirectX interface in order to run games? Is it po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Deciphering C++ template error messages I'm really beginning to understand what people mean when they say that C++'s error messages are pretty terrible in regards to templates. I've seen horrendously long errors for things as simple as a function not matching its prototype.
Are there any tricks to deciphering these... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How do I set, clear, and toggle a single bit? How do I set, clear, and toggle a bit?
A: int set_nth_bit(int num, int n){
return (num | 1 << n);
}
int clear_nth_bit(int num, int n){
return (num & ~( 1 << n));
}
int toggle_nth_bit(int num, int n){
return num ^ (1 << n);
}
int check_nth_bit(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3062"
} |
Q: Is it worth investing time in learning to use Emacs? Right up front: I do not want to start a religious war.
I've used vi for as long as I can remember, and the few times I've tried to pick up Emacs I've been so lost that I've quickly given up. Lots of people find Emacs very powerful, however. Its programmability is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Implications of Instantiating Objects with Dynamic Variables in PHP What are the performance, security, or "other" implications of using the following form to declare a new class instance in PHP
<?php
$class_name = 'SomeClassName';
$object = new $class_name;
?>
This is a contrived example, but I've seen this fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do the CakePHP and codeigniter frameworks compare to the ASP.NET MVC framework? As a classic ASP developer about once a year since ASP.NET came out I decide I really gotta buckle down and learn this fancy new ASP.NET. A few days in and messing with code-behinds and webforms and all this other stuff.
I decide th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is a jump table? Can someone explain the mechanics of a jump table and why is would be needed in embedded systems?
A: A jump table can be either an array of pointers to functions or an array of machine code jump instructions. If you have a relatively static set of functions (such as system calls or virtual fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Hbase / Hadoop Query Help I'm working on a project with a friend that will utilize Hbase to store it's data. Are there any good query examples? I seem to be writing a ton of Java code to iterate through lists of RowResult's when, in SQL land, I could write a simple query. Am I missing something? Or is Hbase miss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Is there any alternative to using % (modulus) in C/C++? I read somewhere once that the modulus operator is inefficient on small embedded devices like 8 bit micro-controllers that do not have integer division instruction. Perhaps someone can confirm this but I thought the difference is 5-10 time slower than with an i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Moving ViewState out of the page? We are trying to lighten our page load as much as possible. Since ViewState can sometimes swell up to 100k of the page, I'd love to completely eliminate it.
I'd love to hear some techniques other people have used to move ViewState to a custom provider.
That said, a few caveats:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a .NET Control Similar to the Access 2007 Split Form? Is there a .NET Control Similar to the Access 2007 Split Form?
Or has anyone built such a control?
I upgraded a small personal Name and Address DB to Access 2007 and noticed the Form had a property called “Default View” which can be set to “Split Form”. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Select N random elements from a List in C# I need a quick algorithm to select 5 random elements from a generic list. For example, I'd like to get 5 random elements from a List<string>.
A: From Dragons in the Algorithm, an interpretation in C#:
int k = 10; // items to select
var items = new List<int>(new[] { 1, 2, 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "201"
} |
Q: Returning from a finally block in Java I was surprised recently to find that it's possible to have a return statement in a finally block in Java.
It seems like lots of people think it's a bad thing to do as described in 'Don't return in a finally clause'. Scratching a little deeper, I also found 'Java's return doesn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "187"
} |
Q: C++ deleting a pointer to a pointer So I have a pointer to an array of pointers. If I delete it like this:
delete [] PointerToPointers;
Will that delete all the pointed to pointers as well? If not, do I have to loop over all of the pointers and delete them as well, or is there an easier way to do it? My google-f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Free text search integrated with code coverage Is there any tool which will allow me to perform a free text search over a system's code, but only over the code which was actually executed during a particular invocation?
To give a bit of background, when learning my way around a new system, I frequently find myself w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DHCP overwrites Cisco VPN resolv.conf on Linux I'm using an Ubuntu 8.04 (x86_64) machine to connect to my employer's Cisco VPN. (The client didn't compile out of the box, but I found patches to update the client to compile on kernels released in the last two years.) This all works great, until my DHCP client decides... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Glade or no glade: What is the best way to use PyGtk? I've been learning python for a while now with some success. I even managed to create one or two (simple) programs using PyGtk + Glade.
The thing is: I am not sure if the best way to use GTK with python is by building the interfaces using Glade.
I was wondering i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Generating (pseudo)random alpha-numeric strings How can I generate a (pseudo)random alpha-numeric string, something like: 'd79jd8c' in PHP?
A: One line solution:
echo substr( str_shuffle( str_repeat( 'abcdefghijklmnopqrstuvwxyz0123456789', 10 ) ), 0, 7 );
You can change the substr parameter in order to set a diffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: PHP + MySql + Stored Procedures, how do I get access an "out" value? Documentation is severely lacking on anything to do with stored procedures in mysql with PHP. I currently have a stored procedure that I call via PHP, how can I get the value of an out parameter?
A: Here's an example of how to do this with mysql, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Monitoring CPU Core Usage on Terminal Servers I have windows 2003 terminal servers, multi-core. I'm looking for a way to monitor individual CPU core usage on these servers. It is possible for an end-user to have a run-away process (e.g. Internet Explorer or Outlook). The core for that process may spike to near 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I allow incoming connections to a server inside of VirtualBox? I have a NAT configured to run when loading up my favorite Linux distribution in VitualBox. This allows outgoing connections to work successfully.
How do I allow incoming connections to this box, like, say, Web traffic? The IP address is 10.0.2.1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are advantages of bytecode over native code? It seems like anything you can do with bytecode you can do just as easily and much faster in native code. In theory, you could even retain platform and language independence by distributing programs and libraries in bytecode then compiling to native code at installat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Tool for analyzing .Net app memory dumps Can somebody suggest a good free tool for analyzing .Net memory dumps other than Adplus/windbg/sos ?
A: You can try out DebugDiag 1.1
A: I found MemoScope.Net - an excellent GUI for WinDbg and ClrMd.
A: You can load sos and your memory dump into Visual Studio to at least i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Configure static routes on Windows There is a netsh and a route command on Windows. From their help text it looks like both can be used to configure static routes. When should you use one and not the other? Is IPv6 a distinguishing factor here?
A: route is a very old and basic tool for displaying and modifying th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Embedding a remote Python shell in an application You can embed the IPython shell inside of your application so that it launches the shell in the foreground. Is there a way to embed a telnet server in a python app so that you can telnet to a certain port and launch a remote IPython shell?
Any tips for redirecting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Video Thumbnails in Java I want to generate a thumbnail preview of videos in Java. I'm mostly JMF and video manipulation alienated.
*
*Is there an easy way to do it?
*What about codecs? Will I have to deal with it?
*Any video type is suported? (including Quicktime)
A: Well, since you're not stuck with JMF, h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I find out which process is listening on a TCP or UDP port on Windows? How do I find out which process is listening on a TCP or UDP port on Windows?
A: Follow these tools: From cmd: C:\> netstat -anob with Administrator privileges.
Process Explorer
Process Dump
Port Monitor
All from sysinternals.com.
If you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3138"
} |
Q: Linux distros for Java Development Simply, are there any Java Developer specific Linux distros?
A: A real Sun geek would chime in here about the virtues of using Solaris as a Java development platform, but I am much more ambivalent. Developing with Java is about the same on any linux distro; you are going to wind u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: jQuery & Objects, trying to make a lightweight widget Trying to make a make generic select "control" that I can dynamically add elements to, but I am having trouble getting functions to work right.
This is what I started with.
$select = $("<select></select>");
$select.addOption = function(value,text){
$(this).appe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to use webclient in a secure site? I need to automate a process involving a website that is using a login form. I need to capture some data in the pages following the login page.
I know how to screen-scrape normal pages, but not those behind a secure site.
*
*Can this be done with the .NET WebClient class?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Play button in browser I want to put songs on a web page and have a little play button, like you can see on Last.fm or Pandora. There can be multiple songs listed on the site, and if you start playing a different song with one already playing, it will pause the first track and begin playing the one you just clicked ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I help port Google Chrome to Linux? I really enjoy Chrome, and the sheer exercise of helping a port would boost my knowledge-base.
Where do I start?
What are the fundamental similarities and differences between the code which will operated under Windows and Linux?
What skills and software do I need?
Note:
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Getting the ID of the element that fired an event Is there any way to get the ID of the element that fires an event?
I'm thinking something like:
$(document).ready(function() {
$("a").click(function() {
var test = caller.id;
alert(test.val());
});
});
<script type="text/javascript" src="starterkit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1083"
} |
Q: How can I upsert a bunch of ActiveRecord objects and relationships in Rails? I am working with an API that provides bus arrival data. For every request, I get back (among other things) a list of which routes serve the stop in question. For example, if the list includes result for bus route #1, 2, and 5, then I know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to embed a browser in Java? Is there a way to embed a browser in Java? more specifically, is there a library that can emulate a browser?
A: You could use SWT for your GUI. Its Browser control allows you to embed IE, Mozilla or Safari (depending on the platform you're running in) with little pain.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: Free JSP plugin for eclipse? I was looking out for a free plugin for developing/debugging JSP pages in eclipse.
Any suggestions?
A: The Eclipse Web Tools Platform Project includes a JSP debugger. I have only ever needed to use it with Tomcat so I cannot say how well it works with other servlet containers.
A: BEA ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Compile a PHP script in Linux I know PHP scripts don't actually compile until they are run. However, say I want to create a small simple program and compile it to a binary without requiring the PHP binary. How could I do this?
I've seen a few IDE's out there that would do this, but either they are all for windows or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: SharePoint Infrastructure Upgrade - whoops I applied the MOSS infrastructure upgrade w/o applying the WSS one before it -- uh, help!
A: I believe that is a supported, but unrecommended configuration. You should be able to get help from microsoft :)
A: Quoting:
Infrastructure Update for Microsoft Office Servers (K... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting DataGridView.DefaultCellStyle.NullValue to null at designtime raises error at adding rows runtime In Visual Studio 2008
*
*add a new DataGridView to a form
*Edit Columns
*Add a a new DataGridViewImageColumn
*Open the CellStyle Builder of this column (DefaultCellStyle property)
*Change the NullValue fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to print css applied background images with WebBrowser control I am using the webbrowser control in winforms and discovered now that background images which I apply with css are not included in the printouts.
Is there a way to make the webbrowser print the background of the displayed document too?
Edit:
Since I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Unexpected behaviour of Process.MainWindowHandle I've been trying to understand Process.MainWindowHandle.
According to MSDN; "The main window is the window that is created when the process is started. After initialization, other windows may be opened, including the Modal and TopLevel windows, but the first window as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Running a regular background event in Java web app In podcast #15, Jeff mentioned he twittered about how to run a regular event in the background as if it was a normal function - unfortunately I can't seem to find that through twitter. Now I need to do a similar thing and are going to throw the question to the masse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C++ UI resources Now that I know C++ I want to get into desktop application that have a UI instead of Command Prompt stuff, where should I start?, and what are some good online resources?
A: wxWidgets is a cross platform GUI library for C++ (and other languages). The main site should have enough pointers to resourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Fundamental Data Structures in C# I would like to know how people implement the following data structures in C# without using the base class library implementations:-
*
*Linked List
*Hash Table
*Binary Search Tree
*Red-Black Tree
*B-Tree
*Binomial Heap
*Fibonacci Heap
and any other fundamental data struct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Best Ruby on Rails social networking framework I'm planning on creating a social networking + MP3 lecture downloading / browsing / commenting / discovery website using Ruby on Rails. Partially for fun and also as a means to learn some Ruby on Rails. I'm looking for a social networking framework that I can use as a b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Best practices for integrating third-party modules into your app We have a few projects that involve building an application that is composed of maybe 50% custom functionality, but then pulls in, say, a wiki, a forum, and other components that are "wheels" that have already been invented that we do not wish to re-wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Am I allowed to run a javascript runtime (like v8) on the iPhone? According to this discussion, the iphone agreement says that it doesn't allow "loading of plugins or running interpreted code that has been downloaded".
Technically, I would like to download scripts from our server (embedded in a proprietary protocol)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Cannot handle FaultException i have a wcf service that does an operation. and in this operation there could be a fault. i have stated that there could be a fault in my service contract.
here is the code below;
public void Foo()
{
try
{
DoSomething(); // throws FaultException<FooFault>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Useful browser plugins for openid authentication? I've read https://stackoverflow.com/questions/41354/is-the-stackoverflow-login-situation-bearable and must agree to a certain point that openid (for me) makes it more difficult to log in. Not a show stoper but I'm used to opening the front page of the site, there's a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can't Re-bind a socket to an existing IP/Port Combination Greetings, I'm trying to find a way to 'unbind' a socket from a particular IP/Port combination. My pseudocode looks like this:
ClassA a = new ClassA(); //(class A instantiates socket and binds it to 127.0.0.1:4567)
//do something
//...much later, a has b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is tagging organizationally superior to discrete subforums? I am interested in choosing a good structure for an online message board-type application. I will use SO as an example, as I think it's an example that we are all familiar with, but my question is more general; it is about how to achieve the right balance ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Sprint velocity calculations Need some advice on working out the team velocity for a sprint.
Our team normally consists of about 4 developers and 2 testers. The scrum master insists that every team member should contribute equally to the velocity calculation i.e. we should not distinguish between developers and test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Eclipse spelling engine does not exist I'm using Eclipse 3.4 (Ganymede) with CDT 5 on Windows.
When the integrated spell checker doesn't know some word, it proposes (among others) the option to add the word to a user dictionary.
If the user dictionary doesn't exist yet, the spell checker offers then to help configur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .Net 3.5 silent installer? Is there a redistributable .Net 3.5 installation package that is a silent installer?
Or alternatively, is there a switch that can be passed to the main redistributable .Net 3.5 installer to make it silent?
A: dotnetfx35setup.exe /q /norestart
see the .net deployment guide at:
http://ms... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What are the best resources to get started with Eclipse plugin development? I'm interested in writing eclipse plugins where do I start?
What resources have helped you?
I'm looking for:
1. Tutorials
2. Sites devoted to plugin development
3. Books
A: I have done quite a bit with an RCP application that made ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How could I graphically display the memory layout from a .map file? My gcc build toolchain produces a .map file. How do I display the memory map graphically?
A: I've written a C# program to display the information in a Map file along with information not usually present in the map file (like static symbols provided... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Pros & cons between LINQ and traditional collection based approaches Being relatively new to the .net game, I was wondering, has anyone had any experience of the pros / cons between the use of LINQ and what could be considered more traditional methods working with lists / collections?
For a specific example of a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How Much Time Should be Allotted for Testing & Bug Fixing Every time I have to estimate time for a project (or review someone else's estimate), time is allotted for testing/bug fixing that will be done between the alpha and production releases. I know very well that estimating so far into the future regarding a prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Rule of thumb for choosing an implementation of a Java Collection? Anyone have a good rule of thumb for choosing between different implementations of Java Collection interfaces like List, Map, or Set?
For example, generally why or in what cases would I prefer to use a Vector or an ArrayList, a Hashtable or a HashMap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Scheduling Windows Mobile apps to run How do you schedule a Windows Mobile application to periodically start up to perform some background processing. For example, assume I'm writing an email client and want to check for email every hour, regardless of whether my app is running at the time.
The app is a native C/C+... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Project structure for Google App Engine I started an application in Google App Engine right when it came out, to play with the technology and work on a pet project that I had been thinking about for a long time but never gotten around to starting. The result is BowlSK. However, as it has grown, and features have b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "119"
} |
Q: How to disable Visual Studio macro "tip" balloon? Whenever I use a macro in Visual Studio I get an annoying tip balloon in the system tray and an accompanying "pop" sound. It says:
Visual Studio .NET macros
To stop the macro from running, double-click the spinning cassette.
Click here to not show this balloon aga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I position one image on top of another in HTML? I'm a beginner at rails programming, attempting to show many images on a page. Some images are to lay on top of others. To make it simple, say I want a blue square, with a red square in the upper right corner of the blue square (but not tight in the corner). ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "314"
} |
Q: Database Design for Tagging How would you design a database to support the following tagging features:
*
*items can have a large number of tags
*searches for all items that are tagged with a given set of tags must be quick (the items must have ALL tags, so it's an AND-search, not an OR-search)
*creating/writing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "181"
} |
Q: Choosing a desktop database I'm looking for a desktop/embedded database. The two candidates I'm looking at are
Microsoft SQL Server CE and Oracle Lite. If anyone's used both of these products, it'd be great if you could compare them. I haven't been able to find any comparisons online.
The backend DB is Oracle10g.
Up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: keep rsync from removing unfinished source files I have two machines, speed and mass. speed has a fast Internet connection and is running a crawler which downloads a lot of files to disk. mass has a lot of disk space. I want to move the files from speed to mass after they're done downloading. Ideally, I'd just run:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "170"
} |
Q: Firewall - Build or Buy I have a Linux web server farm with about 5 web servers, web traffic is about 20Mbps.
We currently have a Barracuda 340 Load Balancer (keep away from this device - piece of crap!) that is acting as a firewall. I want to put in a dedicated firewall and I'd like to know what peoples opinions ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to teach a crash course on C++? In a few weeks, we'll be teaching a crash course on C++ for Java programmers straight out of college. They have little or no experience yet with C or C++.
Previous editions of this course were just 1 or 2 half-day sessions and covered topics including:
*
*new language features, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Issue with dojo dijit.form.ValidationTextBox The following XHTML code is not working:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Citrix Server sort of app - on a Mac? Does anyone know of a similar product to Citrix Server that'll run on the Mac OS?
Essentially, I'm looking to allow multiple remote users to log in to the same OSX Server at the same time (with full visual desktop, not SSH).
A: OS X's Quartz window server has no remoting abilit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can you databind a single object in .NET? I would like to use a component that exposes the datasource property, but instead of supplying the datasource with whole list of objects, I would like to use only simple object. Is there any way to do this ?
The mentioned component is DevExpress.XtraDataLayout.DataLayout... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Call Visitors web stat program from PHP I've been looking into different web statistics programs for my site, and one promising one is Visitors. Unfortunately, it's a C program and I don't know how to call it from the web server. I've tried using PHP's shell_exec, but my web host (NFSN) has PHP's safe mode on and it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I publish a Asp.NET web application using MSBuild? I am trying to publish an Asp.net MVC web application locally using the NAnt and MSBuild. This is what I am using for my NAnt target;
<target name="publish-artifacts-to-build">
<msbuild project="my-solution.sln" target="Publish">
<property name="Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Best way to compress HTML, CSS & JS with mod_deflate and mod_gzip disabled I have a few sites on a shared host that is running Apache 2. I would like to compress the HTML, CSS and Javascript that is delivered to the browser. The host has disabled mod_deflate and mod_gzip, so these options are out. I do have PHP 5 at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I implement a pre-commit hook script in SVN that calls dos2unix to validate checked-in file I was wondering if anyone here had some experience writing this type of script and if they could give me some pointers.
I would like to modify this script to validate that the check-in file does not have a Carriage Ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Change user for running windows forms program I wrote a simple Windows Forms program in C#. I want to be able to input a windows user name and password and when I click a login button to run code run as the user I've entered as input.
A: You can use the WindowsIdentity.Impersonate method to
achieve this. This meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Something like a callback delegate function in php I would like to implement something similar to a c# delegate method in PHP. A quick word to explain what I'm trying to do overall: I am trying to implement some asynchronous functionality. Basically, some resource-intensive calls that get queued, cached and dispat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Troubleshooting a NullReference exception in a service I have a windows service that runs various system monitoring operations. However, when running SNMP related checks, I always get a NullReference exception.
The code runs fine when run through the user interface (under my username and password), but always err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET MVC Ambiguous Type Reference Not entirely sure what's going on here; any help would be appreciated.
I'm trying to create a new .NET MVC web app. I was pretty sure I had it set up correctly, but I'm getting the following error:
The type 'System.Web.Mvc.ViewPage' is ambiguous: it could come from assembly
'C:\MyP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why do most system architects insist on first programming to an interface? Almost every Java book I read talks about using the interface as a way to share state and behaviour between objects that when first "constructed" did not seem to share a relationship.
However, whenever I see architects design an application,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How to access controls in listview's layouttemplate? How do I set a property of a user control in ListView's LayoutTemplate from the code-behind?
<asp:ListView ...>
<LayoutTemplate>
<myprefix:MyControl id="myControl" ... />
</LayoutTemplate>
...
</asp:ListView>
I want to do this:
myControl.SomeProperty = somevalue;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Maximum table size for a MySQL database What is the maximum size for a MySQL table? Is it 2 million at 50GB? 5 million at 80GB?
At the higher end of the size scale, do I need to think about compressing the data? Or perhaps splitting the table if it grew too big?
A: I once worked with a very large (Terabyte+) MySQL ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I specify "the word under the cursor" on VIM's commandline? I want to write a command that specifies "the word under the cursor" in VIM. For instance, let's say I have the cursor on a word and I make it appear twice. For instance, if the word is "abc" and I want "abcabc" then I could type:
:s/\(abc\)/\1\1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Does ScopeGuard use really lead to better code? I came across this article written by Andrei Alexandrescu and Petru Marginean many years ago, which presents and discusses a utility class called ScopeGuard for writing exception-safe code. I'd like to know if coding with these objects truly leads to better code or if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How do you send and receive UDP packets in Java on a multihomed machine? I have a machine with VmWare installed which added two extra network interfaces. The OS is Vista. I have two Java applications, one which broadcasts datagrams, and one which receives those datagrams. The problem I'm having is that unless I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.