text
stringlengths
8
267k
meta
dict
Q: Does IE6 support XMLHttpRequest.abort()? Am I correct to understand that the abort() method for XMLHttpRequest objects is only available starting from MSIE 7? If so, what equivalent option do I have for aborting an XMLHttpRequest object on timeout in MSIE 6? Using a JS framework to abstract the problem away is not a...
{ "language": "en", "url": "https://stackoverflow.com/questions/340153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Web-site for typical GUI-solutions to common usability problems? A discussion happened today where a grid containing data, which ultimately had data attached to it, think master-detail type grids, and a question followed, so I thought I'd ask the question here in the hopes someone has an answer or some pointers. If ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Plug-in architecture for ASP.NET MVC I've been spending some time looking at Phil Haack's article on Grouping Controllers very interesting stuff. At the moment I'm trying to figure out if it would be possible to use the same ideas to create a plug-in/modular architecture for a project I'm working on. So my question ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: using GDAL/OGR api to read vector data (shapefile)--How? I am working on an application that involves some gis stuff. There would be some .shp files to be read and plotted onto an opengl screen. The current opengl screen is using the orthographic projection as set from glOrtho() and is already displaying a map usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/340185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get WLAN information on my mobile device? I want to build something like a network scanner, so that I see in my application on which AccessPoint I'm on and what parameters this net has. Some interesting point would be ESSID, signal strength, noise, channel. Are theses properties device independent or do I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/340191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: webservice oneway and new SPSite(myUrl) I have a problem with a oneway web method that open a moss site (probably because in a oneway webmethod the context is null) Is possible to rewrite this code to remove the null reference exception? (without the oneway attribute i don't have the exception) [SoapDocumentMethod(...
{ "language": "en", "url": "https://stackoverflow.com/questions/340192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Zend_Validator Question? how to validate letters and whitespaces using Zend Framework ? A: The Zend Framework does have a Zend_Validate_Alpha (as well as an alphanumeric version). Normally it doesn't allow white space, but if you pass a true into the constructor of the Zend_Validate_Alpha class it will allow whites...
{ "language": "en", "url": "https://stackoverflow.com/questions/340194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scheme Macro for nesting expressions Can a macro be written in Scheme (with define-syntax, for example) which will take expressions like this: (op a b c d e f g h i j) And yield expressions like this as output? (op (op (op (op (op (op (op (op (op a b) c) d) e) f) g) h) i) j) Of course, for arbitrary lengths. I ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/340204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Generate colors between red and green for a power meter? I'm writing a Java game and I want to implement a power meter for how hard you are going to shoot something. I need to write a function that takes a int between 0 - 100, and based on how high that number is, it will return a color between Green (0 on the pow...
{ "language": "en", "url": "https://stackoverflow.com/questions/340209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "147" }
Q: Which is the best method to save data in Delphi I work on a program in Delphi that holds a lot of data, and I wonder which method is the best to save it to file. Now we use records and "file of" to save it but I think it should be better methods. I would prefer a system that makes it easy to migrate from the system ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: mysql join question I have two tables with the following columns: table1: id, agent_name, ticket_id, category, date_logged table2: id, agent_name, department, admin_status What I'm trying to achieve is to Select all rows from table1 where an agents department is equal to that of table2. I've tried a few different ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: entity framework and asp.net mvc i search a good tutorial to learn how to use entity framework in the right manner. in particular with asp.net mvc. A: I'd point you in the direction of this rather (1) lengthy article from the Entity Framework team. They've done a pretty good job of explaining both the shortcoming...
{ "language": "en", "url": "https://stackoverflow.com/questions/340218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best way to remove duplicates from a datatable? I have checked the whole site and googled on the net but was unable to find a simple solution to this problem. I have a datatable which has about 20 columns and 10K rows. I need to remove the duplicate rows in this datatable based on 4 key columns. Doesn't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do i add additional text to a joomla contact page This is my first time using joomla. I don't know if I'm using the concept of a Contact in the wrong way, but I have a Contact Us menu that I've created and I've added the contact details in. I'm looking to add a sentence or two of text above the contact details...
{ "language": "en", "url": "https://stackoverflow.com/questions/340225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: animate opacity out, insert html, animate opacity in With my jquery I'm trying to make the transition from a message to a loading function easy on the eyes by animate the opasity of the message out, inserting the loading.gif and animating the opacity back in. It fails. $('#powerSearchSubmitButton').click(function(ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/340232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are some possible reasons for objects stored in the ASP.NET Cache never expiring, despite having a sliding expiration time set? I've cached a value using the ASP.NET Cache, with the following code: Cache.Insert("TEST_VALUE", 150, null, Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(120)); As I understand it,...
{ "language": "en", "url": "https://stackoverflow.com/questions/340237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best method for formatting email when using System.Net.Mail Hi I'm using System.Net.Mail to send some HTML formatted emails. What is the correct method for inserting css into the email message? I know I can apply formatting to each item, but I'ld rather use style sheets.. EDIT I should have mentioned tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/340250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: embed google map in wpf control I am trying to create a wpf control that will display a map image using google maps. I want to be able to centre the map on a longitude and latitude specified by the application. Ideally, the control will then allow the user to move a map marker and store the latitude/longitude of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/340257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is maintenance on long lived JMS connections necessary? I keep a JMS connection always open, because I have a MessageListener on it. Is it a common need to worry about minimizing maintenance of applications with long lived JMS connections? I was thinking something along the lines of try to recover from some possib...
{ "language": "en", "url": "https://stackoverflow.com/questions/340266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should I use decimal, float or double for this simple math result? I'm doing some really simple math and saving the result to a MS SQL2008 DB. I'm averaging out the some numbers, which are byte values between 1<->5. I wish to record probably 2 decimal places only. I don't care about rounding for the 2nd decimal plac...
{ "language": "en", "url": "https://stackoverflow.com/questions/340270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to set an HTTP environment variable from PHP for Bugzilla? The bugzilla (perl-based) system has a feature to login automatically by using a http server environment variable. If you fill in the right ID or username, you are automatically logged in. My server runs Joomla (PHP-based) and has all the information abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/340271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ClickOnce installations I'm a bit stuck here, I have a .net 3.5 sp1 application that I want to deploy locally to other machines on my network using ClickOnce. On installation they get a warning message saying that this application is from an unknown publisher etc. My boss does not want to buy a verisgn certificate. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Cannot Delete Zip file Created by SharpZipLib (FastZip) I'm creating a zip file using the class FastZip from SharpZipLib and once I after I close the program, I cannot delete the file because: "Cannot delete zip.zip: It is being used by another person or program. Close any programs that might be using the file and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/340274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I add an option to a select box in a parent window using jquery? In my child window I have $('#opfile').addOption("someval",sometext"); Problem is #opfile is an a parent window I cant get it to communicate I tried window.opener.$('#opfile').addOption("someval",sometext"); but no luck any ideas? Update Embar...
{ "language": "en", "url": "https://stackoverflow.com/questions/340275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mixed java version JTable I would like to use the JTable row sorter new in Java 6. But also I need it to be compatible in Mac OSX with Java 5. Is it possible to find out the JVM version during runtime and use different code for the JTable with and without row sorter? A: You could always use JXTable from the SwingX...
{ "language": "en", "url": "https://stackoverflow.com/questions/340277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: i = ++i + ++i; in C++ Can someone explain to me why this code prints 14? I was just asked by another student and couldn't figure it out. int i = 5; i = ++i + ++i; cout<<i; A: The order of side effects is undefined in C++. Additionally, modifying a variable twice in a single expression has no defined behavior (See ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Avoiding a fork()/SIGCHLD race condition Please consider the following fork()/SIGCHLD pseudo-code. // main program excerpt for (;;) { if ( is_time_to_make_babies ) { pid = fork(); if (pid == -1) { /* fail */ } else if (pid == 0) { /* child stuff */ p...
{ "language": "en", "url": "https://stackoverflow.com/questions/340283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How can I combine two images into one image object? How can I combine two images? I mean I have two images: one small and another big one. I want to add small image onto big one at a specific point and I need to get an UIImage as the result. I have tried CGCreateImageFromMask but that makes small image to cover bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/340284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get dataset child rows in proper order I have typed dataset with 1:N relationship between two tables. Child table has 'Order' column, that I use for sorting (ordery by) in SP when loading data into dataset. As I understand, this order is not guaranteed when working with dataset. I need GetChildRows of parent row a...
{ "language": "en", "url": "https://stackoverflow.com/questions/340285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why do I keep getting a NullPointerException in the Java BasicTableUI$Handler.setValueIsAdjusting? I keep getting this NPE in my application and I can't seem to get rid of it because it is not showing up in any of my source code. As you can see from the stacktrace it is not happening in my code but in the Swing plaf...
{ "language": "en", "url": "https://stackoverflow.com/questions/340286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MS SQL Problem - Field length being limited I have a MS SQL DB with various tables, and one field in particular is causing me grief. The Data type is set to varchar(100), however the field is limited to 60 characters. If I try to put any string with more than 60 characters into the field I get an exception, "String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why are so many web languages interpreted rather than compiled? Why didn't languages such as C end up being using for web dev? Surely the speed increases from being compiled would be useful for heavy load sites? A: At least initially, a lot of the work done by backend code (which I assume is what you're talking abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/340298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Clicking twice to activate? javascript onclick issue I'm having an issue with a project I am working on at the moment that is making use of the Validation plugin for jQuery, when the validation error appears I am dynamically applying an anchor tag to it with an onclick. And its this onclick thats the problem... The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is rewriting a PHP app into Python a productive step? I have some old apps written in PHP that I'm thinking of converting to Python - both are websites that started as simple static html, then progressed to PHP and now include blogs with admin areas, rss etc. I'm thinking of rewriting them in Python to improve maint...
{ "language": "en", "url": "https://stackoverflow.com/questions/340318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: DI and Composite Components - Design I'm designing a new component to a system, trying to follow the various guidelines on DI so we get payback in terms of isolation, mocking etc. So I have the following components (illustrated as an abstraction): * *Fetcher - supports IFetcher, which fetches data from a particul...
{ "language": "en", "url": "https://stackoverflow.com/questions/340324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Suppressing Output of Paramiko SSHClient Class When I call the connect function of the Paramiko SSHClient class, it outputs some log data about establishing the connection, which I would like to suppress. Is there a way to do this either through Paramiko itself, or Python in general? A: Paramiko doesn't output anyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/340341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SSRS Performance I Have created an SSRS Report for retrieving 55000 records using a Stored Procedure. When executing from the Stored Proc it is taking just 3 seconds but when executing from SSRS report it is taking more than one minute. How can I solve this problem? A: I had such problem because of parameters snif...
{ "language": "en", "url": "https://stackoverflow.com/questions/340344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Web service can't open named pipe - access denied I've got a C++ service which provides a named pipe to clients with a NULL SECURITY_ATTRIBUTES as follows: hPipe = CreateNamedPipe( lpszPipename, PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How is it possible to sell code written in an interpreted language? It seems to me that if you are writing in an interpreted language that it must be difficult to sell software, because anyone who buys it can edit it/change it/resell it without much difficulty. How do you get around this? I have a couple of PHP apps...
{ "language": "en", "url": "https://stackoverflow.com/questions/340347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Plugging in to Java compilers I have a post-compilation step that manipulates the Java bytecode of generated classes. I'd like to make life as painless as possible for library consumers, so I'm looking at ways I can make this process automatic and (if possible) compiler agnostic. The Annotation Processing API provid...
{ "language": "en", "url": "https://stackoverflow.com/questions/340353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Opener.Location.Reload(); displayed Permission denied error in java script I had two domains for ex. domain1 and domain2, I am opening domain2/index.aspx page as popup from domain1/default.aspx page. While closing domain2 page i need to reload the domain1 page, i had given the javascript code as "Opener.Location.Rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/340354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Making CreateProcess inherit the console of the calling process When I call CreateProcess in Windows, the new process doesn't seem to inherit the console of the calling process. I made a test program that runs "ruby xtest", xtest being a script that writes "hello" to standard output. I ran this test program from E...
{ "language": "en", "url": "https://stackoverflow.com/questions/340356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can i get the cpu information in .net? like whether it is pentium or AMD etc. A: The System.Management Namespace Provides access to a rich set of management information and management events about the system, devices, and applications instrumented to the Windows Management Instrumentation (WMI) infrastructure....
{ "language": "en", "url": "https://stackoverflow.com/questions/340359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: SQL Select: Update if exists, Insert if not - With date part comparison? I need to update a record in a database with the following fields [ID] int (AutoIncr. PK) [ScorerID] int [Score] int [DateCreated] smalldatetime If a record exists for todays date (only the date portion should be checked, not the time) and a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Automatic tracking of build number in VS 2005? In Visual Studio 2005, is there an easy way to automatically increment the assembly/file build numbers after a successful build? Emphasis on easy. I would like to track my build version, without having to set up CruiseControl or some similar tool. A: You can use this p...
{ "language": "en", "url": "https://stackoverflow.com/questions/340368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I calculate the average of these numbers? I was wondering if it's possible to calculate the average of some numbers if I have this: int currentCount = 12; float currentScore = 6.1123 (this is a range of 1 <-> 10). Now, if I receive another score (let's say 4.5), can I recalculate the average so it would be so...
{ "language": "en", "url": "https://stackoverflow.com/questions/340376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Which are the must-have-newsletters subscriptions for .net/java programmers? I think there are several newsletters which are very good in content. EDIT: Such as http://www.javaspecialists.eu/archive/archive.jsp A: If I'm honest I never read newsletters I've subscribed to and they clutter my inbox. I'm already dro...
{ "language": "en", "url": "https://stackoverflow.com/questions/340381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can a JavaScript object have a prototype chain, but also be a function? function a () { return "foo"; } a.b = function () { return "bar"; } function c () { }; c.prototype = a; var d = new c(); d.b(); // returns "bar" d(); // throws exception, d is not a function Is there some way for d to be a function, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: import text file containing line breaks into excel I have a plain text file looking like this: "some text containing line breaks" I'm trying to talk excel 2004 (Mac, v.11.5) into opening this file correctly. I'd expect to see only one cell (A1) containing all of the above (without the quotes)... But ala...
{ "language": "en", "url": "https://stackoverflow.com/questions/340400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: NHibernate Mapping from multiple tables Consider the following table structure... Appointment ----------- ID integer Description nvarchar StatusID smallint Status ------ ID smallint DisplayText nvarchar Now, for good or for evil, we want this situation to map to a class that looks like this class Appointment { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Silverlight Control not working THAT good I have this problem that I have a little menu with a croll bar.. inside there's a couple of items with checkboxes.. On iterating through these checkboxes I get a null error.It seems like this is caused whenever a checkbox is not part of the visible space of the menu thingy.....
{ "language": "en", "url": "https://stackoverflow.com/questions/340412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do C/C++ compilers handle type casting between types with different value ranges? How do type casting happen without loss of data inside the compiler? For example: int i = 10; UINT k = (UINT) k; float fl = 10.123; UINT ufl = (UINT) fl; // data loss here? char *p = "Stackoverflow Rocks"; unsigned char *u...
{ "language": "en", "url": "https://stackoverflow.com/questions/340413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I display the selected values in an when the page loads? I have a JSP page which contains an HTML <select> populated with all countries loaded from a database. Say for example, on "create user" all the country values are loaded in the select menu and I select 5 countries. Those 5 values are loaded into datab...
{ "language": "en", "url": "https://stackoverflow.com/questions/340415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ADO.NET check if Rollback is possible I'm asking myself if it is possible to check if in ADO.NET the current transaction can be rolled back. The msdn suggests the following implementation: private static void ExecuteSqlTransaction(string connectionString) { using (SqlConnection connection = new SqlConnection(con...
{ "language": "en", "url": "https://stackoverflow.com/questions/340425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to run a VBA form as a .exe file Is it possible to save a form in VBA as .exe file and then run it. A: No, not natively. There are some ways to emulate an EXE: * *Excel: 3rd party tool that claims to be able to compile an workbook to an EXE: DoneEx XCell Compiler. You can also create an automatic...
{ "language": "en", "url": "https://stackoverflow.com/questions/340428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL Server linked servers I want to create a linked server in one sql server to another using the sp_addlinkedserver procedure. When i access the remote server I would like it to logon as me (i.e. using my windows account). How do I do this? A: You can do this with the sp_addlinkedsrvlogin procedure: EXEC master.db...
{ "language": "en", "url": "https://stackoverflow.com/questions/340431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Missing 'virtual' qualifier in function declarations Whilst trawling through some old code I came across something similar to the following: class Base { public: virtual int Func(); ... }; class Derived : public Base { public: int Func(); // Missing 'virtual' qualifier ... }; The code compiles fine...
{ "language": "en", "url": "https://stackoverflow.com/questions/340437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Dependency injection with NHibernate objects I am wondering how to tell NHibernate to resolve dependencies on my POCO domain objects. I figured out that methods like CalculateOrderTax should be in the Domain object because they encode domain specific business rules. But once I have two of those I am violating SRP. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I update Bugzilla bugs from bash and php scripts? Our development process is highly automated via a raft of bash and php scripts (including subversion hook scripts.) These scripts do a number of things to integrate with our Bugzilla 3.0 installation. But the current integration approach is a bunch of SQL ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/340471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best approach for passing XML to a webservice? I have XML files in a directory that I wish to get over to a webservice on a server that will validate them and return a true/false as to whether they are valid in construct and values etc. Reason for server side processing is that the validation rules may change from t...
{ "language": "en", "url": "https://stackoverflow.com/questions/340489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Exporting a tab delimited file from an access database This code: db = "C:\Dokumente und Einstellungen\hom\Anwendungsdaten\BayWotch4\Neuer Ordner\baywotch.db5" TextExportFile = "C:\Dokumente und Einstellungen\hom\Anwendungsdaten\BayWotch4\Neuer Ordner\Exp.txt" Set cn = CreateObject("ADODB.Connection") Set rs = Crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/340491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create screenshot of the page with Watin-like tool I need to create a screenshot of the page by providing a page URL to the command line tool. I found the following application: Convert HTML To Image. This tool is OK but want a more flexible application. I need to have ability to perform the following: * *Go to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/340501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: hiding text and changing images with css I am trying to generate a html page with css that works as an image preview kind of thing. An example of this is here: http://www.nomorepasting.com/getpaste.php?pasteid=22463 however this approach has several drawbacks. One of which is the text must always be smaller than the...
{ "language": "en", "url": "https://stackoverflow.com/questions/340505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inheriting the equality comparer I have a Customer class. public class Customer { private string _id; private string _name; // some more properties follow I am inheriting the EqualityComparer form MyEqualityComparer(of Customer). This I am intending to use in LINQ queries. MyEqualityComparer is intende...
{ "language": "en", "url": "https://stackoverflow.com/questions/340507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I create a dojox.data.XmlStore with a url pointing to a different port or server In the following, I want to replace /books.xml with something like http://server:port/books. In essence the XmlStore to be served by some other server or port than the one serving this <div dojoType="dojox.data.XmlStore" url="/books...
{ "language": "en", "url": "https://stackoverflow.com/questions/340510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I put the complete Tornado tree under version control or not? I finally have a hardware guy that is insterested in controlling the firmware. This is for vxworks firmware. The tornado (2.2.1) gui creates a project file that has a list of files that were modified but they seem to be from all over the directory...
{ "language": "en", "url": "https://stackoverflow.com/questions/340516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should we introduce BizTalk/ESB? My company are about to implement a new architecture in which we have proposed BizTalk (we are a Microsoft shop) as the Enterprise Service Bus (ESB) in a SOA (please don't quote Service Oriented Ambiguity) environment. Our business is to take Orders through our new Order Capture GUI ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ASP.NET GridView "Client-Side Confirmation when Deleting" stopped working on ie - how come? A few months ago, I have programmed an ASP.NET GridView with a custom "Delete" LinkButton and Client-Side JavaScript Confirmation according to this msdn article: http://msdn.microsoft.com/en-us/library/bb428868.aspx (publishe...
{ "language": "en", "url": "https://stackoverflow.com/questions/340520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make Named Pipe binding reconnect automatically in WCF I'm writing a service that will only get calls from the local host. Performance is important so I thought I'd try the NetNamedPipeBinding instead of NetTcpBinding and see If I could see any noticeable performance gains. If a client, after having perfor...
{ "language": "en", "url": "https://stackoverflow.com/questions/340521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Accessing calling object from MethodCallExpression I'm trying to learn about Expression trees, and I've created a method that takes an Expression<Func<bool>> and executes it if it satisfies some conditions - see the code below. private static void TryCommand(Expression<Func<bool>> expression) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Automatic Properties - Why Do I Have To Write "get; set;"? If both get and set are compulsory in C# automatic properties, why do I have to bother specifying "get; set;" at all? A: Because you might want a read-only property: public int Foo { get; private set; } Or Write-only property: public int Foo { private g...
{ "language": "en", "url": "https://stackoverflow.com/questions/340528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: How can I retrieve a collection of values from nested HTML-like elements using RegExp? I have a problem creating a regular expression for the following task: Suppose we have HTML-like text of the kind: <x>...<y>a</y>...<y>b</y>...</x> I want to get a collection of values inside <y></y> tags located inside a given <...
{ "language": "en", "url": "https://stackoverflow.com/questions/340543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to chose between new and override in C#? It is advised to use override instead of new key word in C#. Why that rule? A: I'm still trying to work out what the use case is for "new" aside from horrid hackery. A: "new" means you've got two completely different methods as far as the CLR is concerned - they happen ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there any way to use diag() from Test::More without planning? I'm writing some tests in Perl which have a fair amount of set up. This setup all lives in a module that the test scripts use. I want to be able to print some diagnostics from the module, and intended to use the diag function from Test::More. Problem i...
{ "language": "en", "url": "https://stackoverflow.com/questions/340548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to use GZIP compression on classic ASP pages? We've got a classic ASP application that is putting out some very large reports, where the resulting HTML is several MBs. We've made a lot of progress in trimming this down by reducing extraneous HTML, but I'd like to know if there's any way to enable GZIP...
{ "language": "en", "url": "https://stackoverflow.com/questions/340550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to send HTTP requests from Windows Powershell? What is the best way to send HTTP requests from Windows Powershell? A: Found one way: $page = (New-Object System.Net.WebClient).DownloadString("http://localhost/") Thanks to Steven Murawski for his comment: The best way really depends on what t...
{ "language": "en", "url": "https://stackoverflow.com/questions/340553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: method visibility between classes in java In Java (And in general) is there a way to make a class so public that it's methods etc... are accessible from little classes all around that don't even instantiate it? Ha, what I mean is... If I have a daddy class that has a method draw() and it instantiates a baby class ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/340562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Suggestions for a cheap/free .NET library for doing Zip with AES encryption? I'm trying to find an zip compression and encryption component with encryption suitable for use by the US Federal Government, so I can't use Zip 2.0 encryption, it has to be AES or the like. I've already found SharpZipLib (can't do AES enc...
{ "language": "en", "url": "https://stackoverflow.com/questions/340568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Visual studio scrollbar I recently upgraded VS 2005 to VS 2008. Unfortunately I have a very basic problem: In the codeview window my vertical scrollbar does not look like a normal, traditional scrollbar, but like some kind of code-preview window. It is roundabout four times wider than a normal scrollbar. The problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/340571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: My Calendar control is cut I've got an own control with a calendar popup and other functionality. I've placed that Control into a grid in the content of another Page. My problem now is, that the Calendar Control is cut. So i only see half of the calendar. How can i bring it to the Front? Like the normal DatePicker C...
{ "language": "en", "url": "https://stackoverflow.com/questions/340572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL stored procedure for every single SQL statement in .NET? Is it a best practice to use stored procedure for every single SQL call in .NET applications? Is it encouraged for performance reasons and to reduce surface area for SQL injection attacks (in web applications)? A: Stored procedures have a few advantages o...
{ "language": "en", "url": "https://stackoverflow.com/questions/340575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Application.Exit didn't kill a message pump? I have thread exception handler which saves the exception stack trace and should close the application. I call Applicatoin.Exit, but that only closes the window, living the app running windowless. I know, that this usually happens because some background threads are stil...
{ "language": "en", "url": "https://stackoverflow.com/questions/340576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Toolbar on windows xp and vista taskbar I have made a toolbar that I want to enable from a systray application written in C#, the actual toolbar enabling is done from a C++ part using [DLLImport]. Current I use: SHLoadInProc(__uuidof(MyBandLoader)) but this fails on vista (SHLoadInProc is not implemented any more),...
{ "language": "en", "url": "https://stackoverflow.com/questions/340601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic Parameter Count for SQL with C# So I was thinking about creating a dynamic sql question, meaning that i want the amount of parameters to be dynamic. Having looked at this: Parameterize an SQL IN clause i was thinking that using like '%x%' is SLOW and not good. What i actually would like to do is using the IN...
{ "language": "en", "url": "https://stackoverflow.com/questions/340608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Create empty C# event handlers automatically It is not possible to fire an event in C# that has no handlers attached to it. So before each call it is necessary to check if the event is null. if ( MyEvent != null ) { MyEvent( param1, param2 ); } I would like to keep my code as clean as possible and get rid of thos...
{ "language": "en", "url": "https://stackoverflow.com/questions/340610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "74" }
Q: What are the best practices for database scripts under code control We are currently reviewing how we store our database scripts (tables, procs, functions, views, data fixes) in subversion and I was wondering if there is any consensus as to what is the best approach? Some of the factors we'd need to consider include...
{ "language": "en", "url": "https://stackoverflow.com/questions/340614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Usability of sub/nested grids Wanted to get some consensus around a UI feature I'm working on right now. The general idea is that I have a list of items, and you can select an item, and operate upon it. Currently, the sub functionality is implemented as a browser popup window. We've found that our users generally...
{ "language": "en", "url": "https://stackoverflow.com/questions/340619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Intellij shortcut for quick call hierarchy Is there a shortcut key to bring up the call hierarchy of a method inline with the code, in the quick menu format, rather than bringing up the call hierarchy panel? A: Don't forget you can always do the action name search with Command + Shift + A and search for "call", amo...
{ "language": "en", "url": "https://stackoverflow.com/questions/340622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "94" }
Q: Programming to an interface. How to decide where its needed? I understand that programming to interfaces helps with loose coupling. However, is there a guideline that explains when its most effective? For example, I have a simple web application that collects data on employees, their training plans, expenses and com...
{ "language": "en", "url": "https://stackoverflow.com/questions/340623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Do you leave parentheses in or out in Ruby? When possible.. do you leave parentheses in or out in Ruby? A: I leave them out when I'm doing DSL-ish stuff, like t.column or has_many in rails. The rest of the time, it generally comes down to clarity, and it's probably an even split. A: I guess I do both, but I defi...
{ "language": "en", "url": "https://stackoverflow.com/questions/340624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: Using RegEx in XSLT I need to parse Visual Studio automatically generated XML documentation to create a report. I decided to use XSLT but I'm very new to it and need help. Common template is: <doc> <members> <member name="F:MyNamespace"> <summary>Some text</summary> </member> </members> </doc> I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Binding XML in Silverlight without nominal classes Let's say I have a simple chunck of XML:- <root> <item forename="Fred" surname="Flintstone" /> <item forename="Barney" surname="Rubble" /> </root> Having fetched this XML in Silverlight I would like to bind it with XAML of this ilke:- <ListBox x:Name="ItemLis...
{ "language": "en", "url": "https://stackoverflow.com/questions/340645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to concatenate WAV files in C# I have 2 wav files that I want to concatenate into one file with the two sound tracks. Is there any api for that task or some built in commands in .NET that can I can use in some genius way to make this task possible? Many thanks for the help. :) A: If I'm not mistaken, you can j...
{ "language": "en", "url": "https://stackoverflow.com/questions/340646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Actionscript - scroll through images left to right I have made a flash gallery that loads images from an xml file and fades them in and out. However I have been asked to make it so they fade in from left to right (i.e. hiding a bit of image while slowly revealing the whole image). Code is below: _root.onEnterFrame=f...
{ "language": "en", "url": "https://stackoverflow.com/questions/340651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should any domain object, not be serializable? Is there a way to just tell the compiler, that I want my objects to be serializable by default? A: Pretty much every serialization engine is going to want to know that your objects are suitable. This can take the form of: * *[Serializable]/ISerializable (BinaryForma...
{ "language": "en", "url": "https://stackoverflow.com/questions/340657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Display SVG gradients using Flash? I'm using AS3 (Flash) to read SVG files and display them. The problem is correctly displaying a linear/radial gradient. Following is an example of a simple linear gradient from Red to Blue, in SVG. <linearGradient id="GRADIENT_1" gradientUnits="userSpaceOnUse" x1="107.3938" y1="515...
{ "language": "en", "url": "https://stackoverflow.com/questions/340658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I debug with a single proc on a multi-proc system? My development machine is a quad core system, but I just ran into ( and I am still debugging ), and problem when my application is deployed to single processor systems. I get a dead lock. I would like to be able to debug using only a single processor, rather...
{ "language": "en", "url": "https://stackoverflow.com/questions/340662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Split EDMX for Entity Framework - Breakout object layer into separate files - possible? Is it possible to break out the partial classes in a split edmx's objectlayer.cs into a file per class? Thanks A: Most of the answers so far seem to be discussing splitting the EDMX into it's parts. It sounds from your question ...
{ "language": "en", "url": "https://stackoverflow.com/questions/340673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Roadblocks in creating a custom operating system It seems to me that the most common overly ambitious project that programmers (esp. Comp. Sci. grads) try to tackle is building your own operating system. (Trying to create your own programming language + compiler is probably even more common but not nearly as ambitio...
{ "language": "en", "url": "https://stackoverflow.com/questions/340674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Unable to load C++ DLL in C# application in Vista x64 I have a DLL written in C++ that needs to be used by an application in C#. It works great under Vista x86, but under x64 it fails to load. So I build an x64 version of the DLL and I detect whether the OS is x86 or x64 and use the appropriate interop call to the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/340687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }