text
stringlengths
8
267k
meta
dict
Q: How do I convert from axd to ashx? I'm trying to deploy elmah. For inexplicable reasons, I'm getting an error: .axd files are explicitly forbidden. I've already fixed what I can control (my web.config) and solutions requiring collaboration from the system admin are not available (such as editing machine web.config...
{ "language": "en", "url": "https://stackoverflow.com/questions/360007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How useful is learning GWT? I develop web applications and in my job so far, I have been waging battles with various browsers whenever some JS or CSS quirks happen. I believe using GWT will help me tremendously from what I understand from this description: Writing web apps today is a tedious and error-prone proce...
{ "language": "en", "url": "https://stackoverflow.com/questions/360008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: UITableView, intercepting Edit mode I'm curious if it's possible to intercept the default methods of 'Edit' mode on a UITableView. Typically you get a free 'delete' button if you side swipe a UITableViewCell that has delegate methods associated with it. I'd like to change the delete to some other, arbitrary selector...
{ "language": "en", "url": "https://stackoverflow.com/questions/360013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Crashed SVN repository Today our virtual W2003 server storing our SVN repository (too) became very-very busy. It turned out that it had only 88KB free space left on the C: drive. Not that good. Due to access problems, the only way we could reboot it by killing the busy processes from task manager (McAffee, SqlServer...
{ "language": "en", "url": "https://stackoverflow.com/questions/360016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I set a connection string config programmatically in .net? I'd like to set a connection string programmatically, with absolutely no change to any config files / registry keys. I have this piece of code, but unfortunately it throws an exception with "the configuration is read only". ConfigurationManager.Connec...
{ "language": "en", "url": "https://stackoverflow.com/questions/360024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Hibernate: How to make Hibernate delete records from child table when deleting parent if child is linked to parent with many-to-one? Lets say I have two tables - "child" and "parent" with many-to-one relation. What I need is to delete child entries if parent record is deleted. It is not a problem if I link child tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/360026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How often should you release software updates? Moments ago Jeff Atwood said the following on twitter: Look, I love rapid new software releases, but the frequency of WordPress releases is just ridiculous. Which makes me think, how often should you release software updates? * *Daily? *Weekly? *Monthly? *Yearly...
{ "language": "en", "url": "https://stackoverflow.com/questions/360028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Set Variable from an Array directly into a List of Variables in Java I have a Java method which returns an array of doubles. I would then like to store these values in individual variables in the calling function. Is there an elegant way of doing this in Java. I could write it as this: double[] returnValues = calcul...
{ "language": "en", "url": "https://stackoverflow.com/questions/360030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Split HTML after N words in python Is there any way to split a long string of HTML after N words? Obviously I could use: ' '.join(foo.split(' ')[:n]) to get the first n words of a plain text string, but that might split in the middle of an html tag, and won't produce valid html because it won't close the tags that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: In Inno Setup is it possible to add conditional statements to what in the [Run] section gets executed? Alternatively is it possible to manually update the built in progress bar? Basically I have 2 MSIs included and using Inno Setup as a bootstrapper, and depending on user input one or both of the MSIs are to be inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/360037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Which is faster, Hash lookup or Binary search? When given a static set of objects (static in the sense that once loaded it seldom if ever changes) into which repeated concurrent lookups are needed with optimal performance, which is better, a HashMap or an array with a binary search using some custom comparator? Is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/360040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Web front-end for SQL Server Database Mail SQL Server 2005 introduced Database Mail for sending e-mail messages from the SQL Server Database Engine in a robust fashion. Database Mail comes with a number of interesting views like sysmail_allitems, sysmail_sentitems, sysmail_faileditems, sysmail_unsentitems, sysmail_m...
{ "language": "en", "url": "https://stackoverflow.com/questions/360047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an alternative to hyper-indented code? I often run into code that has to perform lots of checks and ends up being indented at least five or six levels before really doing anything. I am wondering what alternatives exist. Below I've posted an example of what I'm talking about (which isn't actual production ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SQL Server tempdb optimization tips for a new server? I am planning a fresh installation of SQL Server 2005 on a new machine, which I have to order. I know that tempdb tuning is very important to the overall performance of the SQL Server instance. I've read that it's best practice to create as many tempdb files as y...
{ "language": "en", "url": "https://stackoverflow.com/questions/360088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Virtual PC Hard Disk spanning multiple files? I've spent the past few hours searching, but can't seem to find the answer. Hopefully somebody here knows. I want to use Virtual PC 2007 to create a virtual machine, but I'd like the hard disk for the VM to be on a USB hard drive. I'm not worried about the performance ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I skip MIME-parsing to get an attachment? I am new here so first of all my greetings to you I am writing an application to run on my Windows Mobile (Pocket PC). FYI, I am using VB.NET. My idea is to use my e-mail account with my provider, who gives me a lot GB:s to use, as a virtual online storage disk. In a few...
{ "language": "en", "url": "https://stackoverflow.com/questions/360097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way cast an object back to it original type without specifing every case? I have an array of different type objects and I use a BinaryWriter to convert each item to its binary equivalent so I can send the structure over the network. I currently do something like for ( i=0;i<tmpArrayList.Count;i++) { o...
{ "language": "en", "url": "https://stackoverflow.com/questions/360111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IE6: window.onresize works on IIS, blows up on asp.net Dev Server Update 1: Cannot reproduce this on a co-worker's computer (same setup as mine) so I assume this is a problem with my workstation and not a general one. I'd appreciate it if someone would close this question as I don't have enough reputation to do it...
{ "language": "en", "url": "https://stackoverflow.com/questions/360116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get the response headers from a WebService call? Is there a way to get the responde headers from a web service call on .net? A: Write the following code from inside of the WebMethod (Web Service Method) You may use a for loop to iterate through all the keys value pairs in the Header int Count = HttpContext.Current....
{ "language": "en", "url": "https://stackoverflow.com/questions/360129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: disable usercontrol on the load of master page I am using master page on some pages. And that master page is loading the user control. So I want to disable or enable user control on some page load which has master page. Is there anyway can I disable User control on master page Page_load() <div class="ucTabCtrl" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Agile Development 101 Video I've been trying to find a good video that I can show at a "Lunch and Learn" on Agile Development / Scrum. Our organization is primarily Waterfall and most people have never even heard of Agile development let alone have any concrete knowledge of the topic. There are plenty of great resou...
{ "language": "en", "url": "https://stackoverflow.com/questions/360139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to connect to local instance of SQL Server 2008 Express I just installed SQL Server 2008 Express on my Vista SP1 machine. I previously had 2005 on here and used it just fine with the old SQL Server Management Studio Express. I was able to connect with no problems to my PC-NAME\SQLEXPRESS instance (no, PC-NAME is...
{ "language": "en", "url": "https://stackoverflow.com/questions/360141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "229" }
Q: Can you create a "Comments" section in a SharePoint wiki? I'm trying to create a Comments section in my wiki. There's one solution on the Web involving the creation of a "column," but that seemed to just create a second text block under the main article block. This is impractical, because subsequent edits don't cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/360148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Saving Program Data I'm looking for some information and a little history. I am writing a program and I want to save some data without using a database. I'm assuming I could use XML but what else can I use? How do you save data to files and then retrieve them without XML and without plain text? What is Binary format...
{ "language": "en", "url": "https://stackoverflow.com/questions/360151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Native C++ SQL Framework I need a high performance framework in native C++ for SQL. I need it to be able to use MySQL, Oracle and Microsoft SQL Server and provide abstraction from the lower level problems/idiosyncrasies found in every different syntax required for by DBMS from different vendors. Something like LINQ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Case sensitive validation in Excel from Named List I'm using VBA in Excel 2003 to apply validation to apply validation to a given range of cells from a named list. The user can then select from a dropdown list of values. Edit: Here's how I'm setting the validation, given a named range called 'MyLookupList' W...
{ "language": "en", "url": "https://stackoverflow.com/questions/360158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mixing Qt and Boost I'm looking at starting a project in C++ using the Qt 4 framework (a cross-platform GUI is required). I've heard great things about the Boost libraries from friends and online. I've started reading up on both and wanted to ask a cursory question before I got too deep: Are these two development ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: How to obtain a copy from a gridview? Im trying to get a completly data copy from a gridview, itryed clone(), tryed cast DataView from DataSouce, but always get nulls or cant get the data, please exists a way to copy data from gridview, modified it and then reload it? or modifyng directly some rows in the gridview? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Toolbar to host Items in an ItemsControl I'd like to host custom items in a ToolBar in an ItemsControl. However, the buttons I add are rendered below the toolbar and as regular buttons rather than in the ToolBar with the ToolBar look and feel. This can be reproduced with a few lines of Xaml (I've excluded t...
{ "language": "en", "url": "https://stackoverflow.com/questions/360167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change Key/Value pairs in Web.config How can I change a key's value in web.config which is defined between appSettings tags at code behind in asp.net Thanks.. Regards... A: As of .Net 2.0 there is an API for modifying the web config at runtime. Note however that any changes made to the web config will cause the we...
{ "language": "en", "url": "https://stackoverflow.com/questions/360177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best way to retrieve hierarchical data from database I have to store blog style comments in a database. Each comment can have a parent one. I am doing it with a column called "parentComment" that has a null value when it is a top level comment or have a value if it is a response to another comment. What is the most...
{ "language": "en", "url": "https://stackoverflow.com/questions/360188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: 2d array error c++ I'm trying to run a c++ 2d array (pretty simple file) and it works but an error (at least I think it's an error) appears on the end. The code for the array is; int myArray[10][10]; for (int i = 0; i <= 9; ++i){ for (int t = 0; t <=9; ++t){ myArray[i][t] = i+t; //This will give each e...
{ "language": "en", "url": "https://stackoverflow.com/questions/360195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I kill background processes / jobs when my shell script exits? I am looking for a way to clean up the mess when my top-level script exits. Especially if I want to use set -e, I wish the background process would die when the script exits. A: function cleanup_func { sleep 0.5 echo cleanup } trap "exit...
{ "language": "en", "url": "https://stackoverflow.com/questions/360201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "263" }
Q: Enforcing serializable from an interface without forcing classes to custom serialize in C# I have an interface that defines some methods I would like certain classes to implement. public interface IMyInterface { MethodA; MethodB; } Additionally I would like all classes implementing this interface to be ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/360208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: SQLServer2005: Save complete results of query in a file for some long text data types Lets say a have a table t (id int, someVeryLongText text) and want to store the result of a query: select someVeryLongText from t where id = 1 in the file. In Managemant Studio when I select Tools->Options->QueryResults and choos...
{ "language": "en", "url": "https://stackoverflow.com/questions/360211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sharepoint Conditional fields in Edit.aspx I would like to display certain meta data fields in the edit form based on the value of a fields. Example: Users upload a document to the Doclib to be approved by there manager. They are allowed to change the meta data Name,Case No, Location until the item is approved by t...
{ "language": "en", "url": "https://stackoverflow.com/questions/360216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I skip to a specific input line in Perl? I want to skip to the first line that contains "include". <> until /include/; Why does this not work? A: <> is only magic in a while(<>) construct. Otherwise it does not assign to $_, so the /include/ regular expression has nothing to match against. If you ran this...
{ "language": "en", "url": "https://stackoverflow.com/questions/360219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: JMeter and Java web service stop after hours I am trying to test a stress test a web service using JMeter but the requests keep stopping after around 4 hours. I submit 10 requests per second from JMeter. The web service is still functioning properly after JMeter completes. I am using only 1 soap request and I do no...
{ "language": "en", "url": "https://stackoverflow.com/questions/360225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I run an Emacs hook when a buffer is modified? Building on Getting Emacs to untabify when saving certain file types (and only those file types) , I'd like to run a hook to untabify my C++ files when I start modifying the buffer. I tried adding hooks to untabify the buffer on load, but then it untabifies all m...
{ "language": "en", "url": "https://stackoverflow.com/questions/360232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: XML Read specific Node I want to read an specific xml node and its value for example <customers> <name>John</name> <lastname>fetcher</lastname> </customer> and my code behind should be some thing like this (I don't know how it should be though): Response.Write(xml.Node["name"].Value) As I said it is just an examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/360234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: path-finding through smoke I once found a paper on path finding through a simulation that involved smoke(fluids in general). Has anyone read anything like this ? I can't remember the name of the paper or the author. If you know a paper like this please tell me A: This looks like such a paper: Realistic Human Path ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing Alpha value on fly for a 3D RGBA texture I am using 3D textures for volume rendering of raw data. The raw data can be Luminance-Alpha or RGBA. Currently, I read the raw data and set the alpha value such that the furthest row (or slice)would be opaque (Alpha = 1) and the nearest slice would be "transparent" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Output library project XML to asp.net bin folder on build? I have a visual studio 2005 solution which has a web application and a class library project. The web application has a reference to the library project. I'd like the library project's code documentation XML to output to the web application's bin folder, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/360241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use a closure on an event handler (ie, TButton OnClick) If I try to use a closure on an event handler the compiler complains with : Incompatible types: "method pointer and regular procedure" which I understand.. but is there a way to use a clouser on method pointers? and how to define if can? eg : Button1.Onc...
{ "language": "en", "url": "https://stackoverflow.com/questions/360254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Autocomplete - Append and getting only the text the user has inputed on combobox I have a ComboBox that I set up like this: this.cmbCustomerJob.DisplayMember = "display"; this.cmbCustomerJob.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.cmbCustomerJob.AutoCompleteSource = AutoCompleteSource.ListItems; this...
{ "language": "en", "url": "https://stackoverflow.com/questions/360257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SFTP C++ library? Can anyone recommend a decent SFTP library for use with Windows C++ apps? If a cross-platform one is available then all the better, but it's not essential. It's for use with a commercial application, so paying for something isn't an issue. I am using the superb Ultimate TCP/IP library which suppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/360259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What are the alternatives to comparing the equality of two objects? http://leepoint.net/notes-java/data/expressions/22compareobjects.html It turns out that defining equals() isn't trivial; in fact it's moderately hard to get it right, especially in the case of subclasses. The best treatment of the issues is...
{ "language": "en", "url": "https://stackoverflow.com/questions/360265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL Server 2005 Change Auditing Is there a built in way in SQL Server 2005 to audit things specifically like deleting a stored procedure? Is there a history table that I can query? We have a mystery sproc that has disappeared a few times now. A: You can build this using DDL triggers: http://msdn.microsoft.com/en-us...
{ "language": "en", "url": "https://stackoverflow.com/questions/360273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to dump entire objects to a log in C#? So for viewing a current object's state at runtime, I really like what the Visual Studio Immediate window gives me. Just doing a simple ? objectname Will give me a nicely formatted 'dump' of the object. Is there an easy way to do this in code, so I can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "181" }
Q: What are the best Java code generation tools or plugins to use in Eclipse? I'm aware of the built in code generation and refactoring one can do with the "Source" and "Refactor" menu items in Eclipse. I also use the Commonclipse plugin to easily make use of the Apache Commons classes that build hashCode, toString, e...
{ "language": "en", "url": "https://stackoverflow.com/questions/360282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Controller inheritance in Cake PHP? Has anyone attempted this? Is it possible, and if so, what kind of problems will I run into if I try to accomplish it? A: If you goal is to share logic between controllers: * *add the logic to the AppController to share it with all the controllers in your app. *make a compone...
{ "language": "en", "url": "https://stackoverflow.com/questions/360288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Looking for an alternative to windows messages used in inter-process communication I a have a multithread application (MIDAS) that makes uses of windows messages to communicate with itself. MAIN FORM The main form receives windows messages sent by the RDM LogData(‘DataToLog’) Because windows messages are used they ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Can't see all tables in datasource I'm using Birt 3.4.1. I was able to create a datasource.. but I can't see all the tables in my database. When I try to create a database I see 1/3 of my tables in the Oracle 10g database. A: Are all the tables in the same schema?
{ "language": "en", "url": "https://stackoverflow.com/questions/360294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multicore + Hyperthreading - how are threads distributed? I was reading a review of the new Intel Atom 330, where they noted that Task Manager shows 4 cores - two physical cores, plus two more simulated by Hyperthreading. Suppose you have a program with two threads. Suppose also that these are the only threads doing...
{ "language": "en", "url": "https://stackoverflow.com/questions/360307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: CRUD vs AGUD vs AFUD...what's your naming convention of preference Do you write createSomething() or addSomething()? Do you write readSomething(), getSomething() or fetchSomething()? This is totally a petty gripe. In the meeting room we refer to it as CRUD, but in actual code, it's becoming AGUD. What's your naming ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Using ReSharper Test Runner to run MSTest Unit Tests I need to use the ReSharper Unit Test Runner to run my MSTest Unit Tests on VS 2008. I have heard of using "Gallio" to do this but I don't know what Gallio is (it seemed like some all purpose VS extensibility framework). Does anyone know the best way to run MSTe...
{ "language": "en", "url": "https://stackoverflow.com/questions/360322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ADO.NET Data Services I'm looking at using ADO.NET Data Services with silverlight. I've been looking at the Data Model and Data Service Implementations (ADO.NET Data Services/Silverlight) topic on msdn. In their example, they build a data model generated from a database, and query entities in the datamodel. In m...
{ "language": "en", "url": "https://stackoverflow.com/questions/360329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multi core programming I want to get into multi core programming (not language specific) and wondered what hardware could be recommended for exploring this field. My aim is to upgrade my existing desktop. A: If at all possible, I would suggest getting a dual-socket machine, preferably with quad-core chips. You can...
{ "language": "en", "url": "https://stackoverflow.com/questions/360330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the necessity of IP-in-IP? There is even a standard for IP in IP encapsulation. What is the use case here? I can understand stuff like TCP over DNS, where IP might be unavailable, but if you can do IP in IP, couldn't you simply do regular IP? A: Obvious example: Your gateway drops packets to host A, but you...
{ "language": "en", "url": "https://stackoverflow.com/questions/360331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Image Uploading with Classic ASP Hey I was wondering if there were any way to upload images in ASP? I am working on my school's server and I don't really know what is installed and what isn't I Googled a little and came up with "Persits.Upload.1" I tried to instantiate the object with this line: Set Upload = Serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/360334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Database data upload design question I'm looking for some design help here. I'm doing work for a client that requires me to store data about their tens of thousands of employees. The data is being given to me in Excel spreadsheets, one for each city/country in which they have offices. I have a database that conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/360335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C#/Java programmer learning C++ again. Project file structure? As the question states, i am a C#/Java programmer who is interested in (re)learning C++. As you know C#/Java have a somewhat strict project file structure (especially Java). I find this structure to be very helpful and was wondering if it is a) good prac...
{ "language": "en", "url": "https://stackoverflow.com/questions/360338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Git repository with multiple users on Ubuntu I have an existing bare git repository located in /home/myaccount/git/project. I am currently using it over ssh from my local machine without any problems. I want to add a second user on the server which only shall access to this git repository (maybe move the repo outsid...
{ "language": "en", "url": "https://stackoverflow.com/questions/360348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Any way to convert a regular string in ActionScript 3 to a ByteArray of Latin-1 Character Codes? I am having no problem converting a string to a byteArray of UTF-16 encoded characters, but the application I am trying to communicate with (written in Erlang) only understands Latin-1 encoding. Is there any way of produ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Castle Windsor - Null constructor argument How can I pass a null constuctor argument using Castle Windsor? I thought the following would work <parameters> <repository>null</repository> <message>null</message> </parameters>` A: If you want them to be null, it means that they are non-essential dependencies. By h...
{ "language": "en", "url": "https://stackoverflow.com/questions/360362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Save UIImage to photos album and then open Photos app Currently I am saving a UIImage to the photos album using UIImageWriteToSavedPhotosAlbum, which works fine. Is there a way to then open the Photos app showing the just-saved photo? (I assume my app must close before opening Photos, which is fine.) Simply opening ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Responsive lightweight remote GUI connection Currently I know several methods of connecting to a GUI remotely, or running GUI applications remotely: * *Microsoft Terminal Services (only works for remote windows; installation); *VNC (it's slow); *XDMCP (requires a remote X server running, has no session persista...
{ "language": "en", "url": "https://stackoverflow.com/questions/360366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Lambda function for classes in python? There must be an easy way to do this, but somehow I can wrap my head around it. The best way I can describe what I want is a lambda function for a class. I have a library that expects as an argument an uninstantiated version of a class to work with. It then instantiates the cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/360368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: WPF: Binding a listviewitem's background colour to a hex String property of an object Hey. I have an object that has a string property called BackgroundColor. This string is the hexidecimal representation of a color. I cannot change this object. I'm binding a collection of these objects to a listView. What I would l...
{ "language": "en", "url": "https://stackoverflow.com/questions/360369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Castle Windsor: How to break up my wire-up xml file into multiple files? I remember seeing in a sample a while ago that it is possible to break up a windsor configuration file into multiple ones and reference them from the app.config in a way that they get parsed automatically. Of course I didn't bookmark it and now...
{ "language": "en", "url": "https://stackoverflow.com/questions/360373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I activate/deactivate a module's view after its initialization? This relates to Composite Application Guidance for WPF, or Prism. I have one "MainRegion" in my shell. My various modules will be loaded into this main region. I can populate a list of available modules in a menu and select them to load. On the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Schedule Task with spaces in the path We are scheduling a task programatically. However, the executable to be scheduled could be installed in a path that has spaces. ie c:\program Files\folder\folder\folder program\program.exe When we provide this path as a parameter to the Tasjk Scheduler it fails to start because ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Updating an imported .csv in Hyperion v8.3 I have a csv imported into my Hyperion v8.3 bqy file. I have some custom columns and a pivot already created. I just want to refresh the data. In the past, I would hit Process Current and it would direct me to my computer and I could select the csv file to update from. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read/Write/Modify XML I have a XML File like that <?xml version="1.0" encoding="utf-8" ?> <Configurations> <EmailConfiguration> <userName>xxxx</userName> <password>xxx</password> <displayName>xxxxx</displayName> <hostAddress>xxxx</host...
{ "language": "en", "url": "https://stackoverflow.com/questions/360409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Defining styles for combinations of classes Is there a way to define styles for a combination of classes? For example, I'd like my HTML to look like this, but the output to render in the appropriate color: <span class="red">Red Text</span><br/> <span class="green">Green Text</span><br/> <span class="red green">Yell...
{ "language": "en", "url": "https://stackoverflow.com/questions/360421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does GetProperty fail to find it? I'm trying to use reflection to get a property from a class. Here is some sample code of what I'm seeing: using System.Reflection; namespace ConsoleApplication { class Program { static void Main(string[] args) { PropertyInfo[] tmp2 = typeof(...
{ "language": "en", "url": "https://stackoverflow.com/questions/360422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Can I open a dropdownlist using jQuery For this dropdownlist in HTML: <select id="countries"> <option value="1">Country</option> </select> I would like to open the list (the same as left-clicking on it). Is this possible using JavaScript (or more specifically jQuery)? A: This is spruced up from the answers just ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/360431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: c++ 3d arrays I'm trying to run a 3d array but the code just crashes in windows when i run it, here's my code; #include <iostream> using namespace std; int main(){ int myArray[10][10][10]; for (int i = 0; i <= 9; ++i){ for (int t = 0; t <=9; ++t){ for (int x = 0; x <= 9; +...
{ "language": "en", "url": "https://stackoverflow.com/questions/360449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTPS on iPhone I need to be able to use https to connect to a server and I'm wondering if there's recommended way of doing this on the iPhone that's NOT: - an undocumented api call - does not require manually storing certificates in the app bundle Thanks all. A: NSURLRequest and NSURLConnection are what you're loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/360452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How often do you use pseudocode in the real world? Back in college, only the use of pseudo code was evangelized more than OOP in my curriculum. Just like commenting (and other preached 'best practices'), I found that in crunch time psuedocode was often neglected. So my question is...who actually uses it a lot of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/360454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Maintain runtime settings across environments in version control? We are investigating the Magento ecommerce platform and refining our deployment and version control strategy. Right now, we are looking for the best way to keep multiple environments in sync (e.g. QA/Development environments/Production) when it comes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting the location of a .tt file in T4 Using T4 I want to generate some code based on examining what files are in a directory relative to the template file being executed. Is there a way in c# to identify what the path of the current template file is? A: * *You need to set the hostspecific="true" property of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/360462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Usercontrols which don't trigger events for visitors This UpdatePanel is contained by an UserControl. When the LinkButton is pressed arow should be added in another GridView. When an user is logged in this control is working well. The problems appears when an user is not logged in and try to push that button. No eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/360466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL - Set default value for field as a string concatenation function I have a table that looks a bit like this actors(forename, surname, stage_name); I want to update stage_name to have a default value of forename." ".surname So that insert into actors(forename, surname) values ('Stack', 'Overflow'); would produ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What's the best way to model an unordered list (i.e., a set)? What's the most natural way to model a group of objects that form a set? For example, you might have a bunch of user objects who are all subscribers to a mailing list. Obviously you could model this as an array, but then you have to order the elements and...
{ "language": "en", "url": "https://stackoverflow.com/questions/360473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing Transparent Text on Image How can I write a semi transparent text on an Image (Jpg,Bmp), or a transparent text (color as same background Image) but with a shadow, something I want to do to watermark the images. I want to accomplish that using Delphi win32. A: One option is to use the AlphaBlend function in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ISO 9797-1 Algorithm 1 [CBC-MAC] in C# It seems that there're 6 variations to CBC-MAC algorithm. I've been trying to match the MAC algorithm on the PINPad 1000SE [which per manual is ISO 9797-1 Algorithm 1]. I got an excellent start from here. And I coded the algorithm as below: public static byte[] CalculateMAC(th...
{ "language": "en", "url": "https://stackoverflow.com/questions/360480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Using master pages with multiple entities I'm beginning to plan a complete redesign of our departments intranet pages. As it stands, every department gets their own folder within root. They all share the same look and feel but don't use CSS everything in each file is straight up static text. Basically, if a change h...
{ "language": "en", "url": "https://stackoverflow.com/questions/360481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Handling termination in Fast CGI on Windows IIS servers Finding windows FastCGI help is proving very difficult. Any help would be greatly apprciated. The concept of FastCGi is that the process survives a request allowing you to maintain state between calls. This means you do not have the overhead of opening databas...
{ "language": "en", "url": "https://stackoverflow.com/questions/360483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how do I strip white space when grabbing text with jQuery? I'm wanting to use jQuery to wrap a mailto: anchor around an email address, but it's also grabbing the whitepace that the CMS is generating. Here's the HTML I have to work with, the script as I have it and a copy of the output. HTML <div class="field field-t...
{ "language": "en", "url": "https://stackoverflow.com/questions/360491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "186" }
Q: Regular expression on Yahoo! pipes I'm fooling around with Yahoo! pipes and I'm hitting a wall with some regular expression. Now I'm familiar with regular expressions from Perl but the rules just seem to be different in Yahoo! pipes. What I'm doing is fetching a page and trying to turn it into a feed, my regex for...
{ "language": "en", "url": "https://stackoverflow.com/questions/360492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Enforcing Input Parameters to a Method without a bunch of if's at the beginning of the method? I wonder if there is a less verbose way to do Input Verification in my methods. For example, i commonly write stuff like this: public string SomeFunction(string param1, int param2) { if(string.IsNullOrEmpty(param1)){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL Server 2005 -Seeing SPs executing inside SPs I am wondering if it is possible to see stored procs that are being executed by other stored procs in Sql Server Profiler, is it possible, and if so how? A: If you profile using the SP::Starting event, you can see all the stored procedures that are executed. You want...
{ "language": "en", "url": "https://stackoverflow.com/questions/360510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I change my user account domain in Team Foundation Server We are migrating from one domain to another, and I'd like to be able to keep my same workspace, user settings, history, etc. Is there any way to change just my domain or log in name within Team Foundation Server? A: I don't know the answer, but I do k...
{ "language": "en", "url": "https://stackoverflow.com/questions/360512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unit testing with Spring Security My company has been evaluating Spring MVC to determine if we should use it in one of our next projects. So far I love what I've seen, and right now I'm taking a look at the Spring Security module to determine if it's something we can/should use. Our security requirements are pretty...
{ "language": "en", "url": "https://stackoverflow.com/questions/360520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "173" }
Q: Eclipse PDT HTML attribute assignment operator colour? I would like to know how to change the colour of the equality sign and double quotes for html documents in the eclipse PDT IDE. I can change most colours in Preferences -> Web & XML -> HTML Files -> syntax coloring, but can't change the characters = or " e.g. in...
{ "language": "en", "url": "https://stackoverflow.com/questions/360530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server UNDO I am a part time developer (full time student) and the company I am working for uses SQL Server 2005. The thing I find strange about SQL Server that if you do a script that involves inserting, updating etc there isn't any real way to undo it except for a rollback or using transactions. You might say ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How Do I Change the File Naming Convention for Scripted Objects Files in SQL2005? SQL Server 2005 Express Edition SP2 supports scripting of objects into separate files. By default, the filenames include the name of the object's owner, the name of the SQL object followed by the object type. For example, dbo.Employee...
{ "language": "en", "url": "https://stackoverflow.com/questions/360569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LinkageError: loader constraints violated when linking javax/xml/namespace/QName in Websphere6.1 using resteasy I am getting this error when making a web services call. I couldn't figure out a workround for this. ANy help is greatly appreciated. related library I have is: axis-1.3.jar axis-jaxrpc-1.3.jar axis-saaj-1...
{ "language": "en", "url": "https://stackoverflow.com/questions/360590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need I to put overload or override words after the constructor declaration in derived class? I have a class hierarchy, this one: type TMatrix = class protected //... public constructor Create(Rows, Cols: Byte); //... type TMinMatrix = class(TMatrix) private procedure Allocate; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }