text stringlengths 8 267k | meta dict |
|---|---|
Q: User Controls not showing up in the toolbox I have some UserControls that I created in ProjectA. I have ProjectB that has a windows form that I want to put the controls on. Both of these projects are in a single solution. There's a reference to ProjectA from ProjectB so it can "see" the UserControls.
However, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Hide/show row code speed Goal: Efficiently show/hide rows based on the data in the row.
*
*Create a helper column that determines whether or not
a row should be hidden.
*Have the formula in the helper
column return an error or a number.
*Hide the helper column and write
code to execute the hiding/showing.
Qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dynamically built SelectCommand for GridView SqlDataSource in asp.net I'm working with a GridView that uses a SqlDataSource element that looks like this:
<asp:SqlDataSource ID="InventoryDB" runat="server" ConnectionString="<%$ ConnectionStrings:InventoryConnectionString %>"
SelectCommand="SELECT ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.net Forms/DropDownList Help I have created 2 dropdownlists that are binded to a SQL DB and then pulling up a GridView. But, more specifically is there a way to have 3 user picked boxes and then have a Gridview show up? I would like to have a quick efficient way to do this without problems. I created the first... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do there exist any compilers with localized versions of programming languages? I have often wondered why it is that non-English speaking programmers are forced to use a different language when programming when it would seem to be so easy to offer an IDE that could replace keywords with localized versions. Why can't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is close/fclose on stdin guaranteed to be correct? It seems as though the following calls do what you'd expect (close the stream and not allow any further input - anything waiting for input on the stream returns error), but is it guaranteed to be correct across all compilers/platforms?
close(fileno(stdin));
fclose(s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Suggestions for Localising Exceptions I need to add localization to the exceptions thrown by my application as a lot are ApplicationExceptions and handled and logged to an error report. Ideally I want to create a new Exception, imheriting from ApplicationException that I can pass the resource key as well as argumen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Windows Role authentication in the App.config with WCF I am using a WCF service and a net.tcp endpoint with serviceAuthentication's principal PermissionMode set to UseWindowsGroups.
Currently in the implementation of the service i am using the PrincipalPermission attribute to set the role requirements for each... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Groovy advantages over Jython or Jruby? Why would I choose to use Groovy when I could use Jython or Jruby? Does the language provide any inherent advantages to make up for the fact that Jython and Jruby skills are applicable to their parent languages outside of the JVM?
Keep in mind that I purposely keeping this qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: CodeIgniter - Uploading an Image through a form, store the location of the image in database I'm trying to upload an image to my site through a form, however it's much more efficient to (rather than bog down the database) just store the location of the image in the database.
I'm having trouble with my form and reall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL Server xp_cmdshell Is there any other way to get a list of file names via T-SQL other than
INSERT INTO @backups(filename)
EXEC master.sys.xp_cmdshell 'DIR /b c:\some folder with sql backups in it
I am attempting to get a list of SQL backup files from a folder to restore and I do NOT want to use the xp_cmdshell... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Seeking a compact format for HTML ebooks for offline reading under Linux I have a netbook running Linux and a large collection of computer books and reference material as HTML. I'd like some compact way of storing these books which can be browed without unpacking them first. This would save space and reduce wear on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: calculate seconds-to-date for pre-epoch date/times using MS VS2003 I have this routine that calculates the seconds-to-date for a struct tm. On Linux my implementation using mktime works fine, but
mktime on windows VS2003/.NET 1.1 returns -1 for pre-epoch datetimes.
How do I calculate meaningful time_t values (i.e. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove Byte Order Mark from a File.ReadAllBytes (byte[]) I have an HTTPHandler that is reading in a set of CSS files and combining them and then GZipping them. However, some of the CSS files contain a Byte Order Mark (due to a bug in TFS 2005 auto merge) and in FireFox the BOM is being read as part of the actual co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is there a workaround for the missing FindName method in Silverlight's DataTemplate? According to the C# compiler and the Silverlight 2 documentation, Silverlight doesn't provide a FindName method for the DataTemplate class. I want to find a Border that's inside a ContentPresenter. What's the best way in SilverLig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Subversion: commit only modified files I want to commit a large amount of XML files which have been modified. However, within the directory that I want to recursively search through, there are many folders/files which have been added locally, these I do not want to commit.
Is there a way to do this on the command li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where can I find Visual Studio style tabs in either a built-in or 3rd party component? I want to get Visual Studio style tabs (you know, the ones where you can tab through the currently opened files).
Is there a 3rd party component that does this?
How hard would it be to do myself?
A: Try http://devexpress.com/fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Suggestions for Automated Code coverage for an Eclipse RCP? I would like to include some code coverage into our nightly build process. We're using CruiseControl, Ant, and Buckminster. Buckminster drives checkout from multiple repositories, and the PDE building and packaging of the product.
Has any one any experience... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I encourage code sharing and limit the bug tracking overhead while maintaining flexibility in my releases? How are you tracking changes, testing effort for bugs that impact multiple artifacts released separately?
Code sharing is good because it reduces the total number of paths through the code which means mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best data type for a 1 character code column in a SQL table? this is not a primary key, but merely used as a marker in existing system that marks these items with a 1 letter code ie 'N' for new, 'R' for return, etc. I was going to go with a varchar(50) as the data type but wondering if there's anything wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I force VB6 to enter the debugger from the execution of a program without a break point? I'm trying to watch the execution of a VB6 app and I'm running into an issue because once I enter the debugger and then hit Continue, it no longer lets me step through the code until I hit another break point. I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create a FPS game? I would like to know How to create a fps-game with SDL lib?
Are there any books that explain with examples?
A: Download the quake 3 sources at fileshack and learn from them.
A: Although the very long post is valueable in the long run, I feel it doesn't give the proper instant motivation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fast element lookup for a functional language(Haskell) Say we are traversing a graph and want to quickly determine if a node has been seen before or not. We have a few set preconditions.
*
*Nodes have been marked with integers values 1..N
*Graph is implemented with nodes having an adjacency list
*Every integer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a service that can take a feed and produce a daily digest from it? I run a feed aggregator (http://planetdb2.com/) and I need to aggregate both prolific (many posts a day) and less prolific (one post a day at most) feeds.
Creating a daily digest -- one post summary of the day's posts -- seems like the best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can Linux syslogd log non-English messages? I am setting up a logging infrastructure using syslog daemon on my Linux server. I have few clients both Windows and non-Windows that I am planning on configuring to forward logs as syslogs to my Linux server. Some of my client machines log in foreign language. Therefore, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Lambda expression exercise I have been trying to learn more about lambda expressions lately, and thought of a interesting exercise...
is there a way to simplify a c++ integration function like this:
// Integral Function
double integrate(double a, double b, double (*f)(double))
{
double sum = 0.0;
// Evaluat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Visual Studio: MyMacros won't show up in Tools > Options > Environ. > keyboard I have a macro that I wrote to just help me with my unit testing (it was derived from other macros that just add underscores to the name of the method as you write it,), and when I go to Tool > Options > Environment > and then keyboard to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Logging Location Where should I be logging exceptions? At the data service tier(ExecuteDataSet, etc.) and/or at the data access layer and/or at the business layer?
A: At a physical tier boundary.
Also in the top-level exception handler in the client.
I.e. if your business tier is running on a server, log exceptions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TortoiseSVN - Ignoring files within a folder already in the repository How do I ignore all files within a folder under source control?
/project/published/ is a folder I want to keep
/project/published/some_file(s) are files/folders I don't want
More Details: Currently when I go to commit changes for my project I see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to do hierarchical configuration in .NET's app.config app.config configuration sections are nice, but I often need multiple configuration sets, but with small difference.
what I want is:
*
*Have one section with default configuration (this one is created with the designer, and thus has the auto-generated str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: C# callback from DLL I'm writing Application A and DLL B, both in C#.NET. How do I do the following:
*
*A calls function in B
*Want B to use delegate/callback to update status in UI of A
This is not about BackgroundWorker...that part works fine in A. What I can't see is how to let B know what function to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Prime number calculation fun We're having a bit of fun here at work. It all started with one of the guys setting up a Hackintosh and we were wondering whether it was faster than a Windows Box of (nearly) same specs that we have. So we decided to write a little test for it. Just a simple Prime number calculator. It's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Is there a site which simply outputs the latest stable version numbers of php and mysql? I want to write a little app for myself which notifies me if there is a new version of php or mysql but I would need a feed or an xml file to read it from.
A: PHP.net provides one
http://www.php.net/releases/index.php?serialize... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why isn't MySQL using the index for this subquery? I used to do this:
SELECT layerID
FROM layers
WHERE ownerID = ?
AND collectionID = ?
Which would give me an array of layerID's, and then I'd loop and do this for each one:
SELECT DATA
FROM drawings
WHERE layerID = ?
And it all worked fine. So now I'm trying to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Forcing something to be destructed last in C++ I am working on a C++ app which internally has some controller objects that are created and destroyed regularly (using new). It is necessary that these controllers register themselves with another object (let's call it controllerSupervisor), and unregister themselves wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I redirect to an ftp:// url with Spring Webflow? I'm trying to use Spring WebFlow to redirect to a computed url to an ftp server, but in the ExternalRedirect code are the following lines:
} else if (location.startsWith("http://") || location.startsWith("https://")) {
sendRedirect(location, request, respon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add the identity property to an existing column in SQL Server In SQL Server (in my case, 2005) how can I add the identity property to an existing table column using T-SQL?
Something like:
alter table tblFoo
alter column bar identity(1,1)
A: I don't beleive you can do that. Your best bet is to create ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: XSD Code Generator Are there any Code Generators that would take a well-formed XML document, and write out an XSD schema based on how the XML document is structured?
A: Visual Studio does it pretty well too... Open XML file.. Choose 'Generate Schema' Command from XML menu
A: I am a little late to the part, but I f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What is a minimal path in a graph? In graph theory, what is the distinction between minimal distance (which Dijkstra's algorithm finds), and minimal path (which I'm not sure what it is)?
A: Minimal path is the set of edges which when traversed cover the least amount of distance between two edges. Minimal distance ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows default size for console application While testing a console app, I set the properties of the console window to be only 3 lines high.
This change has somehow stuck, meaning that new console windows default to 3 lines high. If I create a new shortcut on the desktop, and point it to cmd.exe, the window that o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Fastest way for doing INSERTS using IBATIS I need to insert 20,000 rows in a single table (SQL Server 2005) using iBatis. What's the fastest way to do it ? I'm already using batch mode, but it didn't help much:
try {
sqlMap.startTransaction();
sqlMap.startBatch();
// ... execute statements in between
sqlMap.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way to convert from System.Windows.Forms.HtmlElement to mshtml.IHTMLElemenet3? Is there a way to convert from System.Windows.Forms.HtmlElement to mshtml.IHTMLElemenet3?
--edit after answer accepted --
This is what the code would look like.
HtmlElement myElement = getElementByID(id);
IHTMLElement3 h3 = (IH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Server 2005 and iTunes Library what's the easiest way to bulk load my iTunes library xml into an existing SQL Server database?
A: bcp with xml flag.
http://msdn.microsoft.com/en-us/library/ms162802.aspx
It really depends how you want it in there and what you're purposes are, which you haven't explained.
A: I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does it matter if I use RowDataBound or DataBound for a GridView According to the VS 2008 properties for a GridView:
*
*DataBound fires after the control has been databound.
*RowDataBound fires after a row has been databound.
If I want to manipulate the text in a header column, does it matter if I use the Data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: JavaScript RegEx for div tags I have a JavaScript variable which holds an HTML page and due to the setup I need to extract everything between <div id="LiveArea"> and </div> from that variable using JavaScript.
Any help is greatly appreciated.
A: This will not be possible with just a regular expression unless the HT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How does VC++ mangle local static variable names? Here's some code I have:
MyClass* MyClass::getInstance()
{
static MyClass instance;
return &instance;
}
I want to look into this singleton's current values. But I'm currently paused three hours into execution, and the reason I'm paused is that I'm out of memor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I log cross-domain intranet traffic (including username) using a HTTPHandler? I am attempting to log user activity for a couple internal websites as well as our SharePoint sites. I use JavaScript to make a call (GET) to an ashx page (HTTPHandler) that returns a 1x1 invisible GIF. The HTTPHandler grabs the ref... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Websphere 6.x LDAP query using LdapContext is the transmission of credentials encrypted? In Websphere when you do an LDAP query using LdapContext are the transmission of credentials encrypted?
LdapContext ctx = new InitialLdapContext (env, null);
Lets say I make an LdapContext for a web app to do some custom LDA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Bash Shell Scripting: what simple logic am I missing This may be too generic a question as is but...
I am stumped by trying to move through the directories from within a shell script. I'm not a *nix power user, but I am comfortable working through the command line for most tasks. I'd like to call a script that can m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Make image be identified as being linked in visio I have made it so that when I double click on certain images in Visio, it will take you to another page. Is there a way that the image can be identified as being linked so that if i sent it to someone, they would know to click on it?
A: Firstly the appearance of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Code documentation: How much is too much? How much code documentation in your .NET source is too much?
Some background: I inherited a large codebase that I've talked about in some of the other questions I've posted here on SO. One of the "features" of this codebase is a God Class, a single static class with >3000 li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Returning an interface from a WCF service I have some .NET remoting code where a factory method, implemented in some server side class, returns interfaces to concrete objects, also executing on the very same server. .NET remoting automagically creates proxies and allows me to pass the interfaces across to the client... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Ruby on Rails: Is it possible to request the current time from the SQL server? In a previous question about overriding Time.now, I was working toward a solution of faking clock synchronization across all machines connecting to a given database. Overriding Time.now seemed the best way for the approach I was taking, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio: Where is IntelliSense in the Immediate Window? It would seem the Immediate window needs some jazzing up ala IntelliSense?
Anyone agree/disagree? Is this coming in VS2008/2010?
A: When debugging in Visual Studio 2008, you can get intellisense to pop up by pressing ctrl+space. Also, it will pop up in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Problem drawing graphics to user control My application pops a form as a child of the main form. On the form is
User Control with a Panel where Graphics are rendered. When executed
from Visual Studio in debug mode the drawing is often rendered as expected,
imagine a simply XY graph. If the panel's graphic aren't dra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery Toggle function doesn't work on 1st click I realized the solution to this problem while I was creating the documentation to ASK this question...so I am posting the answer if for no other reason than to keep me from wasting time on this in the future
A: If the content to be TOGGLEd is displayed (visible) when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Configurable Columns in ASP.NET Does anyone have a suggestions as to the best way to allow users to select which columns appear in a datagrid? I would like them to be able to set this up. It would be stored with the user in a profile and loaded each time the user loads the grid. I was thinking about something wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: alternative to cron? Does anyone know of a good alternative to cron? I would like something that can be run with different time zones.
A: You may consider Quartz (a java-based solution), that can take advantage of Date build in the appropriate TimeZone.
A: For the future readers, consider Chronos, developed and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Application_End global.asax Can anybody tell me when Application_End is triggered in a lifecycle of an application? When all sessions are ended, will Application_End be triggered automatically? + Are there any other reasons why Application_End could be triggered?
A: The application_end event primarily fires when th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: How does reflection tell me when a property is hiding an inherited member with the 'new' keyword? So if I have:
public class ChildClass : BaseClass
{
public new virtual string TempProperty { get; set; }
}
public class BaseClass
{
public virtual string TempProperty { get; set; }
}
How can I use reflection t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Win32: Atomic Execution of Code Block I have two system calls GetSystemTime() and GetThreadTimes() that I need to calculate the CPU utilization by a given Win32 thread.
For the sake of accuracy, I need to ensure that both GetSystemTime() and GetThreadTimes() are executed atomically; i.e. there should be no context s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaScript Non-regex Replace Do any of the existing JavaScript frameworks have a non-regex replace() function,
or has this already been posted on the web somewhere as a one-off function?
For example I want to replace "@!#$123=%" and I don't want to worry about which characters to escape. Most languages seem to have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Visual Studio behaves strangely while debugging with breakpoint conditions A method I work with that is called tens of thousands of times started throwing exceptions recently. In most debugging circumstances I would set a breakpoint at the top of this method and run through until I reach the call I'm interested in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Oracle: TNS-12532: TNS:invalid argument Trying to establish a connection between my windows box (2003 server) and the oracle (11g) database.
I'm able to successfully ping the oracle host from the windows box. However tnsping command fails with the error tns-12532 error.
Any ideas to solve this issue?
A: From the O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to display a non-breaking space with VB's inline XML I am using VB9's inline XML, and I have a need to specify a non-breaking space. Where you would normally use " " in html, using it in inline XML produces the "XML entity references are not supported" error. How do you specify a non-breaking space?
A: Mos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to implement background services for an ASP.NET application? My ASP.NET application needs a number of supporting services to run periodically in the background. For example:
*
*I need to query the database (or cache) every 1-5 minutes, identify overdue work items and notify users by email
*I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL 2000 and SQL 2008 Express side by side? This question has been asked in regards to 2005, but did not see anything with 2000. We have a new application that needs to run on 2005 or better but everything else we have is geared towards 2000. We could upgrade, but that is not within budget at this time.
We were ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Guidelines for / differences between cache / pool / cache pool I'm doing some design (initially for Java) (but may extend to .NET in the future?) and I'm getting confused between the terms "cache" and "pool".
As far as I can see, the main point of difference is what is contained in them?
Any guidelines as to which s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does "Standard" mean in the datatype column of describe if you
Describe dbms_transform
PROCEDURE COMPUTE_TRANSFORMATION
Argument Name Type In/Out
------------------------------ ----------------------- ------
MESSAGE STANDARD IN
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get the HTML output of a UserControl in .NET (C#)? If I create a UserControl and add some objects to it, how can I grab the HTML it would render?
ex.
UserControl myControl = new UserControl();
myControl.Controls.Add(new TextBox());
// ...something happens
return strHTMLofControl;
I'd like to just convert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Deserializing a complex JSON result (array of dictionaries) with TouchJSON I did a few tests with TouchJSON last night and it worked pretty well in general for simple cases. I'm using the following code to read some JSON content from a file, and deserialize it:
NSString *jsonString = [[NSString alloc] initWithConten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Moq Expect On IRepository Passing Expression I am using this code to verify a behavior of a method I am testing:
_repository.Expect(f => f.FindAll(t => t.STATUS_CD == "A"))
.Returns(new List<JSOFile>())
.AtMostOnce()
.Verifiable();
_repository is defined as:
private Mock<IRepository<JSOFile>> _repos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Calculating MD5 of a file to guarantee integrity I am trying to guarantee the integrity of a file after download. I store the MD5 of the file in database and compare that MD5 to the file after it is downloaded. However, I always get different MD5 results when I hash the file after it is downloaded. I am wondering if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IRC channel for iPhone developers? I was wondering if there is a good IRC channel around somewhere that allows iPhone developers to get together and talk about code and etc.
Any channel already around that people are using?
A: I've found the various iphone channels on irc.osx86.hu to be helpful.
A: It's #iphonedev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How Can I put information in a outputstream from tapestry5? How Can I put information in a outputstream from tapestry5 ?
I need a page when a user enters it open a dialog for save or open the file with the outputstream information.
I write the next code:
public class Index {
@Inject
private RequestGlobals requestGlo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Variable declaration placement in C I long thought that in C, all variables had to be declared at the beginning of the function. I know that in C99, the rules are the same as in C++, but what are the variable declaration placement rules for C89/ANSI C?
The following code compiles successfully with gcc -std=c89 and g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "142"
} |
Q: How can I remove a swf file that's embedded in html using a button in the swf? I have a swf file that's embedded in a html page, and I have a close button in the swf page, I want the swf to disappear when I click on the button, what is the best way to do that? Thanks.
A: If your ursing swfobject 2.1 to embed the sw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I start designing portlets in Eclipse? Is there any plugins for Eclipse for portlet design and deployment? I have never designed portlets so are there any good tutorials on the web as well?
A: You do have a tutorial about portlet development (not portlet deployment though, that would be through an appropriat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WCF and MSMQ failure handling Can someone explain to me the difference between these 3 approaches to processing messages that fail delivery?
*
*Poison Queue service
*Dead-Letter Queue service
*Using a response service to handle failures
I have "Programming WCF", but I don't really understand when you would us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: .NET cancel stream BeginRead I have not been able to find a way to cancel/terminate asynchronous read operation after successful HttpWebRequest. There is no way to set timeout, ThreadPool.RegisterWaitForSingleObject is not working too. And closing the underlying socket is not an option too because neither HttpWebReq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I access element attributes from an IXMLDOMNode? I'm building an XML DOM document in C++. My problem is this: I execute an XPATH query from an Element in my Document, which I know will return another Element. The elementPtr->selectSingleNode call returns an IXMLDOMNode. How can I gain access to the attribut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trouble linking SWC file I am trying to link the as3corelib library to use their JSON functionality following this tutorial. But am having trouble compiling it. My command looks like:
mxmlc --strict=true -library-path+=as3corelib.swc --file-specs myapp.mxml
But I am getting this error:
_divided_mx_managers_Syste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can SQL Server 2008 Reporting Services use a list of objects as a data source in a ASP.NET application I am working on an ASP.NET (3/5) web application. In the application, we assemble lists of classes from a variety of data sources. I would like to create a report in SQL Server SSRS that renders a report from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Enterprise Library 4: logging block flat file I am having problem creating log entry to a text file. Here is my logging configuration in my ASP.net app.
and here is my vb.net code
Try
db.ExecuteNonQuery(cmd, tr)
tr.Commit()
result = True
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSH hangs on Mac Book Pro; AFS and Network Preferences? I am having an issue with SSH hanging on my Mac Book Pro. This only happens to me once I get home from work after I have used SSH while at work. The three factors I have narrowed the issue down to are SSH, our work AFS network drive and the method of network co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does Xcode support regions? Does Xcode support anything akin to Visual Studio style #region directives for arbitrary code folding?
A: No, you can only fold code on various defined scoping levels in Xcode.
You can use little tricks to make navigating via the function menu easier, though.
#pragma mark
Allows you to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Heuristic for sliding tile problem The idea is to move all of the right elements into the left and the left into the right with an empty space in the middle. The elements can either jump over one or two pieces into an empty space.
LLL[ ]RRR
I'm trying to think of a heuristic for this task. Is the heuristic meant t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resizing a window to a set size in Linux Anyone knows a good way to resize any window to for example 640x480?
Reason is, of course, screencasting.
Under windows I've used ZoneSize from donationcoder. (Btw: For Firefox it's easy, just use the web developer toolbar.)
A: Use the wmctrl command:
To list the windows:
$ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How do I determine if a given date is the Nth weekday of the month? Here is what I am trying to do:
Given a date, a day of the week, and an integer n, determine whether the date is the nth day of the month.
For example:
*
*input of 1/1/2009,Monday,2
would be false because 1/1/2009 is not the second Monday
*input... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: C#: How do you tell which item index is selected in ListView? C#: How do you tell which item index is selected in ListView?
A: ListView mylistv = new ListView();
var index = mylistv.SelectedIndices();
That should do it.
A: Have you tried SelectedIndices?
myListView.SelectedIndices
A: Use the SelectedIndex prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Connect to Exchange mailbox with Python I need to connect to an Exchange mailbox in a Python script, without using any profile setup on the local machine (including using Outlook). If I use win32com to create a MAPI.Session I could logon (with the Logon() method) with an existing profile, but I want to just provide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How to create a Sidebar form in delphi How can I create a Sidebar form in delphi.
I try the ScreenSnap and Align properties but I need that the form stay visible even if the user maximize other forms, without been on top. Just like the windows sidebar do.
Update: From the comments: if a window is maximized, it maxim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to properly set up Application Pools for IIS6 I am really stuck with this Parser Error Message telling me "Could not load the assembly 'App_Web_amlohswi'. Make sure that it is compiled before accessing the page." I have been looking around for a few hours checking different posts here and googling information. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to turn off mysql errors from being displayed to screen in CodeIgniter Even though error_reporting is set to 0, database errors are still being printed to screen. Is there a setting somewhere I can change to disable database error reporting? This is for CodeIgniter v1.6.x
EDIT: Re: Fixing errors - Um, yes. I wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Unpacking _WTS_CLIENT_ADDRESS.Address in vb.net (retrieving IP address from Terminal Services Client) I have the following structure:
<StructLayout(LayoutKind.Sequential)> _
Public Structure _WTS_CLIENT_ADDRESS
Public AddressFamily As Integer
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: webtest, web application projects, and tfsbuild I have a web application project (wap) that is successfully being deployed to a development server by our tfsbuild server.
I'd like the build server to run our collection of webtests after deployment.
What is a best practice (or ANY practice) for doing this?
A: I use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find a server's machinekey if it wasn't set Trying to transfer servers but a connection string is encrypted and there is no machinekey set in the web.config. Is there anyway to find out what the machinekey was on the old server so we can set it on the new server?
A: Why not just decrypt using the -pd switch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: $1 and \1 in Ruby When using regular expressions in Ruby, what is the difference between $1 and \1?
A: \1 is a backreference which will only work in the same sub or gsub method call, e.g.:
"foobar".sub(/foo(.*)/, '\1\1') # => "barbar"
$1 is a global variable which can be used in later code:
if "foobar" =~ /foo(.*)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Is there a good reason for storing percentages that are less than 1 as numbers greater than 1? I inherited a project that uses SQL Server 200x, wherein a column that stores a value that is always considered as a percentage in the problem domain is stored as its greater than 1 decimal equivalent. For example, 70% (0.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I verify the integrity of a Sybase dump file, without trying to load it? Here's the scenario - a client uploads a Sybase dump file to (gzipped) to our local FTP server. We have an automated process which picks these up and then moves them to different server within the network where the database server reside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/288582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.