text
stringlengths
8
267k
meta
dict
Q: FTP Deployment in Eclipse Aside from DeployerFTP, are there any plugins that offer the ability to deploy a project to an FTP location? I would love a way to do this on an individual file basis, possibly even storing the FTP information within each project. A: ANT: http://ant.apache.org/manual/Tasks/ftp.html Maven: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to upgrade a long running SharePoint Workflow already in production I have been tasked with helping the deployment of a Phase 2 of a previous SharePoint deployment. The original deployment has custom workflows that have been updated in phase 2. Is there a "How-To" for this type of situation? Some of the pitfalls...
{ "language": "en", "url": "https://stackoverflow.com/questions/357032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: C# data binding doesn't update WPF I'm trying to do a Data Binding in the C# code behind rather than the XAML. The XAML binding created in Expression Blend 2 to my CLR object works fine. My C# implementation only updates when the application is started after which subsequent changes to the CLR doesn't update my la...
{ "language": "en", "url": "https://stackoverflow.com/questions/357033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Encapsulating LINQ select statement I have LINQ statement that looks like this: return ( from c in customers select new ClientEntity() { Name = c.Name, ... }); I'd like to be able to abstract out the select into its own method so that I can have different "mapping" option. What does my method need to return? In ess...
{ "language": "en", "url": "https://stackoverflow.com/questions/357041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Storing Feature Configuration within Sharepoint i have a Sharepoint feature that essentially extends Lists with a new feature, using a List receiver. For each list the feature is attached to, i need to store some configuration. Now, the first thing that came into my mind is the obvious solution: Have a global list. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Identifiers in a one to many relationship I have two tables, we'll call them Foo and Bar, with a one to many relationship where Foo is the parent of Bar. Foo's primary key is an integer automatically generated with a sequence. Since Bar is fully dependent on Foo how would I setup the primary key of Bar given the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to send data after form has been validated using jQuery? I have a simple email address sign up form as follows: <form action="" id="newsletterform" method="get"> <input type="text" name="email" class="required email" id="textnewsletter" /> <input type="submit" id="signup" /> </form> Here's what I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/357049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: code coverage in C I'm looking to have code coverage in C. I cannot rely on tools like gcov as I am working on different platforms/compilers. Basically I am looking for a strategy to incorporate code coverage into my(own implementation) unit-test framework. A: Do you have so many platform-specific code that you wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/357051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unit test case generator Has anybody tried any Unit Test generators for .Net? I assume although it won't be any substitute for any good unit test written by a person who has written the functionality, but I think it will take away some of work and be a starting point on which we can better the unit tests. Thanks. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: sprintf() without trailing null space in C Is there a way to use the C sprintf() function without it adding a '\0' character at the end of its output? I need to write formatted text in the middle of a fixed width string. A: You can't do this with sprintf(), but you may be able to with snprintf(), depending on your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Rails 2.0: Why not use sqlite3? I've been reading some tutorials on how to get started using Rails 2.0. (Time out: genius website name idea conceived from a typo I just made: "tutoRAILS." Sorry, back to my question.) In most of the tutorials I've been reading, it seems to encourage using MySQL instead of sqlite3. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/357071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best way to hide a window from the Alt-Tab program switcher? I've been a .NET developer for several years now and this is still one of those things I don't know how to do properly. It's easy to hide a window from the taskbar via a property in both Windows Forms and WPF, but as far as I can tell, this doesn't guarant...
{ "language": "en", "url": "https://stackoverflow.com/questions/357076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "110" }
Q: Default Number of Decimal Places to Output in PHP I do my php work on my dev box at home, where I've got a rudimentary LAMP setup. When I look at my website on my home box, any numbers I echo are automatically truncated to the least required precision. Eg 2 is echoed as 2, 2.2000 is echoed as 2.2. On the productio...
{ "language": "en", "url": "https://stackoverflow.com/questions/357084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to deal with sstream vs. strstream inconsistency from old compilers I'm temporarily using gcc 2.95.2, and instead of having a sstream header, it defines a (slightly different, and deprecated) strstream. I'm currently getting around this with #if __GNUC__ < 3 // or whatever version number it changes #includ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you enable JMX in Websphere? I would like to use JConsole to monitor my Websphere application, but I am not sure how to enable JMX. A: It is simple. Just start Websphere with the following JMX parameters: -Djavax.management.builder.initial= -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.auth...
{ "language": "en", "url": "https://stackoverflow.com/questions/357095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Call to Session.CreateSQLQuery ExecuteUpdate fails in NHibernate I have a stored procedure that is used to synchronize data from another system through a linked server. I execute this call using NHibernate in a Windows Service that runs tasks using Quartz.net. One of these tasks is the synchronize data task and it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/357103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Asp.net duplicate form submissions on reload How do I prevent a form that is posted a second time because of a page reload in a browser from being added to my database again with C# Asp.Net. Thanks, Steven A: One thing you can do is after your first page is submited, you can do a response.redirect back to the same ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IE7: Customizing pop-up background color when opened as a new tab I have a pop-up on my page that I want to have a white background if it's opened as a new tab in IE7. IE7 has a user setting that controls whether pop-ups are opened in a new tab, or otherwise. Is it possible to customize this? or am I stuck with a bl...
{ "language": "en", "url": "https://stackoverflow.com/questions/357114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What causes Visual Studio 2005 Out-Of-Order Command Line Builds? In Visual Studio 2005, I have a solution with explicit dependencies specified via the Project Dependencies dialog. When I build via devenv /rebuild Release for example, the projects are built in a different order than when loading up the IDE. This is...
{ "language": "en", "url": "https://stackoverflow.com/questions/357116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way in JMockit to call the original method from a mocked method? In my mock class, I'm mocking method foo(). For some test cases, I want the mock implementation of foo() to return a special value. For other test cases, I want to use the real implementation of foo(). I have a boolean defined in my mock ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: PHP/mySQL - how to fetch nested rows into multidimensinal array Coming from another question of mine where I learnt not to EVER use db queries within loops I consequently have to learn how to fetch all the data in a convenient way before I loop through it. Let's say I have two tables 'scales' and 'items'. Each item ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Trying to add ajax TabContainer, getting error "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)." I want to add an ajax:TabContainer to my webpage. I don't get any build errors, but when I try to browse to the page, it gives me the error: "The Controls collection ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting Line Numbers for Errors Thrown in SQL Server CLR Runtime I've created a CLR stored procedure that I'm running on SQL 2k5 and I'm wondering if there's any way to get line numbers for exceptions thrown by the .NET code. When an Exception is thrown, I get something along the lines of Msg 6522, Level 16, State...
{ "language": "en", "url": "https://stackoverflow.com/questions/357145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I make Visual Studio 2005 call a WCF service? How can I make Visual Studio 2005 call a WCF service? A: Yes, using the wsHttpBinding will expose the service as a standard web service. A: Yes you can. * *If you have .NET 3.0 or 3.5 installed, you can add references to the WCF assemblies (System.ServiceM...
{ "language": "en", "url": "https://stackoverflow.com/questions/357159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: phpbb3 cache issues i have an issue with caching of templates in phpbb3. i have made changes to a template in the admin control panel and saved it, then cleared the template cache through the "purge cache" and i don't see changes reflecting on the forum, but the change WAS saved in the admin control panel. i next ed...
{ "language": "en", "url": "https://stackoverflow.com/questions/357161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Memory Mapped Files .NET I have a project and it needs to access a large amount of proprietary data in ASP.NET. This was done on the Linux/PHP by loading the data in shared memory. I was wondering if trying to use Memory Mapped Files would be the way to go, or if there is a better way with better .NET support. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: .net 3.5, does it need your computer to be restarted for it to work? Hey gang, I need to know if i need to restart my computer to get .net 3.5 to work with my web applications after i install it. My server machine is using IIS. On my local machine the web app works fine. When i browse to it on the server, i'm seein...
{ "language": "en", "url": "https://stackoverflow.com/questions/357176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET/C# - Detect File Size from Other Server? I'm trying to find the file size of a file on a server. The following code I got from this guy accomplishes that for your own server: string MyFile = "~/photos/mymug.gif"; FileInfo finfo = new FileInfo(Server.MapPath(MyFile)); long FileInBytes = finfo.Length; long Fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/357190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using try/catch for update Because I am a newbie I am trying to log out any errors that may occur with stored procedures I write. I understand Try/Catch in SQL 2005 and error_procedure(), ERROR_MESSAGE() and the other built in functions. What I can't figure out how to do is capture what record caused the error on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rails: Convert HTML to PDF? What is the best and easiest way of taking HTML and converting it into a PDF, similar to use CFDOCUMENT on ColdFusion? UPDATE: I really appreciate all the comments and suggestions that people have given so far, however I feel that people leaving their answers are missing the point. 1) the...
{ "language": "en", "url": "https://stackoverflow.com/questions/357212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: I think STL is causing my application triple its memory usage I am inputting a 200mb file in my application and due to a very strange reason the memory usage of my application is more than 600mb. I have tried vector and deque, as well as std::string and char * with no avail. I need the memory usage of my application...
{ "language": "en", "url": "https://stackoverflow.com/questions/357243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server 2005 Date Time stamp Query One of my columns type is DateTime (Date Registered). I cannot create a query that filters all the data for eg. All registrations who registered on the 22/10/2008 between 18:00 and 20:00. Thanks A: SELECT * FROM YourTable WHERE DateRegistered BETWEEN '10/22/2008 18:00:00' AND '...
{ "language": "en", "url": "https://stackoverflow.com/questions/357244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using .net 3.0 namespaces in .net 2.0 Is there anyway to make it possible to use .net 3.0 namespaces in a .net 2.0 application? I'm specifically looking to use the System.Windows.Media.Media3D namespace. Edit: I am looking to use the actual assemblies, not just the namespaces. Poor wording on my part. A: No, you...
{ "language": "en", "url": "https://stackoverflow.com/questions/357246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can configuration data be encrypted from an installation process? I am developing a .NET (2.0) WinForms utility that connects to a SQL Server 2005 database. I have found reference material, such as Avoiding Plaintext Passwords for handling the actual encryption of the connection string data. I now need to implement ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to embed an AS3 swf in a DIV layered above an embedded AS2 swf? I think the question is pretty self explanatory. Anyone done this before? UPDATE: Clarification on why I need to do this. We have a single swf behemoth of an AS1 - AS2 site with a large video gallery section. The client wants to update th...
{ "language": "en", "url": "https://stackoverflow.com/questions/357281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL Server Profile - View Parameter Values? In SQL Server Profile, I have it tracing SP:StmtStarting events. The "TextData" includes information like the following: EXEC MySortedProc @param, NULL, @param2, NULL What would I have to trace (or can I?) to view the value of those parameters? A: If I get you cor...
{ "language": "en", "url": "https://stackoverflow.com/questions/357283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Classic ASP Server.MapPath not working properly The site I'm working on is done in Classic ASP, and I'm trying to do it as best as possible. I've abstracted it out into a Rails-like directory structure: app_name - app - includes - helpers - lib - partials - public - stylesheets - image...
{ "language": "en", "url": "https://stackoverflow.com/questions/357297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call a parent class function from derived class function? How do I call the parent function from a derived class using C++? For example, I have a class called parent, and a class called child which is derived from parent. Within each class there is a print function. In the definition of the child's print fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/357307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "758" }
Q: Binding DropDownList DataSource to an XPathSelect Greetings! I have some XML like this: <Root> <MainSection> <SomeNode>Some Node Value</SomeNode> <SomeOtherNode>Some Other Node Value</SomeOtherNode> <Areas> <Area someattribute="aaa" name="Alpha" value="0" /> <Area ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: File permissions in cygwin and MVFS I am using Cygwin with a dll version of 1.5.19 (yes, out-of-date, I know, but we're doing it for configuration control reasons). All my files (existing and newly created) show up with permissions 644, despite a umask of 022. Also, using chmod doesn't change the permissions. I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/357314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get list of arguments? I'd like to find a Windows batch counterpart to Bash's $@ that holds a list of all arguments passed into a script. Or I have to bother with shift? A: %1 ... %n and %* holds the arguments, but it can be tricky to access them, because the content will be interpreted. Therefore it is imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/357315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "475" }
Q: Is there a way to create a fullscreen gallery on iPhone through Safari? I've been creating CSS/Javascript to style an upcoming site differently on iPhone - mostly to enhance usability. On the desktop app, I use slimbox in combination with mootools for an image gallery. This doesn't work on iPhone because it won't sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/357319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Showing a throbber during html page load and rendering I have a page that renders slowly. The trip across the net is quick. The initial load of the page is quick. You can actually see (if your machine is slow enough), the initial layout of the html components. Then some javascript stuff runs, making some of thos...
{ "language": "en", "url": "https://stackoverflow.com/questions/357323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Identifiers in a Diamond Relationship between Tables I have four tables (A,B,C,D) where A is the parent of one to many relationships with B and C. C and D are parents to a one to many relationship with table D. Conceptually, the primary keys of these tables could be: * *A: Aid *B: Aid, bnum (with foreign key ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Login failed when enableviewstate = false Good day, I'm having a problem with asp.net 2.0 viewstate. Basically, I want to disable the viewstate for a gridview. However, when I do so, as soon as there is a post-back, before even getting into Page_Load, I get a 'Login failed for user sa ...'. If I enable the views...
{ "language": "en", "url": "https://stackoverflow.com/questions/357333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementation of Curried Functions in Scheme What happens when I do the following? (define ((func x) y) (if (zero? y) ((func x) 1) 12)) I understand that I can do this: (define curried (func 5)) And now I can use curried. What I'm curious about is in the definition of the function. Does the li...
{ "language": "en", "url": "https://stackoverflow.com/questions/357353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What does this mean in a stack trace? I see this in a stack trace: myorg.vignettemodules.customregistration.NewsCategoryVAPDAO.getEmailContentByID(I)Lmyorg/pushemail/model/EmailContent; What does the "(I)L" mean? A: It's a form of name mangling used for disambiguating method overloads. The method name is appende...
{ "language": "en", "url": "https://stackoverflow.com/questions/357355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I write an Excel macro to select a group of cells? I'm looking for a macro which can be run to select a consistent range of cells so that I can easily copy them to another spreadsheet. The range would be F3:BJ3. A: This should do the trick: Public Sub selectCells() Range("F3:BJ3").Select End Sub edit: f...
{ "language": "en", "url": "https://stackoverflow.com/questions/357363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are strings really in .NET? Is a string actually a character array (is-a), or does it have a character array as an internal store (has-a), or is it's own object which can expose itself as a with an array of characters? I am more inclined to say it is it's own object, but then why are we so inclined to always sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/357364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Load FreeMarker templates from database I would like to store my FreeMarker templates in a database table that looks something like: template_name | template_content --------------------------------- hello |Hello ${user} goodbye |So long ${user} When a request is received for a template with a particu...
{ "language": "en", "url": "https://stackoverflow.com/questions/357370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How do you order/control client documentation and assets? I would class myself as a typical small developer/independant designer and I recently purchased some new hardware for the office and thought I better organise myself better than I have in the past. So I am wondering how you all organise all your files etc so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: List Generics and Casting I have two classes: Media and Container. I have two lists List<Media> and List<Container> I'm passing these lists to another function (one at a time); it can be one or another; what's the proper way to check for the "template" type of the list so i can call an asssociated method depending ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Import error in a inline .aspx page I have a import directive in my inline .aspx page (no code-behind). Getting an error: The type or namespace name 'Dts' does not exist in the namespace 'Microsoft.SqlServer' (are you missing an assembly reference?) What is the issue? Do I need a /bin directory with the .dll in it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why are unnamed namespaces used and what are their benefits? I just joined a new C++ software project and I'm trying to understand the design. The project makes frequent use of unnamed namespaces. For example, something like this may occur in a class definition file: // newusertype.cc namespace { const int SIZE_...
{ "language": "en", "url": "https://stackoverflow.com/questions/357404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "340" }
Q: Bypass IE "The webpage you are viewing..." pop up Is there a way to bypass the following IE popup box: The webapge you are viewing is trying to close the window. Do you want to close this window? Yes|No This is occurring when I add window.close() to the onclick event of an asp.net button control. A: There is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Organizing pictures (or any files) This is a bit of a stretch, but I have an interesting (to me) programming (err... scripting? algorithmic? organizational?) problem. (I am tagging this in Ruby, because of my preference for Ruby for scripting.) Imagine you have 100 gigabytes of pictures floating around on multiple d...
{ "language": "en", "url": "https://stackoverflow.com/questions/357412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to read NASA .hgt binary files I'm sure this is really simple if you know anything about binary files, but I'm a newbie on that score. How would I extract the data from NASA .hgt files? Here is a description from www2.jpl.nasa.gov/srtm/faq.html: The SRTM data files have names like "N34W119.hgt". What do the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: What is the best way to remove duplicates in an Array in Java? I have an Array of Objects that need the duplicates removed/filtered. I was going to just override equals & hachCode on the Object elements, and then stick them in a Set... but I figured I should at least poll stackoverflow to see if there was another wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/357421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Django Queryset across Models? I have several Models and want to return a queryset of all the Models belonging to a User, I'm wondering if its possible to return one Queryset from multiple Models? A: I am assuming that you mean you would like to return a single queryset of all the objects belonging to the user from...
{ "language": "en", "url": "https://stackoverflow.com/questions/357425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I call .NET code (C#/vb.net) from vbScript? I imagine I can compile a C# DLL and then expose it as a COM object so that it can be CreateObject'd from VBscript. I'm just not sure the steps involved in doing this... A: It can be very simple to do this. But there are a lot of places where it's not so simple. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to debug MSBuild Customtask I'm trying to debug the MSBuild Customtask, that I have just created, but for some reason it never stops at the breakpoint. I've even tried this: public override bool Execute() { System.Diagnostics.Debugger.Break(); And added a break point on that line... I even elim...
{ "language": "en", "url": "https://stackoverflow.com/questions/357445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: .NET: Is there a String.Format form for inserting the value of an object property into a string? I think the direct answer to the question is 'No' but I'm hoping that someone has written a real simple library to do this (or I can do it...ugh...) Let me demonstrate what I am looking for with an example. Suppose I had...
{ "language": "en", "url": "https://stackoverflow.com/questions/357447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I call a Pb generated native Win32 dll from .Net? Or from anywhere else? I have been trying to link to Pb (11.5) generated native Win32 dlls: both from a different Pb app and from a .net (2.0) app. I am aware that registered COM objects are visible to Pb. What I want to do is have Pb (running 11.5 Enterpris...
{ "language": "en", "url": "https://stackoverflow.com/questions/357452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eclipse encoding conversion Does anyone know of any eclipe plugin that lets you easily change and use file encodings? I sometimes need to edit template files to do small tweaks, but the files are sometimes ISO, sometimes UTF8, sometimes others, so using eclipse for this leads to disaster :) A: Changing the encoding...
{ "language": "en", "url": "https://stackoverflow.com/questions/357461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Can I Add ConnectionStrings to the ConnectionStringCollection at Runtime? Is there a way where I can add a connection string to the ConnectionStringCollection returned by the ConfigurationManager at runtime in an Asp.Net application? I have tried the following but am told that the configuration file is readonly. Con...
{ "language": "en", "url": "https://stackoverflow.com/questions/357465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: .NET - How to build themes for big CSS files I am in charge of providing a theme functionality for a site using a big CSS file (thousands of elements) I've just inherited. Basically we want to allow the user to be able to change the colors on the screen. Every CSS element, besides color definition also have lots of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Output Caching - GetVaryByCustomString based on value set in PageLoad() I am using ASP.net Output Caching and want to implement GetVaryByCustomString () version of it. However I've gotten into a problem when the cache is based on a value set in the PageLoad() of a page. When Default.aspx load, the version of the USE...
{ "language": "en", "url": "https://stackoverflow.com/questions/357475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: writing 2d arrays to output files - c++ I'm trying to write a 2d array into an output file, it's all working fine except in creating the .getline function to draw the array back out of the file. My issue is putting the string length. My current code for the line is; inputFile.getline(myArray, [10][10], '\n'); but it...
{ "language": "en", "url": "https://stackoverflow.com/questions/357481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone client certificate I would like to verify that an app I am writing is running on an iPhone. What would be perfect is this: Apple baked an SSL client certificate into each iphone which can be authenticated by a receiving server. I this the case? I have not started researching this yet, I will update with any...
{ "language": "en", "url": "https://stackoverflow.com/questions/357491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: asp:calendar not work correctly in MVC I have an asp:calendar on my view page and as I hover over it..it shows a javascript postback status bar. but I have an asp:button also on the same page and when I hover over it. The action from the controller is in the status bar..because I have an onClick attribute for the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/357497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using ASP and INSERT INTO - I am trying to create a simple page that enters data in to a database and my code is below. <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit %> <!--#include FILE=dbcano.inc--> <% dim username,password,f_name,l_name,objConn,objs,query username = Request.Form("user") password = Request.F...
{ "language": "en", "url": "https://stackoverflow.com/questions/357499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: reporting services anonymous access to reports I can't create a NT account for everyone that need access to the reports. Does anyone know or have a link to the info to allow anonymous access to reporting services reports ? Thanks A: Thanks, I had tried it before but was failing, tried again and worked fine, must ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/357500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Dynamic Content and Search Engine Optimization I have a web forum that I have coded in Python for the App Engine platform. I have noticed that it is not being indexed well by Google and I am trying to fix that. I have used Google Webmaster to submit a sitemap with almost 400 URLs but apparently only 8 were indexed! ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can you call ROW_NUMBER() in dynamic sql and use Common Table Expressions in Dynamic Sql? I want to limit the number of records returned by calling ROW_NUMBER(), but I am curious as to if you can call it in dynamic sql? Also, Can you use CTE's in dynamic sql? A: Do you mean, as opposed to being called from inside a...
{ "language": "en", "url": "https://stackoverflow.com/questions/357506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharepoint stripping HTTP Headers I have a custom sharepoint app whose security model depends on an HTTP header. When a request is made from the mobile device, an http header called HTTP_RIM_DEVICE_EMAIL is added to each request. I grab the http header via the following method: private static string GetValueFromHead...
{ "language": "en", "url": "https://stackoverflow.com/questions/357512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Spring Integration 1.0 RC2: Streaming file content? I've been trying to find information on this, but due to the immaturity of the Spring Integration framework I haven't had much luck. Here is my desired work flow: * *New files are placed in an 'Incoming' directory *Files are picked up using a file:inbound-chann...
{ "language": "en", "url": "https://stackoverflow.com/questions/357520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex: Figure out when the running swf was compiled? Is there anyway in a flex application to figure out (in runtime) when the running swf was compiled? I'd like to compare this with the latest file version of the swf on the server and detect if there's a newer version on the server and if so force the user to reload...
{ "language": "en", "url": "https://stackoverflow.com/questions/357522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: QVariant and qRegisterMetaType question I have a class Pkg and I need to use it under form of QVariant. At the end of my Pkg.h I have: Q_DECLARE_METATYPE(Pkg) and this does not give compile errors, but in my main.cpp I have to do: qRegisterMetaType<Pkg>("Pkg"); and this does not give errors too, but when I try to...
{ "language": "en", "url": "https://stackoverflow.com/questions/357537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Good way to test email functionality Working on an app with notification via e-mail. I'd like to run test with out sending e-mails to production servers and clients. A couple years ago I remember someone bringing down our exchange server with a bad e-mail loop and would prefer to not repeat... Any suggestion for...
{ "language": "en", "url": "https://stackoverflow.com/questions/357543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Reporting Services Vertical Layout Not Sortable? I recently switched a report from the usual table view (horizontal) to vertical because I had a ton of columns. The issue now is that when I click to sort nothing happens in the report itself. Does anyone know if it's possible to sort using a layout that is not hori...
{ "language": "en", "url": "https://stackoverflow.com/questions/357552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sorting multiple keys with Unix sort I have potentially large files that need to be sorted by 1-n keys. Some of these keys might be numeric and some of them might not be. This is a fixed-width columnar file so there are no delimiters. Is there a good way to do this with Unix sort? With one key it is as simple as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "149" }
Q: Java based Swing Browser should support JavaScript In my company, I am implementing a java based html browser. I found a lot of tools to generate complete browsers only in Swing which are looking like Mozilla. But I was not able to find a browser which supports JavaScript. The browser I will implement should execute...
{ "language": "en", "url": "https://stackoverflow.com/questions/357562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Uses for anonymous namespaces in header files Someone asserted on SO today that you should never use anonymous namespaces in header files. Normally this is correct, but I seem to remember once someone told me that one of the standard libraries uses anonymous namespaces in header files to perform some sort of initia...
{ "language": "en", "url": "https://stackoverflow.com/questions/357564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: how to protect the ws discovery ad hoc network from man-in-the-middle attacks The ws-discovery specifications explains how to protect your network from * *message alteration *Denial of service *replay *spoofing but what about man-in-the-middle attack? A: As far as I understand, The "message alteration" mit...
{ "language": "en", "url": "https://stackoverflow.com/questions/357567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET CSS Adapters without the crazy js injected to "help you" the object of the game in this case is to use a Treeview with a sitemap provider - and implement using CSS. I'm guessing the way to do this is with the CSS adapter kit. I've plugged in the adapters using the DLL implementation and there i get my basic...
{ "language": "en", "url": "https://stackoverflow.com/questions/357571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XAML - StaticResources in Collection Initializers I want to add a single model object that has been instantiated once in XAML, and add it to two different collections (in xaml). The following code renders fine in Blend's Design Time, but I get the following errors at run time: For "Post1" Object of type 'WpfBlog.Mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/357578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Timeouts not working using JavaMail 1.4 I'm using JavaMail to send email requests to an SMTP server. I'm setting both "mail.smtp.connectiontimeout" and "mail.smtp.timeout" properties to 5 and 30 seconds respectively and passing both of these to Session.getDefaultInstance(). However, when I go to do the Transport.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/357579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How come iPhone Interface Builder doesn't let me set the X,Y coordinates of a top-level UIView? How come the iPhone Interface Builder doesn't let me set the X,Y coordinates of a top-level UIView? (Meaning, a view whose direct parent is a UIViewController.) The X and Y boxes on the View Size tab are grayed out. I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/357593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is wrong with this query? Can't get ROW_NUMBER() to work SELECT * FROM (SELECT ROW_NUMBER() OVER (ORDER BY hrl.Frn) as Row, hrl.unq, hrl.LcnsId, hc.Business,hc.Name,hc.Phone, hrl.Frn,hrl.CallSign, hrl.gsamarkettypeid, gmt.[Market Type Code] + ' - ' + gmt.gsamarkettype, hrl.gsala...
{ "language": "en", "url": "https://stackoverflow.com/questions/357594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you copy property or constructor-arg values from objects in Spring.NET XML? I believe I came across this a couple months ago, but now I'm having trouble finding the answer. Perhaps someone can just point me to the right section in the documentation? Using Sprint.NET, I'm combining remote XML files into a single...
{ "language": "en", "url": "https://stackoverflow.com/questions/357595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is const_cast safe? I can't find much information on const_cast. The only info I could find (on Stack Overflow) is: The const_cast<>() is used to add/remove const(ness) (or volatile-ness) of a variable. This makes me nervous. Could using a const_cast cause unexpected behavior? If so, what? Alternatively, when i...
{ "language": "en", "url": "https://stackoverflow.com/questions/357600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: ASP.NET MVC controller unit testing boggle I've been going through the various tutorials regarding the right way to unit test controller logic. Take the following action: public ActionResult Login() { //Return the index view if we're still here return View(); } Word on the street is to w...
{ "language": "en", "url": "https://stackoverflow.com/questions/357604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Development of a library in distributed version control system (bazaar) I am relatively new to bazaar (primarily used cvs, then subversion, and at my current job we're using SourceUnsafe). My current development environment is structured like this: \dev (shared repository) \trunk \project1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Viewing registers in a crash dump Is there a way to view the register contents in each stack frame in a crash dump? The registers window seems to contain the registers when the exception occurred but it would be useful to be able to see their contents in each stack frame. A: Depending on the calling convention, you...
{ "language": "en", "url": "https://stackoverflow.com/questions/357627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you find the range of values that integer types can represent in C++? The size and range of the integer value types in C++ are platform specific. Values found on most 32-bit systems can be found at Variables. Data Types. - C++ Documentation. How do you determine what the actual size and range are for your s...
{ "language": "en", "url": "https://stackoverflow.com/questions/357629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Who's Using Cairngorm 2.2 with Imported Web Services? I'm very new to Cairngorm, so apologies for what's probably a simple question: I'm working with a number of WCF services imported into Flex Builder 3 (via Data > Manage Web Services), and I'm wondering how to expose those services to the ServiceLocator in Cairngo...
{ "language": "en", "url": "https://stackoverflow.com/questions/357630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: memcached limitations Has anyone experienced memcached limitations in terms of: * *of objects in cache store - is there a point where it loses performance? *Amount of allocated memory - what are the basic numbers to work with? A: I can give you some metrics for our environment. We run memcached for Win32 on 12...
{ "language": "en", "url": "https://stackoverflow.com/questions/357634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Continue running a php script after page is returned I'm trying to write a script that will create a file on the server then use header() to redirect the user to that file. Then, after about 10 seconds I want to delete the file. I've tried this: header('Location: '.$url); flush(); sleep(10); unlink($url); But the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/357639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Representing repetitive dates Repetitive Dates: Billing cycles come in a lot of different formats, for example: "the first of the month", "third Friday of the month", or "first weekday on or after 21st day after the 13th of the month" (thanks visa!). My goal is to be able to represent these different billing cycles ...
{ "language": "en", "url": "https://stackoverflow.com/questions/357643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Worth Upgrading from Intellij Idea7 to Idea8? I use Intellij Idea 7 for Java dev. My dev is 'limited' to all J2SE features plus light JSP, Servlets, and super light usage of JPA. No J2EE, no massive use of random frameworks, etc. Is it worth upgrading to ver 8? "Worth it" to me means better "core functionality" in...
{ "language": "en", "url": "https://stackoverflow.com/questions/357648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }