text
stringlengths
8
267k
meta
dict
Q: Bring Windows Mobile 6 forms into the front I have problems with bringing a windows mobile 6 form to the front. I tried things like this already Form1 testForm = new Form1(); testForm.Show(); testForm.BringToFront(); testForm.Focus(); But it's always behind the form that includes that code. The only things that hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/280406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you find the caller function? Closed as exact duplicate of "How can I find the method that called the current method?" Is this possible with c#? void main() { Hello(); } void Hello() { // how do you find out the caller is function 'main'? } A: From here: System.Diagnostics.StackTrace st = new System.D...
{ "language": "en", "url": "https://stackoverflow.com/questions/280413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Getting a download prompt due to response mixed up from two requests I have 4 iframes in my page whose src's change as I scroll down my web page. The faster I scroll the src's change more frequently. If I scroll fast enough I get a download prompt in FF. The downloaded file contains garbled text followed by http re...
{ "language": "en", "url": "https://stackoverflow.com/questions/280414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: multiple mysql_real_query() in while loop It seems that when I have one mysql_real_query() function in a continuous while loop, the query will get executed OK. However, if multiple mysql_real_query() are inside the while loop, one right after the other. Depending on the query, sometimes neither the first query nor ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HttpHandler response is never returned We've got a fairly complex httphandler for handling images. Basically it streams any part of the image at any size that is requested. Some clients use this handler without any problems. But we've got one location that gives us problems, and now it also gives problems on my deve...
{ "language": "en", "url": "https://stackoverflow.com/questions/280426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Keyboard up and down arrows I have one autocomplete search, in which by typing few characters it will show all the names, which matches the entered character. I am populating this data in the jsp using DIV tag, by using mouse I'm able to select the names. But I want to select the names in the DIV tag to be selected ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Escaping regex string I want to use input from a user as a regex pattern for a search over some text. It works, but how I can handle cases where user puts characters that have meaning in regex? For example, the user wants to search for Word (s): regex engine will take the (s) as a group. I want it to treat it like...
{ "language": "en", "url": "https://stackoverflow.com/questions/280435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "328" }
Q: What's a good directory structure for large C#/C++ solutions? How would you lay out the directory structure for a large C# solution, consisting of perhaps 20 to 30 projects, mostly C# but some C++? Where do you put external dependencies? When creating a branch in source control, do you branch absolutely everything? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Refactoring solution needed I have a page on which I must load controls dynamically based on the user selection. Let's say that I have something like this: public static readonly Dictionary<string, string> DynamicControls = new Dictionary<string, string> { { "UserCtrl1", "~/Controls/UserCtrl1.as...
{ "language": "en", "url": "https://stackoverflow.com/questions/280449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Persistent database connections in fastcgi I'm porting an application from php to fastcgi (c). My host runs apache. Since the fastcgi app would be running in a loop, I could open a mysql connection, and leave it open for all incoming requests. Is this recommended? I think I've read about an equal number of opinions ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I calculate a fair overall game score based on a variable number of matches? I have a game in which you can score from -40 to +40 on each match. Users are allowed to play any number of matches. I want to calculate a total score that implicitly takes into account the number of matches played. Calculating only...
{ "language": "en", "url": "https://stackoverflow.com/questions/280457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I renew my expired ClickOnce certificate? I need to make some changes to a ClickOnce application that I haven't touched for over a year and therefore the certificate has expired. I've read that publishing with a new certificate will make the application fail, because it will be signed with a different key. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/280472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: _CRT_DEBUGGER_HOOK throws exception I'm having a problem converting my program from VS2005 to VS2008. When I run the program in VS2008, the application starts up fine but when start playing around with the application it crashes giving me this error: "Microsoft Visual Studio C Runtime Library has detected a fatal er...
{ "language": "en", "url": "https://stackoverflow.com/questions/280477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Enabling/Disabling Aero from a Windows Service I have some code to enable/disable the Windows Aero service in Vista, and I would like to run it in a Windows Service. The code works in a standalone application, but when I run it from a Service, nothing happens. No errors or exceptions are thrown. I realise that runni...
{ "language": "en", "url": "https://stackoverflow.com/questions/280480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I rename a DLL but still allow the EXE to find it? We have a DLL which is produced in house, and for which we have the associated static LIB of stubs. We also have an EXE which uses this DLL using the simple method of statically linking to the DLL's LIB file (ie, not manually using LoadLibrary). When we deplo...
{ "language": "en", "url": "https://stackoverflow.com/questions/280485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How do I convert mod_rewrite (QSA option) to Nginx equivalent? I'm looking to convert the following mod_rewrite rule to the Nginx equivalent: RewriteRule ^foo/(.*)$ /bar/index.php?title=$1 [PT,L,QSA] RewriteRule ^foo/*$ /bar/index.php [L,QSA] So far I have: rewrite ^foo/(.*)$ /bar/index.php?title=$1&$query_string l...
{ "language": "en", "url": "https://stackoverflow.com/questions/280488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to create forms in Microsoft Sharepoint? Hi I want to create form on my site, which is run using Micrsoft Sharepoint. A: there are multiple ways to create/use forms in SharePoint. You can do this by * *implementing a web part *designing/implementing an aspx page *using InfoPath To decide which option ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: mysql recursive update I have two mysql tables, one containing details on cars and one containing all the possible models of the cars, as such: cars: car_id model [more details] models: model_id model_name Now, my problem is that the model details stored in the 'cars' table is the model_name, rather tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/280491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to minus instead of add in a Sum() like sql function I have a group by clause in a sql statement and need to use an aggregate function to minus all the values in each group instead of adding like the Sum() function. i.e. SELECT Sum(A) FROM ( SELECT 2 AS A UNION SELECT 1) AS t1 ..so will evaluate 2+1...
{ "language": "en", "url": "https://stackoverflow.com/questions/280494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why to Use Explicit Interface Implementation To Invoke a Protected Method? When browsing ASP.NET MVC source code in codeplex, I found it is common to have a class explicitly implementing interface. The explicitly implemented method/property then invoke another "protected virtual" method/property with same name. For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Order of controls in a form's Control property in C# I am having a peculiar problem with the order in which FlowLayoutPanels are added in to the form's controls property. This is what I tried, I added 7 FlowLayoutPanels in to a C# window application from left to right in vertical strips. Then I tagged the flow layou...
{ "language": "en", "url": "https://stackoverflow.com/questions/280497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MySQL collations not working as advertised in documentation I'm trying to get my MySQL table to behave as the utf8 table in Example 2 from this MySQL Reference page: CREATE TABLE germanutf8 (c CHAR(10)) CHARACTER SET utf8 COLLATE utf8_unicode_ci; INSERT INTO germanutf8 VALUES ('Bar'), ('Bär'); SELECT * FROM germanut...
{ "language": "en", "url": "https://stackoverflow.com/questions/280508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are there any books on the principles behind ORMs? There are a few books about specific ORM products such as Hibernate or Linq to SQL, but I would be quite interested in any material on the more general principles, history etc of ORM. Do you know of any books, white papers, well researched blog posts etc on this top...
{ "language": "en", "url": "https://stackoverflow.com/questions/280511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Queue using table I need to implement a queue using table. The business requirement is to have a single queue which will be accessed by 5-10 boxes to get the next job/jobs. There will not be more than 5000 jobs per day. Also, a batch of jobs should be "dequeued" at one time. Just wondering what are the problem area...
{ "language": "en", "url": "https://stackoverflow.com/questions/280515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Batch script for re-creating database from source control As far as I understand, if I want to get my database under source control then I need to be checking in change scripts for each change and then running them from some revision to get the correct DB. I am trying to make a batch file that will be checked in too...
{ "language": "en", "url": "https://stackoverflow.com/questions/280539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Meta data driven generation with XSLT I'm regularly creating an XSD schema by transforming a proprietary data model of a legacy system. This works out pretty good. However, the legacy system only allows me to specify very basic attributes of a parameter, such as the data type (int, string etc.). I would like to enha...
{ "language": "en", "url": "https://stackoverflow.com/questions/280542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fetching 'action_name' or 'controller' from helper spec Let's say that I have the following code in application_helper.rb: def do_something if action_name == 'index' 'do' else 'dont' end end which will do something if called within index action. Q: How do I rewrite the helper spec for this in application_...
{ "language": "en", "url": "https://stackoverflow.com/questions/280548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: flash fscommands and javascript I try get the mp3 flash player to work with my javascript on all browsers. All went well for first, but fast realized that my code doesn't work on MSIE. After trying to find out I found this in the reference code: <!--[if IE]> <script type="text/javascript" event="FSCommand(command,a...
{ "language": "en", "url": "https://stackoverflow.com/questions/280551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get cmd line build command for VS solution? This is probably easy but I am getting stuck: when I build a solution in Visual Studio - how do extract the exact cmd line for the current build command in order to be able to do the same build from VisualStudio console? In the output window I can see the single pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/280559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Is NetBiscuits any good? Has anybody got any real world stories build mobile web sites with NetBiscuits? Someone told me it was the next big thing in mobile development (http://www.netbiscuits.com/home) and it looks pretty good from their site. Just wondered if anybody (besides them) has actually used it. A: From a...
{ "language": "en", "url": "https://stackoverflow.com/questions/280563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run once a day in C# Is there any clever method out there to make my executeEveryDayMethod() execute once a day, without having to involve the Windows TaskScheduler? A: If the time when it is run is not relevant and can be reset each time the program starts you can just set a timer, which is the easiest thing to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/280566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: how to control popen stdin, stdout, stderr redirection? I am confused about how popen() redirects stdin, stdout and stderr of the child process in unix. The man page on popen() is not very clear in this regard. The call FILE *p = popen("/usr/bin/foo", "w"); forks a child process and executes a shell with arguments ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Window handle debugging in Winforms I have a user that keeps getting this error. Is there a tool that does window handle counting that i can use to figure out why he keeps getting this error. System.ComponentModel.Win32Exception: Error creating window handle. at System.Windows.Forms.NativeWindow.CreateHandle(Cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/280573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to work with an interface dynamically loaded from an assembly and invoke its members I have got some code to load an assembly and get all types, which implement a certain interface, like this (assume asm is a valid and loaded assembly). var results = from type in asm.GetTypes() where typeof(IServiceJob).IsAssi...
{ "language": "en", "url": "https://stackoverflow.com/questions/280578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I pass a value from a child back to the parent form? How do I pass a value from a child back to the parent form? I have a string that I would like to pass back to the parent. I launched the child using: FormOptions formOptions = new FormOptions(); formOptions.ShowDialog(); A: Create a property (or method) o...
{ "language": "en", "url": "https://stackoverflow.com/questions/280579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Problem with date day/month reversing on save We have a problem affecting the production environment only. We have a VB6/ASP website that allows for data in a database table to be hand edited. It looks alot like an editable datagrid. One of the editable columns is a date and when the record is saved dates day/month ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java File.canWrite() on Vista and super hidden files I have some code that effectively does this : File file = new File("C:\\Program Files (x86)\\Something\\fred.txt"); System.out.println("file.canWrite() = " + file.canWrite()); It prints true. Now the odd thing is, I can create the file without any exceptions. Fur...
{ "language": "en", "url": "https://stackoverflow.com/questions/280600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I preview a Windows Media Encoder session in WPF? This code works in a windows forms application (it shows the preview) but not in a WPF application. WMEncoder _encoder; WMEncDataView _preview; _encoder = new WMEncoder(); IWMEncSourceGroupCollection SrcGrpColl = _encoder.SourceGroupCollection; IWMEncSourceGr...
{ "language": "en", "url": "https://stackoverflow.com/questions/280604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Which is faster - C# unsafe code or raw C++ I'm writing an image processing program to perform real time processing of video frames. It's in C# using the Emgu.CV library (C#) that wraps the OpenCV library dll (unmanaged C++). Now I have to write my own special algorithm and it needs to be as fast as possible. Which...
{ "language": "en", "url": "https://stackoverflow.com/questions/280624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: how to pass an event from a child object in a generic list to the parent? here is my example code: Public Class Parent Private _TestProperty As String Private WithEvents _Child As IList(Of Child) Public Property Test() As String Get Return _TestProperty End Get Set(By...
{ "language": "en", "url": "https://stackoverflow.com/questions/280629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is the current level of XHTML support in browsers and search engine spiders? Ignoring the IE case, are there any other browsers that can't understand the application/xhtml+xml content type? And what about the search engine spiders? I could not find any answers on the web that would not be a few years old and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/280632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: endsWith in JavaScript How can I check if a string ends with a particular character in JavaScript? Example: I have a string var str = "mystring#"; I want to know if that string is ending with #. How can I check it? * *Is there a endsWith() method in JavaScript? *One solution I have is take the length of the st...
{ "language": "en", "url": "https://stackoverflow.com/questions/280634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1141" }
Q: Measuring Testability of C# code Having come across a link on stack overflow, I have found the writings of Miško Hevery very engaging reading. So good that I am seeing a new approach to what I previously thought I was doing quite well. He talks mainly about Dependency Injection, Automated Unit Testing and Good Desig...
{ "language": "en", "url": "https://stackoverflow.com/questions/280645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why can't I store boost::function in std::list? I get the following compilation error: error: expected `;' before 'it'" Here's my code: #include <boost/function.hpp> #include <list> template< class T > void example() { std::list< boost::function<T ()> >::iterator it; } Why does this happen? How can I fix it? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where does '.' and '..' come from? What's the story behind our massive repitition of ./foo and cd ... Where do these two . and .. come from? Where could they be seen as a way of navigating a file system tree for the first time? A: I'm sorry I can't answer properly, but I can recommend these links: * *The Evoluti...
{ "language": "en", "url": "https://stackoverflow.com/questions/280656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Can I detect animated gifs using php and gd? I'm currently running into some issues resizing images using GD. Everything works fine until i want to resize an animated gif, which delivers the first frame on a black background. I've tried using getimagesize but that only gives me dimensions and nothing to distinguish ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: The best way to import(merge)-export java db database I have let's say two pc's.PC-a and PC-b which both have the same application installed with java db support.I want from time to time to copy the data from the database on PC-a to database to PC-b and vice-versa so the two PC's to have the same data all the time. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Random image picker PHP $images = array(); $images[0][0] = "boxes/blue.jpg"; $images[0][1] = "blah.html"; $images[1][0] = "boxes/green.jpg"; $images[1][1] = "blah.html"; $images[2][0] = "boxes/orange.jpg"; $images[2][1] = "blah.html"; $images[3][0] = "boxes/pink.jpg"; $images[3][1] = "blah.html"; $images[4][0] = "bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/280680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Samples for Domain Driven Design (esp .NET focused) Ok so I've ordered Applying Domain-Driven Design and Patterns: Using .Net, but while I wait for it to arrive I'm looking at starting to apply the techniques in my current project. I really grasp the concepts quite well now, but when I try to apply them I get caught...
{ "language": "en", "url": "https://stackoverflow.com/questions/280681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Size of uploaded file Do web browsers send the file size in the http header when uploading a file to the server? And if that is the case, then, is it possible to refuse the file just by reading the header and not wait for the whole upload process to finish? A: EDIT : before going too far, you may want to check this...
{ "language": "en", "url": "https://stackoverflow.com/questions/280684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Changing tables rows to links I am trying to change the rows output by PHP in a table to links. I have added the a href tags to the example below, however it results in an unexpected T_VARIABLE. I have tried it without the extra quotes, but this displays a blank table. I am not sure what the flaw in the logic is. wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/280687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Alternative to HttpListener? I'm developing an application that is so far using HttpListener to provide a small standalone http server. However, I've recently discovered that HttpListener needs to be run as Administrator, which is not always going to be possible. What would the best alternative be? I need http GET a...
{ "language": "en", "url": "https://stackoverflow.com/questions/280690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can I validate within an InfoPath form whether a user exists within a SharePoint Portal? I am creating a form within InfoPath which is to be integrated into a SharePoint 2007 Portal. Within this form there will be a textfield into which a user can enter the Name of a Person. How can I validate whether this Pers...
{ "language": "en", "url": "https://stackoverflow.com/questions/280692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java: Immutable to Immutable Conversions I've been thinking of ways of providing syntactic sugar for a framework I have been working on. I want to deal with Immitable objects exclusively. Say I have an immutable object and wish to create a modified version of it. Would, in your view, a non-instantiable class with a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I use Unicode-aware regular expressions in JavaScript? There should be something akin to \w that can match any code-point in Letters or Marks category (not just the ASCII ones), and hopefully have filters like [[P*]] for punctuation, etc. A: Personally, I would rather not install another library just to get...
{ "language": "en", "url": "https://stackoverflow.com/questions/280712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "251" }
Q: Elements order in a "for (… in …)" loop Does the "for…in" loop in Javascript loop through the hashtables/elements in the order they are declared? Is there a browser which doesn't do it in order? The object I wish to use will be declared once and will never be modified. Suppose I have: var myObject = { A: "Hello", B:...
{ "language": "en", "url": "https://stackoverflow.com/questions/280713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "228" }
Q: Access Get parameter with a scriptlet I hava a url such as search.do?offset=20 offset sometimes is in the url sometimes not. When it is not in the URL i want it to be 0. i try, without success, to retrieve the value with a scriptlet as follows: <% Integer offset = (pageContext.findAttribute("offset")==null) ? new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Nested Datalists using stored procedure parameters I'm working with some nested datalist controls and cannot get the SP parameters for my nested stored procedure to work. In debug I can see that SqlDataSource2.SelectParameters.Add("Section",oLabel.Text.ToString()); is getting the correct value from the label but wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/280725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Write data from Access to Excel file I am trying to use the following code to write data into an excel file Dim objexcel As Excel.Application Dim wbexcel As Excel.Workbook Dim wbExists As Boolean Set objexcel = CreateObject("excel.Application") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I automatically fail a nant build if NDepend query raises a warning OK first some background. I am busy automating our build process. We run a mixture of Vs 2005 and VS 2008 both targeting platform 2.0. We use Nant to do our builds using the MSBUILD task to do the compile and Cruise Control .net to do our C...
{ "language": "en", "url": "https://stackoverflow.com/questions/280730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add a dependency to a arbitrary file to a T4 template? I have a T4 template that generates classes from an xml file. How can I add a dependency between the xml file and the template file so that when the xml file is modified the template is rerun automatically without choosing "Run custom tool" from the cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/280748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Getting the SourceDir property from a C# custom action I have some directories that are bundled with my installer and I need to access them from within a custom action. I have done some research and seen that the SourceDir can be used to obtain the currently executing dir location. However I cannot find any exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/280749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best practice for "Copy Local" and with project references? I have a large c# solution file (~100 projects), and I am trying to improve build times. I think that "Copy Local" is wasteful in many cases for us, but I am wondering about best practices. In our .sln, we have application A depending on assemb...
{ "language": "en", "url": "https://stackoverflow.com/questions/280751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "164" }
Q: What's the best design in .NET to use for sending data over an unreliable (3G) network connection? I'm re-designing an app I inherited that sends digital photos from a laptop to a web server. The idea is to take photos "out on the field" and have them instantly published on a web page (with some more fancy features)...
{ "language": "en", "url": "https://stackoverflow.com/questions/280755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: jQuery validate: How to add a rule for regular expression validation? I am using the jQuery validation plugin. Great stuff! I want to migrate my existing ASP.NET solution to use jQuery instead of the ASP.NET validators. I am missing a replacement for the regular expression validator. I want to be able to do somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/280759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "253" }
Q: definition of filename? After years of programming it's still some of the simple things that keep tripping me up. Is there a commonly agreed definition of filename ? Even the wikipedia article confuses the two interpretations. It starts by defining it as 'a special kind of string used to uniquely identify a file sto...
{ "language": "en", "url": "https://stackoverflow.com/questions/280767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Retrive Records Form One Table as long as they do not exist in Another table T-SQL Possible Duplicate: What's the difference between NOT EXISTS vs. NOT IN vs. LEFT JOIN WHERE IS NULL? I need to wite a query that will retrieve the records from Table A , provided that the key in Table A does not exist in Table B. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/280769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Programmatically suppressing AutoPlay for mass storage devices I need to suppress autoplay for the mass storage devices. This needs to be achieved programatically through a service/deamon running in the background. I know it can be done by an application which opens a window and handles the "queryCancelAutoPlay" mes...
{ "language": "en", "url": "https://stackoverflow.com/questions/280787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do modify the look and feel of a Sharepoint site? I somehow got lumbered with deploying SharePoint at work. I hate it, even the simplest things seem to be unnecessarily difficult. I've seen a few resources scattered around, but they all seem to stop short of helping me really take control of the css. Can someone...
{ "language": "en", "url": "https://stackoverflow.com/questions/280789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Case insensitive string replacement in JavaScript? I need to highlight, case insensitively, given keywords in a JavaScript string. For example: * *highlight("foobar Foo bar FOO", "foo") should return "<b>foo</b>bar <b>Foo</b> bar <b>FOO</b>" I need the code to work for any keyword, and therefore using a hardcoded...
{ "language": "en", "url": "https://stackoverflow.com/questions/280793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Calculate poisson probability percentage When you use the POISSON function in Excel (or in OpenOffice Calc), it takes two arguments: * *an integer *an 'average' number and returns a float. In Python (I tried RandomArray and NumPy) it returns an array of random poisson numbers. What I really want is the percent...
{ "language": "en", "url": "https://stackoverflow.com/questions/280797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is there a way to bind an array to mysqli prepare I'm trying to make a class that will execute any one of a number of stored procedures with any amount of variables Im using php and mysqli * *My class enumerates an array and constructs a string based on the number of elements if any *giving something like this C...
{ "language": "en", "url": "https://stackoverflow.com/questions/280798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ruby scripting on Windows Possible Duplicate: What Ruby IDE do you prefer? I'm making a simple script using ruby on a Windows 2003 Server. My questions are: * *How can I connect to a database through ODBC? I will be connecting to both Sybase on Solaris and MSSQL Server. *How can I send emails through an Exch...
{ "language": "en", "url": "https://stackoverflow.com/questions/280801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: API for getting screen region changes? I am writing a sort of screen-recording app for Windows and wish to know when and which regions of the screen/active window have changed. Is there a Windows API I can hook to get notified of screen changes? Or would I need to manually write something like this? :( I always figu...
{ "language": "en", "url": "https://stackoverflow.com/questions/280808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to convert HTML page to image format in ASP.Net How to convert HTML page to image format in a web application? A: If you are trying to be able to create an image out of a web page dynamically in an ASP.NET application, you can try using ABC PDF. We've had really good luck using their product and it is pretty r...
{ "language": "en", "url": "https://stackoverflow.com/questions/280817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Enumerating Windows/Controls of another application from .Net I'm developing a small utility application that needs to detect whether another one has one of its MDI child windows open (it's an off-the-shelf Win32 business application over which I have neither source code nor control). From my app, I would like to b...
{ "language": "en", "url": "https://stackoverflow.com/questions/280818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WCF - How do I encrypt messages? My WCF service involves the sending of a dataset (in csv format) data between client and service. This dataset must be encrypted so that the data cannot be intercepted. I'm using wshttpbinding and trying to encrypt the message by using the following settings in web.config: <wsHttpBin...
{ "language": "en", "url": "https://stackoverflow.com/questions/280819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SQL statement from two tables I would like to know if it is possible, to select certain columns from one table, and another column from a second table, which would relate to a non imported column in the first table. I have to obtain this data from access, and do not know if this is possible with Access, or SQL in ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/280834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best Algorithm for key/value pair where key is an int64 in Delphi, pre Delphi 2009? I need an algorithm to store a key/value pair, where the key is an Int64. I'm currently using a sorted IntList (same as a TStringList, but stores int64s). This gives me O(log n) for search, Insert and delete operations. Since I don't...
{ "language": "en", "url": "https://stackoverflow.com/questions/280838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nested Applications with ASP.NET MVC I'm currently working on an asp.net-mvc content management system. It would be incredibly useful to be able to deploy nested applications e.g. /shop to have a separate app inside. Or even another instance of the cms. I've found some information around talking about limiting the i...
{ "language": "en", "url": "https://stackoverflow.com/questions/280839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Float Left 100% height div - gap between divs Mark Up <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="Zuhaib.test" %> <!-- Put IE into quirks mode --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/280846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Open Source Web Service/WCF media streamer Does anyone know of an open source web service/wcf service that can stream media content to clients? In particular I am looking for something that could access my music collection and stream it to a client (could be a client browser, win mobile app or even iphone applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/280864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best way to get the last non-empty worksheet I'm trying to write a vba macro for a group tha * *has one workbook where they daily create new worksheets, and also have *Sheet 1, Sheet 2 and Sheet 3 at the end of their long list of sheets. I need to create a external cell reference in a new column in a differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/280872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there an exchange format for ERD? Is there a way to exchange ERD diagram from one tool to other as XMI exists for exchanging UML documents? A: The closest thing I am aware of to this is the Common Warehouse Metamodel (CWM), which has support from some tool vendors. The official specification lives Here. Data m...
{ "language": "en", "url": "https://stackoverflow.com/questions/280874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I determine which version of IE a user is running in JavaScript? In some existing code there is a test to see if the user is running IE, by checking if the object Browser.Engine.trident is defined and returns true. But how can I determine if the user is running IE6 (or earlier) or IE7 (or later)? The test is...
{ "language": "en", "url": "https://stackoverflow.com/questions/280879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Make user control display outside of form boundry I've decided to reimplement the datetime picker, as a standard datetime picker isn't nullable. The user wants to start with a blank field and type (not select) the date. I've created a user control to do just that, but if the user control is near the edge of the form...
{ "language": "en", "url": "https://stackoverflow.com/questions/280891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: What embedded HTTP server library options should I look at? I'm looking to write a small proxy server for kicks and giggles. Apart from the options in libWWW, can anyone recommend any opensource options for the HTTP server and client code? Thinking of a library of some kind similar to libWWW. Chosen language is C/C+...
{ "language": "en", "url": "https://stackoverflow.com/questions/280892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: automatically convert access db I have an access database, with a query made. I need to automate it so that each night this query can run and export to a tab delimited csv file. It is not possible to export a query to a csv file from within access. My question is, are there any tools that can select certain tables, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Haven't jumped on the Linq bandwagon, what are your reasons for not using linq? I seem to be in the minority, but to be honest I am not comfortable with linq and don't see any benefits in my personal development (not to say there are no benefits, just a personal opinion based on my situation). I build web applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/280896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Trigger to fire only if a condition is met in SQL Server I hope this is a simple enough question for any SQL people out there... We have a table which hold system configuration data, and this is tied to a history table via triggers so we can track who changed what, and when. I have a requirement to add another val...
{ "language": "en", "url": "https://stackoverflow.com/questions/280904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: How to set CPU affinity for a process from C or C++ in Linux? Is there a programmatic method to set CPU affinity for a process in c/c++ for the Linux operating system? A: I have done many effort to realize what is happening so I add this answer for helping people like me(I use gcc compiler in linux mint) #include <...
{ "language": "en", "url": "https://stackoverflow.com/questions/280909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: How to combine a photo and sound file to an video file which is acceptiable on youtube? I'd like to combine a photo and some sound file together and upload to youtube, not sure how to do it. Any suggestion will be greatly helpful. Thanks. A: In my opinion on windows the free Movie Maker is the best solution for sma...
{ "language": "en", "url": "https://stackoverflow.com/questions/280913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ROLAP not working - how to design the cube/DSV for ROLAP? I'm trying to configure storage mode ROLAP for a partition in an existing SSAS cube. The cube is a little messy in that the measure group is defined by a named query (as opposed to a table) and the dimensions are defined in several different data source views...
{ "language": "en", "url": "https://stackoverflow.com/questions/280914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Finding out if LDAP user in Sun Directory Server 5.2 is locked out, in Java I'm developing an application using Java, Tomcat, Spring Framework and Spring LDAP 1.2.1 for LDAP access. According to our LDAP administrator, it is not possible to find out programmatically, if a specific user is locked out in the directory...
{ "language": "en", "url": "https://stackoverflow.com/questions/280922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to validate an ASP password login form? I have an ADO.Net login form as my frontend, and I want to check if the username and password input from the user matches the correct values in the database. How can I accomplish this as easily as possible? By the way, my user information table in the database is called Lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/280923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to script a standard Linux build? I'm going to rebuild my Linux box [yet] again. I have to create a few user groups, user accounts and install my standard packages. Until now I've just used the GUI tools. I was wondering if anyone has any recommendations on writing a script to create users, groups and install...
{ "language": "en", "url": "https://stackoverflow.com/questions/280938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling a C function with a varargs argument dynamically I am programming in C against a third party library (in HP/Mercury Loadrunner) that allows a varargs-style variable size argument list for one of it's functions. I want to call this function but I do not know up front how many arguments I will have. There is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/280940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: DataGridView Column sorting with Business Objects I am setting-up my DataGridView like this: jobs = new List<DisplayJob>(); uxJobList.AutoGenerateColumns = false; jobListBindingSource.DataSource = jobs; uxJobList.DataSource = jobListBindingSource; int newColumn; newC...
{ "language": "en", "url": "https://stackoverflow.com/questions/280948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why does my web part throw an error about "NT Authority/Anonymous User"? My Sharepoint 2007 web part executes code to start a K2 workflow process. The workflow server resides on another server. When my code executes, I get the following error: "24408 K2:NT AUTHORITY\ANONYMOUS LOGON from 172.172.172.172:1721 does not...
{ "language": "en", "url": "https://stackoverflow.com/questions/280951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AddressOf alternative in C# Could anyboby help me with the alternative solution in C# regarding AddressOf operator in VB6? AddressOf returns a long value. What way can I get the output in C#? A: C# has special syntax for assigning functions to delegates/events. Just use <delegate> += <function>; If you're actually...
{ "language": "en", "url": "https://stackoverflow.com/questions/280953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }