instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Is there any way, from a PHP script called from mod_php with apache, to tell apache to do an INTERNAL redirect to some other file? I do not want to read/require this file from PHP and spit it out, I think it'd be more efficient to pass this off to Apache. I believe this can be done with mod_perl and I'm curious if the...
stackexchange/codereview
Apologies if any of what I'm about to say makes no sense or overlooks something obvious - my knowledge of CLR internals is spotty. If I understand correctly, then if I just build a solution for 'AnyCPU' in VS2K5 (or point MSBuild at that .sln file with those settings) then the binaries only compile as far as MSIL. They...
stackexchange/codereview
I need to do a union of two tables using NHibernate and HQL. I have found very little help online, and I want to know if it is possible and if so how?
stackexchange/codereview
Looking at this loop that copies one c-string to another: void strcpyr(char *s, char *t) { while(*s++=*t++)// Why does this work? ; } Why do we not check for the '\0' character in the while loop, like this? while((*s++=*r++)!='\0').. How does the first loop terminate?
stackexchange/codereview
I am unable to add .* at extension mapping in IIS (defaultwebsite -> properties -> home directory -> configuration) because it gives the message "Wrong file Extension". The operating system is Windows 2003 server. I can add .* at mapping in IIS when the operating system is Windows XP
stackexchange/codereview
I'm trying to convert the below SQL query to HQL and am having a few issues. A straight line by line conversion doesn't work, I am wondering if I should be using an Inner Join in the HQL? SELECT (UNIX_TIMESTAMP(cosc1.change_date) - UNIX_TIMESTAMP(cosc2.change_date)) FROM customer_order_state_change cos...
stackexchange/codereview
I hope someone will be able to answer my question. I have Subversion set up, served by Apache2+SSL, doing web development. I want a post-commit hook that runs svn update on my testing server, so when someone commits, it will automatically update the testing site. The hook doesn't work because the certificate is a self ...
stackexchange/codereview
I'm writing a small agent in java that will play a game against other agents. I want to keep a small amount of state (probably approx. 1kb at most) around between runs of the program so that I can try to tweak the performance of the agent based upon past successes. Essentially, I will be reading a small amount of data ...
stackexchange/codereview
I have to pass parameters between two rails apps. In one side (sender) I have an array of hashes. I have a code like the following to send the data: http = Net::HTTP.new('localhost', '3030') result = http.post('/processar_lotes', my_array_of_hashes) Some questions Is there any (kind of) serialize or something l...
stackexchange/codereview
I am trying to create a report in SSRS2000 that will query an ORACLE database and pass one parameter, I am getting the following error message: ORA-01036: illegal variable name/number But have been unable to find much help elsewhere on the web with this error code I was hoping that this would be fairly simple to do, d...
stackexchange/codereview
I'm getting started on building a REST API for a project I'm working on, and it led me to do a little research as to the best way to build an API using RoR. I find out pretty quickly that by default, models are open to the world and can be called via URL by simply putting a ".xml" at the end of the URL and passing appr...
stackexchange/codereview
I know many people who use computers every day, who do not know how to select multiple items in a HTML select box/list. I don't want to use this control in my pages any more: Please pick 3 options: <select name="categories" size="10" multiple="yes"> So what user-friendly alternatives do you suggest? Perhaps have 10 ti...
stackexchange/codereview
I have an application that is made up of the following: A central database containing 100k+ records A number of "client" databases each containing around 10-20k records The client databases contain details of contacts that each have a unique ID (contactID). The central database contains some of these contacts identifie...
stackexchange/codereview
I try to get rounded corners on a UIImage, what I read so far, the easiest way is to use a mask images. For this I used code from TheElements iPhone Example and some image resize code I found. My problem is that resizedImage is always nil and I don't find the error... - (UIImage *)imageByScalingProportionallyToSize:(CG...
stackexchange/codereview
The simple HTML below displays differently in Firefox and WebKit-based browsers (I checked in Safari, Chrome and iPhone). In Firefox both border and text have the same color (#880000), but in Safari the text gets a bit lighter (as if it had some transparency applied to it). Can I somehow fix this (remove this transpare...
stackexchange/codereview
I've got menu items that look like this <ul> <li>Item1<span class="context-trigger"></span></li> <li>Item2<span class="context-trigger"></span></li> <li>Item3<span class="context-trigger"></span></li> </ul> with CSS that turns the above into a horizontal menu, and JS that turns the [spans] into buttons that brin...
stackexchange/codereview
I am currently defining regular expressions in order to capture parameters in a URL, as described in the tutorial. How do I access parameters from the URL as part the HttpRequest object? My HttpRequest.GET currently returns an empty QueryDict object. I'd like to learn how to do this without a library, so I can get to k...
stackexchange/codereview
I've got a C# program that's supposed to play audio files. I've figured out how to play any sound file for which Windows has a codec by using DirectShow, but now I want to properly fill in the file type filter box on the Open dialog. I'd like to automatically list any file format for which Windows has a codec. If so...
stackexchange/codereview
At the risk of being downmodded, I want to ask what the best mechanism (best is obviously subjective for the practice violation inherent here) for viewing data from a table, using C#, with a lot of columns. By a lot, I mean something like 1000. Now before you get all click happy, or throw out responses like "why the h...
stackexchange/codereview
I am just getting started with MVC, and it seems like it will be a great way to go, once I manage to switch my thinking to it. Most of the material I have come across seems to have a 1-1 relationship between models, views, and tables - ie each model represents a table and allows CRUD, plus more complex functions. What ...
stackexchange/codereview
I was wondering what would be the best approach you guys would take to relocate an entire Eclipse workspace? Assuming it's either versioned and exported, what would you do? Import the file? Checkout the whole thing from the repo? Thanks much in advance!
stackexchange/codereview
My team is considering building our next web app using the ASP.NET MVC framework. I am slightly hesitant, as are some others, because it is still only in beta. I really want to dive in because it seems to be a great way of providing clear separation of concerns and improving testability. Should I take the plunge no...
stackexchange/codereview
What I am looking for is the equivalent of System.Windows.SystemParameters.WorkArea for the monitor that the window is currently on. Clarification: The window in question is WPF, not WinForm.
stackexchange/codereview
Unsure if I've phrased this correctly, but in the callback how do I reference the controls property of the base class? This has been bugging me for some time and I usually work around it, but I'd be grateful if anybody can enlighten me on how I should do this properly. var base = function() { var controls = {}; ...
stackexchange/codereview
I'm looking for ActiveX components that can easily: get and send emails via SMTP and POP3 strip out and save attachments. Convert RTF (Outlook emails) to HTML Sanitize HTML. What components would you recommend? What components do you use?
stackexchange/codereview
The strongly typed SearchViewData has a field called Colors that in it's turn is a ColorViewData. In my /Colors.mvc/search I populate this viewData.Model.Colors based on the given search criteria. Then, based on several factors, I render one of a set of user controls that are able to render itself with a ColorViewData....
stackexchange/codereview
I have an ASP.NET application. Basically the delivery process is this one : Nant builds the application and creates a zip file on the developer's computer with the application files without SVN folders and useless files. This file is delivered with a Nant script. The zip and nant files are copied to the client's compu...
stackexchange/codereview
Why did Windows 64 choose to require xmm6 and xmm7 to be saved/restored? In Windows 32, you could write assembly routines which clobbered xmm0...xmm7. But if you take that same assembly code and run it in Windows 64, it will usually cause an application fault because VS2007 stores double-precision values in xmm6 and xm...
stackexchange/codereview
Say you are writing an application that must implement the HTTP protocol. Protocols are quite complex and may allow several commands depending on which stage of a transaction they are in. As an example, look at SMTP. An SMTP server must throw an error if the "data" command is sent before receiving "rcpt" and "mail". My...
stackexchange/codereview
Uhm I'm not sure if anyone has encountered this problem a brief description is on IE6 any <select> objects get displayed over any other item, even div's... meaning if you have a fancy javascript effect that displays a div that's supposed to be on top of everything (e.g: lightbox, multibox etc..) onclick of a certain e...
stackexchange/codereview
I am new to creating Java web applications and came across this problem when trying to interact with my database (called ccdb) through my application: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/ccdb/ My application runs on JBoss and uses Hibernate to interact with the MySQL database. I h...
stackexchange/codereview
I want to use typed parameters in the web methods. But when visual studio 2005 creates the web reference on for the client it automatically creates it's own types. I am using a .net web service and a .net client. For example: < WebMethod > _ Public Function Foo() as ServerNamespace.Bar ... End Function at the client...
stackexchange/codereview
I wonder if is possible to use FTS with LINQ using .NET Framework 3.5. I'm searching around the documentation that I didn't find anything useful yet. Does anyone have any experience on this?
stackexchange/codereview
once you have a commit that contains a submodule object, you pretty much cannot get git-svn to commit past it. Any ideas, workarounds, anything that is not "don't use submodules with git-svn"? So far the answer seems to be a big NO. Is there any way to at least allow existing git commits containing submodule data to be...
stackexchange/codereview
I am writing a C# console application that takes a binary file, rips it apart, analyzes it, and stores the data into a database. We want to use BizTalk to orchestrate watching when a new binary file is placed in a directory and calling my application with the file name/names to be parsed. Can BizTalk run a command ...
stackexchange/codereview
I'm trying to upload documents to SharePoint using web services attaching custom metadata to the files. I've searched but have not found a good tutorial covering all these topics. Can anybody point me in the right direction? Here's why I think I need to use web services: I'm developing on XP and the Sharepoint object...
stackexchange/codereview
Possible Duplicate: Resizing an iframe based on content I'm loading an iFrame and want the parent to automatically change the height based upon the height of the iFrame's content. To simply things, all pages belong to the same domain, so I shouldn't run into cross-site scripting issues.
stackexchange/codereview
I use XPather Browser to check my XPATH expressions on an HTML page. My end goal is to use these expressions in Selenium for the testing of my user interfaces. I got an HTML file with a content similar to this: <tr> <td>abc</td> <td>&nbsp;</td> </tr> I want to select a node with a text containing the string "&nbs...
stackexchange/codereview
I'm running an ASP.NET web site on IIS 6.0 (Windows 2003), and the site uses "integrated windows authentication". The IWA configuration is not a must (until now), but is configured anyway. The application pool runs as the "Network Service". Also, in web.config, there's the line "". The problem I'm facing now is that th...
stackexchange/codereview
I'm using NHibernate mappings as a defining schema for my app in the development phase and for the schema definition I'm using the NHibernate.Tool.hbm2ddl.SchemaExport() method to generate a createscript. Now, I have considered using the Configuration.GenerateSchemaUpdateScript() method to generate database changescrip...
stackexchange/codereview
I have 3 projects in my solution that I want to deploy. Is there a nice and quick way of using Visual Studio's setup projects to deploy all three apps using one MSI and letting the user decide which apps he wants to install during the install process? I have setup projects for the 3 individual apps, I also have an ...
stackexchange/codereview
I have inherited a django+fastcgi application which needs to be modified to perform a lengthy computation (up to half an hour or more). What I want to do is run the computation in the background and return a "your job has been started" -type response. While the process is running, further hits to the url should return ...
stackexchange/codereview
I was getting bad data from an application I was writting using C++ in Visual Studio 2k3 so I decided to debug it. Then I found it was throwing an exception but one I can't track down. Then I placed some try/catch blocks and low and behold, when I don't debug there is no exception. That is, I have code that looks like ...
stackexchange/codereview
I'm just wondering about large projects - say an airlines reservation system, how many classes/objects it is likely to have. Objects: customer, airplane, airport, route, ticket, order. That's about all I can think of. The project will probably be hundreds of thousands of lines of code, so are there likely to be mor...
stackexchange/codereview
What solutions are out there for getting through a corporate proxy using NTLM authentication? Anything that isn't a browser fails. I've tried NTLMAPS, without success.
stackexchange/codereview
I'm passing small (2-10 KB)XML documents as input to a WCF service. now I've two option to read data values from incoming XML Deserialize to a strongly typed object and use object properties to access values use XPath to access values which approach is faster? some statistics to support your answer would be great.
stackexchange/codereview
I'm about to take on a project that requires a Firefox addon to issue call to COM dll's installed on the client Windows machine and I'm having a hard time estimating the complexity of this undertaking. I have quite a bit of experience with COM, so I'm not frightened by it. I have less experience with Firefox addons, bu...
stackexchange/codereview
<?php /** * My codebase is littered with the same conditionals over and over * again. I'm trying to refactor using inheritance and the Factory * pattern and I've had some success but I'm now stuck. * * I'm stuck because I want to derive a new class from the one * returned by the Factory. But I can't do that, so...
stackexchange/codereview
I have an app that is failing on the install. The vendor says I probably have ini_set() disabled. How can I check this?
stackexchange/codereview
I have a DataGridView in a VB.NET app that I have limited to cell selection only. The control has two columns, the first is not editable, the second is editable. I have a ContextMenuStrip that provides some additional functionality and I am able to make it appear when an editable cell receives a right click and is not ...
stackexchange/codereview
I'm having a disagreement with someone over how best to implement a simple method that takes an array of integers, and returns the highest integer (using C# 2.0). Below are the two implementations - I have my own opinion of which is better, and why, but I'd appreciate any impartial opinions. Option A public int GetLarg...
stackexchange/codereview
We have some SQL server reporting services reports. I didn't write then but I have to take care of them. These reports fire when opened in the browser, and with the default parameters (search terms and restrictions are blank) they retrieve a lot of data, which is slow. The client would prefer that the report is not gen...
stackexchange/codereview
i tried the following svnadmin create svn_repos svn import my_first_proj file:///c:/svn_repos -m "initial import" svn checkout file:///c:/svn_repos and the command returned A svn_repos\trunk A svn_repos\trunk\Sample.txt.txt A svn_repos\branches A svn_repos\branches\my_pers_branch Checked out revision 1. ...
stackexchange/codereview
How can I transform a String value into an InputStreamReader?
stackexchange/codereview
"To help protect your security, Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer" Whenever I add Flash movies or javascript code this message will show. It also shows for somebody else, so how do I get rid of this message? If I load or access some o...
stackexchange/codereview
How do I know which files and registry keys an application is trying to access?
stackexchange/codereview
This was an job placement interview I faced. They asked whether we can realloc Array, I told yes. Then They asked - then why we need pointers as most of the people give reason that it wastes memory space. I could not able to give satisfactory answer. If any body can give any satisfactory answer, I'll be obliged. Please...
stackexchange/codereview
I have a flash projector file that is going on a CD-ROM. One section is just a simple list of links to useful websites. These links were created by adding URLs in the properties box to static text. The projector is running in full screen mode and was made using Flash CS3. This is the behaviour when running the flash pr...
stackexchange/codereview
I have a query that is currently using a correlated subquery to return the results, but I am thinking the problem could be solved more eloquently perhaps using ROW_NUMBER(). The problem is around the profile of a value v, through a number of years for an Item. Each item has a number of versions, each with its own prof...
stackexchange/codereview
I'm using Apache Subversion to manage and store a decent volume of code. Trying to get at it on a standard work machine using svn+ssh with TortoiseSVN on Windows Vista, I find that I can't actually bring all of it down to my local machine at once - the transfer stops after about 1 MB. I can grab it all in fits and star...
stackexchange/codereview
How can I detect in C# whether two files are absolutely identical (size, content, etc.)?
stackexchange/codereview
And I'm not meaning Bits Per Minute, but Business Process Management. At first though BPM was overestimated, because the technology is somehow easy to address, but I've learned the value of BPM suites is in involving the non-technical, the business experts into the software design. I know, the user is always with us ...
stackexchange/codereview
Basically, I would like to check if I have rights to open the file before I actually try to open it; I do not want to use a try/catch for this check unless I have to. Is there a file access property I can check before hand?
stackexchange/codereview
I am pretty new to php, but I am learning! I have a simple form on a client website. I am testing the form and when I click submit, I get the following error: Form Mail Script Wrong referrer (referring site). For security reasons the form can only be used, if the referring page is part of this website. Note for the Ad...
stackexchange/codereview
Looking for a bit of regex help. I'd like to design an expression that matches a string with "foo" OR "bar", but not both "foo" AND "bar" If I do something like... /((foo)|(bar))/ It'll match "foobar". Not what I'm looking for. So, how can I make regex match only when one term or the other is present? Thanks!
stackexchange/codereview
I am working on developing a pair of libraries to work with a REST API. Because I need to be able to use the API in very different settings I'm currently planning to have a version in PHP (for web applications) and a second version in Python (for desktop applications, and long running processes). Are there any best p...
stackexchange/codereview
There exists a very good talk about C# vs. Java where H.Mössenböck compares the two languages. That's from 2003, C# 2.0 compared with Java 1.5. Can be found in German here: http://dotnet.jku.at/ What good resources exist, where actual language versions are compared? Or maybe post a comparison right here? My interests a...
stackexchange/codereview
I have some workflow to work with in Worflow foundation. I need to follow some workflow design patterns Some best performances in workflow
stackexchange/codereview
I'm working on a project that contains Thomas Brothers Map page and grid numbers. Is there a way to programatically convert from this map page to a latitude & longitude? An Example would be for the intersection of the US101 & I405 freeways. ThomasBrothers: 561-3G (page-grid)
stackexchange/codereview
I'm getting an Exception while trying to insert a row in oracle table. I'm using ojdbc5.jar for oracle 11 this is the sql i'm trying INSERT INTO rule_definitions(RULE_DEFINITION_SYS,rule_definition_type, rule_name,rule_text,rule_comment,rule_message,rule_condition,rule_active, rule_type,current_value,last_modified_by,...
stackexchange/codereview
Is there a way, within the .net framework, to check to see if two different shared folders are actually pointing to the same physical directory? Do directories in Windows have some sort of unique identifier? Google-fu is failing me. (I mean, aside from writing a temp file to one and seeing if it appears in the other)...
stackexchange/codereview
I have a Ruby script that generates a UTF8 CSV file remotely in a Linux machine and then transfers the file to a Windows machine thru SFTP. I then need to open this file with Excel, but Excel doesn't get UTF8, so I always need to open the file in a text editor that has the capability to convert UTF8 to ANSI. I would l...
stackexchange/codereview
I've got an MSI based install that I've wrapped in an EXE file as per my installation packaging software (which is Wise Package Studio 7.0 SP2). I've made many changes to the install, and every time I've tested them, they've worked just fine... up until now. I changed some text on a dialog box for when the installation...
stackexchange/codereview
I'm writing a program in C# that runs in the background and allows users to use a hotkey to switch keyboard layouts in the active window. (Windows only supports CTRL+SHIFT and ALT+SHIFT) I'm using RegisterHotKey to catch the hotkey, and it's working fine. The problem is that I can't find any API to change the keyboard...
stackexchange/codereview
What is your favorite, lossless image format for games (namely 2d games)? And why? Some things to take into consideration are size on disk, overhead for converting to a usable format, and features of the format (ie alpha support). There is no best answer, but be sure to back yours up the best you can!
stackexchange/codereview
Clicking through to the download-page if see that the last version of the download is over one year old and it's also "just" a Release Candidate of version 1.0. There are really no news on any development. Yes, you can find newer versions from the nightly builds, but that's not a real serious option. Also, the "getting...
stackexchange/codereview
I have a little dilemma on how to set up my visual studio builds for multi-targeting. Background: c# .NET v2.0 with p/invoking into 3rd party 32 bit DLL's, SQL compact v3.5 SP1, with a Setup project. Right now, the platform target is set to x86 so it can be run on Windows x64. The 3rd party company has just released 6...
stackexchange/codereview
I would like to create (in code) tree of controls that would render as a table with several TBODY tags, i.e.: <TBODY> <TR> <TD></TD> </TR> <TR> <TD></TD> </TR> </TBODY> I tried both Table and HtmlTable controls but had no success. Any clues?
stackexchange/codereview
I have been maintaining the git mirror of the watir project. Some time a couple weeks ago, we had someone ready to submit their first git-based patch. Unfortunately, we ran into some issues regarding line endings (CRLF vs. LF, etc.) because of the multi-platform nature of the project. I tried what I could to set the ...
stackexchange/codereview
I'm considering one of two IRepository interfaces, one that is a descendant of IQueryable and one that contains IQueryable. Like this: public interface IRepository<T> : IQueryable<T> { T Save(T entity); void Delete(T entity); } Or this: public interface IRepository<T> { T Save(T entity); void Delete(T...
stackexchange/codereview
I'm playing around with BCEL. I'm not using it to generate bytecode, but instead I'm trying to inspect the structure of existing compiled classes. I need to be able to point to an arbitrary .class file anywhere on my hard drive and load a JavaClass object based on that. Ideally I'd like to avoid having to add the giv...
stackexchange/codereview
How can I make my std::fstream object start reading a text file from the second line?
stackexchange/codereview
I am looking for the best way to implement a winform with different languages, but i don't want to use the resources files of Visual Studio because you always have to recompile. I have found the following solution to use XML files without compilation: http://www.codeproject.com/KB/miscctrl/xml_localization.aspx I find ...
stackexchange/codereview
I am trying to use the Recurring payment API offered by PayPal. I have a scenario which I am not able to address directly. It goes like this. We have a website where we sell some services. Now the services are charged per user license. A user can buy/cancel user license in between. We want to offer the customer a recur...
stackexchange/codereview
In particular what strengths does it have over caching features of Asp.net
stackexchange/codereview
I would like to program Java servlets using Eclipse and I plan on deploying them using Tomcat. I think I can build the projects using Ant which is bundled with Eclipse. I have the standard Eclipse IDE. What options do I have for doing Servlet development in Eclipse? What changes do I need to make to Eclipse? Do I need ...
stackexchange/codereview
I am trying to embed multiple external websites into one web page. Using an IFRAME works ok, but once you get past 10 embedded iframes, the memory fottprint starts to get too big. So I was thinking, is it possible via ajax/javascript, to re-use the same iframe to load the collection of websites one after enother, and ...
stackexchange/codereview
We use Telerik's RadEditor for our content management system's WYSIWYG editor. We need the find & replace functionality that is in the WYSIWYG editor to also be in the HTML editor. The editor is pretty customizable, anyone know if there is a way to enable this or hack it in?
stackexchange/codereview
How can I convert a DTD to a Schema as part of a Maven build? Specifically, I am looking for a Maven plugin to which I can give the URL to a DTD and it will generate an XML Schema Definition file. Failing a good Maven plugin, perhaps I can embed an ANT task into my Maven build
stackexchange/codereview
As JavaScript frameworks like jQuery make client side web applications richer and more functional, I've started to notice one problem... How in the world do you keep this organized? Put all your handlers in one spot and write functions for all the events? Create function/classes to wrap all your functionality? Write l...
stackexchange/codereview
Evaluate: ((((lambda (x) (lambda (y) (lambda (x) (+ x y)))) 3) 4) 5) This is what I did: evaluate ((((lambda (x) (lambda (y) (lambda (x) (+ x y)))) 3) 4) 5) evaluate 5 -> 5 evaluate (((lambda (x) (lambda (y) (lambda (x) (+ x y)))) 3) 4) evaluate 4 -> 4 evaluate ((lambda (x) (lambda (y) (lambda (x) (+ x y)))) 3) ...
stackexchange/codereview
OK, I have a somewhat complicated system in C++. In a nutshell, I need to add a method to a third party abstract base class. The third party also provides a ton of derived classes that also need the new functionality. I'm using a library that provides a standard Shape interface, as well as some common shapes. class Sha...
stackexchange/codereview
I have been thinking about starting a side project at home to exercise my brain a bit. Reversi looks like a simply game, where mobility has a profound effect on game play. It is at least a step up from tic tac toe. This would be a single player against an AI of some sort. I am thinking to try this in C++ on a PC. W...
stackexchange/codereview
I want to move a legacy Java web application (J2EE) to a scripting language - any scripting language - in order to improve programming efficiency. What is the easiest way to do this? Are there any automated tools that can convert the bulk of the business logic?
stackexchange/codereview
I’m trying to implement a dictionary for use with WCF. My requirements are: actual (private variable or base class) type equivalent to Dictionary Comparer = System.StringComparer.InvariantCultureIgnoreCase Custom (override/new) Add(key, value) method (to include validations). Override ToString() Use of the same t...
stackexchange/codereview
I'm trying to detect when the onresize event ends in a browser. If I use the onresize event, in Firefox it seems to be fired only once, after the resize event ends, which is exactly what I want. But if I try in IE, the onresize event gets fired many times during the resize. I also try the onresizeend event, advertised ...
stackexchange/codereview
I was under the impression that I could run it on any machine, but a guy from our hosting company is saying that the csr has to be generated on the server hosting the site. Can anyone clear this one up for me? Thanks.
stackexchange/codereview
I've read a bunch of tutorials involving XNA (and it's various versions) and I still am a little confused on drawing primitives. Everything seems to be really convoluted. Can someone show me, using code, the simplest XNA implementation of drawing one or two lines on to the screen? Perhaps with a brief explanation (in...
stackexchange/codereview
I always try to avoid to return string literals, because I fear they aren't defined outside of the function. But I'm not sure if this is the case. Let's take, for example, this function: const char * return_a_string(void) { return "blah"; } Is this correct code? It does work for me, but maybe it only works for my ...
stackexchange/codereview
How can I run a stored procedure from a CL program? RUNSQLSTM requires a source member, but I just want to build a command so users can pass in variables easily, so this won't work.
stackexchange/codereview