instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
What is the best practice for naming UI controls (textboxes, drop-downs, etc.) on forms and reports for reference in the code-behind pages? I develop a lot of reports and forms in my office. I have several web applications providing about 80+ "live" reports being generated from various and multiple data sources (Acces...
stackexchange/codereview
I am interested in seeing if I can improve the way we use NUnit in a Visual Studio solution containing 30+ projects. First, would you have one assembly of tests for every assembly in the solution, or would you try to keep the number of test assemblies down? I started off creating many test assemblies, but I think this ...
stackexchange/codereview
I read that you could call JavaScript code from a Java Applet by calling JApplet.getAppletContext().showDocument( "javascript:alert('Hello World');" ); However, when I do this i get the following error: java.net.MalformedURLException: unknown protocol: javascript How do I work around this?
stackexchange/codereview
In MSVC, DebugBreak() or __debugbreak cause a debugger to break. On x86 it is equivalent to writing "_asm int 3", on x64 it is something different. When compiling with gcc (or any other standard compiler) I want to do a break into debugger, too. Is there a platform independent function or intrinsic? I saw the XCode que...
stackexchange/codereview
Our svn repository has lots of branches that are branches off of sub-trees. This works OK with svn because I can check out that sub-tree in the correct spot in my working copy. However, if I check out the same branch using git, I get a working copy with only the branch sub-tree. Is it possible to make git relocate the ...
stackexchange/codereview
For some of the customers that we develop software for, we are required to "guarantee" a certain amount of spare resources (memory, disk space, CPU). Memory and disk space are simple, but CPU is a bit more difficult. One technique that we have used is to create a process that consumes a guaranteed amount of CPU time (...
stackexchange/codereview
As a contractor, out-sourcer and shareware author,I have about 5-10 projects going on at any one time. Each project has a todo list, requirements need to be communicated to other outsources and employees, status needs to be given to clients, and developer's questions need to be answered. Sometimes it is too much... but...
stackexchange/codereview
I have seen the official demos on lwjgl.org but I would like to see some more tutorial level examples.
stackexchange/codereview
I have an Oracle server (version 9, I believe) and a MS SQL server (version 2000). The MS SQL server is running MS Windows Server 2003. I would like to use DTS to extract some data from the Oracle server and pour it into the MS SQL server. I'm having problems finding out what driver I should install on my MS SQL serve...
stackexchange/codereview
I am working with a legacy ASP Classic solution which is load balanced (via external hardware and has an IIS site the home directory of which is an UNC path. I've been told that the following issues with this setup currently exist: When using an UNC path as home directory, there is an "index" somewhere in IIS which "...
stackexchange/codereview
devenv mysolution.sln /build "Release|Win32" /project myproject When building from the command line, it seems I have the option of doing a /build or /rebuild, but no way of saying I want to do "project only" (i.e. not build or rebuild the specified project's dependencies as well). Does anyone know of a way?
stackexchange/codereview
A brief search shows that all available (uUnix command line) tools that convert from xsd (XML Schema) to rng (RelaxNG) or rnc (compact RelaxNG) have problems of some sort. First, if I use rngconv: $ wget https://msv.dev.java.net/files/documents/61/31333/rngconv.20060319.zip $ unzip rngconv.20060319.zip $ cd rngconv-200...
stackexchange/codereview
I am wondering what primers/guides/tutorials/etc. are out there for learning to rewrite URLs using Apache/.htaccess? Where is a good place to start? My primary interest is learning how to point certain directories to others, and how to use portions of a URL as parameters to a script (i.e. "/some/subdirs/like/this" => "...
stackexchange/codereview
I have a Google Web Toolkit (GWT) application and when I link to it, I want to pass some arguments/parameters that it can use to dynamically retrieve data. E.g. if it were a stock chart application, I would want my link to contain the symbol and then have the GWT app read that and make a request to some stock service....
stackexchange/codereview
I'm using Hibernate for ORM of my Java app to an Oracle database (not that the database vendor matters, we may switch to another database one day), and I want to retrieve objects from the database according to user-provided strings. For example, when searching for people, if the user is looking for people who live in '...
stackexchange/codereview
I use ASP.Net with NHibernate accessing a Pgsql database. For some of our Objects, we use NHibernate bags, which map to List objects in our application. Sometimes we have issues with needing to refresh the objects through NHibernate when we update anything to do with the lists in the database. <bag name="Objects" inve...
stackexchange/codereview
I'm trying to use TestDriven.Net not only to test my code, but to call a function on my code whose purpose is to print out the internal state of the code to the Debug window. Here's a very simplified example of what I'm trying to do.. <TestFixture()> _ Public Class UnitTest <Test()> _ Public Sub TestDebug() ...
stackexchange/codereview
I have some ASP.NET Master Pages located in one assembly. I need to use these Master Pages with my WebForm pages located in other assemblies that have a reference to the first assembly. I cannot seem to figure out a way to do this. Is there a nice way that I can do this? If no pretty solution exists I would also like t...
stackexchange/codereview
I only want a list of files that have been added (not ones that have been modified) since a certain date. Is there an easy way to do this? Answer: Here's what ended up working for me, thanks guys! svn log -v -r{2008-10-1}:HEAD svn://path.to.repo/ | grep "^   A" | grep ".java" | sort -u
stackexchange/codereview
I am looking into improving the backup process a group of animators use. Currently they back up their work into external hard drives or DVDs manually, taking full copies of everything. The data consists of thousands of high resolution images, project files of various video editing software and sound files. Basically ev...
stackexchange/codereview
Most often the cleanup rules (Preferences > Java > Code Style > Clean Up) in Eclipse work perfectly and create nice-looking code. But sometimes, especially with comments and concatenated string snippets (like inline SQL queries), the cleanup just messes things up, and destroys my formatting. Is there a way to say to Ec...
stackexchange/codereview
I have a WPF Window which has a among other controls hosts a Frame. In that frame I display different pages. Is there way to make a dialog modal to only a page? When I'm showing the dialog it should not be possible to click on any control on the page but it should be possible to click on a control on the same window th...
stackexchange/codereview
Seems like a simple enough question but I can't seem to find the answer. And hey, dead simple questions like this with dead simple answers is what Joel and Jeff want SO to be all about, right?
stackexchange/codereview
Speaking entirely in technology-free terms, what is the best way to make a mobile friendly site? That is, I want to make a site that will work on a regular computer but also have mobile versions of the pages. Should I rewrite each page? The pages will probably have different functionality, so should I rewrite the ba...
stackexchange/codereview
If by some miracle a segfault occurs in our program, I want to catch the SIGSEGV and let the user (possibly a GUI client) know with a single return code that a serious problem has occurred. At the same time I would like to display information on the command line to show which signal was caught. Today our signal handle...
stackexchange/codereview
At the beginning of each PHP page I open up the connection to MySQL, use it throughout the page and close it at the end of the page. However, I often redirect in the middle of the page to another page and so in those cases the connection does not be closed. I understand that this is not bad for performance of the web s...
stackexchange/codereview
I'm trying to use mysqldump to dump a schema, and it mostly works but I ran into one curiosity: the -p or --password option seems like it is doing something other than setting the password (as the man page and --help output say it should). Specifically, it looks like it's doing what is indicated here: http://snippets.d...
stackexchange/codereview
I want the 2 columns to touch ie. remove the margins, how can I do this? My code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>testing</TITLE> <!-- css --> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/reset-fonts-grids/reset-fonts-gri...
stackexchange/codereview
I'm trying to create with Delphi a component inherited from TLabel, with some custom graphics added to it on TLabel.Paint. I want the graphics to be on left side of text, so I overrode GetClientRect: function TMyComponent.GetClientRect: TRect; begin result := inherited GetClientRect; result.Left := 20; end; This s...
stackexchange/codereview
I'm mocking about with plt-scheme's ffi and I have a C-function that returns a char ** (array of strings). If I declare my function as (_fun _pointer -> _pointer), how do I convert the result to a list of strings in scheme? Here are the relevant C-declarations: typedef char **MYSQL_ROW; /* return data as array of str...
stackexchange/codereview
Good day. I have a program thats launches an external application. That external app has a right click sub menu on it which I need to disable. Is it possible (without modifying the external app) to disable the right click? Maybe permission or group policies and etc. Thanks.
stackexchange/codereview
Being primarily a C++ developer the absence of RAII (Resource Acquisition Is Initialization) in Java and .NET has always bothered me. The fact that the onus of cleaning up is moved from the class writer to its consumer (by means of try finally or .NET's using construct) seems to be markedly inferior. I see why in Java ...
stackexchange/codereview
Does anyone know of any good image resizing libraries that will handling resizing large images(~7573 x ~9485). Something that is fast and doesn't chew to much memory would be great. At the moment I am using IrfanView and just shell invoking it with arguments but I would like to find something that integrates into .ne...
stackexchange/codereview
I have the following situation: class A { public: A(int whichFoo); int foo1(); int foo2(); int foo3(); int callFoo(); // cals one of the foo's depending on the value of whichFoo }; In my current implementation I save the value of whichFoo in a data member in the constructor and use a switch in cal...
stackexchange/codereview
I am retrieving multiple rows into a listview control from an ODBC source. For simple SELECTs it seems to work well with a statement attribute of SQL_SCROLLABLE. How do I do this with a UNION query (with two selects)? The most likely server will be MS SQL Server (probably 2005). The code is C for the Win32 API. This...
stackexchange/codereview
Are the string literals we use inside functions automatic variables? Or are they allocated in heap which we have to free manually? I've a situation like the code shown below wherein I'm assigning a string literal to a private field of the class (marked as ONE in the code) and retrieving it much later in my program and ...
stackexchange/codereview
I've been trying to create a Windows Media Player plugin in Visual Studio 2008, and am having great difficulty finding the correct template. MSDN provides advice here, but it does not appear to be relevant to VS2008. Can anyone suggest how to start a WMP plugin in Visual Studio? EDIT: Ive accepted this answer because i...
stackexchange/codereview
Management wants us to switch to Infragistics. But my boss says that any 3rd party is destined to fail, and at that point there won't be anything we can do about it. Is he right, is he wrong? I don't know. What are your opinions, is it better to use something developed inside the company, or do you prefer something li...
stackexchange/codereview
What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but that's non-standard and only supported by Firefox. I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency. I've also seen recursive copying functions with various flaws. I'm su...
stackexchange/codereview
Say I have a page that display search results. I search for stackoverflow and it returns 5000 results, 10 per page. Now I find myself doing this when building links on that page: <%=Html.ActionLink("Page 1", "Search", new { query=ViewData["query"], page etc..%> <%=Html.ActionLink("Page 2", "Search", new { query=ViewDat...
stackexchange/codereview
I want to filter a java.util.Collection based on a predicate.
stackexchange/codereview
"It is not possible to check out a single file. The finest level of checkouts you can do is at the directory level." How do I get around this issue when using Subversion? We have this folder in Subversion where we keep all our images. I just want to check out one file (image) from that. This folder is really big and ha...
stackexchange/codereview
I have implemented the WMD control that Stack Overflow uses into a project of mine, it almost works like a charm, but when I save the changes to the database it is saving the HTML version and not the Markdown version. So where I have this in my text box: **boldtext** It is really saving this: <b>boldtext</b> How do I...
stackexchange/codereview
My build process consists of Qt's qmake Makefile generator and the typical make utility bundled with linux. My application consists of a few shared libraries and the main application is linked against them. How can I apply the typical linux versioning scheme on my libraries? (Use version 2 -> link against foo.so.2 that...
stackexchange/codereview
What is the best way to handle a big team that has access to a stable but no so pretty code, that is easy to introduce bugs into? I'm looking for something along the lines of SVN locking the file(s).
stackexchange/codereview
My C(++) program, written and compiled using Visual C(++)/Visual Studio, runs fine on my own machine, but refuses to run on another machine. The error message I get is "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
stackexchange/codereview
I've got a text file full of records where each field in each record is a fixed width. My first approach would be to parse each record simply using string.Substring(). Is there a better way? For example, the format could be described as: <Field1(8)><Field2(16)><Field3(12)> And an example file with two records could...
stackexchange/codereview
I have a table column that needs to be limited to a certain width - say 100 pixels. At times the text in that column is wider than this and contains no spaces. For example: a_really_long_string_of_text_like_this_with_no_line_breaks_makes_the_table_unhappy I would like to calculate the width of text server-side and ad...
stackexchange/codereview
Many times I will use the same font scheme for static text in a wxPython application. Currently I am making a SetFont() call for each static text object but that seems like a lot of unnecessary work. However, the wxPython demo and wxPython In Action book don't discuss this. Is there a way to easily apply the same SetFo...
stackexchange/codereview
I'm developing and application that runs as a Windows service. There are other components which include a few WCF services, a client GUI and so on - but it is the Windows service that access the database. So, the application is a long-running server, and I'd like to improve its performance and scalability, I was lookin...
stackexchange/codereview
I haven't found an answer elsewhere and this doesn't appear to have been asked yet on SO. When creating an event binding in wxPython, is it possible to pass additional arguments to the event? For example, this is the normal way: b = wx.Button(self, 10, "Default Button", (20, 20)) self.Bind(wx.EVT_BUTTON, self.O...
stackexchange/codereview
In Firefox I can get the stack trace of an exception by using exception.stack. Is there a way to get that in other browsers, too? Edit: I actually want to save the stack trace automatically (if possible) and not debug it at the time (i.e. I know how to get the stack trace in a debugger).
stackexchange/codereview
I want to generate some XML in a stored procedure based on data in a table. The following insert allows me to add many nodes but they have to be hard-coded or use variables (sql:variable): SET @MyXml.modify(' insert <myNode> {sql:variable("@MyVariable")} </myNode> into (/root[1...
stackexchange/codereview
If I'm writing an application that wants to communicate some information through the use of color, how can I change the background and foreground colors of a given widget? I would like to know how to do this in glade if it's possible, as well as programmatically (to a computed color). I want to know how to do this to ...
stackexchange/codereview
I'm not looking so much for language-specific answers, just general models for implementing a plugin system (if you want to know, I'm using Python). I have my own idea (register callbacks, and that's about it), but I know others exist. What's normally used, and what else is reasonable? What do you mean by a plugin sys...
stackexchange/codereview
With ASP.NET MVC (or using HttpHandlers) you can dynamically generate URLs, like the one in this question, which includes the title. What happens if the title changes (for example, editing it) and there's a link pointing to the page from another site, or Google's Pagerank was calculated for that URL? I guess it's all l...
stackexchange/codereview
I saw this quote on the question: What is a good functional language on which to build a web service? Scala in particular doesn't support tail-call elimination except in self-recursive functions, which limits the kinds of composition you can do (this is a fundamental limitation of the JVM). Is this true? If so, what...
stackexchange/codereview
I have two tables, let's call them PERSON and NAME. PERSON person_id dob NAME name_id person_id name And let's say that the NAME table has data like: name_id person_id name 1 1 Joe 2 1 Fred 3 1 Sam 4 2 Jane 5 2 Kim I need a...
stackexchange/codereview
A quick Google search of this issue shows it's common, I just can't for the life of me figure out the solution in my case. I have a straight forward install of wxWidgets 2.8.8 for Windows straight from the wxWidgets website. Whenever I try to compile anything (such as the sample app described in "First Programs for wxW...
stackexchange/codereview
I have a custom login component in Flex that is a simple form that dispatches a custom LoginEvent when a user click the login button: <?xml version="1.0" encoding="utf-8"?> <mx:Form xmlns:mx="http://www.adobe.com/2006/mxml" defaultButton="{btnLogin}"> <mx:Metadata> [Event(name="login",tpye="events.LoginEv...
stackexchange/codereview
in tcsh I'm trying to redirect STDERR from a command from my .aliases file. I found that I can redirect STDERR from the command line like this. . . $ (xemacs > /dev/tty) >& /dev/null . . . but when I put this in my .aliases file I get an alias loop. . . $ cat .aliases alias xemacs '(xemacs > /dev/tty ) >& /dev/null' $...
stackexchange/codereview
The reason I want to do this is to make it easy to parse out instructions that are emailed to a bot, the kind of thing majordomo might do to parse commands like subscribing and unsubscribing. It turns out there are a lot of crazy formats and things to deal with, like quoted text, distinguishing between header and body...
stackexchange/codereview
Our build process uses Visual Studios 2003 link.exe for linking. On one machine we're seeing the following error: _X86_Win32/Debug/Intermediate/OurApp.exe LINK: extra operand `/subsystem:windows' Try `LINK --help' for more information It appears to be using the same version of visual studios as the other machines. H...
stackexchange/codereview
I am thinking about buying an iPod touch to make some money on developing apps for the iPhone. I like the concept of the App Store and had a quick look at it with iTunes. Looks like applications are categorized, to be iPhone OR iPod applications. Some apps which are free for the iPod seem to cost for iPhone users. What...
stackexchange/codereview
Earlier this week I ask a question about filtering out duplicate values in sequence at run time. Had some good answers but the amount of data I was going over was to slow and not feasible. Currently in our database, event values are not filtered. Resulting in duplicate data values (with varying timestamps). We need to ...
stackexchange/codereview
Does having several levels of base classes slow down a class? A derives B derives C derives D derives F derives G, ... Does multiple inheritance slow down a class?
stackexchange/codereview
We have some very large data files (5 gig to 1TB) where we need quick read/write access. Since we have a fixed record size it seems like some form of ISAM would be the way to go. But would be happy to hear other suggestions. Ideally the solution would have an Apache or LGPL style license but we will pay if we have t...
stackexchange/codereview
I need to alter the length of a column column_length in say more than 500 tables and the tables might have no of records ranging from 10 records to 3 or 4 million records. The column may just be a normal column CREATE TABLE test(column_length varchar(10)) The column might contain non-clustered index on it. CREATE ...
stackexchange/codereview
Why are 'out' parameters in .NET a bad idea? I was recently asked this, but I had no real answer besides it's simply unnecessarily complicating an application. What other reasons are there?
stackexchange/codereview
I am adding a service reference to one of my projects in Visual Studio 2008. On the "Service Reference Settings" screen I am selecting the default option which says "Reuse types in all referenced assemblies". I have referenced the project for which I want to reuse a type. That type is being passed in as a parameter t...
stackexchange/codereview
For various reasons a web application would be best suite a project that I am working on but I am worried about the user interface. There will be a lot of pick and choose options that could be handled by check lists, combo boxes, etc… and to a lesser extent their will be some free text fields. However, I am concerned...
stackexchange/codereview
UPDATE: Focus your answers on hardware solutions please. What hardware/tools/add-in are you using to improve ASP.NET compilation and first execution speed? We are looking at solid state hard drives to speed things up, but the prices are really high right now. I have two 7200rpm harddrives in RAID 0 right now and I'm ...
stackexchange/codereview
I work on a large C# application (approximately 450,000 lines of code), we constantly have problems with desktop heap and GDI handle leaks. WPF solves these issues, but I don't know what is the best way to upgrade (I expect this is going to take a long time). The application has only a few forms but these can contain m...
stackexchange/codereview
I'm trying to achieve the equivalent of a WinForms ListView with its View property set to View.List. Visually, the following works fine. The file names in my Listbox go from top to bottom, and then wrap to a new column. Here's the basic XAML I'm working with: <ListBox Name="thelist" IsSynchronizedWithCurrentItem="T...
stackexchange/codereview
I wrote C++ for 10 years. I encountered memory problems, but they could be fixed with a reasonable amount of effort. For the last couple of years I've been writing C#. I find I still get lots of memory problems. They're difficult to diagnose and fix due to the non-determinancy, and because the C# philosophy is that you...
stackexchange/codereview
I need to customize an open-source project. The changes are for a specific organization and will not be useful to the public project. The code changes include disabling features not needed by the organization (affecting 5% of the code), customizing other features for the organization (affecting 20% of the code), and ad...
stackexchange/codereview
Assuming the you are implementing a user story that requires changes in all layers from UI (or service facade) to DB. In what direction do you move? From UI to Business Layer to Repository to DB? From DB to Repository to Business Layer to UI? It depends. (On what ?)
stackexchange/codereview
Let's say I have code like this: $dbh = new PDO("blahblah"); $stmt = $dbh->prepare('SELECT * FROM users where username = :username'); $stmt->execute( array(':username' => $_REQUEST['username']) ); The PDO documentation says: The parameters to prepared statements don't need to be quoted; the driver handles it for you...
stackexchange/codereview
Is it possible to code a Dojo DnD target to accept external objects, such as files or folders from a file explorer? Windows Explorer, for example.
stackexchange/codereview
What do you think the next evolution of languages will look like?
stackexchange/codereview
Are there any good configuration file reading libraries for C\C++ that can be used for applications written on the linux platform. I would like to have a simple configuration file for my application. At best i would like to steer clear of XML files that might potentially confuse users.
stackexchange/codereview
I realize that in of TOAD books right, it justifies the reaons on why it uses tabbed pane is that tree view involves too much scrolling. But for me i like tree view better. As it only shows you the top level. I see TOAD user interface. i thought the tabbed panels was very confusing for me to switch around. What are you...
stackexchange/codereview
Under the View-Model-ViewModel pattern for WPF, I am trying to databind the Heights and Widths of various definitions for grid controls, so I can store the values the user sets them to after using a GridSplitter. However, the normal pattern doesn't seem to work for these particular properties. Note: I'm posting this as...
stackexchange/codereview
I set my ASP.NET State service to automatic start the other day on a hosted VSP Win 2003 server. I came back today and the service has gone completely missing!? Any ideas why it has gone and how to get it back? Thanks!
stackexchange/codereview
Anyone have any idea? And any open source sofware which also seens to perform this kind of functionality?
stackexchange/codereview
Anyone have any idea? And any open source sofware which also seens to perform this kind of functionality?
stackexchange/codereview
I'm having issues creating an ActionLink using Preview 5. All the docs I can find describe the older generic version. I'm constructing links on a list of jobs on the page /jobs. Each job has a guid, and I'd like to construct a link to /jobs/details/{guid} so I can show details about the job. My jobs controller has a...
stackexchange/codereview
I'd like to get at least one JRE/JDK level on my Windows machine where I have the JRE/JDK source that matches the exact level of the JRE/JDK. My purpose is to be able to go into the system classes while debugging. Any suggestions about how to do this? Thanks in advance.
stackexchange/codereview
What are real-world problems where a recursive approach is the natural solution besides depth-first search (DFS)? (I don't consider Tower of Hanoi, Fibonacci number, or factorial real-world problems. They are a bit contrived in my mind.)
stackexchange/codereview
Is it possible to change the frame title when using \againframe from the Beamer package, in LaTeX? I would like to have a previous frame displayed, at a specific slide inside the frame, but with a different title this time. Thanks.
stackexchange/codereview
I have a project written in Java (>1.5). Is it possible to write parts of the project with C#? For instance the GUI and calling the methods and instantiate the classes written in java? If yes, how?
stackexchange/codereview
On a project I'm working on, we use subversion, with tortoiseSVN as a client, under windows XP. As we enter in production and continue development in parallel, many branches are created. Often, we have to backport modifications made on the branch to the trunk, or to older branches. Backporting is a very delicate task, ...
stackexchange/codereview
I am looking for an algorithm to calculate the next set of operations in a sequence. Here is the simple definition of the sequence. Task 1A will be done every 500 hours Task 2A will be done every 1000 hours Task 3A will be done every 1500 hours So at t=500, do 1A. At t=1000, do both 1A and 2A, at t=1500 do 1A and 3A,...
stackexchange/codereview
After reading "What’s your/a good limit for cyclomatic complexity?", I realize many of my colleagues were quite annoyed with this new QA policy on our project: no more 10 cyclomatic complexity per function. Meaning: no more than 10 'if', 'else', 'try', 'catch' and other code workflow branching statement. Right. As I ex...
stackexchange/codereview
How do i delete all the tables in the schema on Apache Derby DB using JDBC?
stackexchange/codereview
I have a small problem with interfaces. Here it is in Pseudo code : type Interface1 = interface end; Interface2 = interface end; TParentClass = class(TInterfacedObject, Interface1) private fChild : Interface2; public procedure AddChild(aChild : Interface2); end; TChildClass = class(TInterfa...
stackexchange/codereview
did anyone tried monitoring memcached statistics with openNMS? If you did, what did you use?
stackexchange/codereview
I am using a multi-dimensional dynamic array in delphi and am trying to figure this out: I have 2 seperate values for the first index and second index that are totally seperate of each other. As new values come I want to grow the array if that new value is outside of either bound. For new values x, y I check: if Length...
stackexchange/codereview
Is it possible to implement the Visitor Pattern respecting the Open/Closed Principle, but still be able to add new visitable classes? The Open/Closed Principle states that "software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification". struct ConcreteVisitable1; struct...
stackexchange/codereview
The tiny text entry cursor in the Visual Studio 2005's editor is driving me nuts. I'd ideally like to be able to highlight (say in yellow) the entire line that I'm currently on, but I'll settle for just making the cursor bigger and/or a different colour. Any help gratefully received!
stackexchange/codereview