instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
PHP 4.4 and PHP 5.2.3 under Apache 2.2.4 on ubuntu. I am running Moodle 1.5.3 and have recently had a problem when updating a course. The $_POST variable is empty but only if a lot of text was entered into the textarea on the form. If only a short text is entered it works fine. I have increased the post_max_size from 8...
stackexchange/codereview
When I get a java.io.InvalidClassException, it gives me the serialVersionUID that it wants, and the serialVersionUID that it got. Is there an easy way to tell which of my dozens of jars using the wrong serialVersionUID? Update: I should mention that our intention is to update everything at the same time, but I'm tryin...
stackexchange/codereview
Has anybody got any suggestions for a custom tabcontrol implemented in C# and which adheres to these criteria: Allows the tabs to be placed along the side of the control. Tab text must read horizontally. Allow custom colouring. Open source or no cost. I prefer not to get my hands dirty with ownerdrawing if a solution...
stackexchange/codereview
In C#, what is the best way to access a property of the derived class when the generic list contains just the base class. public class ClassA : BaseClass { public object PropertyA { get; set; } } public class ClassB: BaseClass { public object PropertyB { get; set; } } public class BaseClass { } public void Ma...
stackexchange/codereview
We have a product but we are doing some rebranding so we need to be able to build and maintain two versions. I used resource files combined with some #if stuff to solve the strings, images, and whatever else, but the program icon is giving me trouble. I couldn't figure it out from msdn or a google search. Thanks!
stackexchange/codereview
Say I need some very special multiplication operator. It may be implemented in following macro: macro @<<!(op1, op2) { <[ ( $op1 * $op2 ) ]> } And I can use it like def val = 2 <<! 3 And its work. But what I really want is some 'english'-like operator for the DSL Im developing now: macro @multiply(op1, op2) { ...
stackexchange/codereview
I have a specialized list that holds items of type IThing: public class ThingList : IList<IThing> {...} public interface IThing { Decimal Weight { get; set; } Decimal Velocity { get; set; } Decimal Distance { get; set; } Decimal Age { get; set; } Decimal AnotherValue { get; set; } [...even mor...
stackexchange/codereview
<div style="width: 300px"> <div id="one" style="float: left">saved</div><input type="submit" id="two" style="float: right" value="Submit" /> </div> I would like div#one to be centred in the space between the left edge of the parent div and the left edge of the submit button.
stackexchange/codereview
I want to know how to use variables for objects and function names in Python. In PHP, you can do this: $className = "MyClass"; $newObject = new $className(); How do you do this sort of thing in Python? Or, am I totally not appreciating some fundamental difference with Python, and if so, what is it?
stackexchange/codereview
Is there a way to invoke an external script or batch file from VC6 (and later) project files? I have a background process that I need to kill before attempting to build certain projects (DLLS, executables) and haven't found a way to successfully do so from the project itself. I'd like simply to call a batch file with ...
stackexchange/codereview
I would like to know many minutes between 2 dates? Example : Now - tommorow at the exact time would return me 1440.
stackexchange/codereview
I'm reading this C++ open source code and I came to a constructor but I don't get it ( basically because I don't know C++ :P ) I understand C and Java very well. TransparentObject::TransparentObject( int w, int x, int y, int z ) : _someMethod( 0 ), _someOtherMethod( 0 ), _someOtherOtherMethod( 0 ), ...
stackexchange/codereview
I have Apache 2 running on a VPS server (running Debian). I recently changed the timezone on the server (using dpkg-reconfigure tzdata) from America/New_York to America/Los_Angeles to match my move across country. I have also rebooted the virtual machine since making the change. However, the Apache processes seem to ...
stackexchange/codereview
Anyone understand why the following doesn't work? What I want to do is copy current route data plus whatever I add via an anonymous object into new routedata when forming new links on the view. For example if I have the parameter "page" as a non route path (i.e. so it overflows the route path and its injected into th...
stackexchange/codereview
I've got a table with a header, a row with input fields, rows with data. Like this. http://brow.hu/sitegen/stackoverflow_table_example.png If somebody enters something into an input field I want to filter the data with an ajax query. After receiving the new table I change the content of the old one: div.inn...
stackexchange/codereview
I have created HTTP handlers. How do I create global variables for these handlers like I can with ASP.net web pages in global.asax?
stackexchange/codereview
Trying to answer to another post whose solution deals with IP addresses and netmasks, I got stuck with plain bitwise arithmetic. Is there a standard way, in Python, to carry on bitwise AND, OR, XOR, NOT operations assuming that the inputs are "32 bit" (maybe negative) integers or longs, and that the result must be a lo...
stackexchange/codereview
I'd like to add a menu item to the default ContextMenu of a RichTextBox. I could create a new context menu but then I lose the spell check suggestions that show up in the default menu. Is there a way to add an item without re-implementing everything?
stackexchange/codereview
This is a problem I've had on my mind for a long time. Being the son of a teacher and a programmer, it occurred to me early on... but I still haven't found a solution for it. So this is the problem. One needs to create a time schedule for a school, using some constraints. These are generally divided in two categories: ...
stackexchange/codereview
I am currently looking at a distributed cache solution. If money was not an issue, which would you recommend? www.scaleoutsoftware.com ncache memcacheddotnet MS Velocity
stackexchange/codereview
I've been developing web applications for a while and i am quite comfortable with mySql, in fact as many do i use some form of SQL almost every day. I like the syntax and a have zero problems writing queries or optimizing my tables. I have enjoyed this mysql api. The thing that has been bugging me is Ruby on Rails us...
stackexchange/codereview
I have been looking at jQUery thickbox for showing modal dialogs with images, it is great. But now I have the need to display a hidden div of content that contains an iFrame in a similar fashion, with a link to open the content. So I'd have something like this. <a href="">Open window in Modal Dialog</a> <div id="myC...
stackexchange/codereview
I know that ES_NUMBER exists to limit CreateWindowEx to numeric input only, is there a similar mechanism for limiting it to only alphanumeric (a-z,0-9) input? Or another way to do something similar. I know I can check after the fact, but I would like to limit it as the user types.
stackexchange/codereview
Is it really necessary to release COM components from Office PIA, when you don't need them anymore by invoking Marshal.ReleaseComObject(..)? I found various and contradictory advices on this topic on the web. In my opinion, since Outlook PIA is always returning a new references to its interfaces as returning values fro...
stackexchange/codereview
I have a list of changes to a list - Adds and Deletes. The list could be huge - say 10'000 items. I want to know the state of the list after change 9'000. I could walk the list from the start all the way to change 9'000. That seems a bit long-winded to me. I could keep a list of items and record when they're added and...
stackexchange/codereview
I'm looking for a simple way to grab thumbnails of FLVs in ASP.NET, without having to change any permissions/settings on the server. Ideally, nothing is installed on the server machine, but if necessary, small tools such as FFmpeg are fine. I've tried FFmpeg using the command-line tool with Process.Start, but the same ...
stackexchange/codereview
The question is, should we design applications/forms using headers or stick to spans and divs? When the world was using html to link documents, these header tags looked like the 'Table of contents'. In the new era where html is used for applications, using header tags in the orthodox fashion (i.e. h1 contains h2, h2 co...
stackexchange/codereview
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 while developing it. And wha...
stackexchange/codereview
I'm trying to read a file to produce a DOM Document, but the file has whitespace and newlines and I'm trying to ignore them, but I couldn't: DocumentBuilderFactory docfactory=DocumentBuilderFactory.newInstance(); docfactory.setIgnoringElementContentWhitespace(true); I see in Javadoc that setIgnoringElementContentWhite...
stackexchange/codereview
I'd like to make a click event fire on an <input type="file"> tag programmatically. Just calling click() doesn't seem to do anything or at least it doesn't pop up a file selection dialog. I've been experimenting with capturing events using listeners and redirecting the event, but I haven't been able to get that to actu...
stackexchange/codereview
I'm currently creating a website for a client that will basically involve selling various files. This is obviously a really common thing to do, which is making me feel kind of foolish for not thinking of a method for doing it. Once the purchase has been made the customer should be taken to a page containing the downloa...
stackexchange/codereview
I'm trying to determine how I can detect when the user changes the Windows Font Size from Normal to Extra Large Fonts, the font size is selected by executing the following steps on a Windows XP machine: Right-click on the desktop and select Properties. Click on the Appearance Tab. Select the Font Size: Normal/Large Fo...
stackexchange/codereview
I'm loading an image from a file, and I want to know how to validate the image before it is fully read from the file. string filePath = "image.jpg"; Image newImage = Image.FromFile(filePath); The problem occurs when image.jpg isn't really a jpg. For example, if I create an empty text file and rename it to image.jpg, ...
stackexchange/codereview
About 2 years ago I dropped windows from my home PC and switched 100% to linux (fedora, then ubuntu) - The missus wasn't too happy but she got used to it and learned a thing or two. Then about 6 months ago I got myself a shiny new Macbook and since moving to OSX have never looked back; Unfortunately I've not been succe...
stackexchange/codereview
I'm working on a project which is just about to start, and since I was busy with another one my colleagues went ahead and started working on the specs to the new one. When I came in, they had just chosen to do persistence with plain SQL (promptly accepted my suggestion to add Hibernate, though) but insisted in that dat...
stackexchange/codereview
I've defined an error-page in my web.xml: <error-page> <exception-type>java.lang.Exception</exception-type> <location>/error.jsp</location> </error-page> In that error page, I have a custom tag that I created. The tag handler for this tag e-mails me the stacktrace of whatever error occurred. For the most part ...
stackexchange/codereview
I m just starting using gwt and so far so good, however after reading some sample code I wonder is it necesary to have a high level of test coverage? (I can see that most code is declarative and then add some attributes I can see the sense in checking so me particular attributes are there but not all) Also i would be i...
stackexchange/codereview
I am trying the FDT editor on a project that previously ran successfully in Flash CS3. FDT builds and runs it successfully but the SWF is blank (white). I've tried a few viewers on the output file and it is actually blank. One difference is that now my project doesn't seem to include my entry .fla file. I'm new to Fl...
stackexchange/codereview
I have a CircleButton class in Actionscript. I want to know when someone externally has changed the 'on' property. I try listening to 'onChange' but it never hits that event handler. I know I can write the 'on' property as a get/setter but I like the simplicity of just using [Bindable] Can an object not listen to its o...
stackexchange/codereview
I have a String which I would like to modify in some way. For example: reverse it or upcase it. I have discovered that the fastest way to do this is by using a unsafe block and pointers. For example: unsafe { fixed (char* str = text) { *str = 'X'; ...
stackexchange/codereview
If we are writing about power-wise option - is using a console-based application in C#(.NET) better than having Windows GUI and what's the real difference expept few libraries loaded in operational memory? The issue is about text comparisons and working with strings, connecting to Internet, gathering data, working wit...
stackexchange/codereview
For my side job as programmer, I need Windows. It will be installed in VMWare Fusion. I will be writnig mostly C-code for Matlab-Mex-files, some DSP-development, some easy command-line tools in C and C++ for a tutorial and hopefully some easy GUIs using Visual Studio. I will be using VisualDSP++, Bloodshed Dev-Cpp, the...
stackexchange/codereview
I am using Python to extract the filename from a link using rfind like below: url = "http://www.google.com/test.php" print url[url.rfind("/") +1 : ] This works ok with links without a / at the end of them and returns "test.php". I have encountered links with / at the end like so "http://www.google.com/test.php/". I...
stackexchange/codereview
In my main page (call it index.aspx) I call <%Html.RenderPartial("_PowerSearch", ViewData.Model);%> Here the viewdata.model != null When I arrive at my partial: <%=ViewData.Model%> Says viewdata.model == null What gives?!
stackexchange/codereview
I am trying to use the same http cookie (in effect a asmx sessionid), in multiple WCF client endpoints. The server has several endpoints, one of them is: AuthenticationService.asmx Login() <- Creates a HTTP cookie that is the servers ASP.NET sessionid Logout() <- Destroys the same cookies SomeOtherService...
stackexchange/codereview
Some questions about Function Points: 1) Is it a reasonably precise way to do estimates? (I'm not unreasonable here, but just want to know compared to other estimation methods) 2) And is the effort required worth the benefit you get out of it? 3) Which type of Function Points do you use? 4) Do you use any tools for ...
stackexchange/codereview
What is the best way in Perl to copy files to a yet-to-be-created destination directory tree? Something like copy("test.txt","tardir/dest1/dest2/text.txt"); won't work since the directory tardir/dest1/dest2 does not yet exist. What is the best way to copy with directory creation in Perl?
stackexchange/codereview
I am trying to call out to a legacy dll compiled from FORTRAN code. I am new to Interop, but I've read some articles on it and it seems like my case should be fairly straightforward. The method I really want to call has a complex method signature, but I can't even call this simple GetVersion method without getting a...
stackexchange/codereview
I have an Office 2007 (specifically Outlook 2007) add in created in Visual Studio 2008. When I uncheck the "Sign the ClickOnce manifests" option, and then publish, it rechecks that option automatically. I have a regular Windows Forms project in the same solution that allows me to publish with this unchecked. Why isn't ...
stackexchange/codereview
our partners sites leverages our iframes in their own websites. I was wondering if there is a way to track the analytics on the iframes. The problem is, if we also utilize these iframes on our own website, how do i avoid duplicate tracking where a visit is counted on our domain's analytics and also counted again in if...
stackexchange/codereview
Could anyone please introduce books/papers/articles that I should read If I want to write a high-performance RPC server in Java, which handles large number of concurrent connections(C10K or over), is fault-tolerant, can be scaled out, and maintains high throughput? Thanks!
stackexchange/codereview
I've spent a good part of the day searching, writing and finally scrapping a script that I can use with my Inno Setup install script that will download and install the appropriate .NET 2.0 Framework if needed. There are definitely a number of examples out there, but they: Want to install Internet Explorer if needed wh...
stackexchange/codereview
I'm using the following code to make sure all certificates pass, even invalid ones, but I would like to know if there is a better way, as this event gets called globally and I only want the certificate to pass for a certain HTTP call and not for any others that are happening asynchronously. // This delegate makes sure ...
stackexchange/codereview
The System.Collections.Specialized.NameObjectCollectionBase class is used extensively at my company as the basis of collection classes. (Let's not get into questioning why.) I recently came across a situation where I needed to add an object at a specific index, but the functionality wasn't there. At first I wondered wh...
stackexchange/codereview
What parts of a Grails application need to be stored in source-control? Some obvious parts that are needed: grails-app directory test directory web-app directory Now we reach questions like: If we use a Grails plug-in (like gldapo), do we need to check in that plugin? Do Grails plugins install in the Grails direc...
stackexchange/codereview
When I try to create a new RegionInfo with certain ISO 3166 country codes ("BD" for Bangladesh, "SO" for Somalia, "LK" for Sri Lanka), I get an ArgumentException that says it's not recognized. What's the deal? The Intellisense of RegionInfo(string) says it conforms to ISO 3166, but these country/region codes are not su...
stackexchange/codereview
Building on How Do You Express Binary Literals in Python, I was thinking about sensible, intuitive ways to do that Programming 101 chestnut of displaying integers in base-2 form. This is the best I came up with, but I'd like to replace it with a better algorithm, or at least one that should have screaming-fast perform...
stackexchange/codereview
There are lots of questions on how to improve communication between teams. One way to start is to identify what one team actually does that the other team really values and do more of that. For example. Our QA team provided a VM for us with: The latest release of our server-based commercial software installed and con...
stackexchange/codereview
What is the C# equivalent to the sql server 2005 real type?
stackexchange/codereview
Our system will run on a local network with no more than 50 clients that connect to the same local server. We are creating a DB user for each client, to take advantage of the postgresql privilege system. 1) Analyzing the "performance", its OK to have ~ 50 DB users instead of reimplementing a custom system? 2) (SOLVED) ...
stackexchange/codereview
We have a proprietry system that we develop scripting code in. We currently do not have a developer environment (apart from Notepad++) and cannot debug or compile this code. We have to submit it to the vendor to insert the code into the test or live system. The language is essentially C like and has the same syntax. B...
stackexchange/codereview
My colleague insists on explicitly specifying the namespace in code as opposed to using the using directive. In other words he wants to use the fully qualified name for each type every time this type occurs in code. Something like public class MyClass { public static void Main() { System.Console.WriteL...
stackexchange/codereview
I want to find a sql command or something that can do this where I have a table named tblFoo and I want to name it tblFooBar. However, I want the primary key to also be change, for example, currently it is: CONSTRAINT [PK_tblFoo] PRIMARY KEY CLUSTERED And I want a name change to change it to: CONSTRAINT [PK_tblFooBar...
stackexchange/codereview
In the default Visual Studio template for a dynamic data web application, Global.asax includes the following two sample routes. // route #1 routes.Add(new DynamicDataRoute("{table}/ListDetails.aspx") { Action = PageAction.List, ViewName = "ListDetails", Model = model }); // route #2 routes.Add(new DynamicD...
stackexchange/codereview
I am new to strut/web programming and I thought I could learn a lot by reading a sample app. On google, I searched and found a sample app at http://www.roseindia.net/struts/struts2/struts2tutorial.zip , the tutorial is really nice and it gives a sample login page. However, I couldn't run this sample app. I tried postin...
stackexchange/codereview
Sometimes in our production environment occurs situation when connection between service (which is python program that uses MySQLdb) and mysql server is flacky, some packages are lost, some black magic happens and .execute() of MySQLdb.Cursor object never ends (or take great amount of time to end). This is very bad be...
stackexchange/codereview
Visual Studio gives many navigation hotkeys: F8 for next item in current panel (search results, errors ...), Control+K, N for bookmarks, Alt+- for going back and more. There is one hotkey that I can't find, and I can't even find the menu-command for it, so I can't create the hotkey myself. I don't know if such exist: P...
stackexchange/codereview
We have been working on a complex database and client interface for the last 18 months. We are regularly adding new functionnalities to this application, and it is now used by tens of users on a daily basis in all our offices, including sites and overseas. This is just to tell you it is a REAL application with a REAL d...
stackexchange/codereview
How would one go about profiling a few queries that are being run from an ASP.NET application? There is some software where I work that runs extremely slow because of the database (I think). The tables have indexes but it still drags because it's working with so much data. How can I profile to see where I can make a fe...
stackexchange/codereview
I am seeing both of them used in this script I am trying to debug and the literature is just not clear. Can someone demystify this for me?
stackexchange/codereview
I have an array of 1000 strings to load into a combo box. What is the fastest way to load the array of strings into the combo box? Is there some way other than iterating over the list of strings, putting each string into the combo box one at a time? And how to copy the combo box data once loaded to some 10 other combo ...
stackexchange/codereview
All, I currently have two projects that are under SourceSafe that I am unable to migrate to our SVN server for a number of reasons. However I am currently in the process of trying to merge fixes from one project into the other. I know Sourcesafe isn't the best at this but the process I am going through just now is p...
stackexchange/codereview
I am trying to extract a table of values from an excel (2003) spreadsheet using vb6, the result of which needs to be stored in a (adodb) recordset. The table looks like this: Name Option.1 Option.2 Option.3 Option.4 Option.5 Option.6 ----------------------------------------------------------------- ...
stackexchange/codereview
In the early days of C++ when it was bolted on top of C, you could not use NULL as it was defined as (void*)0. You could not assign NULL to any pointer other than void*, which made it kind of useless. Back in those days, it was accepted that you used 0 (zero) for null pointers. To this day, I have continued to use zero...
stackexchange/codereview
Probably a long question for a simple solution, but here goes... I have a custom made silverlight control for selecting multiple files and sending them to the server. It sends files to a general handler (FileReciever.ashx) using the OpenWriteAsync method of a WebCLient control. Basically, the silverlight code does some...
stackexchange/codereview
Is there a way in Delphi to get the currect application's exe size in one or two lines of code?
stackexchange/codereview
In A.ascx I have one DropDownList and one DIV. The DropDownList is populated dynamically. How do I load B.ascx into the DIV, when the user changes the selected index in the DropDownList. This should be done on the client side without postback, by using jQuery and Ajax.
stackexchange/codereview
We have a need to take dozens of different protocols from systems such as security systems, fire alarms, camera systems etc.. and integrate them into a single common protocol. I would like this to be a messaging server that many systems could subscribe to and or communicate through. polling and non-polling "drivers" (...
stackexchange/codereview
I'm trying to populate a DataTable, to build a LocalReport, using the following: MySqlCommand cmd = new MySqlCommand(); cmd.Connection = new MySqlConnection(Properties.Settings.Default.dbConnectionString); cmd.CommandType = CommandType.Text; cmd.CommandText = "SELECT ... LEFT JOIN ... WHERE ..."; /* query snipped */ /...
stackexchange/codereview
I'm building a Lifestreaming app that will involve pulling down lots of feeds for lots of users, and performing data-mining, and machine learning algorithms on the results. GAE's load balanced and scalable hosting sounds like a good fit for a system that could eventually be moving around a LOT of data, but it's lack of...
stackexchange/codereview
I have a table that holds only two columns - a ListID and PersonID. When a person is merged with another in the system, I was to update all references from the "source" person to be references to the "destination" person. Ideally, I would like to call something simple like UPDATE MailingListSubscription SET PersonID =...
stackexchange/codereview
Is there a way of programmatically determining a rough geographical position of a mobile phone using J2ME application, for example determining the current cell? This question especially applies to non-GPS enabled devices. I am not looking for a set of geographical coordinates, but an ability for a user to define locat...
stackexchange/codereview
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 and Formats value or the main code page.
stackexchange/codereview
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?
stackexchange/codereview
We want to reprint a payment advice, even before it is posted. The report BankPaymAdviceCheque should be able to do this but only prints advices for already posted cheques. The report's dialog, however, allows you to choose unposted ones as well. No matter how I searched in the code, I cannot find the bit that pre...
stackexchange/codereview
I am just embarking on my first large-scale refactor, and need to split an (unfortunately large) class into two, which then communicate only via an interface. (My Presenter has turned out to be a Controller, and needs to split GUI logic from App logic). Using C# in VisualStudio 2008 and Resharper, what is the easiest w...
stackexchange/codereview
in my application (c# 3.5) there are various processes accessing a single xml file (read and write) very frequently. the code accessing the file is placed in an assembly referenced by quite a couple of other applications. for example a windows service might instanciate the MyFileReaderWriter class (locatied in the prev...
stackexchange/codereview
I've made a custom DataGridViewCell that displays a custom control instead of the cell; but if the DataGridView uses shared rows, then the custom control instance is also shared, so you get strange behaviour (for example, hovering over buttons highlights all the buttons). Also, I can't access the DataGridViewCell.Sele...
stackexchange/codereview
At work I have a standard desk (4 legs, flat surface, you get the picture). For a while now I've been thinking about converting to a standing desk. What would be the best way to go about this on a limited budget? Are there some good laptop/keyboard stands I could place on my existing desk? Which ones are the best? ...
stackexchange/codereview
As a complete beginner with no programming experience, I am trying to find beautiful Python code to study and play with. Please answer by pointing to a website, a book or some software project. I have the following criterias: complete code listings (working, hackable code) beautiful code (highly readable, simple but e...
stackexchange/codereview
I am trying to install PHP onto my development box (XP SP3 / IIS 5.1) I've got PHP 5.2.6 stable downloaded (the MSI installer package) and I am getting an error "Cannot find httpd.conf". After that the install seems to breeze by quickly (more quickly than I would have expected) and when I try to execute a simple PHP ...
stackexchange/codereview
I've installed TFS 2008, but I can't seem to access the server. When I try to connect to it in Visual Studio, I can't. If I try by browser on a remote PC, I get a generic page cannot be displayed. On the server, I get a 403. Nothing was touched in IIS and the service is running as a Network Service. Any ideas?
stackexchange/codereview
On our site, we get a large amount of photos uploaded from various sources. In order to keep the file sizes down, we strip all exif data from the source using mogrify: mogrify -strip image.jpg What we'd like to be able to do is to insert some basic exif data (Copyright Initrode, etc) back onto this new "clean" image,...
stackexchange/codereview
How can I efficiently create a unique index on two fields in a table like this: create table t (a integer, b integer); where any unique combination of two different numbers cannot appear more than once on the same row in the table. In order words if a row exists such that a=1 and b=2, another row cannot exist where a=2...
stackexchange/codereview
In ASP.NET MVC is there an equivalent of the Html.ActionLink helper for Img tags? I have a controller action that outputs a dynamically generated JPEG and I wanted to use the same Lambda expressions to link to it as I do HREFs using ActionLink. Alternatively, a helper that just gives the URL to a route (again specifie...
stackexchange/codereview
This is not strictly programming related, but I hope still relevant. I'm working on a project which is written in Java and intended for use on PCs and Macs. It will be distributed on CD (and perhaps DVD, eventually). Our intended audience is decidedly non-technical and, as such, it's important the CD "just work" when...
stackexchange/codereview
I'm just learning Ruby on Rails. I've read a few books, I've watched lots of Railscasts, I've looked at some examples. However, when working on my first serious project with Rails, I've gotten hung up on how to properly implement some very basic web site features that most tutorials I've seen lack. For instance: Navig...
stackexchange/codereview
What is the best way to get the names of all of the tables in a specific database on SQL Server?
stackexchange/codereview
So my favourite web tool, Subtlety, was recently discontinued, which means that I no longer have easy access to the commit logs of various SVN projects that I follow. Are there any other tools that easily pump out an RSS feed of commits for a public SVN repo?
stackexchange/codereview
How do I go about setting a <div> in the center of the screen using jQuery?
stackexchange/codereview