text
string
meta
dict
Q: Adding click event to button to fire javascript, through VB.NET I have an ASP.NET page which pulls a set of images from a database table, and using an enumerator, goes through all of them and displays then. This all happens in the codebehind (VB.NET), where the code adds the placeholder and some controls inside tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/187890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way to pass arguments to a query in CodeIgniter *without* using ActiveRecord? This is what I'd like to do, but it doesn't seem possible: (edit: changed single to double quotes) function get_archives($limit, $offset) { $query = $this->db->query(" SELECT archivalie.id, archiva...
{ "language": "en", "url": "https://stackoverflow.com/questions/187893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I obtain the physical (MAC) address of an IP address using C#? From C#, I want to do the equivalent of the following: arp -a |findstr 192.168.1.254 Alternatively, the answer could call the SendARP function and get the results. This will allow my application to do some other processing that requires the MAC a...
{ "language": "en", "url": "https://stackoverflow.com/questions/187894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Enterprise Library Review? Is enterprise library for exception handling and logging efficient in terms of its memory usage for the functionality provided? What are the pros and cons? Thanks A: I doubt that the enterprise library is going to be your performance bottleneck. I'd say use it, measure your application's...
{ "language": "en", "url": "https://stackoverflow.com/questions/187895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chart on MS Access 2003 ADP report What's the best method of displaying report data in a chart format in an Access 2003 ADP project? I know this can be done in normal MDBs but this seems to use a Jet Crosstab query behind the scenes and this is not available in the ADP. I've experimented with the Office 11 Chart con...
{ "language": "en", "url": "https://stackoverflow.com/questions/187901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JPA - many to many relationship of a table with a compound-key with itself I would like to create a many to many relationship of a table (RoutePlace) with itself using JPA anotations. The singularity of the table I want to join with itself is that it has a compound-key. example: https://h4losw2.files.wordpress.com/2...
{ "language": "en", "url": "https://stackoverflow.com/questions/187908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fastest Convert from Collection to List What I'd like to avoid: ManagementClass m = new ManagementClass("Win32_LogicalDisk"); ManagementObjectCollection managementObjects = m.GetInstances(); List<ManagementObject> managementList = new List<ManagementObject>(); foreach(ManagementObject m in managementObjects){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/187913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Detecting a Process is already running in windows using C# .net How do I detect if a process is already running under the Windows Task Manager? I'd like to get the memory and cpu usage as well. A: Have you looked into the System.Diagnostics.Process Class. A: You can use System.Diagnostics.Process Class. There i...
{ "language": "en", "url": "https://stackoverflow.com/questions/187915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: DBCC CHECKIDENT on a temporary table throwing permissions error for wrong user I'm logged into a SQL Server 2005 database as a non-sa user, 'bhk', that is a member of the 'public' server role only. The following code tries to execute within a stored procedure called by user 'bhk'. This line of code... TRUNCATE TABLE...
{ "language": "en", "url": "https://stackoverflow.com/questions/187920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Formats for Saving Vector-based 3D Graphics I have written a vector-based 3D editor (UI customized somewhat like technical drawings). I now want save the vectors/drawing data in portable formats. Which formats are available; which (one?) of them are the most widely accepted, and where can I get hold of the format sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/187921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I add SQL Server database objects to TFS? We don't currently have our SQL Server objects in any form of source control. We recently installed TFS 2008 and I'd like to get our SQL server code added. I think I could script all of the database and create script files for each object, but I'm hoping there is a w...
{ "language": "en", "url": "https://stackoverflow.com/questions/187936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Is there a way to detect Flash playback progress, using the Flash ActiveX object, when progress is NOT on the main timeline? I've done some programming where I've embedded the Flash ActiveX control into my program. I'll play SWF files in a "playlist" provided by the user. Typically, I've kept a timer going that look...
{ "language": "en", "url": "https://stackoverflow.com/questions/187965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GetResponse to Sharepoint site unauthorized I have the following code which will ping a typical anonymous website without a problem but I receive either an unauthorized error or forbidden. Here is the code that's giving me the forbidden error. using System; using System.Collections.Generic; using System.Linq; using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/187971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MSBUILD Task Items in subdirectories: Are incremental builds not possible on these? I have a simple Word to Pdf converter as an MSBuild Task. The task takes Word files (ITaskItems) as input and Pdf files (ITaskItems) as output. The script uses a Target transform for conversion: <Project DefaultTargets="Build" xmlns=...
{ "language": "en", "url": "https://stackoverflow.com/questions/187974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What do these Unicode characters (codepoints) mean in this regex? I have the following regular expression : I figured out most of the part which is as follows : ValidationExpression="^[\u0020\u0027\u002C\u002D\u0030-\u0039\u0041-\u005A\u005F\u0061-\u007A\u00C0-\u00FF°./]{1,256}$" u0020 : SPACE u0027 : APOSTROPHE u...
{ "language": "en", "url": "https://stackoverflow.com/questions/187981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I hide a process in Task Manager in C#? I have a requirement to hide a process in Task Manager. It is for Intranet scenario. So, everything is legitimate. :) Please feel free to share any code you have (preferably in C#) or any other techniques or any issues in going with this route. Update1: Most of the use...
{ "language": "en", "url": "https://stackoverflow.com/questions/187983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: NHibernate database connections failing under load I was wondering if this seemed to familiar to any experience NHibernate developers or if someone could give me an idea as to where to start to try and resolve this issue: I inherited an NHibernate site written in ASP.NET 1.1 using NHibernate 0.6 and .NET remoting to...
{ "language": "en", "url": "https://stackoverflow.com/questions/187987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set session variable skip_unusable_indexes to true in a PL/SQL package to speed up a table delete/insert? I'm trying to speed up a data load which is controlled via a PL/SQL stored procedure. I've programmatically altered the indexes for the table I want to refresh to be unusable. I want Oracle to ignore the...
{ "language": "en", "url": "https://stackoverflow.com/questions/187988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Method parameters value through Reflection I am trying to log a method's parameters by using reflection. I read the earlier question posted about this issue on StackOverflow as well which pointed me to CLR API's. Is it possible, someone can point me to the right direction, as to how will I get the values of paramet...
{ "language": "en", "url": "https://stackoverflow.com/questions/187989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does GCC-Windows depend on cygwin? I'm not a C++ developer, but I've always been interested in compilers, and I'm interested in tinkering with some of the GCC stuff (particularly LLVM). On Windows, GCC requires a POSIX-emulation layer (cygwin or MinGW) to run correctly. Why is that? I use lots of other software,...
{ "language": "en", "url": "https://stackoverflow.com/questions/187990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Row Offset in SQL Server Is there any way in SQL Server to get the results starting at a given offset? For example, in another type of SQL database, it's possible to do: SELECT * FROM MyTable OFFSET 50 LIMIT 25 to get results 51-75. This construct does not appear to exist in SQL Server. How can I accomplish this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/187998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "145" }
Q: How do I get the version of an assembly without loading it? One small function of a large program examines assemblies in a folder and replaces out-of-date assemblies with the latest versions. To accomplish this, it needs to read the version numbers of the existing assembly files without actually loading those assem...
{ "language": "en", "url": "https://stackoverflow.com/questions/187999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Two-way binding of Xml data to the WPF TreeView I am attempting to rewrite my ForestPad application utilizing WPF for the presentation layer. In WinForms, I am populating each node programmatically but I would like to take advantage of the databinding capabilities of WPF, if possible. In general, what is the best w...
{ "language": "en", "url": "https://stackoverflow.com/questions/188001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Creating an asp:Button programmatically? I'm using my code-behind page to create a save button programmatically: Button btnSave = new Button(); btnSave.ID = "btnSave"; btnSave.Text = "Save"; However I think this must create an html button or perhaps needs something else as I cannot seem to set the OnCli...
{ "language": "en", "url": "https://stackoverflow.com/questions/188007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Mathematics and Game Programming I want to program graphical 2D games more complex than the basic 2D stuff I already know. I don't want to do 3D programming. Just more complex 2D stuff. I dropped high school before I could learn a lot of stuff so I walked away with enough algebra knowledge to balance my checkbook an...
{ "language": "en", "url": "https://stackoverflow.com/questions/188030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Xtragrid repositorycombobox * *My repositorycombobox is showing blank option on default. How do I make the option 1 of the combobox to be the default value. *I want to make this repositorycombobox to act like dropdown with no edit function. But if I make it non editable the dropdown wont work. So how do I do it?...
{ "language": "en", "url": "https://stackoverflow.com/questions/188032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Security, cryptography: Stupid Challenge - Response protocol? Ok guys just a small game: I have some specifications for a project. At some point they ask for the following to encrypt a password over the net, saying that it is a challenge response protocol: CLIENT ----------------------------- SERVER (1)ask for cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/188043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java GUI Resolution Independent Scaling I'm working on a large legacy java application for which an important feature was automatic scaling of GUI Components based on monitor resolution. We are upgrading the JVM on which it runs from 1.4.2 to 1.6 and now the scaling is broken due to a change in the implementation o...
{ "language": "en", "url": "https://stackoverflow.com/questions/188046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Internet Explorer 8 and CSS Quick question. What do you think, I have a few sites that use a 3 level drop-down menu that will be broken if IE8 released with its current CSS standards in IE8 beta2. So do I take the time to redo those drop downs now? I realize that the way they rendered CSS changed completely between...
{ "language": "en", "url": "https://stackoverflow.com/questions/188057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In a Web 2.0 site, how long (in sec) should a newly added tag take to show and be indexed for search? I'm building a web 2.0 site with tagging functionality and wanted to get a sense from anyone with experience how long (in sec) the system can take to a) show a new tag on a given record and b) index the tag for sear...
{ "language": "en", "url": "https://stackoverflow.com/questions/188067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing target framework in Visual Studio 2008 What's the deal with Visual Studio? I tried importing the Caching App Block and got this message: The assembly or one of its dependencies you're are trying to import requires a later version of .NET Framework. I went to the properties of my application in Visual Stud...
{ "language": "en", "url": "https://stackoverflow.com/questions/188091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visual Studio 2008 - Application closes when unhandled exception occurs I have a problem when an unhandeld exception occurs while debugging a WinForm VB.NET project. The problem is that my application terminates and I have to start the application again, instead of retrying the action as was the case in VS2003 The u...
{ "language": "en", "url": "https://stackoverflow.com/questions/188098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PL/SQL Evaluation Order Howdy. Consider the following: SQL> DECLARE 2 b1 BOOLEAN; 3 b2 BOOLEAN; 4 FUNCTION checkit RETURN BOOLEAN IS 5 BEGIN 6 dbms_output.put_line('inside checkit'); 7 RETURN TRUE; 8 END checkit; 9 10 PROCEDURE outp(n VARCHAR2, p BOOLEAN) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: UnauthorizedAccessException with IIS7 I'm trying to write a log file from an ASP.NET application under IIS7, but keep getting the following exception: UnauthorizedAccessException "Access to the path 'C:\Users\Brady\Exports' is denied." I have given write access to the iis_iusrs, iis_wpg, and aspnet users, based ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I format my oracle queries so the columns don't wrap? I've tried this, but it doesn't work: col * format a20000 Do I really have to list every column specifically? That is a huge pain in the arse. A: Never mind, figured it out: set wrap off set linesize 3000 -- (or to a sufficiently large value to hold you...
{ "language": "en", "url": "https://stackoverflow.com/questions/188118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Can I specify my explicit type comparator inline? So .NET 3.0/3.5 provides us with lots of new ways to query, sort, and manipulate data, thanks to all the neat functions supplied with LINQ. Sometimes, I need to compare user-defined types that don't have a built-in comparison operator. In many cases, the comparison...
{ "language": "en", "url": "https://stackoverflow.com/questions/188120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Programmatic solution to change navigation id to highlight current page ASP.NET I am writing a website with Visual Studio 2008 and ASP.NET 3.5. I have a masterpage set up to simplify the layout and to keep the content pages for content rather than content and layout. The navigation is list, css'd so it looks like a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: In MySQL, is there any difference (performance-wise) between decimal and double? In my database, I would like to store a decimal score. A score can have a value from 0 to 10, and values in between, such as 2.3 or 9.4. I recently learned that int only stores whole numbers and not decimals. I found out that you could ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are there anonymous, type-safe, generic delegate signatures in C# 2.0? Consider the delegate for a generic A to B function: public delegate B Fun<A, B>(A x); I can then write a function that accepts and invokes the Fun delegate: public static B invokeFun<A, B>(A x, Fun<A, B> f) { return f(x); } (Never mind whether...
{ "language": "en", "url": "https://stackoverflow.com/questions/188134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to link to a gzipped javascript in an html document? I've seen a number of references to gzipping a javascript to save download time. But I also see a number of warnings that certain browsers do not support this. I have two different methods at my disposal: * *use mod_deflate to make Apache compress JS/CSS f...
{ "language": "en", "url": "https://stackoverflow.com/questions/188138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: List OrderBy Alphabetical Order I'm using C# on Framework 3.5. I'm looking to quickly sort a Generic List<T>. For the sake of this example, let's say I have a List of a Person type with a property of lastname. How would I sort this List using a lambda expression? List<Person> people = PopulateList(); people.Order...
{ "language": "en", "url": "https://stackoverflow.com/questions/188141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "478" }
Q: Rake aborting with error Trying to setup the exception_logger plugin on a production server. Everything worked fine on the dev machine. Trying to rake db:migrate on the prod server and i get this error: rake aborted! no such file to load -- pagination What am i missing? A: Classic Pagination is not supported in 2....
{ "language": "en", "url": "https://stackoverflow.com/questions/188147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to set the default page size when printing in IE7? I recently convinced a customer to upgrade to Internet Explorer 7 but now she is having an issue printing. When printing emails from her webmail in IE6 they would print at 75% and fit on a single page. Now with IE7 they added the "Shirnk to Fit" optio...
{ "language": "en", "url": "https://stackoverflow.com/questions/188156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Do You Handle Validation In Silverlight? How have you decided to handle data/control validation in your silverlight applications? A: You can throw and capture data validation exceptions. To manage both of these types of errors need to take 3 steps: * *Identify the error handler either in the control or hig...
{ "language": "en", "url": "https://stackoverflow.com/questions/188160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the most useful script you've written for everyday life? Just wondering what little scripts/programs people here have written that helps one with his or her everyday life (aka not work related). Anything goes, groundbreaking or not. For me right now, it's a small python script to calculate running pace given...
{ "language": "en", "url": "https://stackoverflow.com/questions/188162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "133" }
Q: Team Foundation Server (TFS) File Difference viewer - customize with other tool I am using Team Foundation Server (TFS) for Visual Studio 2005. Whenever i wish to compare two file's versions TFS displays a window with the differences. The problem is that it is always split vertically. In fact, almost every time, i w...
{ "language": "en", "url": "https://stackoverflow.com/questions/188166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Named Entity Recognition Libraries for Java I am looking for a simple but "good enough" Named Entity Recognition library (and dictionary) for java, I am looking to process emails and documents and extract some "basic information" like: Names, places, Address and Dates I've been looking around, and most seems to be o...
{ "language": "en", "url": "https://stackoverflow.com/questions/188176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How to convert ArrayList to an array of structure? Here I have: Public Structure MyStruct Public Name as String Public Content as String End Structure Dim oStruct as MyStruct = New MyStruct() oStruct.Name = ... oStruct.Content = ... Dim alList as ArrayList = new ArrayList() alList.Add(oStruct) I'd like to c...
{ "language": "en", "url": "https://stackoverflow.com/questions/188184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Upgrading a ASP.NET 1.1 Web Service using the WSE 2.0 to .NET 3.5 We recently upgraded an application that that contained web services using the WSE 2.0 to .NET 3.5. When we converted the project in Visual Studio 2008, It did not mention anything about the removing and/or modifying the WSE 2.0 namespaces. Here is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add a CheckBox column to a GridView with persistence I have an ASP.NET application that displays various views into a largish database of protein sequences. As a visitor browses the data, I'd like for them to be able to select a CheckBox in the GridView row to flag sequences for later download as a zipped text file...
{ "language": "en", "url": "https://stackoverflow.com/questions/188191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the difference between "&> foo" and "> foo 2>&1"? There seem to be two bash idioms for redirecting STDOUT and STDERR to a file: fooscript &> foo ... and ... fooscript > foo 2>&1 What's the difference? It seems to me that the first one is just a shortcut for the second one, but my coworker contends that the...
{ "language": "en", "url": "https://stackoverflow.com/questions/188208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: how can an .ASPX page get its file system path? I have a page something.aspx, with associated codebehind something.aspx.cs. In that codebehind, I want to know the filesystem location of something.aspx. Is there any convenient way to get it? Update: I got several excellent answers, which unfortunately didn't work b...
{ "language": "en", "url": "https://stackoverflow.com/questions/188209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MS SQL datetime prior than 1/1/1900 Surely there is a way to store a date value prior than 1-1-1900 in a column other than varchar? Or do I really have to break this out, and perform my own datetime library for date differences, sorting, and such? Yes, I understand how datetime's are actually stored (an integer valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/188214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to assign keyboard shortcut to Source Control commands in Visual Studio 2008? I use Visual C++ 2008 in Visual Studio 2008. I frequently use the following command to diff an open file against its most recent checked-in version: File | Source Control | Compare... I can also do the same thing by clicking on an ic...
{ "language": "en", "url": "https://stackoverflow.com/questions/188225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Catching exceptions with tomcat and a servlet I have set-up tomcat to catch all my exceptions and pass them to a servlet with the following in web.xml. <servlet-mapping> <servlet-name>exception</servlet-name> <url-pattern>/exception</url-pattern> </servlet-mapping> <error-page> <exception-type>java.lang....
{ "language": "en", "url": "https://stackoverflow.com/questions/188233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: TFS Get Specific Version addin I am looking for an addin that will allow me to click a button on the VS toolbar and the following actions should happen. * *On the highlighted project/folder/item from either Source Control Explorer or Solution Explorer, do a 'Get Specific Version' *Click those 2 checkboxes, hit t...
{ "language": "en", "url": "https://stackoverflow.com/questions/188236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which Version of StringComparer to use If I want to have a case-insensitive string-keyed dictionary, which version of StringComparer should I use given these constraints: * *The keys in the dictionary come from either C# code or config files written in english locale only (either US, or UK) *The software is inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/188241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Data Types supported in visual studio 2008 I just downloaded and installed the latest Adventure Works database from http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx?ReleaseId=16040 to do some more playing around with LINQ and found that there are some data types that are not natively supported ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: mosso versus gogrid which is better? I have reasonable experience to manage my own server, so gogrid style management is not a problem. But seems mosso is a tag cheaper somewhat- except the very difficult to access compute cycles terms. Anyone could share about this would be very welcomed. A: Well, even at the curr...
{ "language": "en", "url": "https://stackoverflow.com/questions/188245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# Custom ListView Does anyone have any info on creating/drawing a customised ListView object? Currently Im working on a project that requires a customised look and feel within the application. I am using a standard (Windows.Forms) ListView which is not in the same style as the rest of the GUI. We are NOT using a to...
{ "language": "en", "url": "https://stackoverflow.com/questions/188248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you execute a stored procedure using Castle ActiveRecord? I believe there is a discussion on this very topic somewhere on the net but I lost the url and I am unable to find it via googling. What I might try right now would be: ISessionFactoryHolder factoryHolder = ActiveRecordMediator<EntityClass>.GetSessionF...
{ "language": "en", "url": "https://stackoverflow.com/questions/188250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: ASP.NET Web Dev: Map one directory to another? We are thinking of renaming our web directory schema to be more user friendly. However, we need any URL requests for the old directory structure to forward to the new one. so.... How do I forward requests for all of these: http://mydomain.com/OLDdirname/ http://mydomai...
{ "language": "en", "url": "https://stackoverflow.com/questions/188258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How are ssl certificates verified? What is the series of steps needed to securely verify a ssl certificate? My (very limited) understanding is that when you visit an https site, the server sends a certificate to the client (the browser) and the browser gets the certificate's issuer information from that certificate...
{ "language": "en", "url": "https://stackoverflow.com/questions/188266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "294" }
Q: What do you think is the best C# Commenting Structure? Specifically with Visual Studio Over the years as I have gone through school and been working in the industry I have often asked people for advice on commenting. Sadly, as we all know, commenting with many developers is something that is taken as a side note an...
{ "language": "en", "url": "https://stackoverflow.com/questions/188269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Online Computer Science articles repository? When I need some complex algorithm I first check if there's anything relevant already published on the Internet. 10 times out of 10 I'll find that someone already have figured out a solution much smarter than what I would have thought of. Apart from a generic Google searc...
{ "language": "en", "url": "https://stackoverflow.com/questions/188276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Delphi TThread.CurrentThread and EAccessViolation - Is This a Bug or My Incompetence..? In Delphi 2009 I'm finding that any time I use TThread.CurrentThread in an application, I'll get an error message like the following when the application closes: Exception EAccessViolation in module ntdll.dll at 0003DBBA. Access ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Marshal C++ struct array into C# I have the following struct in C++: #define MAXCHARS 15 typedef struct { char data[MAXCHARS]; int prob[MAXCHARS]; } LPRData; And a function that I'm p/invoking into to get an array of 3 of these structures: void GetData(LPRData *data); In C++ I would just do something lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/188299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Analysis Service - Proactive caching failing For a while the proactive caching process successfully sync the OLAP databse and then is starts giving the following error 'Errors in the OLAP storage engine: The attribute key cannot be found:' followed by spesific data related information. I do not however have a proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/188303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it safe to just copy a SVN repository to an external HDD? Right now, my SVN repository is on my laptop's HDD (although I use a code hosting service for more "critical" personal projects) and I just copy the directory over on a weekly basis (which will eventually be scripted or perhaps I'll make an app for the hel...
{ "language": "en", "url": "https://stackoverflow.com/questions/188306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Expose Java class as SOAP WebService - how? I am looking for a framework to turn given Java class into WebService (may be with some limitations on method parameters etc) Thanks A: You can use axis2, or xfire. I'm sure there are other ways also, but these are the two that I've used. A: The de-facto standard for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/188310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How should one unit test the hashCode-equals contract? In a nutshell, the hashCode contract, according to Java's object.hashCode(): * *The hash code shouldn't change unless something affecting equals() changes *equals() implies hash codes are == Let's assume interest primarily in immutable data objects - their...
{ "language": "en", "url": "https://stackoverflow.com/questions/188311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: ASP.NET GridView CommandField Update/Cancel does not wrap My question is on the ASP.NET GridView control. I am using a CommandField in the Columns tag as seen below. <asp:CommandField ShowEditButton="True" HeaderStyle-Width="40px" UpdateText="Save" ButtonType="Link" HeaderStyle-Wrap="true" ItemStyle-Wrap="true" Item...
{ "language": "en", "url": "https://stackoverflow.com/questions/188327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Inheriting from an ASP.NET web control: "Element is not a known element" I'm attempting to create a custom calendar control that inherits from ASP.Net's built in calendar user control. the code-behind file for my control looks like this: public partial class WeeklyEventsCalendar : Calendar { protected void Pag...
{ "language": "en", "url": "https://stackoverflow.com/questions/188334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Caching Application Block Error Has anyone seen this error before? An error occurred creating the configuration section handler for cachingConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its de...
{ "language": "en", "url": "https://stackoverflow.com/questions/188344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simple animation using C#/Windows Forms I need to knock out a quick animation in C#/Windows Forms for a Halloween display. Just some 2D shapes moving about on a solid background. Since this is just a quick one-off project I really don't want to install and learn an entire new set of tools for this. (DirectX dev k...
{ "language": "en", "url": "https://stackoverflow.com/questions/188349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: DataGridView Mouse Selection I am using a DataGridView control in a Windows Forms application. When a user holds down control to select multiple items, it works fine. Now when the user releases control and clicks (and holds down the left mouse button) to start a drag operation, the selection changes. How can I stop ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best practices for creating various language-packs on a site? PHP I've created a language pack for a site before, but I'm not sure if what I'm doing is the best method. Basically, all I have is a file with variables defining string constants. Usually a set of arrays where an array usually refers to a particular ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/188364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL expression to remove duplicates from a calculation I am trying to run a query that will give time averages but when I do... some duplicate records are in the calculation. how can I remove duplicates? ex. Column 1 / 07-5794 / 07-5794 / 07-5766 / 07-8423 / 07-4259 Column 2 / 00:59:59 / 00:4...
{ "language": "en", "url": "https://stackoverflow.com/questions/188366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom error pages in Reporting Services 2008 I'd like to re-brand (and send error emails) for all of the SSRS default error pages (picture below) when you access reports via /ReportServer/. I'm already handling the ASP OnError event and some of the default SSRS errors appear to catch their own exceptions and then ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How well do Eclipse and Netbeans coexist? I would like to have both Eclipse and Netbeans (with JUnit) installed on one system, so I can be somewhat familiar with both. Besides GUI development (see "Using both Eclipse and Netbeans"), are there any other issues with using both IDEs on the same system, or even the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/188388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: XML schema for elements with same name but different sub-structure depending on context I try to define a schema for XML documents I receive. The documents look like: <root> <items> <group name="G-1"> <item name="I-1"/> <item name="I-2"/> <item name="I-3"/> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to connect my Spring + Hibernate based application backend with pure HTML and AJAX based client? I'd like to call methods of my DAOs by AJAX. I'm quite new in that so I would like to ask what is the best way to do that. Is it possible to publish my beans as web services and call them with e.g. jQuery? I think it...
{ "language": "en", "url": "https://stackoverflow.com/questions/188392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Prevent views stealing focus/setting focus to a view I have an MFC sdi app that uses a splitter window to contain a tree control alongside the main view showing the data. When the user selects something in the tree, that view keeps focus until the user deliberately clicks in the main data window. This means that a...
{ "language": "en", "url": "https://stackoverflow.com/questions/188393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I add an extra source directory that will be used by the maven-jxr-plugin? I'm using the build-helper-maven-plugin to add it to my build, but I'd like to see the XREF source for this extra source directory as well. FYI: maven-jxr-plugin - The JXR plugin produces a cross-reference of the project's sources. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/188400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best control to use to display items from a database? I'm writing a website that will sell items from one of my classes. It will be linked to a SQL Server db where I will pull pricing, item name, quantity and description. If I wanted to display the items from the database in a thinkgeek fashion, what wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/188408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best XML Parser for PHP I have used the XML Parser before, and even though it worked OK, I wasn't happy with it in general, it felt like I was using workarounds for things that should be basic functionality. I recently saw SimpleXML but I haven't tried it yet. Is it any simpler? What advantages and disadvantages do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "152" }
Q: How to run included tests on deployed pylons application I have installed pylons based application from egg, so it sits somewhere under /usr/lib/python2.5/site-packages. I see that the tests are packaged too and I would like to run them (to catch a problem that shows up on deployed application but not on development...
{ "language": "en", "url": "https://stackoverflow.com/questions/188417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET multi language website? How can I transform a website to be able to handle multi language (example : english, french, spanish)? I do not like the resource file because I feel limited and it's pretty long to build the list. Do you have any suggestion? Update For the moment the best way we found is to use an X...
{ "language": "en", "url": "https://stackoverflow.com/questions/188422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a simple algorithm that can determine if X is prime? I have been trying to work my way through Project Euler, and have noticed a handful of problems ask for you to determine a prime number as part of it. * *I know I can just divide x by 2, 3, 4, 5, ..., square root of X and if I get to the square root, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/188425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Reading/Writing MS Word files in Python Is it possible to read and write Word (2003 and 2007) files in Python without using a COM object? I know that I can: f = open('c:\file.doc', "w") f.write(text) f.close() but Word will read it as an HTML file not a native .doc file. A: I'd look into IronPython which intrinsic...
{ "language": "en", "url": "https://stackoverflow.com/questions/188444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: What are some techniques for limiting compilation dependencies in C++ projects? In a C++ project, compilation dependencies can make a software project difficult to maintain. What are some of the best practices for limiting dependencies, both within a module and across modules? A: Herb Sutter has a great treatment ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Django admin interface inlines placement I want to be able to place an inline inbetween two different fields in a fieldset. You can already do this with foreignkeys, I figured that inlining the class I wanted and defining it to get extra forms would do the trick, but apparently I get a: "class x" has no ForeignK...
{ "language": "en", "url": "https://stackoverflow.com/questions/188451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Reading/Writing a MS Word file in PHP Is it possible to read and write Word (2003 and 2007) files in PHP without using a COM object? I know that I can: $file = fopen('c:\file.doc', 'w+'); fwrite($file, $text); fclose(); but Word will read it as an HTML file not a native .doc file. A: You can use Antiword, it is a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Switch statement fall-through...should it be allowed? For as long as I can remember I have avoided using switch statement fall-through. Actually, I can't remember it ever entering my consciousness as a possible way to do things as it was drilled into my head early on that it was nothing more than a bug in the switch...
{ "language": "en", "url": "https://stackoverflow.com/questions/188461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "164" }
Q: What are the maximum columns in an Access 2003 query? What are the maximum allowed number of columns in a query in access 2003? A: 255 I believe. You can check by going to Help > Specifications > Query within Access. A: As a general rule, if you ever find yourself asking a question about the maximum hardcoded lim...
{ "language": "en", "url": "https://stackoverflow.com/questions/188462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I run LAMP and Rails from the same Apache instance? We have a RedHat box with Apache2, PHP5 and MySQL 5 for much of our development. Now, we have a Rails client, and we need to set up a Rails app on the same server. Can we install Ruby and the Rails framework with the same Apache, or should we avoid this? Why or...
{ "language": "en", "url": "https://stackoverflow.com/questions/188463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you manage deterministic finalization in C#? I have a C# object with a critical resource that needs to be flushed very specific points in time making it a bad candidate to leave around for the garbage collector to take care of whenever it gets around to it, how should I handle this? Is there something like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/188473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Comparing Two Strings producing a numeric delta Does anyone know of a simple way to compare two strings together to generate the "amount of difference" between the two? (in a numeric value) I have been crawling google with little luck on this. And after doing some coding it's not as simple as I had thought. Any clue...
{ "language": "en", "url": "https://stackoverflow.com/questions/188476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: In Emacs how to switch to other buffer? The problem is following: I want to automate the way my emacs starts. It has to be split in two buffers and the slime-repl has to be started in the smallest (bottom) buffer. Plus, I want my file to be opened in the bigger (upper) buffer. In my .emacs there are lines: (slime) ....
{ "language": "en", "url": "https://stackoverflow.com/questions/188488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: group collaboration open source php app I am on a committee that would benefit from an online application that allows the members to collaborate w/ members. I would want the ability to post messages and upload documents. Is there any free, easy to install on your server apps that you would suggest? A: If you really...
{ "language": "en", "url": "https://stackoverflow.com/questions/188489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }