text
stringlengths
8
267k
meta
dict
Q: Visual Studio shortcut for showing dropdown of available Enum values for function argument When calling an overloaded argument in visual studio, visual studio often doesn't show the dropdown of available enumerated values available for a function argument. Is there a shortcut one can use the force the dropdown to b...
{ "language": "en", "url": "https://stackoverflow.com/questions/428720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.IO.Directory.GetFiles returns different result than Windows XP Search Companion I am using this statement to find all files recursively: fileNames = System.IO.Directory.GetFiles(path, "*.*", System.IO.SearchOption.AllDirectories); The total number of files that are found is sgnificantly lower than wehen ...
{ "language": "en", "url": "https://stackoverflow.com/questions/428723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do you know any open source projects that use Java Web Services? For my diploma project I am creating a tool that will study a Java project and extract the parts that declare or use Web Services in order to study the classes that communicate in this way other the network, the communication channels that are created,...
{ "language": "en", "url": "https://stackoverflow.com/questions/428725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I tell whether data in table has incorrect encoding? I have a couple tables that are set to the latin1 character set but I suspect have been erroneously been inserted with some values that are actually encoded using utf8. MySQL makes this a little more complicated because it silently converts everything base...
{ "language": "en", "url": "https://stackoverflow.com/questions/428727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hide Submit Button for form I am asp.net-MVC using the BeginForm syntax in my source ciew page and I was told if you want the form to submit you have to have the submit Button at the end of the using statement. I don't want to use a Button to call the desired Action I have an Actionlink set up like so: <%=Html.Act...
{ "language": "en", "url": "https://stackoverflow.com/questions/428732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IE downloads and installs CAB dialog popup upon every page refresh I have a signed cab on an aspx page. I am seeing the following inconsistent behavior. Any insights would be highly appreciated. * *On some machines, the cab is downloaded and installed on every page refresh. *On few of those machines, the IE "in...
{ "language": "en", "url": "https://stackoverflow.com/questions/428742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass anonymous function by value in javascript? I have a function that accepts an anonymous function as an argument and sets it to a variable (scoped) for reference. I then try to execute another function with that reference but it obviously fails since that function is out of scope. I was wondering if anyone knew ...
{ "language": "en", "url": "https://stackoverflow.com/questions/428750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any GLSL's ftransform() translation in HLSL? When using GLSL vertex shaders, a way to let the shader work as a fixed-function pipeline is to call the: ftransform(); function. Is there a similar function for HLSL's vertex shaders? Thank you A: I've found this tutorial from ATI's website and this is a link t...
{ "language": "en", "url": "https://stackoverflow.com/questions/428752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Quickest way to implement a new interface member in many classes? Do you know a quick way to implement method(s) from an Interface to a Class. If yes, how can you do it? Situation : I have an Interface used by over 15 concrete classes. I added a new method and I need to implement this new method in all concrete clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/428766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does the Cache get overwritten? If yo have multiple users on your website on the same page and they are running queries (searches) and the results are stored in a datatable. Will the last person's search overwrite the application Cache if you store it in the Cache? Is this a reason to use Session? A: If you store...
{ "language": "en", "url": "https://stackoverflow.com/questions/428768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File Watcher - get the process name that created a file in Windows? Is there a good way to get the process name that created a file in Windows? I have a directory on a Windows 2000 Server C:\WINNT\Temp that is filling up with files named like: 70618199 21834082 They are always 121,201 KB in size. Programatically...
{ "language": "en", "url": "https://stackoverflow.com/questions/428774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Map and Reduce in .NET What scenarios would warrant the use of the "Map and Reduce" algorithm? Is there a .NET implementation of this algorithm? A: Linq equivalents of Map and Reduce: If you’re lucky enough to have linq then you don’t need to write your own map and reduce functions. C# 3.5 and Linq already has i...
{ "language": "en", "url": "https://stackoverflow.com/questions/428798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "229" }
Q: How do I configure jEdit for Scala projects? I'd like to be able to use jEdit to write, compile and test projects written in Scala. How can I configure it to do so? A: The new link appears to be http://wiki.liftweb.net/index.php?title=SetUp_jEdit A: May be this JEdit Setup with Scala setup jEdit to develop Scala c...
{ "language": "en", "url": "https://stackoverflow.com/questions/428819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Fibonacci, Binary, or Binomial heap in c#? Are there any heap data structure implementations out there, fibonacci, binary, or binomial? Reference: These are data structures used to implement priority queues, not the ones used to allocate dynamic memory. See http://en.wikipedia.org/wiki/Heap_(data_structure) Thanks...
{ "language": "en", "url": "https://stackoverflow.com/questions/428829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How do I make an iPhone web app mimic a non-web app? I've been considering making a quick little iPhone web app. I started reading about and experimenting with the special meta tags and attributes documented at Apple's Web Apps Dev Center: * *viewport *apple-mobile-web-app-capable *apple-mobile-web-app-status-b...
{ "language": "en", "url": "https://stackoverflow.com/questions/428835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: php login code problem I'm using this code for login, but when I enter a username and password it just loads the page and the login page again is displayed. Why does this happen? <?php session_start(); if(!isset($_POST['username']) || !isset($_POST['password']) || empty($_POST['username']) || empty($_POST['p...
{ "language": "en", "url": "https://stackoverflow.com/questions/428836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Execute VBA Macro via C# Interop? just wondering if anyone could suggest why I might be getting an error? I'm currently trying to execute a macro in a workbook by calling the Application.Run method that the interop exposes. It's currently throwing the following COM Exception: {System.Runtime.InteropServices.COMExcep...
{ "language": "en", "url": "https://stackoverflow.com/questions/428842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Strange intermittent SQL connection error, fixes on reboot, comes back after 3-5 days (ASP.NET) For some reason every 3-5 days our web app loses the ability to open a connection to the db with the following error, the strange thing is that all we have to do is reboot the container (it is a VPS) and it is restored to...
{ "language": "en", "url": "https://stackoverflow.com/questions/428846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Parse through xml string using JS I have an XML string in which Val.responseText gives me <NewDataSet> <Table> <FieldID>21</FieldID> <TableName>F003v001</TableName> <FieldName>Grade</FieldName> <DisplayField>Grade</DisplayField> <FieldType>text</FieldType> </Table> </NewDataSet> I'm callin...
{ "language": "en", "url": "https://stackoverflow.com/questions/428858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What goes in your domain model objects and what goes in your services? In a domain driven design where you're going for a non-anemic domain model how do you decide what to implement in your domain objects vs. service oriented methods? EDIT: I asked this a different way with an example and got much better answers her...
{ "language": "en", "url": "https://stackoverflow.com/questions/428859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I hook into the UI rendering "engine" of ASP.NET Dynamic Data? I have decorated my model using Metadata classes attached to my model classes via the MetadataType attribute. I have some use the Range attribute, Required attribute, etc. and some custom attributes I have created. Now I want to hook into the re...
{ "language": "en", "url": "https://stackoverflow.com/questions/428860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Floating Too Far Right I've got a record management web application which displays a master record on one screen and AJAXes dynamically built editors into an editor div, which I've used JQuery to make draggable. That works. Even though the div isn't a window, I thought it might be a nice idea to make it act a bit mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/428862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the possibly situations that .net Viewstate could stop working? Consider the following code: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init If Page.IsPostBack Then If ViewState("test") IsNot Nothing Then Response.Write((Vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/428870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to play MP3 files in C? I'm looking for the easiest way to play a MP3 file in C. I am looking for either a library, in which I could just call the function on the filename, or an executable that will just run and quit. Please suggest. A: The BASS DLL is really easy to use and will probably do what you need. It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/428884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How can I get the created date of a file on the web (with Python)? I have a python application that relies on a file that is downloaded by a client from a website. The website is not under my control and has no API to check for a "latest version" of the file. Is there a simple way to access the file (in python) via ...
{ "language": "en", "url": "https://stackoverflow.com/questions/428895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is the IsNullOrEmpty bug fixed in .NET 3.0 or later? Does anyone know if the IsNullOrEmpty bug is fixed in 3.0 or later? I currently came across the (NullReferenceException) bug in 2.0 and I have found documentation stating that is supposed to be fixed in the next release, but no definitive answer. A: Works with .N...
{ "language": "en", "url": "https://stackoverflow.com/questions/428896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Need to execute shell script from webapp and display console output in page I am looking for java examples or library that will help me integrate this into a Struts2/Spring application. Many build systems such as Luntbuild or Hudson have this functionality, I thought I would ask if any one knows of a standalone ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/428901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why doesn't the Random.Next method in .NET support floats/double? So maybe I want to have values between -1.0 and 1.0 as floats. It's clumsy having to write this and bolt it on top using extension methods IMO. A: You can use the Random.NextDouble() method which will produces a random value between 0.0 and 1.0 as @J...
{ "language": "en", "url": "https://stackoverflow.com/questions/428908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server 2008 Auto Generate Change Scripts Legacy Problem We enable "Tools ==> Options ==> Designers ==> Table and Database Designers ==> Auto Generate Change Scripts" in our SQL Server Management Studio (SSMS). When changing our database schema, we save the script and, thanks to DB migration tools we've got insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/428909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Getting description field from Active Directory in SQL Server 2005 (LDAP) The only field I cannot grab is the description field from our AD. The error is: Cannot get the data of the row from the OLE DB provider "ADsDSOObject" for linked server "ADSI". Could not convert the data value due to reasons other than...
{ "language": "en", "url": "https://stackoverflow.com/questions/428916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I increment a date by one day in Java? I'm working with a date in this format: yyyy-mm-dd. How can I increment this date by one day? A: Something like this should do the trick: String dt = "2008-01-01"; // Start date SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstan...
{ "language": "en", "url": "https://stackoverflow.com/questions/428918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "654" }
Q: Changing the owner of an existing process in Linux I would like to start tomcat (Web Server) as a privileged user, and then bring it back to an unprivileged user once it has started. Is there a way to do this programatically, or in general with Linux? Thanks. A: The underlying system call that you need is setuid(2...
{ "language": "en", "url": "https://stackoverflow.com/questions/428920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Winforms unceremoniously quits with "unhandled exception" The program spits up one of those boxes saying an unhandled exception has occurred and the application must quit. The only clue I get to solve the problem is this in the event log: Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event C...
{ "language": "en", "url": "https://stackoverflow.com/questions/428924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Multiple row Tabs using CSS i can't find a way to do multiple row tabs with ASP.net ajax tab control. I also can't find a tutorial or example on using CSS to make multiple row of tabs. In case you don't understand what i'm looking for here is a image of what i'm looking for http://bp1.blogger.com/_WCGCQYWEaxs/Rq1c2b...
{ "language": "en", "url": "https://stackoverflow.com/questions/428927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Conversion failed when converting the varchar value 'NULL' to data type int" When I insert records into a long table,I am getting the error "Conversion failed when converting the varchar value 'NULL' to data type int" How can I determine which column errors out? The table has many fields and millions of records. Ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/428933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is the value added from a smoke test? Or maybe with our implementation of it. I'm new to the team that wants to go through the process and it seemed to confuse some of our members on the team including me. We were given what I would consider a user acceptance test or list of manual actions that you would clic...
{ "language": "en", "url": "https://stackoverflow.com/questions/428955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is .NET giving me the wrong week number for Dec. 29th 2008? According to the official (gregorian) calendar, the week number for 29/12/2008 is 1, because after the last day of week 52 (i.e. 28/12) there are three or less days left in the year. Kinda weird, but OK, rules are rules. So according to this calendar, we ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/428957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Using VB.NET IIF I get NullReferenceException I am doing a little debugging, and so I want to log the eventArgs value I have a simple line that basically does: logLine = "e.Value: " + IIf(e.Value Is Nothing, "", e.Value.ToString()) The way I understand the IIF function, if the e.Value is Nothing (null) then it shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/428959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How do I return multiple datatables from a SQL Server stored procedured? I need to make two queries on two different tables and the data isn't really related. So when I call the stored proc through my code, I should be getting a DataSet with two DataTables, one DataTable for each query. How is that done in SQL Serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/428960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to capitalise acronyms in entity names? Let's for a moment assume that you're programming in a language that uses camelcase words for identifiers, by convention. All you Ruby types with your underscore-separated method names get to sit this one out. What approach do you take to capitalising the letters after th...
{ "language": "en", "url": "https://stackoverflow.com/questions/428967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Seapine Software - Surround - Automated Builds I'm thinking of working towards an automated build process where I work (currently our builds are a manual process). Our version control software is from Seapine - Surround SCM and TestTrack. There is a CLI reference guide for Surround. Does anyone have any experience...
{ "language": "en", "url": "https://stackoverflow.com/questions/428979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I import Java class files into JRuby? The documentation seems to suggest that in order for me to import Java classes into JRuby, that they must be in a JAR file: "In order to use resources within a jar file from JRuby the jar file must either be on the classpath or you can make it available with the require meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/429002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How dangerous is it send HTML in AJAX as opposed to sending JSON and building the HTML? Possible Duplicate: Why is it a bad practice to return generated HTML instead of JSON? Or is it? It seems to me that any interception of this could provide instant trouble because anyone could just send any HTML/script back to...
{ "language": "en", "url": "https://stackoverflow.com/questions/429005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Why do web applications insist on defining strict password rules? You've all encountered the various websites that force you to have a password that is 6 characters long, must have 1 number, and must rhyme with 'annoying.' Obviously there are legacy reasons why sometimes this is necessary but other times it's all fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/429006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: auto-detecting components using spring annotations I've managed to configure to spring to auto-detect my components using the @Autowire annotation. However the problem is that not all the components are being Auto wired. Specifically My DAO's are being bound but my service objects aren't. I have to explicitly cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/429010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: New to PHP/MySQL I'm a recent CS graduate and have learned very little on 'web 2.0' type stuff, we mainly focused on Java and C. I want to get into PHP, what would you guys recommend as the best book/website to get started with? There are a lot of them out there, and I don't want to drop 50 bucks on something that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/429012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SQL Server Mgt Studio not showing table? I have a table in SQL Server 2000 Standard Edition called "dbo.T668" (don't blame me for the naming convention). I'm working on the server using SQL Server Management Studio 2005, and for some strange reason, I can't see the table at all in the list of tables. I see all the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/429014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Global "Loading" notification with ASP.NET MVC Ajax calls I'm interested in providing a general "I'm making an ajax call" notification ... similar to how most of google's services have a little red loading notification when it's busy making a call. Is there a way of globally tapping into some event that I can use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/429022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Dynamic DateTimeRangeValidator using Enterprise Library 4.1? I'm trying to add a range of - 365 days and + 365 days but it appears that using this attribute in EL 4.1 only accepts a special ISO formatted string ... thus I can't simply add a normal string to this validation routine. <DateTimeRangeValidator(DateTime.N...
{ "language": "en", "url": "https://stackoverflow.com/questions/429034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make Crystal Reports Page Width Larger During Design of .rpt I'm looking for a method to resize the page width Crystal Reports gives me to place fields in my .rpt file. So far I have discovered if I right click on the report, select 'design'/'printer setup', I can select the size of the paper I want the repor...
{ "language": "en", "url": "https://stackoverflow.com/questions/429035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Php and macros(lisp style)? Hi im learning LISP and well, all day i program php for a living, so i was messing around with php.net and found the eval function... so i started playing around! I would love to know more about how to use eval to do crazy stuff, i know you can make functions with this and everything... b...
{ "language": "en", "url": "https://stackoverflow.com/questions/429039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generating absolute URLs from Seam emails Is there a way to coax either the h:outputLink or s:link tags into generating absolute URLs? In a Seam email message, I want to be able to do something like <s:link view="/someView.xhtml"> <f:param name="a" value="#{a.nastyParam}" /> <f:param name="b" value="#{b.nas...
{ "language": "en", "url": "https://stackoverflow.com/questions/429050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should CONTROL permission be given on a Stored Procedure in SQL Server 2005? I'm running into an issue where granting EXECUTE permissions on a specific Stored Procedure in SQL Server 2005 is not working. Some of the testers messed around with the permissions - and found that if they also granted CONTROL permissions...
{ "language": "en", "url": "https://stackoverflow.com/questions/429051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: If short URls are such good practice, why don't big sites like Amazon or Facebook implement them? Short, near urls (Such as on this site) are a much talked about good practice in web development for the purpose of good SEO (and probably other reasons too). If this is so, then how comes so many big sites like Amazon ...
{ "language": "en", "url": "https://stackoverflow.com/questions/429065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best analogy to help non-oop developers grok interface based programming? I'm having a hard time trying to get my team comfortable with interface based programming ... anyone have some suggestions? A: An interface is like a class's dress code. If a class implements an interface, its public members (its...
{ "language": "en", "url": "https://stackoverflow.com/questions/429068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Marquee ProgressBar unresponsive with BackgroundWorker In my code, when a button is clicked the progress bar is set to marquee and then my BackgroundWorker is called but when the BackgroundWorker is called the progress bar freezes or disappears. I use the BackgroundWorker to seperate the RefreshReport method of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/429076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Testing Outlook VSTO Addins I am trying to write a really simple Outlook VSTO add in that checks email that is being sent for a few simple properties. My problem is that I cannot seem to install/test the add in using Outlook. I have added unit tests that ensure the code I have written likely does what it should but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/429087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it safe to assume that Spring MessageSource implementations are thread-safe? Is it safe to assume that all implementations of org.springframework.context.MessageSource interface are thread-safe after initialization? I would expect that it's safe, but now I'm looking through Spring source code, and there's org.spr...
{ "language": "en", "url": "https://stackoverflow.com/questions/429089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Best practices for bit flags in PHP I'm writng a small application in PHP + MySQL and have come to the point where there is an object that has a couple (8 so far but not expected to increase) of flags associated with it. The flags are pretty much unrelated although there are some combinations that would make no sens...
{ "language": "en", "url": "https://stackoverflow.com/questions/429104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Random banner only displaying the first image I have an external JavaScript that contains: function random_imglink(){ var myimages=new Array() myimages[1]="http://sevir.sitegoz.com/jchs/Banner1.png" myimages[2]="http://sevir.sitegoz.com/jchs/banner2.png" myimages[3]="http://sevir.sitegoz.com/jchs...
{ "language": "en", "url": "https://stackoverflow.com/questions/429107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I manage the onslaught of null checks? Quite often, in programming we get situations where null checks show up in particularly large numbers. I'm talking about things like: if (doc != null) { if (doc.Element != null) { ... and so on } else throw new Exception("Element cannot be null"); } else...
{ "language": "en", "url": "https://stackoverflow.com/questions/429112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Calling methods of "parent" component in Java I have the following situation I think would be best to show in sample program code. I have a Java class that extends JPanel. In this class are two objects which are two more JPanels. In one of the JPanel objects is a JTable object. I added a listener to this JTable ...
{ "language": "en", "url": "https://stackoverflow.com/questions/429114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What software and hardware are essential for developing for iPod? On a PC? I have an idea for a simple application to run on an iPod. I'm an experienced programmer but have no experience on iPod or any Mac or Apple operating system. What are the bare essentials in terms of hardware and software to begin developing u...
{ "language": "en", "url": "https://stackoverflow.com/questions/429124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Override and overload in C++ Yes, I do understand the difference between them. What I want to know is: why OVERRIDE a method? What is the good in doing it? In case of overload: the only advantage is you haven't to think in different names to functions? A: Overloading generally means that you have two or more functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/429125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: group by query challenge I have these tables: customer -------- customer_id int name varchar(255) order ----- order_id int customer_id int discount boolean I can get the number of orders made by each customer with a query like: select c.id, count(o.order_id) from customer c left join order as o using...
{ "language": "en", "url": "https://stackoverflow.com/questions/429136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Menu Items Flicker When Resizing Thank you guys so much for your help, this has been bothering me for a couple days. I am using Windows Vista, and writing my program in C++, using straight Windows API(no MFC). When I resize my window, the menu items flicker. My window class DOES NOT use CS_HREDRAW or CS_VREDRAW. I u...
{ "language": "en", "url": "https://stackoverflow.com/questions/429141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The N-Layer POCO/ DTO quandary When there were only evil datasets and the microsoft application blocks your transfer objects between layers would be either datasets/datatables or DTO/POCO. I belong to the gang that likes using DTO/POCO. Now with this sudden wave of mapping layers like SubSonic, Entity Framework, NH...
{ "language": "en", "url": "https://stackoverflow.com/questions/429149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to process a YAML stream in Python I have a command line app the continuously outputs YAML data in the form: - col0: datum0 col1: datum1 col2: datum2 - col0: datum0 col1: datum1 col2: datum2 ... It does this for all of eternity. I would like to write a Python script that continuously reads each of thes...
{ "language": "en", "url": "https://stackoverflow.com/questions/429162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can I use urllib to submit a SOAP request? I have a SOAP request that is known to work using a tool like, say, SoapUI, but I am trying to get it to work using urllib. This is what I have tried so far and it did not work: import urllib f = "".join(open("ws_request_that_works_in_soapui", "r").readlines()) urllib.urlop...
{ "language": "en", "url": "https://stackoverflow.com/questions/429164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Raising a decimal to a power of decimal? The .net framework provides in the Math class a method for powering double. But by precision requirement I need to raise a decimal to a decimal power [ Pow(decimal a, decimal b) ]. Does the framework have such a function? Does anyone know of a library with this kind of functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/429165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Possible to add large amount of DOM nodes without browser choking? I have a webpage on my site that displays a table, reloads the XML source data every 10 seconds (with an XmlHttpRequest), and then updates the table to show the user any additions or removals of the data. To do this, the JavaScript function first cle...
{ "language": "en", "url": "https://stackoverflow.com/questions/429174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Confused how to write this simple UPDATE/INSERT OK, I'm confused how to write an INSERT/UPDATE for this simple app I'm developing locally to learn more about db interactions. I have an "edit" page, which is populated from the db and lists up to 9 user links (user_id 2 in this case), so something like: <input type="t...
{ "language": "en", "url": "https://stackoverflow.com/questions/429186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best way to parse Excel file in Perl? What's the simplest way to parse an Excel file in Perl? Converting it to a text file would also work. A: I have had great luck using Spreadsheet::ParseExcel. A: The 'best' way would ideally be to use a module from our beloved CPAN. Whenever you have a problem Insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/429193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: WPF: Best way to raise a popup window that is modal to the page? I am building a WPF app using navigation style pages and not windows. I want to show a window inside a page, this window must be modal to the page, but allow the user to go to other page, and go back to the same page with the modal window in the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/429200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Why are children of my custom user-control not being initialized? UPDATE: I've been experimenting with my controls some more and I think I've gotten closer. Please read on for updated info. I have 2 ASP.NET 2.0 user controls, one of which is placed inside of the other one. Inside of the inner control I have an HtmlA...
{ "language": "en", "url": "https://stackoverflow.com/questions/429202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a way to capture the output of NSLog on an iPhone when not connected to a debugger? I'm logging a bunch of data with NSLog(). Is there a way to capture the log data when my iPhone is not connected to my development machine and running under a debugger? For example, can I redirect it to a file and then re...
{ "language": "en", "url": "https://stackoverflow.com/questions/429205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What is the best way to implement C#'s BackgroundWorker in Delphi? I use C#'s BackgroundWorker object frequently to start a thread and perform a task. What's the easiest way to accomplish the same thing in Delphi? Here's some code in C#: private void button1_Click(object sender, EventArgs e) { BackgroundWorker bg...
{ "language": "en", "url": "https://stackoverflow.com/questions/429210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: SharePoint "user does not exist or is not unique" error, on site restore We backed up a site on our development server and restored it to our production server on a different domain. To clear up all the users on the site we used the web.SiteUsers.Remove() for all users on the root web, on our dev site. On taking a b...
{ "language": "en", "url": "https://stackoverflow.com/questions/429211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why my ASP.NET application broke after a migration? My web application worked very well in a Windows Server 2003 with .NET Framework 2.0. When I migrated to Windows Server 2008 with .NET Framework 3.5. With the same code running in both servers the difference between them was the following: for a given async ASHX (I...
{ "language": "en", "url": "https://stackoverflow.com/questions/429216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ColdFusion and getting data from MySQL I am working on a CF site and need to get data from MySQL tables. I can create the CFQuery fine and check for records returned, but how do I take the records returned and loop through them and get data from specific fields in each row. I can write while if/end if, etc, I just d...
{ "language": "en", "url": "https://stackoverflow.com/questions/429219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Capture output from unrelated process I was just wondering if it is possible to capture the output of a separate process running on windows? For instance if i have a console app running, could i run a second app, a forms app, and have that app capture the output from the console app and display it in a text box? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/429225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: writing SEO-friendly pages that can be toggled public or private our application wants to be able to create static, searchable pages based on user profile information, which would be linkable to other public profiles. I am looking at LinkedIn as an example...it seems like they actually auto-generate the page to be a...
{ "language": "en", "url": "https://stackoverflow.com/questions/429245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Selenium: How do I use javascript to clear a value from a form field? I'm using the selenium IDE and the Selenium-Fitnesse Bridge fixture and I'm trying to test that when I clear a default value out of a form field, my form displays an error message. So when I record with the Selenium IDE, what it does is the equiva...
{ "language": "en", "url": "https://stackoverflow.com/questions/429251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I find memory leaks in long-running Perl program? Perl uses reference counting for GC, and it's quite easy to make a circular reference by accident. I see that my program seems to be using more and more memory, and it will probably overflow after a few days. Is there any way to debug memory leaks in Perl? At...
{ "language": "en", "url": "https://stackoverflow.com/questions/429254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: How to manage FxCop overwhelming reports I've recently started using it. However, after running it against one of my company's largest project. It turns up mountains of problems. The list of problems was so overwhelming it would take days to find and fix some, if not all of the stuff. Now, I know that it's not very ...
{ "language": "en", "url": "https://stackoverflow.com/questions/429255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Why are my units "compiled with a different version" of my own files? I'm building a program that uses plugins. Unfortunately, the plugin framework's dynamic linking forces the RTL and VCL out of my project EXE and into the BPL versions, and they don't have debug info enabled. So I built a testing framework that li...
{ "language": "en", "url": "https://stackoverflow.com/questions/429275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Disconnected Architecture With .NET I'm working with an n-Tier application using WinForm and WCF Engine Service (Windows Service) => WCF Service => Windows Form Client Application The problem is that the WinForm Client Application need to be 100% available for work even if Engine Service is down. So how can I make a...
{ "language": "en", "url": "https://stackoverflow.com/questions/429281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can an authentication key be passed to a restful web service? Some existing web services I consume have methods that look something like this: List<Employee> employees = employeeService.GetEmployees(accessKey, allDepartments); The accessKey serves two purposes; it acts as both authentication and identi...
{ "language": "en", "url": "https://stackoverflow.com/questions/429302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unresolved external symbol CompleteAuthToken referenced While porting a desktop application to windows mobile I've reached the following error: Error LNK2019: unresolved external symbol CompleteAuthToken referenced in function Reading MSDN it tell me that CompleteAuthToken is supported on Windows CE 2.10 and l...
{ "language": "en", "url": "https://stackoverflow.com/questions/429322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sliding Door with a tail I have an <H2> with a background that has rounded corners. I'm looking for a way to create a 1px line that moves from the box to end of the container at the right. Does anyone have an idea? A: Well, I finally gave up and stuck some divs in my h2. :( CSS #content h2 { background: url(../...
{ "language": "en", "url": "https://stackoverflow.com/questions/429325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create a workspace window for other windows using c# in visual studio 2008? I'd like to create a workspace with status bar and menu, and within this workspace container have smaller windows of various types. For example, if you un-maximise a worksheet in Excel but not the main window, it becomes a window i...
{ "language": "en", "url": "https://stackoverflow.com/questions/429330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I pass an ASP.NET querystring value into my silverlight 2 control? I have an ASP.NET page. What I want to do is pass in an ID field that is in the querystring. So if my page is http://www.mysite.com/default.aspx?id=35 I want a silverlight control that is on this page to have access to the id field. My silv...
{ "language": "en", "url": "https://stackoverflow.com/questions/429334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resizing TYPE_CUSTOM BufferedImages? When I read a JPEG from disk, Java sometimes gives me a BufferedImage whose getType() returns TYPE_CUSTOM -- that is, it has a custom color model. I'd like to resize this BufferedImage but I'm not sure how to construct the destination object. Can someone please provide sample cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/429337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Tracking Clicks on a Flash Ad When a site has third party flash ads, is it possible for the site to track clicks to the flash? As the flash files are not created by the site, they cannot be changed. But the site wants to confirm the click-through counts that the ad agency is reporting with its own click tracking. Ja...
{ "language": "en", "url": "https://stackoverflow.com/questions/429350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does one pass command line argument to a ClickOnce application? I have a Clickonce application that is launched from the start menu (local). I would like to be able to specify a parameter so that the application can load certain data. The application lives on a fileshare and will be launched using the URL only o...
{ "language": "en", "url": "https://stackoverflow.com/questions/429351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: What are the minimum security precautions to put in place for a startup? I'm working with a start-up, mostly doing system administration and I've come across a some security issues that I'm not really comfortable with. I want to judge whether my expectations are accurate, so I'm looking for some insight into what ot...
{ "language": "en", "url": "https://stackoverflow.com/questions/429352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to find out whether my .Net application was launched using a shortcut? Is it possible to find out whether your current .Net app has been launched using a shortcut or a Clickonce application reference (*.appref-ms) file? If so, how? Some background: I am running into an issue using Microsoft Clickonce in which I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/429362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What costs more: DataSets or Multiple Updates? If my program was to hit the database with multiple updates would it be better to pull in the tables into a dataset, change the values and then send it back to the database. Does anyone know what's more expensive? A: No matter what, the database needs to perform all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/429363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Painting through QDirectPainter Can anyone suggest me in detail how to use QDirectPainter class to paint a widget directly on frame buffer. I would be more helpful if you provide me a working example. A: QDirectPainter does not and can not paint anything. It is there to provide access to the framebuffer, i.e. via i...
{ "language": "en", "url": "https://stackoverflow.com/questions/429365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a GIS "Hello World" Equivalent? Is there the equivalent of the "Hello World" program for GIS applications? I am looking to become more familiar with the development of GIS applications. What are the popular (and free/low cost) tutorials and/or sample applications that would help someone get started? Are t...
{ "language": "en", "url": "https://stackoverflow.com/questions/429370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }