text
stringlengths
8
267k
meta
dict
Q: Switch data templates at runtime – refresh problem I use MVVM architecture to decouple my application. That is, you often see something like var u = new UserControl(); u.Content = new MyCustomType(); // MyCustomType is not a control The UI is defined via data templates that reside in resource dictionaries in their ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: is combined generic bounds an anti pattern? as a follow up on my previous question Having a function with combined generic bounds such as: <T extends Foo & Bar> void doStuff(T argument) { //do stuff wich should only be done if arguments is both foo and bar } Because this is not castable from a unspecified object,...
{ "language": "en", "url": "https://stackoverflow.com/questions/320222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ensuring subprocesses are dead on exiting Python program Is there a way to ensure all created subprocess are dead at exit time of a Python program? By subprocess I mean those created with subprocess.Popen(). If not, should I iterate over all of the issuing kills and then kills -9? anything cleaner? A: Find out a so...
{ "language": "en", "url": "https://stackoverflow.com/questions/320232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: What do you do when you reach the end of an iteration and testing is not finished? We're experimenting with following an agile approach to software development where I work. It's working well so far, however, towards the end of the iteration, we had a problem with a build and it cost a day's worth of time fixing: t...
{ "language": "en", "url": "https://stackoverflow.com/questions/320234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unexpected data found error during BizTalk Simultaneous Receive I have a receive port with two FILE receive locations polling the same network share. The only difference between the receive locations is that they use a different file mask. They both use a custom pipeline with single Flat file disassembler component....
{ "language": "en", "url": "https://stackoverflow.com/questions/320243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Migration files Where can I download the rails migration file for country, state and city table A: Look for ISO 3166. The ISO lists are here. The country select is now outside of rails core in order to sidestep political issues (China - Taiwan and so forth) so you'll need a plugin, such as this one, to give you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sql - Using aggregate functions (min/max) as part of select statement I am trying to return the minimum and maximum prices for a villa booking system. I have a look up table that stores the price for each week for each villa. I am using the min and max functions to do this within the select but I'm having lots of p...
{ "language": "en", "url": "https://stackoverflow.com/questions/320250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Connect to Pick Database using Odbc C# .Net How to Connect to PickBasic database using Ole db driver .. I need it badly help me out A: I recently joined this company and i see they are using UniObjects.Net dll for interacting with this Data base Check it out its from IBM not sure about the performance though A: We...
{ "language": "en", "url": "https://stackoverflow.com/questions/320258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET Databinding ignores property change I have written a control in C# that derives from System.Windows.Forms.Control. I have added a property Selected to which I want to databind to a business entity using a BindingSource. I’ve implemented the PropertyNameChanged pattern by adding a SelectedChanged event that I fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/320261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript directory I have some javascript menu code that works just fine from a separate directory. But, when I try to call the same .js files from within the same directory, it won't see the files. The following works from another directory: script type="text/javascript"> var vbImgPath="../00-Menu-Files/" But, if...
{ "language": "en", "url": "https://stackoverflow.com/questions/320264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Html.ActionLink doesn’t render # properly When using Html.ActionLink passing a string containing the # char renders it like it is but if you UrlEncode it renders as %2523. I believe it's a bug. MVC Beta Release. Is it really a bug? http://example.com/test# is rendered as http://examplee.com/test%2523 instead of ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/320268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dot net assembly viewer? I have a dll that contains a dot net assembly - common intermediate language. The problem is that it's lacking documentation and I need to figure out the api like available classes, properties and methods, correct parameters to pass etc. Whats the best way to do this. I need some sort of vie...
{ "language": "en", "url": "https://stackoverflow.com/questions/320272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to disable Internet connection over ActiveSync? I am using standard 3G connection for video streaming. "Streaming Media" application works fine. However after I connect my WinMo 6.1 device to my laptop, it uses Internet connection over ActiveSync. And my laptop is behind firewall, etc. The video streaming stops...
{ "language": "en", "url": "https://stackoverflow.com/questions/320274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: threadPool.SetMaxThreads returning false My understanding of SetMaxThreads() in C# was that it can not be set to less than the number of processors. But in my code I am unable to set the number to less than 8, I have no idea why this is. If I set it to lower it returns false! (Running an Intel Core 2) A: I think I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Determine number of pages in a PDF file I need to determine the number of pages in a specified PDF file using C# code (.NET 2.0). The PDF file will be read from the file system, and not from an URL. Does anyone have any idea on how this could be done? Note: Adobe Acrobat Reader is installed on the PC where this c...
{ "language": "en", "url": "https://stackoverflow.com/questions/320281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: What is wrong with polling? I have heard a few developers recently say that they are simply polling stuff (databases, files, etc.) to determine when something has changed and then run a task, such as an import. I'm really against this idea and feel that utilising available technology such as Remoting, WCF, etc. woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/320284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: How can I set the order in which the designer sets values? I've made a custom control with values for start, current, and end times. The current time has to be between the start and end times, or else an exception is thrown. In the designer, I want to set new start, current and end times; and the new current time i...
{ "language": "en", "url": "https://stackoverflow.com/questions/320288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is a equivalent of Delphi FillChar in C#? What is the C# equivalent of Delphi's FillChar? A: I'm assuming you want to fill a byte array with zeros (as that's what FillChar is mostly used for in Delphi). .NET is guaranteed to initialize all the values in a byte array to zero on creation, so generally FillChar i...
{ "language": "en", "url": "https://stackoverflow.com/questions/320289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to post an array of complex objects with JSON, jQuery to ASP.NET MVC Controller? My current code looks like the following. How can I pass my array to the controller and what kind of parameters must my controller action accept? function getplaceholders() { var placeholders = $('.ui-sortable'); var result ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: How does Copy-local work? log4net.dll is not being copied to MyProject output directory I am wondering what copy-local=true for references exactly does. Does it copy the referenced assembly along with all of its dependencies to the output directory? My scenario is the following: I have a custom log wrapper that util...
{ "language": "en", "url": "https://stackoverflow.com/questions/320295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: How to limit number of rows returned from Oracle at the JDBC data source level? Is there a way to limit the rows returned at the Oracle datasource level in a Tomcat application? It seems maxRows is only available if you set it on the datasource in the Java code. Putting maxRows="2" on the datasource doesn't apply. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/320299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: echo "-e" doesn't print anything I'm using GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu). And this command: echo "-e" doesn't print anything. I guess this is because "-e" is one of a valid options of echo command because echo "-n" and echo "-E" (the other two options) also produce empty strings. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/320313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is there a quick way to generate a <%@Register...%> line for a user control? * *I make a user control and then want to include it on a page *I have to always manually type the @Register line at the top of my .aspx file, e.g. <%@ Register TagPrefix="edward" TagName="GetQuote" src="~/Controls/GetQuote.ascx" %> *...
{ "language": "en", "url": "https://stackoverflow.com/questions/320326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make log4perl output easier to read? When using log4perl, the debug log layout that I'm using is : log4perl.appender.D10.layout=PatternLayout log4perl.appender.D10.layout.ConversionPattern=%d [pid=%P] %p %F{1} (%L) %M %m%n log4perl.appender.D10.Filter = DebugAndUp This produces very verbose debug logs, fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/320330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Scriptmanager Asp.Net Mvc I'd like to have some of the ScriptManager features in the new Asp.net MVC model: 1- Script combining 2- Resolving different paths for external Javascript files 3- Minify and Gzip Compression Here is what I found, but I'm not sure is the best way for MVC approach. In general what is a goo...
{ "language": "en", "url": "https://stackoverflow.com/questions/320333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: HTML Email delivered as an attachment as well as the body? I have a piece of code which sends e-mails using a third party e-mail sending component. When the e-mails are delivered, the HTML which should be appearing in the body of the e-mail is also being added as an attachment with the filename ATT00001. I suspect t...
{ "language": "en", "url": "https://stackoverflow.com/questions/320335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: making a blog using php I am new to php and wanted to make a blog using php where every one can see the contents posted in the site but another administrator page should be there which can edit, add or delete posts How can i code a page like that? What are the logics required? A: no1: If you just need a blog softwa...
{ "language": "en", "url": "https://stackoverflow.com/questions/320339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can NovellAuthenticators (LDAP) be add to Weblogic using WLST Offline? I would like to create a WLST script to create my Weblogic domain. However I'm having problems adding the LDAP config. cd("/SecurityConfiguration/myDomain") cmo.createRealm("myrealm") cd("/SecurityConfiguration/myDomain/Realms/myrealm") cmo.crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/320355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Safe width in pixels for printing web pages? What is the safe width in pixels to print a web page? My page includes large images and I want to make sure they will not be cut of when printed. I know about different browser margins and US Letter / DIN A4 paper sizes. So we got standard letter sized and some default D...
{ "language": "en", "url": "https://stackoverflow.com/questions/320357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: are conversion operators only applicable to numeric types .net I was wondering whether overriding conversion operators is only applicable to numeric types? If not in what instances would the implicit or explicit conversion operator be applicable to other value types or reference types. An example would be great. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/320358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Google Maps Polyline speed in Internet Explorer Is there a way to speed up the rendering of Polylines in Google Maps when using Internet Explorer (7)? My map loads quickly in other browsers. I've encoded the Polylines as described here - http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/ and they are loade...
{ "language": "en", "url": "https://stackoverflow.com/questions/320359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to do cross-platform development with Visual Studio? We are developing a number of games on multiple paltforms (DS/Wii/Xbox 360/PS3/PC/PSP). Each has their own compiler/linker and debugger. We want to use Visual Studio as the IDE and to manage the build process but use the platform specific comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/320366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What set of build sounds do you use? Applications like CCTray allow one to specify a sound clip to indicate that a build is successful or that a build failed. I'm interested to hear what set of sounds different teams are using. Here are two sets that we use: * *Homer Simpson: "d'oh" for a build failure, "woohoo!"...
{ "language": "en", "url": "https://stackoverflow.com/questions/320374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: manipulating css layers with javascript I am wondering if it is possible to have a sort of thumbnail image gallery, in which clicking on a thumbnail would show the full image in a layer. I was wondering if it was possible to load all layers and respective images and use javascript to change the z index or something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Side effects in an iterator considered harmful? I've written my first C# iterator today. Woohoo. Interestingly, it has side effects. My iterator filters out invalid files from a directory and returns a sequence of valid files to process. Wheneve it encounters an invlaid file, it moves it to another directory. I trie...
{ "language": "en", "url": "https://stackoverflow.com/questions/320396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Analysis Services 2005 OLAP Cubes : Can I create a distinct count measure on a nvarchar column? I'm trying to create a cube with a single measure. This measure is a distinct count of a "name" column. The cube works perfectly if the measure is set to "count" type. However when I set distinct count I get this error: "...
{ "language": "en", "url": "https://stackoverflow.com/questions/320405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where can I find a Text-to-Speech component for delphi? I want to add text to speech user guided instruction to my applications. Where can I find a Text to speech component to do that. I do not want to use the Windows functions. A: Chant SpeechKit has everithing you need http://www.chant.net/Products/SpeechKit/Defa...
{ "language": "en", "url": "https://stackoverflow.com/questions/320415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SAFE Pointer to a pointer (well reference to a reference) in C# In a C# application I am working on I have a very long identifier as follows:- foo.bar.bwah.blah.whatever.very.very.huge Whenever I to reference this object it's an absolute nightmare, and unfortunately I do need to reference it a lot:- var something =...
{ "language": "en", "url": "https://stackoverflow.com/questions/320436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Directory/File Permission Issue I wrote code to set permission of the folder. Function I developed was public void SetPermission(string user,FileSystemRights rights) { DirectoryInfo dInfo = new DirectoryInfo(folderPath); DirectorySecurity oDirectorySecurity = new DirectorySecurity(); oDirectorySecurity....
{ "language": "en", "url": "https://stackoverflow.com/questions/320443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Overlapping matches in Regex I can't seem to find an answer to this problem, and I'm wondering if one exists. Simplified example: Consider a string "nnnn", where I want to find all matches of "nn" - but also those that overlap with each other. So the regex would provide the following 3 matches: * *nnnn *nnnn *n...
{ "language": "en", "url": "https://stackoverflow.com/questions/320448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: datatype supplied by user for SQL field I have a SQL table which has a number of fields ID | Value | Type A typical record may be :- 1000,10,[int] a second row may be:- 1001,foo,[string] a third row may be:- 1002,10/12/2008,[DateTime] I have been asked to look at this as at the moment, each time we wish to select fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/320452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why main() cannot be declared as a static in C? Why main must be declared as if it has external linkage? Why it should not be static? what is meant by external linkage?? A: The real starting point of the code is buried in the C runtime library. This runtime library calls your main() routine. In order for the linker...
{ "language": "en", "url": "https://stackoverflow.com/questions/320461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ASP.NET MVC validation and views I'm using MVC to validate some html text boxes on a page, for example in my controller there is if (String.IsNullOrEmpty(name)) { ModelState.AddModelError("name", "You must specify a name."); } if (ViewData.ModelState.IsValid) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the best cross-browser solution for browser based document signing (w/ digital signature)? I need to implement a browser based component (most likely java applet since it needs to be cross-browser) that will allow us to digitally sign and verify data in the XadES format. What options are available and what i...
{ "language": "en", "url": "https://stackoverflow.com/questions/320477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Threading, GetAvailableThreads() I have a threading issue, I'm setting the ThreadPool.SetMaxThreads(maxThreads, System.Environment.ProcessorCount) to 10. But when I check how many are avaliable ThreadPool.GetAvailableThreads() it says there are (maxThreads - 1) so 9, but then goes on to use 10 threads. Any ideas ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which is better apply two conditions in nested If or using single with And? Nested If or single if with And operator, which is better approach? Single If with And if (txtPackage.Text != string.Empty && txtPackage.Text == "abc") { // } Nested If if (txtPackage.Text != string.Empty) { if (txtPackage.Text == ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: AccessKey/Hotkey in custom textual MenuItem.Header possible? Is it possible to access the following formatted menu item like any other standard menu item (using the underscore-method, e.g. "_File" would be accessible by pressing "f")? I would like to use "O" as "access key" here. Unfortunately, <AccessText> does not...
{ "language": "en", "url": "https://stackoverflow.com/questions/320481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the good way to get messages from a specific facebook wall? There is a groupwall of which I want to download and store all messages in a db. In the documentation I cannot find a good way to do it. Did I miss something? What's the good way to do this? A: I'd be really surprised if they weren't available as an...
{ "language": "en", "url": "https://stackoverflow.com/questions/320482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WebResource Hell - resource cannot be found Marked a javascript file as "Embedded resource" Added WebResource attribute to my AssemblyInfo class Now i'm trying to output the embedded javascript to my master page. All I'm getting is a "Web Resource not found" from the web resource url. Project Assembly Name: CompanyP...
{ "language": "en", "url": "https://stackoverflow.com/questions/320484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Styling iPhone Flippable Preferences to look like System Settings When an iPhone application manages its own preferences, rather than using a bundle, it seems to be common practice to style that view to mimic the System Preferences app: fields are grouped by light rectangles with rounded edges; titles and explanator...
{ "language": "en", "url": "https://stackoverflow.com/questions/320485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Upgrading to Access 2007, Trust Center Issue Is there a way to automatically set Trust Center locations in a network environment when upgrading to Access 2007? A: You can use your Group Policy tools to force local and network locations. http://technet.microsoft.com/en-us/library/cc178948.aspx Note that if this fai...
{ "language": "en", "url": "https://stackoverflow.com/questions/320497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does binding in ActionScript work? As far as I understand, binding to a var in ActionScript is carried out via events which are automatically fired when a var is changed. I have a few questions about this: * *What happens if the class doesn't explicitly extend EventDispatcher? Is there is some sort of magic t...
{ "language": "en", "url": "https://stackoverflow.com/questions/320499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I generate a compiled lambda with method calls? I'm generating compiled getter methods at runtime for a given member. Right now, my code just assumes that the result of the getter method is a string (worked good for testing). However, I'd like to make this work with a custom converter class I've written, se...
{ "language": "en", "url": "https://stackoverflow.com/questions/320500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to sync your MAMP install across multiple Macs I have MAMP set up on my iMac and on my Macbook. I want to keep both installs synced using dropbox. When upgrading MAMP the only 2 folders you need to transfer are 'db' & 'htdocs'. My theory is then that these are the only 2 folders I need to keep in sync. Sound rig...
{ "language": "en", "url": "https://stackoverflow.com/questions/320501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: C++: how to create an array of objects on the stack? Consider the following piece of Java code. int N = 10; Object obj[] = new Object[N]; for (int i = 0; i < N; i++) { int capacity = 1000 * i; obj[i] = new ArrayList(capacity); } Because in Java, all objects live on the Heap, the array does not contain the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/320506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to open a Windows Explorer window from PowerShell? I'm sure this must be possible, but I can't find out how to do it. Any clues? A: Use: ii . which is short for Invoke-Item . It is one of the most common things I type at the PowerShell command line. A: Use any of these: * *start . *explorer ....
{ "language": "en", "url": "https://stackoverflow.com/questions/320509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "405" }
Q: Viewing contents of a .jar file What would be the easiest way to view classes, methods, properties, etc. inside a jar file? I'm looking for something equivalent to the very useful Lutz Roeder .NET Reflector - for Java A: Use WinRar. It will open the folder structure for you in intact manner. Also allows in-archiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/320510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "280" }
Q: Why has my App_Data/ASPNETDB.MDF file grown to 10MB? * *I created a protected folder on my ASP.NET site with the "ASP.NET Configuration" tool. *It made a database called App_Data/ASPNETDB.MDF where it stores one (1) user. *While uploading I noticed now that the database has grown to 10 MB and the .ldf file is 5 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asp loop hangs web site while running I have a loop on page to update an access database that takes 15-20 seconds to complete. I only run it once a month at most but I noticed that every time I run it the web site (IIS 6) simply stops serving pages. After the loop ends, pages begin opening again. Here's my code: For...
{ "language": "en", "url": "https://stackoverflow.com/questions/320523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Http Web Service Load Test I have a web service I'm trying to load test. I created a program that spawns threads to simulate multiple users connecting to the service and making a request. Each thread makes "some number" of requests before it dies. Each new request is made as soon as it is ready - there is little ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I simplify a basic arithmetic expression? How can I simplify a basic arithmetic expression? e.g. module ExprOps where simplify :: Expr -> Expr simplify (Plus(Var"x") (Const 0)) = Var "x" What do I have to do? module Expr where -- Variables are named by strings, assumed to be identifiers. type Variable =...
{ "language": "en", "url": "https://stackoverflow.com/questions/320532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Deserialization throws an exception for this bit of C# code Edit: Closing this because i've found the reason why it's erroring, but instead of removing this post .. i generate a newer post with a more refined question. Hi folks, i have some binary data i've read in. i wish to convert it to an System.Drawing.Image, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Basic question about jquery and .NET I want to make a page so I can select filters in a "jquery popup", but I don't know how to receive the results. Suppose I have a page with a ListView, and I want to select filters for it (perhaps with multiple selection from a list), so I make a different ASPX and open it using j...
{ "language": "en", "url": "https://stackoverflow.com/questions/320538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the path of a running JAR file? My code runs inside a JAR file, say foo.jar, and I need to know, in the code, in which folder the running foo.jar is. So, if foo.jar is in C:\FOO\, I want to get that path no matter what my current working directory is. A: For getting the path of running jar file I have st...
{ "language": "en", "url": "https://stackoverflow.com/questions/320542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "636" }
Q: capturing javascript events in c# I'm running google earth in a web browser that is embedded in a c# app. I have captured an event through javascript that fires when the user right clicks on the globe. How can I bubble an event to go from the javascript to c# so that it can be handled there? Thanks A: To raise an e...
{ "language": "en", "url": "https://stackoverflow.com/questions/320555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: modifying JavaScript rollover script I'm trying to implement this JavaScript code on blogspot (which parses XML code, some code works better than others) </head><body> <div class="navbar section" id="navbar"><div class="widget Navbar" id="Navbar1"><script type="text/javascript"> function setAttributeOnload(obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/320559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hibernate transform SQL to Criteria I 'd like to use Criteria for my SQL query. I have 3 tables "home", "person" and a third table "liveIn" for correspondance between home and person. My sql query is "select home.id from home, person, liveIn where home.country = 'Japan' and person.id = '15' and liveIn.Homeid = home....
{ "language": "en", "url": "https://stackoverflow.com/questions/320563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Algebraic types in haskell How can I simplify an expression using basic arithmetic? A: I'm not sure what you mean, but if you have an expression datatype you can define a recursive eval-function. In this case eval means simplify. For example, data Exp = Lit Int | Plus Exp Exp | Times Exp Exp eval...
{ "language": "en", "url": "https://stackoverflow.com/questions/320567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I force my SharePoint AjaxSmartPart to use the smaller "Release" mode javascript? I use ReturnOfSmartPart on WSS3 to display a ASCX in Sharepoint as a web part. This works beautifully. The only problem is that the AjaxSmartPart seems to be using the Debug mode javascript (the scripts are close to 1MB!) How c...
{ "language": "en", "url": "https://stackoverflow.com/questions/320571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Silly and frustrating cross browser UI issues Has anyone spent several hours to get the UI of their application render correctly in all the browsers? How do you tackle the frustration when simple styles tend to work in one browser but not others..and end of the day you invent the hack to handle it (in some cases tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/320575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best nntp to web gateway? My company uses usenet groups on an internal nntp server and I would like to add a web server to this that would allow the usual browsing and searching but in addition provide an archive of old messages that may have expired on the server. This is mainly for searching the archives so abilit...
{ "language": "en", "url": "https://stackoverflow.com/questions/320580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Interfaces with static fields in java for sharing 'constants' I'm looking at some open source Java projects to get into Java and notice a lot of them have some sort of 'constants' interface. For instance, processing.org has an interface called PConstants.java, and most other core classes implement this interface. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/320588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "118" }
Q: Regexps in Elisp to include newlines I'm trying to add a special markup to Python documentation strings in emacs (python-mode). Currently I'm able to extract a single line with: (font-lock-add-keywords 'python-mode '(("\\(\"\\{3\\}\\.+\"\\{3\\}\\)" 1 font-lock-doc-face prepend))) This works now: """Foo""" Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/320590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the purpose of a BPM in a purest architecture? I am putting together an architecture for a mid sized company who want to introduce a BPM (Business Process Management) tool. I understand that this would be helpful and want to introduce it but stuggle to find its appropriate place within the architecture. I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/320593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to automatically create a file with the latest compile time and include it into a library? I have a library consisting of approx 100 source files. I want one of the sources to be always rebuilt if any of the other files have been compiled but I don't want it built every time I run the make/build. Basically I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/320600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to resolve name collision when using c headers? I am currently doing some socket programming using C/C++. To be able to use a somewhat cleaner interface, and a more OO structure, I decided to write a few simple wrapper classes around parts of the C socket API, but while doing so I stumbled upon a problem: Given ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why jquery class selector select items that has part of the classname? if i have : <div class="carBig"></div> and <div class="car"></div> and $(".car").size(); i get 2 items .. A: What version of jquery are you using? Using this code: <html><head><title>Testing</title> <script type="text/javascript" src="/js/jque...
{ "language": "en", "url": "https://stackoverflow.com/questions/320629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get efficient Sql Server deadlock handling in C# with ADO? I have a class 'Database' that works as a wrapper for ADO.net. For instance, when I need to execute a procedure, I call Database.ExecuteProcedure(procedureName, parametersAndItsValues). We are experiencing serious problems with Deadlock situations in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Check status of process I want to programmatically verify the status of an application to see if it has crashed or stopped. I know how to see if the process exists in C# but can I also see if it is "Not responding"? A: Everything you need is in System.Diagnostics, for example: to check if a process is responding. u...
{ "language": "en", "url": "https://stackoverflow.com/questions/320645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I resolve synciwam.vbs error 1B6? I'm trying to migrate a website from Windows 2000 to Win2k3 using the IIS 6 Migration Tool. I'm getting a bunch of 404s on content. A popular theory is that my IWAM account is out of sync with the IIS metabase, and to run synciwam to fix it. However I'm getting this 1B6 er...
{ "language": "en", "url": "https://stackoverflow.com/questions/320654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flex mxml to as3, small class did i miss something? I was using an mxml class but since i need to pass some properties at construction time, to make it easier i will convert it to as3 code. The class is RectangleShape and it just draws a rectangle. Original mxml working <?xml version="1.0" encoding="utf-8"?> <BaseSh...
{ "language": "en", "url": "https://stackoverflow.com/questions/320659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server 2005 charindex performance I'm trying to run an update query that updates one table based on rows it finds in another table where a specific value exists anywhere in one of the remote table's column values. The query I'm using is: update c set LastStep = @StepNumber, LastDate = pv.Created fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/320671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I set the icon for my application in visual studio 2008? How do I set the executable icon for my C++ application in visual studio 2008? A: This is how you do it in Visual Studio 2010. Because it is finicky, this can be quite painful, actually, because you are trying to do something so incredibly simple, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Do I need to free Swing components before letting them get garbage collected? Wnen I use external resources such as files or DB connection I need to close them before I let them go. Do I need to do the same thing with Swing components ? If yes then how ? A: Normally, you don't need to dispose of objects when you ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/320682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Anyone know what an is? Does anyone know what an Optional SQL Explain flag is? A: Are you talkin about the -explain flag in Oracle SQLJ? :- -explain Flag to request "cause" and "action" information to be displayed with translator error messages.
{ "language": "en", "url": "https://stackoverflow.com/questions/320689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Attribute/element co-occurrence constraint in XML Schema Is it possible to create an XML Schema which imposes a co-occurrence constraint to an attribute/element pair? <primitive-list> <primitive name="P1"> <definition><!-- primitive specification --></definition> </primitive> <primitive name="P2"...
{ "language": "en", "url": "https://stackoverflow.com/questions/320692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can only the files that were modified in a range of SVN revisions be checked out? Is it possible to checkout only those files from a SVN repository that were modified in a revision or range of revisions, without checking out any files that were not modified? A: There is afaik now direct way to get just the cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/320693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do modern-day VisualStudio .NET projects still use Visual SourceSafe, or SVN? * *I'm getting back into .NET after numerous years in PHP/MySQL *back in 2002 on Microsoft projects we always used Visual SourceSafe and everyone hated it *in all my PHP/MySQL projects we used SVN and everyone loved it *in modern day ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET DLL hell I have third-party workflow software (Captaris Teamplate) that's referencing an assembly from my project that's referencing other assemblies from our project solution all through the GAC. When our application executes, it invokes a Captaris Teamplate method to create a workflow process which in tur...
{ "language": "en", "url": "https://stackoverflow.com/questions/320719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I find all paths through a set of given nodes in a DAG? I have a list of items (blue nodes below) which are categorized by the users of my application. The categories themselves can be grouped and categorized themselves. The resulting structure can be represented as a Directed Acyclic Graph (DAG) where the it...
{ "language": "en", "url": "https://stackoverflow.com/questions/320721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Visual C++ 'Force Includes' option I have just come across a Visual C++ option that allows you to force file(s) to be included - this came about when I was looking at some code that was missing a #include "StdAfx.h" on each .cpp file, but was actually doing so via this option. The option can be found on the Advanced...
{ "language": "en", "url": "https://stackoverflow.com/questions/320723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Oracle User Management Does anyone have experience working with Oracle User management? Any idea if it can be easily used to register users and roles into Oracle OID? And how I can use the defined roles in my application (i.e. should I hard code them)? A: I've asked several questions on this topic and have gotten l...
{ "language": "en", "url": "https://stackoverflow.com/questions/320725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are Apache httpd modules binary-backwards-compatible between versions? Can i (for example) use mod_proxy of version 2.2.10 with an otherwise unchanged 2.2.8 apache distribution under windows? A: I think the Apache module ABI is stable across the 2.2 releases, but I wouldn't swear to it. What happens if you try?
{ "language": "en", "url": "https://stackoverflow.com/questions/320732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sound disappearing in Flash 9 on non-IE browsers I'm working on a site (http://easy2speak.com) with about 10 flash SWFs on each page. Each of the SWFs are playing back a sound when clicked. Loading the sound, and playing it without any latency works fine, but in Flash player version 9 on all major browsers except IE...
{ "language": "en", "url": "https://stackoverflow.com/questions/320743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Synchronizing code with two subversion repositories A bit of background first: * *I am using "base" code from a remote SVN repository, not under my control. The code is not tagged (yet), so I always need to keep up with the trunk. *For a number of reasons (the most important being that our local extensions to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/320759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Windows 2003, IIS6 Webservice login troubleshoot Environment: win2003 running IIS6 serving asp pages that call delphi code. Delphi code contacts a c# webservice for which it needs to login (login.asmx). Webservice logs show login is successful. Debug results show that Context.User.Identity.IsAuthenticated returns...
{ "language": "en", "url": "https://stackoverflow.com/questions/320761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Elmah with jQuery? I am using jQuery to invoke page methods for my AJAX calls using $.Ajax. This works very well, and is very lightweight. However, I have noticed that when an exception is thrown from the .NET code, Elmah just logs it as a File Not Found exception, or will not log anything at all, rather than ...
{ "language": "en", "url": "https://stackoverflow.com/questions/320765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to catch exceptions from processes in C# I have an acceptance runner program here that looks something like this: public Result Run(CommandParser parser) { var result = new Result(); var watch = new Stopwatch(); watch.Start(); try { _testConsole.Start(); parser.ForEachInput...
{ "language": "en", "url": "https://stackoverflow.com/questions/320767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Actionscript - is it better to cast or create a new variable? Or does it matter at all? I find that in my daily Flex/Flash work, I do this number a lot: //Calling a function... MyCustomObject(container.getChildAt(i)).mySpecialFunction(); The question is - is this the best way to do this? Should I do this: //Callin...
{ "language": "en", "url": "https://stackoverflow.com/questions/320782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Good facelets resources? I've been working with JSF for some time, and been using the Apache-Trinidad tags. I like developing using this a lot but I keep hearing great things about facelets. Is anyone out there using it, and what exactly does it get you? I've looked at the facelets site (https://facelets.dev.java.n...
{ "language": "en", "url": "https://stackoverflow.com/questions/320796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }