text
string
meta
dict
Q: How do I format a Microsoft JSON date? I'm taking my first crack at Ajax with jQuery. I'm getting my data onto my page, but I'm having some trouble with the JSON data that is returned for Date data types. Basically, I'm getting a string back that looks like this: /Date(1224043200000)/ From someone totally new to JS...
{ "language": "en", "url": "https://stackoverflow.com/questions/206384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2147" }
Q: Start program on a second monitor? Is there a way to specify which monitor a application appears on in Delphi or C++Builder? I am developing a simple program for a customer, which displays kitchen orders on a secondary monitor, generated by a hospitality system. Currently they need to manually drag the window ont...
{ "language": "en", "url": "https://stackoverflow.com/questions/206400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to call a SQL script from within another SQL script? i want to call a series of .sql scripts to create the initial database structure * *script1.sql *script2.sql etc. is there any way of doing this without sqlcmd or stored procedures or any other kind of code that is not sql ? just inside a .sql file. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/206401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: OpenQuery to DB2/AS400 from SQL Server 2000 causing locks Every morning we have a process that issues numerous queries (~10000) to DB2 on an AS400/iSeries/i6 (whatever IBM calls it nowadays), in the last 2 months, the operators have been complaining that our query locks a couple of files preventing them from complet...
{ "language": "en", "url": "https://stackoverflow.com/questions/206402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: overflows in size_t additions I like to have my code warning free for VS.NET and GCC, and I like to have my code 64-bit ready. Today I wrote a little module that deals with in memory buffers and provides access to the data via a file-style interface (e.g. you can read bytes, write bytes, seek around etc.). As the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/206405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: When does the standard 404 page appear? I am building a simple HTTP server for a project. Most websites have custom 404 error pages. Sometimes though, you'll see Firefox spitting a generic 404 page (or 405, etc...). How does it decide what to do? What should the HTTP response be? Is "HTTP/1.0 404 NOT FOUND" enough? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Has a system that incorporated a rule engine ever been TRULY successful? Our system (exotic commodity derivative trade capture and risk management) is being redeveloped shortly. One proposal that I have heard is that a rule engine will be incorporated to make it easier for the end-users (commodities traders, so fair...
{ "language": "en", "url": "https://stackoverflow.com/questions/206425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Meaning of sp_who Status in SQL Server Can someone tell me what the statuses mean in SQL Server's sp_who command? Why might a spid be suspended? What does it mean to be "runnable"? Thanks! A: Pretty easy to find answer online. Link dormant. SQL Server is resetting the session. running. The session is running one ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Storing credit card details I have a business requirement that forces me to store a customer's full credit card details (number, name, expiry date, CVV2) for a short period of time. Rationale: If a customer calls to order a product and their credit card is declined on the spot you are likely to lose the sale. If you...
{ "language": "en", "url": "https://stackoverflow.com/questions/206438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Best way to check when a specified date occurs Are there any classes in the .NET framework I can use to throw an event if time has caught up with a specified DateTime object? If there isn't, what are the best practices when checking this? Create a new thread constantly checking? A timer (heaven forbid ;) )? A: I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/206440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Online code beautifier and formatter What are the best online code beautifier and formatter out there? I'm not asking for highlighters. Any language will do. A: JsonLint is good for validating and formatting JSON. A: What language?? There are different tools for almost every imaginable programming language, since...
{ "language": "en", "url": "https://stackoverflow.com/questions/206441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: Ambiguous class members in vb.net I am trying to use a class from a C# assembly in vb.net. The class has ambiguous members because vb.net is case insensitive. The class is something like this: public class Foo { public enum FORMAT {ONE, TWO, THREE}; public FORMAT Format { get {...} set {...} } } I...
{ "language": "en", "url": "https://stackoverflow.com/questions/206447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Suggested reading for BITS/Bytes and sample code to perform operations etc Need a refresher on bits/bytes, hex notation and how it relates to programming (C# preferred). Looking for a good reading list (online preferably). A: There are several layers to consider here: * *Electronic In the electronic paradigm, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Build Eclipse Java Project from Command Line Is there a way to compile an Eclipse-based Java project from the command line? I'm trying to automate my build (using FinalBuilder not ant), and I'm neither a Java nor Eclipse expert. I can probably figure out how to do this with straight java command line options, but t...
{ "language": "en", "url": "https://stackoverflow.com/questions/206473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "128" }
Q: Do web service requests guarantee end of file is reached? If I am transferring data over a web service, does it guarantee that the end of file was reached? what about the data send, does it guarantee it wasn't corrupted somehow? (using asp.net web services) A: HTTP uses TCP for transport which includes error detect...
{ "language": "en", "url": "https://stackoverflow.com/questions/206478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Switch/Case in 'where' clause I tried searching around, but I couldn't find anything that would help me out. I'm trying to do this in SQL: declare @locationType varchar(50); declare @locationID int; SELECT column1, column2 FROM viewWhatever WHERE CASE @locationType WHEN 'location' THEN account_location = @l...
{ "language": "en", "url": "https://stackoverflow.com/questions/206484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "178" }
Q: Index varchar on MS SQL Server 2005 I need to index a varchar field on my table in MS SQL Server 2005, but it's not clear to me how to do so. If I try to add a non-clustered index on the field, it says "Column 'xxxx' in table 'mytable' is of a type that is invalid for use as a key column in an index" My table has a...
{ "language": "en", "url": "https://stackoverflow.com/questions/206490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: WPF Listbox Show Button in ItemTemplate on MouseOver I have a listbox containing and image and a button. By default the button is hidden. I want to make the button visible whenever I hover over an item in the listbox. The XAML I am using is below. Thanks <Window.Resources> <Style TargetType="{x:Type ListBox}...
{ "language": "en", "url": "https://stackoverflow.com/questions/206495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: need access to Class Object via Function Pointer - Binary Search Tree Class Creation Related Creating Traversals for Binary Search Tree with Recursion. void inOrder(void (*inOrderPtr)(T&)) { if(this->left != NULL) inOrder((*inOrderPtr)(this->left)); inOrderPtr(this->data); if(this->right !...
{ "language": "en", "url": "https://stackoverflow.com/questions/206498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get Visual Studio 2008 Object Test Bench to work? I'd like to use the Object Test Bench in VS2008. The docs - and even the helpful text in the test bench window - say to right click on class in the Class View. Further reading indicates that this class must be in the startup project or referenced assembly. I'v...
{ "language": "en", "url": "https://stackoverflow.com/questions/206505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Replacement for XML to represent Data structures in C++ At work, we have a testing tool that is used to send queries to a data source. The tool takes in input as XML files. The XML files were simple and easy to parse as long as the data structures we tried to represent were one layer deep. But now these data structu...
{ "language": "en", "url": "https://stackoverflow.com/questions/206512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Inconsistent JavaScript Function Results I have this function in my Javascript Code that updates html fields with their new values whenever it is called. The problem cannot be with the function itself because it works brilliantly in every section except for one. Here is the JS function: function updateFields() {...
{ "language": "en", "url": "https://stackoverflow.com/questions/206528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LINQ not updating on .SubmitChanges() Is there any reason something like this would not work? This is the logic I have used many times to update a record in a table with LINQ: DataClasses1DataContext db = new DataClasses1DataContext(); User updateUser = db.Users.Single(e => e.user == user); updateUser.InUse = !up...
{ "language": "en", "url": "https://stackoverflow.com/questions/206532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: What can Boo do for you? trying to get a side project hobby going to keep me motivated from my 9-5 job on C# and was looking at Boo. some ?'s * *what has your experience being with Boo? *what kind of apps/projects have you done with Boo or *what is Boo capable of? Guess being the web world, would like to get...
{ "language": "en", "url": "https://stackoverflow.com/questions/206539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What is a 'multi-part identifier' and why can't it be bound? I continually get these errors when I try to update tables based on another table. I end up rewriting the query, change the order of joins, change some groupings and then it eventually works, but I just don't quite get it. What is a 'multi-part identifier'...
{ "language": "en", "url": "https://stackoverflow.com/questions/206558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "169" }
Q: TCP connection quality in .NET I have a mission-critical real-time data application that uses a TCP connection between the client and server. In some cases, the connection periodically dies (SocketException). No problem - just reconnect and move on. However, the customers aren't thrilled with these intermittent drop...
{ "language": "en", "url": "https://stackoverflow.com/questions/206560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the performance implication of converting to bool in C++? [This question is related to but not the same as this one.] My compiler warns about implicitly converting or casting certain types to bool whereas explicit conversions do not produce a warning: long t = 0; bool b = false; b = t; // ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: How do I profile how long a piece of code takes to execute in Objective-C/Cocoa for optimization purposes Lets say I've got two interchangeable pieces of code and I want to figure out which one of them takes less processor time to execute. How would I do this? To get a very rough estimation I could just put NSLog() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VB6 support for SQL SMO and .Net 2.0 We are trying to move from using SQL DMO to SMO in our COM+ based application, as we are dropping support for SQL Server 2000 and adding support for SQL Server 2008 in addition to SQL Server 2005. I have been reading around on this, and found this particular quip on this microso...
{ "language": "en", "url": "https://stackoverflow.com/questions/206577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should a 'Cancel' button be used as a 'Close' button on a Windows Form? Three buttons, Save, Cancel, Close looks messy, yet after the user has saved the data should they really click a Cancel button? I need the 'Save' button to leave the form open. What is best practice? Thanks A: You should have "OK", "Apply" and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IE6 postback in asp.net I have a page that contains a user control that is just a personalized dropdown list . I assign to each item the attribute onClick=__doPostBack('actrl',0). when I click the page postback fine and I got the expected results. However in IE6 my page doesn't change to the new values loaded from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SetLimitText() in a CEdit in Vista does not work This is happening on Vista. I created a new dialog based MFC project to test this. I added a CEdit control to my dialog. I called SetLimitText to let my CEdit receive 100000 characters. I tried both: this->m_cedit1.SetLimitText(100000); UpdateData(FALSE); and static...
{ "language": "en", "url": "https://stackoverflow.com/questions/206600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I detect a NumberDecimalSeparator in a KeyDown event (C#) I'm trying to see if the user has pressed a decimal separator in a text box, and either allow or suppress it depending on other parameters. The NumberdecimalSeparator returns as 46, or '.' on my US system. Many other countries use ',' as the separator....
{ "language": "en", "url": "https://stackoverflow.com/questions/206608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to set a default value using "short style" properties in VS2008 (Automatic Properties)? How can I setup a default value to a property defined as follow: public int MyProperty { get; set; } That is using "prop" [tab][tab] in VS2008 (code snippet). Is it possible without falling back in the "old way"?: private in...
{ "language": "en", "url": "https://stackoverflow.com/questions/206611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Controlling Clustered Pushpin's VEShape in VE SDK 6.2 Preface I'm using the newly released Microsoft Virtual Earth SDK v6.2 which has built-in support for pushpin clustering. I realize there are custom ways of doing clustering where my question is easy to answer, but I'd like to leverage the built-in support as muc...
{ "language": "en", "url": "https://stackoverflow.com/questions/206614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to save the state of AJAX application using jQuery I am just trying to dip my toes in this Ajax thing. I have a very basic question I have seen the UI plugin(http://interface.eyecon.ro/docs/drag) for jQuery, where you can drag and drop frames, stretch things, animate etc. So basically you get all the desktop fea...
{ "language": "en", "url": "https://stackoverflow.com/questions/206629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to create div to fill all space between header and footer div I'm working on moving from using tables for layout purposes to using divs (yes, yes the great debate). I've got 3 divs, a header, content and footer. The header and footer are 50px each. How do I get the footer div to stay at the bottom of the page...
{ "language": "en", "url": "https://stackoverflow.com/questions/206652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: In ASP.NET is there a different way that a file must be transmitted in Firefox? I am using ASP.NET to transmit a .jar file. This code works perfectly on IE. However on Firefox the file downloads, corrupt. What is the best way to fix it? Below is the code I am using. private void TransferFile() { try { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to slurp a file into a string in Perl? Yes, There's More Than One Way To Do It but there must be a canonical or most efficient or most concise way. I'll add answers I know of and see what percolates to the top. To be clear, the question is how best to read the contents of a file into a string. O...
{ "language": "en", "url": "https://stackoverflow.com/questions/206661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: ActiveX control with multiple classes Currently I have an activex control and I registered it to my computer with regsvr32 foo.dll. (NOTE: This is a third party activex control so I do not actually have the source code for it, just a dll) When I pull up regedit under the classes I see my dll registered, however it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing the BG Color of a selected link I have a menu that I am using and it will change the background color when I hover using a:hover but I want to know how to change the class=line so that it sticks. So from the home if they click contacts the home pages from (a href="#" class="clr") to (a href="#") and Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/206689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How should I build a new site that includes podcasts? What to use? I'm going to build a Classic Music website and the client already has several podcasts for about 3 min each, and I want to know if should I just add as QT / WMP file to listen and a ZIP to download, or should I use a web podcast hosting solution and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I replace multiple spaces with a single space in C#? How can I replace multiple spaces in a string with only one space in C#? Example: 1 2 3 4 5 would be: 1 2 3 4 5 A: This is a shorter version, which should only be used if you are only doing this once, as it creates a new instance of the Regex class e...
{ "language": "en", "url": "https://stackoverflow.com/questions/206717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "561" }
Q: Using Session[] with Page Load I want to load the data into session so that when the next button is clicked in crystal report viewer then in should load the data from the datatable instead retrieving the data again from the database. Here goes my code... ReportDocument rpt = new ReportDocument(); DataTable r...
{ "language": "en", "url": "https://stackoverflow.com/questions/206718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I determine if text is in Cyrillic characters? My junk mail folder has been filling up with messages composed in what appears to be the Cyrillic alphabet. If a message body or a message subject is in Cyrillic, I want to permanently delete it. On my screen I see Cyrillic characters, but when I iterate through...
{ "language": "en", "url": "https://stackoverflow.com/questions/206719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flex alert with TextInput as well as buttons Does anyone know if it is possible to add other controls to a Flex 3 Alert? What I need is a modal dialoge that allows the user to type in a filename before clicking OK or CANCEL. This seems like it would be best achieved with an Alert but in the documentation I don't see...
{ "language": "en", "url": "https://stackoverflow.com/questions/206728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why do attribute references act like this with Python inheritance? The following seems strange.. Basically, the somedata attribute seems shared between all the classes that inherited from the_base_class. class the_base_class: somedata = {} somedata['was_false_in_base'] = False class subclassthing(the_base_...
{ "language": "en", "url": "https://stackoverflow.com/questions/206734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: A SQL query that replaces null values. I need a SQL query that returns ContactDate, SortName, City, ContactType, and Summary from the tables below. If any value is null, I need it to return the text “No Entry”. ContactTable * *ContactID *ContactDate *UserID *Summary *ContactType *SortName UserTable * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MS-access reports - The search key was not found in any record - on save Occasionally my MS Access reports: The search key was not found in any record After this happens the solution is to close Access, compact and repair the backend and then delete the record. What causes this and how can I avoid it? A: You do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Is there any way I can get .net stack traces in Sql Profiler, or a similar tool? In my previous job I designed and helped build a run-time(production) Profiler tool that among other cool features was able to give me .Net stack traces for every SQL statement that executed. Think of it as SQL-Server Profiler on steroi...
{ "language": "en", "url": "https://stackoverflow.com/questions/206743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is FxCop's CollectionPropertiesShouldBeReadOnly rule incompatible with the spring framework? FxCop has the CollectionPropertiesShouldBeReadOnly rule that complains if your class has some kind of collection property that clients can set. Instead, it suggests making the property read-only and supplying a Clear() metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/206746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL autoincrement column jumps by 10- why? I have a couple tables in which I created an object ID as either an Int or Bigint, and in both cases, they seem to autoincrement by 10 (ie, the first insert is object ID 1, the second is object ID 11, the third is object ID 21, etc). Two questions: * *Why does it do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/206751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: WYSIWYG web page editor to use in php web development I'm making a small php website. I find it useful to prototype or layout the pages in a WYSIWYG web page editor. I'd like to get suggestions on WYSIWIG web page editors that work well in a php development pipeline. Please share your favorites and describe why you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Popular MySQL rss feeds Are there any popular Mysql rss feeds you guys can recommend? IBM has random articles but those are usually not enough A: Planet Mysql is an obvious answer. It's a blog aggregator. Of course there are other sites that are not included in this aggregation, but this one has more than any oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/206764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to implement mixed ASP.NET forms auth (AD + DB)? I want to implement forms authentication on an ASP.NET website, the site should seek the user on the database to get some data and then authenticate against LDAP (Active Directory) to validate the user/password combo. After that I need to keep a i...
{ "language": "en", "url": "https://stackoverflow.com/questions/206767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I center content between a header and footer div? In a previous question, I learned how to keep a footer div at the bottom of the page. (see other question) Now I'm trying to vertically center content between the header and footer divs. so what I've got is: #divHeader { height: 50px; } #divContent { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I get the URLs from any tab in any open browser I am trying to detect which web in sharepoint that the user is looking at right now. One approach could be to read the URls from the browser and try to compare them to a reference URL to the sharepoint solution. I have not yet been able to locate any solution th...
{ "language": "en", "url": "https://stackoverflow.com/questions/206775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When does browser automatically clear cache of external JavaScript file? I have a JavaScript resource that has the possibility of being edited at any time. Once it is edited I would want it to be propagated to the user's browser relatively quickly (like maybe 15 minutes or so), however, the frequency of this resourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/206783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Is there any way of reducing the dump file size of a Sybase database? When I dump a Sybase database, it doesn't seem to matter whether there's data in the tables or not, the file size is the same. I've been told that this is down to the fact that my dump file is binary and not logical, so the file of the dump file i...
{ "language": "en", "url": "https://stackoverflow.com/questions/206787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does xdebug crash apache on every XAMPP install I've tried? I've installed the Windows XAMPP package on three separate computers, 2 running Windows Vista 32 bit ( 1 Ultimate / 1 Home Premium ) and 1 running Windows Vista 64 Home Premium. After enabling xdebug in php.ini and restarting apache, viewing the default...
{ "language": "en", "url": "https://stackoverflow.com/questions/206788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Best JavaScript Date Parser & Formatter? Since I've started to use jQuery, I have been doing a lot more JavaScript development. I have the need to parse different date formats and then to display them into another format. Do you know of any good tool to do this? Which one would you recommend? A: I've found the jQue...
{ "language": "en", "url": "https://stackoverflow.com/questions/206790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: H.264 Streaming Requirements I am looking for more information about the minimum requirements needed for a visitor to successfully stream a 1 Mbps 640x360 H.264-encoded video. I know that the user needs the latest Flash 9 version. I am looking for the minimum requirements for their computers. We want to switch to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/206792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Why won't my c# connection string to a SQL server work with Windows authentication? Why won't my connection string to SQL server work with Windows authentication? A sql user works fine, acme\administrator or administrator@acme.com won't work. This is a Win Form app written in C#. { OdbcConnection cn = nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/206793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert a tasklist's CPU time to CPU % usage? I'm trying to use tasklist to find out which process is consuming more than X percent of my CPU (to later kill it with taskkill.) How do I know what percent a time format represents? The documentations says: TASKLIST options /FI filter And one...
{ "language": "en", "url": "https://stackoverflow.com/questions/206805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Filtering text through a shell command in Emacs In vi[m] there is the ! command which lets me pipe text through a shell command -- like sort or indent -- and get the filtered text back into the buffer. Is there an equivalent in emacs? A: I wrote this a few years back, it might help you: (defun generalized-shell-com...
{ "language": "en", "url": "https://stackoverflow.com/questions/206806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: Code standard refactoring on large codebase My studio has a large codebase that has been developed over 10+ years. The coding standards that we started with were developed with few developers in house and long before we had to worry about any kind of standards related to C++. Recently, we started a small R&D projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/206811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I prevent and/or handle a StackOverflowException? I would like to either prevent or handle a StackOverflowException that I am getting from a call to the XslCompiledTransform.Transform method within an Xsl Editor I am writing. The problem seems to be that the user can write an Xsl script that is infinitely rec...
{ "language": "en", "url": "https://stackoverflow.com/questions/206820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: Ruby to Python bridge I am interested in getting some Python code talking to some Ruby code on Windows, Linux and possibly other platforms. Specificlly I would like to access classes in Ruby from Python and call their methods, access their data, create new instances and so on. An obvious way to do this is via someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/206823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Exact state of committed memory in java Im curious what the exact meaning of "committed" memory is when the value is queried from the MemoryUsage class. That class explains it as "committed represents the amount of memory (in bytes) that is guaranteed to be available for use by the Java virtual machine." Does this...
{ "language": "en", "url": "https://stackoverflow.com/questions/206847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Redirecting ConsoleOutput containing pseudo-loc (unicode) strings in C# I'm running a console app (myApp.exe) which outputs a pseudo localized (unicode) string to the standard output. If I run this in a regular command prompt(cmd.exe), the unicode data gets lost. If I run this in a unicode command prompt(cmd.exe /u)...
{ "language": "en", "url": "https://stackoverflow.com/questions/206853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Scrape a dynamic website What is the best method to scrape a dynamic website where most of the content is generated by what appears to be ajax requests? I have previous experience with a Mechanize, BeautifulSoup, and python combo, but I am up for something new. --Edit-- For more detail: I'm trying to scrape the CNN...
{ "language": "en", "url": "https://stackoverflow.com/questions/206855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to implement blocking read using POSIX threads I would like to implement a producer/consumer scenario that obeys interfaces that are roughly: class Consumer { private: vector<char> read(size_t n) { // If the internal buffer has `n` elements, then dequeue them // Otherwise wait for more data a...
{ "language": "en", "url": "https://stackoverflow.com/questions/206857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there an equivalent to Java's "kill -3" for a .NET CLR thread dump? Java has the thread dump which is triggered by a signal 3 sent to the process (e.g. "kill -3 PID"). The equivalent I've found for .NET is to use ADPlus (http://support.microsoft.com/kb/286350). This basically attaches a debugger, takes a mini dum...
{ "language": "en", "url": "https://stackoverflow.com/questions/206858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to update form controls from a worker thread? I've done some research and I can't really find a preferred way to do updating of form controls from a worker thread in C#. I know about the BackgroundWorker component, but what is the best way to do it without using the BackgroundWorker component? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Printing to a client printer from a web app If I have a printer hooked directly to a pc (a kiosk with a printer), how would I go about creating the ability for a web page (.net web app) to print a jpg to the kiosks printer with no user intervention other than clicking a button on the page? A: This has been asked se...
{ "language": "en", "url": "https://stackoverflow.com/questions/206880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Do I have to put DB connection/initialization outside of the FCGI loop to take advantage of FastCGI in Perl? Let's say I've got some Perl code that increments a column in a specific row of a database each time it's hit, and I'm expecting it to be hit pretty frequently, so I'd like to optimize it with FCGI. Right no...
{ "language": "en", "url": "https://stackoverflow.com/questions/206885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Defining SLAs for WCF Services I have to performance/load test a bunch of interdependant services. They all use net.tcp and most use duplex contracts and internal queueing. [handrolled POCO queue class using lock(syncRoot) { if(queue.Empty) Thread.Wait(); }] Here's the approach I've come up with: * *Identify WC...
{ "language": "en", "url": "https://stackoverflow.com/questions/206890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change to 64 bits not allowed when trying to edit in debug, why? I receive this message (see image below) when I try to edit in debugging. This occur only in my Vista64bits OS, not in my XP computer. Why and what should I do? Update I found that I need to compile in x86 to be able to change value when debugging. So ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best way to truncate a URL so that it fits within a layout What is the best way to truncate a URL when displaying it within a web page? I don't mean a link but literally displaying the URL as a value to the user, assuming that the text might be in a container of fixed width and you don't want to wrap or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Help with event in python Entry widget I'm writing some code in python and I'm having trouble when trying to retrieve content of an Entry widget. The thing is: I want to limit the characters that can be typed, so I'm trying to clear the Entry widget when I reach the specific number of characters (2 in this case), b...
{ "language": "en", "url": "https://stackoverflow.com/questions/206916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you develop Java Servlets using Eclipse? I would like to program Java servlets using Eclipse and I plan on deploying them using Tomcat. I think I can build the projects using Ant which is bundled with Eclipse. I have the standard Eclipse IDE. What options do I have for doing Servlet development in Eclipse? Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/206924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: Tools for sparse least squares regression I want to do sparse high dimensional (a few thousand features) least squares regression with a few hundred thousands of examples. I'm happy to use non fancy optimisation - stochastic gradient descent is fine. Does anyone know of any software already implemented for doing thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/206948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Exporting dataset to excel error: Exception from HRESULT: 0x800A03EC I am having trouble in exporting to excel and it crashes out at the .set_Value function. It seems to work if I change object[,] to string[,] but by doing this I lose the formatting. Anyone Help? A: Are you passing 'null' for missing parameters rat...
{ "language": "en", "url": "https://stackoverflow.com/questions/206950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to map sorted index back to original index for collection I'm sorting I've got a collection (List<Rectangle>) which I need to sort left-right. That part's easy. Then I want to iterate through the Rectangles in their original order, but easily find their index in the sorted collection. indexOf() won't work, since...
{ "language": "en", "url": "https://stackoverflow.com/questions/206953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to serialize nullable DateTime in a .net web service? I am trying to pass some Subsonic collections to a client via a web service. When I reference the web service the IDE complains with: Cannot serialize member 'EndDate' of type System.Nullable`1[System.DateTime]. XmlAttribute/XmlText cannot be used to encode ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where should I put "ugliness"? Scenario: I have a function that I need to tweak in some way (example; make it work slightly different in different places). For some reason I end up having to add something ugly to the code, either in the function or at existing call sites. Assume that the sum total "ugly" is the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/206968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best Way To Store Multiple Flags In Database I have a web-based application that notifies users of activity on the site via email. Users can choose which kinds of notifcations they want to receive. So far there are about 10 different options (each one is a true/false). I'm currently storing this in one varchar field...
{ "language": "en", "url": "https://stackoverflow.com/questions/206970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Generic Functions in VB.NET I'm not too familiar with generics (concept or the syntax) in general (short of using them in collections and what not), but I was wondering if the following is the best way of accomplishing what I want. Actually, I'm not entirely positive generics will solve my problem in this case. I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/206982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Putting a gridview row in edit mode programmatically How do I put a gridview row in edit mode programmatically? A: Set the EditIndex property to the appropriate row and then ReBind the GridVIew again to it's DataSource. Hope this helps. A: Just implement the Row_Editing event and do something like this: protected...
{ "language": "en", "url": "https://stackoverflow.com/questions/206983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do I unset an element in an array in javascript? How do I remove the key 'bar' from an array foo so that 'bar' won't show up in for(key in foo){alert(key);} A: delete foo[key]; :D A: This is how I would do it myArray.splice( myArray.indexOf('bar') , 1) A: If you know the key name simply do like this: del...
{ "language": "en", "url": "https://stackoverflow.com/questions/206988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "160" }
Q: JQuery/Javascript: IE hover doesn't cover select box options? I have this bit of script to widen a text box on mouseover and shorten it on mouseoff. The problem I am having is that Internet Explorer doesn't seem to extend it's hover over the options of a select box. This means in IE I can click the select, have the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What does "const class" mean? After some find and replace refactoring I ended up with this gem: const class A { }; What does "const class" mean? It seems to compile ok. A: It's meaningless unless you declare an instance of the class afterward, such as this example: const // It is a const object... class nullptr_t ...
{ "language": "en", "url": "https://stackoverflow.com/questions/206998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: What is the difference between class and instance attributes? Is there any meaningful distinction between: class A(object): foo = 5 # some default value vs. class B(object): def __init__(self, foo=5): self.foo = foo If you're creating a lot of instances, is there any difference in performance or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "151" }
Q: What's a tcpdump one-liner to dump a TCP stream that matches a given substring? Is there a quick tcpdump one-liner to print out a TCP stream that matches a particular substring -- or, if that's not easy, how about printing out just the single TCP packet that matches the substring? A: The best option is to use ngrep...
{ "language": "en", "url": "https://stackoverflow.com/questions/207001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use a switch case 'or' in PHP Is there a way of using an 'OR' operator or equivalent in a PHP switch? For example, something like this: switch ($value) { case 1 || 2: echo 'the value is either 1 or 2'; break; } A: Match expression (PHP 8) PHP 8 introduced a new match expression that is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "260" }
Q: A .Net component for processing a scanned questionnaire? I am looking to incorporate scanning as a way of collecting feedback from paper questionnaires in my desktop application (a feedback management app). Questionnaires are completed using tick or cross marks as well as free text. The questionnaires are designed u...
{ "language": "en", "url": "https://stackoverflow.com/questions/207011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I open a google chome window (only the page) using c# I want to use google chrome as a control. I think Enso does this because they have a dir in their folder called chrome... Maybe there is a google chrome toolkit, SDK A: Lots of apps have folders named Chrome. The terms refers to the decorations and arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/207014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fade out volume naturally? I have experimented with a sigmoid and logarithmic fade out for volume over a period of about half a second to cushion pause and stop and prevent popping noises in my music applications. However neither of these sound "natural". And by this I mean, they sound botched. Like an amateu...
{ "language": "en", "url": "https://stackoverflow.com/questions/207016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Why am I getting HTML in my MySQL export to CSV? I know this question has been asked before, but I ran into a problem. Oddly enough, when I execute this function, it includes the html of the page that the link you select to execute the function. function exportCSV($table) { $result = mysql_query("SHOW COLUMNS FR...
{ "language": "en", "url": "https://stackoverflow.com/questions/207019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OnKillFocus() override in MFC triggering at odd times I need to know when my Window goes out of input focus, so I overloaded the OnKillFocus() method of the CWnd. However it doesn't invoke this method when I focus another application (alt+tab), or even minimize the window. But it DOES invoke the method when I resto...
{ "language": "en", "url": "https://stackoverflow.com/questions/207021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }