text
stringlengths
8
267k
meta
dict
Q: Http Request - Bypass DNS [.Net] Is it possible (and if yes, how) to bypass DNS when doing a HTTP request ? I want to hit directly a front-end with an HTTP request, without getting through NLB but with the correct host header. As I have the IP of my server, I just need to bypass the DNS. I tried to use WebRequest, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can I modify Request.Form variables? I try Request.Form.Set(k, v) but it's throwing exception Collection is read-only A: This is exactly the same as modifying Request.Querystring. Both are internally complicated by private properties and what could be deemed a bug, however there are two possible solutions I'm aw...
{ "language": "en", "url": "https://stackoverflow.com/questions/323265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to generate PDF files with PHP? I have some HTML that includes bolding, italics, small tag, big tag, blockquote tag, bullets, and numbered items. I need to convert it to PDF via PHP. I tried FPDF, but it was entirely too complex. I tried the html2pdf PHP library, which uses FPDF, but it was very buggy and unreli...
{ "language": "en", "url": "https://stackoverflow.com/questions/323269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Draw graphs in VBscript I have a HTML application, partially HTML, partially VBscript, disguised as a form. What it does is it opens a few local files, runs a DOS box containing GAWK and presents a text file as its result. I wish to expand upon it by letting it create a bitmap image with the results in a stacked bar...
{ "language": "en", "url": "https://stackoverflow.com/questions/323271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how do i inherit/overwrite a forced style from a windows theme? currently i am forcing my WPF app to use the luna theme no matter what, with this XAML code <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles.xaml" /> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Splitting a string by space in C I'm working with C and through a socket I will be receiving a message with one space in it, I need to split the string into parts at the space. How would I go about doing this? A: If you own the string buffer, and know that it is safe to modify, you can use strtok_r() as people have...
{ "language": "en", "url": "https://stackoverflow.com/questions/323285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What should be stored in the database (RDBMS)? Are there any guidelines/best practices for deciding what type of data should be stored in the database? For ex., is it ok to use database to store * *Application logs *Configuration details (like server IP addresses etc.) *System information (e.g., names of shell...
{ "language": "en", "url": "https://stackoverflow.com/questions/323287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a way to tell whether two COM interface references point at the same instance? Given two interface references obtained from different sources. Is there a programmatic way to tell whether they're implemented by the same instance? A simple equality check of the interface references always fails. EDIT: Large ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I know if a control of a page made a Callback? I have an ASPX page and on this page I have a control that contains an AJAX UpdatePanel. When the control makes a callback my ASPX page's Page_Load event is triggered, but the Page.IsCallBack property is false. How do I know in the page's Page_Load event if there...
{ "language": "en", "url": "https://stackoverflow.com/questions/323293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Datatype of SUM result in MySQL I'm having a bit of a problem with converting the result of a MySQL query to a Java class when using SUM. When performing a simple SUM in MySQL SELECT SUM(price) FROM cakes WHERE ingredient = 'chocolate'; with price being an integer, it appears that the SUM sometimes returns a string...
{ "language": "en", "url": "https://stackoverflow.com/questions/323294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Designers to Developers-What should I know? This is a broad question, so let me narrow it a bit. I am a graphic designer entering the world of web design. I'm not totally green in this field, but I know enough to know that I have a lot to learn. From friends and from posts on this site I realize there is often a har...
{ "language": "en", "url": "https://stackoverflow.com/questions/323299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Crystal Reports 10 I am using Crystal Reports 10. In the report I have two prompts. How can I give this report to users such that they can enter the parameters on the web? Thx in advance, S.Gyazuddin A: If you're using the stand alone crystal reports designer you will need to deploy the report to a web reporting t...
{ "language": "en", "url": "https://stackoverflow.com/questions/323303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best way to convert Pascal Case to a sentence What is the best way to convert from Pascal Case (upper Camel Case) to a sentence. For example starting with "AwaitingFeedback" and converting that to "Awaiting feedback" C# preferable but I could convert it from Java or similar. A: public static string ToSentenceCase...
{ "language": "en", "url": "https://stackoverflow.com/questions/323314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: Can someone tell me what Strong typing and weak typing means and which one is better? Can someone tell me what Strong typing and weak typing means and which one is better? A: That'll be the theory answers taken care of, but the practice side seems to have been neglected... Strong-typing means that you can't use one...
{ "language": "en", "url": "https://stackoverflow.com/questions/323323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: IIS 6.0 wildcard mapping benchmarks? I'm quickly falling in love with ASP.NET MVC beta, and one of the things I've decided I won't sacrifice in deploying to my IIS 6 hosting environment is the extensionless URL. Therefore, I'm weighing the consideration of adding a wildcard mapping, but everything I read suggests a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Sorting the result of a stored procedure I'd like to sort on a column in the result of a stored procedure without having to add the Order By clause in the stored procedure. I don't want the data to be sorted after I have executed the query, sorting should be part of the query if possible. I have the following code: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MVC architecture question for Mac application I have a controller class from which I call a method of model class. Now from this model class method I want to update textView object which is a data member of controller class continuously. I have method in the controller class to edit this textView. I tried creating a...
{ "language": "en", "url": "https://stackoverflow.com/questions/323350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does HTTP use UDP? This might be a silly question: * *Does HTTP ever use the User Datagram Protocol? For example: If one is streaming MP3 or video using HTTP, does it internally use UDP for transport? A: If you are streaming an mp3 or video that may not necessarily be over HTTP, in fact I'd be suprised i...
{ "language": "en", "url": "https://stackoverflow.com/questions/323351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Export HTML to PDF (C++, Windows) I am looking for a redistributable component to convert HTML to PDF. I would - at the moment - like to avoid using a "PDF printer", as this requires a printer installation and some user "playing around" in the printers panel might break that feature. The HTML is available in a Brows...
{ "language": "en", "url": "https://stackoverflow.com/questions/323354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why do Test::Unit testcases start up so slowly? >rails -v Rails 1.2.6 >ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] When I run a test fixture (that tests a rails model class) like this, it takes 20-30 secs to start executing these tests (show the "Loaded suite..."). What gives? >ruby test\unit\categ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to make BEA Portal 9.2 close link and meta tags with '/>' so they are XHTML valid? I'm trying to make a BEA Portal website XHTML compliant, because this has been written in the contract with the client, and I'm stuck on this problem: BEA renders <meta> and <link> tags without the closing slash, i.e. <...
{ "language": "en", "url": "https://stackoverflow.com/questions/323367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get the current state of a thread (e.g. blocking, suspended, running, etc..) in win32? I couldn't find a documented API that yields this information. A friend suggested I use NtQuerySystemInformation. After looking it up, the information is there (see SYSTEM_THREAD ) but it is undocumented, and not very ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/323370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET Webmail Engine A friend of mine asked me today if there is any open-source or commercially available Webmail/Email "engine". When I asked her what she meant by engine, I got a list of features her boss asked for - * *Web interface to login & access e-mails *Ability to send/receive/forward e-mails using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing the StartPoint/EndPoint of a LinearGradient brush in Expression Blend UI Seems like as really simple thing to do, but I just can't track it down in the help or online. I know how to change the XAML to set the StartPoint and EndPoint of a LinearGradient brush, but I don't know how you do it using the IDE in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any have a Visual Studio shortcut/macro for toggling break on handled/unhandled exceptions? I've been trying to write a macro do do the equivalent of * *Hitting Ctrl+Alt+E to bring up the Exceptions window *Toggling the textbox in the 'thrown' column for 'Common Language Runtime Exceptions' *Hitting OK If I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Win XP msvcrt crashes Do any one know why an application that always ran on Windows XP now suddenly crashes the msvcrt.dll? There were only minor changes made to the threading classes, which was done under Vista in VC++ 6. For all our libraries to work we are Dynamically linking to the MFC dlls. A newer version of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: File path as MVC route argument Part of my application maps resources stored in a number of locations onto web URLs like this: http://servername/files/path/to/my/resource/ The resources location is modelled after file paths and as a result there can be an unlimited level of nesting. Is it possible to construct an M...
{ "language": "en", "url": "https://stackoverflow.com/questions/323397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Mounting a folder as a device in Finder using Cocoa Is there a way to mount a folder on the hard disk as a device in Finder. The intend here is to provide the user with an easy way to get to a folder that my application uses to store data. I don't want my user to go searching for data in Application Data. I would ra...
{ "language": "en", "url": "https://stackoverflow.com/questions/323403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Subversion with AD Groups with Linux? I try to migrate a Windows SVN Server to Linux. I have configured Apache to validate against AD for Useraccess so only AD Users can logon. Now i have to set permissions for repositories with authz files. When i set permission with AD username it works, but AD groups it doesn't. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the Magic Behind Escape(\) Character How does the C/C++ compiler manipulate the escape character ["\"] in source code? How is compiler grammar written for processing that character? What does the compiler do after encountering that character? A: An interesting note on this subject is On Trusting Trust [PDF l...
{ "language": "en", "url": "https://stackoverflow.com/questions/323407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a way to check the SQL generated by ADO.NET methods without resorting DB tracing/profiling? I want to test that application A (legacy) and application B (current) are sending the same SQL to the database. Is there an easy way to check the generated SQL? I'm not too concerned with minor syntax differences. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bugzilla or Mantis? As the title says, I'm starting one project right now, and trying to layout the infrastructure for the project (SVN, Email, Bug tracking, Online Forums, etc...) So, Bugzilla or Mantis? A: Mantis is great and very easy to setup I have been using it for about 3 years It has the following problems....
{ "language": "en", "url": "https://stackoverflow.com/questions/323411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: Handling very large strings between SQL Server and .NET code +LINQ I have an app that needs to handle very large strings between a SQL Server database and .NET code. I have a LINQ query that generates the strings when saving them to the database, but when trying to create the strings from the database, the app crash...
{ "language": "en", "url": "https://stackoverflow.com/questions/323413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best way to present a menu in your application? What do you think is the best way to present a hierarchical list of functionality to users within your traditional WinForms application? (A menu system - Assume functionality can be split into a small number of modules and sub-modules but with no fixed dept...
{ "language": "en", "url": "https://stackoverflow.com/questions/323417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simple script to count NLOC? Do you know a simple script to count NLOCs (netto lines of code). The script should count lines of C Code. It should not count empty lines or lines with just braces. But it doesn't need to be overly exact either. A: I would do that using awk & cpp (preprocessor) & wc . awk removes all b...
{ "language": "en", "url": "https://stackoverflow.com/questions/323419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: py2exe fails to generate an executable I am using python 2.6 on XP. I have just installed py2exe, and I can successfully create a simple hello.exe from a hello.py. However, when I try using py2exe on my real program, py2exe produces a few information messages but fails to generate anything in the dist folder. My s...
{ "language": "en", "url": "https://stackoverflow.com/questions/323424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: Windows Command Line: Non Evaluation of Environment Variable I would like to provide the raw text referring to an environment variable to a command instead of evaluating the environment variable. I need this to configure BizTalk from the command line, for example: BTSTask.exe AddResource -ApplicationName:App1 -Type...
{ "language": "en", "url": "https://stackoverflow.com/questions/323426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does Apache log cancelled downloads? If a user requests a large file from an Apache web server, but cancels the download before it completes, is this logged by Apache? Can I tell from the log file which responses were not sent fully, and how many bytes were sent? A: Yes, it logs those requests, but you need to use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to model a Bayesian network or, more generally, a directed weighted graph, in SQL? I found a few articles online providing examples of how to model graphs of various kinds (DAGs, in particular) in SQL, but they all seemed enormously complex, given the relative simplicity of what they're modeling. Is there a best...
{ "language": "en", "url": "https://stackoverflow.com/questions/323456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: ASP.NET MVC OutputCache doesn't work for root URI I'm learning ASP.NET MVC and bugged by one issue. In the HomeController, the Index action has OutputCache attribute, but it seems doesn't work. [HandleError] public class HomeController : Controller { [OutputCache(Duration=5, VaryByParam="none")] public Actio...
{ "language": "en", "url": "https://stackoverflow.com/questions/323458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Apache beehive and localizing default pager for DataGrid I am trying to localize strings created by Apache Beehive and netui default pager. I'd like to translate language of this output. Page 1 of 3 First / Previous Next / Last My .jsp code looks something like this <netui-data:dataGrid name="searchResultsGrid"...
{ "language": "en", "url": "https://stackoverflow.com/questions/323461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Subversion auto-props woes This is driving me nuts so any advice from fellow users would be welcome. I am using Subversion, with a copy of VisualSVN 1.6.1 installed on a Windows server. On my PC I am using a combination of TortoiseSVN and the wonderful AnkhSVN Visual Studio plugin. Everything works like a dream, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: backgroundrb thread_pool.defer method logger output goes to where? It seems like due to the threading issue logger.warn (thats what I tested) doesn't generate any output? my code is similar to this: def deliver(args) logger.info "delivery start" thread_pool.defer(:deliver_deferred, args) logger.info "delivery ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: J2EE eclipse file uploading project requires refresh on package explorer before server register new file? I am using struts to build an image uploading module. However, I am encountering the problem of user not able to see the file they upload until I manually refresh the package explorer on eclipse. Any one know ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/323473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Clipboard appears not to be working, and is inaccessible from code or windows My clipboard seems to be 'stuck' - after some time of usage of my machine it simply stops working - any software trying to access it sticks or throws an exception on Ctrl + C or Ctrl + V. The problem persists when I try to access it throug...
{ "language": "en", "url": "https://stackoverflow.com/questions/323485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make it impossible for users to remove web parts/zones? In Sharepoint, is it possible to deny regular users the possibility of removing web parts and/or web part zones? If yes; how? A: The options to deny users from closing/moving a web part are in the 'Advanced' section of the web part's tool pane in sharepoint (A...
{ "language": "en", "url": "https://stackoverflow.com/questions/323492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server: Modifying the "Application Name" property for auditing purposes As we do not implement the users of our applications as users in SQL server, when the application server connects to a database each application always uses the same credentials to attach to each database. This presents an auditing problem. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Recursion algorithm to generate sitemap I've got a DataTable containing a sitemap hierarchy with the following columns: * *ItemId *ParentId *Name *Url I need to generate a set of nested lists in HTML (left the anchor elements out for clarity): <ul> <li>Item 1</li> <li>Item 2</li> <ul> <li>Sub Item 1<...
{ "language": "en", "url": "https://stackoverflow.com/questions/323503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SqlServer 2000 compatibility The developer environment db server is SqlServer 2005 (developer edition) Is there any way to make sure my SQL Queries will run in SqlServer 2000? This database is set to Compatibility level "SQL Server 2000 (80)" but some queries that run without problems in the development system can n...
{ "language": "en", "url": "https://stackoverflow.com/questions/323506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get the name of an open file? I'm trying to store in a variable the name of the current file that I've opened from a folder. How can I do that? I've tried cwd = os.getcwd() but this only gives me the path of the folder, and I need to store the name of the opened file. Can you please help me? A: One more usef...
{ "language": "en", "url": "https://stackoverflow.com/questions/323515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Is there an equivalent for var_dump (PHP) in Javascript? We need to see what methods/fields an object has in Javascript. A: You want to see the entire object (all nested levels of objects and variables inside it) in JSON form. JSON stands for JavaScript Object Notation, and printing out a JSON string of your object...
{ "language": "en", "url": "https://stackoverflow.com/questions/323517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "265" }
Q: dynamic construction of checkboxes in a asp:table problem with events I'm currently dynamically building an asp:table which contains checkboxes these checkboxes have a CheckChanged event as an auto postback. v_articleCheckBox.CheckedChanged += new EventHandler(v_articleCheckBox_CheckedChanged); I am storing the che...
{ "language": "en", "url": "https://stackoverflow.com/questions/323519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lucene.Net and Geosearch - is it outthere somewhere? I've found an interesting article about Lucene and geosearching: http://sujitpal.blogspot.com/2008/02/spatial-search-with-lucene.html Is there an equivilant .NET implementation out there that I have been unable to find or do I have to rework the Java-code in his e...
{ "language": "en", "url": "https://stackoverflow.com/questions/323520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using mercurial and beyond compare 3(bc3) as the diff tool? in windows I am able to use winmerge as the external diff tool for hg using mercurial.ini,etc. Using some options switch that you can find in web(I think it's a japanese website) Anyway, here for example: hg winmerge -r1 -r2 will list file(s) change(s) b...
{ "language": "en", "url": "https://stackoverflow.com/questions/323521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: jQuery $.ajaxSend() settings.data is null I found strange bug (maybe). When I send parameters to $.ajax in a form of hash, and tried to check that params in $.ajaxSend, I found that settings.data is null, settings.url was normal with parameters included. Then I look inside jQuery code, and found that data erased. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VMWare ESX image to run on VMWare workstation I've an linux image(debian) running on VMWare ESX 3.1. Is it possible to copy that image and run it locally on my local VMWare workstation? how? A: Just open up the VI client, shut down the VM, browse to the datastore and then download the image. Pretty straightforward ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET How to get List of Groups in Active Directory How can I get a full list of Groups in my Active Directory? A: Check out System.DirectoryServices (An ASP.NET 2.0 reference): C#-example to get groups: using System.DirectoryServices; public class test { private void main() { foreach (string...
{ "language": "en", "url": "https://stackoverflow.com/questions/323536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Binding Converter and multibinding I want to create 4 rectangles stacked to one row. |----|--|------|------------| The width of every rectangle is binded to value in %. I decided to group rectangles to horizontal StackPanel. To calculate the width of the rectangle I want to write convertor. What I don't know is how...
{ "language": "en", "url": "https://stackoverflow.com/questions/323547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTP Bad Request error when requesting a WCF service contract I have a WCF service with the following configuration: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="MetadataEnabled"> <serviceDebug includeExceptionDetailInFaults="true" /> <s...
{ "language": "en", "url": "https://stackoverflow.com/questions/323551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: resharper export todo list I have resharper installed and I use the todo list functionality pretty often. My question is, apart from doing a screenshot of the list is there a way to export the current list and so I can email it or communicate it to developers. Am not using team system and so cannot propogate changes...
{ "language": "en", "url": "https://stackoverflow.com/questions/323552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it safe to remove and reassign events this way? If not, why? A.Event1 := nil; A.Event2 := nil; try ... finally A.Event1 := MyEvent1; A.Event2 := MyEvent2; end; Can something go wrong with it? EDIT: I've accepted Barry's answer because it answered exactly what I asked, but Vegar's answer is also correct dep...
{ "language": "en", "url": "https://stackoverflow.com/questions/323556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Generic ThreadPool in .NET Here's a relatively common task for me, and, I think, for many a .NET programmer: I want to use the .NET ThreadPool for scheduling worker threads that need to process a given type of tasks. As a refresher, the signatures for the queueing method of the ThreadPool and its associated delegate...
{ "language": "en", "url": "https://stackoverflow.com/questions/323558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why does every build change the exe-file? Building the same project (without any changes) produces binary different exe-files: some small regions of them are different. Empty project, version information (and auto-increment on every build) is turned off. Why it happens? And is it possible to make delphi produce bina...
{ "language": "en", "url": "https://stackoverflow.com/questions/323560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Force re-cache of WSDL in php I know how to disable WSDL-cache in PHP, but what about force a re-caching of the WSDL? This is what i tried: I run my code with caching set to disabled, and the new methods showed up as espected. Then I activated caching, but of some reason my old non-working wsdl showed up again. So:...
{ "language": "en", "url": "https://stackoverflow.com/questions/323561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Compiler warning: null reference exception I have the following code in Visual Studio 2005. Dim OutFile As System.IO.StreamWriter Try OutFile = New System.IO.StreamWriter(Filename) // Do stuff with OutFile Catch Ex As Exception // Handle Exception Finally If OutFile IsNot...
{ "language": "en", "url": "https://stackoverflow.com/questions/323562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Querying data from Oracle database using java servlet with Netbeans From index.jsp code, statement.executeQuery("select * from fus where tester_num like 'hf60' ") ; Example I want "hf60" to be a variable(userinput), wherein USER must input/write data from input text then submit and get the data so that the result...
{ "language": "en", "url": "https://stackoverflow.com/questions/323567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP MVC Routing with > 1 parameter I have the following route defined routes.MapRoute( "ItemName", "{controller}/{action}/{projectName}/{name}", new { controller = "Home", action = "Index", name = "", projectName = "" } ); This route actually works, so if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IIS7 shows welcome screen in Firefox, Internet Explorer works correctly Has anyone encountered the following problem: I have IIS7 running on my computer. On that same computer, I open IE7 and the website works (http://localhost/web.site/Default.aspx). Put that same url in Firefox 3 and I get the welcome screen of II...
{ "language": "en", "url": "https://stackoverflow.com/questions/323580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Eclipse (pydev): Is it possible to assign a shortcut to send selection to the python console? Question so easy that fitted in the title :) Eclipse (pydev): Is it possible to assign a shortcut to send selection to the python console? A: You can only assign shortcuts to "actions". Actions bound to buttons (for exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/323581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there an easy way to model a heart shape in 3D? I want to model a heart shape in 3D with as little code needed as possible and without using external model files. In 2D, I can use some Bézier curves to draw a heart shape, and I could extrude this to get a simple 3D heart shape, but this doesn't look like the shap...
{ "language": "en", "url": "https://stackoverflow.com/questions/323584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF Chunking / Streaming I'm using WCF and want to upload a large file from the client to the server. I have investigated and decided to follow the chunking approach outlined at http://msdn.microsoft.com/en-us/library/aa717050.aspx However, this approach (just like streaming) restricts the contract to limited method...
{ "language": "en", "url": "https://stackoverflow.com/questions/323585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Test deployment for Sharepoint by multiple developers on a single server We are starting with Sharepoint development with a team of three and are currently setting up our development environments. We would like to avoid installing a Server 2008 for each developer, thus a single terminal server has been setup, using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to position two divs horizontally within another div I haven't played with CSS for too long a time and am without references at the moment. My question should be fairly easy but googling isn't bringing up a sufficient answer. So, adding to the collective knowledge... |#header-------------------------------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/323599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: On K.I.S.S and paving cowpaths I'm currently developing a PHP application that's using an Access database as a backend. Not by choice you understand... the database is what the client used originally and using it is part of the requirements. One of the problems with this database is that the column names have the mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/323603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What are important points when designing a (binary) file format? When designing a file format for recording binary data, what attributes would you think the format should have? So far, I've come up with the following important points: * *have some "magic bytes" at the beginning, to be able to recognize the files ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How to get list of all domains in Active Directory using C# Can anyone please help me to get all the domains in Active Directory. I have tried many times, but all the programs are listing only the current working domain. How can I do this? A: I had some issues getting LeeMobile's code to work in my case bacause it...
{ "language": "en", "url": "https://stackoverflow.com/questions/323608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Signaling validation errors in assigning a virtual attribute? This is a Rails/ActiveRecord question. I have a model which basically has to represent events or performances. Each event has many attributions: an attribution is basically something like "In this event, Person X had Role Y". I concluded that the best way...
{ "language": "en", "url": "https://stackoverflow.com/questions/323610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Heterogeneous Dictionary, but typed? This is more of an academic inquiry than a practical question. Are there any language or framework features that can, or will in future, allow a heterogeneous typed dcitionary, e.g. myDict.Add("Name", "Bill"); myDict.Add("Height", 1.2); where myDict now contains not two obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/323613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Modifying an application's web.config file in NLB cluster I would like to know what would be the impact of modifying web.config file while an ASP.NET application is running. Here's my exact scenario. I have two hosts running the same application on IIS6. Both hosts have the exact same machine.config files, meaning ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Unable to find httpd.conf for Tomcat 5.5.27 I need to configure Tomcat 5.5.27 for disabling weak ciphers, ServerSignature and AuthType but I am unable to find the httpd.conf file. Please let me know about this. Thanks in advance.. A: Tomcat doesn't use httpd.conf, it is not apache. Instead, take a look at conf fold...
{ "language": "en", "url": "https://stackoverflow.com/questions/323626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Continue on error in loop The loop below is callign a proc that does various 'things' If it should throw an exception it also 'raises' it. I want to catch it and ignore it and allow the loop to continue processing the next value in the array. Thanks WHILE indx IS NOT NULL LOOP table_dump_csv(tableList(indx), t...
{ "language": "en", "url": "https://stackoverflow.com/questions/323629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I convert a C# string value to an escaped string literal? In C#, can I convert a string value to a string literal, the way I would see it in code? I would like to replace tabs, newlines, etc. with their escape sequences. If this code: Console.WriteLine(someString); produces: Hello World! I want this code: Cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/323640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "220" }
Q: HTML form submission in Opera The HTML form shown below does not work as expected in Opera (Version: 9.52). The form does not have an onsubmit attribute nor does it have an input element with type=submit. It just has two input elements of type=button and both of them onclick calls a js method where I want the user t...
{ "language": "en", "url": "https://stackoverflow.com/questions/323648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: variable not being passed? I have this code while($row = mysql_fetch_row($result)) { echo '<tr>'; $pk = $row[0]['ARTICLE_NO']; foreach($row as $key => $value) { echo '<td><a href="#" onclick="GetAuctionData(\''.$pk.'\')">' . $value . '</a></td>'; } which gets pk. pk is then passed on to the axjax part with this: f...
{ "language": "en", "url": "https://stackoverflow.com/questions/323650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible / how to get number of a particular Facebook Group members (even if number of them is 500+)? I need to monitor number of the facebook group users and display it on the website. I know that it is possible to get User IDs using their API, but they are limited to 500 only (if the total number of members ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is There A Way to Use Overrideable Behaviour in a Call to a Base Class Constructor? The title is a bit abstract so maybe it is easier to explain with a specific example: I find it useful to have my exception classes take an enum parameter instead of a string message. throw new SpecificException(SpecificExceptionCod...
{ "language": "en", "url": "https://stackoverflow.com/questions/323668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python list slice syntax used for no obvious reason I occasionally see the list slice syntax used in Python code like this: newList = oldList[:] Surely this is just the same as: newList = oldList Or am I missing something? A: [:] Shallow copies the list, making a copy of the list structure containing references t...
{ "language": "en", "url": "https://stackoverflow.com/questions/323689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Hibernate and Oracle native functions I have an entity that maps to an external oracle table which is one of the primary data sources of my application. This entity is modelled using hibernate. The oracle table now has a complex function defined the calculates some special values. I need to call this function someho...
{ "language": "en", "url": "https://stackoverflow.com/questions/323690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET and long running background threads - how do they mix? In a ASP.NET application that I am writing I need to use connections to a specific server (something like a DB but... different). The connections are quite expensive to establish (a few seconds, literally) so I'm trying to write a pool to improve scalabi...
{ "language": "en", "url": "https://stackoverflow.com/questions/323693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Auto-update web application I'm in a very bad situation: I need to maintain asp.net web application hosted in an environment on which I don't have any access. For every small intervention I need to go personally which includes checking procedures since it'as a government agency. I was wondering if there is some wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/323696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regular expression to match a string (1+ characters) that does NOT end in .ext (extension) I need to test a url that it does not end with .asp So test, test.html and test.aspx should match, but test.asp should not match. Normally you'd test if the url does end with .asp and negate the fact that it matched using the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Techniques For Distributing ASP.NET User Controls Across Projects Distributing ASP.NET user controls across different projects can be really useful when you want to create a library of controls that can be used by different projects. Unfortunately, to my knowledge, ASP.NET (2.0 at least) doesn't support this very cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/323702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: "Cannot call methods on DateTime", and other limitations Does anyone know of a definitive list of LINQ to SQL query limitations that are not trapped at compile time, along with (where possible) workarounds for the limitations? The list we have so far is: * *Calling methods such as .Date on DateTime * *no worka...
{ "language": "en", "url": "https://stackoverflow.com/questions/323704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: ASP.Net: Users are logged out when deploying a new file to the server Everytime I upload a file to my ASP.NET site, all users are logged out (aka, I guess their session become invalidated). Is there any way to "hotswap" the code in ASP.NET so that this doesn't happen? Compile before deploying etc. My deployment me...
{ "language": "en", "url": "https://stackoverflow.com/questions/323710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sql query causing error 2950 This SQL query was generated by Microsoft Access 2003, and works fine when run, but fails when trying to run from a Macro. Is there any obvious error within the query, or any reason it would not work? SELECT tblAuction.article_no, tblAuction.article_name, tblAuction.subtitle, tblAuction....
{ "language": "en", "url": "https://stackoverflow.com/questions/323711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Warning signs to look for in a potential customer? I have seen a few questions about how to interview potential employees and employers, but this is something fairly important that I've come across in the past and I'm sure a lot of other users here will have too: If you are running a small development company, consu...
{ "language": "en", "url": "https://stackoverflow.com/questions/323738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: native iPhone database, all data on iPhone Is it possible to make a big 50MB database native on the iPhone? So that it can be searched very quickly in a smart way? With SQlite? A: Yes, you can use SQLite on the iPhone. Since the database is just a file, you can add the 50 MB file to your application, and that's i...
{ "language": "en", "url": "https://stackoverflow.com/questions/323739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What could go wrong if I convert ANSI encoded files to UTF-8? I have an existing ASP.NET 2.0 website, stored in Team Foundation Server 2005. Some of the pages/controls are encoded as ANSI (according to Notepad++) and the Content-Type header is set to: <meta http-equiv="Content-Type" content="text/html; charset=windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/323741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drawing stuff on winform, Format32bppRgb or Format24bppRgb or something else? Which one would you use to draw stuff on a winform? Format32bppRgb or Format24bppRgb or something else? in any .net version Format24bppRgb Specifies that the format is 24 bits per pixel; 8 bits each are used for the red, green, and blue co...
{ "language": "en", "url": "https://stackoverflow.com/questions/323742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loading ASP.NET User Controls By Type And Passing Parameters? Possible Duplicate: Asp.net Usercontrol LoadControl Issue In ASP.NET 2.0 it is my understanding that although the API existed for loading a user control by type, it didn't actually work. Or at least I never managed to get it to work, and I know from b...
{ "language": "en", "url": "https://stackoverflow.com/questions/323745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }