text
stringlengths
8
267k
meta
dict
Q: What tool can do a visual comparison of two sections within the same file? Good file comparison tools were already discussed to the pain, but my problem is more exotic. Is there any visual text comparison tool (like WinMerge) that would allow me easily do visual comparison on two sections within the same file? I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/361809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Where do I place code that fires after the page is returned to the browser I want to send an Email message after a page is returned to the browser. Where do I place this send Email code so that it does not delay the page that is returned to the browser? A: ASP.NET pages have an unload event that fires after the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/361816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mixing Secure and Non-Secure Content on Web Pages - Is it a good idea? I'm trying to come up with ways to speed up my secure web site. Because there are a lot of CSS images that need to be loaded, it can slow down the site since secure resources are not cached to disk by the browser and must be retrieved more often ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can I specify a non strict method requirement for child classes? I have a base class in which I want to specify the methods a child class must have, but not implement them itself. However, the methods in a child class may have a different number of paramaters to the definition in the base class. Having tried this wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/361832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Virtual addresses size computing I am stuck on this problem which I am studying for an exam tomorrow. (I understand the concept of virtual vs. physical addresses, page frames, address bus, etc.) If you're using 4K pages with 128K of RAM and a 32 bit address bus, how large could a virtual address be? How many regula...
{ "language": "en", "url": "https://stackoverflow.com/questions/361835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are some good examples showing that "I am not the user"? I'm a software developer who has a background in usability engineering. When I studied usability engineering in grad school, one of the professors had a mantra: "You are not the user". The idea was that we need to base UI design on actual user research ra...
{ "language": "en", "url": "https://stackoverflow.com/questions/361838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: member management by admin using php Sorry for asking an implement my feature question type question last time. I am new to Stackoverflow.com and also to php that's why. What I was trying to ask is: I have made a admin account. Members have registration page so a member will register. When user registers in the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/361839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Recovering from an unfortunate "svn copy" This afternoon, upon noticing a broken build and the fact that some files looked like very old versions (about 2 weeks old), I checked the svn log. Apparently just this afternoon, 1 of the developers did an "svn copy" of a directory from an older revision to the same direct...
{ "language": "en", "url": "https://stackoverflow.com/questions/361840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UINavigationController Push Views Sorry - this may be an easy question, I'm new to iPhone development and still wrapping my head around Views vs ViewControllers. I have a NavigationViewController and I can push Views using the following method in the RootViewController which is connected to a Bar Button Item: - (IBA...
{ "language": "en", "url": "https://stackoverflow.com/questions/361852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set up a socket for UDP multicast with 2 network cards present? I'm trying to get udp multicast data using sockets and c++ (c). I have a server with 2 network cards so I need to bind socket to specific interface. Currently I'm testing on another server that has only one network card. When I use INADDR_ANY I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/361854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to gracefully restart django running fcgi behind nginx? I'm running a django instance behind nginx connected using fcgi (by using the manage.py runfcgi command). Since the code is loaded into memory I can't reload new code without killing and restarting the django fcgi processes, thus interrupting the live websi...
{ "language": "en", "url": "https://stackoverflow.com/questions/361855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Coloring of Select html element by jquery I need some help with jQuery script again :-) Just trying to play with jQuery..I use script below for coloring options of select element. It works in pure html, but in my asp.net 2.0 (Master + Content pages) does not. Script is placed in Head section. function pageLoad(){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP - Function/variable naming I have read a lot of popular standards manuals for open source PHP projects. A lot enforce underscores for variables spaces, and a lot enforce camelCase. Should global functions and variables be named differently to class methods/properties? I know the most important thing is consisten...
{ "language": "en", "url": "https://stackoverflow.com/questions/361869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Dealing with god objects I work in a medium sized team and I run into these painfully large class files on a regular basis. My first tendency is to go at them with a knife, but that usually just makes matters worse and puts me into a bad state of mind. For example, imagine you were just given a windows service to wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/361873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Python Canvas library for geometric shapes I'm looking for a Python library for creating canvases for manipulating geometric shapes. Specifically I need the ability to create arbitrary polygons and place them on the canvas, the polygons need to have the ability to be transparent/have an alpha channel, I need to be a...
{ "language": "en", "url": "https://stackoverflow.com/questions/361889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is a keyframed transition possible in Core Animation? I know that keyframed transitions are possible in Core Animation via setting the path property on the CAAnimation instance. However, CATransition does not seem to have this functionality. Does anyone know any other ways to control the transition apart from settin...
{ "language": "en", "url": "https://stackoverflow.com/questions/361890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP is generating a numeral "1" on output of a function. I've never seen it do this before function holiday_hitlist($tablename, $hit_user){ global $host, $user, $pass, $dbname; $link = mysql_connect($host, $user, $pass, $dbname); print "<div class=\"hit_list\"> <h3>My Holiday Hitlist</h3> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any native way in ASP.NET to do a "success message"? Say you have something like an ASP.NET ASP:DetailsView to show and edit a single record in a database. It's simple to record the error cases... you add validation and a validation summary. When your update form fails validation it naturally makes noise: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Naive Bayesian spam filtering effectiveness How effective is naive Bayesian filtering for filtering spam? I heard that spammers easily bypass them by stuffing extra non-spam-related words. What programming techniques can you use with Bayesian filters to prevent that? A: Paul Graham was the guy to really introduce ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best crash reporting framework for .NET desktop applications? I've got a couple simple Windows Forms apps that I'd like to add crash reporting to. Something that will give me info on what crashes are happening on user's machines (wrt my app, of course), including stack traces, logs, and screenshots, and a UI compone...
{ "language": "en", "url": "https://stackoverflow.com/questions/361918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: List Manipulation in C# using Linq using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace ConsoleApplication1 { public class Class1 { static void Main(string[] args) { List<Car> mylist = new List<Car>(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: 1 Parent with 2 Child Drop Down I am trying to create 1 Parent Drop Down, that has 2 dependent child drop down lists using JAVASCRIPT. My html page is at - http://www.larkgrove.com/entryform/entryform.html I am using the Dynamic Options Lists / Dependent Selects: http://www.javascripttoolbox.com/lib/dynamicoptionlis...
{ "language": "en", "url": "https://stackoverflow.com/questions/361922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do sites like Hubspot track inbound links? Are all these types of sites just illegally scraping Google or another search engine? As far as I can tell ther is no 'legal' way to get this data for a commercial site.. The Yahoo! api ( http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html ) is only for no...
{ "language": "en", "url": "https://stackoverflow.com/questions/361930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to Instantiate ObjectFrame in VB.NET I am trying to reach methods and properties of ObjectFrame through vb.net. But when I declared this as Dim objOLEObject As ObjectFrame and then trying to instantiate it as ObjOLEObject = New ObjectFrame it shows error like: "429: Retriveing the COM class factory for compo...
{ "language": "en", "url": "https://stackoverflow.com/questions/361938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Does RTP use UDP instead of TCP? I wanted to know why UDP is used in RTP rather than TCP ?. Major VoIP Tools used only UDP as i hacked some of the VoIP OSS. A: As DJ pointed out, TCP is about getting a reliable data stream, and will slow down transmission, and re-transmit corrupted packets, in order to achieve ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Techniques for data comparison between different schemas Are there techniques for comparing the same data stored in different schemas? The situation is something like this. If I have a db with schema A and it stores data for a feature in say, 5 tables. Schema A -> Schema B is done during an upgrade process. During t...
{ "language": "en", "url": "https://stackoverflow.com/questions/361945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: flash player loads movie locally, like dead fish on remote I am trying to load a flash player onto an html page. The page is housed in my root folder. The flv and swf are both in a folder titled "videos". The user forum located on the website that created the flash component offered this...make sure the path is poi...
{ "language": "en", "url": "https://stackoverflow.com/questions/361951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MSBuild maxcpucount > 1 Causes build errors I'm trying to build about 600 projects some are .net 2.0, some are 3.5. I'm using Windows 2003 Enterprise Edition 32 bit with all the latest windows updates. Builds fine when maxcpucount is 1. If I bump it up to try and improve performance it get reference errors. When ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Hole in a Polygon I need to create a 3D model of a cube with a circular hole punched at the center of one face passing completely through the cube to the opposite side. I am able to generate the vertices for the faces and for the holes. Four of the faces (untouched by the hole) can be modeled as a single triangle st...
{ "language": "en", "url": "https://stackoverflow.com/questions/361966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to create a cmdlet? I have written my program in c# .net. I want to convert it in to a powershell cmdlet. I was instructed to use pssnapin and getproc programs. Can anyone plz help me out.. Regards Arun A: To create a PowerShell cmdlet I would recommend you read Easy Windows PowerShell cmdlet development and de...
{ "language": "en", "url": "https://stackoverflow.com/questions/361973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Setting the default Java character encoding How do I properly set the default character encoding used by the JVM (1.5.x) programmatically? I have read that -Dfile.encoding=whatever used to be the way to go for older JVMs. I don't have that luxury for reasons I wont get into. I have tried: System.setProperty("file.en...
{ "language": "en", "url": "https://stackoverflow.com/questions/361975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "401" }
Q: Average time complexity of quicksort vs insertion sort I'm lead to believe that quick sort should be faster than insertion sort on a medium size unorderd int array. I've implemented both algorithms in java and I notice quicksort is significantly slower then insertion sorrt. I have a theory: quiksort is being slow...
{ "language": "en", "url": "https://stackoverflow.com/questions/361998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I extract or change links in HTML with Perl? I have this input text: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body><table cellspacing="0" cellpadding="0" border="0" align="center" width="603"> <tbody><tr> <td><table cellspacing="0" cellpadding="0" border="0...
{ "language": "en", "url": "https://stackoverflow.com/questions/362000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linq2SQL Reference Types I have an object with a NameValueCollection property which I'm managing with Linq2SQL. I was going to serialise it to an XML column (xelement) in the DB. My problem is I don't really have a hook to convert it to XML on save with Linq2SQL. I believe I can use the OnLoaded partial method to...
{ "language": "en", "url": "https://stackoverflow.com/questions/362004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I extract numeric data from a text file? I want the Perl script to extract a data from a text file and save it as another text file. Each line of the text file contains an URL to a jpg like "http://pics1.riyaj.com/thumbs/000/082/104//small.jpg". I want the script to extract the last 6 numbers of each jpg URL...
{ "language": "en", "url": "https://stackoverflow.com/questions/362032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Curved corner border for a div I need to build a div with curved corner border, with out using any images in the corner. Is it possible? I dont want to insert curved images in the corner, Please help me regarding this. A: If you want to rely on webkit and mozilla browsers, you can use the following css commands: .r...
{ "language": "en", "url": "https://stackoverflow.com/questions/362038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What happens when WebClientProtocol Timeout occurs We have a client application that has reference to a webservice. We had set the timeout property on the webclientprotocol object to 50 (ms) and wanted to observe what goes on. We tied up a long running webmethod that returns a huge DataSet to the client. When the de...
{ "language": "en", "url": "https://stackoverflow.com/questions/362042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL ENUM type vs join tables My requirement A table needs to maintain a status column. This column represents one of 5 states. initial design I figured I can just make it an integer column and represent the states using a numeric value. * *0 = start *1 = running *2 = crashed *3 = paused *4 = stopped Sinc...
{ "language": "en", "url": "https://stackoverflow.com/questions/362044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Setting up a Maven repository using SourceForge's file servers Is it possible to host a Maven repository that serves the artifacts (at least the jar files) from SourceForge's file release system (since they are already there and SF provides download statistics and such)? All the repositories I have seen use the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/362055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: What is the Big-O of a nested loop, where number of iterations in the inner loop is determined by the current iteration of the outer loop? What is the Big-O time complexity of the following nested loops: for (int i = 0; i < N; i++) { for (int j = i + 1; j < N; j++) { System.out.println("i = " + i + " j =...
{ "language": "en", "url": "https://stackoverflow.com/questions/362059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: Windows not sizable and without caption I want to to create a window not sizable and without caption like vista sndvol.exe DlgSimpleVolume A: Use WS_EX_DLGMODALFRAME style in CreateWindowEx and don't set WS_CAPTION. Read the manual about possible styles
{ "language": "en", "url": "https://stackoverflow.com/questions/362066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can the styling be changed on the sharepoint page so that my data in access datasheet view is visible How can the styling be changed on the sharepoint page so that my data in access datasheet view is visible A: got the issue fixed, only the page property needed to be changed and it worked. Now the data sheet is...
{ "language": "en", "url": "https://stackoverflow.com/questions/362078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Arguing about usability and "prettyness" As a UI guy (coding and designing user interfaces) I often find myself in the odd situation arguing about the quality of userinterfaces with programmers and other "laymen". I find it somewhat hard to argue about things like colors, icons or layout and it doesn't seem that the...
{ "language": "en", "url": "https://stackoverflow.com/questions/362096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Paths in undirected graphs We are given an undirected graph G = (V, E) and two vertices s, t ∈ V . We consider simple paths between s and t. A path is simple if every vertex is visited at most once. Are the following in P or NP-complete? Does an efficient algorithm polynomial time exist for the following? "n" repres...
{ "language": "en", "url": "https://stackoverflow.com/questions/362102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: get SelectedRow of DataGrid under dropdown_SelectedIndexChanged Event ASP.Net,C# I have a Template Column under which I have Placed a Dropdownlist. Now I would Like to get the selectedRow of the datagrid on selectedIndeChanged event of the dropdownlist that's inside the template Column A: You can get the index of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/362104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to sort not simple hash (hash of hashes) I have a Hash like this { 55 => {:value=>61, :rating=>-147}, 89 => {:value=>72, :rating=>-175}, 78 => {:value=>64, :rating=>-155}, 84 => {:value=>90, :rating=>-220}, 95 => {:value=>39, :rating=>-92}, 46 => {:value=>97, :rating=>-237}, 52 => {:value=>73, :ratin...
{ "language": "en", "url": "https://stackoverflow.com/questions/362105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How did people build web sites before there were web/application servers? I just read Joel Spolsky's article, Up the tata without a tutu, where Joel says, In those days, there were no application servers. and There really weren't any other app servers in those days. So basically, how did people write web app...
{ "language": "en", "url": "https://stackoverflow.com/questions/362111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What happens when an auto-incrementing column runs out? Consider a simple table with an auto-increment column like this: CREATE TABLE foo ( `fooid` bigint unsigned NOT NULL auto_increment, ....snipped.... other columns PRIMARY KEY (`fooid`) ) ENGINE=InnoDB AUTO_INCREMENT=10 How does one redesign this so th...
{ "language": "en", "url": "https://stackoverflow.com/questions/362112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How low do you go before something gets thread-safe by itself? I've been thinking, just how deep into everything do you have to go before something is automatically thread-safe? Quick example: int dat = 0; void SetInt(int data) { dat = data; } .. Would this method be considered threadsafe? I ussually wrap all m...
{ "language": "en", "url": "https://stackoverflow.com/questions/362113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: FontFamily question Why the FontFamily param of the Font object is a string and not an enum? A: FontFamily refers to the name of the Font. While you could use "monospace" or "serif" I wouldn't think it would be supported by .Net. Remember, using a enum would be impossible. A enum is a static compile-time feature, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/362120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Query Advice - Get Previous Customer Order I have the following table custid ordid qty datesold 1 A2 12 2008-01-05 2 A5 5 2008-01-02 1 A1 5 2008-01-01 2 A7 3 2007-02-05 What't the best way of getting the previous order for...
{ "language": "en", "url": "https://stackoverflow.com/questions/362121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Trace all local variables when an exception occurs any generic way to trace/log values of all local variables when an exception occurs in a method? (in C# 3) A: You can't, basically. Reflection lets you get at instance (and static) variables but if you want to log local variables, you'll have to do so explic...
{ "language": "en", "url": "https://stackoverflow.com/questions/362124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to read list of string I have this: Public stringList As New List(Of String) I need to read the whole list using For each statement, what is the best way to do so using VB.net syntax? Thanks, A: It sounds like it would be worth you reading the MSDN documentation for the For Each ... Next statement. For example:...
{ "language": "en", "url": "https://stackoverflow.com/questions/362150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loose Coupling vs. Information Hiding and Ease of Change I'm just reading Code Complete by Steve McConell and I'm thinking of an Example he gives in a section about loose coupling. It's about the interface of a method that calculates the number of holidays for an employee, which is calculated from the entry date of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/362154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Groovy: best/performant way of loading dynamic scripts I'm implementing a program which utilizes Groovy as scripting engine offering users the possibility i.e. to automate tasks. Hence scripts have to be loaded on demand, which I achieve with the following code: // short version, try/catch and error handling skipped...
{ "language": "en", "url": "https://stackoverflow.com/questions/362184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I create a new process with another User Account on Windows? Is it possible to create a new process on windows with a different user account? I know there are a context menu "Run as" but I want do it from Java. I have the username and the password. A: You need to write a DLL using the Java Native Interface ...
{ "language": "en", "url": "https://stackoverflow.com/questions/362198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is there a free (or low cost) database of first and last names? I am looking for a reference database that can be used to test for possible name typos in a contact database. This is for a batch process, so performance isn't a real issue. Ideally I'd like a comprehensive database, but even something like "top 5000" w...
{ "language": "en", "url": "https://stackoverflow.com/questions/362202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MSTest failing in 2008 from build script Hi guys anyone know what the helll is going on here? ERROR SNIPPET: Loading ..\LocalTestRun.testrunconfig... ..\LocalTestRun.testrunconfig Expected type attribute not found. File ..\LocalTestRun.testrunconfig Line 2 Pos 2. task in a test target in an msbuild script I have s...
{ "language": "en", "url": "https://stackoverflow.com/questions/362208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the optimal DB structure for a threaded forum? I want to build a threaded forum for an elearning site (opensource asp.net mvc ofcourse, though this doesn't matter for this question). What should be the DB structure which will help retrieve the forum postings with optimum performance? I am not putting a no....
{ "language": "en", "url": "https://stackoverflow.com/questions/362215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Checking the incoming and outgoing data of a Web Service I have a web service in C# that I have deployed on IIS 6.0. I want to view the data going out and coming to this web service. I know about MS SOAP toolkit, but it seems to be deprecated by MS. Does anyone know about any other good tool other than MS soap toolk...
{ "language": "en", "url": "https://stackoverflow.com/questions/362221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Render Excel File I am actually rendering an excel file in the browser. I use the Response.Writefile(filePath) to dod this. It is working perfectly fine in few of the machines. I am getting a pop up with "Open","Save" and "Cancel" option. But incase of few machines after i do a save click on the popup a plain empty...
{ "language": "en", "url": "https://stackoverflow.com/questions/362222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best MySQL performance tuning tool? Which is the best, user-friendliest performance tool for MySQL? I'd like help with pinpointing the bottle neck of my setup. Is the problem in the SQL statements, the settings variables, or something else? A: The bad news: there are GUI tools to help with this, but its a skilled a...
{ "language": "en", "url": "https://stackoverflow.com/questions/362223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: reading from a text file into a jagged array I found this question in an old question in your website so i thought i can do it but I think I was mistaken :-) the old post was here I'm new at the jagged array thing so did the following code StreamReader rows = new StreamReader("c:\\practice.txt"); string ...
{ "language": "en", "url": "https://stackoverflow.com/questions/362224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting Zoom on Windows Mobile device with IAMCameraControl::Set() I am developing an application for video capture and I would like to implement zoom functionality. Working with DirectShow I came across IAMCameraControlInterface. It has a method ::Set(), which should be used for setting several camera parameters. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/362225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Chrome Bug with CSS Padding style applying to empty cells I have a problem only in Google Chrome (Firefox, IE, Netscape, Safari and Opera are Okay) where a padding property which should be applied to text in a cell, is being applied to all empty cells aswell. It's easy to solve by adding more specific styles ...
{ "language": "en", "url": "https://stackoverflow.com/questions/362227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python: Finding partial string matches in a large corpus of strings I'm interested in implementing autocomplete in Python. For example, as the user types in a string, I'd like to show the subset of files on disk whose names start with that string. What's an efficient algorithm for finding strings that match some co...
{ "language": "en", "url": "https://stackoverflow.com/questions/362231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is Guid the best identity datatype for Databases? It is connected to BI and merging of data from different data sources and would make that process more smooth. And is there an optimal migration strategy from a database without Guids to a version with Guids without information losses? A: You will probably need the...
{ "language": "en", "url": "https://stackoverflow.com/questions/362232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Many returned records cause stackoverflow with Hibernate If there are many return records from DB. It will get stackoverflow problem. User is a class, which has a one to many relationship (to 3 other classes). When I print out the SQL, i found that the system runs the same query many time to get the data from DB. Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/362252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Thread safety and `const` How does const (pointers, references and member functions) help with thread safety in C++? A: The main problem with multiple threads is mutability. const restricts this, but since you can cast away the const-ness, it's not foolproof. A: A const member function shouldn't change state whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/362260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Pre compiling a very large regular expression I am having a very strange problem. I have a very large regular expression searching for certain words in some text (RegEx looks something like this: (?i)\b(a|b|c|d...)\b; and so on where a, b, c, d, represent words). Anyway, I put it in a pre compiled assembly to speed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/362269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: convert hexadecimal character string to integer in java I'm begginer in java I'm reading data from serial port and I have stored the data in string array data is 24 byte length. Data I'm getting as output: 12120814330006050.0 data also contains hexadecimal character in the string I want to read first character of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/362278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Comparing generic fields I have some generic types, like the following: public struct Tuple<T1, T2> { ... } public struct Tuple<T1, T2, T3> { ... } etc. These should in theory be able to compare themselves against other values of the same type, so that I can write the following type of code: List<Tuple<Type, String...
{ "language": "en", "url": "https://stackoverflow.com/questions/362293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Possible to override site creation in Sharepoint? We want to customize the "My Site" templates for different roles, say Students and Teachers. So basically we want to have one Site Def. for each and when they press "My Site" we want to create a new site using a different template depending on the role of the user (S...
{ "language": "en", "url": "https://stackoverflow.com/questions/362295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to abstract out 2 different implementations of cache I plan to use a distributed cache in my load-balanced webapp. So I'm going to try to abstract out the common functions between apache ehcache and memcached. My goal is to be able to make a simple configuration switch to select the caching solution to use. Shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/362300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET IHttpHandler and HTTP/1.0 How can I set the HTTP protocol version to HTTP/1.0 in the response of a IHttpHandler? A: You can't control the protocol version that IIS responds with. IIS should respond in a manner consistent with a 1.0 client if the request indicates 1.0 however the response header will still indi...
{ "language": "en", "url": "https://stackoverflow.com/questions/362318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UITextField input issue In my application there have two Outlet, one is UItextfield and another is UIWebview, textfield used to get the url request by the user and shown it in webview, but I met a problem is when finish the typing in my textfield, and click GO button(return) in the keyboard, that is nothing happen i...
{ "language": "en", "url": "https://stackoverflow.com/questions/362320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF Socket Error 10045 My colleague has an app that hosts a simple WCF service with a net.tcp endpoint. I can add the service reference to any app I create using the address net.tcp://192.168.0.22:9999/GSS-POS/QueryDispatcher/mex However, when he tries to add the service reference to an app running on his machine h...
{ "language": "en", "url": "https://stackoverflow.com/questions/362321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement classes which all use the same variables I have 6 classes, which are all document types. All the document types have the same 8 fields. There is one class which consists of only these 8 fields. The rest of the classes have more fields. Some of these classes have the same fields (beside the 8 fields)...
{ "language": "en", "url": "https://stackoverflow.com/questions/362326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to exclude directories from PHPDocumentor I'm trying to run PHPDocumentor on my WAMPServer setup. It runs fine, but I'd like to exclude certain directories, such as \sqlbuddy\ which don't contain my own code. Ironically, PHPDocumentor appears to be ignoring my --ignore switch. I've tried several ways of expre...
{ "language": "en", "url": "https://stackoverflow.com/questions/362328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a standalone alternative to activerecord-like database schema migrations? Is there any standalone alternative to activerecord-like migrations. Something like a script that is able to track current schema version and apply outstanding migrations. Basically, these migration files could be just a plain SQL fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/362334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does Table.getItem(Point) always return the item from column zero? I've implemented a class to give me a more flexible tooptip for the org.eclipse.swt.widgets.Table class. As I'm sure you all know, by default you get one tooltip for the whole table - and not individual tips for each cell. My object creates a num...
{ "language": "en", "url": "https://stackoverflow.com/questions/362336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Valid CSS, XHTML logo generator I once knew a website where the user could generate the little W3C valid CSS tags which looked much nicer than the too large W3C official ones. It was also possible to fill the icons with whatever content and color for other stuff. I've lost the bookmark and wasn't able to google it, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/362342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamic image creation Is it possible to convert some part of web page into a image. Lets say i have a div which contains a text and image inside. I want to store this entire div as an image on the server side, So that i can use that image from the next time onwards. Could you let me know whether there is any jque...
{ "language": "en", "url": "https://stackoverflow.com/questions/362352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to align RichEdit paste object position in Visual Basic 6? We have a RichEdit control into which we allow the user to insert an Office MathML equation object. Basically the logic goes like this: the user click on insert math equation, we allow them to use an external MathML editor, then we will paste an image to...
{ "language": "en", "url": "https://stackoverflow.com/questions/362355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Download location for MAPI33.dll? From where can I download MAPI33.dll. I got the link http://www.mapi33.adexsolutions.com/ from a site but it seems this is not correct. A: You can find an older version here: http://g8.cx/mapi/ The newest version must be bought. I cite: The following code samples might be obsole...
{ "language": "en", "url": "https://stackoverflow.com/questions/362359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Image resize in Grails I am developing a Web Album using Grails and for image processing, I am using grails-image-tools plugin. I need a functionality to resize the images if the uploaded images size is too big (for eg: more than 600 * 840 ) . In this case I need to resize this image to 600 * 840). What is the most ...
{ "language": "en", "url": "https://stackoverflow.com/questions/362360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Which development skills have you acquired after 7-10++ years of experience in OO development? Some development skills, like refactoring operations, feel like they have an almost unlimited pontential for learning - only the fool will say he's finished learning that. Other skills are bound to specific tools, and bein...
{ "language": "en", "url": "https://stackoverflow.com/questions/362365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Java Arrays & Generics : Java Equivalent to C# IEnumerable So in C#, I can treat a string[] as an IEnumerable<string>. Is there a Java equivalent? A: Iterable<String> is the equivalent of IEnumerable<string>. It would be an odditity in the type system if arrays implemented Iterable. String[] is an instance of Objec...
{ "language": "en", "url": "https://stackoverflow.com/questions/362367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: What is the best practice for persistence right now? I come from a java background. But I would like a cross-platform perspective on what is considered best practice for persisting objects. The way I see it, there are 3 camps: * *ORM camp *direct query camp e.g. JDBC/DAO, iBatis *LINQ camp Do people still han...
{ "language": "en", "url": "https://stackoverflow.com/questions/362380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I embed images in an ASP.NET Generated Word File I have a quite common problem, as I saw in the various user groups but could not find a suitable answer. What I want to do is generate an ASP.NET page in my website which will have the option of being exported into Microsoft Word .doc format. The method I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/362381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can't get ViewState to work on production server I have an ASP.NET application developed on my Vista box (IIS7). It works fine until I deploy it to the product server (W2K3/IIS6). Once deployed, I get a consistent "Object reference not set to an instance of an object." when reading from my ViewState object that dete...
{ "language": "en", "url": "https://stackoverflow.com/questions/362383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Java read integers in little endian or big endian? I ask because I am sending a byte stream from a C process to Java. On the C side the 32 bit integer has the LSB is the first byte and MSB is the 4th byte. So my question is: On the Java side when we read the byte as it was sent from the C process, what is endia...
{ "language": "en", "url": "https://stackoverflow.com/questions/362384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "108" }
Q: Returning %40 to an @ symbol dev%40bionic%2Dcomms%2Eco%2Euk I want to turn the above back in to readable text. Can anyone tell me how? Thanks EDIT Forgive my oversight, PHP is the language of choice! A: In JavaScript: decodeURIComponent("dev%40bionic%2Dcomms%2Eco%2Euk") A: Although this wasn't what you were afte...
{ "language": "en", "url": "https://stackoverflow.com/questions/362386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to retrieve username, password and roles from a database instead of retrieving them from tomcat-user.xml while using container-managed security I have a web application which i deploy in Tomcat. I want to secure all pages under the url path administration/*. I have set up container-managed security entering the...
{ "language": "en", "url": "https://stackoverflow.com/questions/362401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a struts config tool for Netbeans 6.5? I have found Struts Console Tool but its development stopped in 2004, so it works with Netbeans 3.2. Is there a way to install it under Netbeans 6.5? Are there any options to edit struts-config.xml above the XML level? A: Netbeans supports automatic struts-config.xml ...
{ "language": "en", "url": "https://stackoverflow.com/questions/362402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Process.Start() to start a process as a different user from within a Windows Service I'd like to periodically run an arbitrary .NET exe under a specified user account from a Windows Service. So far I've got my windows service running with logic to decide what the target process is, and when to run it. The tar...
{ "language": "en", "url": "https://stackoverflow.com/questions/362419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Accessing constructor of an anonymous class Lets say I have a concrete class Class1 and I am creating an anonymous class out of it. Object a = new Class1(){ void someNewMethod(){ } }; Now is there any way I could overload the constructor of this anonymous class. Like shown below Object a = new...
{ "language": "en", "url": "https://stackoverflow.com/questions/362424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "232" }
Q: Implementing a "[command] [action] [parameter]" style command-line interfaces? What is the "cleanest" way to implement an command-line UI, similar to git's, for example: git push origin/master git remote add origin git://example.com master Ideally also allowing the more flexible parsing, for example, jump_to_folder...
{ "language": "en", "url": "https://stackoverflow.com/questions/362426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Ironpython Studio forms This is a two part question. A dumb technical query and a broader query about my possibly faulty approach to learning to do some things in a language I'm new to. I'm just playing around with a few Python GUI libraries (mostly wxPython and IronPython) for some work I'm thinking of doing on an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/362428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get rid of weird characters in my RSS feed? I've created a utf8 encoded RSS feed which presents news data drawn from a database. I've set all aspects of my database to utf8 and also saved the text which i have put into the database as utf8 by pasting it into notepad and saving as utf8. So everything should be...
{ "language": "en", "url": "https://stackoverflow.com/questions/362429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }