text
stringlengths
8
267k
meta
dict
Q: How can I pass a class member function as a callback? I'm using an API that requires me to pass a function pointer as a callback. I'm trying to use this API from my class but I'm getting compilation errors. Here is what I did from my constructor: m_cRedundencyManager->Init(this->RedundencyManagerCallBack); This do...
{ "language": "en", "url": "https://stackoverflow.com/questions/400257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "95" }
Q: Retrieve session with session_id in Ruby On Rails? I want to access the session of a user from a different domain than the one that I initiated the session. Can I use session.session_id of the user and then retrieve the session hash of that user ? Thank you A: If it's on a different domain (i.e., not a subdomain), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RegEx Whitespace Vs. Eclipse I´m trying to make a regular expression to match a whitespace and so far I´m doing this: Powered[\s]*[bB]y.*MyBB I know it should work because I've tried it with Regex Buddy and it says it does but when I try to run it with Eclipse it marks an error saying it's not a valid escape sequen...
{ "language": "en", "url": "https://stackoverflow.com/questions/400276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BindingSource Filter by date I want to filter values from database based on date. Date in a database contains values like this: 2008-12-28 18:00:00. And my class has a DateTime variable depending on which I want to filter. Ideally it would work like this: myBindingSource.Filter = "DATE(myDateField) = myDateTime.Date...
{ "language": "en", "url": "https://stackoverflow.com/questions/400283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Seeking an algorithm to efficiently layout calendar event banners I'm looking for an algorithm to efficiently place all-day/multi-day event banners, much like the month view in Outlook or Google Calendar. I have a number of events with a begin and end date, ordered by increasing begin (and then end) date (or any oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/400288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Troubleshooting Intermittent Failures on Web Applications (ASP.NET) Got reports of a web app going down twice in three weeks. Need to do some root cause analysis. works fine after a reboot. I'm not really an expert in this field. It is hosted on IIS and Windows 2003. There is nothing interesting in the event viewer,...
{ "language": "en", "url": "https://stackoverflow.com/questions/400294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an easy way to work with web services for iPhone dev? We want to take XML data and convert it to an NSDictionary object, but we don't want to manually iterate over the XML. Is there an easy way to do this? How are you doing web services for your iPhone app? A: If you can control the server output, try usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/400299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When is the IOC container ready? When is the IOC container in the life cycle of an ASP.NET application? When can I start requesting objects from the container? A: Depending on which container you are talking about (Windsor, StructureMap, Ninject, etc) they are generally available immediately after creation. You typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing in Visual Studio Succeeds Individually, Fails in a Set When I run my tests in Visual Studio individually, they all pass without a problem. However, when I run all of them at once some pass and some fail. I tried putting in a pause of 1 second in between each test method with no success. Any ideas? Thanks in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is the Provider Model using the Factory pattern? Is the Provider Model really just the Factory pattern? A: According to this, Providers are a subclass of the ProviderBase class and typically instantiated using a factory method. So I would say no, they're not same thing, but a factory is used in implementing a Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/400306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What does "T" mean in C#? I have a VB background and I'm converting to C# for my new job. I'm also trying to get better at .NET in general. I've seen the keyword "T" used a lot in samples people post. What does the "T" mean in C#? For example: public class SomeBase<T> where T : SomeBase<T>, new() What does T do...
{ "language": "en", "url": "https://stackoverflow.com/questions/400314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Getting an error while attempting to checkout with SharpSVN While attempting to use the following code, I am receiving the following error : Already working for different url, error code 155000. string targetPath = @"C:\Documents and Settings\Admin\My Documents\CPM Creator\"; //" for prettify client.Authenticatio​n...
{ "language": "en", "url": "https://stackoverflow.com/questions/400330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unit testing a Hibernate driven application? This may be a naive question, but I am new to both the junit and hibernate frameworks and I was wondering what the best way to go about unit testing an application that is largely calls to hibernate, or if it is even necessary to do so? What is the best practice here? ED...
{ "language": "en", "url": "https://stackoverflow.com/questions/400338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight? What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight? Why would I choose one over the other? and what happened to Java Applets and ActiveX controls? Oh, and where does AJAX fit in to all this? and is Laszlo rele...
{ "language": "en", "url": "https://stackoverflow.com/questions/400340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Disable ASP.NET validators with JavaScript Does anyone know how to disable an ASP.NET validator using JavaScript? I'm using javascript style.display = 'none' to disable parts of a web page. However these disabled parts have asp.net validators that are still firing and I need to disable then without doing a round tri...
{ "language": "en", "url": "https://stackoverflow.com/questions/400346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Algorithm for re-wrapping hard-wrapped text? Let's say that I have written a custom e-mail management application for the company that I work for. It reads e-mails from the company's support account and stores cleaned-up, plain text versions of them in a database, doing other neat things like associating it with cus...
{ "language": "en", "url": "https://stackoverflow.com/questions/400359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Empty QueryString parameter The Problem What is the proper way to check for the foo parameter in the following url's querystring using asp.net? Is this even possible? http://example.com?bar=3&foo I have tried checking Request["foo"] as well as Request.QueryString["foo"] and I get null for both. I have also tried ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Is there an easy way to make Solr reference different indexes based on a set of credentials submitted with the request? I'd like to have a single instance of Solr, protected by some sort of authentication, that operated against different indexes based on the credentials used for that authentication. The type of auth...
{ "language": "en", "url": "https://stackoverflow.com/questions/400366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Get rid of the line under that tab of the tab control Using xaml ( wpf ) I'm trying to get rid of the line under the tab control as show in the "Illustration A" below so that it ends up looking like "Illustration B": Illustration A http://www.arulerforwindows.com/images/peskylinea.png Illustration B http://www.arule...
{ "language": "en", "url": "https://stackoverflow.com/questions/400395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to limit the number of characters read by StreamReader.ReadLine() in .NET? I am writing a web server application in C# and using StreamReader class to read from an underlying NetworkStream: NetworkStream ns = new NetworkStream(clientSocket); StreamReader sr = new StreamReader(ns); String request = sr.ReadLine...
{ "language": "en", "url": "https://stackoverflow.com/questions/400407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Web Service Performance Issue I've got a simple asmx web service that just needs to log some information to a transactional database. However it is timing out for the client. The call to update the database just calls 1 stored procedure and I don't beleive it could be optimized further for better performance. I'v...
{ "language": "en", "url": "https://stackoverflow.com/questions/400413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Equivalent of WeekDay Function of VB6 in C# In VB6 code, I have the following: dim I as Long I = Weekday(Now, vbFriday) I want the equivalent in C#. Can any one help? A: You mean the DateTime.DayOfWeek property? DayOfWeek dow = DateTime.Now.DayOfWeek; A: Yes, Each DateTime value has a built in property calle...
{ "language": "en", "url": "https://stackoverflow.com/questions/400421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to save an image-file on server through Java applet? I have a paint application that runs as a Java applet. I need to save the contents of the canvas on server machine in any image-format typically PNG. Please help! A: You need to do two things: * *Generate an PNG image file in your applet - Writing/Saving a...
{ "language": "en", "url": "https://stackoverflow.com/questions/400422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Understanding SSL connections with .NET's HttpWebRequest I can't seem to get my head around this one. I'm using HttpWebRequest to try and send some data out to another site. I'm attempting to figure out the best way to get our firewalls configured, but I'm at a loss. By watching the NetMon trace, it appears as thoug...
{ "language": "en", "url": "https://stackoverflow.com/questions/400428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Equivalent of `IF ( X AND ( 2 ^ Y ) ) Then` in C# I have this If condition in VB6 If ( X AND ( 2 ^ Y)) Then a = a + " 1" Else a = a + " 0" I want the same equivalent in C# I tried doing like if ( X && ( 2 ^ Y)) // ERROR: && can not be used between int to int a = a + "1"; else a = a + "0"; but this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sample Hibernate program? How would I write a simple program using Hibernate in Java, with MySQL as a backend? A: The Hibernate reference docs are a good place to start. Maybe a "Hello, Hibernate" can help. A: In addition to Duffymo's suggestion, I would recommend trying out Netbeans 6.5. I am just starting out wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/400450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linq and DeleteAllOnSubmit pain The following code loads a gig, clears out the gigs acts collection and then adds a new act. Data.LinqToSQL.Gig dbGig = DBContext.Gigs.Where(x => x.ID == myGigID).SingleOrDefault(); //Remove all references to the current acts if(dbGig.Acts!=null) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/400464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the major differences between Rails 1.X and 2.X Most dead-tree books and web tutorials address Rails 1.X. I'm wondering if they are worth using to learn Rails 2.X. If so, what sections and concepts should I avoid and what have pretty much stayed the same? A: One of my favorite books is the "skateboard" b...
{ "language": "en", "url": "https://stackoverflow.com/questions/400470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Does the iPhone API allow my application to respond to the headset button? I cannot find this in the documentation anywhere. Does anyone know if this is possible or if it's on a lower level unavailable to 3rd party apps? A: No it does not. I looked for this too. Sorry to bear bad news.
{ "language": "en", "url": "https://stackoverflow.com/questions/400472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I launch a new browser window with no toolbars? I want a hyperlink on my main page to launch an HTML help page in a new browser window. However I want the new window to only have an address bar, i.e. not have a menu, toolbars or status bar, and better still not even have an editable address bar. I have see...
{ "language": "en", "url": "https://stackoverflow.com/questions/400475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: On a 64-bit machine is the size of an int in Java 32 bits or 64 bits? On a 64-bit machine is the size of an int in Java 32 bits or 64 bits? A: If you want a 64-bit integer, use a long. A: 32 bits. It's one of the Java language features that the size of the integer does not vary with the underlying computer. See th...
{ "language": "en", "url": "https://stackoverflow.com/questions/400477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: When will it be impossible to support Visual Basic 6.0 applications? In the last 3-5 years I have been renewing an insurance application and a commmercial integration toolkit based on Visual Basic 6.0. According to Microsoft's "It just works policy" the IDE is no longer supported after april 8th 2008. It still works...
{ "language": "en", "url": "https://stackoverflow.com/questions/400479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Return Object From Webservice How can I retuen a Object from a web service: [WebMethod] public DataSet GetVendors(string Database) { SqlConnection sqlConn = new SqlConnection(); sqlConn.ConnectionString = GetConnString(Database); // build query string strSQL = @" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dictionaries and Hash Tables in MS-Access 2007 I'm want to use either a hash table or a dictionary in my access program. Apparently, I'm supposed to be using the Microsoft Scripting Runtime Library for this, but it doesn't work. Dim Dict1 As Dictionary ' Create a dictionary instance. Set Dict1 = New Dictionary ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are there any good drag&drop web app IDEs out there that support AJAX? Can anyone recommend a GUI builder tool for creating DHTML web apps using AJAX to communicate with a web service backend? I'd like to avoid having to mess around with designing HTML, marshalling/unmarshalling data, checking for browser compatibil...
{ "language": "en", "url": "https://stackoverflow.com/questions/400503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I run two instances of the iPhone simulator (Aspen) to try out the WiTap example? Has anyone had any luck running two instances of the iPhone simulator to test network code between the two? A: No but you can run the Simulator and the WiTap code on your phone. I've done that and it's pretty cool. Just provis...
{ "language": "en", "url": "https://stackoverflow.com/questions/400511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: TFS Structure - Multiple Projects or Single Project? Our small development shop is looking to migrate our projects from VSS to TFS, and we're evaluating TFS vs. others (haven't pulled the trigger quite yet). The nature of our software shop is such that we have 100+ projects in VSS ranging from small one-man-show pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/400517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Matching version number parts with regular expressions I'm trying to match the parts of a version number (Major.Minor.Build.Revision) with C# regular expressions. However, I'm pretty new to writing Regex and even using Expresso is proving to be a little difficult. Right now, I have this: (?<Major>\d*)\.(?<Minor>\d*)...
{ "language": "en", "url": "https://stackoverflow.com/questions/400522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Visual Studio 2008 version specific references Does anyone know if Visual Studio 2008 has a mechianism in web applications to include a reference without it being version specific? Backstory: I have a new web application built in VS08 which references class libraries built in VS03. The class library DLLs are include...
{ "language": "en", "url": "https://stackoverflow.com/questions/400524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.Net ScriptControl - Add the Javascript get_events method : Possible? So I've run into a snag, apparently the get_events method is only "included" with the ExtenderControl class. What I need to do: Be able to call the get_events Javascript method using a ScriptControl since using an ExtenderControl isn't really p...
{ "language": "en", "url": "https://stackoverflow.com/questions/400537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best practice for managing data-model changes in a released system I am about to embark on the development of a web application project. I'd like to get something up early and often for early adopters to play with and feedback. But I envisage the data model changing as the project progresses and my understanding of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the best way to unit test an asynchronous method? I can't seem to find a .NET answer to this problem, which I would have thought would be fairly common. What is the best pattern for unit testing an asynchronous method? Obviously I need to call the method and then see if the callback fires, but is there a bet...
{ "language": "en", "url": "https://stackoverflow.com/questions/400552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How do I calculate percentages with decimals in SQL? How can i convert this to a decimal in SQL? Below is the equation and i get the answer as 78 (integer) but the real answer is 78.6 (with a decimal) so i need to show this as otherwise the report won't tally up to 100% (100 * [TotalVisit1]/[TotalVisits]) AS Visit1p...
{ "language": "en", "url": "https://stackoverflow.com/questions/400557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: grouping records in one temp table I have a table where one column has duplicate records but other columns are distinct. so something like this Code SubCode version status 1234 D1 1 A 1234 D1 0 P 1234 DA 1 A 1234 DB 1 P 5678 BB...
{ "language": "en", "url": "https://stackoverflow.com/questions/400562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any way to inherit a class without constructors in .NET? I'm currently trying to modify some HttpWebRequest functions, but I can't do it through inheritance because HttpWebRequest has no public constructors (besides the deserialization constructor). Is there a workaround to do this? My objective is to code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Full-justification with a Java Graphics.drawString replacement? Does anyone know of existing code that lets you draw fully justified text in Java2D? For example, if I said, drawString("sample text here", x, y, width), is there an existing library that could figure out how much of that text fits within the width, do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Server Rejecting Biztalk X.509 Certificates Our ssl certificate recently expired, so we were issued a new one by the CA. Unfortunately, when biztalk uses this certificate to access a server, the server rejects it, giving us a 403.17 error (Expired or not yet valid). So I checked the dates of the certificate and it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When is the proper time to use the SQL statement "SELECT [results] FROM [tables] WHERE [conditions] FETCH FIRST [n] ROWS ONLY" I'm not quite sure when selecting only a certain number of rows would be better than simply making a more specific select statement. I have a feeling I'm missing something pretty straight f...
{ "language": "en", "url": "https://stackoverflow.com/questions/400575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create metadata for jpeg images in xp I have an archive of Dilbert cartoons, and would like to organize them in a way, that I can find the one I need based on something on the order of a keyword search. I am looking for suggestions on a reasonable way to accomplish that programatically. I am leaning towards ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Meaning of :: Operator in C# and PhP In my work I have come across syntax like global:: (C#) or G:Loading($value) in Php, what do they mean? A: In C# :: is the namespace alias qualifier operator, and global indicates the global namespace. It is necessary if you have overlapping classes and namespaces. For example, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why doesn't my form post when I disable the submit button to prevent double clicking? Like every other web developer on the planet, I have an issue with users double clicking the submit button on my forms. My understanding is that the conventional way to handle this issue, is to disable the button immediately after...
{ "language": "en", "url": "https://stackoverflow.com/questions/400616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Which windows server 2008 edition for a DB server We are uprading our servers and we're going to have 3 servers - 1 db server and 2 frontend web servers. For the web servers we'll use 2008 Web edition but we can't decide which edition to use for the db. At first we were thinking of using Standard edition but with ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/400622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I compress multiple files into a single archive with Delphi I need to compress multiple files into a single archive using Delphi. I'd prefer to use freeware components or open-source components because I am very very cheap :-) My primary requirements are: * *Possible to encrypt the archive *Can create com...
{ "language": "en", "url": "https://stackoverflow.com/questions/400627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: TortoiseSVN Working Copy / Revision is not commiting properly I have a VS 2008 project under TortoiseSVN source control. I am the only person using it at present. I was trying to commit my latest changes when I received the message "File abc is out of date - please update". When I try to update the project, I get a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to place a banner on webpage with one application to all pages of a website How can I place a banner on webpage with one application to all pages of a website? A: One way of doing this is to put your banner into a file, then include that one on each of your other pages. This way, you only have to change the cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/400631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Protection from Format String Vulnerability What exactly is a "Format String Vulnerability" in a Windows System, how does it work, and how can I protect against it? A: A format string attack, at its simplest, is this: char buffer[128]; gets(buffer); printf(buffer); There's a buffer overflow vulnerability in there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is adding attributes to nodes in the web.sitmap a bad idea? I using SiteMapPath with an xml file for data. I would like to use the same file for another menu, but I need to have more information attached to each node. <siteMapNode target="_blank" url="~/Default.aspx" title="Home" description="Home Page" > VS <siteM...
{ "language": "en", "url": "https://stackoverflow.com/questions/400666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I lower the volume of iPod audio while my app plays a sound I'm trying to reproduce the functionality of built-in Mail application when a new message arrives while you are listening to iPod music. What happens with the Mail app is: * *iPod's volume lowers a bit *Mail app plays a short sound and vibration...
{ "language": "en", "url": "https://stackoverflow.com/questions/400674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Querying Jet Databases/Excel files with C# under x64 OS So I have learned that that the Microsoft.Jet.OLEDB.4.0 data provider for querying data sources like Microsoft Access MDB files and Excel spreadsheets does not work under a Windows 64-bit operating systems. What I am now supposed to use to query against these f...
{ "language": "en", "url": "https://stackoverflow.com/questions/400684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# Create OU in Active Directory I'm struggling to create an OU for Active Directory using the code below. strPath = "OU=TestOU,DC=Internal,DC=Com" DirectoryEntry objOU; objOU = ADentry.Children.Add(strPath, "OrganizationalUnit"); objOU.CommitChanges(); The problem is strPath contains the full path 'OU=TestOU,DC=...
{ "language": "en", "url": "https://stackoverflow.com/questions/400691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Converting serialized WCF objects back to native objects I miss the .Net remoting days when I could just send an object over the wire and it would work on both sides of the middle layer without much work. Here's why: I've been given an assignment. I'm building a Logic/Data Abstraction layer (stupid PCI Compliance) s...
{ "language": "en", "url": "https://stackoverflow.com/questions/400704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Circular References Cause Memory Leak? I'm trying to run down a memory leak in a windows forms application. I'm looking now at a form which contains several embedded forms. What worries me is that the child forms, in their constructor, take a reference to the parent form, and keep it in a private member field. So...
{ "language": "en", "url": "https://stackoverflow.com/questions/400706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Testing C code using the web I have a number of C functions which implement mathematical formulae. To-date these have been tested for mathematical "soundness" by passing parameters through command line applications or compiling DLL's for applications like Excel. Is there an easy way of doing this testing over the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to do equivalent of "limit distinct"? How can I limit a result set to n distinct values of a given column(s), where the actual number of rows may be higher? Input table: client_id, employer_id, other_value 1, 2, abc 1, 3, defg 2, 3, dkfjh 3, 1, ldkfjkj 4, 4, dlkfjk 4, 5, 342 4, 6, dkj 5, 1, dlkfj 6, 1, 34kjf 7, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Crystal Reports - Failed to open a rowset What can be done to resolve the exception: CrystalDecisions.CrystalReports.Engine.InternalException: Failed to open a rowset. A: This is a generic error in Crystal Reports whenever the report query fails. There can be a number of causes. If your report was targeted to a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/400717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: ASP.NET - Disabling validators in a gridview using javascript Further to my question on disabling validators using javascript - Disable ASP.NET validators with JavaScript ... Does anyone know how to pass through a gridview in javascript to dynamically disable the validators on each row. I now understand that I'll ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/400723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fix or workarount for jQuery dialog in IE6 - major layout issues when the dialog contains a form I'm working with a jQuery dialog that contains a form. In ie6, there are a couple unexplained inches of padding above the form. When I eliminate the form from the markup, the most serious layout problems go away. I've tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/400728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio - Filter exceptions from debug output I have some code that causes a bunch of exceptions (which can safely ignored) but it floods my debug output window. It always has the same form and would be easy to filter out. How do i write a macro(?) to filter out these lines in realtime A: Right click in the O...
{ "language": "en", "url": "https://stackoverflow.com/questions/400731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Centering fonts in VB6 How do you determine the length of a string of text in Arial Bold font, and then center it in VB6? We are not using a "label" or "picture box" to print the text to the screen. We are sizing the text on the fly, and allowing the user to scale the size of our application to their liking. We writ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get ASCII value of string in C# I want to get the ASCII value of characters in a string in C#. If my string has the value "9quali52ty3", I want an array with the ASCII values of each of the 11 characters. How can I get ASCII values in C#? A: string s = "9quali52ty3"; foreach(char c in s) { Console.WriteLin...
{ "language": "en", "url": "https://stackoverflow.com/questions/400733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "145" }
Q: What does asterisk * mean in Python? Does * have a special meaning in Python as it does in C? I saw a function like this in the Python Cookbook: def get(self, *a, **kw) Would you please explain it to me or point out where I can find an answer (Google interprets the * as wild card character and thus I cannot find a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "375" }
Q: VS2005 Configure "fallback" DLL I'm trying to add SQL2008 support to a .NET 2.0 application. However, my unique constaint is that some users will still use SQL2005, and I don't want to require them to install the SQL2008 client components. The actual set of DLLs I need for SQL2008 are different than SQL2005. The c...
{ "language": "en", "url": "https://stackoverflow.com/questions/400743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does RAD for asp.net exist? I've built web sites using classic ASP, ASP.NET web forms and lately ASP.NET with ExtJS. However, I've always felt that I've had to do a lot of the heavy lifting and that there was no real RAD until the application was fairly mature. I've only briefly looked at RoR and Django, but they l...
{ "language": "en", "url": "https://stackoverflow.com/questions/400756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SQL group by date, but get dates w/o records too Is there an easy way to do a GROUP BY DATE(timestamp) that includes all days in a period of time, regardless of whether there are any records associated with that date? Basically, I need to generate a report like this: 24 Dec - 0 orders 23 Dec - 10 orders 22 Dec - 8 o...
{ "language": "en", "url": "https://stackoverflow.com/questions/400759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How integration tests are performed on your company/job/project? I want to improve integration tests methods where I work and I would like to know how this process happens in other places. Things like: - When test plans writing begin - Proportion between testers, developers and stuff (entire applications or modifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/400772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: UserControl that has a generic class in its inheritance tree I'm trying to create a UserControl that inherits from a generic class. It does not directly inherit from a generic class, but through an intermediate class that does not use generics. This compiles and works at runtime, but I get an error at design time....
{ "language": "en", "url": "https://stackoverflow.com/questions/400778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Resize image in Python without losing EXIF data I need to resize jpg images with Python without losing the original image's EXIF data (metadata about date taken, camera model etc.). All google searches about python and images point to the PIL library which I'm currently using, but doesn't seem to be able to retain t...
{ "language": "en", "url": "https://stackoverflow.com/questions/400788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Generating the partitions of a number I needed an algorithm to generate all possible partitions of a positive number, and I came up with one (posted as an answer), but it's exponential time. The algorithm should return all the possible ways a number can be expressed as the sum of positive numbers less than or equal ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: How to make a call to my WCF service asynchronous? I have a WCF service that I call from a windows service. The WCF service runs a SSIS package, and that package can take a while to complete and I don't want my windows service to have to wait around for it to finish. How can I make my WCF service call asynchronous? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: BizTalk SSO configuration and SQL Error 18456, Severity 14, State 16 I'm having a major issue trying to configure a new install of BizTalk Server 2006 (not R2). The server had BizTalk installed on it before, and it was working fine. I've uninstalled BizTalk, removed the databases and jobs from the SQL server, whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/400799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP function to build query string from array I'm looking for the name of the PHP function to build a query string from an array of key value pairs. Please note, I am looking for the built in PHP function to do this, not a homebrew one (that's all a google search seems to return). There is one, I just can't remember...
{ "language": "en", "url": "https://stackoverflow.com/questions/400805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "181" }
Q: Using an 'IN' operator with a SQL Command Object and C# 2.0 I would like to call a sql statement such as: Select * From Table Where Column in ('value1', 'value2', 'value3') Is it as simple as setting a command parameter's value equal to "('value1', 'value2', 'value3')"? A: @Charles: You're going into the right dir...
{ "language": "en", "url": "https://stackoverflow.com/questions/400819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: TFS does not build projects correctly HI I am trying to build my solution using TFS but it seems to skips the projects which have dependencies. e.g Proj B depends on Proj A , then it builds only Proj A and not Proj B. Also if i try to build the projects individually instead of the solution then it does not create t...
{ "language": "en", "url": "https://stackoverflow.com/questions/400821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Programmatically tell difference between git-svn and git repos? I've got some shell stuff set up that dynamically defines aliases depending on what sort of VC repo the CWD contains -- so, for example, 'd' runs 'svn diff' or 'git diff', depending. (Based on this blog post, if anybody is interested...) I'd like to def...
{ "language": "en", "url": "https://stackoverflow.com/questions/400822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get CRM Popups to Refresh Opening Window I am loading a Microsoft CRM 4.0 window from an Intranet page using window.open(...). When the window closes, I need it to programmatically press a button on the page that opened it. I can do this from my own form by getting the button (whose name is passed in the querystring...
{ "language": "en", "url": "https://stackoverflow.com/questions/400834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript (jQuery) performance measurement and best practices (not load time) I'll say right off the bat that this question is NOT about load times; I know about YSlow, the Firebug profiler, and whatever best practices and tools googlage reveals about page component load times. I am asking what good profiling tools...
{ "language": "en", "url": "https://stackoverflow.com/questions/400836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Is it possible to get high quality graphics in 2D? I'm considering between using 2D and 3D for a game am leaning towards 2D, but most of the 2D games that I see look like they're hand drawn and the graphics don't really look good. Is it possible to create slick-looking graphics in 2D at all? I was thinking of animat...
{ "language": "en", "url": "https://stackoverflow.com/questions/400839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Rounded CSS tabs I have created some rounded navigation tabs using CSS and am having trouble when implementingn hover. Firstly here is a link to the site Tabs as it is quite difficult to explain. Please, hover over the left side of the tabs to understand my problem. I have explained below. I have a background image ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.Net ScriptControl - Call one method from another Say I have two script controls and one control has the other as a child control: ParentControl : ScriptControl { ChildControl childControl; } The script for the Child Control: ChildControl = function(element) { ChildControl.initializeBase(this, [element]); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Best Perform Client-Side Validation Against Moderate Size Array Overview: I have an array of 20 byte strings that needs to be stored on a web page for use in user entry validation. I anticipate between 25 and 1000 elements in that array. Considerations: 1. The web client will be a mobile device with reduced ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is this file not actually writing to disk? I have to write a program that read from a file that contains the folowing: toto, M, 50 fifi, F, 60 soso, F, 70 lolo, M, 60 fifi, F, 60 And then find the following: Which mark is most repeated, and how many times is it repeated? * *average all students *average all...
{ "language": "en", "url": "https://stackoverflow.com/questions/400861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visual Studio: How to view "Advanced" properties in the Properties window? i need to see the ClientRectangle of a form as i'm designing it. This particular property is tagged as "Advanced", and by default is hidden from the Properties window: [EditorBrowsable(EditorBrowsableState.Advanced), ...] public Rectangle Cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/400862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Do I have to close the SQL Connection manually if I use Linq? Traditionally, when we use SQL string to done some work, we have to close the sql connection before the page being closed, I was wondering if I use Linq to do the data operations do I still need to close the connection manually? A: I answered in detail a...
{ "language": "en", "url": "https://stackoverflow.com/questions/400866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Active Directory - Check username / password I'm using the following code on Windows Vista Ultimate SP1 to query our active directory server to check the user name and password of a user on a domain. public Object IsAuthenticated() { String domainAndUsername = strDomain + "\\" + strUser; DirectoryEntry entry...
{ "language": "en", "url": "https://stackoverflow.com/questions/400872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: When using the latest jdbc driver for SQL Server 2005/2008 how do prepared statements, views, and stored procedures compare regarding performance? When using the latest Microsoft jdbc driver for SQL Server 2005/2008 how do prepared statements, views, and stored procedures compare regarding performance? If I have a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to constrain the height of an Infragistics grid? I've tried Infragistics on this but they don't seem to understand what I am asking and it takes days to get an answer so please help! I need to place an Infragistics web grid into either a div or a table cell. The grid must size to fit the div or cell. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/400891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Xcode: iPhone app codesign error When building a new iPhone app in Xcode, I'm getting this error: codesign error: code signing identity 'iphone developer' does not match any code-signing certificate in your keychain. once added to the keychain, touch a file or clean the project to continue. What's the fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/400894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How does a Java compiler parse typecasts? A simple expression like (x) - y is interpreted differently depending on whether x is a type name or not. If x is not a type name, (x) - y just subtracts y from x. But if x is a type name, (x) - y computes the negative of y and casts the resulting value to type x. In a typi...
{ "language": "en", "url": "https://stackoverflow.com/questions/400895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I create an instance of an arbitrary Array type at runtime? I'm trying to deserialize an array of an type unknown at compile time. At runtime I've discovered the type, but I don't know how to create an instance. Something like: Object o = Activator.CreateInstance(type); which doesn't work because there is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/400900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Borland C++ Builder 5 - Cancel Via Escape Key Not Working I'm having a rather perplexing problem with the Escape key handler on a dialog box in Borland C++ Builder 5. Are there any other requirements for the Escape key to fire a cancel event (other than those I've listed below)? * *The "Cancel" button (a TBitBtn...
{ "language": "en", "url": "https://stackoverflow.com/questions/400903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }