text
string
meta
dict
Q: How to minimize transaction overhead in Oracle? I have to simultaneously load data into a table and run queries on it. Because of data nature, I can trade integrity for performance. How can I minimize the overhead of transactions? Unfortunately, alternatives like MySQL cannot be used (due to non-technical reasons). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/259943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HttpWebRequest, known problems with canceling requests? Are there any known issues with canceling HttpWebRequest HTTP requests? We find that when we cancel 4-5 requests, the next request hangs indefinitely. If there are no known problems with this, then I'm probably doing something wrong... where is a good resource ...
{ "language": "en", "url": "https://stackoverflow.com/questions/259950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSString tokenize in Objective-C What is the best way to tokenize/split a NSString in Objective-C? A: If your tokenization needs are more complex, check out my open source Cocoa String tokenizing/parsing toolkit: ParseKit: http://parsekit.com For simple splitting of strings using a delimiter char (like ':'), ParseK...
{ "language": "en", "url": "https://stackoverflow.com/questions/259956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "146" }
Q: What does unit testing mean to you? G'day, I am working with a group of offshore developers who have been using the term unit testing quite loosely. Their QA document talks about writing unit tests and then performing unit testing of the system. This doesn't line up with my interpretation of what unit testing is at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/259957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Exposing data in an atom feed How do I add extra data into an atom feed that does not map into the standard entry nodes (title, link, id, updated, summary)? Is it possible to add my own custom xml here and still be compliant with the spec? A: There are several different ways documented at http://www.atomenabled.org...
{ "language": "en", "url": "https://stackoverflow.com/questions/259959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Reading text values into matlab variables from ASCII files Consider the following file var1 var2 variable3 1 2 3 11 22 33 I would like to load the numbers into a matrix, and the column titles into a variable that would be equivalent to: variable_names = char('var1', 'var2', 'variable3'); I don't mind t...
{ "language": "en", "url": "https://stackoverflow.com/questions/259968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: CLSIDFromProgID is successful but CreateInstace fails! Why? I am trying to create an instance of a COM object. I have the class name that implements the interface and I get a CLSID by using CLSIDFromProgID(). So since I am getting a CLSID I thought everything should be fine from now on. However when I do a call to C...
{ "language": "en", "url": "https://stackoverflow.com/questions/259972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Validation controls for Windows forms? Are the validation controls available in Visual Studio 2005 for Windows Forms like they are for Web Forms? I don't see them. A: this can be implemented with the ErrorProvider class: http://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider.aspx Hope this helps...
{ "language": "en", "url": "https://stackoverflow.com/questions/259983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Updating a Database from DataBound Controls I'm currently creating a WinForm in VB.NET bound to an access database. Basically what i have are two forms: one is a search form used to search the database, and the other is a details form. You run a search on the searchForm and it returns a list of Primary Keys and a fe...
{ "language": "en", "url": "https://stackoverflow.com/questions/260000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generate classes from XSD You are doing contract first development of web services in a SOA world. After editing an XSD file, what is the best way to automatically (re)generate .net classes from the XSD files? A: xsd.exe will generate new classes for you. Depending on how Visual Studio is set up, adding xsd.exe to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Apache Backup LDAP Repository with mod_ldap I am currently using an Apache front end for my Subversion repository, in order to do LDAP authentication. My setup is fairly vanilla, however I would like to be able to specify a "backup" LDAP URL, in case the primary one is down. I can't currently see a way to do this ot...
{ "language": "en", "url": "https://stackoverflow.com/questions/260004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Increase the font size in Firebug? Is there a way to increase the font-size in the Firefox extension Firebug? A: You increase the font-size in the Firefox extension Firebug as follows. * *Open firebug by pressing F12. *Click on the bug icon of Firebug (The bug image at the left side of Firebug window plane.) *...
{ "language": "en", "url": "https://stackoverflow.com/questions/260008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Is it possible to get the matching string from an SQL query? If I have a query to return all matching entries in a DB that have "news" in the searchable column (i.e. SELECT * FROM table WHERE column LIKE %news%), and one particular row has an entry starting with "In recent World news, Somalia was invaded by ...", ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/260010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Help with winform treeview isSelected weirdness In the NodeMouseClick event I'm trying to load some objects from the Node.Tag. Before I do so I check e.Node.IsSelected. When run regularly IsSelected is false....if I stick a break point around there and check e.node.Isselected, the value changes on me and becomes t...
{ "language": "en", "url": "https://stackoverflow.com/questions/260032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to make the group-box text background transparent I want to make a transparent dialog. I capture the OnCtlColor message in a CDialog derived class...this is the code: HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); if(bSetBkTrans...
{ "language": "en", "url": "https://stackoverflow.com/questions/260040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Apache .htaccess mod_rewrite and clean urls Ok. So I'm building this site which is accessible through two different domains. So I can't use RewriteBase in my .htaccess. The rules (below) I use to work around this problem seem to work fine. However, when I use the below .htaccess settings on my local box with clean U...
{ "language": "en", "url": "https://stackoverflow.com/questions/260041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I use JavaScript to detect if I am on a cached page I want to display from cache for a long time and I want a slightly different behavior on page render vs loading the page from cache. Is there an easy way I can determine this with JavaScript? A: While this question is already 4 years old. I thought I woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/260043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: SharePoint: Can I see the content of a document in the ItemAdding() event handler? I'd like to inspect the content of a file before it is uploaded to the SharePoint doc library. I hooked up a handler to the ItemAdding() event but don't know how to get the content of the file. Note: I know that in the ItemAdded() I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/260048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best language for footprint recognition? I have a project to recognize the footprint of animals. It is similar to facial recognition. There is a need to store footprint images in a database and compare them with images captured by camera. What is the appropriate programming language to do this? A: Any l...
{ "language": "en", "url": "https://stackoverflow.com/questions/260051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Hashtable/dictionary/map lookup with regular expressions I'm trying to figure out if there's a reasonably efficient way to perform a lookup in a dictionary (or a hash, or a map, or whatever your favorite language calls it) where the keys are regular expressions and strings are looked up against the set of keys. For...
{ "language": "en", "url": "https://stackoverflow.com/questions/260056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: What's the best "file format" for saving complete web pages (images, etc.) in a single archive? I'm working on a project which stores single images and text files in one place, like a time capsule. Now, most every project can be saved as one file, like DOC, PPT, and ODF. But complete web pages can't -- they're save...
{ "language": "en", "url": "https://stackoverflow.com/questions/260058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: How do I create a Popup Dialog box in Silverlight? I'd like to create a popup dialog box in silverlight in which i can manipulate controls, enter data, and return a value. I want it to be modal, so that when it is open, the page "Below" is inaccessible. I havent found an easy way to do this yet. Any suggestions? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/260062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: PHP Convert HTML Formatted Date Published Date returned from Twitter Search API Atom Feed as 2008-11-03T21:30:06Z which needs to be converted to "X seconds/minutes/hours/days ago" for showing how long ago twitter messages were posted. Think this can be done with php date() function using DATE_ATOM value? A: functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/260064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery - opening all links on a page I'm trying to learn jQuery, to make up for my anemic javascript skills. As a test project, I have a page full of links, and I want to have a button on the page open all the links in new tabs. The links all have target="_blank" attributes. I'm using this $('button').click(funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/260072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Download file with Resume capability for windows servers I am building an Auto Updater for a winforms desktop application. When the update is downloading, how can I provide a Resume download capability in case the customers internet connection breaks? A: If you are doing a windows-only application, and you are targ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JSF getValue() v.s. getSubmittedValue() I've been developing a few JSF applications lately and am disturbed with the inconsistency in the web component APIs. I've noticed that there is extremely unpredictable behavior when calling .getValue() or .getSubmittedValue() on a JSF component object in server side code. So...
{ "language": "en", "url": "https://stackoverflow.com/questions/260094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Unmanaged C++ libraries - differences between VS2005 and VS2008? I'll preface this by saying I'm a C# programmer who inherited horrible code with no documentation. I have an unmanaged C++ library wrapped with managed code that worked fine in VS2003 with .Net 1.1 Framework. I'm trying to get it upgraded to at least...
{ "language": "en", "url": "https://stackoverflow.com/questions/260096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any free WPF themes? I'm not a designer, so I'm looking for some free WPF themes. Any suggestions? A: Read this article on how to convert a silverlight theme to WPF... The have a look at the Silverlight toolkit, thy released loads of free silverlight themes!!! * *Expression Dark *Expression Light *Rainier Purp...
{ "language": "en", "url": "https://stackoverflow.com/questions/260098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "198" }
Q: Adding Nodes to Tree via LINQ creates "query operator not supported" during runtime I am trying to get my head around a LINQ issue. The ultimate goal is to load tree view with data acquired from LINQ to SQL (view). The issue is when I try to access the data acquired it keeps throwing a "query operator not supported ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: LINQ to Array in Silverlight 2 There's something wrong with my code or I'm just not understanding this fully. I have the following code that runs a query that MAY contain more than one RIGHT attribute and want to store each within an array for later fetching: var members = from myList in o_data.Descendants(b...
{ "language": "en", "url": "https://stackoverflow.com/questions/260121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add an xml element in Java 1.4 I am trying to add a "title" element but am getting a NO_MODIFICATION_ALLOWED_ERR error... private static void saveDoc(String f) throws Exception { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/260122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to use wide string literals in c++ without putting L in front of each one You'll have to forgive my ignorance, but I'm not used to using wide character sets in c++, but is there a way that I can use wide string literals in c++ without putting an L in front of each literal? If so, how? A: on a related note.. i'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/260125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What is the best method to keep bots from spamming your blog? I got a problem at my blog. I got visits from kind bots who leave "nice" comments to my blog posts :( I'm wondering if there is a smarter way to keep them out, besides using the captcha modules. My problem with the captcha modules is that I thinks they a...
{ "language": "en", "url": "https://stackoverflow.com/questions/260128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Silverlight - protecting Content inside a network (DRM?) I would like to set up some WMV Video Streaming, using Windows 2003's Streaming Media Server and Silverlight. Now, unfortunately Silverlight only supports HTTP, which means that people can just download the videos. While that in itself is not a problem, I wond...
{ "language": "en", "url": "https://stackoverflow.com/questions/260129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to create an desktop application with that office2007 toolbar for free? I found several controlsets for that nice looking ribbons (DotNetBar, DivElements, ...), but all require a license for at least 100 USD. Is there a free controlset that looks quite as nice as the commericial ones? A: Might want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/260132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: CoCreateInstance fails for class Microsoft_Office Excel Worksheet. 0x80040514 "Class not registered" A sample I'm working on calls CoCreateInstance for class Microsoft_Office Excel Worksheet. It fails with HRESULT of 0x80040514 ("Class not registered"). Other Excel classes (Excel.Application) are registered on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/260142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How should I treat strings of digits in XML::RPC and Drupal? I am trying to use an XML-RPC server on my Drupal (PHP) backend to make it easier for my Perl backend to talk to it. However, I've run into an issue and I'm not sure which parts, if any, are bugs. Essentially, some of the variables I need to pass to Drup...
{ "language": "en", "url": "https://stackoverflow.com/questions/260150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: what are the limitations of jython's PyObject.__tojava__ method? Jython's PyObject provides a method to cast a python object to java. There are some old articles on Jython Monthly describing the use of __tojava__ to create a jython object factory Besides the need for an interface, are there any other limitations to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Replacement for NUnitAsp Are there any replacements for NUnitAsp that anyone knows of for testing ASP.NET pages? A: You can use WatiN or IEUnit. A: You can try Selenium. A: Please note that both IeUnit and WatiN are discontinued. Using Selenium directly in tests is not a good idea, as you may probably need to enc...
{ "language": "en", "url": "https://stackoverflow.com/questions/260158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the best way to generate a UML diagram from Python source code? A colleague is looking to generate UML class diagrams from heaps of Python source code. He's primarily interested in the inheritance relationships, and mildly interested in compositional relationships, and doesn't care much about class attribute...
{ "language": "en", "url": "https://stackoverflow.com/questions/260165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "380" }
Q: Where to find a quick review of Java and/or C++? I have a short preliminary interview with Microsoft in less than 2 hours. I've been told that they might ask questions in Java and/or C++. Where can I find a quick overview of both languages? I don't need to full tutorial, just something that goes over the language-sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/260169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I use LINQ to Entities in Visual Basic? I've created a .NET solution with two projects: * *ToyData (Visual Basic Class Library) *ToyOne (Visual Basic WPF Application) The ToyData project contains Toy.edmx, an ADO.NET Entity Data Model generated from a database called Toy. The ToyOne project contains this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to justify more ram for SQL Server 2005 We have SQL Server 2005 running on Win2003/64, and we push it hard. We generate real time reports on several tables with a couple million records using asp.net 3.5, and they will periodically time out. I'd like to increase our memory from 8GB to 16GB or even 32GB to see h...
{ "language": "en", "url": "https://stackoverflow.com/questions/260180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mtrace for a fortran program I'm trying to use mtrace to detect memory leaks in a fortran program. I'm using the gfortran compiler. See the wikipedia entry for a (working) C example of mtrace: http://en.wikipedia.org/wiki/Mtrace I tried both ways, i.e. wrapping the mtrace() and muntrace() and call them from the for...
{ "language": "en", "url": "https://stackoverflow.com/questions/260192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SQL: get DATEDIFF to not return negative values I have a query in which I am pulling the runtime of an executable. The database contains its start time and its end time. I would like to get the total time for the run. So far I have: SELECT startTime, endTime, cast(datediff(hh,starttime,endtime) as varchar) +':' +cas...
{ "language": "en", "url": "https://stackoverflow.com/questions/260195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is anybody using OBIEE (formerly Siebel Analytics) ? What is your experience We are in the process of selecting BI stack for our data warehouse. The top contenders are OBIEE = Oracle BI Enterprise Edition (formerly Siebel Analytics) and Microstrategy. Has anyone worked with OBIEE? Lessons learned? General impression...
{ "language": "en", "url": "https://stackoverflow.com/questions/260200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: After clicking the nth item, how do I manipulate another nth element? I'm using jQuery and wanting to target the nth <li> in a list after clicking the nth link. <ul id="targetedArea"> <li></li> <li></li> <li></li> <li></li> </ul> <div id="clickedItems"> <a></a> <a></a> <a></a> <a></a> </div> I can t...
{ "language": "en", "url": "https://stackoverflow.com/questions/260210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Escape sequences in STAssertEqualStrings I'm writing a discovery test against the Cocoa API as I ramp up on all things Mac related. I'm currently trying to discover the best method for URL encoding a string. Using the Google toolbox for Mac I have a unit test that I intentionally cause a failure in: NSString* expec...
{ "language": "en", "url": "https://stackoverflow.com/questions/260214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HOWTO: Paint a dotted line in .NET (WinForms) How can i draw a dotted line in .NET/WinForms/GDI+? Pen p = new Pen (Color.Black) gives me only solid line pen. I am trying to have a dotted (or dashed) lines; can't seem to be able to google it up successfully. Will much appreciate any help on this one. A: p.DashSty...
{ "language": "en", "url": "https://stackoverflow.com/questions/260217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is this a bug in Delphi 2009? It certainly looks like a bug, but I only have the trial version so it may have been fixed. ITestInterface = interface ['{9445CED8-4DBA-4EDB-9897-60980B438BE4}'] procedure Foo1; procedure Foo2; end; TTest = class(TInterfacedObject, ITestInterface) end; The above will rightly no...
{ "language": "en", "url": "https://stackoverflow.com/questions/260226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use MySQL functions in Propel I want to select records that are 1 month old or newer. The query is: SELECT * FROM foobar WHERE created_at > DATE_SUB(curdate(), INTERVAL 1 MONTH) Using Propel in Symfony, I do: $c = new Criteria $c->add(FoobarPeer::CREATED_AT, "DATE_SUB(curdate(), INTERVAL 1 MONTH)", Criteri...
{ "language": "en", "url": "https://stackoverflow.com/questions/260229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I extend ADO.NET Entity Framework objects with partial classes? I've created a Visual Basic WPF Application project that contains Toy.edmx, an ADO.NET Entity Data Model generated from a database called Toy. Its Window1.xaml.vb file looks like this: 1 Class Window1 2 3 Private Sub Window1_Loaded( _...
{ "language": "en", "url": "https://stackoverflow.com/questions/260233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why is my simple C program displaying garbage to stdout? Consider the following simple C program that read a file into a buffer and displays that buffer to the console: #include<stdio.h> main() { FILE *file; char *buffer; unsigned long fileLen; //Open file file = fopen("HelloWorld.txt", "rb"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: MySQL Hashing Function Implementation I know that php has md5(), sha1(), and the hash() functions, but I want to create a hash using the MySQL PASSWORD() function. So far, the only way I can think of is to just query the server, but I want a function (preferably in php or Perl) that will do the same thing without q...
{ "language": "en", "url": "https://stackoverflow.com/questions/260236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Override getContextPath in an HttpServletRequest (for URL rewriting) I have a web-app that I would like to extend to support multiple languages with new URLs. For example, www.example.com/home.do stays English, but www.example.com/es/home.do is Spanish. My first thought was to create a Filter which rewrites incomi...
{ "language": "en", "url": "https://stackoverflow.com/questions/260252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I handle Delphi Simple types when using generics? A little example TTest<T> = class private f : T; public function ToString : string; end; If is an object then this should work TTest<T>.ToString; begin Result := f.ToString; end; But what happens when is say an integer? This would be ok in .net. of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/260253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Encode URLs into safe filename string I'm writing a simple C++ class in which I would like cache picture thumbnails versions of images downloaded from the web. As such, I would like to use a hash function which takes in URL strings and outputs a unique string suitable as a filename. Is there a simple way to do this...
{ "language": "en", "url": "https://stackoverflow.com/questions/260254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does any one use OSGi's OBR? Is anyone using the OSGi Bundle Repository and what for? A: I tried it in apache felix, i think it's great. You can point your osgi container to a number of obrs and when you install a bundle, the container will automatically install all required dependencies. It's like apt-get install ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is there a difference between a good development video card and general gaming video cards? For reference, this would be for Visual Studio 2008 with a fair amount of WinForms working with the VS Designer. Given the same price bracket, would there be certain specs you look for in a development rig vs what one would g...
{ "language": "en", "url": "https://stackoverflow.com/questions/260258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: import data from a webpage to excel I'm in need of a macro that will enter data into a webpage search field and than copy the results to excel. A: It's just a simple "File Open". No need for a macro. Excel can open URLs directly. If the URL contains any tables, those will be formatted appropriately. Try this: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Desktop Software development options From a programmer stuck in the web world... What are the most common desktop development "frameworks" currently being used for desktop application development? * *Is it realistic to write desktop software for both Windows and OS X? *Is it realistic to use the same base code t...
{ "language": "en", "url": "https://stackoverflow.com/questions/260265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Display HTML in an Actionscript 3 project Folks, I am pulling all my Flash (pure AS3 project, not Flash CS3) content from a Drupal back-end for SEO purposes. This works great, except the HTML rendering built into the TextField object leaves a lot to be desired. Could anyone recommend any libraries that would allow...
{ "language": "en", "url": "https://stackoverflow.com/questions/260270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Most efficient way to search the last X lines of a file? I have a file and I don't know how big it's going to be (it could be quite large, but the size will vary greatly). I want to search the last 10 lines or so to see if any of them match a string. I need to do this as quickly and efficiently as possible and was...
{ "language": "en", "url": "https://stackoverflow.com/questions/260273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Jerky movement in WPF I've got a canvas that's 800x600 inside a window that's 300x300. When I press a certain key, I want it the canvas to move in that direction. I've done this inside the window's code behind: protected override void OnKeyDown(KeyEventArgs e) { base.OnKeyDown(e); Key keyPressed = e.Key; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AJAX on the iPhone? I have a site that I've developed that makes decent use of Javascript, and minimal use of AJAX for a few things. The site worked fine on the iPhone until I added the function to create an HttpRequest handle at which point all Javascript on the iPhone now silently fails. So, I have a few questions...
{ "language": "en", "url": "https://stackoverflow.com/questions/260302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Anonymizing customer data for development or testing I need to take production data with real customer info (names, address, phone numbers, etc) and move it into a dev environment, but I'd like to remove any semblance of real customer info. Some of the answers to this question can help me generating NEW test data, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/260307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to get partition ranges in SQL 2005 I have a partitioned table in SQL Enterprise 2005. I need to query the PARTITION FUNCTION to find it's partition ranges. What SQL query will give me those values? A: Got this from the SQL profiler watching the management studio generate the script for creating the function SE...
{ "language": "en", "url": "https://stackoverflow.com/questions/260320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: is WebDav necessary for Interdev? We've got a Windows 2000 server with WebDAV enabled and are told it's insecure so we should remove it. However, we've got several developer using Interdev and Interdev-enabled sites, so we're concerned they won't be able to work anymore. Are there alternatives that will allow them t...
{ "language": "en", "url": "https://stackoverflow.com/questions/260327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Proximity Search How does an application perform a proximity search? For example, a user types in a postal code, then the application lists all the businesses within 20 miles ordered by proximity. I want to build something like that in PHP and MySQL. Is this approach correct? * *Get the addresses for locations I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/260335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Why does notifyAll() raise IllegalMonitorStateException when synchronized on Integer? Why does this test program result in a java.lang.IllegalMonitorStateException? public class test { static Integer foo = new Integer(1); public static void main(String[] args) { synchronized(foo) { foo++;...
{ "language": "en", "url": "https://stackoverflow.com/questions/260337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Java benchmarking tool I have written a small java application for which I need to obtain performance metrics such as memory usage, running time etc., Is there any simple to use performance measurement tool available? A: Apache JMeter has a ton of features, for benchmarking http requests, JDBC calls, web services,...
{ "language": "en", "url": "https://stackoverflow.com/questions/260338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What best practices do you use for testing database queries? I'm currently in the process of testing our solution that has the whole "gamut" of layers: UI, Middle, and the omnipresent Database. Before my arrival on my current team, query testing was done by the testers manually crafting queries that would theoretica...
{ "language": "en", "url": "https://stackoverflow.com/questions/260342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: CSS Layout tricks I am experimenting for the first time with css layouts and my experience with CSS is very basic. What I want to achieve is a 2 column layout: left panel and content. I have found this: #leftcontent { position: absolute; left: 10px; top: 10px; width: 170px; border: 1px solid #C0C...
{ "language": "en", "url": "https://stackoverflow.com/questions/260356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jet(Access) DB and Expression based columns? I occasionally work on an old project that uses classic asp as a front end and an access database as a backend. I'd like to create a new column in one of the tables that contains logic to calculate its value from the other columns in the row. I know how to do this in a mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/260372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ant build that finds applications and iterates across them I use Ant to build Delphi applications (called from CruiseControl). I want ant to recursively search through a directory tree looking for files *.dpr and when found call either a second build.xml, or preferable a macro or target, passing each of the found f...
{ "language": "en", "url": "https://stackoverflow.com/questions/260375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are non-pure virtual functions with parameters bad practice? I have a base class with an optional virtual function class Base { virtual void OnlyImplementThisSometimes(int x) {} }; When I compile this I get a warning about the unused param x. Is there some other way I should have implemented the virtual functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/260380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do you draw a Taskbar button using visual styles? I've created a DeskBand toolbar and I want to display a button on the toolbar that has the style visual style as a taskbar button. In .NET you can use the VisualStyleRenderer to render the Taskbar BACKGROUND, but there's way to render a button. Are there any Win3...
{ "language": "en", "url": "https://stackoverflow.com/questions/260386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ordering a list of files in a folder using php I am using the code below to display all the files from a directory in a drop down menu. Does anyone know how to make this alphabetical? I presume it has something to do with the sort function, I just can't figure out how! <?php $dirname = "images/"; $images = scandir($...
{ "language": "en", "url": "https://stackoverflow.com/questions/260387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does calling glMatrixMode(GL_PROJECTION) give me EXC_BAD_ACCESS in an iPhone app? I have an iphone app where I call these three functions in appDidFinishLaunching: glMatrixMode(GL_PROJECTION); glOrthof(0, rect.size.width, 0, rect.size.height, -1, 1); glMatrixMode(GL_MODELVIEW); When stepping through with the de...
{ "language": "en", "url": "https://stackoverflow.com/questions/260391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Max of Sum in SQL I have a list of stores, departments within the stores, and sales for each department, like so (created using max(sales) in a subquery, but that's not terribly important here I don't think): toronto baskets 500 vancouver baskets 350 halifax baskets 100 toronto noodles 275 vancouver noodl...
{ "language": "en", "url": "https://stackoverflow.com/questions/260398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using an Alias column in the where clause in ms-sql 2000 I know you cannot use a alias column in the where clause for T-SQL; however, has Microsoft provided some kind of workaround for this? Related Questions: * *Unknown Column In Where Clause *Can you use an alias in the WHERE clause in mysql? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Searching across shards? Short version If I split my users into shards, how do I offer a "user search"? Obviously, I don't want every search to hit every shard. Long version By shard, I mean have multiple databases where each contains a fraction of the total data. For (a naive) example, the databases UserA, UserB,...
{ "language": "en", "url": "https://stackoverflow.com/questions/260403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I compile Perl code within a C program? I have a C program with an embedded Perl interpreter. I want to be able to precompile some Perl code from within the program. How do I do that? Rationale (if anyone is interested) is to be able to compile it once, store the parse tree, and execute many times (as long as...
{ "language": "en", "url": "https://stackoverflow.com/questions/260406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Store UserID in session? To present user specific data, where do I store the userID of the user currently logged in? the Session? A: Yes, the session would be an appropriate place for that information. Assuming you are using the authentication features baked into the ASP.NET framework, you will either be loading t...
{ "language": "en", "url": "https://stackoverflow.com/questions/260408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to print dynamic forms in Microsoft Access? I have an Access form where each record has some info that is computed on the fly. I'm using the Form_Current() event; each time a record is selected, I compute some information and change some form controls to reflect it, based on the record's ID. I want to print a bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/260411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Load Balancing in Amazon EC2? We've been fighting with HAProxy for a few days now in Amazon EC2; the experience has so far been great, but we're stuck on squeezing more performance out of the software load balancer. We're not exactly Linux networking whizzes (we're a .NET shop, normally), but we've so far held our o...
{ "language": "en", "url": "https://stackoverflow.com/questions/260413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Characteristics of a good UI designer What are the characteristics of a good UI designer? How much does one have to have graphical design abilities these days as opposed to interaction design abilities. I see this of growing importance with the advent of WPF and Silverlight. I personally consider myself good at inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/260415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: 500 Error Running Visual Studio ASP.NET Unit Test I have the following method in my unit test project: [TestMethod] [HostType("ASP.NET")] [UrlToTest("http://localhost:3418/Web/SysCoord/ChooseEPA.aspx")] [AspNetDevelopmentServerHost("%PathToWebRoot%")] public void TestMethod1() { Page ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Preserving attribute whitespace Disclaimer: the following is a sin against XML. That's why I'm trying to change it with XSLT :) My XML currently looks like this: <root> <object name="blarg" property1="shablarg" property2="werg".../> <object name="yetanotherobject" .../> </root> Yes, I'm putting all the tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/260436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Bind an element to two sources I currently have two text boxes which accept any number. I have a text block that takes the two numbers entered and calculates the average. I was wondering if there was a way I could bind this text block to both text boxes and utilize a custom converter to calculate the average? I cur...
{ "language": "en", "url": "https://stackoverflow.com/questions/260439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: How to create relationships in MySQL In class, we are all 'studying' databases, and everyone is using Access. Bored with this, I am trying to do what the rest of the class is doing, but with raw SQL commands with MySQL instead of using Access. I have managed to create databases and tables, but now how do I make a re...
{ "language": "en", "url": "https://stackoverflow.com/questions/260441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "112" }
Q: Linear Programming Tool/Libraries for Java I'd like to set up a large linear programming model to solve an interesting problem. I would be most comfortable in Java. What tools/libraries are available? A: Currently, google digs up this Java Linear Programming libs: * *http://scpsolver.org/ *http://javailp.sour...
{ "language": "en", "url": "https://stackoverflow.com/questions/260442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Using WebServiceHostFactory Pros & Cons When hosting a WCF service on IIS you have an option of manually configuring the endpoint or declaratively by means of WebServiceHostFactory. It doesn't seem to be that difficult to manually create the endpoint so I figured I would ask. * *What are the benefits of using Web...
{ "language": "en", "url": "https://stackoverflow.com/questions/260455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Debugging a memory error with GDB and C++ I'm running my C++ program in gdb. I'm not real experienced with gdb, but I'm getting messages like: warning: HEAP[test.exe]: warning: Heap block at 064EA560 modified at 064EA569 past requested size of 1 How can I track down where this is happening at? Viewing the memory do...
{ "language": "en", "url": "https://stackoverflow.com/questions/260464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Compiler optimizations: Where/how can I get a feel for what the payoff is for different optimizations? In my independent study of various compiler books and web sites, I am learning about many different ways that a compiler can optimize the code that is being compiled, but I am having trouble figuring out how much o...
{ "language": "en", "url": "https://stackoverflow.com/questions/260472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: rails: how to update a has_many :through relation via jQuery? Sorry, if this is a noobish question, but I'm just getting started with Rails and jQuery. I have the following scenario: I have 3 classes: contacts, companies and contact_company_joins (ccj). For all three classes I created models, controller and views. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I query the iPhone's current IP address? How do I query the iPhone's current IP address? A: You can try to use similar to this service: Whatismyip and capture the string :) Credit to Erica Sadun's iPhone Developer's Cookbok, 2nd ed, page 555. A: If you want the external IP address (the one used to connect f...
{ "language": "en", "url": "https://stackoverflow.com/questions/260484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Visual Studio - How to remove a reference in Release mode I'm developing a library for use in other apps and this library has lots of debugging and logging statements thanks to NLog. Is it possible to exclude the reference to NLog.dll when I switch to release mode? Cheers, A: You can manually edit the csproj file, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/260491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How do you update an ASP.NET web application? Simple question. If you have a compiled and published ASP.NET web application running on a server and you need to update, say, a line in one of the codebehind files. Do you shut down the entire site, republish, then load the site back up? Or do you publish straight to...
{ "language": "en", "url": "https://stackoverflow.com/questions/260503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ActionScript/Flex: bitwise AND/OR over 32-bits Question: Is there an easy way (library function) to perform a bitwise AND or OR on numbers larger than 32-bit in ActionScript? From the docs: "Bitwise operators internally manipulate floating-point numbers to change them into 32-bit integers. The exact operation perf...
{ "language": "en", "url": "https://stackoverflow.com/questions/260504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }