text
string
meta
dict
Q: What do i use instead of e.Values.add(... for the ListViewEditEventArgs to upload an Image i can upload images to the database using linq and the listview control when referancing the e.Values method for the ListViewInsertEventArgs, but there is no such method in the ListViewEditEventArgs, so what can i use to achie...
{ "language": "en", "url": "https://stackoverflow.com/questions/250528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: schema dump on legacy oracle database using db:schema:dump using rake Does anyone know of any specific DSL implementations used to import legacy Oracle database schemas. I have tried to just run db:schema:dump on my existing db I want to port to a new ruby app. However, the rake dies about halfway through with out a...
{ "language": "en", "url": "https://stackoverflow.com/questions/250545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Capistrano: How to Include common settings in multiple project deploy.rb files this is probably a newbie ruby question. I have several libraries and apps that I need to deploy to several different hosts. All of the apps and libs will share some common settings for those hosts-- e.g. host name, database server/user/p...
{ "language": "en", "url": "https://stackoverflow.com/questions/250550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Shortest code to calculate list min/max in .NET I'd like something like int minIndex = list.FindMin(delegate (MyClass a, MyClass b) {returns a.CompareTo(b);}); Is there a builtin way to do this in .NET? A: You note that "I'm still in 2" - you might, then, want to look at LINQBridge. This is actually aimed at C# 3....
{ "language": "en", "url": "https://stackoverflow.com/questions/250553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Correct approach to Properties I am working in Java on a fairly large project. My question is about how to best structure the set of Properties for my application. Approach 1: Have some static Properties object that's accessible by every class. (Disadvantages: then, some classes lose their generality should they ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to check, from C#, are files for complex script and rtl languages installed? How to check, from C#, are files for complex script and rtl languages (Regional and Language settings) installed? Edit: Or is there another way of checking whether right to left text will display correctly in my form? Edit for better ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/250564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I gzip webpage output with Rails? What is the best plugin for Rails that gzips my webpage output? Edit: The company I am hosting with has stated they will not install mod_deflate. A: Have you tried using the deflate middleware? Add use Rack::Deflater to your config.ru. It's how you'd do it with an app runni...
{ "language": "en", "url": "https://stackoverflow.com/questions/250566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: break whenever a file (or class) is entered In Visual Studio, is there any way to make the debugger break whenever a certain file (or class) is entered? Please don't answer "just set a breakpoint at the beginning of every method" :) I am using C#. A: Well, as everyone is saying, it involves setting a breakpoint at...
{ "language": "en", "url": "https://stackoverflow.com/questions/250576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to set the working directory for a task to something other than the basedir? I have an Ant script with a junit target where I want it to start up the VM with a different working directory than the basedir. How would I do this? Here's a pseudo version of my target. <target name="buildWithClassFiles"> <mkdir ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Which language for a quick GUI app + sqlite database CRUD (2-4 tables) Which language for quick GUI app + sqlite database CRUD (2-4 tables). Java, Python? (Please no jokes like VBasic), some reference, source code to look on? added: First idea: 1 database SQLite (Win) + client GUI app (Win) clients table + orders ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/250582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Outlook Redemption : GetNamesFromIDs I'm trying to get all property names / values from an Outlook item. I have custom properties in addition to the default outlook item properties. I'm using redemption to get around the Outlook warnings but I'm having some problems with the GetNamesFromIDs method on a Redemption.RD...
{ "language": "en", "url": "https://stackoverflow.com/questions/250583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I add icons next to the nodes in a WPF TreeView? I have a WPF TreeView with just 1 level of items. The TreeView is data bound to an ObservableCollection of strings. How can I ensure that the same icon appears to the left of each node in the TreeView? A: I think the best approach is to set a Style on the Tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/250597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: MySqlCommand Parameter not Working In the following code, used to get a list of products in a particular line, the command only returns results when I hard code (concatenate) productLine into the SQL. The parameter substitution never happens. + "lineName = '@productLine' " ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Forcing TargetControl Textbox to use a value in the AutocompleteExtender I'm sure I'm going to have to write supporting javascript code to do this. I have an autocomplete extender set up that selects values from a database table, when a selection is made, i would like it to set the ID of the value selected to a hid...
{ "language": "en", "url": "https://stackoverflow.com/questions/250603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HtmlEncode UTF-8 I'm using Server.HtmlEncode on a utf-8 string in asp-classic, which works fine until there are some accents in the string e.g. Rüstü Recber, which appears as Rüstü Recber (R&#195;&#188;st&#195;&#188; Recber in the source). I've tried setting the Response.Charset property to utf-8 but this doesn't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: When do/should I use __construct(), __get(), __set(), and __call() in PHP? A similar question discusses __construct, but I left it in my title for people searching who find this one. Apparently, __get and __set take a parameter that is the variable being gotten or set. However, you have to know the variable name (eg...
{ "language": "en", "url": "https://stackoverflow.com/questions/250616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: MouseOver highlighting style returning to default after a second (Caused by Aero?) I'd trying to style my ComboBoxes to match the rest of the UI but I'm having problems with the IsMouseOver highlighting. It highlights with the color I specify for a second and then fades back to the default color, kind of a cool effe...
{ "language": "en", "url": "https://stackoverflow.com/questions/250622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery-bound event handlers I want to attach a 'click' event handler to the first child of an element with ID 'foo' using jQuery. I understand that the syntax for doing this is: $('#foo:first-child').bind('click', function(event) { // I want to access the first child here }) Within the handler body I want to ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/250643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VIM initial settings: change background color for line number on the left side? I use _vimrc to configure my vim 7.2 (windows) default settings. One setting "set number" will display line numbers on the left side. My vim background color is white (I cannot find setting for this. Maybe the default is white. Anyway I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Is it possible to attach a workflow to a task list on MOSS 2007? I have tried but for some reason the workflow is not triggered. A: Yes, it is allowed. I myself used it for Task list. A: It should works as for all other kinds of lists.
{ "language": "en", "url": "https://stackoverflow.com/questions/250671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to parse RSS/Atom feeds with PHP I'm currently using Magpie RSS but it sometimes falls over when the RSS or Atom feed isn't well formed. Are there any other options for parsing RSS and Atom feeds with PHP? A: The HTML Tidy library is able to fix some malformed XML files. Running your feeds through that bef...
{ "language": "en", "url": "https://stackoverflow.com/questions/250679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "139" }
Q: Calling a method on state change with AASM How do I go about calling a method on state change in AASM? I'd like to call update_foo when the state transitions to paid in the following model: class Foo < ActiveRecord::Base include AASM # State Machine aasm_initial_state :incomplete aasm_state :incomplete aa...
{ "language": "en", "url": "https://stackoverflow.com/questions/250685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Including ~/opt/lib libraries in a Passenger Rails App I'm having trouble getting a rails app on Dreamhost's Passenger to see compiled libraries in my ~/opt/lib directory. I have to put them here because I don't have root access. I can boot up my app in ./script/console and it sees them libraries just fine becaus...
{ "language": "en", "url": "https://stackoverflow.com/questions/250687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Count immediate child div elements using jQuery I have the following HTML node structure: <div id="foo"> <div id="bar"></div> <div id="baz"> <div id="biz"></div> </div> <span></span> </div> How do I count the number of immediate children of foo, that are of type div? In the example above, the result sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/250688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "188" }
Q: JS Regex For Human Names I'm looking for a good JavaScript RegEx to convert names to proper cases. For example: John SMITH = John Smith Mary O'SMITH = Mary O'Smith E.t MCHYPHEN-SMITH = E.T McHyphen-Smith John Middlename SMITH = John Middlename SMITH Well you get the idea. Anyone come up with a comprehensive s...
{ "language": "en", "url": "https://stackoverflow.com/questions/250690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you unit test private methods? I'm building a class library that will have some public & private methods. I want to be able to unit test the private methods (mostly while developing, but also it could be useful for future refactoring). What is the correct way to do this? A: There are 2 types of private metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/250692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "506" }
Q: JOGL -Does it work? Questions + Comments and experiences The story: I been googling for some way of displaying computer graphics over the web using acceleration from video cards (no software renders). I know it is possible to write and activeX module for IE but that is not a complete solution as that would alinate a...
{ "language": "en", "url": "https://stackoverflow.com/questions/250697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to communicate with a sub subprocess with subprocess.Popen? I'm trying to write a python script that packages our software. This script needs to build our product, and package it. Currently we have other scripts that do each piece individually which include csh, and perl scripts. One such script is ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/250700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SqlDataAdapter.Fill method slow Why would a stored procedure that returns a table with 9 columns, 89 rows using this code take 60 seconds to execute (.NET 1.1) when it takes < 1 second to run in SQL Server Management Studio? It's being run on the local machine so little/no network latency, fast dev machine Dim comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/250713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Shell script/regex: extraction across multiple lines I'm trying to write a log parsing script to extract failed events. I can pull these with grep: $ grep -A5 "FAILED" log.txt 2008-08-19 17:50:07 [7052] [14] DEBUG: data: 3a 46 41 49 4c 45 44 20 20 65 72 72 3a 30 32 33 :FAILED err:023 2008-08-19 17:50:07 [70...
{ "language": "en", "url": "https://stackoverflow.com/questions/250717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: syntax to remove permissions previously granted via GRANT EXECUTE? If I grant execute permissions to a role via GRANT EXECUTE ON [DBO].[MYPROC] TO MY_ROLE what's the equivalent syntax to remove them? A: REVOKE EXECUTE ON [DBO].[MYPROC] TO MY_ROLE A: DENY EXECUTE ON [DBO].[MYPROC] TO MY_ROLE or REVOKE EXECUTE ON ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Lean Software (Webapplication) Release Engineering I'm looking to re-organize the way we release our internal software. All of the code (PHP webapps, some Java apps and Perl scripts) is checked into Subversion repositories but there are no branches or tags, everything is checked into trunk (only around 1-3 devs per ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which Inversion of control (IoC) containers support .NET 1.1? Which Inversion of control (IoC) containers support .NET 1.1? A: One is the Castle Project's Castle Microkernel/Windsor.
{ "language": "en", "url": "https://stackoverflow.com/questions/250738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nant - Get Newest Folder Is there a relatively simple way in nant, without writing a custom task, to get the name of the newest folder in a certain directory? Recursion is not needed. I have been trying to do it with directory::get-creation-time and a foreach loop and if statements, yada yada. It's too complex, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/250746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is anyone aware of any .NET OpenID Provider sample code that might exist? I need to implement an OpenID Provider in .Net and wondered....Is there's any OpenSource code already written and available? A: I just found http://code.google.com/p/dotnetopenid/ Apologies for not search properly first..... I don't seem to b...
{ "language": "en", "url": "https://stackoverflow.com/questions/250749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Maintaining releases/branches in an "agile" rhythm? We have a software product that evolves at the rhythm of clients' needs and of a more general roadmap. Because we are in a SCRUM project environment, it happens very regurlarly that a new feature makes its way to the product, and then we are confronted with the cho...
{ "language": "en", "url": "https://stackoverflow.com/questions/250752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why do I get a "Failed to export the report" error when I try to export a Crystal Report to an HTML file? I'm trying to export a Crystal Report to an HTML file, but when I call the Export method, I immediately get this error: Source: Crystal Reports ActiveX Designer Description: Failed to export the report. I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/250755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Blocking a Qt application during downloading a short file I'm writing an application using Qt4. I need to download a very short text file from a given http address. The file is short and is needed for my app to be able to continue, so I would like to make sure the download is blocking (or will timeout after a few se...
{ "language": "en", "url": "https://stackoverflow.com/questions/250757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Installing PHP extensions on Windows I am using a Windows XP Home Edition. I need to install a few extensions to PHP -- memcache, APC, .etc. And I would very much like to use PECL to make this happen. The problem is PECL takes it for granted that I will have certain programs on my computer. On another post, I read, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: File download resuming component for use in Auto Updating It turns out install shield doesn't support file download resuming. Is there a .net component that provides this functionality? A: We use the AppLife Update component. It is specifically for .NET and can resume interrupted downloads and do much more. We foun...
{ "language": "en", "url": "https://stackoverflow.com/questions/250767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to format Tooltip-Text (bold, underline... etc)? I want to make some passages of a standard tooltip bold in a WinForms application. Is this possible? If not, is there a (free) tooltip component that allows me to style them (preferably also border and background)? Thanks! A: You can use this type : Ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/250774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Lucene.net with IndexSearcher/IndexWriter in a Web Application I'm currently running Lucene.net in a web application and am wondering about the best method, performance-wise. I currently have it set up so that all index writes get processed together in a scheduled process, along with optimizing the index. However fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/250776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are regression tests the entire test suite or a sample of tests? I was taught that a regression test was a small (only enough to prove you didn't break anything with the introduction of a change or new modules) sample of the overall tests. However, this article by Ron Morrison and Grady Booch makes me think differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/250779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I export a Crystal Report to a Unicode text file? I'm trying to export a Crystal Report to a text file, while preserving any Unicode characters that are found within. By default, Crystal Reports seems to export to an ANSI text file. Here is a highly simplified version of what I'm doing: Dim objCRReport As CRA...
{ "language": "en", "url": "https://stackoverflow.com/questions/250784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to modify Expander button background only? WPF I have an Expander placed on a window with a blue background and I would like to make the button for the expander another color than the default (blue, which it is receiving from the window). When I modify the background property of the expander it changes the enti...
{ "language": "en", "url": "https://stackoverflow.com/questions/250788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Converting uneven rows to columns with FasterCSV I have a CSV data file with rows that may have lots of columns 500+ and some with a lot less. I need to transpose it so that each row becomes a column in the output file. The problem is that the rows in the original file may not all have the same number of columns s...
{ "language": "en", "url": "https://stackoverflow.com/questions/250789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Weird IE & Javascript issue So I'm creating some HTML using javascript based on where the user clicks on the page. On page load the script replaces an empty div with a ul and some data. The user clicks on that data to receive more and so on. Now when the user navigates off the page and then hits the back button to g...
{ "language": "en", "url": "https://stackoverflow.com/questions/250790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I log/trace Oracle stored procedure calls with parameter values? We're looking for a way to log any call to stored procedures in Oracle, and see what parameter values were used for the call. We're using Oracle 10.2.0.1 We can log SQL statements and see the bound variables, but when we track stored procedures ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can you rename the App_Code folder? I realize this would violate convention, but I'm curious to know if you can do this through configuration. Edit: I understand why I wouldn't want to do this. BUT, I do want to understand the internals of this time of project. A: No you cannot rename this folder and have it actu...
{ "language": "en", "url": "https://stackoverflow.com/questions/250794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I initialize two lists at the same time with ajax? Hi does anybody know how to initialize two list at the same time with ajax? This is my code <html> <body onload="iniciaListas()"> <script type="text/javascript"> var xmlHttp function iniciaListas() { muestraListaPaises(); muestraListaProfesio...
{ "language": "es", "url": "https://stackoverflow.com/questions/250801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you rate Oracle Portals as a platform? A client has asked whether or not I can provide some support for his intranet which runs on Oracle Application Server Portal. Not having used this technology before I thought I'd ask if anyone else has and what they thought of developing for it. I'm a c#/ASP.NET develop...
{ "language": "en", "url": "https://stackoverflow.com/questions/250816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find Sybase stored procedure in db given a text string that appears in the proc How do I find a stored procedure in a Sybase database given a text string that appears somewhere in the proc? I want to see if any other proc in the db has similar logic to the one I'm looking at, and I think I have a pretty unique searc...
{ "language": "en", "url": "https://stackoverflow.com/questions/250818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Dotfuscator community edition I tried to use this on my class library "mylib.core.data.dll" and got a successful obfuscation, however, when I import this dll into another project via "Reference" and tried imports --- My library "mylib.core.data.dll", doesn't show except for "e" and "h". Can someone tell me what I m...
{ "language": "en", "url": "https://stackoverflow.com/questions/250828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert POST array back to POST string data When you do the following in an HTML form: <input name="one[]" value="foo" /> <input name="one[]" value="bar" /> <input name="two[key]" value="something" /> and submit the form to a PHP page, The $_POST array will look as follows: array( 'one' => array( 0 => '...
{ "language": "en", "url": "https://stackoverflow.com/questions/250829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is this a bug in DirectoryInfo.GetDirectories(string searchPattern)? When calling DirectoryInfo.GetDirectories(".") on an instance of a DirectoryInfo class which points to a valid folder (excluding drive roots), the result is a DirectoryInfo array whose first (and only) element points to a invalid directory named th...
{ "language": "en", "url": "https://stackoverflow.com/questions/250834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do you bind the TextWrapping property of a TextBox to the IsChecked value of a MenuItem? The TextWrapping property of the TextBox has three possible values: * *Wrap *NoWrap *WrapWithOverflow I would like to bind to the IsChecked property of a MenuItem. If the MenuItem is checked, I want to set the TextWr...
{ "language": "en", "url": "https://stackoverflow.com/questions/250840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Open Source Project Analytics Sites? I have seen at least one site in the past that had analytics on Open Source projects, describing lines of code, hours worked, number of check-ins, all sorts of stuff. Does anyone know of any of those sites? A: They employ different metrics, an example would be Ohloh.
{ "language": "en", "url": "https://stackoverflow.com/questions/250843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I enable Full-Text indexing using SQL Server Management Studio in SQL Server 2008 Express? I did it using the commands as described here and it works but I want to do it using the SQL Management Studio. SQL Server 2008 Books Online says this: To create a full-text catalog: * *In Object Explorer, ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/250844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Leveraging SOAP in Classic ASP Clarification: this is not about user agent calls to pages, but Classic ASP calling ASP.NET! I have applications that are midway through a transition from Classic ASP to ASP.NET. There are a half million lines of code, so a complete rewrite of everything at once was simply not plausi...
{ "language": "en", "url": "https://stackoverflow.com/questions/250845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Passing-through unknown XML elements in a SAX parser I am loading some data from an XML document, modifying it, and writing back out to XML. The reading is done using a SAX parser library and the writing is done with a piece of custom code. Sometimes, the file is modified externally, and extra elements are added (...
{ "language": "en", "url": "https://stackoverflow.com/questions/250846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Thumbs up/Thumbs Down Rating Implementation Similar to the one here on StackOverFlow, I would be needing to implement a way for people to vote up and vote down comments in a forum like site. However instead of having a generic overall score, we will display the total amount of "thumbs up" and "thumbs down". The over...
{ "language": "en", "url": "https://stackoverflow.com/questions/250849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: right approach to handling bad xml data I've got a little c# windows service that periodically pulls xml from a web service and stores the data in a database table. Unfortunately it's failing because the web service has occasional bad data in it - strings instead of decimals. I don't have any control over the web s...
{ "language": "en", "url": "https://stackoverflow.com/questions/250850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Load Testing framework Anyone know of an opensource PHP Load Testing Framework similar to the Grinder " "http://grinder.sourceforge.net/". A: I haven't used the grinder, but It sounds similar to JMeter. Also at times I have used plain old Selenium for load testing. A: RedLine has a Cloud Load Testing tool in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Most popular" GROUP BY in LINQ? Assuming a table of tags like the stackoverflow question tags: TagID (bigint), QuestionID (bigint), Tag (varchar) What is the most efficient way to get the 25 most used tags using LINQ? In SQL, a simple GROUP BY will do: SELECT Tag, COUNT(Tag) FROM Tags GROUP BY Tag I've written ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Is it possible to write code to write code? I've heard that there are some things one cannot do as a computer programmer, but I don't know what they are. One thing that occurred to me recently was: wouldn't it be nice to have a class that could make a copy of the source of the program it runs, modify that program an...
{ "language": "en", "url": "https://stackoverflow.com/questions/250868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Iterator pattern in VB.NET (C# would use yield!) How do implement the iterator pattern in VB.NET, which does not have the yield keyword? A: VB.NET does not support the creation of custom iterators and thus has no equivalent to the C# yield keyword. However, you might want to look at the KB article How to make a Vis...
{ "language": "en", "url": "https://stackoverflow.com/questions/250874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Using QSortFilterProxyModel with a tree model I have a QDirModel whose current directory is set. Then I have a QListView which is supposed to show the files in that directory. This works fine. Now I want to limit the files shown, so it only shows png files (the filename ends with .png). The problem is that using a Q...
{ "language": "en", "url": "https://stackoverflow.com/questions/250890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What would be the best way to relocate an entire (versioned) Eclipse workspace? I was wondering what would be the best approach you guys would take to relocate an entire Eclipse workspace? Assuming it's either versioned and exported, what would you do? Import the file? Checkout the whole thing from the repo? Thanks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java application failing on special characters An application I am working on reads information from files to populate a database. Some of the characters in the files are non-English, for example accented French characters. The application is working fine in Windows but on our Solaris machine it is failing to recogn...
{ "language": "en", "url": "https://stackoverflow.com/questions/250911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to parse HTML from a Rich Text Editor in Perl? Is there a Perl module out there that can take bad HTML (such as what is copied from Microsoft Word) and parse it into nicely formatted HTML? I have looked at HTML::Tidy, but it has gotten horrible reviews on CPAN. We have a custom legacy module t...
{ "language": "en", "url": "https://stackoverflow.com/questions/250914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HTML Table columns height; Works in Firefox not in IE I have some HTML that displays fine on FireFox3/Opera/Safari but not with IE7. The snippet is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999...
{ "language": "en", "url": "https://stackoverflow.com/questions/250931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Password protected hyper link with target=_blank I have a hyper link like this : <A Href=My_Java_Servlet?User_Action=Admin_Download_Records&User_Id=Admin onClick=\"Check_Password();\" target=_blank>Download Records</A> When a user clicks on it, a password window will open, the user can try 3 times for the right pas...
{ "language": "en", "url": "https://stackoverflow.com/questions/250932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: WPF ComboBox Item tabbing behaviour I am migrating some win forms panels to WPF. In WinForms, you can tab into to the combo box using the keyboard, select an item by typing the first character and then hit tab again and the combo to lose focus. In WPF the second tab will move the focus rectangle down the list, inste...
{ "language": "en", "url": "https://stackoverflow.com/questions/250935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Format columns for ASP.Net GridView based on data type I have a very simple ASP.Net page that acts as a front end for a stored procedure. It just runs the procedure and shows the output using a gridview control: less than 40 lines of total code, including aspx markup. The stored procedure itself is very... volatil...
{ "language": "en", "url": "https://stackoverflow.com/questions/250937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Re-installing MYSQL(windows) - How to get to the old data with the new install? I needed to re-install my computer but I didn't think about exporting the data from mysql 5. How do I get the data from the old installation into the new installation, is this just copying the data directory or do I have to take other s...
{ "language": "en", "url": "https://stackoverflow.com/questions/250939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I find the length (size) of a binary blob? I have an SQLite table that contains a BLOB I need to do a size/length check on. How do I do that? According to documentation length(blob) only works on texts and will stop counting after the first NULL. My tests confirmed this. I'm using SQLite 3.4.2. A: As an addi...
{ "language": "en", "url": "https://stackoverflow.com/questions/250940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Testing Functions for ASP.net (The Object Test Bench) Edit I noticed that the Object Test Bench is a good example of what I'm looking for, but it doesn't seem to work with ASP.net. I always get an error that an instance could not be created. Is there a way to test your functions in ASP.net without needing to creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/250953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does schema_search_path in database.yml for Postgre Rails app ignores case? I have to connect to a legacy DB which has a schema called "Financeiro". I setup my database.yml to: ... schema_search_path: Financeiro ... when activerecord tries to find something I get the following error: ActiveRecord::StatementInva...
{ "language": "en", "url": "https://stackoverflow.com/questions/250957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Justifying a faster development machine I believe that quantifying the productivity increase (extra working hours) is the most effective way to do this. My case in point: I have a fast machine at home and a slow one at work. My estimate is that I would gain about 30 minutes a day of extra productivity at work if I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/250969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Detect a “Error: Object doesn't support this property or method” The object I’m working on is instantiated in JavaScript, but used in VBScript. In one code path, the variable M.DOM.IPt is defined and has a value, in the other however it is not. I need to detect if it has been defined or not. I checked that M.DOM is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Insert Function Name during PreBuild I wanted to write a Visual Studio Macro or something similar which can fetch function name and insert into preset location in the error report part. It's clearer if you look at the example Class SampleClass { public void FunctionA() { try { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can one open a PNG (image) file with VB6 into an RGB array, or R, G, B arrays How can one open a PNG formatted image file with VB6? Ideally, I (that is my customer) would like to have the PNG file open and placed into seperate R(ed), G(reen) and B(lue) arrays. VB6 is not my tool of choice (for lack of knowledge...
{ "language": "en", "url": "https://stackoverflow.com/questions/250980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do I really need version control? I read all over the Internet (various sites and blogs) about version control. How great it is and how all developers NEED to use it because it is very useful. Here is the question: do I really need this? I'm a front-end developer (usually just HTML/CSS/JavaScript) and I NEVER had a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: SharePoint: should I use lists or a database? I am in a process of designing a custom SharePoint application. On a previous project, all the data was kept in SharePoint lists and that's the way I've been trying now. But, I'm getting to the point where the data model grows and I feel a need to normalize it and split ...
{ "language": "en", "url": "https://stackoverflow.com/questions/250992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How difficult is it to turn a "Java School" programmer into a C or C++ programmer? My company, a C++ house, is always looking to hire recent grads. However due to the Java Schools phenomenon, we typically end up interviewing strong Java programmers with maybe a minute smattering of C++. Often the C++ classes don't r...
{ "language": "en", "url": "https://stackoverflow.com/questions/251007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How do I change a SharePoint 2007's URL I created a new SharePoint portal for testing purposes using a manually added HOSTS record. I have it all tested and want to expose it to the outside world using a URL from our DNS. I can't seem to find a straight forward way to change the URL of a SharePoint portal. Does an...
{ "language": "en", "url": "https://stackoverflow.com/questions/251017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Share Styling Between CSS Classes In this question, I was given a really cool answer to alternating an image and its description between left and right, respectively. Now I want to apply styling to both, e.g. padding-top, padding-bottom etc. How do I apply a style to both the RowStyle and AlternatingRowStyle in thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/251030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I convert a varchar field of the form: YYYYMMDD to a datetime in T-SQL? How can I convert a varchar field of the form YYYYMMDD to a datetime in T-SQL? Thank you. A: select convert(datetime, '20081030') A: Use the CONVERT() function? http://msdn.microsoft.com/en-us/library/ms187928.aspx
{ "language": "en", "url": "https://stackoverflow.com/questions/251033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best synchronisation strategy I have a simple app which is writing to an xml file on every button click. Once this is done, I read the Xml file soon after (as in, a couple of lines below with no methods to be stepped in to in between). When the app runs for the first time, the xml file is written to/read from fine, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/251035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to execute SQL commands and send MSMQ messages in a TransactionScope? I'm investigating using MSMQ for my team's new project but I need to know if I can send MSMQ messages and execute SQL commands within a System.Transactions.TransactionScope and have them commit or rollback together. I can't find a r...
{ "language": "en", "url": "https://stackoverflow.com/questions/251050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: An example for using DBMS_AQ.POST and explanation of its utility The DBMS_AQ package has a method called POST. The documentation says, This procedure posts to a list of anonymous subscriptions, allowing all clients who are registered for the subscriptions to get notifications of persistent messages. This f...
{ "language": "en", "url": "https://stackoverflow.com/questions/251060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do you think Microsoft will ever not support classic asp in IIS We are trying to make big decisions about our support for classic asp. Does anyone see a reason why Microsoft can't drop support for IIS. Any examples of Microsoft technologies like this that have had their support dropped would help. ASP is a tricky on...
{ "language": "en", "url": "https://stackoverflow.com/questions/251065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Does a comparison sort have to compare all adjacent cells? Does a comparison sort have to compare the A[i] largest and A[i+1] largest values? I think any comparison sort must, but I'm not sure. I've checked out mergesort, insertion sort, and quicksort and in each of them the A[i] largest and A[i+1] largest values ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/251068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What to look for when downgrading from Oracle 10g to 9i? I having to downgrade my Oracle instance from 10g (10.1.0.2.0) to 9i (9.2.x.x.x). Not having planned on ever doing this, I didn't document 10g dependencies. What are some of the dependencies on 10g that I will have to address? Is there any type of query that I...
{ "language": "en", "url": "https://stackoverflow.com/questions/251069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Enterprise service bus and Message Brokers Ok guys its time to be stupid, I want to start looking at WCF but to be honest before I do I would like to understand more about SOA in general. I dont really understand the concept of a "Enterprise service bus", and am not sure whether it is a pattern/methodology or piece...
{ "language": "en", "url": "https://stackoverflow.com/questions/251071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: wsdl.exe results in "SOAP 1.1 binding was not found" I'm trying to implement an HTML Parsing web service as described in Chapter 23 of ASP.NET Unleashed (1st ed.) and this MSDN article. So far, so good! However, I do get an annoying warning when using wsdl.exe to generate the class: Microsoft (R) Web Services Des...
{ "language": "en", "url": "https://stackoverflow.com/questions/251079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linq to SQL Class - Stored Procedure Signature Change I have a Linq to Sql .dbml file which auto generates my method signatures for certain stored procedures. eg, I have in SQL spGetEmployees(@Name) so in my data context I have spGetEmployees(string Name). Now, my underlying sp changed to add an additional paramete...
{ "language": "en", "url": "https://stackoverflow.com/questions/251088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: VIM visual mode: highlight last 2 chars in each line? I like Vim's visual mode. v for highlight/select chars or lines, Ctrlv for rectangle highlighting, as far as I know (I am a beginner). Is there any way to use visual mode to highlight last two chars, for example, on each line for some selected lines? The selected...
{ "language": "en", "url": "https://stackoverflow.com/questions/251090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GridView/ObjectDataSource inside runat=server container does not bind I've got a small web form with 2 radio buttons, call them PickFromList and EnterValue. When PickFromList is checked I want to show a GridView that I've configured to bind to an ObjectDataSource. When EnterValue is checked I want the GridView to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/251091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Turning on Presentation Mode in Windows? Windows Vista has "Presentation Mode", which you can turn on with the Mobility Center. How can I turn it on programmatically? A: The only way I found is to call presentationsettings.exe with /start or /stop directly. I also found this link that describes how to activate pres...
{ "language": "en", "url": "https://stackoverflow.com/questions/251104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }