Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15,346 | 2 | null | 15,247 | 1 | null | Try this: [http://www.google.com/uds/solutions/wizards/mapsearch.html](http://www.google.com/uds/solutions/wizards/mapsearch.html)
It's a google maps wizard which will generate the code for you. Not the best for your application; but a good place to "get your feet wet" ;)
Edit: (found the link), [here's a good Google... | null | CC BY-SA 2.5 | null | 2008-08-18T22:59:19.843 | 2008-08-18T22:59:19.843 | null | null | 547 | null |
15,340 | 2 | null | 15,241 | 19 | null | Yes, I (um, we) used it extensively to model our business process logic that was primarily databound forms in a windows forms application. The application was a trading system. CSLA is designed to be at that layer just below the UI.
If you think about your standard complex line-of-business application you may have a f... | null | CC BY-SA 2.5 | null | 2008-08-18T22:50:26.600 | 2008-08-18T22:50:26.600 | null | null | null | null |
15,343 | 2 | null | 15,254 | 33 | null | Personally I'd go with the option of not using placement new on the array and instead use placement new on each item in the array individually. For example:
```
int main(int argc, char* argv[])
{
const int NUMELEMENTS=20;
char *pBuffer = new char[NUMELEMENTS*sizeof(A)];
A *pA = (A*)pBuffer;
for(int i = 0; i ... | null | CC BY-SA 3.0 | null | 2008-08-18T22:53:05.003 | 2015-03-13T06:52:31.727 | 2015-03-13T06:52:31.727 | 106,104 | 611 | null |
15,334 | 1 | 15,886 | null | 29 | 29,517 | I have recently started using Vim as my text editor and am currently working on my own customizations.
I suppose keyboard mappings can do pretty much anything, but for the time being I'm using them as a sort of snippets facility almost exclusively.
So, for example, if I type `def{TAB}` (`:imap def{TAB} def ():<ESC>3h... | How to create short snippets in Vim? | CC BY-SA 2.5 | 0 | 2008-08-18T22:41:10.970 | 2017-05-16T00:04:29.333 | 2010-12-04T08:26:12.963 | 63,550 | 1,670 | [
"vim"
] |
15,354 | 2 | null | 14,756 | 3 | null | I'm fairly certain that impersonating a user or using their credentials does not constitute the ability to see the printers for that user. I believe explorer.exe reconnects all the network resources (shares/printers) upon logon.
| null | CC BY-SA 2.5 | null | 2008-08-18T23:09:48.713 | 2008-08-18T23:09:48.713 | null | null | 645 | null |
15,349 | 1 | 15,450 | null | 7 | 475 | I'm looking at adding scripting functionality to an existing codebase and am weighing up the pros/cons of various packages. Lua is probably the most obvious choice, but I was wondering if people have any other suggestions based on their experience.
Scripts will be triggered upon certain events and may stay resident fo... | Which scripting language to support in an existing codebase? | CC BY-SA 2.5 | null | 2008-08-18T23:05:04.120 | 2009-02-23T23:44:29.373 | 2009-02-23T23:44:29.373 | 5,640 | 1,043 | [
"scripting",
"data-driven"
] |
15,355 | 2 | null | 15,326 | 1 | null | Have you got a valid doctype? Otherwise IE7 renders in quirks mode which is basically IE5.5
| null | CC BY-SA 2.5 | null | 2008-08-18T23:09:59.273 | 2008-08-18T23:09:59.273 | null | null | 234 | null |
15,352 | 2 | null | 9,033 | 22 | null | Near all the cool ones have been mentioned. Not sure if this one's well known or not
C# property/field constructor initialization:
```
var foo = new Rectangle()
{
Fill = new SolidColorBrush(c),
Width = 20,
Height = 20
};
```
This creates the rectangle, and sets the listed properties.
I've noticed... | null | CC BY-SA 3.0 | null | 2008-08-18T23:08:35.830 | 2013-03-04T23:55:35.743 | 2013-03-04T23:55:35.743 | 102,937 | 1,164,871 | null |
15,362 | 2 | null | 15,024 | 0 | null | I'm currently using SVN but I've generally had a lot or problem with checkouts to a network drive on a dev server. There tend to be locking issues that require a lot of fishing around to fix. It may be that using the WebDav access method, would ease some of these problems, but I haven't experimented yet.
Any of Bugzil... | null | CC BY-SA 2.5 | null | 2008-08-18T23:13:46.053 | 2008-08-18T23:13:46.053 | null | null | null | null |
15,358 | 2 | null | 15,349 | 1 | null | I have played around a little bit with [Spidermonkey](http://www.mozilla.org/js/spidermonkey/). It seems like it would at least be worth a look at in your situation. I have heard good things about Lua as well. The big argument for using a javascript scripting language is that a lot of developers know it already and wou... | null | CC BY-SA 2.5 | null | 2008-08-18T23:11:01.347 | 2008-08-18T23:11:01.347 | null | null | 1,797 | null |
15,310 | 1 | null | null | 5 | 17,100 | First off I understand that it is a horrible idea to run extremely large/long running reports. I am aware that Microsoft has a rule of thumb stating that a SSRS report should take no longer than 30 seconds to execute. However sometimes gargantuan reports are a preferred evil due to external forces such complying with ... | Optimizing the PDF Export of Huge Reports in Sql Reporting Services 2005 | CC BY-SA 2.5 | 0 | 2008-08-18T22:19:16.723 | 2012-05-07T12:05:22.123 | 2009-02-03T15:28:27.677 | 54,617 | 1,644 | [
"sql-server",
"reporting-services"
] |
15,364 | 2 | null | 15,349 | 1 | null | I've used Python extensively for this purpose and have never regretted it.
| null | CC BY-SA 2.5 | null | 2008-08-18T23:16:54.987 | 2008-08-18T23:16:54.987 | null | null | 533 | null |
15,357 | 2 | null | 15,241 | 6 | null | Our company practised CSLA in some of its projects and some of the legacy projects remain to be CSLA. Other projects moved away from it because CSLA violated a plain and simple OOP rule: Single Responsibility Principle.
CSLA objects are self-sustaining, e.g. they retrieve their own data, they manage their own behavior... | null | CC BY-SA 2.5 | null | 2008-08-18T23:10:51.410 | 2009-09-22T02:57:25.040 | 2009-09-22T02:57:25.040 | 372 | 372 | null |
15,363 | 2 | null | 8,493 | 5 | null | Many mailers prefix a mail's subject with "Re: " when replying, if that prefix isn't already there. German Outlook instead prefixes with "AW: " (for "AntWort") if that prefix isn't already there. Unfortunately, these two behaviours clash, resulting in mail subjects like "Re: AW: Re: AW: Re: AW: Re: AW: Lunch". So I ... | null | CC BY-SA 2.5 | null | 2008-08-18T23:15:11.400 | 2008-08-18T23:15:11.400 | null | null | 1,813 | null |
15,367 | 2 | null | 15,305 | 3 | null | I strongly dislike make because of its implicit ruleset and treatment of whitespace. Personally I would use cpp tasks ([http://ant-contrib.sourceforge.net/cpptasks/index.html](http://ant-contrib.sourceforge.net/cpptasks/index.html)) to do my C compilation. They are not as flexible as make but they are also far less ... | null | CC BY-SA 2.5 | null | 2008-08-18T23:19:59.910 | 2008-08-18T23:19:59.910 | null | null | 361 | null |
15,368 | 2 | null | 15,366 | 7 | null | You were correct in trying to use session variables. Once your user authenticates, you should store that information in their session so that each subsequent page view will see that. Make sure you are calling `session_start()` on both pages (blog.php and delete.php) before accessing $_SESSION. Also make sure you hav... | null | CC BY-SA 2.5 | null | 2008-08-18T23:20:46.600 | 2008-08-18T23:20:46.600 | null | null | 72 | null |
15,323 | 2 | null | 15,241 | 72 | null | Before I specifically answer your question, I'd like to put a few thoughts down. Is CSLA right for your project? It depends. I would personally consider CSLA for desktop based applications that does not value unit testing as a high priority. CSLA is great if you want to easily scale to an n-tier application. CSLA tends... | null | CC BY-SA 2.5 | null | 2008-08-18T22:32:10.427 | 2008-08-18T22:32:10.427 | null | null | 708 | null |
15,374 | 2 | null | 15,171 | 2 | null | How about /home/username/bin?
Add ~/bin to $PATH and make the script executable with chmod +x filename.
| null | CC BY-SA 2.5 | null | 2008-08-18T23:28:23.123 | 2008-08-18T23:28:23.123 | null | null | 1,633 | null |
15,365 | 1 | null | null | 4 | 1,288 | My company has tried to adopt the scrum methodology with mixed success. Theses are some areas where we've had issues. How do you handle these?
1. Tracking requirements from Product Marketing through to product. We're trying out JIRA to track all requirements individually and assigning a release to each one as it i... | Requirements, Specs, and Managing Up in an Agile Environment | CC BY-SA 2.5 | 0 | 2008-08-18T23:17:09.587 | 2009-09-23T16:04:23.010 | 2008-08-25T05:08:00.107 | 2,134 | 1,858 | [
"agile",
"scrum",
"product-management"
] |
15,366 | 1 | 15,368 | null | 9 | 1,829 | What's the best practice for making sure that certain ajax calls to certain pages are only accepted from authenticated users?
For example:
Let's say that I have a main page called (I know, creativity abounds). Let's also say that there is a page called which looks for the parameter and then deletes some entry fro... | Only accepting certain ajax requests from authenticated users | CC BY-SA 3.0 | 0 | 2008-08-18T23:18:02.673 | 2013-01-23T07:35:44.300 | 2013-01-23T07:35:44.300 | 811 | 305 | [
"php",
"ajax",
"authentication"
] |
15,372 | 2 | null | 15,254 | 2 | null | Similar to how you would use a single element to calculate the size for one placement-new, use an array of those elements to calculate the size required for an array.
If you require the size for other calculations where the number of elements may not be known you can use sizeof(A[1]) and multiply by your required elem... | null | CC BY-SA 2.5 | null | 2008-08-18T23:26:37.463 | 2008-08-18T23:26:37.463 | null | null | 1,043 | null |
15,385 | 2 | null | 14,398 | 0 | null | The comments here suggest that few people find the class designer useful.
Amusing to note that Microsoft designed the class designer to be a useful replacement to useless UML (UML diagrams being untrustworthy once they lose synchronisation with source code).
The trouble with class diagrams is that they tell us what w... | null | CC BY-SA 2.5 | null | 2008-08-18T23:38:12.400 | 2008-08-18T23:38:12.400 | null | null | 1,855 | null |
15,379 | 2 | null | 15,376 | 45 | null | For my simple & short UML working,
I've used this tool:
StarUML - [http://staruml.sourceforge.net/en/](http://staruml.sourceforge.net/en/)
Great free software for UML drawing.
---
Although the original Star UML is no longer maintained, there's now a fork called [White Star UML](http://sourceforge.net/projects/wh... | null | CC BY-SA 3.0 | null | 2008-08-18T23:32:15.330 | 2013-06-27T06:34:01.723 | 2013-06-27T06:34:01.723 | 701,879 | 1,556 | null |
15,376 | 1 | 224,568 | null | 488 | 1,060,676 | I'm trying to choose a tool for creating UML diagrams of all flavours. Usability is a major criteria for me, but I'd still take more power with a steeper learning curve and be happy. Free (as in beer) would be nice, but I'd be willing to pay if the tool's worth it. What should I be using?
| What's the best UML diagramming tool? | CC BY-SA 2.5 | 0 | 2008-08-18T23:29:17.643 | 2013-08-14T16:46:32.187 | null | null | 1,370 | [
"uml",
"diagram",
"modeling"
] |
15,388 | 2 | null | 15,023 | 1 | null | Hopefully someone will correct me if I'm wrong, but I don't think there's anything like that in WPF. But hopefully this is one of the many cases where advances in the technology have rendered obsolete the way we're used to doing things. Like "how do I wind my digital watch?"
To my understanding, the reason why Image... | null | CC BY-SA 2.5 | null | 2008-08-18T23:41:57.760 | 2008-08-18T23:41:57.760 | null | null | 1,818 | null |
15,390 | 1 | 15,402 | null | 30 | 9,658 | What are some standard practices for managing a medium-large JavaScript application? My concerns are both speed for browser download and ease and maintainability of development.
Our JavaScript code is roughly "namespaced" as:
```
var Client = {
var1: '',
var2: '',
accounts: {
/* 100's of functions and... | Best practices for managing and deploying large JavaScript apps | CC BY-SA 2.5 | 0 | 2008-08-18T23:45:14.553 | 2013-07-27T14:59:28.817 | 2011-01-31T01:44:53.297 | 63,550 | 1,848 | [
"javascript",
"web-applications",
"deployment"
] |
15,386 | 2 | null | 14,873 | 6 | null | To explain pix0r's code:
- `$wpdb->num_queries` is the number of database queries.- `_e` is for localization: [http://faq.wordpress.net/view.php?p=50](http://faq.wordpress.net/view.php?p=50)- `timer_stop()` returns the amount of time taken to render the page: [http://codex.wordpress.org/Function_Reference/timer_stop... | null | CC BY-SA 2.5 | null | 2008-08-18T23:39:03.443 | 2008-08-18T23:39:03.443 | null | null | 1,347 | null |
15,393 | 2 | null | 9,033 | 34 | null | Not hidden, but I think that a lot of developers are not using the HasValue and Value properties on the nullable types.
```
int? x = null;
int y;
if (x.HasValue)
y = x.Value;
```
| null | CC BY-SA 2.5 | null | 2008-08-18T23:47:06.157 | 2008-08-18T23:47:06.157 | null | null | 1,560 | null |
15,395 | 1 | null | null | 4 | 2,610 | Linq To SQL or Entity framework both integrate nicely with SQL Server 2005.
The SQL Server 2008 spec sheet promises even better integration - but I can't see it.
What are some examples of what you can do Linq-wise when talking to a 2008 server that you can't when talking to SQL Server 2005?
| SQL Server 2008 vs 2005 Linq integration | CC BY-SA 2.5 | 0 | 2008-08-18T23:50:25.433 | 2010-09-06T18:14:32.903 | 2008-10-14T05:41:43.160 | 8,454 | 1,855 | [
"linq",
"sql-server-2005",
"sql-server-2008"
] |
15,401 | 2 | null | 4,954 | 2 | null | If you want to learn about regular expressions, I recommend [Mastering Regular Expressions](https://rads.stackoverflow.com/amzn/click/com/0596528124). It goes all the way from the very basic concepts, all the way up to talking about how different engines work underneath. The last 4 chapters also gives a dedicated cha... | null | CC BY-SA 2.5 | null | 2008-08-19T00:00:48.580 | 2008-08-19T00:00:48.580 | null | null | 1,862 | null |
15,397 | 2 | null | 4,954 | 0 | null | As you may know, Oracle now has regular expressions: [http://www.oracle.com/technology/oramag/webcolumns/2003/techarticles/rischert_regexp_pt1.html](http://www.oracle.com/technology/oramag/webcolumns/2003/techarticles/rischert_regexp_pt1.html). I have used the new functionality in a few queries, but it hasn't been as ... | null | CC BY-SA 2.5 | null | 2008-08-18T23:54:10.340 | 2008-08-18T23:54:10.340 | null | null | 1,438 | null |
15,356 | 2 | null | 15,326 | 1 | null | I put together what you described there, and it's rendering properly for me. It's likely you have another style somewhere that's having an effect on your form, or your table. If you aren't doing so already, using a [reset.css](http://developer.yahoo.com/yui/reset/#code) file is extremely useful. If you want to see whic... | null | CC BY-SA 4.0 | null | 2008-08-18T23:10:00.867 | 2019-08-29T10:35:10.330 | 2019-08-29T10:35:10.330 | 11,415,624 | 1,370 | null |
15,402 | 2 | null | 15,390 | 12 | null | The approach that I've found works for me is having seperate JS files for each class (just as you would in Java, C# and others). Alternatively you can group your JS into application functional areas if that's easier for you to navigate.
If you put all your JS files into one directory, you can have your server-side env... | null | CC BY-SA 2.5 | null | 2008-08-19T00:02:42.913 | 2008-08-19T00:02:42.913 | null | null | 1,693 | null |
15,406 | 2 | null | 15,376 | 10 | null | I haven't been able to find a top-notch free UML diagramming tool, but if you're interested in pure diagramming, as opposed to round-trip-engineering, I'd go with Microsoft Visio. If you want full round-trip engineering, Rational Rose.
This [list of UML tools](http://en.wikipedia.org/wiki/List_of_UML_tools) on Wikiped... | null | CC BY-SA 2.5 | null | 2008-08-19T00:06:30.423 | 2008-08-19T00:06:30.423 | null | null | null | null |
15,409 | 2 | null | 14,398 | 0 | null | I only use the class designer to display my existing classes, but I don't use it the other way, e.g., design your classes there then let it generate the code.
| null | CC BY-SA 2.5 | null | 2008-08-19T00:07:48.987 | 2008-08-19T00:07:48.987 | null | null | 372 | null |
15,398 | 1 | null | null | 1 | 898 | I'm creating a plugin framework, where my application loads a series of plugin DLL's, then creates a new window and pass this new window's handle to the plugin. The plugin can, then, use this handle to create their own GUI.
Everything seems to be working very well. The only problem is that when I press TAB on a plugin... | DLL plugin that creates a parented window doesn't handle messages correctly | CC BY-SA 2.5 | null | 2008-08-18T23:56:34.127 | 2014-06-10T14:08:56.760 | 2014-06-10T14:08:56.760 | 650,492 | null | [
"c++",
"windows",
"plugins",
"c++builder",
"vcl"
] |
15,403 | 2 | null | 15,254 | 3 | null | Thanks for the replies. Using placement new for each item in the array was the solution I ended up using when I ran into this (sorry, should have mentioned that in the question). I just felt that there must have been something I was missing about doing it with placement new[]. As it is, it seems like placement new[] is... | null | CC BY-SA 2.5 | null | 2008-08-19T00:03:57.933 | 2008-08-19T00:03:57.933 | null | null | 1,739 | null |
15,405 | 2 | null | 15,399 | 0 | null | You might find [SQL Prompt](http://www.red-gate.com/Products/SQL_Prompt/index.htm) from redgate useful. I'm not sure what database engine you're using, as it's only for MSSQL Server
| null | CC BY-SA 2.5 | null | 2008-08-19T00:05:24.873 | 2008-08-19T00:05:24.873 | null | null | 493 | null |
15,399 | 1 | null | null | 0 | 358 | My firm have a talented and smart operations staff who are working very hard. I'd like to give them a SQL-execution tool that helps them avoid common, easily-detected SQL mistakes that are easy to make when they are in a hurry. Can anyone suggest such a tool? Details follow.
Part of the operations team remit is writin... | SQL With A Safety Net | CC BY-SA 2.5 | null | 2008-08-18T23:58:10.660 | 2009-01-05T20:48:00.657 | 2008-08-19T00:06:14.060 | null | null | [
"sql",
"mysql"
] |
15,414 | 1 | 15,420 | null | 3 | 2,092 | I'm quite used to my IDE setup in Delphi 7, where I have my comments rendered in italics.
This doesn't appear to be possible in VS2008. There's only an option for bold font, not italics.
Is there some kind of registry hack or font magic I can perform to get it to work? The font I'm using is Consolas, if that makes a ... | Is it possible to coax Visual Studio 2008 into using italics for comments? | CC BY-SA 3.0 | null | 2008-08-19T00:12:01.943 | 2014-07-20T01:33:11.660 | 2017-05-23T12:10:47.763 | -1 | 369 | [
"visual-studio",
"fonts",
"consolas"
] |
15,418 | 2 | null | 15,414 | 0 | null | Unfortunately not...not sure why they don't let you do that.
You can, however, change the font for just comments. So you could make it something different which will make it stand out more.
You may even be able to make a custom version of the font you use that is by default italic and then set that as the comment fo... | null | CC BY-SA 2.5 | null | 2008-08-19T00:16:51.433 | 2008-08-19T00:16:51.433 | null | null | 194 | null |
15,420 | 2 | null | 15,414 | 3 | null | If you have a font editor, you can change an italic font to pretend it's bold. [Here's an example of it.](http://damieng.com/blog/2007/07/11/italic-syntax-highlighting-in-visual-studio-2005) (For VS 2005, but it should work all the same.)
| null | CC BY-SA 2.5 | null | 2008-08-19T00:18:53.097 | 2008-08-19T00:18:53.097 | null | null | 1,600 | null |
15,412 | 1 | 15,432 | null | 21 | 3,693 | An [answer](https://stackoverflow.com/questions/15241/does-anyone-have-any-real-world-experience-of-csla#15357) to a Stack Overflow question stated that a particular framework violated a plain and simple OOP rule: Single Responsibility Principle (SRP).
My understanding of the definition of Object Orientated Programm... | Is Single Responsibility Principle a rule of OOP? | CC BY-SA 2.5 | 0 | 2008-08-19T00:11:00.757 | 2013-07-16T19:00:32.817 | 2017-05-23T11:53:50.080 | -1 | 708 | [
"oop"
] |
15,419 | 2 | null | 14,155 | 1 | null | I'm a big fan of EditPlus, mainly for its smooth built in ftp open/save functionality. Crimson Editor has this too but that feature seems to be unstable from time to time.
| null | CC BY-SA 2.5 | null | 2008-08-19T00:18:15.190 | 2008-08-19T00:18:15.190 | null | null | 1,569 | null |
15,411 | 2 | null | 15,390 | 2 | null | For server efficiency's sake, it is best to combine all of your javascript into one minified file.
Determine the order in which code is required and then place the minified code in the order it is required in a single file.
The key is to reduce the number of requests required to load your page, which is why you shoul... | null | CC BY-SA 2.5 | null | 2008-08-19T00:09:03.290 | 2008-08-19T00:09:03.290 | null | null | 392 | null |
15,416 | 2 | null | 15,376 | 0 | null | You might want to check out [ArgoUML](http://argouml.tigris.org/). It's not the best tool I've ever used, but it's one of the better free ones I've seen. It's a little slow because it's written in Java, but it let's you do some basic UML diagrams with relative ease.
| null | CC BY-SA 2.5 | null | 2008-08-19T00:13:34.623 | 2008-08-19T00:13:34.623 | null | null | 1,862 | null |
15,408 | 2 | null | 15,326 | 0 | null | I wouldn't know for sure without testing but try placing this between the table and the fieldset:
```
<br style="clear:both;" />
```
| null | CC BY-SA 2.5 | null | 2008-08-19T00:07:23.153 | 2008-12-25T01:06:35.957 | null | null | 40 | null |
15,427 | 2 | null | 15,024 | 3 | null | My preferred stack:
1) Subversion. I'm intrigued about distributed source control but haven't had chance to try any in anger yet. For a centralized solution svn is rock solid.
2) Ant. Maven is a joy to use when it's working but as an old ant hacker I find maven to be hard to follow once things go wrong.
3) Hudson. ... | null | CC BY-SA 2.5 | null | 2008-08-19T00:24:24.303 | 2008-08-19T00:24:24.303 | null | null | 1,867 | null |
15,421 | 2 | null | 15,414 | 1 | null | I dunno how he did it but [Tomas Restrepo has a Visual Studio theme that is able to italicize comments and string literals](http://www.winterdom.com/weblog/2007/11/12/DesertNightsAVS2005ColorScheme.aspx).
This one is in Visual Studio 2005, but the theme editing for both versions appear unchange so it might provide you... | null | CC BY-SA 2.5 | null | 2008-08-19T00:19:07.607 | 2008-08-19T02:16:16.497 | 2008-08-19T02:16:16.497 | 372 | 372 | null |
15,415 | 2 | null | 9,751 | 2 | null | > A good answer for this question would
be a real gold mine for a motivated
spammer :)
Not really -- as you'll see in that [other thread](https://stackoverflow.com/questions/371/how-do-you-make-sure-email-you-send-programmatically-is-not-automatically-marke), answers center on showing that you are the authorative ... | null | CC BY-SA 2.5 | null | 2008-08-19T00:12:23.860 | 2008-08-19T00:12:23.860 | 2017-05-23T12:13:37.900 | -1 | 49 | null |
15,422 | 2 | null | 14,287 | 5 | null | I've done image processing in linux before and skipped OpenCV's built in camera functionality because it's (as you've discovered) incomplete.
Depending on your OS you may have more luck going straight to the hardware through normal channels as opposed to through openCV. If you are using Linux, video4linux or video4lin... | null | CC BY-SA 2.5 | null | 2008-08-19T00:20:02.300 | 2008-08-19T00:20:02.300 | null | null | 2,089,740 | null |
15,430 | 2 | null | 15,376 | 14 | null | [Dia](http://live.gnome.org/Dia) is a possible choice. It's definitely not the best tool, but it is functional.
| null | CC BY-SA 2.5 | null | 2008-08-19T00:29:45.337 | 2008-08-19T00:29:45.337 | null | null | 1,618 | null |
15,429 | 2 | null | 14,155 | 56 | null | Another vote for ([about](http://www.vim.org/about.php), [download](http://www.vim.org/download.php#pc)). I think once you learn the keystrokes to control it, you won't want to use anything else.
Plus, there is the added benefit of being able to use it on just about any platform, including the nice Windows port.
![a... | null | CC BY-SA 2.5 | null | 2008-08-19T00:25:28.653 | 2009-06-23T13:35:28.010 | 2017-02-08T14:07:38.383 | -1 | 1,618 | null |
15,431 | 2 | null | 15,395 | 0 | null | it has full support for the new data types. lol. beyond that you got me, other than possibilities of optimised queries (like the merge command, etc).
| null | CC BY-SA 2.5 | null | 2008-08-19T00:30:57.987 | 2008-08-19T00:30:57.987 | null | null | 77 | null |
15,435 | 2 | null | 15,423 | 1 | null | I'll assume you are talking about Windows, right? I don't believe you can change the icon of a batch file directly. Icons are embedded in .EXE and .DLL files, or pointed to by .LNK files.
You could try to change the file association, but that approach may vary based on the version of Windows you are using. This is dow... | null | CC BY-SA 2.5 | null | 2008-08-19T00:35:56.917 | 2008-08-19T00:35:56.917 | null | null | 1,491 | null |
15,424 | 2 | null | 15,414 | 1 | null | You can kind of fake it by changing the font to something like the Lucida Handwriting font, which looks sort of italic or, buy or find a free italic only font.
Edit: I've actually gone through the built-in fonts on my VS 2008 on Vista, and chosen Monotype Corsiva, and bumped the size to 12 for my comments setting (... | null | CC BY-SA 2.5 | null | 2008-08-19T00:21:31.110 | 2008-08-19T00:31:14.400 | 2008-08-19T00:31:14.400 | 1,616 | 1,616 | null |
15,434 | 2 | null | 15,414 | 2 | null | The pertinent registry key is
```
HKCU\Software\Microsoft\VisualStudio\9.0\FontAndColors\{A27B4E24-A735-4D1D-B8E7-9716E1E3D8E0}
Comment FontFlags
```
Default is 0. Putting in a few test values got me various combination of normal, bold, and strike-through text, but no italics. Strikethrough isn't an option in the ... | null | CC BY-SA 2.5 | null | 2008-08-19T00:35:37.200 | 2008-08-19T00:42:44.937 | 2017-05-23T12:26:29.543 | -1 | 1,569 | null |
15,423 | 1 | 15,437 | null | 47 | 236,223 | I'd like to know what's the way to actually set the icon of a `.bat` file to an arbitrary icon.
How would I go about doing that programmatically, independently of the language I may be using.
| How to change the icon of .bat file programmatically? | CC BY-SA 3.0 | 0 | 2008-08-19T00:21:12.237 | 2021-12-22T10:26:54.010 | 2017-04-15T19:08:25.940 | 1,033,581 | 883 | [
"windows",
"icons",
"batch-file"
] |
15,440 | 2 | null | 15,390 | 4 | null | Just a sidenode - Steve already pointed out, you should really "minify" your JS files. In JS, whitespaces actually matter. If you have thousand lines of JS and you strip only the unrequired newlines you have already saved about 1K. I think you get the point.
There are tools, for this job. And you should never modify t... | null | CC BY-SA 2.5 | null | 2008-08-19T00:42:51.833 | 2008-08-19T00:42:51.833 | null | null | 1,870 | null |
15,441 | 2 | null | 15,395 | 0 | null | I am guessing most of it has to do on the server anyways. They probably optimized the query execution as for differences I don't know except for the new types.
| null | CC BY-SA 2.5 | null | 2008-08-19T00:45:58.660 | 2008-08-19T00:45:58.660 | null | null | 17 | null |
15,459 | 2 | null | 15,376 | 13 | null | Enterprise Architect from Sparx systems is the best tool I've used. A bit expensive at $199 (professional edition), but IMO it's worth it.
| null | CC BY-SA 2.5 | null | 2008-08-19T00:59:21.177 | 2008-08-19T00:59:21.177 | null | null | 1,213 | null |
15,428 | 2 | null | 14,398 | 18 | null | As a visualization tool, or for exploratory purposes (drawing up multiple options to see what they look like) it's not bad, but generally I find the object browser does fine for most stuff I care about.
As a code generation tool, it's a terrible idea.
The whole idea that we will design all our code structure first, t... | null | CC BY-SA 3.0 | null | 2008-08-19T00:24:39.280 | 2016-05-14T19:44:04.020 | 2016-05-14T19:44:04.020 | 234 | 234 | null |
15,437 | 2 | null | 15,423 | 47 | null | Assuming you're referring to MS-DOS batch files: as it is simply a text file with a special extension, a `.bat` file doesn't store an icon of its own.
You can, however, create a shortcut in the `.lnk` format that stores an icon.
| null | CC BY-SA 3.0 | null | 2008-08-19T00:37:11.500 | 2016-08-16T18:11:04.570 | 2016-08-16T18:11:04.570 | 444,991 | 1,600 | null |
15,432 | 2 | null | 15,412 | 22 | null | Very few rules, if any, in software development are without exception. Some people think there are no place for but they're wrong.
As far as OOP goes, there isn't a single definition of object-orientedness so depending on who you ask you'll get a different set of hard and soft principles, patterns, and practices.
T... | null | CC BY-SA 2.5 | null | 2008-08-19T00:32:41.993 | 2008-08-19T00:32:41.993 | null | null | 1,659 | null |
15,449 | 2 | null | 15,398 | 0 | null | I believe you'll have to take the following steps:
1. Subclass your edit controls (and other controls as needed).
2. Capture the WM_KEYDOWN message in your edit control's WndProc.
3. Check to see if the shift key is currently held down (using GetKeyState or similar).
4. Call GetWindow, passing in a handle to your edi... | null | CC BY-SA 2.5 | null | 2008-08-19T00:52:48.897 | 2008-08-19T00:52:48.897 | null | null | 611 | null |
15,470 | 1 | 15,474 | null | 15 | 4,411 | I know this site is written using ASP.Net MVC and I do not see "/Home" in the url. This proves to me that it can be done. What special route and do I need?
| How do I get rid of Home in ASP.Net MVC? | CC BY-SA 2.5 | 0 | 2008-08-19T01:02:59.030 | 2015-02-08T01:47:38.687 | 2012-07-13T06:37:22.433 | 727,208 | 692 | [
"asp.net-mvc",
"asp.net-mvc-routing"
] |
15,455 | 2 | null | 15,349 | 1 | null | Lua is has the most straight-forward C API for binding into a code base that I've ever used. In fact, I usually quickly roll bindings for it by hand. Whereas, you often wouldn't consider doing so without a generator like [swig](http://www.swig.org/) for others. Also, it's typically faster and more light weight than the... | null | CC BY-SA 2.5 | null | 2008-08-19T00:56:27.093 | 2008-08-19T00:56:27.093 | null | null | 1,491 | null |
15,450 | 2 | null | 15,349 | 3 | null | Based on my own experience:
- - - -
We're lucky to be living in the golden age of scripting, so it's hard to make a bad choice if you choose from any of the popular ones.
| null | CC BY-SA 2.5 | null | 2008-08-19T00:52:54.027 | 2008-08-19T00:52:54.027 | null | null | 116 | null |
15,448 | 2 | null | 14,155 | 4 | null | Textpad replaces notepad for me. I couldn't live without it. Some key features that I use with Textpad are:
1. Find in files (along with open all, replace all, save all, close all).
2. Block Select (along with copy/paste of a column).
3. Clip Library
4. Syntax highlighting
5. Ability to attach externals tools (compi... | null | CC BY-SA 2.5 | null | 2008-08-19T00:52:16.587 | 2008-08-19T00:52:16.587 | null | null | 791 | null |
15,474 | 2 | null | 15,470 | 16 | null | Just change "Home" to an empty string.
```
routes.MapRoute(
"Home",
"",
new { action = Index, controller = Home }
);
```
| null | CC BY-SA 2.5 | null | 2008-08-19T01:07:34.903 | 2008-08-19T01:07:34.903 | null | null | 17 | null |
15,476 | 2 | null | 15,171 | 2 | null | personally I prefer
```
/home/username/.bin
```
This way the bin folder is hidden but you can still add it to the PATH and execute all scripts with the x-bit inside.
I like my home directory to be clean (at first glance) with very few folders.
| null | CC BY-SA 2.5 | null | 2008-08-19T01:09:53.667 | 2008-08-19T01:09:53.667 | null | null | 1,870 | null |
15,488 | 2 | null | 12,290 | 3 | null | Maybe try this question at [http://www.codeplex.com/n2/Thread/List.aspx](http://www.codeplex.com/n2/Thread/List.aspx)
They might be able to tell you about performance limitations or bottlenecks.
| null | CC BY-SA 2.5 | null | 2008-08-19T01:24:09.923 | 2008-08-19T01:24:09.923 | null | null | 49 | null |
15,482 | 2 | null | 15,412 | 5 | null | None of these rules are laws. They are more guidelines and best practices. There are times when it doesn't make sense to follow "the rules" and you need to do what is best for your situation.
Don't be afraid to do what you think is right. You might actually come up with newer and better rules.
| null | CC BY-SA 2.5 | null | 2008-08-19T01:19:32.790 | 2008-08-19T01:19:32.790 | null | null | 791 | null |
15,478 | 1 | null | null | 2 | 1,839 | GDI+ DrawLines function has a clipping bug that can be reproduced by running the following c# code. When running the code, two line paths appear, that should be identical, because both of them are inside the clipping region. But when the clipping region is set, one of the line segment is not drawn.
```
protected ove... | .Net drawing clipping bug | CC BY-SA 3.0 | null | 2008-08-19T01:11:28.467 | 2023-03-03T23:49:55.330 | 2015-08-12T12:42:08.467 | 2,185,245 | 1,873 | [
"winforms",
"graphics",
"gdi+",
"system.drawing"
] |
15,481 | 1 | 15,658 | null | 24 | 22,389 | Sometimes a labeled break or continue can make code a lot more readable.
```
OUTERLOOP: for ( ;/*stuff*/; ) {
//...lots of code
if ( isEnough() ) break OUTERLOOP;
//...more code
}
```
I was wondering what the common convention for the labels was. All caps? first cap?
| Java Coding standard / best practices - naming convention for break/continue labels | CC BY-SA 3.0 | 0 | 2008-08-19T01:18:29.890 | 2015-03-17T10:50:50.143 | 2015-03-17T10:50:50.143 | 895,245 | 1,870 | [
"java",
"label",
"convention"
] |
15,489 | 2 | null | 14,874 | 1 | null | You can use [-[NSBitmapImageRep initWithFocusedViewRect:]](http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSBitmapImageRep_Class/Reference/Reference.html#//apple_ref/occ/instm/NSBitmapImageRep/initWithFocusedViewRect:) after locking focus on a view to have the view render itself (and it... | null | CC BY-SA 2.5 | null | 2008-08-19T01:25:23.587 | 2008-08-19T01:25:23.587 | null | null | 714 | null |
15,491 | 2 | null | 15,486 | 9 | null | You're going to have to do something like that i think (convert it into a more concrete type).
Maybe take it into a List of T rather than ArrayList, so that you get type safety and more options for how you implement the comparer.
| null | CC BY-SA 2.5 | null | 2008-08-19T01:29:10.897 | 2008-08-19T01:29:10.897 | null | null | 49 | null |
15,486 | 1 | 15,494 | null | 95 | 124,055 | So I came across an interesting problem today. We have a WCF web service that returns an IList. Not really a big deal until I wanted to sort it.
Turns out the IList interface doesn't have a sort method built in.
I ended up using the `ArrayList.Adapter(list).Sort(new MyComparer())` method to solve the problem but it ... | Sorting an IList in C# | CC BY-SA 2.5 | 0 | 2008-08-19T01:23:04.340 | 2022-10-22T16:24:08.540 | null | null | 493 | [
"c#",
"generics",
"sorting",
"ilist"
] |
15,496 | 1 | null | null | 295 | 221,160 | After reading [Hidden Features of C#](https://stackoverflow.com/questions/9033/hidden-features-of-c) I wondered, What are some of the hidden features of Java?
| Hidden Features of Java | CC BY-SA 2.5 | 0 | 2008-08-19T01:36:03.053 | 2012-06-05T18:13:34.450 | 2017-05-23T12:26:24.527 | -1 | 486 | [
"java"
] |
15,492 | 2 | null | 15,486 | -1 | null | Convert your `IList` into `List<T>` or some other generic collection and then you can easily query/sort it using `System.Linq` namespace (it will supply bunch of extension methods)
| null | CC BY-SA 3.0 | null | 2008-08-19T01:31:52.747 | 2015-09-20T12:41:19.657 | 2015-09-20T12:41:19.657 | 4,551,041 | 275 | null |
15,495 | 2 | null | 15,486 | 74 | null | You can use LINQ:
```
using System.Linq;
IList<Foo> list = new List<Foo>();
IEnumerable<Foo> sortedEnum = list.OrderBy(f=>f.Bar);
IList<Foo> sortedList = sortedEnum.ToList();
```
| null | CC BY-SA 2.5 | null | 2008-08-19T01:34:07.550 | 2008-08-19T01:34:07.550 | null | null | 1,659 | null |
15,508 | 2 | null | 15,504 | 2 | null | It's under the options.
| null | CC BY-SA 2.5 | null | 2008-08-19T01:47:14.450 | 2008-08-19T01:47:14.450 | null | null | 17 | null |
15,499 | 2 | null | 14,911 | 0 | null | Have you investigated PHP's [documentation](http://php.net/manual/en/intro.pdf.php)? There's also PHP [FAQ](http://php.net/manual/en/faq.using.php#faq.using.freepdf) with a few different links. PHP primarily supports [PDFlib](http://www.pdflib.com/products/pdflib-family/).
| null | CC BY-SA 2.5 | null | 2008-08-19T01:36:50.257 | 2008-08-19T01:36:50.257 | null | null | 1,848 | null |
15,494 | 2 | null | 15,486 | 56 | null | How about using LINQ To Objects to sort for you?
Say you have a `IList<Car>`, and the car had an `Engine` property, I believe you could sort as follows:
```
from c in list
orderby c.Engine
select c;
```
| null | CC BY-SA 2.5 | null | 2008-08-19T01:34:06.317 | 2008-08-19T01:41:02.840 | 2008-08-19T01:41:02.840 | 708 | 708 | null |
15,512 | 2 | null | 15,496 | 37 | null | Language-level keyword.
| null | CC BY-SA 2.5 | null | 2008-08-19T01:51:22.350 | 2008-08-19T01:51:22.350 | null | null | 1,659 | null |
15,503 | 2 | null | 11,879 | 0 | null | > As others have said, it is possible.
However, if both the service and
client use an object that has the
exact same domain behavior on both
sides, you probably didn't need a
service in the first place.
I have to disagree with this as it's a somewhat narrow comment. Using a webservice that can serialize doma... | null | CC BY-SA 2.5 | null | 2008-08-19T01:43:35.220 | 2008-08-19T01:43:35.220 | null | null | 493 | null |
15,516 | 2 | null | 15,513 | 3 | null | ```
<%@Page Trace="true" %>
```
See [http://www.asp101.com/articles/robert/tracing/default.asp](http://www.asp101.com/articles/robert/tracing/default.asp).
| null | CC BY-SA 2.5 | null | 2008-08-19T01:52:16.903 | 2008-08-19T01:52:16.903 | null | null | 1,659 | null |
15,504 | 1 | 15,508 | null | 2 | 975 | I've just setup a new project on SourceForge and the admins set it up with CVS as the SCM, however, I want to use SVN. There is NO code in this project yet - empty directory.
How do I change this project from using `CVS` to `SVN`?
| Use SVN instead of CVS on SourceForge | CC BY-SA 3.0 | 0 | 2008-08-19T01:44:28.027 | 2013-07-04T12:22:18.483 | 2013-07-04T12:22:18.483 | 1,584,286 | 1,463 | [
"svn",
"cvs",
"sourceforge"
] |
15,517 | 2 | null | 15,412 | 1 | null | Ahh, I guess this pertains to an answer I gave. :)
As with most rules and laws, there are underlying motives by which these rules are relevant -- if the underlying motive is not present or applicable to your case, then you are free to bend/break the rules according to your own needs.
That being said, SRP is not a rul... | null | CC BY-SA 2.5 | null | 2008-08-19T01:53:07.183 | 2008-08-19T01:53:07.183 | null | null | 372 | null |
15,527 | 2 | null | 15,204 | 2 | null | It depends on your application:
- -
| null | CC BY-SA 2.5 | null | 2008-08-19T02:01:14.203 | 2008-08-19T02:01:14.203 | null | null | 718 | null |
15,533 | 2 | null | 15,496 | 17 | null | I really like the rewritten Threading API from Java 1.6. Callables are great. They are basically threads with a return value.
| null | CC BY-SA 2.5 | null | 2008-08-19T02:03:53.947 | 2008-08-19T02:03:53.947 | null | null | 1,870 | null |
15,501 | 2 | null | 15,481 | 15 | null | The convention is to avoid labels altogether.
There are very, very few valid reasons to use a label for breaking out of a loop. Breaking out is ok, but you can remove the need to break at all by modifying your design a little. In the example you have given, you would extract the 'Lots of code' sections and put them in... | null | CC BY-SA 2.5 | null | 2008-08-19T01:41:14.913 | 2008-08-20T04:09:02.987 | 2017-05-23T10:32:51.507 | -1 | 943 | null |
15,514 | 1 | 15,677 | null | 4 | 5,428 | In my example below I'm using a `dijit.form.DateTextBox`:
```
<input type="text" name="startDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'MM/dd/yyyy'}" value='<c:out value="${sessionScope.adminMessageForm.startDate}"/>' />
```
So for example, if the user starts to enter "asdf" into the date the... | Is there anyway to disable the client-side validation for dojo date text box? | CC BY-SA 3.0 | null | 2008-08-19T01:51:46.703 | 2012-04-25T16:06:58.893 | 2012-04-25T16:06:58.893 | 1,332,690 | 700 | [
"javascript",
"dojo"
] |
15,513 | 1 | 18,052 | null | 1 | 825 | I've been tasked with . The page I'm currently focused on has many problems but one that I'm having trouble digging into is the render time of the page. Using Trace.axd the duration between Begin Render and End Render is 1.4 seconds. From MSDN I see that
> All ASP.NET Web server controls have a
Render method that... | How do I track down performance problems with page rendering? | CC BY-SA 3.0 | null | 2008-08-19T01:51:44.113 | 2013-12-19T18:42:39.223 | 2013-12-19T18:42:39.223 | 2,124,004 | 1,767 | [
"asp.net",
"performance"
] |
15,547 | 2 | null | 15,254 | 4 | null | @James
> I'm not even really clear why it needs the additional data, as you wouldn't call delete[] on the array anyway, so I don't entirely see why it needs to know how many items are in it.
After giving this some thought, I agree with you. There is no reason why placement new should need to store the number of elem... | null | CC BY-SA 2.5 | null | 2008-08-19T02:14:14.067 | 2008-08-19T02:14:14.067 | null | null | 872 | null |
15,532 | 2 | null | 15,514 | 1 | null | My only suggestion is to programmatically remove the dojoType on the server-side or client-side. It is not possible to keep the dojoType and not have it validate. Unless you create your own type that has you logic in it.
| null | CC BY-SA 2.5 | null | 2008-08-19T02:02:30.377 | 2008-08-19T02:02:30.377 | null | null | 17 | null |
15,542 | 2 | null | 15,537 | 2 | null | ```
perl -e 'print "\xFF"'
```
where `FF` is the hex code of the ACSII code you want to print. So for ACSII code 2, it would be \x02.
| null | CC BY-SA 3.0 | null | 2008-08-19T02:10:14.573 | 2017-02-13T05:23:49.143 | 2017-02-13T05:23:49.143 | 4,768,043 | 1,693 | null |
15,538 | 2 | null | 15,496 | 25 | null | static imports to "enhance" the language, so you can do nice literal things in type safe ways:
```
List<String> ls = List("a", "b", "c");
```
(can also do with maps, arrays, sets).
[http://gleichmann.wordpress.com/2008/01/13/building-your-own-literals-in-java-lists-and-arrays/](http://gleichmann.wordpress.com/200... | null | CC BY-SA 2.5 | null | 2008-08-19T02:06:42.227 | 2008-08-19T02:15:15.670 | 2008-08-19T02:15:15.670 | 699 | 699 | null |
15,578 | 2 | null | 15,573 | 0 | null | People are probably going to yell at me...but I've found that Vista 64 is mostly worth it. The main reason for me though is that I'm always maxing out my memory and having a 64bit OS allows me to go past the <4GB limit of 32bit.
But even if you don't get 64bit, just buy 2 2GB RAM cards anyways....you will be able to ... | null | CC BY-SA 2.5 | null | 2008-08-19T02:37:43.787 | 2008-08-19T02:37:43.787 | null | null | 194 | null |
15,573 | 1 | null | null | 5 | 751 | I'm not sure how this question will be recieved here but lets give it a shot...
It's time for me to get a new dev PC. What's the best choice these days?
I typically have 2-3 Visual Studios open along with mail and all that stuff. Ideally I would imagine 2+ GB of RAM would be nice as my current XP box is dying. =)
I ... | Choosing a new development machine | CC BY-SA 2.5 | 0 | 2008-08-19T02:33:17.867 | 2008-09-15T23:58:50.647 | null | null | 447 | [
"cpu"
] |