instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've got a model in CakePHP that doesn't have a table, called Upload. I've got a validation in this Model for a field called source_id.
I've got a form that builds a nice looking $this-data, giving me a well formated set, including:
$this->data['Upload']['source_id']
However, the validation rule I have set doesn't see... | stackexchange/codereview |
In c#, I have a handle to a window ( an IntPtr ), I want to change the background color of that window. How can I do this?
I can get the GDI graphics object for that handle like so:
Graphics graphics = Graphics.FromHwnd(theHandle);
So I should somehow be able to change the background color from this?
I also want to en... | stackexchange/codereview |
Should I be using this method of throwing errors:
if (isset($this->dbfields[$var])) {
return $this->dbfields[$var];
} else {
throw new FieldNotFoundException($var);
}
or this style:
try {
return $this->dbfields[$var];
} catch (Exception $e) {
throw new FieldNotFoundException($var);
}
...or something e... | stackexchange/codereview |
I have a case where a 3rd party ad is bleeding through my modal window implementation. I'd like to up the z-index of the modal overlay as high as possible so the ad won't show on top of it. Is there a limit to z-index values? I'm sure if there is it varies by browser. Anyone know?
| stackexchange/codereview |
When in Outlook 2003, open the Address Book, select Tools->Options. You get the address dialog showing the option "When sending mail, check names using these address lists in the following order:"
For most people, this will contain only "Contacts". For corporate networks, it'll probably also contain "Global Address ... | stackexchange/codereview |
Is there an efficient way to store the compiled regexes (compiled via regcomp(), PCRE) in a binary file, so that later I can just read from the file and call regexec()?
Or is it just a matter of dumping the compiled regex_t structs to the file and reading them back when needed?
| stackexchange/codereview |
I tried using the Microsoft ReportingControls but found them overly cumbersome, with too little documentation. I'd like a simple control that would convert a GridView control into a PDF document. I've started looking into PDFSHarp and am running into dead ends with documentation. Same thing with iTextSharp. I'm wil... | stackexchange/codereview |
I see in C++ there are multiple ways to allocate and free data and I understand that when you call malloc you should call free and when you use the new operator you should pair with delete and it is a mistake to mix the two (e.g. Calling free() on something that was created with the new operator), but I'm not clear on ... | stackexchange/codereview |
PNG images appear "fuzzy" in flash CS3. They are very blocky and appear unanti-aliased (if that is a word) Does anyone have a fix for this? Is there some setting I'm missing?
| stackexchange/codereview |
I've been asked to maintain a large C++ codebase full of memory leaks. While poking around, I found out that we have a lot of buffer overflows that lead to the leaks (how it got this bad, I don't ever want to know).
I've decided to removing the buffer overflows first, starting with the dangerous functions. What C/C++ ... | stackexchange/codereview |
I am building a web application using .NET 3.5 (ASP.NET, SQL Server, C#, WCF, WF, etc) and I have run into a major design dilemma. This is a uni project btw, but it is 100% up to me what I develop.
I need to design a system whereby I can take an image and automatically crop a certain object within it, without user inpu... | stackexchange/codereview |
How to dynamically bind data to <%Html.Dropdownlist.... in ASP.NET MVC?
| stackexchange/codereview |
I'm having a hard time getting an array fixture to work.
Origanlly the test was written as a rowfixture, Requirements later changed and now the order of the results matters.
It seems you have to pass the data into the base arrayfixture constructor but I don't see how that is possible or how you pass arguments into the ... | stackexchange/codereview |
How can you get a raw socket in Perl, and then what's the best way to built a packet for use with it?
| stackexchange/codereview |
I have a table that looks something like this:
word big expensive smart fast
dog 9 -10 -20 4
professor 2 4 40 -7
ferrari 7 50 0 48
alaska 10 0 1 0
gnat -3 0 0 0
The + and - values are as... | stackexchange/codereview |
I have a few databases that I always use SQL Server Management Studio with. I'd like to be able to create a toolbar button or keyboard shortcut that automatically opens a new query window (in the current SSMS instance) and connects to a given (registered, perhaps) database. That's it. That's all I need. And this ash... | stackexchange/codereview |
I have a jQuery datepicker that I want to restrict non work days - weekends, public holidays etc. I have seen examples on how to do this from the client side (javascript), but is there a way to restrict the dates from server side ASP.NET code?
I figure you could do using Page.RegisterClientScriptBlock, but was wonderin... | stackexchange/codereview |
I have two tables, one that contains volunteers, and one that contains venues. Volunteers are assigned one venue each.
The id of the venues table (venues.id) is placed within the volunteers table in the venue_id column (volunteers.venue_id).
I know I could get a count of how many matching values are in the volunteers.v... | stackexchange/codereview |
I wanted to write a GUI-wrapper for an application which uses XML-RPC and wondered if there are any XML-RPC frameworks available for Cocoa and if so what's the best?
Thanks in advance
| stackexchange/codereview |
I need to be able to contribute to a relatively large Adobe AIR project and I'm starting from scratch with this technology. What's the best way to go about it?
I usually get a good book/tutorial and work my way through it but this time it seems there's just too much to learn for this to be feasible within a reasonable ... | stackexchange/codereview |
I am still new to sharepoint and would like to know if it is possible to make a query that works across several lists. My list looks like this
Customers (id, name and so forth)
Orders ( id, order number, customer and some additional info)
OrderItems (id, name, price, description and so on)
I would like to create a view... | stackexchange/codereview |
If I view the HTML generated by one of my Jasper reports in IE7 I see the following:
<BR /><BR />
<A name="JR_PAGE_ANCHOR_0_1">
<TABLE style="WIDTH: 1000px" cellSpacing="0" cellPadding="0" bgColor="#ffffff" border="0">
<-- table body omitted -->
</TABLE>
The two BR tags are added via the JRHtmlExporterParameter.HTML_... | stackexchange/codereview |
Does WPF support using a triggers that respond to routed events but only given a condition is met?
For example, WPF supports triggering on routed events through Event Triggers.
ie:
<Button>
<Button.Triggers>
<EventTrigger RoutedEvent="Click">
...
</..
</..
</..
However I am looking for the trigger to... | stackexchange/codereview |
Among other text and visual aids on a form submission, post-validation, I'm coloring my input boxes red to signify the interactive area needing attention.
On Chrome (and for Google Toolbar users) the auto-fill feature re-colors my input forms yellow. Here's the complex issue: I want auto-complete allowed on my forms, a... | stackexchange/codereview |
i was just about to finish up my project and install it as a windows service. I have the installer, etc. - everything i need. When i went to choose Application Type, Windows service does not appear as an option.
Here is the kicker. When I dev in VB.NET, i have that option. The project mentioned above is in c#.
Also... | stackexchange/codereview |
I have a Tab Control with multiple Tab Pages. I want to be able to fade the tabs back and forth. I don't see an opacity option on the Tab Controls. Is there a way to cause a fade effect when I switch from one Tab Page to another?
| stackexchange/codereview |
I want with ant access a subversion-repository and get a list of files available under a specific svn-url like https://svn.myhost.de/repository/path/into/repo. I want to list all items, subdirectories or files, in some form I can work with later in the ant-file. A comma-separated list is fine, it can be input for the f... | stackexchange/codereview |
Is there an open source alternative to SharePoint?
I'd like something that gives the same hierarchical structure and portlet-based design of SharePoint, but is open in source. Web based administration and customization is also a plus.
| stackexchange/codereview |
I am currently trying to import a semi-colon delimited text file into a database in c# using OleDb where I don't know the type (SQL Server, Access, Oracle, MySQL, postgreSQL, etc.) Currently I'm reading in the file as a database using the Jet text reader then creating a prepared insert statement, populating the fields... | stackexchange/codereview |
I have a composite control that contains a ListBox child control. On postback, the items for the ListBox disappear. I have a property for the ListBox that initializes it, and I add it to the controls collection in CreateChildControls. Am I doing something wrong? Do I need to be doing something else to properly handle t... | stackexchange/codereview |
List<tinyClass> ids = new List<tinyClass();
ids.Add(new tinyClass(1, 2));
bool b = ids.IndexOf(new tinyClass(1, 2)) >= 0; //true or false?
If it compares by value, it should return true; if by reference, it will return false.
If it compares by reference, and I make tinyClass a struct - will that make a difference?
| stackexchange/codereview |
How can I have a dynamic variable setting the amount of rows to return in SQL Server? Below is not valid syntax in SQL Server 2005+:
DECLARE @count int
SET @count = 20
SELECT TOP @count * FROM SomeTable
| stackexchange/codereview |
I'm working on a project in Java using the spring framework, hibernate and tomcat.
Background:
I have a form page which takes data, validates, processes it and ultimately persists the data using hibernate. In processing the data I do some special command (model)
manipulation prior to persisting using hibernate.
Probl... | stackexchange/codereview |
I'm trying to create a WPF Shape (PolyLine) editor, which is a control that I want to use to, edit shapes in a canvas.
What the editor needs to do is to be able to display the points and lines of the shape and to move those around.
Can anyone provide me with a idea of how I can accomplish this, or a starting point? I h... | stackexchange/codereview |
I ran into the problem that my primary key sequence is not in sync with my table rows.
That is, when I insert a new row I get a duplicate key error because the sequence implied in the serial datatype returns a number that already exists.
It seems to be caused by import/restores not maintaining the sequence properly.
| stackexchange/codereview |
I want to create an alias for a class name. The following syntax would be perfect:
public class LongClassNameOrOneThatContainsVersionsOrDomainSpecificName
{
...
}
public class MyName = LongClassNameOrOneThatContainsVersionOrDomainSpecificName;
but it won't compile.
Example
Note This example is provided for conven... | stackexchange/codereview |
I have a copy of emacs that I use on a couple of different (windows) computers from a thumb drive, and I am wondering if it is possible to create something that is sort of the equivalent of a bash alias or symlink within emacs? Something that I could use within find-file is the main thing that i'm looking for, so for e... | stackexchange/codereview |
I have a .net project (MySolution.Common) that uses the app.config. I am using the project MySolution.Common in an InteropUserControl project called MySolution.InteropCtrl. MySolution.InteropCtrl is embedded into a VB6 project. When the MySolution.InteropCtrl is in the VB6 project, It cannot find the app.config file. E... | stackexchange/codereview |
I've been looking (without great luck) for the perfect reference card with all the basic sorting algos in C (or maybe in pseudo code). Wikipedia is a terrific source of info but this time I'm looking for something definitely more portable (pocket size if possible) and of course printable. Any suggestion would be much a... | stackexchange/codereview |
My knowledge about implementing a parser is a bit rusty.
I have no idea about the current state of research in the area, and could need some links regarding recent advances and their impact on performance.
General resources about writing a parser are also welcome, (tutorials, guides etc.) since much of what I had lear... | stackexchange/codereview |
After making some changes in my models (eg. new field in a model and a new model) what is the best way of reflecting these changes to my populated database?
PS: I wanted to see many solutions in one place rated. Apparently more solutions are already listed here.
| stackexchange/codereview |
I have written an HTML Application (hta file) and am wondering if there is a way to embed an icon file into the hta file itself.
I have seen html emails that include embedded graphic files, is there any way to do this with html applications and icons?
HTA files have an HTA:APPLICATION tag that allows you to specify an ... | stackexchange/codereview |
I have a somewhat complicated branching structure at work (at least for me). It is something like this:
Main
|
1
|
2
| \
3 \
Ver2
|
1
| \
2 \
| ProjectA
3 |
1
There are 2 branches off of main. "Ver2" which has everyone's changes for the next ve... | stackexchange/codereview |
I am currently trying to learn all new features of C#3.0. I have found a very nice collection of sample to practice LINQ but I can't find something similar for Lambda.
Do you have a place that I could practice Lambda function?
Update
LINQpad is great to learn Linq (thx for the one who suggest) and use a little bit Lamb... | stackexchange/codereview |
My event logs on my production front end servers are getting filled with error messages:
"Failed to determine definition for Feature with ID"
Now, I've found the offending feature on one of the development servers - it is an InfoPath form with some code behind. But, it is nowhere to be found on the production servers.... | stackexchange/codereview |
If you are creating a 1d array, you can implement it as a list, or else use the 'array' module in the standard library. I have always used lists for 1d arrays.
What is the reason or circumstance where I would want to use the array module instead?
Is it for performance and memory optimization, or am I missing something... | stackexchange/codereview |
What do you recommend for setting up a shared server with php from a security/performance point of view?
Apache mod_php (how do you secure that? other than safe_mode as it won't be in PHP6)
Apache CGI + suexec
Lighttpd and spawn a FastCGI per user
LE: I'm not interested in using an already made control panel as i'm t... | stackexchange/codereview |
A website I'm working on (using AS2 because it's oldschool) has a larger index .swf file that loads sub-swfs using loadMovie("foo1.swf", placeToShowSwf). There's foo1.swf through 4, which is silly because the only thing that's different between them is a single number in the address of an xml file that tells it what co... | stackexchange/codereview |
When setting up a Home Directory on IIS6 properties for a web site there's an option to "Index this resource" which is checked on by default.
Microsoft's site says:
Grant this
permission to allow Microsoft Indexing
Service to include this folder in a
full-text index of the Web site. When
you grant this permis... | stackexchange/codereview |
I'm trying to access the Reporting Services via Web Services in my Visual Studio 2008 Application. How/where can I find my WSDL?
| stackexchange/codereview |
I'm trying to implement a unit test for a function in a project that doesn't have unit tests and this function requires a System.Web.Caching.Cache object as a parameter. I've been trying to create this object by using code such as...
System.Web.Caching.Cache cache = new System.Web.Caching.Cache();
cache.Add(...);
...a... | stackexchange/codereview |
I have a standalone Java app that has some licensing code that I want to secure, i.e., prevent users from changing my software to circumvent the licensing. What is the best way to do this?
I've looked at obfuscation, but that entails all sorts of problems: reflection, serialization, messed-up stack traces, etc. Per... | stackexchange/codereview |
I want to save and store simple mail objects via serializing, but I get always an error and I can't find where it is.
package sotring;
import java.io.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
import com.sun.org.apache.bcel.internal.generic.INEG;
public class storeing {
... | stackexchange/codereview |
I've got to get a quick and dirty configuration editor up and running. The flow goes something like this:
configuration (POCOs on server) are serialized to XML.
The XML is well formed at this point. The configuration is sent to the web server in XElements.
On the web server, the XML (Yes, ALL OF IT) is dumped into a t... | stackexchange/codereview |
I was wondering is there is a fool-proof way to run a program on windows such that I'm guaranteed that no interactive dialogs of any kind are displayed.
I've tried the registry ErrorMode hack, calling _CrtSetReportMode(), etc., but they all have holes in them or require you to modify the program.
I need a way to run an... | stackexchange/codereview |
I'm building an application that is used by several different customers. Each customer has a fair amount of custom business logic, which I have cleverly refactored out into an assembly that gets loaded at runtime. The name of that assembly, along with a number of other customer-specific settings, are stored in the ap... | stackexchange/codereview |
I have the following unmanaged C++ code:
MessageBox( NULL, strMessage, "Cool Product", MB_RETRYCANCEL | MB_ICONEXCLAMATION);
I want to disable the RETRY button for 10 seconds (for example), then enable it.
How can I do this?
| stackexchange/codereview |
I'm using @media print in my external css file to hide menus etc. However while printing the little triangle of a dropdownlist still shows. Is there a css setting available to hide it as well and only print the selected item?
| stackexchange/codereview |
I'm possibly just stupid, but I'm trying to find a user in Active Directory from C#, using the Login name ("domain\user").
My "Skeleton" AD Search Functionality looks like this usually:
de = new DirectoryEntry(string.Format("LDAP://{0}", ADSearchBase), null, null, AuthenticationTypes.Secure);
ds = new DirectorySearcher... | stackexchange/codereview |
Is it possible to produce an alert similar to JavaScript's alert("message") in python, with an application running as a daemon.
This will be run in Windows, Most likely XP but 2000 and Vista are also very real possibilities.
Update:
This is intended to run in the background and alert the user when certain conditions ar... | stackexchange/codereview |
I have the following models.
# app/models/domain/domain_object.rb
class Domain::DomainObject < ActiveRecord::Base
has_many :links_from, :class_name => "Link", :as => :from, :dependent => :destroy
end
# app/models/link.rb
class Link < ActiveRecord::Base
belongs_to :from, :polymorphic => true
belongs_to :object_v... | stackexchange/codereview |
We have just 'migrated' an SQL Server 2005 database from DEVEL into TEST. Somehow during the migration process the DB was changed from case insensitive to sensitive - so most SQL queries broke spectacularly.
What I would like to know, is - are there any clear benefits to having a case sensitive schema?
NOTE: By this... | stackexchange/codereview |
s it possible to do the following in subsonic.
SELECT * FROM TABLE1
WHERE Column1 > Column2 or Column1 < Colum3
All examples that I've seen assume you now a value to pass to the where clause. I'm trying to do this without creating a view.
Thanks
| stackexchange/codereview |
I'm using a DataGridViewCheckBoxCell but I can't figure out how to have the ->Value property working "correctly".
for (int i = this->dgvConfigs->Rows->Count - 1; i >= 0 ; i --){
DataGridViewCheckBoxCell^ dgvcbc = (DataGridViewCheckBoxCell^) this->dgvConfigs->Rows[i]->Cells[2];
// This is truely a weird behavior of ... | stackexchange/codereview |
Curious to know how people set up their personal and/or work development environment, in terms of:
Do you just have all of your developer tools (for example Visual Studio, SSMS, etc.) installed on your main operating system;
Do you use Virtual Machines to have a separate "clean" dev environment that consists only of th... | stackexchange/codereview |
When writing the string "¿" out using
System.out.println(new String("¿".getBytes("UTF-8")));
¿ is written instead of just ¿.
WHY? And how do we fix it?
| stackexchange/codereview |
Is it possible to open an HTML page using navigateToURL and specifying a named frame in your HTML document? For instance, if you have an iframe on the page called "Steven", can you call
navigateToURL("someURL","Steven");
instead of something like
navigateToURL("someURL","_self");
I have tried this and it opens the UR... | stackexchange/codereview |
Exception: Failed to compare two elements in the array.
private void assignNames(DropDownList ddl, Hashtable names)
{
List<ListItem> nameList = new List<ListItem>();
if (ddl != null)
{
ddl.ClearSelection();
ddl.Items.Add(new ListItem("Select Author"));
foreach (string key in names.Ke... | stackexchange/codereview |
I was recently put in charge of the wiki for the development team. The wiki is still in its infancy, so I have a lot of room to work with. It goal is to house internal to the development team. Currently, the main piece of information that the wiki holds is Coding Standards.
What are some best practices your dev team ... | stackexchange/codereview |
Is there a way to use a Graphics object's 'setClip()' method to clip using a Line-ish shape? Right now I'm trying to use a Polygon shape but I'm having problems simulating the "width" of the line. I basically draw the line, and when I reach the end, I redraw it but this time subtract the line width from y-coordinate:... | stackexchange/codereview |
I'm looking for a good reader/writer lock in C++. We have a use case of a single infrequent writer and many frequent readers and would like to optimize for this. Preferable I would like a cross-platform solution, however a Windows only one would be acceptable.
| stackexchange/codereview |
I need to be able to validate a string against a list of the possible United States Postal Service state abbreviations, and Google is not offering me any direction.
I know of the obvious solution: and that is to code a horridly huge if (or switch) statement to check and compare against all 50 states, but I am asking S... | stackexchange/codereview |
Given a string file path such as /foo/fizzbuzz.bar, how would I use bash to extract just the fizzbuzz portion of said string?
| stackexchange/codereview |
I need to create a self signed SSL certificate and the install the same certificate on two different web servers. For this specific scenario I have two web servers (Win2K3 w/ II6) in a network load balanced configuration.
I have installed the IIS resource tool kit and can use the SelfSSL tool to make a certificate. Ho... | stackexchange/codereview |
I'm trying to get the following code working:
string url = String.Format(@"SOMEURL");
string user = "SOMEUSER";
string password = "SOMEPASSWORD";
FtpWebRequest ftpclientRequest = (FtpWebRequest)WebRequest.Create(new Uri(url));
ftpclientRequest.Method = WebRequestMethods.Ftp.ListDirectory;
ftpclientRequest... | stackexchange/codereview |
I have an application where 2 threads are running... Is there any certanty that when I change a global variable from one thread, the other will notice this change?
I don't have any syncronization or Mutual exclusion system in place... but should this code work all the time (imagine a global bool named dataUpdated):
Th... | stackexchange/codereview |
The project I'm on is using a 3rd party component to build dynamic PDFs in a VB.Net web system called ABCpdf.Net. (not a terrible tool, but not a great one either.)
Every now and then, for reasons I can't fathom, the document object throws a SEHException. Digging futher, it turns out this is caused by a custom except... | stackexchange/codereview |
Apparently there's a lot of variety in opinions out there, ranging from, "Never! Always encapsulate (even if it's with a mere macro!)" to "It's no big deal – use them when it's more convenient than not."
So.
Specific, concrete reasons (preferably with an example)
Why global variables are dangerous
When global variabl... | stackexchange/codereview |
I have a control where I have to check in which page I am, so I can set a certain variable accordingly.
string pageName = this.Page.ToString();
switch (pageName)
{
case "ASP.foo_bar_aspx": doSomething(); break;
default: doSomethingElse(); break;
}
this works fine locally and on some developmentservers, however when I ... | stackexchange/codereview |
I have three tables, A, B, C, where A is many to one B, and B is many to one C. I'd like a list of all C's in A.
My tables are something like this: A[id, valueA, lookupB], B[id, valueB, lookupC], C[id, valueC]. I've written a query with two nested SELECTs, but I'm wondering if it's possible to do INNER JOIN with DISTI... | stackexchange/codereview |
Someone told me that it's faster to concatenate strings with StringBuilder. I have changed my code but I do not see any Properties or Methods to get the final build string.
How can I get the string?
| stackexchange/codereview |
How can I break SP execution in an Exception like fashion in MySQL?
I need a to break SP execution when an illegal argument is passed so no UPDATE/INSERT is performed.
My teacher actually did it by creating an SP called "raise_error" which did nothing but execute a non extising table. Which I would argue is a WTF...
| stackexchange/codereview |
I am generating doxygen documentation for my (fairly small) project on each build.
I did the following to accomplish this:
Added the index.html, which doxygen generates, to the project
Specified a Custom Build Step for this file (not the whole project)
Command line: doxygen ../doc/Doxyfile
Outputs: ..doc/html/index.... | stackexchange/codereview |
I'm using Intelligencia's UrlRewriter in my application and I'm having a problem where the rules I've setup appear to be stripping the + symbol from my url.
For example I want to have the urls /category/catname/+tag+tag but it appears to me as /category/catname/ tag tag
Does anyone have any ideas and is this down to my... | stackexchange/codereview |
I would like to learn more about C++0x. What are some good references and resources? Has anyone written a good book on the subject yet?
| stackexchange/codereview |
I'm using the MIDP 2.0 (JSR 118) and I just noticed that there is no reader for strings in J2ME.
Does anyone know how you are supposed to read Strings from an InputStream or InputStreamReader in a platform independent way (i.e. between two java enabled cell phones of different models)?
| stackexchange/codereview |
I was wondering if it is possible to do something like this:
<uc1:TestControl ID="TestControl1" runat="server">
<div>More random HTML, etc...</div>
</uc1:TestControl>
I got an error of "Type 'System.Web.UI.UserControl' does not have a public property named 'div'.". Doing a little research, I found I c... | stackexchange/codereview |
Something happened that I'm not sure should be possible. Obviously it is, because I've seen it, but I need to find the root cause & I was hoping you all could help.
We have a system that looks up latitude & longitude for a zipcode. Rather than access it every time, we cache the results in a cheap in-memory HashTable ... | stackexchange/codereview |
I want to override OnMouseClick and OnMouseDoubleClick and perform different actions depending on which click style was used.
The problem is that OnMouseClick is happening for both single and double clicks, and is getting called before OnMouseDoubleClick.
I'm certain this must be a common requirement, so I guess I'm mi... | stackexchange/codereview |
I've been given a requirement for an internal web application to send documents to a printer transparently. The idea would be that the user can select their nearest printer, and the web application would send their print jobs to the printer they selected.
The first printer we have to roll out against are Canons, so my... | stackexchange/codereview |
A colleague would like to query a table in an Oracle database using SQL Server 2000, Enterprise Manager.
He knows how to do the whole DTS thing, but doesn't want to go down that route for add hoc queries.
Is there another way?
| stackexchange/codereview |
How can I implement the "tap and hold" behavior in an MFC CListCtrl?
I have an MFC CListCtrl in a CDialog and I need to add to the CListCtrl the "tap and hold" behavior.
That is what I mean for "tap and hold":
If the user clicks (a "standard" click with the left button of the mouse) on a CListCtrl item then function A ... | stackexchange/codereview |
I have an Excel 2003 workbook that contains a macro to copy certain of its sheets across to a new workbook, then save and close the new workbook. It does this several dozen times, with slightly different sheet selections each time.
I would like to add an extra step to the macro to export the secondary workbooks' sprea... | stackexchange/codereview |
The goal is having a way to guarantee a certain SLA (Service Level Agreement) for some of the web services to guarantee backend database uptime. Ideally this should be achieved with no specific code in the services but by controlling the underlying infrastructure/pipeline.
| stackexchange/codereview |
I know you can access the Contact Store from the SDk, but is it possible to create and read appointment data?
| stackexchange/codereview |
Is there a better way to negate a boolean in Java than a simple if-else?
if (theBoolean) {
theBoolean = false;
} else {
theBoolean = true;
}
| stackexchange/codereview |
I am writing a toolbar for IE(6+). I have used the various sample bars from
codeproject.com (http://www.codeproject.com/KB/dotnet/IE_toolbar.aspx), and have a toolbar that works, registers unregisters etc. What I want the toolbar to do is to highlight divs within an html page as the users' mouse moves over that div. S... | stackexchange/codereview |
I have a memory of talking to people who have got so far in using Ruby on Rails and then had to abandon it when they have hit limits, or found it was ultimately too rigid. I forget the details but it may have had to do with using more than one database.
So what I'd like is to know is what features/requirements fall ou... | stackexchange/codereview |
For years, I've been using named blocks to limit the scope of temporary variables. I've never seen this done anywhere else, which makes me wonder if this is a bad idea. Especially since the Eclipse IDE flags these as warnings by default.
I've used this to good effect, I think, in my own code. But since it is un-idio... | stackexchange/codereview |
so I'm using LinQ2SQL quite heavily in my current application, and although I have most stuff in partial classes, some things have to be adjusted in the VS Designer (like Accessors for fields I wrap). Then, sometimes I like to name Fields differently in the Model than they do in the DB.
So, my problem now is. When goin... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.