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
20,416
2
null
20,386
2
null
Are you talking about unexpected memory usage or actual leaks? The two cases you listed aren't exactly leaks; they are cases where objects stick around longer than intended. In other words, they are references the person who calls them memory leaks didn't know or forgot about. Edit: Or they are actual bugs in the gar...
null
CC BY-SA 3.0
null
2008-08-21T16:18:12.397
2012-07-03T14:51:51.813
2012-07-03T14:51:51.813
142,162
1,799
null
20,417
2
null
20,392
2
null
If you have update stats and auto create stats on then it should works as before You can also run `sp_updatestats` or `UPDATE STATISTICS WITH FULLSCAN` after you make the changes
null
CC BY-SA 3.0
null
2008-08-21T16:18:20.197
2013-12-16T10:21:38.767
2013-12-16T10:21:38.767
437,246
740
null
20,421
2
null
6,594
1
null
OOP is one of the largest differences. It won't break as the PHP4 and PHP5 OOP styles are interchangeable but I'd reccommend taking advantage of PHP5's new OOP styles. It's not a huge amount of work to convert your existing classes to PHP5 and it does give you some extra magical methods that may help solve some existin...
null
CC BY-SA 2.5
null
2008-08-21T16:18:59.930
2008-08-21T16:18:59.930
null
null
2,025
null
20,420
1
21,106
null
40
12,623
I'm a complete Xcode/Objective-C/Cocoa newbie but I'm learning fast and really starting to enjoy getting to grips with a new language, platform and paradigm. One thing is though, having been using Visual Studio with R# for so long I've kind of been spoiled with the coding tools such as refactorings and completion etc ...
Any ReSharper equivalent for Xcode?
CC BY-SA 2.5
0
2008-08-21T16:18:41.460
2012-01-25T20:44:20.247
2011-02-22T13:30:08.260
213,269
1,120
[ "objective-c", "xcode", "macos", "refactoring" ]
20,423
2
null
20,386
2
null
Calling IDisposable every time is the easiest place to start, and definitely an effective way to grab all the low-hanging memory leak fruit in the codebase. However, it is not always enough. For example, it's also important to understand how and when managed code is generated at runtime, and that once assemblies are lo...
null
CC BY-SA 2.5
null
2008-08-21T16:19:17.450
2008-08-21T16:19:17.450
null
null
67
null
20,349
2
null
20,321
0
null
If the client would ever need to restore only a single entity from a backup and leave the others in their current state, then the maintenance will be much easier if each entity is in a separate database. if they can be backed up and restored together, then it may be easier to maintain the entities as a single database...
null
CC BY-SA 2.5
null
2008-08-21T16:00:26.450
2008-08-21T16:00:26.450
null
null
206
null
20,411
2
null
19,970
1
null
Stack/queue in JS is a simple array, which can be manipulated with `.push(val)`, `.pop()`, `.shift(val)` and `.unshift()`.
null
CC BY-SA 2.5
null
2008-08-21T16:16:07.893
2008-08-21T16:16:07.893
null
null
1,026
null
20,419
2
null
20,386
0
null
A lot of the things that can cause memory leaks in unmanaged languages can still cause memory leaks in managed languages. For example, [bad caching policies](http://blogs.msdn.com/oldnewthing/archive/2006/05/02/588350.aspx) can result in memory leaks. But as Greg and Danny have said, there is no comprehensive list. ...
null
CC BY-SA 2.5
null
2008-08-21T16:18:28.387
2008-08-21T16:18:28.387
null
null
872
null
20,418
2
null
20,346
147
null
Metadata. Data about your objects/methods/properties. For example I might declare an Attribute called: DisplayOrder so I can easily control in what order properties should appear in the UI. I could then append it to a class and write some GUI components that extract the attributes and order the UI elements appropriat...
null
CC BY-SA 4.0
null
2008-08-21T16:18:26.767
2019-02-05T19:28:56.170
2019-02-05T19:28:56.170
1,143
1,143
null
20,427
2
null
19,837
5
null
You have two options: 1) : If you'd like something that has the same API mysql and mysqli has, then use the php_mssql extension. But there is a catch, the bundled ntwdblib.dll file with PHP is not working. You have to find this file from a SQL Server 2000 installation or you can find it on the Internet. This API is s...
null
CC BY-SA 2.5
null
2008-08-21T16:20:25.700
2008-08-21T16:53:58.163
2008-08-21T16:53:58.163
1,508
1,508
null
20,438
2
null
20,263
38
null
Something cool that is in version 5.0.37 of the community server is [MySQL's new profiler](http://web.archive.org/web/20110609054749/http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html). This may give you what info you are looking for.
null
CC BY-SA 3.0
null
2008-08-21T16:24:12.587
2013-09-14T01:16:24.863
2013-09-14T01:16:24.863
104,223
2,106
null
20,453
2
null
20,391
3
null
I wrote a batch file to do this for a bunch of repos, you could just hook that batch file up to windows scheduler and run it on a schedule. ``` svnadmin hotcopy m:\Source\Q4Press\Repo m:\SvnOut\Q4Press ``` I use the hotcopy but the svn dump would work just as well.
null
CC BY-SA 2.5
null
2008-08-21T16:32:44.063
2008-08-21T16:32:44.063
null
null
2,272
null
20,444
2
null
20,391
4
null
> svnadmin dump C:\SVNRepositorio\Repositorio > \Backups\BkTmpSubversion\subversiontemp.dump ditto Spooky's reply ^^ On linux you might try adding "| gzip" in the middle also take a look at the --incremental & --deltas flags --- sparkes: For some values of "My machine" that won't be local. Also If you are usin...
null
CC BY-SA 2.5
null
2008-08-21T16:28:25.620
2008-08-21T16:28:25.620
null
null
1,343
null
20,431
2
null
20,386
21
null
That doesn't really cause leaks, it just makes more work for the GC: ``` // slows GC Label label = new Label(); this.Controls.Add(label); this.Controls.Remove(label); // better Label label = new Label(); this.Controls.Add(label); this.Controls.Remove(label); label.Dispose(); // best using( Label label ...
null
CC BY-SA 2.5
null
2008-08-21T16:21:22.623
2010-07-28T13:10:38.827
2010-07-28T13:10:38.827
905
905
null
20,463
1
20,485
null
244
101,058
[Interfaces](http://php.net/Interfaces) allow you to create code which defines the methods of classes that implement it. You cannot however add any code to those methods. [Abstract classes](http://php.net/Abstract) allow you to do the same thing, along with adding code to the method. Now if you can achieve the same...
What is the point of interfaces in PHP?
CC BY-SA 3.0
0
2008-08-21T16:35:20.657
2019-06-08T05:12:34.383
2011-11-13T14:12:31.460
367,456
1,797
[ "php", "oop", "interface", "theory" ]
20,465
1
26,691
null
7
3,261
I'm developing an Excel 2007 add-in using Visual Studio Tools for Office (2008). I have one sheet with several ListObjects on it, which are being bound to datatables on startup. When they are bound, they autosize correctly. The problem comes when they are re-bound. I have a custom button on the ribbon bar which goe...
.NET - Excel ListObject autosizing on databind
CC BY-SA 2.5
0
2008-08-21T16:36:12.027
2009-03-18T16:33:36.650
null
null
940
[ "c#", ".net", "excel", "data-binding", "vsto" ]
20,467
1
20,495
null
6
3,398
Are there any automatic methods for trimming a path string in .NET? For example: ``` C:\Documents and Settings\nick\My Documents\Tests\demo data\demo data.emx ``` becomes ``` C:\Documents...\demo data.emx ``` It would be particularly cool if this were built into the Label class, and I seem to recall it is--can't...
Path Display in Label
CC BY-SA 2.5
0
2008-08-21T16:38:29.807
2023-02-01T00:52:17.147
2008-09-10T18:13:54.060
-1
1,490
[ "c#", ".net", "winforms", "path" ]
20,450
1
20,628
null
10
18,894
I'd like to take some RTF input and clean it to remove all RTF formatting except \ul \b \i to paste it into Word with minor format information. The command used to paste into Word will be something like: oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0) (with some RTF text already in the Clipboard) ``` {\...
Cleaning up RTF text
CC BY-SA 2.5
0
2008-08-21T16:30:49.980
2012-06-08T01:22:14.177
2008-09-15T10:54:07.413
1,242
1,508
[ ".net", "vb.net", "ms-word", "rtf" ]
20,468
2
null
19,014
13
null
No one gave a satisfactory answer, so we started poking around Lucene documentation and discovered we can accomplish this using custom Analyzers and Tokenizers. The answer is this: create a WhitespaceAndAtSymbolTokenizer and a WhitespaceAndAtSymbolAnalyzer, then recreate your index using this analyzer. Once you do thi...
null
CC BY-SA 2.5
null
2008-08-21T16:38:40.307
2008-08-21T21:52:02.440
2008-08-21T21:52:02.440
536
536
null
20,426
1
21,636
null
2
1,197
I have a tree encoded in a MySQL database as edges: ``` CREATE TABLE items ( num INT, tot INT, PRIMARY KEY (num) ); CREATE TABLE tree ( orig INT, term INT FOREIGN KEY (orig,term) REFERENCES items (num,num) ) ``` For each leaf in the tree, `items.tot` is set by someone. For interior no...
How to maintain a recursive invariant in a MySQL database?
CC BY-SA 2.5
null
2008-08-21T16:20:12.563
2011-03-29T03:28:02.353
2011-03-29T00:56:48.107
1,343
1,343
[ "mysql", "algorithm", "data-structures", "invariants" ]
20,379
2
null
20,336
1
null
You can always initialize them yourself to start with a known state.
null
CC BY-SA 3.0
null
2008-08-21T16:09:18.037
2012-07-03T14:46:05.730
2012-07-03T14:46:05.730
142,162
1,799
null
20,470
2
null
20,463
129
null
The concept is useful all around in object oriented programming. To me I think of an interface as a contract. So long my class and your class agree on this method signature contract we can "interface". As for abstract classes those I see as more of base classes that stub out some methods and I need to fill in the detai...
null
CC BY-SA 2.5
null
2008-08-21T16:39:23.143
2008-08-21T16:39:23.143
null
null
200
null
20,455
2
null
20,346
14
null
Attributes are a kind of meta data for tagging classes. This is often used in WinForms for example to hide controls from the toolbar, but can be implemented in your own application to enable instances of different classes to behave in specific ways. Start by creating an attribute: ``` [AttributeUsage(AttributeTarget...
null
CC BY-SA 3.0
null
2008-08-21T16:33:08.587
2018-03-05T09:25:02.633
2018-03-05T09:25:02.633
6,357,360
936
null
20,472
2
null
20,321
0
null
I think you have to go with the most realistic scenario and not necessarily what a customer "may" want to do in the future. If you are going to market that feature (i.e. seeing all your entities in one dashboard), then you have to either find a solution (maybe have the dashboard pull from multiple databases) or use a s...
null
CC BY-SA 2.5
null
2008-08-21T16:40:13.483
2008-08-21T16:40:13.483
null
null
1,453
null
20,469
2
null
20,386
4
null
Exceptions in Finalise (or Dispose calls from a Finaliser) methods that prevent unmanaged resources from being correctly disposed. A common one is due to the programmer what order objects will be disposed and trying to release peer objects that have already been disposed resulting in an exception and the rest of the F...
null
CC BY-SA 2.5
null
2008-08-21T16:38:56.030
2008-08-21T16:38:56.030
null
null
1,143
null
20,482
2
null
20,346
4
null
As said, Attributes are relatively easy to create. The other part of the work is creating code that uses it. In most cases you will use reflection at runtime to alter behavior based on the presence of an attribute or its properties. There are also scenarios where you will inspect attributes on compiled code to do some ...
null
CC BY-SA 2.5
null
2008-08-21T16:43:42.930
2008-08-21T16:43:42.930
null
null
748
null
20,473
2
null
20,047
1
null
Now that I see Jeremy's answer, I think I remember hearing that the best practice is to use a new DataContext for each data operation. Rob Conery's written several posts about DataContext, and he always news them up rather than using a singleton. - [http://blog.wekeroad.com/2007/08/17/linqtosql-ranch-dressing-for-your...
null
CC BY-SA 3.0
null
2008-08-21T16:40:18.523
2014-08-27T11:20:17.493
2014-08-27T11:20:17.493
2,357,766
5
null
20,480
2
null
15,266
1
null
Can you create a self signed certificate and add your custom certificate authority to the trusted CAs? I'm not quite sure how this would work on the iPhone, but I'd assume on Mac OS X you would add these to the Keychain. You may also be interested in this post [Re: How to handle bad certificate error in NSURLDownload]...
null
CC BY-SA 2.5
null
2008-08-21T16:42:46.350
2008-08-21T16:42:46.350
null
null
1,750
null
20,483
2
null
20,463
24
null
Interfaces are essentially a blueprint for what you can create. They define what methods a class , but you can create extra methods outside of those limitations. I'm not sure what you mean by not being able to add code to methods - because you can. Are you applying the interface to an abstract class or the class that ...
null
CC BY-SA 2.5
null
2008-08-21T16:44:38.467
2008-08-21T16:44:38.467
null
null
2,025
null
20,476
2
null
20,267
2
null
Regular expressions would be the quickest solution to code up but if you have many different tokens then it will get slower. If performance is not an issue then use this option. A better approach would be to define token, like your "##" that you can scan for in the text. Then select what to replace from a hash table w...
null
CC BY-SA 2.5
null
2008-08-21T16:41:03.623
2008-08-21T16:41:03.623
null
null
2,021
null
20,479
2
null
20,326
0
null
Do you have any code you could share? Double post backs plagued me so much in classic ASP back in the day that it was what finally prompted me to switch to .NET once and for all. Whenever I have problems like these for .NET, I go to every CONTROL and every PAGE element like load, init, prerender, click, SelectedIndexCh...
null
CC BY-SA 2.5
null
2008-08-21T16:42:38.253
2008-08-21T16:42:38.253
null
null
1,953
null
20,486
2
null
20,392
2
null
It is considered best practice to auto create and auto update statistics. Sql Server will create them if it needs them. You will often see the tuning wizard generate lots of these, and you will also see people advise that you update statistics as a part of your maintenance plan, but this is not necessary and might ac...
null
CC BY-SA 2.5
null
2008-08-21T16:46:25.513
2008-08-21T16:46:25.513
null
null
1,219
null
20,341
2
null
20,267
7
null
The only situation in which I've had to do this is sending a templated e-mail. In .NET this is provided out of the box by the [MailDefinition class](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.maildefinition.aspx). So this is how you create a templated message: ``` MailDefinition md = new MailDef...
null
CC BY-SA 2.5
null
2008-08-21T15:58:46.687
2008-08-21T15:58:46.687
null
null
1,801
null
20,492
2
null
20,467
0
null
What you are thinking on the label is that it will put ... if it is longer than the width (not set to auto size), but that would be ``` c:\Documents and Settings\nick\My Doc... ``` If there is support, it would probably be on the Path class in System.IO
null
CC BY-SA 2.5
null
2008-08-21T16:48:58.003
2008-08-21T16:48:58.003
null
null
77
null
20,487
2
null
3,654
3
null
There are some [compelling](http://friendlybit.com/html/why-xhtml-is-a-bad-idea/) [warnings](http://www.autisticcuckoo.net/archive.php?id=2005/03/14/xhtml-is-dead) about the usage of XHTML, primarily centering around the fact that the mime-type for such a document should be sent as: `Content-type: application/xhtml+xm...
null
CC BY-SA 2.5
null
2008-08-21T16:46:27.167
2008-08-21T17:27:59.203
2008-08-21T17:27:59.203
2,134
2,134
null
20,485
2
null
20,463
148
null
The entire point of interfaces is to give you the flexibility to have your class be forced to implement multiple interfaces, but still not allow multiple inheritance. The issues with inheriting from multiple classes are many and varied and the [wikipedia](http://en.wikipedia.org/wiki/Multiple_inheritance) page on it s...
null
CC BY-SA 3.0
null
2008-08-21T16:45:54.390
2015-03-03T01:35:35.723
2015-03-03T01:35:35.723
1,619,294
2,328
null
20,498
2
null
20,450
2
null
You can strip out the tags with regular expressions. Just make sure that your expressions will not filter tags that were actually text. If the text had "\b" in the body of text, it would appear as \b in the RTF stream. In other words, you would match on "\b" but not "\b". You could probably take a short cut and fi...
null
CC BY-SA 2.5
null
2008-08-21T16:51:54.157
2008-08-21T16:51:54.157
null
null
206
null
20,499
2
null
12,516
1
null
I think the question is about how to write a parser, not the evaluator. Or rather, how to create the expression tree from a string. Case statements that return a base class don't exactly count. The basic structure of a "polymorphic" solution (which is another way of saying, I don't care what you build this with, I ju...
null
CC BY-SA 3.0
null
2008-08-21T16:52:15.093
2012-07-03T14:51:48.240
2012-07-03T14:51:48.240
142,162
1,799
null
20,494
2
null
20,467
3
null
Not hard to write yourself though: ``` public static string TrimPath(string path) { int someArbitaryNumber = 10; string directory = Path.GetDirectoryName(path); string fileName = Path.GetFileName(path); if (directory.Length > someArbitaryNumber) { return String.F...
null
CC BY-SA 2.5
null
2008-08-21T16:49:06.630
2008-08-21T16:49:06.630
null
null
1,143
null
20,504
2
null
19,035
2
null
> Do you mean that AMQ depends on the Prototype library? I can't see an import for that library in the code you've provided. Yes for ActiveMQ's javascript (amq.js) does depend on Prototype. In the amq.js it loads 3 scripts, _amq.js, behaviour.js and prototype.js. Thanks you for your help on the JavaScript load ...
null
CC BY-SA 2.5
null
2008-08-21T16:54:08.880
2008-08-21T16:54:08.880
null
null
1,992
null
20,495
2
null
20,467
9
null
Use with flag ``` void label_Paint(object sender, PaintEventArgs e) { Label label = (Label)sender; TextRenderer.DrawText(e.Graphics, label.Text, label.Font, label.ClientRectangle, label.ForeColor, TextFormatFlags.PathEllipsis); } ``` > Your code is 95% there. The only problem is that the trimmed text is dr...
null
CC BY-SA 3.0
null
2008-08-21T16:49:29.640
2012-08-11T15:57:48.660
2012-08-11T15:57:48.660
1,477,076
275
null
20,493
2
null
20,467
0
null
You could use the System.IO.Path.GetFileName method and append that string to a shortened System.IO.Path.GetDirectoryName string.
null
CC BY-SA 2.5
null
2008-08-21T16:49:01.310
2008-08-21T16:49:01.310
null
null
748
null
20,489
2
null
20,463
7
null
In my opinion, interfaces should be preferred over non-functional abstract classes. I wouldn't be surprised if there would be even a performance hit there, as there is only one object instantiated, instead of parsing two, combining them (although, I can't be sure, I'm not familiar with the inner workings of OOP PHP). ...
null
CC BY-SA 2.5
null
2008-08-21T16:47:11.253
2008-08-21T16:47:11.253
null
null
2,238
null
20,503
2
null
20,463
6
null
> I can't remember if PHP is different in this respect, but in Java, you can implement multiple Interfaces, but you can't inherit multiple abstract classes. I'd assume PHP works the same way. In PHP you can apply multiple interfaces by seperating them with a comma (I think, I don't find that a clean soloution). As f...
null
CC BY-SA 2.5
null
2008-08-21T16:53:24.810
2008-08-21T16:53:24.810
null
null
2,025
null
20,513
2
null
20,484
1
null
It seems like you are looking for full-text search. Because you want to query a set of keywords against the card description and find any hits? Correct?
null
CC BY-SA 2.5
null
2008-08-21T16:57:17.170
2008-08-21T16:57:17.170
null
null
17
null
20,508
2
null
20,346
5
null
In the project I'm currently working on, there is a set of UI objects of various flavours and an editor to assembly these objects to create pages for use in the main application, a bit like the form designer in DevStudio. These objects exist in their own assembly and each object is a class derived from `UserControl` an...
null
CC BY-SA 3.0
null
2008-08-21T16:54:56.210
2012-07-03T13:40:49.200
2012-07-03T13:40:49.200
142,162
1,898
null
20,511
1
null
null
3
438
I'm familiar with TDD and use it in both my workplace and my home-brewed web applications. However, every time I have used TDD in a web application, I have had the luxury of having full access to the web server. That means that I can update the server then run my unit tests directly from the server. My question is, ...
How do you unit test web apps hosted remotely?
CC BY-SA 3.0
null
2008-08-21T16:55:17.910
2012-09-20T11:06:34.517
2012-09-20T11:06:34.517
1,288
1,574
[ "unit-testing", "web-applications", "tdd" ]
20,510
1
20,645
null
6
3,142
I have a flex application that needs the ability to generate and execute JavaScript. When I say this, I mean I need to execute raw JavaScript that I create in my Flex application (not just an existing JavaScript method) I am currently doing this by exposing the following JavaScript method: ``` function doScript(js){ ...
Executing JavaScript from Flex: Is this javascript function dangerous?
CC BY-SA 2.5
null
2008-08-21T16:55:09.813
2016-11-11T17:31:19.713
null
null
1,638
[ "javascript", "apache-flex", "exploit" ]
20,526
2
null
20,511
0
null
I've written test tools for sites using python and httplib/urllib2 generally it would have been overkill but it was suitable in these cases. Not sure it's going to be of general use though.
null
CC BY-SA 2.5
null
2008-08-21T17:00:28.367
2008-08-21T17:00:28.367
null
null
269
null
20,522
1
29,786,760
null
2
727
Has anybody come across this problem during an application install? - I do have local Admin access and I have installed this application on other machines. Any help would be much appreciated, as Google isn't helping much
Error installing iKernel.exe
CC BY-SA 3.0
0
2008-08-21T16:59:15.217
2015-04-22T02:38:59.760
2015-04-18T16:59:27.730
1,238,764
1,769
[ "windows-server-2003" ]
20,517
2
null
20,511
1
null
You could write functional tests in something like [WATIR](http://wtr.rubyforge.org/), [WATIN](http://watin.sourceforge.net/) or [Selenium](http://selenium.openqa.org/) that test what is returned in the reponse page after posting certain form data or requesting specific URLs.
null
CC BY-SA 2.5
null
2008-08-21T16:58:25.670
2008-08-21T16:58:25.670
null
null
1,820
null
20,531
2
null
20,484
0
null
Performance will be depend on the actual server than you use, and on the schema of the data, and the amount of data. With current versions of MS SQL Server, that query should run just fine (MS SQL Server 7.0 had issues with that syntax, but [it was addressed in SP2](http://support.microsoft.com/kb/225093)). Have you ...
null
CC BY-SA 2.5
null
2008-08-21T17:01:59.920
2008-08-21T17:01:59.920
null
null
206
null
20,532
2
null
20,510
0
null
As far as I know, and I'm definately not a hacker, you are completely fine. Really, if someone wanted to, they could exploit your code anyway clientside, but i don't see how they could exploit your server side code using javascript (unless you use server side javascript)
null
CC BY-SA 2.5
null
2008-08-21T17:03:22.150
2008-08-21T17:03:22.150
null
null
77
null
20,534
2
null
20,511
3
null
I think I probably would have to argue that running unit tests on your production server isn't really part of TDD because by the time you deploy to your production environment technically speaking, you're past "development". I'm quite a stickler for TDD, and when I'm preaching the benefits to clients I often find myse...
null
CC BY-SA 2.5
null
2008-08-21T17:03:40.790
2008-08-21T17:03:40.790
null
null
1,120
null
20,536
2
null
20,533
1
null
- [Eclipse](https://www.eclipse.org/)- [Netbeans](https://netbeans.org/kb/articles/mac.html)
null
CC BY-SA 4.0
null
2008-08-21T17:05:38.883
2019-06-07T05:13:22.210
2019-06-07T05:13:22.210
1,033,581
521
null
20,537
2
null
20,511
1
null
For clarification: what sort of access do you have to your web server? FTP or WebDAV only? From your question, I'm guessing ssh access isn't available - you're dropping files in a directory to deploy. Is that correct? If so, the answer for unit testing is likely 'do it before you deploy'. You can set up functional...
null
CC BY-SA 2.5
null
2008-08-21T17:05:43.767
2008-08-21T17:05:43.767
null
null
2,334
null
20,538
2
null
20,484
5
null
Your first query will work but will require a full table scan because any index on that column will be ignored. You will also have to do some dynamic SQL to generate all your LIKE clauses. Try a full text search if your using SQL Server or check out one of the [Lucene](http://lucene.apache.org/java/docs/index.html) ...
null
CC BY-SA 2.5
null
2008-08-21T17:06:11.050
2008-08-21T17:06:11.050
null
null
1,293
null
20,541
2
null
20,511
1
null
What's preventing you from running unit tests on the server? If you can upload your production code and let it run there, why can't you upload this other code and run it as well?
null
CC BY-SA 2.5
null
2008-08-21T17:07:10.923
2008-08-21T17:07:10.923
null
null
1,175
null
20,512
2
null
8,443
1
null
The first thing I would check is if this project does the same thing on other machines. If not, it could be your box is heading south. If not it's the VC6 project itself. Typically I get goofiness with the debugger when my program is doing something with the hardware, especially the video. I would recommend turning ...
null
CC BY-SA 2.5
null
2008-08-21T16:55:59.203
2008-08-21T16:55:59.203
null
null
1,489
null
20,533
1
20,543
null
176
252,331
I searched for this and found [Maudite's](https://stackoverflow.com/users/1632/maudite) question about [text editors](https://stackoverflow.com/questions/14155/text-editors#14203) but they were all for Windows. As you have no doubt guessed, I am trying to find out if there are any text/code editors for the Mac besides...
List of macOS text editors and code editors
CC BY-SA 4.0
0
2008-08-21T17:03:25.487
2019-06-07T05:14:36.303
2019-06-07T04:45:34.640
1,033,581
1,384,652
[ "macos", "editor" ]
20,543
2
null
20,533
18
null
I haven't used it myself, but another one that I've heard good thing about is [Smultron](http://smultron.sourceforge.net/). In my own research on this, I found this interesting article: [Faceoff: Which Is The Best Mac Text Editor Ever?](http://mac360.com/index.php/mac360/comments/faceoff_which_is_the_best_text_editor...
null
CC BY-SA 2.5
null
2008-08-21T17:07:53.060
2008-08-21T17:07:53.060
null
null
1,354
null
20,542
2
null
20,533
1
null
- [SubEthaEdit](https://subethaedit.net/)- [Coda](https://www.panic.com/coda/)- [DashCode](https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/Dashcode_UserGuide/Contents/Resources/en.lproj/Introduction/Introduction.html)
null
CC BY-SA 4.0
null
2008-08-21T17:07:51.733
2019-06-07T05:07:21.627
2019-06-07T05:07:21.627
1,033,581
2,120
null
20,544
2
null
20,484
0
null
LIKE '%fiend%' will never use an seek, LIKE 'fiend%' will. Simply a wildcard search is not sargable
null
CC BY-SA 2.5
null
2008-08-21T17:08:00.313
2008-08-21T17:08:00.313
null
null
740
null
20,500
2
null
20,463
9
null
Interfaces aren't just for making sure developers implement certain methods. The idea is that because these classes are guaranteed to have certain methods, you can use these methods even if you don't know the class's actual type. Example: ``` interface Readable { String read(); } List<Readable> readables; // dunn...
null
CC BY-SA 2.5
null
2008-08-21T16:52:24.203
2008-08-21T16:52:24.203
null
null
1,471
null
20,549
2
null
20,533
5
null
[MacVim](http://code.google.com/p/macvim/) and [SubEthaEdit](http://www.codingmonkeys.de/subethaedit/) are two nice options
null
CC BY-SA 2.5
null
2008-08-21T17:08:21.047
2008-08-21T17:08:21.047
null
null
2,329
null
20,550
2
null
20,533
4
null
Best open source one is [Smultron](http://smultron.sourceforge.net/) in my opinion, but it doesn't a torch to TextMate.
null
CC BY-SA 2.5
null
2008-08-21T17:08:23.730
2008-08-21T17:08:23.730
null
null
2,018
null
20,545
2
null
20,533
1
null
[Smultron](http://smultron.sourceforge.net/) is another good (and free) one.
null
CC BY-SA 2.5
null
2008-08-21T17:08:08.923
2010-08-09T05:38:03.247
2010-08-09T05:38:03.247
3,713
423
null
20,553
2
null
20,533
5
null
I've tried Komodo out a bit, and I really like it so far. Aptana, an Eclipse variant, is also rather useful for a wide variety of things. There's always good ole' VI, too!
null
CC BY-SA 2.5
null
2008-08-21T17:09:51.243
2008-08-21T17:09:51.243
null
null
1,344
null
20,556
2
null
20,533
13
null
- - But I use TextMate, and can say that it is, without a doubt, worth every penny I paid for it.
null
CC BY-SA 2.5
null
2008-08-21T17:10:30.057
2008-08-21T17:10:30.057
null
null
1,238
null
20,560
2
null
20,298
4
null
Place the animation in a StoryBoard. Call Begin() and Stop() on the storyboard to start to stop the animations.
null
CC BY-SA 2.5
null
2008-08-21T17:12:31.457
2008-08-21T17:12:31.457
null
null
580
null
20,563
2
null
8,443
0
null
Is the device running out of memory and therefore gives up the ghost when it requires the additional memory to stop at the breakpoint?
null
CC BY-SA 2.5
null
2008-08-21T17:13:13.467
2008-08-21T17:13:13.467
null
null
1,143
null
20,572
2
null
20,529
0
null
I find the project-specific settings useful in Eclipse 3.3. For example, if you have several developers working on a project who have different code styles for curly braces, line spacing, number of imports etc. then you can specify the style settings for the project. Then you can configure the save actions so that th...
null
CC BY-SA 2.5
null
2008-08-21T17:17:22.537
2008-08-21T17:17:22.537
null
null
1,958
null
20,561
2
null
20,529
15
null
- (/) Copy selected line(s) above or below current line. (/) Move current (or multiple selected) lines up or down -- Bring up the resource window, start typing to find class/resource - Bring up all methods and fields for the current class. Hitting it again will bring up all methods and fields for current class ...
null
CC BY-SA 3.0
null
2008-08-21T17:12:54.967
2013-02-06T06:15:57.470
2013-02-06T06:15:57.470
938,024
1,104
null
20,529
1
20,631
null
68
23,801
I have been using Eclipse as an IDE for a short amount of time (about 3 months of full use) and almost every day I learn about some shortcut or feature that I had absolutely no idea about. For instance, just today I learned that + was the shortcut for a Quick Access window. I was wondering what your most useful/favor...
Useful Eclipse features?
CC BY-SA 2.5
0
2008-08-21T17:01:20.000
2014-02-27T20:38:32.190
2010-11-12T06:45:59.810
207,776
2,329
[ "eclipse" ]
20,515
2
null
20,484
1
null
Personally, I have done it before, and it has worked out well for me. The only issues i could see is possibly issues with an unindexed column, but i think you would have the same issue with a where clause. My advice to you is just look at the execution plans between the two. I'm sure that it will differ which one is b...
null
CC BY-SA 2.5
null
2008-08-21T16:57:28.357
2008-08-21T16:57:28.357
null
null
77
null
20,539
2
null
20,463
5
null
Interfaces will not give your code any performance boosts or anything like that, but they can go a long way toward making it maintainable. It is true that an abstract class (or even a non-abstract class) can be used to establish an interface to your code, but proper interfaces (the ones you define with the keyword and ...
null
CC BY-SA 2.5
null
2008-08-21T17:06:42.093
2008-08-21T17:06:42.093
null
null
1,344
null
20,574
2
null
20,529
2
null
I am also a fan of Eclipse, however since I spend a majority of my time in Visual Studio, I will suggest that you read Eric Sink's series of articles "C# to Java" (parts 1-4). Not only is Eric always an entertaining read, but this brief series covers some awesome Eclipse insight for those who have not been into Eclipse...
null
CC BY-SA 2.5
null
2008-08-21T17:17:46.513
2008-08-21T17:17:46.513
null
null
2,213
null
20,484
1
20,538
null
20
100,424
Can/Should I use a LIKE criteria as part of an INNER JOIN when building a stored procedure/query? I'm not sure I'm asking the right thing, so let me explain. I'm creating a procedure that is going to take a list of keywords to be searched for in a column that contains text. If I was sitting at the console, I'd execute...
Use a LIKE clause in part of an INNER JOIN
CC BY-SA 3.0
0
2008-08-21T16:45:48.183
2016-08-03T19:05:23.773
2016-08-03T19:05:23.773
1,274,572
71
[ "sql", "sql-server", "design-patterns" ]
20,577
2
null
20,533
2
null
[jEdit](http://www.jedit.org/) runs on OS X, being Java-based. It's somewhat similar to TextMate, I think. [Editra](http://editra.org/) looks interesting, but I've not tried it myself.
null
CC BY-SA 2.5
null
2008-08-21T17:18:56.370
2008-08-21T17:18:56.370
null
null
2,310
null
20,568
2
null
20,533
1
null
You might consider one of the classics - they're both free, extensible and have large user bases that extend beyond the Mac: - [Aquamacs](http://aquamacs.org/)- [Mac Vim](http://macvim.org/)
null
CC BY-SA 2.5
null
2008-08-21T17:15:20.780
2008-08-21T17:24:23.830
2008-08-21T17:24:23.830
872
2,334
null
20,590
2
null
20,059
6
null
I would pitch LOGO. It was something that was taught in my elementary school. It gives nearly immediate feedback, and will teach really basic programming concepts. Moving that little turtle around can be a lot of fun.
null
CC BY-SA 2.5
null
2008-08-21T17:22:48.810
2008-08-21T17:22:48.810
null
null
1,238
null
20,578
2
null
20,510
0
null
I don't see where this lets them do anything that they couldn't do already by calling eval. If there's a security hole being introduced here, I don't see it.
null
CC BY-SA 2.5
null
2008-08-21T17:19:03.157
2008-08-21T17:19:03.157
null
null
1,432
null
20,586
1
20,737
null
69
140,733
I'm trying to bind a list of custom objects to a WPF Image like this: ``` <Image> <Image.Source> <BitmapImage UriSource="{Binding Path=ImagePath}" /> </Image.Source> </Image> ``` But it doesn't work. This is the error I'm getting: What am I missing?
Image UriSource and Data Binding
CC BY-SA 3.0
0
2008-08-21T17:21:01.170
2017-11-09T10:02:00.580
2011-12-12T12:23:24.037
546,730
373
[ ".net", "wpf", "data-binding", "xaml" ]
20,575
1
20,589
null
1
371
When an ASP.NET application errors out and generates the yellow-screen display, I'd like to create some kind of link from the error page which would jump directly to the correct line of code in Visual Studio. I'm not sure how to approach this, or if there are any tools already in existence which accomplish it - but I'...
Link from ASP.NET yellow error page directly to VS source code
CC BY-SA 3.0
null
2008-08-21T17:17:51.273
2013-04-17T20:55:43.917
2013-04-17T20:55:43.917
1,454,806
2,104
[ "asp.net", "yellow-screen-of-death" ]
20,595
2
null
20,510
1
null
This isn't inherently dangerous, but the moment you pass any user-provided data into the function, it's ripe for a code injection exploit. That's worrisome, and something I'd avoid. I think a better approach would be to only expose the functionality you , and nothing more.
null
CC BY-SA 2.5
null
2008-08-21T17:24:41.800
2008-08-21T17:24:41.800
null
null
2,310
null
20,592
2
null
20,467
4
null
@ [lubos hasko](https://stackoverflow.com/questions/20467?sort=votes#20495) Your code is 95% there. The only problem is that the trimmed text is drawn on top of the text which is already on the label. This is easily solved: ``` Label label = (Label)sender; using (SolidBrush b = new SolidBrush(label.BackColor)) ...
null
CC BY-SA 2.5
null
2008-08-21T17:23:39.933
2008-08-21T17:23:39.933
2017-05-23T12:33:27.093
-1
1,490
null
20,591
2
null
12,843
69
null
I was able to combine my two repositories in this way: 1. Use hg clone first_repository to clone one of the repositories. 2. Use hg pull -f other_repository to pull the code in from the other repository. The `-f` (force) flag on the pull is the key -- it says to ignore the fact that the two repositories are not fr...
null
CC BY-SA 3.0
null
2008-08-21T17:23:08.013
2017-05-31T11:30:36.757
2017-05-31T11:30:36.757
1,000,551
814
null
20,589
2
null
20,575
1
null
You would probably need to embed an ActiveX control in the page for something like that to be possible.
null
CC BY-SA 2.5
null
2008-08-21T17:22:03.477
2008-08-21T17:22:03.477
null
null
1,219
null
20,587
1
6,800,413
null
11
26,614
I want to get the results of a stored procedure and place them into a CSV file onto an FTP location. The catch though is that I cannot create a local/temporary file that I can then FTP over. The approach I was taking was to use an SSIS package to create a temporary file and then have a FTP Task within the pack to FTP...
How to write stored procedure output directly to a file on an FTP without using local or temp files?
CC BY-SA 3.0
0
2008-08-21T17:21:21.123
2011-08-01T23:33:29.513
2017-05-23T12:02:54.400
-1
1,950
[ "sql-server", "sql-server-2005", "ssis", "ftp" ]
20,596
2
null
20,587
1
null
Is there a server anywhere that you can use where you can create a temporary file? If so, make a web service that returns an array containing the contents of the file. Call the web service from the computer where you can create a temporary file, use the contents of the array to build the temp file and ftp it over. If ...
null
CC BY-SA 2.5
null
2008-08-21T17:25:44.357
2008-08-21T17:25:44.357
null
null
51
null
20,598
1
20,605
null
6
13,878
I'm interested in doing comparisons between the date string and the MySQL timestamp. However, I'm not seeing an easy conversion. Am I overlooking something obvious?
If I have a PHP string in the format YYYY-DD-MM and a timestamp in MySQL, is there a good way to convert between them?
CC BY-SA 2.5
0
2008-08-21T17:26:23.060
2016-01-15T14:00:58.033
null
null
572
[ "php", "mysql", "time", "timestamp", "date" ]
20,608
2
null
20,598
0
null
Use the PHP [Date](http://il2.php.net/date) function. You may have to convert the mysql timestamp to a Unix timestamp in your query using the [UNIX_TIMESTAMP](http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html) function in mysql.
null
CC BY-SA 2.5
null
2008-08-21T17:30:20.663
2008-08-21T17:30:20.663
null
null
51
null
20,597
1
20,622
null
1
11,783
Is there an FTP browser hiding away in NetBeans 6.1? The help manual doesn't even suggest FTP exists. All I've been able to find so far is a tree viewer in the Services panel (no edit controls) and the ability to upload projects, folders and specific files from the Projects/Files views. Is there anywhere to delete or...
FTP in NetBeans 6.1
CC BY-SA 2.5
null
2008-08-21T17:26:18.803
2019-07-23T07:09:22.780
null
null
2,025
[ "netbeans", "ftp" ]
20,601
2
null
20,326
0
null
Check Request.Form["__EVENTTARGET"] to find the control initiating the postback - that may help you narrow it down. Looking at the callstacks, and some Reflectoring (into ASP.NET 2 - I don't have 1.1 handy) - it looks like SessionStateModule.PollLockedSessionCallback is part of the HttpApplication startup routines. It...
null
CC BY-SA 2.5
null
2008-08-21T17:28:00.670
2008-08-21T17:28:00.670
null
null
2,199
null
20,599
2
null
20,484
1
null
@Dillie-O How big is this table? What is the data type of Description field? If either are small a full text search will be overkill. @Dillie-O Maybe not the answer you where looking for but I would advocate a schema change... proposed schema: ``` create table name( nameID identity / int ,name varchar(50))...
null
CC BY-SA 2.5
null
2008-08-21T17:27:33.060
2008-08-21T19:26:51.430
2017-05-23T12:19:33.570
-1
1,293
null
20,593
2
null
20,587
0
null
Try using a CLR stored procedure. You might be able to come up with something, but without first creating a temporary file, it might still be difficult. Could you set up a share on another machine and write to that, and then ftp from there?
null
CC BY-SA 2.5
null
2008-08-21T17:23:51.693
2008-08-21T17:23:51.693
null
null
1,219
null
20,552
2
null
20,533
1
null
I use [Eclipse](https://www.eclipse.org/) as my primary editor (for Python) but I always keep [SubEthaEdit](https://subethaedit.net/) handy as my supplemental text editor (free trial, 30 euros to license). It's not super-complicated but it does what I need.
null
CC BY-SA 4.0
null
2008-08-21T17:09:26.753
2019-06-07T05:14:36.303
2019-06-07T05:14:36.303
1,033,581
2,123
null
20,614
2
null
20,611
1
null
Is it possible that the project nodes aren't child nodes, but grandchildren or lower? GetElementsByTagName will give you elements from anywhere in the child element tree, IIRC.
null
CC BY-SA 2.5
null
2008-08-21T17:34:39.827
2008-08-21T17:34:39.827
null
null
35
null
20,607
2
null
20,598
0
null
[strtotime()](http://ca.php.net/manual/en/function.strtotime.php) and [getdate()](http://ca.php.net/manual/en/function.getdate.php) are two functions that can be used to get dates from strings and timestamps. There isn't a standard library function that converts between MySQL and PHP timestamps though.
null
CC BY-SA 2.5
null
2008-08-21T17:30:10.463
2008-08-21T17:30:10.463
null
null
1,238
null
20,612
2
null
3,437
15
null
I'd agree with the previous two answers that in this instance it may be better from a usability perspective to split the two functions into separate screens. You really want your users to be focussed on entering complete and accurate credit card information, and having a map on the same screen may be distracting. For ...
null
CC BY-SA 2.5
null
2008-08-21T17:32:37.307
2008-08-21T17:32:37.307
null
null
2,330
null