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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33,703 | 1 | 33,780 | null | 34 | 34,686 | I'm working on a visual studio 2005 vb.net windows forms project that's been around for several years. It's full of default textboxes, labels, dropdowns, datagrids, datetime pickers -- all the standard stuff. The end result is a very gray, old-looking project.
What would be the best approach to making this project l... | How can you make a .net windows forms project look fresh? | CC BY-SA 2.5 | 0 | 2008-08-29T00:30:56.757 | 2013-11-27T10:25:33.347 | null | null | 3,259 | [
".net",
"visual-studio",
"winforms",
"user-interface"
] |
33,712 | 2 | null | 33,703 | 3 | null | This depends on how the existing "gray old looking" project is structured in terms of code. For example, is data access code separated from the UI in a Data Access Layer, is the business logic in a Business Logic Layer? If yes, then cleaning the UI for a snazzy look should be relatively simple.
If everything is all ... | null | CC BY-SA 2.5 | null | 2008-08-29T00:40:29.543 | 2008-08-29T00:40:29.543 | null | null | 352 | null |
33,699 | 2 | null | 33,696 | 0 | null | I think starting with C would be a smart thing to do. After all, Objective-C is C language with some extensions.
To develop in Cocoa you are required to know well how pointers and memory allocation work (there's no garbage collection on the iPhone), plus you will have to use some standard C libraries, not Cocoa libra... | null | CC BY-SA 2.5 | null | 2008-08-29T00:27:41.867 | 2008-08-29T00:33:21.277 | 2008-08-29T00:33:21.277 | 2,954 | 2,954 | null |
33,709 | 2 | null | 33,386 | 0 | null | You could also copy your debug symbols to the production environment even if it's compiled in relase mode
[Here](http://www.juanformoso.com.ar/post/2008/03/06/e28098PDBs-are-evile28099-myth.aspx)'s an article with more information
| null | CC BY-SA 2.5 | null | 2008-08-29T00:38:22.857 | 2008-08-29T00:38:22.857 | null | null | 1,782 | null |
33,713 | 2 | null | 33,703 | 6 | null | This isn't so much an "answer" as an opinion.
I tried to jazz up a WinForms project I created back a few years ago by giving the forms a fancy blue gradient background etc, and it looked pretty good on XP. But then on Vista it looked out of place. Taking away any custom painting and reverting the form to "battleship g... | null | CC BY-SA 2.5 | null | 2008-08-29T00:42:17.650 | 2008-08-29T00:42:17.650 | null | null | 615 | null |
33,716 | 2 | null | 33,708 | 3 | null | I don't see anywhere in the code where you call addMouseListener(this) or addMouseMotionListener(this) for the DisplayArea in order for it to subscribe to those events.
| null | CC BY-SA 2.5 | null | 2008-08-29T00:42:41.597 | 2008-08-29T00:42:41.597 | null | null | 723 | null |
33,718 | 2 | null | 33,708 | 3 | null | I don't see any code here to register to the mouse listeners. You have to call addMouseListener(this) and addMouseMotionListener(this) on the DisplayArea.
| null | CC BY-SA 2.5 | null | 2008-08-29T00:43:44.870 | 2008-08-29T00:43:44.870 | null | null | 3,333 | null |
33,715 | 2 | null | 33,708 | 13 | null | The just allows the displayArea class to listen to some, to be defined, Swing component's mouse events. You have to explicitly define what it should be listening at. So I suppose you could add something like this to the constructor:
```
this.addMouseListener(this);
this.addMouseMotionListener(this);
```
| null | CC BY-SA 2.5 | null | 2008-08-29T00:42:33.953 | 2008-08-29T23:09:40.443 | 2008-08-29T23:09:40.443 | 1,827 | 1,827 | null |
33,706 | 2 | null | 25,999 | 2 | null | @Martin.
This is how I believe Mario Kart Wii works. The added bonus is that you can let all the other players watch how the high score holder got the high score. The funny thing about this is that if you check out the fastest "[Grumble Volcano](http://www.youtube.com/watch?v=joMbFFk6WZ8)" time trail, you'll see th... | null | CC BY-SA 2.5 | null | 2008-08-29T00:36:18.507 | 2008-08-29T00:36:18.507 | null | null | 1,862 | null |
33,719 | 2 | null | 33,703 | 3 | null | You can subclass all the default controls and override their appearance. Admittedly, you will have to go thru the entire project and change all references of TextBox to MyTextBox, but all of the default properties and methods will still work. The same cannot be guaranteed if you go with a 3rd party vendor. The other... | null | CC BY-SA 2.5 | null | 2008-08-29T00:43:56.977 | 2008-08-29T00:43:56.977 | null | null | 2,470 | null |
33,714 | 2 | null | 33,076 | 5 | null | The TREAT algorithm is similar to RETE, but doesn't record partial matches. As a result, it may use less memory than RETE in certain situations. Also, if you modify a significant number of the known facts, then TREAT can be much faster because you don't have to spend time on retractions.
There's also [RETE*](http://ww... | null | CC BY-SA 2.5 | null | 2008-08-29T00:42:18.040 | 2008-08-29T00:42:18.040 | null | null | 2,783 | null |
33,717 | 2 | null | 33,685 | 2 | null | What are you using to import the file? DTS has scripting abilities that can be used for data validation. If your not using DTS are you using a custom tool? If so do your validation there.
But i think this is what your looking for.
[http://www.sqlteam.com/article/using-dts-to-automate-a-data-import-process](http://w... | null | CC BY-SA 2.5 | null | 2008-08-29T00:43:26.917 | 2008-08-29T02:25:38.230 | 2008-08-29T02:25:38.230 | 1,293 | 1,293 | null |
33,720 | 1 | 33,743 | null | 113 | 51,794 | How would I change the initial templates created by Xcode when creating a new Cocoa Class.
I am referring to the comments and class name created when using Xcode's new class wizard.
| Change templates in Xcode | CC BY-SA 3.0 | 0 | 2008-08-29T00:44:14.307 | 2021-02-24T18:41:18.367 | 2013-05-04T15:44:59.890 | 1,017,893 | 3,467 | [
"xcode",
"macos",
"templates",
"xcode4",
"xcode4.5"
] |
33,722 | 2 | null | 33,696 | 3 | null | Who reads books these days? I have the 1st edition, I forgot to read it. Go to the [iPhone Developer Center](http://developer.apple.com/iphone/). Read examples.
In case you didn't read any of that, click the pretty picture.
[](http://developer.apple.com/iphone/)
| null | CC BY-SA 3.0 | null | 2008-08-29T00:45:18.190 | 2012-04-01T20:43:46.547 | 2012-04-01T20:43:46.547 | 1,219,121 | 459 | null |
33,725 | 2 | null | 33,685 | 1 | null | It looks like you are doomed. See [this](http://www.sommarskog.se/error-handling-I.html#whathappens) document.
TL/DR: A data conversion error always causes the whole batch to be aborted - your sql script will not continue to execute no matter what you do. Transactions won't help. You can't check @@ERROR because execut... | null | CC BY-SA 2.5 | null | 2008-08-29T00:48:31.770 | 2008-08-29T01:45:12.663 | 2008-08-29T01:45:12.663 | 369 | 369 | null |
33,727 | 1 | 33,775 | null | 5 | 4,780 | I would like to use something like CLR Profiles on .Net 2.0 to see what objects are taking more space in the heap at any given time (of an ASP.Net worker process).
However, the CLR Profiler only lets me START an app, not attach to an existing one. I assume this is because it tracks allocations and GC too, but i'm not ... | CLR Profiler - Attaching to existing process | CC BY-SA 2.5 | 0 | 2008-08-29T00:54:44.220 | 2019-08-15T19:23:41.673 | null | null | 3,314 | [
"memory",
".net-2.0",
"clr",
"profiler"
] |
33,728 | 1 | 34,056 | null | 22 | 2,352 | I'm going to build an API for a web app and I'm interested in what people can suggest as good practices.
I'm already planning to make it versioned (version 1 can only control certain aspects of the system, version 2 could control more, but this may need a change in the way authentication is performed that would be inc... | How should I build a good (web) API | CC BY-SA 2.5 | 0 | 2008-08-29T00:56:33.903 | 2016-05-15T18:32:10.860 | 2016-05-15T18:32:10.860 | 6,083,675 | 1,612 | [
"api-design"
] |
33,737 | 2 | null | 33,728 | 6 | null | Use [REST](http://en.wikipedia.org/wiki/Representational_State_Transfer).
RESTful web services architecture is easy to implement and uses the strengths and semantics of HTTP for what they were intended. It's resource-oriented, just like the web itself.
[Amazon Web Services](http://aws.amazon.com/), Google and many ot... | null | CC BY-SA 2.5 | null | 2008-08-29T01:08:07.357 | 2008-08-29T01:08:07.357 | null | null | 2,783 | null |
33,724 | 2 | null | 33,199 | 3 | null | Without knowing the return value of `printf` off the top of your head:
```
if (printf("Hello") && 0)
printf("Hello");
else
printf("World");
```
| null | CC BY-SA 2.5 | null | 2008-08-29T00:46:44.020 | 2009-11-21T06:38:59.240 | 2009-11-21T06:38:59.240 | 56,338 | null | null |
33,735 | 2 | null | 33,703 | 5 | null | > What would be the best approach to making this project look fresh and snazzy?
IMHO the best thing you can do is make sure the controls are logically ordered, and have ample spacing between them, and add groupboxes / labels / etc where appropriate.
If you try and change the 'sea of gray' that is the default color s... | null | CC BY-SA 2.5 | null | 2008-08-29T01:06:33.553 | 2008-08-29T01:06:33.553 | null | null | 234 | null |
33,726 | 2 | null | 25,200 | 3 | null | I've seen similar behaviour when setting certain properties of controls in the constructor of the form itself. They seem to revert back to their design-time defaults.
I notice you're already overriding the OnLoad method. Have you tried setting AutoSize = false there? Or are you mainly concerned with providing a value... | null | CC BY-SA 2.5 | null | 2008-08-29T00:53:56.283 | 2008-08-29T00:53:56.283 | null | null | 615 | null |
33,740 | 2 | null | 33,685 | 1 | null | Run each cast in a transaction, after each cast, check @@ERROR, if its clear, commit and move on.
| null | CC BY-SA 2.5 | null | 2008-08-29T01:11:22.137 | 2008-08-29T01:11:22.137 | null | null | 1,965 | null |
33,729 | 2 | null | 31,693 | 18 | null | There are already a lot of good answers on the differences are, so let me give a slightly different perspective and add the .
As was already explained, the main difference is , i.e. the fact that the Java compiler erases the generic types and they don't end up in the generated bytecode. However, the question is: why ... | null | CC BY-SA 2.5 | null | 2008-08-29T00:57:01.297 | 2008-08-29T01:08:19.570 | 2008-08-29T01:08:19.570 | 2,988 | 2,988 | null |
33,707 | 2 | null | 33,637 | 56 | null | GPS, the Global Positioning System run by the United States Military, is free for civilian use, though the reality is that we're paying for it with tax dollars.
However, GPS on cell phones is a bit more murky. In general, it won't cost you anything to turn on the GPS in your cell phone, but when you get a location it... | null | CC BY-SA 3.0 | null | 2008-08-29T00:36:44.687 | 2016-02-27T15:12:04.087 | 2016-02-27T15:12:04.087 | 229,044 | null | null |
33,708 | 1 | 33,715 | null | 6 | 2,449 | So I've got a `JPanel` implementing `MouseListener` and `MouseMotionListener`:
```
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DisplayArea extends JPanel implements MouseListener, MouseMotionListener {
public DisplayArea(Rectangle bounds, Display display) {
setLayout(nu... | My (Java/Swing) MouseListener isn't listening, help me figure out why | CC BY-SA 3.0 | null | 2008-08-29T00:37:55.650 | 2015-05-04T08:26:31.280 | 2015-05-04T08:26:31.280 | 2,615,793 | 61 | [
"java",
"swing",
"actionlistener",
"mouselistener"
] |
33,741 | 2 | null | 33,728 | 7 | null | I would take a look at proven APIs:
1. YouTube API
2. Twitter API
There's a lot of argument about whether these APIs are "good" but I think their success is demonstrated, and they're all easy to use.
| null | CC BY-SA 3.0 | null | 2008-08-29T01:12:11.557 | 2013-03-21T15:51:31.963 | 2013-03-21T15:51:31.963 | 2,025 | null | null |
33,742 | 2 | null | 33,457 | 2 | null |
for SQL Server 7.0 the compatibility level is 70
Obviously this is conflicting information...I assume if your compatibility level of your DB is 70 you can not connect.
To check run: EXEC sp_dbcmptlevel ''
[Looking through this link](http://msdn.microsoft.com/en-us/library/aa259649.aspx), it seems you might be able... | null | CC BY-SA 2.5 | null | 2008-08-29T01:13:36.000 | 2008-08-29T01:13:36.000 | null | null | 648 | null |
33,745 | 1 | 33,815 | null | 10 | 18,704 | On the other end of the spectrum, I would be happy if I could install a wiki and share the login credentials between [WordPress](http://en.wikipedia.org/wiki/WordPress) and the wiki. I hacked [MediaWiki](http://en.wikipedia.org/wiki/MediaWiki) a while ago to share logins with another site (in [ASP Classic](http://en.wi... | WordPress MediaWiki integration | CC BY-SA 4.0 | 0 | 2008-08-29T01:15:24.593 | 2019-01-18T11:11:03.413 | 2019-01-18T11:11:03.413 | 567,854 | 255 | [
"php",
"mysql",
"wordpress",
"lamp",
"mediawiki"
] |
33,738 | 2 | null | 28,843 | 6 | null | Okay, I asked a question on the SlickEdit forums.
[http://community.slickedit.com/index.php?topic=3854.0](http://community.slickedit.com/index.php?topic=3854.0)
EDIT: Winnar!
| null | CC BY-SA 2.5 | null | 2008-08-29T01:08:16.107 | 2008-08-29T02:49:31.417 | 2008-08-29T02:49:31.417 | 61 | 61 | null |
33,736 | 2 | null | 33,696 | 7 | null | Yes, you're really best off learning C and then Objective-C. There are some resources that will get you over the C and Objective-C language learning curve:
- [Masters of the Void](http://www.zathras.de/angelweb/masters-of-the-void.htm)- [Programming in Objective-C](https://rads.stackoverflow.com/amzn/click/com/067232... | null | CC BY-SA 2.5 | null | 2008-08-29T01:08:04.703 | 2008-08-29T01:08:04.703 | null | null | 714 | null |
33,739 | 1 | null | null | 54 | 93,343 | Does anyone know how to debug `JSP` in IDEA?
When I set breakpoint in my `JSP` files, those breakpoints never seem to take effect. The debugger never hits them. IDEA seems to think that the breakpoints are valid. I do see a red dot placed to the left of the line where I place my breakpoint.
I read in IntelliJ forum ... | JSP debugging in IntelliJ IDEA | CC BY-SA 3.0 | 0 | 2008-08-29T01:08:28.370 | 2022-12-03T13:59:23.117 | 2014-10-16T23:29:31.937 | 3,885,376 | null | [
"debugging",
"jsp",
"intellij-idea"
] |
33,748 | 2 | null | 33,703 | 6 | null | I recommend purchasing a good 3rd-party control library - [Infragistics](http://www.infragistics.com/) and [DevExpress](http://www.devexpress.com/), are just a couple. Most of these libraries give you the ability to drop in new compatible controls on top of your existing ones - for example, you can replace the default ... | null | CC BY-SA 2.5 | null | 2008-08-29T01:23:09.003 | 2008-08-29T01:23:09.003 | null | null | null | null |
33,743 | 2 | null | 33,720 | 110 | null | You wouldn't change the existing templates. In other words, don't anything under the `/Developer` hierarchy (or wherever you installed your developer tools).
Instead, clone the templates you want to have customized variants of. Then change their names and the information in them. Finally, put them in the appropria... | null | CC BY-SA 4.0 | null | 2008-08-29T01:14:27.997 | 2020-01-09T05:22:49.933 | 2020-01-09T05:22:49.933 | 4,995,249 | 714 | null |
33,750 | 2 | null | 33,746 | 5 | null | the million dollar question!
first off, don't worry too much about performance now. you will be amazed at how quickly an optimized xml parser will rip through your xml. more importantly, what is your design for the future: as the XML evolves, how will you maintain loose coupling and interoperability?
more concretel... | null | CC BY-SA 2.5 | null | 2008-08-29T01:24:43.243 | 2008-08-29T01:24:43.243 | null | null | 3,142 | null |
33,749 | 2 | null | 33,746 | 5 | null | Both methods for storing object's properties are perfectly valid. You should depart from pragmatic considerations. Try answering following question:
1. Which representation leads to faster data parsing\generation?
2. Which representation leads to faster data transfer?
3. Does readability matter? ...
| null | CC BY-SA 2.5 | null | 2008-08-29T01:23:23.857 | 2008-08-29T01:29:49.457 | 2020-06-20T09:12:55.060 | -1 | 1,196 | null |
33,756 | 2 | null | 33,746 | 9 | null | When in doubt, [KISS](http://en.wikipedia.org/wiki/KISS_principle) -- why mix attributes and elements when you don't have a clear reason to use attributes. If you later decide to define an XSD, that will end up being cleaner as well. Then if you even later decide to generate a class structure from your XSD, that will... | null | CC BY-SA 2.5 | null | 2008-08-29T01:27:43.987 | 2008-08-29T01:27:43.987 | null | null | 327 | null |
33,759 | 2 | null | 24,270 | 1 | null | I know I find OOP useful pretty much solely on a syntactical sugar basis (encapsulation, operator overloading, typechecking). As to the benefits of OOP... I don't know. I don't think it's than procedural stuff.
On the lighter side, my OOP lecturer said that OOP is important because otherwise the "code would have too... | null | CC BY-SA 2.5 | null | 2008-08-29T01:30:38.800 | 2008-08-29T01:30:38.800 | null | null | 61 | null |
33,751 | 1 | 33,767 | null | 11 | 8,209 | I would like to add the following MIME type to a site run by `Apache`:
```
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
```
I'm on a shared host, so I can only create an `.htaccess` file. Would someone please specify the complete contents of suc... | How do I add a MIME type to .htaccess? | CC BY-SA 3.0 | null | 2008-08-29T01:25:43.897 | 2016-08-02T04:47:17.617 | 2016-08-02T04:47:17.617 | 1,932,557 | 338 | [
"java",
"apache",
".htaccess",
"mime",
"jnlp"
] |
33,762 | 2 | null | 33,751 | 4 | null | You should be able to just add this line:
```
AddType application/x-java-jnlp-file .jnlp
```
| null | CC BY-SA 2.5 | null | 2008-08-29T01:31:35.117 | 2008-08-29T01:31:35.117 | null | null | 1,811 | null |
33,755 | 2 | null | 33,746 | 4 | null | It is arguable either way, but your colleagues are right in the sense that the XML should be used for "markup" or meta-data around the actual data. For your part, you are right in that it's sometimes hard to decide where the line between meta-data and data is when modeling your domain in XML. In practice, what I do is ... | null | CC BY-SA 2.5 | null | 2008-08-29T01:26:57.077 | 2008-08-29T01:26:57.077 | null | null | 3,474 | null |
33,764 | 2 | null | 27,733 | 3 | null | OK, to answer my own question, I was missing Adorners (never came back in any of the searches I did, so it doesn't seem that they're as widely known as they perhaps should be).
They seem rather more complex than the WndProc overrides, unfortunately, but I think it should be possible to manhandle them into doing what I... | null | CC BY-SA 2.5 | null | 2008-08-29T01:31:41.527 | 2008-08-29T01:31:41.527 | null | null | 2,131 | null |
33,760 | 2 | null | 33,559 | 4 | null | Count me in with a vote for [PowerShell in Action](https://rads.stackoverflow.com/amzn/click/com/1932394907). There are a bunch of blogs out there as well, check out [//\O//](http://thepowershellguy.com)'s blog, [The Huddled Masses](http://huddledmasses.org/), and [JB's Powershell](http://mspowershell.blogspot.com/) (S... | null | CC BY-SA 3.0 | null | 2008-08-29T01:31:04.057 | 2014-11-10T23:05:48.533 | 2014-11-10T23:05:48.533 | 63,550 | 1,635 | null |
33,761 | 1 | 33,773 | null | 16 | 27,075 | Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters that belong to a stored procedure on a SQL Server before I actually execute it?
I have an a "multi-environment" scenario where there are multiple versions of the same database schema. Examples of environments might be "Development", "S... | How can I retrieve a list of parameters from a stored procedure in SQL Server | CC BY-SA 2.5 | 0 | 2008-08-29T01:31:27.550 | 2014-02-21T16:25:14.020 | 2008-08-29T01:36:33.480 | 615 | 2,049 | [
"c#",
"sql-server",
"ado.net"
] |
33,768 | 1 | 67,704 | null | 12 | 12,574 | I run Flex Builder 3 on a mac and as my project grows - the compile time gets longer and longer and longer. I am using some SWC's and there is a fair amount of code but it shouldn't take minutes to build and crash daily should it?
| Any advice for speeding up the compile time in Flex Builder 3? | CC BY-SA 2.5 | 0 | 2008-08-29T01:34:14.000 | 2013-08-08T15:26:10.650 | 2008-08-29T01:39:00.307 | 1,414 | 3,435 | [
"apache-flex",
"macos",
"flexbuilder",
"compilation"
] |
33,767 | 2 | null | 33,751 | 11 | null | ```
AddType application/x-java-jnlp-file .jnlp
```
Note that you might not actually be allowed to do that.
See also the [documentation of the AddType directive](http://HTTPd.Apache.Org/docs/trunk/mod/mod_mime.html#addtype) and the [.htaccess howto](http://HTTPd.Apache.Org/docs/trunk/howto/htaccess.html).
| null | CC BY-SA 2.5 | null | 2008-08-29T01:33:07.403 | 2008-08-29T01:33:07.403 | null | null | 2,988 | null |
33,757 | 2 | null | 33,746 | 152 | null | I use this rule of thumb:
1. An Attribute is something that is self-contained, i.e., a color, an ID, a name.
2. An Element is something that does or could have attributes of its own or contain other elements.
So yours is close. I would have done something like:
: Updated the original example based on feedback bel... | null | CC BY-SA 3.0 | null | 2008-08-29T01:28:13.203 | 2011-08-29T13:14:48.447 | 2011-08-29T13:14:48.447 | 161,336 | null | null |
33,773 | 2 | null | 33,761 | 9 | null | You can use SqlCommandBuilder.DeriveParameters() (see [SqlCommandBuilder.DeriveParameters - Get Parameter Information for a Stored Procedure - ADO.NET Tutorials](https://web.archive.org/web/20110304121600/http://www.davidhayden.com/blog/dave/archive/2006/11/01/SqlCommandBuilderDeriveParameters.aspx)) or there's [this w... | null | CC BY-SA 3.0 | null | 2008-08-29T01:36:27.520 | 2014-02-21T16:25:14.020 | 2014-02-21T16:25:14.020 | 114,664 | 1,786 | null |
33,776 | 2 | null | 33,761 | 2 | null | You can use the SqlCommandBuilder object, and call the DeriveParameters method.
Basically you need to pass it a command, that is setup to call your stored proc, and it will hit the DB to discover the parameters, and create the appropriate parameters in the Parameters property of the SqlCommand
You're all too fast!!
| null | CC BY-SA 2.5 | null | 2008-08-29T01:37:49.797 | 2008-08-29T01:37:49.797 | null | null | 489 | null |
33,775 | 2 | null | 33,727 | 3 | null | [.Net Memory Profiler](http://memprofiler.com/) is exactly what you need. It's not free but there's a trial version. Actually I used the trial to find leaks on our last project. One notable feature is:
> Easily identify memory leaks by
collecting and comparing snapshots of
.NET memory
I think this is what your lo... | null | CC BY-SA 2.5 | null | 2008-08-29T01:37:05.943 | 2008-08-29T01:37:05.943 | null | null | 718 | null |
33,779 | 1 | null | null | 3 | 2,947 | Does anyone know of a powershell cmdlet out there for automating task scheduler in XP/2003? If you've ever tried to work w/ schtasks you know it's pretty painful.
| Windows 2003 Scheduled Task Cmdlet (v 1.0) | CC BY-SA 2.5 | null | 2008-08-29T01:40:17.903 | 2010-03-06T04:56:48.503 | 2010-03-06T04:56:48.503 | 164,901 | 1,635 | [
"powershell",
"scheduled-tasks"
] |
33,782 | 2 | null | 33,778 | -4 | null | I'm not sure. You could always create a new file and copy the latest revision into that, wiping out prior revision history.
| null | CC BY-SA 2.5 | null | 2008-08-29T01:42:33.403 | 2008-08-29T01:42:33.403 | null | null | 61 | null |
33,783 | 2 | null | 33,778 | 1 | null | Maybe you should change your production password to avoid the svn problem altogether.
| null | CC BY-SA 2.5 | null | 2008-08-29T01:42:43.077 | 2008-08-29T01:42:43.077 | null | null | 2,754 | null |
33,784 | 2 | null | 33,778 | 11 | null | [link to subversion FAQ entry on this](http://subversion.apache.org/faq.html#removal)
| null | CC BY-SA 3.0 | null | 2008-08-29T01:42:55.120 | 2011-05-11T11:08:19.993 | 2011-05-11T11:08:19.993 | 183,172 | 2,147 | null |
33,778 | 1 | 33,784 | null | 9 | 10,660 | One of my co-workers checked in a some files in SVN and one of the files has a password in it. The password has been removed from the file and a new version checked in but the password is obviously still in the repository if we look at the revision history and go to that revision. (We're using TortoiseSVN as the client... | How do I delete 1 file from a revision in SVN? | CC BY-SA 2.5 | 0 | 2008-08-29T01:40:00.897 | 2012-08-14T13:56:31.400 | null | null | 1,463 | [
"svn"
] |
33,781 | 2 | null | 33,761 | 17 | null | You want the [SqlCommandBuilder.DeriveParameters(SqlCommand)](http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommandbuilder.deriveparameters.aspx) method. Note that it requires an additional round trip to the database, so it is a somewhat significant performance hit. You should consider caching the re... | null | CC BY-SA 2.5 | null | 2008-08-29T01:42:28.473 | 2008-08-29T01:42:28.473 | null | null | 2,199 | null |
33,746 | 1 | 33,757 | null | 268 | 80,002 | At work we are being asked to create XML files to pass data to another offline application that will then create a second XML file to pass back in order to update some of our data. During the process we have been discussing with the team of the other application about the structure of the XML file.
The sample I came ... | XML attribute vs XML element | CC BY-SA 3.0 | 0 | 2008-08-29T01:15:52.220 | 2023-02-20T00:43:52.710 | 2018-02-14T17:07:09.490 | 4,355,141 | 3,340 | [
"xml",
"xsd"
] |
33,786 | 2 | null | 33,778 | 7 | null | It isn't pretty: [How do I completely remove a file from the repository's history?](http://subversion.tigris.org/faq.html#removal)
| null | CC BY-SA 3.0 | null | 2008-08-29T01:43:38.300 | 2012-08-14T13:56:31.400 | 2012-08-14T13:56:31.400 | 648,658 | 3,142 | null |
33,777 | 2 | null | 32,144 | 2 | null | OK, now I think I understand. I was thinking "client" as in database client application, not the Novell client.
I don't think you'll need the Novell client on the Windows machine, for a couple of reasons:
1. If the client is trying to connect over TCP/IP, it doesn't matter whether or not the Windows machine has the... | null | CC BY-SA 2.5 | null | 2008-08-29T01:39:08.467 | 2008-08-29T01:39:08.467 | null | null | 1,821 | null |
33,790 | 1 | 33,791 | null | 4 | 2,618 | I am currently using the following command to upload my site content:
```
scp -r web/* user@site.com:site.com/
```
This works great except that the .htaccess file is not sent. Presumably, this is because it's hidden.
I have tried adding a second line to send the file explicitely:
```
scp -r web/.htaccess user@site... | How can I use `scp` to deploy a website's `.htaccess` file? | CC BY-SA 2.5 | null | 2008-08-29T01:44:54.427 | 2016-08-07T16:41:44.077 | 2016-08-07T16:41:44.077 | 4,433,386 | 338 | [
".htaccess",
"deployment",
"scp",
"shared-hosting"
] |
33,791 | 2 | null | 33,790 | 9 | null | Just combine the two commands:
```
scp -r web/* web/.htaccess user@site.com:site.com/
```
If you want 0 entries of your password you can set up [public key authentication](http://sial.org/howto/openssh/publickey-auth/) for ssh/scp.
| null | CC BY-SA 2.5 | null | 2008-08-29T01:47:21.317 | 2008-08-29T01:55:22.593 | 2008-08-29T01:55:22.593 | 3,002 | 3,002 | null |
33,797 | 2 | null | 33,559 | 0 | null | There are [DNRtv](http://www.dnrtv.com)s on PowerShell and PowerGUI. There are also [.NET Rocks!](http://www.dotnetrocks.com) episodes about these tools.
| null | CC BY-SA 3.0 | null | 2008-08-29T01:51:55.253 | 2014-11-10T22:25:54.923 | 2014-11-10T22:25:54.923 | 63,550 | 100 | null |
33,799 | 2 | null | 33,449 | 3 | null | In earlier versions of Sql, you could use either an extended stored proc or xp_cmdshell to shell out and call a webservice.
Not that either of these sound like a decent architecture - but sometimes you have to do crazy stuff.
| null | CC BY-SA 3.0 | null | 2008-08-29T01:53:55.157 | 2018-04-06T21:40:54.627 | 2018-04-06T21:40:54.627 | null | 2,199 | null |
33,772 | 2 | null | 33,761 | 2 | null | ```
SqlCommandBuilder.DeriveParameters(command)
```
This statement does what I need it to.
Here is a full code sample for the way I solved this problem.
```
Public Sub GetLogEntriesForApplication(ByVal settings As FilterSettings,
Optional ByVal RowGovernor As Integer = -1)
Dim com... | null | CC BY-SA 2.5 | null | 2008-08-29T01:36:01.390 | 2010-12-19T00:39:38.957 | 2010-12-19T00:39:38.957 | 121,363 | 2,049 | null |
33,789 | 2 | null | 33,720 | 34 | null | Xcode uses template files for file and project templates and does variable expansion in both at creation time.
Xcode 3.0 templates can be found in [Dev Installation]/Library/Xcode/, likely /Developer/Library/Xcode. If you want to modify these templates or add your own, use the following directories to save your new/mo... | null | CC BY-SA 3.0 | null | 2008-08-29T01:44:41.807 | 2011-10-30T22:04:33.873 | 2011-10-30T22:04:33.873 | 345,188 | 2,140 | null |
33,795 | 2 | null | 33,469 | 27 | null | Dirty tracking is the normal way to handle this, I think. Something like:
```
class MyObject {
public string SomeValue {
get { return _someValue; }
set {
if (value != SomeValue) {
IsDirty = true;
_someValue = value;
}
}
public bool IsDirty {
get;
private s... | null | CC BY-SA 2.5 | null | 2008-08-29T01:51:02.760 | 2008-08-29T01:51:02.760 | null | null | 2,199 | null |
33,805 | 2 | null | 33,779 | 1 | null | You don't need PowerShell to automate the Task Scheduler, you can use the SCHTASKS command in XP.
According to [Wikipedia](http://en.wikipedia.org/wiki/Task_Scheduler), the Task Scheduler 2.0 (Vista and Server 2008) is accesible via COM.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:00:58.647 | 2008-08-29T02:00:58.647 | null | null | 394 | null |
33,801 | 2 | null | 24,542 | 12 | null | I think
```
a != b
```
is what you want
| null | CC BY-SA 2.5 | null | 2008-08-29T01:56:49.203 | 2008-08-29T01:56:49.203 | null | null | 3,343 | null |
33,806 | 2 | null | 33,779 | 0 | null | Not "native" PowerShell, but if you're running powershell.exe as an administrator then you should have access to the "at" command, which you can use to schedule tasks.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:01:15.467 | 2008-08-29T02:01:15.467 | null | null | 615 | null |
33,798 | 2 | null | 32,640 | 19 | null | Here's a snippet from Jason's link. Its the same as Phil's method but uses rhino.
```
// create a fake web context
var mockHttpContext = MockRepository.GenerateMock<HttpContextBase>();
var mockRequest = MockRepository.GenerateMock<HttpRequestBase>();
mockHttpContext.Stub(x => x.Request).Return(mockRequest);
// tel... | null | CC BY-SA 2.5 | null | 2008-08-29T01:53:09.167 | 2008-08-29T01:53:09.167 | null | null | 1,946 | null |
33,810 | 2 | null | 4,689 | 0 | null | I'm a happy user of [ProFont](http://www.tobias-jung.de/seekingprofont/) originally available on the Mac, now available for everyone.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:03:07.690 | 2008-08-29T02:03:07.690 | null | null | 2,219 | null |
33,804 | 2 | null | 33,790 | 4 | null | Some background info: the `*` wildcard does not match so-called "dot-files" (i.e. files whose name begins with a dot).
Some shells allow you to set an option, so that it match dot-files, however, doing that is asking for a lot of pain: now `*` will also match `.` (the current directory) and `..` (the parent directory... | null | CC BY-SA 2.5 | null | 2008-08-29T02:00:22.410 | 2008-08-29T02:00:22.410 | null | null | 2,988 | null |
33,813 | 1 | 36,316 | null | 21 | 7,299 | I noticed that many people here use [TextMate](http://macromates.com/) for coding on OS X. I've recently started using it, and although I like its minimalistic interface, it makes it harder to stumble upon cool features if you don't know what you're looking for.
So, what feature have you found most helpful for coding ... | What are some useful TextMate features? | CC BY-SA 2.5 | 0 | 2008-08-29T02:03:34.070 | 2011-02-22T13:29:30.193 | 2011-02-22T13:29:30.193 | 213,269 | 3,002 | [
"python",
"macos",
"text-editor",
"textmate"
] |
33,803 | 2 | null | 33,790 | 3 | null | A word of caution - don't attempt to match dotted files (like `.htaccess`) with `.*` - this inconveniently also matches `..`, and would result in copying all the files on the path to the root directory. I did this once (with `rm`, no less!) and I had to rebuild the server because I'd messed with `/var`.
@jwmittag:
I ... | null | CC BY-SA 3.0 | null | 2008-08-29T01:58:20.747 | 2016-07-13T09:58:03.197 | 2016-07-13T09:58:03.197 | 5,520,058 | 658 | null |
33,808 | 2 | null | 33,778 | 0 | null | That seemed to work. So what I did was:
1. Copy the file to another folder.
2. Do a TortoiseSVN delete from the current folder followed by a commit.
3. Copy the file back in to the folder.
4. Add the file using TortoiseSVN and commit again.
I can't seem to find any revision history now - however, it could just be ... | null | CC BY-SA 2.5 | null | 2008-08-29T02:02:51.513 | 2008-08-29T02:02:51.513 | null | null | 1,463 | null |
33,815 | 2 | null | 33,745 | 9 | null | The tutorial [WordPress, bbPress & MediaWiki](https://bbpress.org/forums/topic/mediawiki-bbpress-and-wordpress-integration/) should get you on the right track to integrating MediaWiki into your WordPress install. It's certainly going to be a easier than hacking WordPress to have wiki features, especially with the sort... | null | CC BY-SA 3.0 | null | 2008-08-29T02:05:23.613 | 2017-05-08T01:56:36.247 | 2017-05-08T01:56:36.247 | 3,795,219 | 1,902,010 | null |
33,814 | 1 | 34,614 | null | 3 | 1,876 | I'm writing a PHP script that involves scraping web pages. Currently, the script analyzes the page line by line, but it breaks if there is a tag that spans multiple lines, like
```
<img src="example.jpg"
alt="example">
```
If worse comes to worst, I could possibly preprocess the page by removing all line breaks, th... | How to determine if an html tag splits across multiple lines | CC BY-SA 4.0 | 0 | 2008-08-29T02:03:39.017 | 2019-01-18T11:10:50.120 | 2019-01-18T11:10:50.120 | 567,854 | 1,569 | [
"php",
"html",
"scripting"
] |
33,819 | 2 | null | 33,813 | 3 | null | The ease of snippet creation.
It's trivial to create new snippets that can accomplish a lot using replacements, tabbing order, and regex substitutions. Quickly assigning these to the tab key for specific languages makes me more productive. And makes me worry about code bloat. :-)
| null | CC BY-SA 2.5 | null | 2008-08-29T02:06:35.420 | 2008-08-29T02:06:35.420 | null | null | 338 | null |
33,821 | 2 | null | 33,813 | 1 | null | It's nice and lightweight and has all of the macros built-in for Ruby and let's you run Ruby code, or any other code for that matter just with a keystroke.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:08:13.093 | 2008-08-29T02:08:13.093 | null | null | 2,305 | null |
33,818 | 2 | null | 9,591 | 5 | null | [MCTS Self-Paced Training Kit - Microsoft .NET 3.5 Windows Presentation Foundation (70-502)](https://rads.stackoverflow.com/amzn/click/com/0735625662)
I personally find that I become much more motivated to read and learn about a topic if the learning process culminates with a Microsoft Certification. If you're anythi... | null | CC BY-SA 2.5 | null | 2008-08-29T02:06:23.410 | 2008-08-29T02:06:23.410 | null | null | 1,300 | null |
33,817 | 2 | null | 33,779 | 3 | null | Ok, Pablo has sparked my interest in saying that the scheduler is accessible via COM.
In PowerShell you can do this:
```
$svc = new-object -com Schedule.Service
```
... and that gives you a handle to the task scheduler. You can see what members it has using:
```
$svc | get-member
```
One of its methods is NewTas... | null | CC BY-SA 2.5 | null | 2008-08-29T02:06:22.770 | 2008-08-29T02:06:22.770 | null | null | 615 | null |
33,809 | 2 | null | 33,761 | 6 | null | Although its not exactly what you want, here's some sample code that uses the SqlConnection.GetSchema() method to return all the stored procedures associated with a database, and then subsequently all the parameter names and types for each stored procedure. The example below just loads this into variables. Note that ... | null | CC BY-SA 2.5 | null | 2008-08-29T02:02:58.003 | 2008-08-29T02:02:58.003 | null | null | 3,429 | null |
33,824 | 2 | null | 33,594 | 0 | null | Why don't you just do CreateProcessAsUser specifying the process you want to run?
You may also be able to use SHCreateProcessAsUserW.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:10:42.587 | 2008-08-29T02:10:42.587 | null | null | 3,146 | null |
33,830 | 2 | null | 33,778 | 4 | null | > I can't seem to find any revision history now - however, it could just be that I'm not looking in the right place.
You can see it by looking at the folder history, which will give you the revision where the file was still there, and thus you'll be able to recover the confidential file. So it's a bad solution.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:13:47.463 | 2008-08-29T02:13:47.463 | null | null | 3,069 | null |
33,820 | 2 | null | 24,542 | 0 | null | IIRC, many C++ compilers will warn when attempting to cast the result of a bitwise operation as a bool. You would have to use a type cast to make the compiler happy.
Using a bitwise operation in an if expression would serve the same criticism, though perhaps not by the compiler. Any non-zero value is considered true... | null | CC BY-SA 2.5 | null | 2008-08-29T02:08:12.937 | 2008-08-29T02:08:12.937 | null | null | 3,347 | null |
33,826 | 2 | null | 33,822 | 4 | null | Download [PSKill](http://technet.microsoft.com/en-us/sysinternals/bb896683.aspx). Write a batch file that calls it for each process you want dead, passing in the name of the process for each.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:12:01.227 | 2008-08-29T02:12:01.227 | null | null | 811 | null |
33,828 | 2 | null | 33,822 | 110 | null | ```
taskkill /f /im "devenv.exe"
```
this will forcibly kill the pid with the exe name "devenv.exe"
equivalent to -9 on the nix'y kill command
| null | CC BY-SA 2.5 | null | 2008-08-29T02:13:12.503 | 2008-08-29T02:13:12.503 | null | null | 1,220 | null |
33,822 | 1 | 33,831 | null | 141 | 401,864 | Every time I turn on my company-owned development machine, I have to kill 10+ processes using the Task Manager or any other process management app just to get decent performance out of my IDE. Yes, these are processes from programs that my company installs on my machine for security and compliance. What I'd like to do... | Any way to write a Windows .bat file to kill processes? | CC BY-SA 4.0 | 0 | 2008-08-29T02:09:55.960 | 2020-05-30T01:28:27.360 | 2019-07-10T16:55:31.280 | 3,241,128 | 3,030 | [
"performance",
"batch-file",
"process"
] |
33,829 | 1 | 33,838 | null | 0 | 268 | I have an application which should be installed, but does work fine when deployed using JNLP.
However, it would seem that some Java functions such as `Runtime.exec` don't work using the default security options.
I would like to therefore [disable](http://www.joelonsoftware.com/items/2008/07/01.html) UI functionality... | How do I detect if a function is available during JNLP execution? | CC BY-SA 3.0 | null | 2008-08-29T02:13:17.933 | 2015-09-09T09:43:27.710 | 2015-09-09T09:43:27.710 | 1,537,726 | 338 | [
"java",
"security",
"deployment",
"permissions",
"jnlp"
] |
33,780 | 2 | null | 33,703 | 38 | null | I was actually just sprucing up a dialog today. A lot of it depends on what kind of application you have, and what OS it is running on. A couple of these tips will certainly go a long way to jazzing things up.
1. Ensure adequate spacing between controls — don't cram them all together. Space is appealing. You might a... | null | CC BY-SA 3.0 | null | 2008-08-29T01:42:16.337 | 2013-11-27T10:25:33.347 | 2013-11-27T10:25:33.347 | 107,625 | 255 | null |
33,825 | 2 | null | 33,513 | 0 | null | I host most of my non-code backups on [Amazon's S3 service](http://www.amazon.com/gp/browse.html?node=16427261).
Code goes on a [Slicehost virtual server](http://slicehost.com/) that has automated snapshot backups (daily as well as weekly) and runs Subversion and the Trac web interface to it.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:11:48.873 | 2008-08-29T02:11:48.873 | null | null | 1,902,010 | null |
33,838 | 2 | null | 33,829 | 1 | null | You want to ask to the [SecurityManager](http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SecurityManager.html) if you have Exec right with the checkExec method.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:18:20.883 | 2008-08-29T02:18:20.883 | null | null | 3,069 | null |
33,839 | 2 | null | 33,814 | 7 | null | This is one of my pet peeves: parse HTML by hand. parse HTML with regexps. parse HTML with string comparisons. use an HTML parser to parse HTML – that's what they're there for.
It's been a long time since I've done any PHP, but a quick search turned up [this PHP5 HTML parser](http://SimpleHTMLDom.SourceForge.Net/)... | null | CC BY-SA 2.5 | null | 2008-08-29T02:19:03.817 | 2008-08-29T02:19:03.817 | null | null | 2,988 | null |
33,841 | 2 | null | 33,814 | 2 | null | Don't write a parser, use someone else's: [DOMDocument::loadHTML](http://www.php.net/manual/en/domdocument.loadhtml.php) - that's just one, I think there are a lot of others.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:21:59.470 | 2008-08-29T02:21:59.470 | null | null | 257 | null |
33,836 | 1 | 33,862 | null | 1 | 393 | This is a follow on question to "[How do I delete 1 file from a revision in SVN?](https://stackoverflow.com/questions/33778/how-do-i-delete-1-file-from-a-revision-in-svn)" but because it probably has a very different answer and I believe that others would benefit from knowing the answer. (I don't know the answer yet.)
... | How can I find the revision history of the file that was deleted and then resubmitted to SVN? | CC BY-SA 3.0 | null | 2008-08-29T02:17:06.800 | 2015-09-09T09:42:25.767 | 2017-05-23T12:06:17.890 | -1 | 1,463 | [
"svn"
] |
33,846 | 2 | null | 33,836 | 1 | null | I would have said you can't - you have created a new file and thus revision tree in the eyes of SVN.
It may be possible to recover the old tree independently (not sure if you managed an actual delete or just SVN Delete) but there is no link between the old revision tree and the new one.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:24:32.913 | 2008-08-29T02:24:32.913 | null | null | 364 | null |
33,851 | 2 | null | 33,829 | 1 | null | I have also found that adding the following to the JNLP file:
```
<security>
<all-permissions/>
</security>
```
And signing the JAR file allows the app to run with all the permissions needed for `Runtime.exec`.
| null | CC BY-SA 2.5 | null | 2008-08-29T02:28:50.423 | 2008-08-29T02:28:50.423 | null | null | 338 | null |
33,835 | 2 | null | 33,814 | 1 | null | Well, this doesn't answer the question and is more of an opinion, but...
I think that the best scraping strategy (and consequently, to eliminate this problem) is not to analyze an HTML line by line, which is unnatural to HTML, but to analyze it by its natural delimiter: <> pairs.
There will be two types of course:
-... | null | CC BY-SA 2.5 | null | 2008-08-29T02:16:53.290 | 2008-08-29T02:16:53.290 | null | null | 372 | null |
33,843 | 1 | 33,847 | null | 4 | 795 | I'm planning on doing more coding from home but in order to do so, I need to be able to edit files on a Samba drive on our dev server. The problem I've run into with several editors is that the network latency causes the editor to lock up for long periods of time (Eclipse, TextMate). Some editors cope with this a lot b... | How to avoid pauses when editing code on a network drive? | CC BY-SA 2.5 | 0 | 2008-08-29T02:22:16.960 | 2017-08-15T16:10:05.983 | 2017-08-15T16:10:05.983 | 4,032,703 | 2,567 | [
"networking",
"text-editor",
"textmate",
"samba"
] |
33,831 | 2 | null | 33,822 | 215 | null | You can do this with ''.
With the /IM parameter, you can specify image names.
Example:
```
taskkill /im somecorporateprocess.exe
```
You can also do this to '' kill:
Example:
```
taskkill /f /im somecorporateprocess.exe
```
Just add one line per process you want to kill, save it as a .bat file, and add in your... | null | CC BY-SA 4.0 | null | 2008-08-29T02:14:00.100 | 2020-05-30T01:28:27.360 | 2020-05-30T01:28:27.360 | 9,811,685 | 1,569 | null |
33,837 | 1 | 33,854 | null | 2 | 1,422 | I have a page where there is a column and a content div, somewhat like this:
```
<div id="container">
<div id="content">blahblahblah</div>
<div id="column"> </div>
</div>
```
With some styling I have an image that is split between the column and the content but needs to maintain the same vertical positioning... | IE CSS Bug - How do I maintain a position:absolute when dynamic javascript content on the page changes | CC BY-SA 3.0 | 0 | 2008-08-29T02:17:57.843 | 2016-03-01T12:17:35.380 | 2016-03-01T12:17:35.380 | 4,334,348 | 364 | [
"css",
"internet-explorer-6",
"internet-explorer-7"
] |