text
stringlengths
8
267k
meta
dict
Q: MDI child form problem in C# When I maximize 1 MDI child form, all MDI child forms would be maximized too. Is it possible to have 1 form maximized and another one not? Thanks in advance. A: A maximized MDI child form should occupy the entire child area and so the state of the other children should not really matter...
{ "language": "en", "url": "https://stackoverflow.com/questions/308401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How Can I Find Out *HOW* My Site Was Hacked? How Do I Find Site Vulnerabilities? One of my custom developed ASP.NET sites was hacked today: "Hacked By Swan (Please Stop Wars !.. )" It is using ASP.NET and SQL Server 2005 and IIS 6.0 and Windows 2003 server. I am not using Ajax and I think I am using stored procedur...
{ "language": "en", "url": "https://stackoverflow.com/questions/308406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Jquery - How do I fix this Image Rollover? Hi Guys I have this little Jquery script: link text $(document).ready(function() { $('#image p').hide(); $('img').hover(function() { $('#image p').show(200); }, function() { $('#image p').hide(200); }); }); I...
{ "language": "en", "url": "https://stackoverflow.com/questions/308411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does my Perl script remove characters from the file? I have some issue with a Perl script. It modifies the content of a file, then reopen it to write it, and in the process some characters are lost. All words starting with '%' are deleted from the file. That's pretty annoying because the % expressions are variab...
{ "language": "en", "url": "https://stackoverflow.com/questions/308417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What datatype to use? I need a collection that * *contains a set of objects linked to a double. *The sequence of these pairs should be arbitrary set by me (based on an int I get from the database) and be static throughout the lifecycle. *The number of entries will be small (0 ~ 20) but varying. *The collectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/308427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why can't maven find a plugin? If I type the command: mvn dependency:list The docs suggest that I'll get a list of my project's dependencies. Instead though, I get this: [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] ----------------------------------------------------------- [ERROR] BUILD...
{ "language": "en", "url": "https://stackoverflow.com/questions/308428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Log4Net: Programmatically specify multiple loggers (with multiple file appenders) How to (programmatically, without xml config) configure multiple loggers with Log4Net? I need them to write to different files. A: This thread at the log4net Dashboard details an approach. To summarize a little, hopefully without rip...
{ "language": "en", "url": "https://stackoverflow.com/questions/308436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Searching through a string trying to find ' in PHP I am using tinyMCE and, rather annoyingly, it replaces all of my apostrophes with their HTML numeric equivalent. Now most of the time this isn't a problem but for some reason I am having a problem storing the apostrophe replacement. So i have to search through the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/308438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: sp_trace_setfilter column datatypes Anyone know where i can find a list of the columns for setting the trace filter, i know the system id number as i got this off of MSDN but i need the list with all of the data types but i cant seem to find it anywhere... A: They are listed in the BooksOnline on the sp_ trace_sete...
{ "language": "en", "url": "https://stackoverflow.com/questions/308442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Netbeans or Eclipse for C++? I'm currently working on a pet project and need to do C++ development on Windows, Mac, Linux, and Solaris, and I've narrowed it down to Netbeans and Eclipse, so I was wonderig which is more solid as a C++ editor. I just need solid editing, good autocompletion for templated code ad extern...
{ "language": "en", "url": "https://stackoverflow.com/questions/308450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: vim BufEnter autocmd fails on ftp files I have an auto command triggered off BufEnter in my .vimrc to cd into the current buffer directory (very useful) au BufEnter * execute ":lcd " . expand("%:p:h") The problem is this fails on FTP files (as you might expect). The real problem is the error message telling me ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Difference between web reference and service reference? What is the difference between web reference and service reference in WCF? Which is preferable in WCF? A: Service references deal with endpoints and bindings, which are completely configurable. They let you point your client proxy to a WCF via any transport p...
{ "language": "en", "url": "https://stackoverflow.com/questions/308454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "137" }
Q: Are inline queries a bad idea? I have a table containing the runtimes for generators on different sites, and I want to select the most recent entry for each site. Each generator is run once or twice a week. I have a query that will do this, but I wonder if it's the best option. I can't help thinking that using WHE...
{ "language": "en", "url": "https://stackoverflow.com/questions/308456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Do you use Template Method Pattern in programming languages with closures/delegates/function pointers? I have been going back and forth between C# and Java for the last 8 years. One thing that strikes me is that I have completely stopped using the "Template Method" design pattern in C#. Actually, in C# I Have come ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to modify or delete items from an enumerable collection while iterating through it in C# I have to delete some rows from a data table. I've heard that it is not ok to change a collection while iterating through it. So instead of a for loop in which I check if a row meets the demands for deletion and then mark it...
{ "language": "en", "url": "https://stackoverflow.com/questions/308466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Fastest way to find out whether two ICollection collections contain the same objects What is the fastest way to find out whether two ICollection<T> collections contain precisely the same entries? Brute force is clear, I was wondering if there is a more elegant method. We are using C# 2.0, so no extension methods if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C++ Smart Pointer performance How much do using smart pointers, particularly boost::shared_ptr cost more compared to bare pointers in terms of time and memory? Is using bare pointers better for performance intensive parts of gaming/embedded systems? Would you recommend using bare pointers or smart pointers for perfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/308477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Reasons for rejecting iPhone application by Apple store Can anybody help me out to know the possible reasons for which Apple store can reject or raise objection to submit any iPhone application. A: Here are possible reasons (unofficial, from here): * *Vibration. It is not permitted to use continuous vibration i...
{ "language": "en", "url": "https://stackoverflow.com/questions/308479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Writing the F# recursive folder visitor in C# - seq vs IEnumerable I often use this recursive 'visitor' in F# let rec visitor dir filter= seq { yield! Directory.GetFiles(dir, filter) for subdir in Directory.GetDirectories(dir) do yield! visitor subdir filter} Recently I've started working on impleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/308481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Show progress of Mercurial push/pull Is it possible to get Mercurial to show progress of long-running push or pull operation? Google tells me basically "no", but does somebody know better? I was expecting something like hg pull -v... A: Mercurial 3.5 has progress enabled by default. Earlier versions can use the sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/308491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Howto check for existing aggregate functions in Postgres? In Postgresql you can create additional Aggregate Functions with CREATE AGGREGATE name(...); But this gives an error if the aggregate already exists inside the database, so how can I check if a Aggregate already exists in the Postgres Database? A: SELECT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Float a div right, without impacting on design I want to float a div to the right at the top of my page. It contains a 50px square image, but currently it impacts on the layout of the top 50px on the page. Currently its: <div style="float: right;"> ... </div> I tried z-index as I thought that would be the answer,...
{ "language": "en", "url": "https://stackoverflow.com/questions/308499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Password checking in dojo I want to check that two passwords are the same using Dojo. Here is the HTML I have: <form id="form" action="." dojoType="dijit.form.Form" /> <p>Password: <input type="password" name="password1" id="password1" dojoType="dijit.form.ValidationTextBox" required="true"...
{ "language": "en", "url": "https://stackoverflow.com/questions/308501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .Net 1.1 Web application is picking up web.config from root folder I have a .Net 1.1 web application sitting in a folder called C:\inetpub\wwwroot\MyTestApp, where 'MyTestApp' is a virtual directory and is configured to be on ASP.Net version 1.1.4322 in IIS 5.1. In the root directory (C:\inetpub\wwwroot) there is a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Firefox style onclick arguments in IE In Firefox when you add an onclick event handler to a method an event object is automatically passed to that method. This allows, among other things, the ability to detect which specific element was clicked. For example document.body.onclick = handleClick; function handleClick(...
{ "language": "en", "url": "https://stackoverflow.com/questions/308514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Convert a multi page Tiff to jpeg in .Net1.1 Is there a way to convert a multi page Tiff file to a jpeg file in VB.net 1.1. I've tried to convert it with the standard Bitmap.Save() method but it only converts the first page. A: See here for an example of this. Basically you have to load the TIFF and paint the pages...
{ "language": "en", "url": "https://stackoverflow.com/questions/308522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what is RowOrdinal property in Sharepoint FieldType Definition In Sharepoint it is not possible to add more than 16 Lookup-Fields to a single list. This limit is explained here: http://support.microsoft.com/?scid=kb%3Ben-us%3B823555&x=6&y=5 I found a workaround for it: The RowOrdinal-Property in FieldDefinition in s...
{ "language": "en", "url": "https://stackoverflow.com/questions/308527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When to use domain driven development and database driven development? Can anybody have good answer when should be database driven development be used and when should domain driven development be used. These both development approach have their importance in their respected areas. But I am not so clear which approac...
{ "language": "en", "url": "https://stackoverflow.com/questions/308539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Event log monitoring I need to monitor my Windows Server event logs so that I know if there is a problem with any of my ASP.Net websites (IIS errors, windows login errors etc) - errors that would end up in the event log rather than being handled by my application's error logging. Has anyone had any experience of GFI...
{ "language": "en", "url": "https://stackoverflow.com/questions/308545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: custom validation to compare the float value of two text box I am using a custom validator to compare value in two text box. This is comparing the values fine. But it says "025" and "25" are different.. can this do a float comparision. the custom validator i am using is <asp:CompareValidator id="compval" runat="ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/308547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Install certificates in to the Windows Local user certificate store in C# I'm writing a Windows service that needs several certificates in the certificate store in order to connect to a third party web service. On my installer I call a small application (C#) that creates a user to run the service as. It works fine. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: I need help with this error: java.lang.NoSuchMethodError I have this Java code (JPA): String queryString = "SELECT b , sum(v.votedPoints) as votedPoint " + " FROM Bookmarks b " + " LEFT OUTER JOIN Votes v " + " on (v.organizationId = b.orga...
{ "language": "en", "url": "https://stackoverflow.com/questions/308555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What has been your successful pitch to Management for using SCRUM? What approach did you take to describe the benefits of SCRUM to clients / business units who do not have a technical background? Please list any analogies you thought were useful. Finally, how did you address the concerns that the Waterfall camp had...
{ "language": "en", "url": "https://stackoverflow.com/questions/308572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How should I order the members of a C++ class? Is it better to have all the private members, then all the protected ones, then all the public ones? Or the reverse? Or should there be multiple private, protected and public labels so that the operations can be kept separate from the constructors and so on? What iss...
{ "language": "en", "url": "https://stackoverflow.com/questions/308581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: Where can I find a "ESC/POS" Epson Barcode Test Program? I am struggling to get an Epson "ESC/POS" printer to print barcodes (Using Delphi) and want to test if the printer is not faulty. Do you know where I can find a program to print a barcode in "ESC/POS"? I suppose as a last resort an OPOS program will also be OK...
{ "language": "en", "url": "https://stackoverflow.com/questions/308588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I make a thread dump in JBoss 4.0.5 on Windows I'm running JBoss 4.0.5 on Windows 2003 x64 and wonder if there is any way to get a dump of all threads? * *It's stared with FireDaemon so I don't have a console windows in which to ctrl-break. *It's running under java 1.5 so jstack won't work. *I tried so...
{ "language": "en", "url": "https://stackoverflow.com/questions/308590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UpdatePanelAnimationExtender always firing Is there any way to prevent an UpdatePanelAnimationExtender from executing when the associated updatepanel is not updating (i.e. is set to conditional updates)? A: Unfortunately this is a known "bug" in the control. As of this posting it still hasn't been fixed and there i...
{ "language": "en", "url": "https://stackoverflow.com/questions/308595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: File upload with django-profiles I'm using the django-contrib package django-profiles, and everything is working great - my only issue is that I would like the form to upload a file (for an avatar), unfortunately - the form does not upload the file. Has anyone successfully managed to get file uploads working with dj...
{ "language": "en", "url": "https://stackoverflow.com/questions/308596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rename a directory in installer I am working on a Windows application which needs to be able to update itself. When a button is pressed it starts the installer and then the parent application exits. At some point during the installer, the installer attempts to rename the directory that the parent application was run...
{ "language": "en", "url": "https://stackoverflow.com/questions/308601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding REST to Django I've got a Django application that works nicely. I'm adding REST services. I'm looking for some additional input on my REST strategy. Here are some examples of things I'm wringing my hands over. * *Right now, I'm using the Django-REST API with a pile of patches. *I'm thinking of falli...
{ "language": "en", "url": "https://stackoverflow.com/questions/308605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Is there any general purpose breadcrumbs management library/code in .net? I want to make a msdn style breadcrumbs navigation A: Yes - look at the SiteMapPath and the other menu/site navigation controls in Visual Studio toolbox.
{ "language": "en", "url": "https://stackoverflow.com/questions/308608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to programatically encrypt/decrypt plain text credentials in JSP? As as part of my daily routine, I have the misfortune of administering an ancient, once "just internal" JSP web application that relies on the following authentication schema: ... // Validate the user name and password. if ((user != null) && (pas...
{ "language": "en", "url": "https://stackoverflow.com/questions/308609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the most efficient way of implementing ReadLine() on a binary stream? Please feel free to correct me if I am wrong at any point... I am trying to read a CSV (comma separated values) file using .NET file I/O classes. Now the problem is, this CSV file may contain some fields with soft carriage returns (i.e. sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/308615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: STL Vector comparison issue With a vector defined as std::vector<std::string>, Wondering why the following is valid: if ( vecMetaData[0] != "Some string" ) { ... But not this: switch ( vecMetaData[1] ) { ... Visual studio complains : error C2450: switch expression of type 'std::basic_string<_Elem,_Traits,...
{ "language": "en", "url": "https://stackoverflow.com/questions/308619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: LINQ To SQL Weird Join Issue I have a simple database with two tables. Users and Configurations. A user has a foreign key to link it to a particular configuration. I am having a strange problem where the following query always causes an inner join to the Configuration table regardless of the second parameter value. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which opensource java or .net project has best unit test coverage? I want to dive more into the unit testing concepts. An open source project which will illustrate the best practices in unit testing is required. A: I work on CruiseControl (original Java version) and I think it is worth considering as a source of st...
{ "language": "en", "url": "https://stackoverflow.com/questions/308638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select X Most Recent Non-Consecutive Days Worth of Data Anyone got any insight as to select x number of non-consecutive days worth of data? Dates are standard sql datetime. So for example I'd like to select 5 most recent days worth of data, but there could be many days gap between records, so just selecting records ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to delete controls inside toolstripcontainer I met strange issue during designing winform. I placed a few controls inside toolstripcontainer and now I cannot delete them. It's also impossible to delete whole Toolstripcontainer. I'm using Visual Studio 2008 SP1 plus some extra patches. Is it a bug in Visual St...
{ "language": "en", "url": "https://stackoverflow.com/questions/308656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Session not saving when moving from ssl to non-ssl I have a login screen that I force to be ssl, so like this: https://www.foobar.com/login then after they login, they get moved to the homepage: https://www.foobar.com/dashbaord However, I want to move people off of SSL once logged in (to save CPU), so just after che...
{ "language": "en", "url": "https://stackoverflow.com/questions/308659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Connect to MSN Messenger from ASP.NET page Has anyone connected to MSN Messenger from an ASP.NET page? We found this component: http://www.xihsolutions.net/dotmsn/, but it works only for desktop applications and we couldn't make it work in our web site. Are there any working solutions either with the above component...
{ "language": "en", "url": "https://stackoverflow.com/questions/308664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I make a genuinely transparent Control? I need to make a Control which shows only an outline, and I need to place it over a control that's showing a video. If I make my Control transparent, then the video is obscured, because transparent controls are painted by their parent control and the video isn't painte...
{ "language": "en", "url": "https://stackoverflow.com/questions/308667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I add playback controls to my embedded swf? So I've got my shiny new screencast created with Jing (which I love) and have put my swf file on my web server and embedded in a test html page. It works just fine. However, there are no playback controls on the video when I play it. How can I added simple playba...
{ "language": "en", "url": "https://stackoverflow.com/questions/308669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Integrate C++ library into iPhone app Can I integrate my exsisting C++ library in an iPhone application? A: While it's true that you can't mix C++ classes in Objective-C, you can mix it with Objective-C++, which I believe is also supported in the iPhone. Integrating C++ code with an iPhone app shouldn't be an issu...
{ "language": "en", "url": "https://stackoverflow.com/questions/308673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Lightweight XML Viewer that can handle large files There are plenty of "heavyweight" tools such as XmlSpy, which are good for prodding around in xml docs - but often (very often in some cases!) you just want to quickly open and browse an xml doc, and have it pretty printed. Possibly with some basic search functional...
{ "language": "en", "url": "https://stackoverflow.com/questions/308679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "177" }
Q: How can I get the current date and time in UTC or GMT in Java? When I create a new Date object, it is initialized to the current time but in the local timezone. How can I get the current date and time in GMT? A: This definitely returns UTC time: as String and Date objects ! static final String DATE_FORMAT = "yyyy-M...
{ "language": "en", "url": "https://stackoverflow.com/questions/308683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "563" }
Q: Best ASP.net WYSIWYG Ok, i've read most relevant questions asked here previously on this but I still don't see a clear "best in class" suggestion for WYSIWYG editors for ASP.net I've used fckeditor up to now (found it ok but many problems with config/permissions on folder etc.). I'm looking for something that has a...
{ "language": "en", "url": "https://stackoverflow.com/questions/308685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I concatenate const/literal strings in C? I'm working in C, and I have to concatenate a few things. Right now I have this: message = strcat("TEXT ", var); message2 = strcat(strcat("TEXT ", foo), strcat(" TEXT ", bar)); Now if you have experience in C I'm sure you realize that this gives you a segmentation f...
{ "language": "en", "url": "https://stackoverflow.com/questions/308695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "416" }
Q: PHP Change Array Keys Is there a way to change all the numeric keys to "Name" without looping through the array (so a php function)? [ 0 => 'blabla', 1 => 'blabla', 2 => 'blblll', // etc ... ] A: This is an example prefixing all the keys with an underscore. We use array_combine to combine the array...
{ "language": "en", "url": "https://stackoverflow.com/questions/308703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Why does asp.net tracing only work from time to time? ASP.NET tracing seems very erratic. Sometimes it traces and sometimes it doesn't. I trace from my ASCX using... Trace.Write("etc. etc."); My web.config looks as follows... (in WSS3) I first ensure that SharePoint allows the page level tracing... <SafeMode MaxCont...
{ "language": "en", "url": "https://stackoverflow.com/questions/308713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to install nativeXML using Delphi 2009? I`m using Delphi 2009 and want to operate some XML data. I heard that nativeXML is one of the most convenient ways to do it. so how can I install this library? A: NativeXML doesn't claim to support Delphi 2009 just yet. [Edit: Apparently there is a 2009 beta available to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: C++ library integration to iPhone application Thanks for your support, but will it(integration of exsisting C++ library with iPhone application) effect my application at the time of submision to Apple Store? Are there any chances of disapproval of application from Apple Store? A: As long as your library is statical...
{ "language": "en", "url": "https://stackoverflow.com/questions/308729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: webservice SOAP message Monitor or logging Could some one tell me how to capture SOAP messages passed between the client and the server webservice applications. I tried using both tools. pocket soap http://www.pocketsoap.com/pocketsoap/ Fiddler http://www.fiddlertool.com/fiddler/ I may miss some settings, it is not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does PageRank mean anything? Is it a measure of anything that a developer or even manager can look at and get meaning from? I know at one time, it was all about the 7, 8, 9, and 10 PageRank. But is it still a valid measure of anything? If so, what can you learn from a PageRank? Note that I'm assuming that you have o...
{ "language": "en", "url": "https://stackoverflow.com/questions/308740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I monitor ASP errors I come from a mainly PHP background and make good use of the Apache error logs by using the command line. I've recently been handed a large ASP/ASP.NET project that I need to make changes to, where do I find the error logs on a Windows IIS setup so that I may troubleshoot some issues? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/308743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Segmentation Fault in TCP communication I'm getting a segmentation fault in the following C code: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define...
{ "language": "en", "url": "https://stackoverflow.com/questions/308746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CListCtrl::GetItemNext returns start item I have a CListCtrl object in my C++ MFC app for Windows Mobile 6. When I call listctrl.GetNextItem(0, LVNI_ABOVE) I should therefore get back -1 (no item above first item), but if (and only if) the list has exactly one item, the call returns 0, even though MSDN says "The spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/308748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the opposite of chr() in Ruby? In many languages there's a pair of functions, chr() and ord(), which convert between numbers and character values. In some languages, ord() is called asc(). Ruby has Integer#chr, which works great: >> 65.chr A Fair enough. But how do you go the other way? "A".each_byte do |byt...
{ "language": "en", "url": "https://stackoverflow.com/questions/308749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "102" }
Q: .net webservice publishing process question I have a webservice that exists in an asp.net website. When I publish the site to a test server I have to go into the bin folder and into the .svc file for the service and manually change the URL to correctly reflect the test server URL. Is there a better way to handle s...
{ "language": "en", "url": "https://stackoverflow.com/questions/308750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# comments tutorial I would like to know which one is the best material that I can hand out to my students about "C# comments". A: Inside VS Comments are relatively simple. You can use for single line : //This is a single line comment You can use for multiple line: /* Multiple lines */ For method you can use : ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Checking an assembly for a strong name Is it possible to check if a dynamically loaded assembly has been signed with a specific strong name? Is it enough / secure to compare the values returned from AssemblyName.GetPublicKey() method? Assembly loaded = Assembly.LoadFile(path); byte[] evidenceKey = loaded.GetName()....
{ "language": "en", "url": "https://stackoverflow.com/questions/308756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Prism and nested UserControl I have been using Prism for two days and have successfully added and used existing UserControls on the new Shell. These UserControls contained only pure WPF Controls (buttons, lists etc). I now need to introduce existing UserControls that consists of other UserControls. If my understand...
{ "language": "en", "url": "https://stackoverflow.com/questions/308759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are some ways to protect emails on websites from spambots? I'm creating a public internet facing website which contains the email address of their salespeople. What kind of programming options do I have to generate the "mailto" and display the email from that address but limit the spambots from picking up th...
{ "language": "en", "url": "https://stackoverflow.com/questions/308772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Oracle dbms_scheduler - react to change of system date I've got a dbms_scheduler-Job running in Oracle 10.2.0. When I change the system date back to yesterday, the job will wait for one day to continue its work. The reason for this is that next_run_date does not change. This does not happen regularly, but sometimes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I use Ajax and ASP.NET Tracing on the same page? I'm using an Ajax update panel and have recently added ASP.NET tracing code to aid in debugging. All of the sudden I started getting PageRequestManagerParseErrorExceptions when any Ajax code is executed. For example: Trace.Write("Done setting employeeId."); Ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/308798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Silverlight Unit Testing I'm using the Silverlight UnitTest framerwork does anyone have a good example have how to unit test an application with it? I'm using it quite successfully to unit test a silverlight class library. Any pointers and links would be greatly appreciated. Thanks, Nath A: I've written a couple of...
{ "language": "en", "url": "https://stackoverflow.com/questions/308802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is model driven development good for? Microsoft, of Cairo fame, is working on Oslo, a new modeling platform. Bob Muglia, Senior Vice President of Microsoft Server & Tools Business, states that the benefits of modeling have always been clear. In simple, practical terms, what are the clear benefits that Oslo best...
{ "language": "en", "url": "https://stackoverflow.com/questions/308803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MySQL: how to get the list of tables using ODBC I am connecting to a MySQL DB trough a terminal who only have a program with an ODBC connection to a MySQL DB. I can put querys in the program, but not access MySQL directly. I there a way to query the DB to obtain the list of tables? A: There is a SQL query: Show tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/308809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OSGi/Felix Declarative Services: How to filter the services to be bound? I am using Apache Felix and its Declarative Services (SCR) to wire the service dependencies between bundles. For example, if I need access to a java.util.Dictionary I can say the following to have SCR provide one: /** * @scr.reference name=prop...
{ "language": "en", "url": "https://stackoverflow.com/questions/308813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rewritepath and IIS Integrated Mode I have big issue with url-rewriting for IIS 7.0. I've written simple module for rewriting for my NET3.5/IIS7 web application. Here is a part of the code. public void Init(HttpApplication context) { context.BeginRequest += new EventHandler(context_BeginRequest); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to specify the exact number of occurance of a token in ANTLR? I have to define the grammar of a file like the one shown below. //Sample file NameCount = 4 Name = a Name = b Name = c Name = d //End of file Now I am able to define tokens for NameCount and Name. But i have to define the file structure including the...
{ "language": "en", "url": "https://stackoverflow.com/questions/308823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MSXML2.XMLHTTP send method works with early binding, fails with late binding The code below works. But if I comment out the line Dim objRequest As MSXML2.XMLHTTP and uncomment the line Dim objRequest As Object it fails with the error message : The parameter is incorrect Why, and what (if anything) can I do about i...
{ "language": "en", "url": "https://stackoverflow.com/questions/308826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: SOAP Message Envelope Does anybody know if there is a way using java to pass all the XML content of SOAP Envelope to a String? Thanks, A: Depends a bit on what you're using for SOAP and if you want the server or the client to log. I know that in Axis2 you can use this to get it MessageContext msgContext = MessageCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/308827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Detect when an iOS app is launched for the first time? How do I detect when an iOS app is launched for the first time? A: Pretty much what Marc and Chris said, though I prefer to change the value when the app quits in case there're multiple areas of the application that need to know about it. In code: Objective-C /...
{ "language": "en", "url": "https://stackoverflow.com/questions/308832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: How to transform an Oracle SQL into a Stored Procedure that should iterate through some tables fetching a certain data field? I need to transform an Oracle SQL statement into a Stored Procedure therefore users with less privileges can access certain data field: SELECT info_field, data_field FROM table_one WH...
{ "language": "en", "url": "https://stackoverflow.com/questions/308833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it good practice to initialize the elements in an associative array in php? I'm finding myself doing a lot of things with associative arrays in PHP. I was doing this: foreach ($item as $key=>$value) { if ($arr[$key] == null) { $arr[$key] = 0; } $arr[$key] += $other_arr[$value]; } But t...
{ "language": "en", "url": "https://stackoverflow.com/questions/308835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding Dynamic panel/controls I have the following table <td class="style2"> <asp:DropDownList ID="DropDownList1" runat="server"> <asp:ListItem>Location</asp:ListItem> <asp:ListItem>Name</asp:ListItem> <asp:ListItem>SSN</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="Drop...
{ "language": "en", "url": "https://stackoverflow.com/questions/308837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a real need of a server side architecture for a RIA application? Do we really need a server side architecture to create a RIA application? My idea is the following: * *Create a complete RIA application using only Html pages, JQuery and a full client side UI set of components (choose your poison between t...
{ "language": "en", "url": "https://stackoverflow.com/questions/308843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compiling ANTLRWorks generated class files I am using ANTLRWorks to create ANTLR grammars. I have a valid grammar and the parser and lexer source files are generated as well. I have also tried debugging the generated code and the output is as expected in the debugger output. But when I try to invoke the __Test__ c...
{ "language": "en", "url": "https://stackoverflow.com/questions/308845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dotnet: How do you get average character width for a font? Windows Forms: For System.Drawing there is a way to get the font height. Font font = new Font("Arial", 10 , FontStyle.Regular); float fontHeight = font.GetHeight(); But how do you get the other text metrics like average character width? A: Use Graphics.M...
{ "language": "en", "url": "https://stackoverflow.com/questions/308850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Visual inheritance in Java The team in which I work has been getting problems with the visual inheritance of the forms in the Java platform. We want to develop a base JFrame with some controls in it and to have inherited forms from that base JFrame. The designer of the Netbeans 6.1 does not paint the controls of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/308856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: hibernate auto-discovery and generation of of database mappings to POJOs Are there any tools that auto-generate the hibernate POJOs by gathering information from the database? I made a perl script to do this after the schema got changed for the third or fourth time in a project i'm working with and just wondered if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/308860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CVS remote tagging I want to remotely tag a CVS archive for a given date and time, this seems to be supported by the -D parameter but I can only find examples of the format to use for dates: cvs -d :pserver:server:/repo rtag -D 20081121 module Dates seem to take the format of YYYYMMDD but I can't seem to work out t...
{ "language": "en", "url": "https://stackoverflow.com/questions/308872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MySQL: how to get the list of fields in a table using ODBC I am connecting to a MySQL DB trough a terminal who only have a program with an ODBC connection to a MySQL DB. I can put querys in the program, but not access MySQL directly. I there a way to query the DB to obtain the list of fields in a table other than se...
{ "language": "en", "url": "https://stackoverflow.com/questions/308876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a good open source message bus for embedded Linux? I'm looking for a good open source message bus that is suitable for embedded Linux devices (Linux and uClinux). It needs to satisfy the following criteria: * *Must be free software and LGPL or a more liberal license due to uClinux only supporting static l...
{ "language": "en", "url": "https://stackoverflow.com/questions/308892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Forms Authentication timing out when it shouldn't? I have a problem with an ASP.NET application that is driving me nuts. When a user leaves a page inactive for a period of time the session was timing out and error were being thrown due to session variables not being resolvable (I will error trap this anyway but this...
{ "language": "en", "url": "https://stackoverflow.com/questions/308893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get the parameters passed by M sending the parameters from the jsp page, the code is <s:url id="url" action="searchAction"> <s:param name="id">"${cgConsultant.id}"</s:param> </s:url> and m getting it in the url as.. http://localhost:8080/search/searchAction.html?id="1" I need to get it in the ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/308898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Should there be a Transaction for Read Queries? I've been reading that some devs/dbas recommend using transactions in all database calls, even read-only calls. While I understand inserting/updating within a transaction what is the benefit of reading within a transaction? A: Similar to what RoBorg said, you'd do SEL...
{ "language": "en", "url": "https://stackoverflow.com/questions/308905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: How can I use an SQL Pivot for this? I have a data set that is organized in the following manner: Timestamp|A0001|A0002|A0003|A0004|B0001|B0002|B0003|B0004 ... ---------+-----+-----+-----+-----+-----+-----+-----+----- 2008-1-1 | 1 | 2 | 10 | 6 | 20 | 35 | 300 | 8 2008-1-2 | 5 | 2 | 9 | 3 | 50 | 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/308908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python data structures overhead/performance Is there any performance advantage to using lists over dictionaries over tuples in Python? If I'm optimising for speed, is there any reason to prefer one over another? A: Tuples will be slightly faster to construct for a small number of elements. Although actually most o...
{ "language": "en", "url": "https://stackoverflow.com/questions/308912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: pygtk glade question: why isn't this simple script working? I've been writing writing a small pygtk application using glade to put together the UIs. I've created several windows already that work, but for some reason this one isn't working. I get the following traceback: Traceback (most recent call last): File "...
{ "language": "en", "url": "https://stackoverflow.com/questions/308913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }