text
string
meta
dict
Q: What is recommended for plug in systems in applications? What are the “normal” ways to do plug-ins in compiled languages (C#/C/C++/D)? I am specifically interested in language agnostic approaches but language specific is not unacceptable. For the time being, “compile time” plug in approaches (just include the code o...
{ "language": "en", "url": "https://stackoverflow.com/questions/217172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Perforce : Is there a way to link a numbered changelist to a folder in the depot? Problem : I have multiple projects checked out in my depot. I also have multiple pending numbered change lists, each change list containing checked out files specific to its project. When I check out a new file, it appears in the defau...
{ "language": "en", "url": "https://stackoverflow.com/questions/217177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Software / System Handover Template - Are there any good examples out there? I'm required to provide a handover to our content editors for the update corporate website I've just released. Apparently a training session with notes isn't sufficient. Fair enough. So more dreaded documentation looms. After a fairly br...
{ "language": "en", "url": "https://stackoverflow.com/questions/217185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Storing C# data structure into a SQL database I am new to the world of ASP.NET and SQL server, so please pardon my ignorance ... If I have a data structure in C# (for e.g. let's just say, a vector that stores some strings), is it possible to store the contents of the vector as is in SQL table? I want to do this so t...
{ "language": "en", "url": "https://stackoverflow.com/questions/217187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to quarantine a specific subversion revision? I have a revision that has been committed to SVN trunk which I would like to roll back. However, I would like to retain the changes in some fashion such as a branch or even a patch file. Any suggestions? A: Reverse-merge (I think that was the term), commit and tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/217190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Can awk skip files which do not exist, race-free? Is there a way to make awk (gawk) ignore or skip missing files? That is, files passed on the command line that no longer exist in the file system (e.g. rapidly appearing/disappearing files under /proc/[1-9]*). By default, a missing file is a fatal error :-( I would l...
{ "language": "en", "url": "https://stackoverflow.com/questions/217213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Automatically add some Where clauses to a Linq Expression Tree I am using the Entity Framework and Linq to Entities. I have created a small database pattern & framework to implement versioning as well as localization. Every entity now consists of two or three tables, (ie Product, ProductBase & ProductLocal). M...
{ "language": "en", "url": "https://stackoverflow.com/questions/217219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Usercontrol with button - When uc is added dynamically to another page Usercontrol with button - When uc is added dynamically to another page I loose the button handler. ie: I have 1 usercontrol with 1 button - the button has an event handler in the code behind. When i add the UserControl to a page programatically ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What does it mean when my text is displayed as boxes? I'm attempting to display some text in my program using (say) Windows GDI and some of the unicode characters are displayed as boxes? What is up? See also: What does it mean when my text is displayed as Question Marks? A: Usually, that means that the unicode char...
{ "language": "en", "url": "https://stackoverflow.com/questions/217228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Bubbling up events . I have multiple layers in an application and i find myself having to bubble up events to the GUI layer for doing status bar changes, etc . . I find myself having to write repeated coded where each layer simply subscribes to events from the lower layer and then in the call back simply raise an e...
{ "language": "en", "url": "https://stackoverflow.com/questions/217233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: What does it mean when my text is displayed as Question Marks? I'm attempting to display some text in my program using (say) Windows GDI and some of the unicode characters are displayed as question marks? What is up? See also: What does it mean when my text is displayed as boxes? A: In Windows there are 2 common di...
{ "language": "en", "url": "https://stackoverflow.com/questions/217237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What are the options for generating user friendly alpha numeric IDs (like business id, SKU) Here are the requirements: Must be alphanumeric, 8-10 characters so that it is user friendly. These will be stored as unique keys in database. I am using Guids as primary keys so an option to use GUids to generate these uniqu...
{ "language": "en", "url": "https://stackoverflow.com/questions/217253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can I sort class members by name in NetBeans, or another Java IDE? I want to sort members by name in the source code. Is there any easy way to do it? I'm using NetBeans, but if there is another editor that can do that, just tell me the name of it. A: Eclipse can do it. A: This is implemented in Netbeans 7.3: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Comparing references in Java Let's say that you have overridden an object's equals() and hashCode() methods, so that they use the object's fields. How you do you check if two references are to the same object, ala the stock equals() method? A: That's what the == operator does. A: Use == on objects to perform ident...
{ "language": "en", "url": "https://stackoverflow.com/questions/217258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Indenting for code-generation Often, programmers write code that generates other code. (The technical term is metaprogramming, but it is more common than merely cross-compilers; think about every PHP web-page that generates HTML or every XSLT file.) One area I find challenging is coming up with techniques to ensure ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Missing msvcr80.dll If the C++ runtime msvcr80.dll is missing from a compiled library, is there any way to determine which version was used to create the library or to get it to run on a later version of msvcr80.dll? A: If you're authoring and distributing the mentioned DLL, consider using a merge module for Visual...
{ "language": "en", "url": "https://stackoverflow.com/questions/217266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: java memory management I'm a c++ programmer and I'm playing around with java after finding JPA which for a few of my current applications is a god send. I haven't touched java since university and I'm having a problem running out of heap space. I'm using the code below as the main part of a not-very-serious test of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Embedded Slideshow/Image Viewer? I've run across this sort of thing on multiple websites and was wondering what it was called, does anyone know? Here's a screenshot. A: I think that's lightbox. Edit: Or Lightbox 2. A: Looks like Lightbox (or clone), Look at this Lightbox Clone List, I personally like the jQuery li...
{ "language": "en", "url": "https://stackoverflow.com/questions/217301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best algorithm for determining the high and low in an array of numbers? I am using pseudo-code here, but this is in JavaScript. With the most efficient algorithm possible I am trying to find the high and low given an array of positive whole numbers. This is what I came up with, but I don't think it is probably best,...
{ "language": "en", "url": "https://stackoverflow.com/questions/217316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: IF construct in MySql producing error #1064 I am attempting to run the following code in phpMyAdmin: set @tagTokenNum=0; select @tagTokenNum:=tag_token_id from tag_token where tag_token_name = 'XXX'; delimiter go if @tagTokenNum is null then insert into tag_token (tag_token_name) values ('XXX'); select @tagTo...
{ "language": "en", "url": "https://stackoverflow.com/questions/217343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Task Manager Script I need to a script that will pull up the Task Manager in Vista but with processes from all users (like when you click "Show processes from all users"). I don't mind the UAC interruption but I'd like to save some time and go straight to the "all users" version. I don't care what language per se, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why don't my HtmlHelper extensions work? I'm building an ASP.Net MVC website. Rather than have everything in one project, I've decided to separate the Web, Model and Controller out into different projects in the same solution, that reference each-other. The referencing goes like this: Web ---[references]---> Contro...
{ "language": "en", "url": "https://stackoverflow.com/questions/217350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Retrieving Selected Text from Webbrowser control in .net(C#) I've been trying to figure out how to retrieve the text selected by the user in my webbrowser control and have had no luck after digging through msdn and other resources, So I was wondering if there is a way to actually do this. Maybe I simply missed somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/217353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Bind NameValueCollection to GridView? What kind of collection I should use to convert NameValue collection to be bindable to GridView? When doing directly it didn't work. Code in aspx.cs private void BindList(NameValueCollection nvpList) { resultGV.DataSource = list; resultGV.DataBind(); } Code in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/217356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: IE7 and the statusbar Is there a way to spawn a new window via javascript in IE7 that hides the statusbar? I've added the intranet app as a trusted site. Not sure what else I can use to try. This is my JS window.open("http:/localhost/start.html", "MyApp", "left=0, top=0, width=" + screen.width + "," + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do you think Debugging (System Troubleshooting) is one of the most important measurable technology-agnostic skills a programmer can have? There are many skills a programmer could have (understanding the problem, asking good questions, good design skills, etc.). I think System Debugging skill is incredibly valuable. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you use LEFT on a NTEXT SQL Server Column? How do you use the LEFT function (or an equivalent) on a SQL Server NTEXT column? Basically I'm building a GridView and I just want to return the first 100 or so characters from the Description column which is NTEXT. A: You can use the SUBSTRING function, which "re...
{ "language": "en", "url": "https://stackoverflow.com/questions/217377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to access form methods and controls from a class in C#? I'm working on a C# program, and right now I have one Form and a couple of classes. I would like to be able to access some of the Form controls (such as a TextBox) from my class. When I try to change the text in the TextBox from my class I get the following...
{ "language": "en", "url": "https://stackoverflow.com/questions/217389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: XSD elements to a Form in ASP.NET Is there a standard way to convert an XSD to an input form (ASP.NET C#) so that later on whenever a new field is added / removed from the XSD the field on the page automatically shows up or goes away respectively, is this something which needs to be developed in-house I assume there...
{ "language": "en", "url": "https://stackoverflow.com/questions/217395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use Lightbox under MVC I am a big fan of the Lightbox2 library, and have used it in the past just not on an MVC project. In the past I remember that Lightbox2 was picky about the paths it scripts, css, and images resided in. I remember specifically have to put everything in subdirectories of the page's path, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ideal PHP Session Size? I have a PHP form (mortgage app) that is about 400 fields, traffic on the site will be low. What is the ideal Session size for 400 fields going into a MySQL db? In php.ini what do I set? Anything I should set that I am missing? A: You should also check, post_max_size, max_input_vars (1000 de...
{ "language": "en", "url": "https://stackoverflow.com/questions/217420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Create a CSV File for a user in PHP I have data in a MySQL database. I am sending the user a URL to get their data out as a CSV file. I have the e-mailing of the link, MySQL query, etc. covered. How can I, when they click the link, have a pop-up to download a CVS with the record from MySQL? I have all the informati...
{ "language": "en", "url": "https://stackoverflow.com/questions/217424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "225" }
Q: PHP mkdir issue mkdir("/people/jason", 0700, TRUE); TRUE = Recursive in PHP 5 and the server is running 5.2.5 but I get: Warning: mkdir() expects at most 2 parameters, 3 given in /home/net1003/public_html/admin/_createPage.inc on line 5 A: are you running this particular script through the command line interface ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a good graph (not charting) visualization API for .Net? I've looked at Microsoft GLEE (non-commerical use) and other libraries for drawing graphs, but I need a good commercial use graph API to show complex routes through the Internet. I need to be able to show a large number of nodes and vertexes. Any Idea...
{ "language": "en", "url": "https://stackoverflow.com/questions/217433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Have a favorite custom Grails tag? I've been using tags in my projects. I was browsing the custom tags on grails.org to find some new tags for my library. http://www.grails.org/Contribute+a+Tag I was wondering if people in the StackOverflow community have a favorite custom tag that they would like to share. A: I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/217437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: URL-Encoded Angle Brackets in URL? I'm working on a legacy app and for whatever reason it's trying to stuff URL-encoded angle brackets into a URL. For example, to get a URL ending with "<sometext>": http://somesite.com/somefolder/%3csometext%3e When the above URL-encoded URL is fetched, it generates a 400 error (Bad...
{ "language": "en", "url": "https://stackoverflow.com/questions/217447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: edit datagrid row i want to know how to edit a single row (which i select) from a data grid for example i have a datagrid with columns A, B and C and i have a couple rows of data, approx 10 rows. lets say i want to change the value of data within row 4. how would i do this? i am using visual studio 2003, but i guess...
{ "language": "en", "url": "https://stackoverflow.com/questions/217455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Trying to get DXperience under Linux: I get "Windows Installer 3" required when installing .NET 2.0 under wine in SLED I want to try out DXperience component suite on Linux (Suse Linux enterprise desktop). Since it relies heavily on the PInvoke calls, Mono would not work out here. Some people were able to get this r...
{ "language": "en", "url": "https://stackoverflow.com/questions/217462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you configure the email settings in CrashRpt to send the crash dump? After reading this discussion and this discussion about using CrashRpt to generate a crash dump and email it to the developers, I've been having a difficult time finding any instructions/tutorials for configuring the email settings used by t...
{ "language": "en", "url": "https://stackoverflow.com/questions/217463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Text input parser in c# I have a text file of this format: L O A D C A S E 1 O F 2 ... J O I N T D I S P L A C E M E N T S (global) Joint X-dsp Y-dsp Z-dsp X-rot Y-rot Z-rot 1 0.0 0.0 0.0 0.0 0.0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Single WCF Service to multiple client connections I have developed a VB.NET WCF service that recives and sends back data. When the first client connects it starts the data output that continues also if the client is closed. If a new client connects then a new object is created and the data output starts at the begni...
{ "language": "en", "url": "https://stackoverflow.com/questions/217484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: efficiency /algorithms vs system specifications We are all talking about the efficiency of the algorithms and it depends on input size -basically. How about the system specifications of current computer that runs the algorithm? does it make any difference to run a different sorting algorithm in a Core 2 Duo 2.6 GHZ,...
{ "language": "en", "url": "https://stackoverflow.com/questions/217489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Integrating Captcha with Spring Security What is appropriate way to integrate SpringSecurity with Capcha ? I have following use case : When user will tries to login, if we he failed to login N times, captcha will be displayed, so authentication will be using three parameters : username, password, captcha. But Sprin...
{ "language": "en", "url": "https://stackoverflow.com/questions/217511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Bizarre IE CSS Problem So my problem has to do with a Sticky footer that works, but a rounded corner script pushes the footer up a bit in IE7. (example: Games Page) If you load the page in IE7, the footer is in the wrong place, but if you do the following: 1. Open a new tab 2. Go to google.ca in the new tab (or do s...
{ "language": "en", "url": "https://stackoverflow.com/questions/217515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I emulate svn:externals using mercurial? We are considering a move from SVN to Mercurial, and have encountered a stumbling block. We currently use svn:externals to automatically pull a common set of libraries into the working directory. I can't find support for anything like this in Mercurial. Is there a way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Database scalability - performance vs. database size I'm creating an app that will have to put at max 32 GB of data into my database. I am using B-tree indexing because the reads will have range queries (like from 0 < time < 1hr). At the beginning (database size = 0GB), I will get 60 and 70 writes per millisecond. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are the possible classes for the OpenThemeData function? I'm trying to call the OpenThemeData (see msdn OpenThemeData) function but I couldn't determine what are the acceptable Class names to be passed in by the pszClassList parameter. HTHEME OpenThemeData( HWND hwnd, LPCWSTR pszClassList ); Coul...
{ "language": "en", "url": "https://stackoverflow.com/questions/217532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Programmer's Notepad not Capturing Make Output? I've been using Programmer's notepad for a while now, I find it to be an amazingly simple tool and I prefer to use it on projects where I know I don't need most of the standard IDE overhead. However, I've recently run into this problem when running the program on Windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/217538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JPEG built-in checksum / fingerprint? I'm putting together a script to find remove duplicates in a large library of images. At the moment I'm doing a two pass filter of first finding files of the same size and then doing a sha256 on a 10240 byte piece of the file to get a fingerprint of the files with the same size ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Security and Policy Injection Application Block I have a mixed UI (Win App, WPF App, and soon an ASP.NET MVC App) setup, so far I'm using Client Application Services for security. I know how to programmatically get a user authenticated and doing so is working beautifully. However... I want to implement some cross ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which Typesafe Enum in C++ Are You Using? It is common knowledge that built-in enums in C++ are not typesafe. I was wondering which classes implementing typesafe enums are used out there... I myself use the following "bicycle", but it is somewhat verbose and limited: typesafeenum.h: struct TypesafeEnum { // Construc...
{ "language": "en", "url": "https://stackoverflow.com/questions/217549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: How to create a string representing a Java long as though it were unsigned 64-bit value My component is handed a long value that I later use as a key into a cache. The key itself is a string representation of the long value as if it were unsigned 64-bit value. That is, when my component is handed -294482726407501082...
{ "language": "en", "url": "https://stackoverflow.com/questions/217551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How fast is php_uname()? How fast is php_uname() say doing php_uname('s n') or php_uname('a'). The reason I ask is because I'd like to use it to determine which server I'm on and therefore the configuration (paths, etc). This is related to Is there a PHP function or variable giving the local host name? A: I just di...
{ "language": "en", "url": "https://stackoverflow.com/questions/217555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What deterministic garbage collection algorithms are out there? By deterministic I vaguely mean that can be used in critical real-time software like aerospace flight software. Garbage collectors (and dynamic memory allocation for that matter) are big no-no's in flight software because they are considered non-determi...
{ "language": "en", "url": "https://stackoverflow.com/questions/217565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How can I determine whether a 2D Point is within a Polygon? I'm trying to create a fast 2D point inside polygon algorithm, for use in hit-testing (e.g. Polygon.contains(p:Point)). Suggestions for effective techniques would be appreciated. A: Here is a C# version of the answer given by nirg, which comes from this RP...
{ "language": "en", "url": "https://stackoverflow.com/questions/217578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "593" }
Q: Concatenating xml files I have several xml files, the names of which are stored in another xml file. I want to use xsl to produce a summary of the combination of the xml files. I remember there was a way to do this with the msxml extensions (I'm using msxml). I know I can get the content of each file using select="...
{ "language": "en", "url": "https://stackoverflow.com/questions/217591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to determine which server the script is on and therefore the configuration in PHP? I'm trying to determine the best way of having a PHP script determine which server the script/site is currently running on. At the moment I have a switch() that uses $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVE...
{ "language": "en", "url": "https://stackoverflow.com/questions/217594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get options in the order entered by the user, using Perl's Getopt::Long? I have an existing Perl program that uses Getopt package and Getopt::Long::Configure with permute as one of the options. However, now I need to keep the order of the options entered by the user. There is an option $RETURN_IN_ORDER mentio...
{ "language": "en", "url": "https://stackoverflow.com/questions/217595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Redirect all requests to ASP.NET MVC on IIS6 I am probably overlooking something really simple here but I am trying to redirect all bad URLs to an action that filters the URL based on conditions and then either 301 redirects to a suitable page or issues a 404 page. To this end I have a route like this at the end of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What does using a dollar sign after $this-> in PHP mean? I'm a little confused by some PHP syntax I've come across. Here is an example: $k = $this->_tbl_key; if( $this->$k) { $ret = $this->_db->updateObject( $this->_tbl, $this, $this->_tbl_key, $updateNulls ); } else { $ret = $this->_db->insertObject( $this...
{ "language": "en", "url": "https://stackoverflow.com/questions/217612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What's a good naming convention for a lookup map/hash? In data processing, I frequently need to create a lookup data structure to map one identifier to another. As a concrete example, let's take a structure which holds a 1-to-1 mapping between a country's 2 character code and its full name. In it we would have AD ->...
{ "language": "en", "url": "https://stackoverflow.com/questions/217614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: __construct() vs SameAsClassName() for constructor in PHP Is there any advantage to using __construct() instead of the class's name for a constructor in PHP? Example (__construct): class Foo { function __construct(){ //do stuff } } Example (named): class Foo { function Foo(){ //do stuff ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: How does calling an updating UI thread from a Work thread works? If i have a function in a thread that is processing some data, then it calls a callback function to update the status in the UI. If the UI takes time to process the callback function then it is not so much usefull. Instead of just handling the update i...
{ "language": "en", "url": "https://stackoverflow.com/questions/217645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Entity Framework entities as business objects? I'm using Entity Framework O/R mapper from Microsoft and using entity classes (generated classes that are mapped to DB objects) as a business objects. Is this OK? Please state your cons or pros. What to do in a case of WCF communication between business layer and...
{ "language": "en", "url": "https://stackoverflow.com/questions/217655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: build a plugin system with php I'm working on a custom CMS for my own use and was thinking about implementing a plugin system so I could extend the code a little easier. I'm having trouble conceptualizing the architecture and layout though. I know I could go through a few open source programs that implement similar...
{ "language": "en", "url": "https://stackoverflow.com/questions/217659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Should I subclass List or have it as a property? I have faced this problem quite often during the last couple of months, during which I've been building this system. The scenario is this: I have this kind of object that essentially is a list of other objects, but has some other properties specific of its nature. For...
{ "language": "en", "url": "https://stackoverflow.com/questions/217665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Troubleshooting py2exe packaging problem I've written a setup.py script for py2exe, generated an executable for my python GUI application and I have a whole bunch of files in the dist directory, including the app, w9xopen.exe and MSVCR71.dll. When I try to run the application, I get an error message that just says "...
{ "language": "en", "url": "https://stackoverflow.com/questions/217666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to generate an 401 error programmatically in an ASP.NET page As you can see this is a question from a non web developer. I would like to have an ASPX page which, under certain circumstances, can generate a 401 error from code. Ideally it would show the IIS standard page. A: Response.StatusCode = 401; Response.E...
{ "language": "en", "url": "https://stackoverflow.com/questions/217678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Are there any differences between Java's "synchronized" and C#'s "lock"? Do these two keywords have exactly the same effect, or is there something I should be aware of? A: One interesting difference not covered in the link posted by Keeg: as far as I'm aware, there's no equivalent method calls in Java for .NET's Mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/217707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Formatting an if statement for readability What's the best way to format this for readability? if (strpos($file, '.jpg',1) && file_exists("$thumbsdir/$file") == false || strpos($file, '.gif',1) && file_exists("$thumbsdir/$file") == false || strpos($file, '.png',1) && file_exists("$thumbsdir/$file") == false) { cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/217710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using jQuery accordion with strange markup I have this HTML structure and want to convert it to an accordion. <div class="accor"> <div class="section"> <h3>Sub section</h3> <p>Sub section text</p> </div> <div class="section"> <h3>Sub section</h3> <p>Sub section text</p> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I inject a single property value into a string using spring 2.5.x? I would really like to annotate a method with a reference to a single property in a property file for injection. @Resource("${my.service.url}") private String myServiceUrl; Of course, this syntax does not work ;) Thats why I'm asking here. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to get keyboard input with x86 bare metal assembly? I'm in the process of trying to hack together the first bits of a kernel. I currently have the entire kernel compiled down as C code, and I've managed to get it displaying text in the console window and all of that fine goodness. Now, I want to start accepting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Check LDAP connection (Java) I'm using javax naming to connect to an LDAP database. Is there a good way to check if a connection is still valid? I'm looking for something really efficient here because it may need to be done often. After some web searching all I have found is a suggestion to do a quick search, is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/217733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Identify keyboard I have two keyboards connected to my PC, is there any way to know what keyboard a key was pressed on in any language or framework? A: For Windows, you can register you application to receive raw input notifications with the RegisterRawInputDevices API. Once you register, your application will sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/217737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: silverlight blogs? With the asp.net MVC framework the blogs of the team members (Rob Conery, Phil Haack etc) really helped me on my way and made me feel comfortable the development was going in the right direction. Is there something similar for Silverlight? -Edit: I would like to mention that I would like to find m...
{ "language": "en", "url": "https://stackoverflow.com/questions/217740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Keep resizing text from pushing the other elements in its container around? I have the following html <div id="menu"> <ul class="horizMenu"> <li id="active"><a href="#" id="current">About</a></li> <li><a href="#">Archive</a></li> <li><a href="#">Contact</a></...
{ "language": "en", "url": "https://stackoverflow.com/questions/217741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Resetting visited status on links Is there any way you can reset the visited status on links? The scenario is this: On an intranet-site which naturally has a lot of links we want a link to have the status of "visited" for a set period of time only. I am therefore looking for a way to manipulate the visited status of...
{ "language": "en", "url": "https://stackoverflow.com/questions/217749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: In MVP where to write validations In Model-View-Presenter pattern where should we write validations of user input. A: I usually keep my view completely clean, no logic there. But I don't do a lot of web development. In Ajax-ish situations you might want to have client side validation that has to go in the view. Bus...
{ "language": "en", "url": "https://stackoverflow.com/questions/217752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: nhibernate - disable automatic\lazy loading of child records for one to many relationsihps I would like to know if there is a way to disable automatic loading of child records in nHibernate ( for one:many relationships ). We can easily switch off lazy loading on properties but what I want is to disable any kind of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/217761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: sql union with an aggregation component I have a query that I use for charting in reporting services that looks something like: (SELECT Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Eta, Theta, Iota, Kappa, Lambda, Mu,Nu, Xi from tbl WHERE Alpha in (@Alphas) and Beta in (@Betas) and Gamma in (@Gammas) and Delta ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I extract text, save it, then output it to web? I am searching for HF50(HF$HF) for example in "MyFile.txt" so that the extracted data must save to "save.txt". The data on "save.txt" now extracted again and fill the parameters and output on my table. But when I tried the code, I've got no output and "save.txt...
{ "language": "en", "url": "https://stackoverflow.com/questions/217769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access spring bean that is exposed using http invoker from GWT application Can I access spring bean that exposed using http invoker (server) from GWT application (client)? If so is there any example / tutorial for that? A: There's an application template for Spring-GWT apps available here, that you may find useful....
{ "language": "en", "url": "https://stackoverflow.com/questions/217775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to apply CSS to iframe? I have a simple page that has some iframe sections (to display RSS links). How can I apply the same CSS format from the main page to the page displayed in the iframe? A: If the content of the iframe is not completely under your control or you want to access the content from different pag...
{ "language": "en", "url": "https://stackoverflow.com/questions/217776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1178" }
Q: Which JavaScript AJAX Framework is most powerful and very lightweight? I've been using jQuery to do the whole AJAX magic in my web based applications. But I came to a decision that I don’t need all these amazing features jQuery has, except its AJAX functions (like $.ajax(), $.get(), $.post, getJSON() and load();). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Emulating a UPnP router I want to add the option of automatic port forwarding (NAT Traversal) to an application. I know this can be done using UPnP (specifically the part that communicates with the device presenting itself as an IGD - Internet Gateway Device). I need to be able to test this port forwarding feature w...
{ "language": "en", "url": "https://stackoverflow.com/questions/217784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Get Application exe size easily Is there a way in Delphi to get the currect application's exe size in one or two lines of code? A: It's not as small as you want, but it needs no handles. I use this in all my "SFX" archivers and programs that must know their size. IIRC it requires the Windows unit. function GetExe...
{ "language": "en", "url": "https://stackoverflow.com/questions/217793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Getting Language for Non-Unicode Programs Anyone have any idea how to get the value of "Language for Non-Unicode Programs" in Control Panel Regional Settings programmatically using c#? Already tried CultureInfo, RegionInfo and getting the default encoding using the Encoding object, but I can only get the Standards a...
{ "language": "en", "url": "https://stackoverflow.com/questions/217801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using LINQ to concatenate strings What is the most efficient way to write the old-school: StringBuilder sb = new StringBuilder(); if (strings.Count > 0) { foreach (string s in strings) { sb.Append(s + ", "); } sb.Remove(sb.Length - 2, 2); } return sb.ToString(); ...in LINQ? A: Have you look...
{ "language": "en", "url": "https://stackoverflow.com/questions/217805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "395" }
Q: Accessing the progress bar in an Office application's status bar I build VBA applications for both Word and Excel, is there any way to access the progress bar that sometimes appears in the Office status bar. A: The following will simulate a progress bar in Excel's status bar: Public Sub UpdateStatusBar(percent As D...
{ "language": "en", "url": "https://stackoverflow.com/questions/217816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Building Word fields Apart from just inserting and parsing text into a blank Word field, is there any way to programmatically build user-defined fields and field codes into my own templates with VBA? Furthermore, is there a way to make these fields show up in the list of available fields? A: I recently developed a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/217821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Large scrolling background in OpenGL ES I am working on a 2D scrolling game for iPhone. I have a large image background, say 480×6000 pixels, of only a part is visible (exactly one screen’s worth, 480×320 pixels). What is the best way to get such a background on the screen? Currently I have the background split into...
{ "language": "en", "url": "https://stackoverflow.com/questions/217822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there any similar tool for Linux that works like Shark on Mac OS X? Shark on Mac OS X is a great tool for profiling an application on a running system. Is there any similar tools for Linux? OProfile looks like it could be, anyone used it? A: Extending another answer, I use the 'callgrind' option of valgrind (h...
{ "language": "en", "url": "https://stackoverflow.com/questions/217825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Which is the best Open source application server? We are looking for a open source J2EE Application server for log budget deployments. We are considering JBoss and Glassfish. Which is the best open source application server? Any comparative study available? A: After using JBoss from the very beginning and then swit...
{ "language": "en", "url": "https://stackoverflow.com/questions/217827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: ASP.net MVC and .Net version I have visual studio 2008 installed on my PC. Can anyone tell me what should I get installed so that I can start with the MVC architecture. I am very much confused about the .NET versions required for MVC architecture. A: go to http://www.asp.net you will need vs2008 with SP1 .net3.5 th...
{ "language": "en", "url": "https://stackoverflow.com/questions/217828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Please wait page in ASP.NET MVC A page executes a number of tasks and takes a long time to process. We want to give the user feedback as each task is completed. In ASP.NET webforms we used Response.Flush() What way would you a approach this in ASP.NET MVC? A: You can still use Response.Write() and Response.Flush()...
{ "language": "en", "url": "https://stackoverflow.com/questions/217829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to use Hibernate @Any-related annotations? Could someone explain to me how Any-related annotations (@Any, @AnyMetaDef, @AnyMetaDefs and @ManyToAny) work in practice. I have a hard time finding any useful documentation (JavaDoc alone isn't very helpful) about these. I have thus far gathered that they somehow enab...
{ "language": "en", "url": "https://stackoverflow.com/questions/217831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How to create a timeline with LaTeX? In history-books you often have timeline, where events and periods are marked on a line in the correct relative distance to each other. How is it possible to create something similar in LaTeX? A: There is a new chronology.sty by Levi Wiseman. The documentation (pdf) says: Most...
{ "language": "en", "url": "https://stackoverflow.com/questions/217834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: .NET autogenerated web-service client: How do I avoid requesting schemas from w3.org? I have a .NET web-service client that has been autogenerated from a wsdl-file using the wsdl.exe tool. When I first instantiate the generated class, it begins to request a bunch of documents from w3.org and others. The first one be...
{ "language": "en", "url": "https://stackoverflow.com/questions/217841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I line up my bullet images with my * content? Heres a screenshot to make it clear. I'm trying to figure out a robust way of making the bullet images vertically aligned to my li content. As you can see my content is currently too high. Many thanks 'over-flowers'... http://dl.getdropbox.com/u/240752/list-exam...
{ "language": "en", "url": "https://stackoverflow.com/questions/217842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }