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,212
2
null
20,206
2
null
There should be templates already included in Visio 2007 for software architecture but you might want to check out [Visio 2007 templates](http://office.microsoft.com/en-us/templates/CT102115841033.aspx).
null
CC BY-SA 2.5
null
2008-08-21T15:19:36.143
2008-08-21T15:19:36.143
null
null
299
null
20,214
2
null
20,059
10
null
Two possibilities are: Scratch - developed at MIT - [http://scratch.mit.edu/](http://scratch.mit.edu/) and EToys from the One Laptop per Child fame - [http://wiki.laptop.org/go/Squeak](http://wiki.laptop.org/go/Squeak)
null
CC BY-SA 2.5
null
2008-08-21T15:19:59.027
2008-08-21T15:19:59.027
null
null
2,312
null
20,219
2
null
20,198
9
null
A .Net assembly is compiled with metadata about the bytecode included that allows easy decompilation of the code - that's how tools like [.Net Reflector](http://www.red-gate.com/products/reflector/) work. The PDB files are debug symbols only - the difference in the Yellow Screen Of Death is that you'll get line number...
null
CC BY-SA 2.5
null
2008-08-21T15:21:08.213
2008-11-03T18:10:49.727
2008-08-26T00:51:45.983
35
35
null
20,215
2
null
20,021
12
null
There are at least two third party utilities to handle DB schema migrations, [South](http://aeracode.org/projects/south/) and [Django Evolution](http://code.google.com/p/django-evolution/). I haven't tried either one, but I have heard some good things about South, though Evolution has been around a little longer. Al...
null
CC BY-SA 2.5
null
2008-08-21T15:20:00.040
2008-08-21T15:20:00.040
null
null
1,794
null
20,221
2
null
20,185
3
null
If the classes are in the same assembly, can you not make the constructors internal?
null
CC BY-SA 2.5
null
2008-08-21T15:21:54.873
2008-08-21T15:21:54.873
null
null
832
null
20,222
2
null
20,063
3
null
I prefer optparse to getopt. It's very declarative: you tell it the names of the options and the effects they should have (e.g., setting a boolean field), and it hands you back a dictionary populated according to your specifications. [http://docs.python.org/lib/module-optparse.html](http://docs.python.org/lib/module-o...
null
CC BY-SA 2.5
null
2008-08-21T15:22:20.207
2008-08-21T15:22:20.207
null
null
1,412
null
20,228
2
null
20,207
1
null
Keep in mind that MSFT might be requiring the 3.5 Framework so they can write against it in future updates/releases, which might place your app in an unsupported (by MSFT) state.
null
CC BY-SA 2.5
null
2008-08-21T15:25:36.563
2008-08-21T16:06:05.047
2008-08-21T16:06:05.047
35
35
null
20,224
2
null
20,047
37
null
and are a slippery slope. You should never use them unless you understand why the deadlock is happening first. It would worry me that you say, "We have added with (nolock) to all the SQL queries". Needing to add everywhere is a sure sign that you have problems in your data layer. The update statement itself looks ...
null
CC BY-SA 3.0
null
2008-08-21T15:23:10.173
2014-05-19T16:07:10.017
2014-05-19T16:07:10.017
2,416,510
2,308
null
20,225
2
null
9,905
2
null
Let me start off saying that I don't recommend doing this in a service on a server, but I'll do my best to answer the questions. Running as a service makes it difficult to clean up. For example with what you have running as a service survive killing a hung word or excel. You may be in a position to have to kill the ...
null
CC BY-SA 2.5
null
2008-08-21T15:24:36.957
2008-08-26T16:22:18.790
2008-08-26T16:22:18.807
791
791
null
20,229
2
null
20,168
1
null
I would do what jsight suggested and make sure that your machine did not have a virus. I would also submit the .msi file to [Avast's online scanner](http://onlinescan.avast.com/) and see what they identified as being in your package. If that reports your file as containing a trojan, contact Avast and ask them to veri...
null
CC BY-SA 2.5
null
2008-08-21T15:26:08.793
2008-08-21T15:26:08.793
null
null
206
null
20,233
1
25,760
null
1
868
I'm trying to develop specialized audio player for windows mobile devices (Professional ones). And I've ran into the problem an once. There no compressed audio APIs on WM or I was unable to found house in documentation. Yes there are WM6 Sound API but it cannot even pause playback or seek to specified position. There ...
Audio player on Windows Mobile
CC BY-SA 3.0
null
2008-08-21T15:27:23.377
2013-07-05T08:59:33.703
2013-07-05T08:59:33.703
1,584,286
2,313
[ "windows-mobile" ]
20,234
2
null
20,168
0
null
I don’t know “Avast”, but in Kaspersky if the configuration is set to high almost every installer fires an alarm (iTunes, Windows Update, everything) especially if the installer modify some registry key or open a port. If avast checks for behavior and your program open a port probably that’s be the cause.
null
CC BY-SA 2.5
null
2008-08-21T15:27:25.827
2008-08-21T15:27:25.827
null
null
2,143
null
20,238
2
null
20,168
0
null
Rebuild the setup file, check the exact file size. Check the exact file size of the "suspected" setup file. If the source code hasn't changed and the two file sizes are different, there's a pretty good chance it got contaminated in transit. I'd do that as a bit of a sanity check first.
null
CC BY-SA 2.5
null
2008-08-21T15:28:27.090
2008-08-21T15:28:27.090
null
null
1,297
null
20,243
2
null
20,207
0
null
So far testing with or with out the .NET Framework works as expected. My installer has the user install version 2.0 of the Framework and everything works as expected. My concern is that 3.5 is listed as a prerequisite on the Report Viewer download page.
null
CC BY-SA 2.5
null
2008-08-21T15:29:42.640
2008-08-21T15:52:46.763
2008-08-21T15:52:46.763
206
206
null
20,245
1
20,274
null
7
10,725
I am doing an e-commerce solution in ASP.NET which uses [PayPal's Website Payments Standard](https://www.paypal.com/IntegrationCenter/ic_standard_home.html) service. Together with that I use a service they offer ([Payment Data Transfer](https://www.paypal.com/IntegrationCenter/ic_pdt.html)) that sends you back order in...
Process raw HTTP request content
CC BY-SA 2.5
0
2008-08-21T15:30:28.457
2008-09-17T08:05:34.993
2008-09-17T08:05:35.010
2,961
1,801
[ "asp.net", "http", "e-commerce" ]
20,191
2
null
18,943
1
null
Unless the specific tools you are using allow an obfuscated format, or you can create some sort of workflow to go from obfuscated to plain on demand, you are probably out of luck. One thing I've seen in cases like this is creating per-server, per-user, or per-server/per-user dedicated credentials that only have access...
null
CC BY-SA 2.5
null
2008-08-21T15:13:33.817
2008-08-21T15:13:33.817
null
null
430
null
20,254
2
null
18,783
0
null
[Dirty reads](http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm) - ``` set transaction isolation level read uncommitted ``` Prevents dead locks where transactional integrity isn't absolutely necessary (which is usually true)
null
CC BY-SA 2.5
null
2008-08-21T15:32:12.430
2009-01-05T19:19:01.473
2009-01-05T19:19:01.473
357
357
null
20,249
1
20,380
null
4
1,752
We're attemtping to merge our DLL's into one for deployment, thus ILMerge. Almost everything seems to work great. We have a couple web controls that use `ClientScript.RegisterClientScriptResource` and these are 404-ing after the merge (These worked before the merge). For example one of our controls would look like ...
ILMerge and Web Resources
CC BY-SA 3.0
0
2008-08-21T15:31:45.007
2013-03-20T09:17:30.453
2012-08-11T15:59:20.593
1,477,076
1,907
[ "c#", "asp.net", "ilmerge", "webresource" ]
20,227
1
20,670
null
76
195,049
Every method I write to encode a string in Java using 3DES can't be decrypted back to the original string. Does anyone have a simple code snippet that can just encode and then decode the string back to the original string? I know I'm making a very silly mistake somewhere in this code. Here's what I've been working wi...
How do I use 3DES encryption/decryption in Java?
CC BY-SA 3.0
0
2008-08-21T15:25:22.540
2022-01-05T22:49:03.703
2017-07-01T01:10:44.393
608,639
1,486
[ "java", "encryption", "3des" ]
20,256
2
null
20,245
0
null
If I'm reading your question right, I think you're looking for the [InputStream property](http://msdn.microsoft.com/en-us/library/system.web.httprequest.inputstream.aspx) on the Request object. Keep in mind that this is a firehose stream, so you can't reset it.
null
CC BY-SA 2.5
null
2008-08-21T15:32:53.303
2008-08-21T15:32:53.303
null
null
35
null
20,255
2
null
18,955
5
null
I was able to do it on using KeyPress event. Here's the code example: ``` Private Sub SingleLineTextBox_ KeyPress(ByRef KeyAscii As Integer) If KeyAscii = 10 _ or KeyAscii = 13 Then '10 -> Ctrl-Enter. AKA ^J or ctrl-j '13 -> Enter. AKA ^M or ctrl-m KeyAscii = 0 'clear ...
null
CC BY-SA 2.5
null
2008-08-21T15:32:53.083
2008-08-21T15:32:53.083
null
null
685
null
20,251
2
null
11,879
1
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 t...
null
CC BY-SA 2.5
null
2008-08-21T15:31:53.133
2008-08-21T15:37:33.430
2008-08-21T15:37:33.430
1,644
1,644
null
20,259
2
null
20,059
0
null
Wasn't Smalltalk designed for such a purpose? I think Ruby would be a good choice, as a descendant of Smalltalk.
null
CC BY-SA 2.5
null
2008-08-21T15:34:05.530
2008-08-21T15:34:05.530
null
null
2,018
null
20,263
1
20,438
null
77
84,078
"Microsoft SQL Server Profiler is a graphical user interface to SQL Trace for monitoring an instance of the Database Engine or Analysis Services." I find using SQL Server Profiler extremely useful during development, testing and when I am debugging database application problems. Does anybody know if there is an equiva...
Is there a Profiler equivalent for MySql?
CC BY-SA 2.5
0
2008-08-21T15:34:55.467
2021-04-14T23:23:40.397
2008-10-08T22:38:43.590
15,401
1,982
[ "mysql", "sql-server", "database" ]
20,172
2
null
20,047
1
null
I agree with Jeremy on this one. You ask if you should create a new data context for each controller or per page - I tend to create a new one for every independent query. I'm building a solution at present which used to implement the static context like you do, and when I threw tons of requests at the beast of a serve...
null
CC BY-SA 2.5
null
2008-08-21T15:02:30.647
2008-08-21T15:02:30.647
null
null
1,107
null
20,192
2
null
19,349
1
null
Using IIS in Visual Studio isn't the pain in the ass that it used to be in 1.1/VS02/03 days. There are lots of good reasons to prefer IIS over the Cassini server (articles by [Dominick Baier](http://leastprivilege.com/about/)): > [Cassini considered harmful](http://leastprivilege.com/2006/01/18/cassini-considered-harm...
null
CC BY-SA 3.0
null
2008-08-21T15:14:01.913
2012-06-01T23:38:39.557
2012-06-01T23:38:39.557
419
419
null
20,258
2
null
20,185
0
null
Do you actually to do this? If you're using some kind of pseudo factory pattern without a true design need for it, you're only going to make your code harder to understand, maintain and extend. If you don't need to do this, just implement a true factory pattern. Or, more ALTy, use a DI/IoC framework.
null
CC BY-SA 2.5
null
2008-08-21T15:33:29.417
2008-08-21T15:33:29.417
null
null
null
null
20,231
2
null
20,059
6
null
I'd say: give the kid a real C64, because that's how I got started. But, today... I'd say Ruby, but Ruby is a bit too chaotic. BASIC would be better in the long run. Processing is easy to learn, and it's basically Java. The reason I recommend a C64 is because it's BASIC, but you still have to learn certain computer-re...
null
CC BY-SA 2.5
null
2008-08-21T15:26:28.497
2008-08-21T15:26:28.497
null
null
1,536
null
20,265
2
null
20,107
0
null
I thought I had an ideal solution: ``` strong, b { font-weight: bold; font-style: inherit; } em, i { font-style: italic; font-weight: inherit; } ``` Unfortunately, Internet Explorer doesn't support "inherit." :-(
null
CC BY-SA 2.5
null
2008-08-21T15:35:51.407
2009-01-14T15:38:38.707
2009-01-14T15:38:38.707
437
437
null
20,262
1
20,271
null
5
728
I've joined a team that works on a product. This product has been around for ~5 years or so, and uses ASP.NET WebForms. Its original architecture has faded over time, and things have become relatively disorganized throughout the solution. It's by no means terrible, but definitely can use some work; you all know what I ...
Refactoring for Testability on an existing system
CC BY-SA 2.5
0
2008-08-21T15:34:46.200
2009-01-17T23:29:22.543
null
null
769
[ "asp.net", "refactoring", "automated-tests" ]
20,269
2
null
20,262
2
null
Can you re-factor in parallel? What I mean is re-write the pieces you want to refactor using TDD, but leave the existing code base in place. Then phase out the existing code when your new tests meet the needs for your PM?
null
CC BY-SA 2.5
null
2008-08-21T15:37:54.693
2008-08-21T15:37:54.693
null
null
733
null
20,267
1
20,270
null
13
16,497
I have a large text template which needs tokenized sections replaced by other text. The tokens look something like this: ##USERNAME##. My first instinct is just to use String.Replace(), but is there a better, more efficient way or is Replace() already optimized for this?
Best way to replace tokens in a large text template
CC BY-SA 2.5
0
2008-08-21T15:36:24.590
2013-06-01T04:36:30.867
null
null
1,436
[ "c#", ".net" ]
20,264
2
null
20,245
1
null
Well if the incoming data is in a standard form encoded POST format, then using the Request.Form array will give you all the data in a nice to handle manner. If not then I can't see any way other than using Request.InputStream.
null
CC BY-SA 2.5
null
2008-08-21T15:35:50.970
2008-08-21T15:35:50.970
null
null
1,908
null
20,272
1
29,042
null
1
2,098
In a macro for Visual Studio 6, I wanted to run an external program, so I typed: ``` shell("p4 open " + ActiveDocument.FullName) ``` Which gave me a type mismatch runtime error. What I ended up having to type was this: ``` Dim wshShell Set wshShell = CreateObject("WScript.Shell") strResult = wshShell.Run("p4 open "...
Why doesn't 'shell' work in VBscript in VS6?
CC BY-SA 3.0
null
2008-08-21T15:39:07.953
2015-04-17T18:08:54.770
2015-04-17T18:08:54.770
1,215,724
1,105
[ "visual-studio", "vbscript" ]
20,275
2
null
17,993
2
null
In my experience this is so easy that the whining takes more time than the doing. There are very few things in 1.6 that can't be backported with a minute or so (literally) worth of work. How many compile errors are you seeing when you try it with 1.5, and what for? Keep in mind that there are readily available, API ...
null
CC BY-SA 2.5
null
2008-08-21T15:39:39.853
2008-08-21T15:39:39.853
null
null
1,432
null
20,274
2
null
20,245
14
null
Something like this placed in your onload event. ``` if (Request.RequestType == "POST") { using (StreamReader sr = new StreamReader(Request.InputStream)) { if (sr.ReadLine() == "SUCCESS") { /* Do your parsing here */ } } } ``` Mind you that they might want some special...
null
CC BY-SA 2.5
null
2008-08-21T15:39:32.053
2008-08-21T21:12:03.347
2008-08-21T21:12:03.347
2,114
2,114
null
20,266
2
null
20,185
6
null
> To me, the simplest solution is to make child classes as samjudson mentioned. I'd like to avoid this however since it would make my abstract class' file a lot bigger than I'd like it to be. I'd rather keep classes split out over a few files for organization. No problem, just use keyword and you can sp...
null
CC BY-SA 2.5
null
2008-08-21T15:36:10.610
2008-08-21T15:55:07.757
2008-08-21T15:55:07.757
275
275
null
20,270
2
null
20,267
14
null
[System.Text.RegularExpressions.Regex.Replace()](http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.replace.aspx) is what you seek - IF your tokens are odd enough that you need a regex to find them. [Some kind soul did some performance testing](http://blogs.msdn.com/debuggingtoolbox/archive/2...
null
CC BY-SA 2.5
null
2008-08-21T15:38:33.897
2008-08-21T16:23:53.290
2008-08-21T16:23:53.290
35
35
null
20,280
2
null
20,267
2
null
If you are doing multiple replaces on large strings then it might be better to use StringBuilder.Replace(), as the usual performance issues with strings will appear.
null
CC BY-SA 2.5
null
2008-08-21T15:40:47.510
2008-08-21T15:40:47.510
null
null
1,908
null
20,271
2
null
20,262
5
null
Your PM's concerns are valid - make sure you get your system under test before making any major refactorings. I would strongly recommend getting a copy of Michael Feather's book [Working Effectively With Legacy Code](https://rads.stackoverflow.com/amzn/click/com/0131177052) (by "Legacy Code" Feathers means any system ...
null
CC BY-SA 2.5
null
2008-08-21T15:38:51.463
2008-08-23T10:25:29.953
2008-08-23T10:25:29.953
2,084
2,084
null
20,281
1
null
null
2
1,388
Anyone doing any work using "offline" forms? We have an application that requires inputting data from outside our company. I was thinking about sending a form out via email, allowing the form to be filled out then sent back. Obviously a web application would be the best solution, but management doesn't seem ready to...
Serve a form without a web interface
CC BY-SA 3.0
null
2008-08-21T15:41:02.753
2017-10-21T05:41:17.473
2017-10-21T05:41:17.473
6,332,918
1,351
[ "forms", "offline" ]
20,282
2
null
20,281
1
null
Have you considered InfoPath? These can be created and distributed through email. And then the data can be collated automatically. Also, consider using Google Spreadsheets with Google Forms. It's free and infrastructure is outsourced. PDF forms can work as well.
null
CC BY-SA 2.5
null
2008-08-21T15:41:39.897
2008-08-21T15:41:39.897
null
null
380
null
20,279
2
null
20,185
-2
null
What you need to do is this to prevent the default constructor to be create. The internal can be change to public if the classes are not in the same assembly. ``` public abstract class AbstractClass{ public static AbstractClass MakeAbstractClass(string args) { if (args == "a") return ConcreteClassA().G...
null
CC BY-SA 2.5
null
2008-08-21T15:40:20.803
2008-08-21T15:48:27.057
2008-08-21T15:48:27.057
1,154
1,154
null
20,289
2
null
20,263
0
null
I don't know about any profiling apps as such, but it's commonplace to use the EXPLAIN syntax for analysing queries. You can use these to figure out the best indexes to create, or you can try changing the overall query and see how it changes the efficiency, etc.
null
CC BY-SA 2.5
null
2008-08-21T15:43:32.077
2008-08-21T15:43:32.077
null
null
1,951
null
20,301
2
null
20,059
2
null
There are many good suggestions here already. I really agree with Kronikarz. Get a retro computer (or emulator) that you are interested in and teach with that. Why a retro computer? Basic is built in. Making sounds and primitive graphics is a trivial task. The real deal might be better than an emulator because it will ...
null
CC BY-SA 2.5
null
2008-08-21T15:47:25.373
2008-08-21T15:47:25.373
null
null
1,644
null
20,304
2
null
20,272
1
null
VBScript isn't Visual Basic.
null
CC BY-SA 2.5
null
2008-08-21T15:47:39.180
2008-08-21T15:47:39.180
null
null
267
null
20,293
2
null
20,286
3
null
Your best bet IMO would be to use javascript to look for a cookie named "origReferrer" or something like that and if that cookie doesn't exist you should create one (with an expiry of ~24hours) and fill it with the current referrer. That way you'll have preserved the original referrer all the way from your users first...
null
CC BY-SA 2.5
null
2008-08-21T15:44:32.823
2008-08-21T15:51:34.070
2008-08-21T15:51:34.083
2,114
2,114
null
20,298
1
20,306
null
51
66,124
I have something like this: Now, how would you stop that animation (the `DoubleAnimation`)? The reason I want to do this, is because I would like to start new animations (this seems to work, but it's hard to tell) and eventually stop the last animation...
How to stop an animation in C# / WPF?
CC BY-SA 2.5
0
2008-08-21T15:45:24.800
2018-06-28T14:54:41.770
null
null
2,260
[ "c#", "wpf" ]
20,306
2
null
20,298
90
null
To stop it, call `BeginAnimation` again with the second argument set to `null`.
null
CC BY-SA 4.0
null
2008-08-21T15:47:49.053
2018-06-28T14:54:41.770
2018-06-28T14:54:41.770
1,548,895
1,975,282
null
20,309
1
null
null
4
1,777
I support a third party system that uses COM, classic ASP, and SQL Server. Our company has gone to using TFS as our source control provider - which pushes things through Visual Studio. So, what's the best way to get a classic asp front-end into Visual Studio?
What's the best way to manage a classic asp front-end using Visual Studio 2008?
CC BY-SA 2.5
null
2008-08-21T15:48:56.540
2012-06-04T17:26:37.457
2011-11-19T02:54:40.960
50,776
1,874
[ "visual-studio", "tfs", "asp-classic" ]
20,312
2
null
19,995
5
null
I would strongly suggest to invest some time on Comet, but I dont know an actual implementation or library you could use. For an sort of "callcenter control panel" of a web app that involved updating agent and call-queue status for a live Callcenter we developed an in-house solution that works, but is far away from a ...
null
CC BY-SA 2.5
null
2008-08-21T15:49:24.557
2008-08-21T15:49:24.557
null
null
2,295
null
20,286
1
20,293
null
2
253
As a part of the signup process for my online application, I'm thinking of tracking the source and/or search keywords used to get to my site. This would allow me to see what advertising is working and from where with a somewhat finer grain than Google Analytics would. I assume I could set some kind of cookie with this...
Associating source and search keywords with account creation
CC BY-SA 3.0
null
2008-08-21T15:42:20.330
2013-12-02T13:05:05.327
2013-12-02T13:05:05.327
2,432,317
722
[ "ruby-on-rails", "cookies", "seo" ]
20,323
2
null
20,321
1
null
What about backup and restore? Could you experience a customer wanting to restore a backup for one of their entities?
null
CC BY-SA 2.5
null
2008-08-21T15:54:18.010
2008-08-21T15:54:18.010
null
null
267
null
20,322
1
20,364
null
12
6,776
I've found out how to convert errors into exceptions, and I display them nicely if they aren't caught, but I don't know how to log them in a useful way. Simply writing them to a file won't be useful, will it? And would you risk accessing a database, when you don't know what caused the exception yet?
How do I log uncaught exceptions in PHP?
CC BY-SA 2.5
0
2008-08-21T15:54:14.513
2011-08-27T03:06:58.407
null
null
1,585
[ "php", "exception", "error-handling", "error-logging" ]
20,324
2
null
3,654
1
null
I'm all for XHTML Strict every time. I strongly believe that HTML should be more like XML. It's not hard to validate it if you know XML and the W3's validator ipoints you on the right track anyway. XHTML 2.0 is heading toward what the W3 have been aiming for for a long time - the semantic web. The best benefit of XHTM...
null
CC BY-SA 2.5
null
2008-08-21T15:54:21.020
2008-08-21T15:54:21.020
null
null
2,025
null
20,315
2
null
20,198
5
null
like this. i've made a few changes, but it's pretty close to exactly what ms is doing. ``` // reverse the stack private static Stack<Exception> GenerateExceptionStack(Exception exception) { var exceptionStack = new Stack<Exception>(); // create exception stack for (Exception e = exception; e != null; e = ...
null
CC BY-SA 2.5
null
2008-08-21T15:51:12.870
2008-11-03T18:10:49.727
null
null
77
null
20,325
2
null
20,185
0
null
Can't you use the keyword `partial` for splitting the code for a class into many files?
null
CC BY-SA 2.5
null
2008-08-21T15:55:08.803
2008-08-21T15:55:08.803
null
null
1,192
null
20,290
2
null
20,267
2
null
Had to do something similar recently. What I did was: - - - - Done ;-) If you want to test your regexes I can suggest [the regulator.](http://sourceforge.net/projects/regulator/)
null
CC BY-SA 2.5
null
2008-08-21T15:43:59.843
2008-08-22T00:30:29.970
2008-08-22T00:30:29.970
909
909
null
20,329
2
null
20,059
4
null
[Game Maker](http://www.yoyogames.com/gamemaker/) might be another approach. You can start simple with easy drag and drop development, and then introduce more advanced programming as you go. The book [The Game Maker's Apprentice: Game Development for Beginners](https://rads.stackoverflow.com/amzn/click/com/1590596153) ...
null
CC BY-SA 2.5
null
2008-08-21T15:56:02.887
2008-08-21T15:56:02.887
null
null
1,739
null
20,330
2
null
20,321
1
null
This is a fairly normal scenario in multi-tenant SAAS applications. Both approaches have their pros and cons. Search on best practices for multi-tenant SAAS (software as a service) and you will find tons of stuff to ponder upon.
null
CC BY-SA 2.5
null
2008-08-21T15:56:40.360
2008-08-21T15:56:40.360
null
null
380
null
20,277
2
null
12,669
2
null
If you really just want to jump in with both feet, I would suggest looking at ColdFusion from Adobe. The developer edition is free and runs on windows, os x and linux. The documentation is authoritative and extensive, there is a very active developer community and only a few books you might want to dig into. The def...
null
CC BY-SA 2.5
null
2008-08-21T15:40:06.733
2008-08-21T15:40:06.733
null
null
1,537
null
20,276
2
null
20,267
2
null
string.Replace is fine. I'd prefer using a Regex, but I'm *** for regular expressions. The thing to keep in mind is how big these templates are. If its real big, and memory is an issue, you might want to create a custom tokenizer that acts on a stream. That way you only hold a small part of the file in memory whi...
null
CC BY-SA 2.5
null
2008-08-21T15:40:05.377
2008-08-21T15:40:05.377
null
null
null
null
20,340
2
null
20,321
0
null
One good argument for keeping them in separate databases is that its easier to scale (you can simply have multiple installations of the server, with the client databases distributed across the servers). Another argument is that once you are logged in, you don't need to add an extra where check (for client ID) in each ...
null
CC BY-SA 2.5
null
2008-08-21T15:58:26.487
2008-08-21T15:58:26.487
null
null
380
null
20,337
2
null
20,267
0
null
This is an ideal use of Regular Expressions. Check out [this helpful website](http://regular-expressions.info), the [.Net Regular Expressions class](http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.aspx), and this very helpful book [Mastering Regular Expressions](http://books.google.com/book...
null
CC BY-SA 2.5
null
2008-08-21T15:57:37.113
2008-08-21T15:57:37.113
null
null
1,569
null
20,336
1
20,368
null
7
240
I'm working on a boot loader on an x86 machine. When the BIOS copies the contents of the MBR to 0x7c00 and jumps to that address, is there a standard meaning to the contents of the registers? Do the registers have standard values? I know that the segment registers are typically set to 0, but will sometimes be 0x7c0. ...
State of Registers After Bootup
CC BY-SA 3.0
0
2008-08-21T15:57:36.363
2017-04-18T21:21:27.527
2017-04-18T21:21:27.527
881,229
2,171
[ "boot", "bios" ]
20,332
2
null
20,107
1
null
I would suggest avoiding anything which involves hacking the YUI files. You need to be able to update external libraries in the future and if your site relies on edited versions there is a good chance it will get cocked up. I think this is general good practice for any 3rd party library you use. So I thought [this](ht...
null
CC BY-SA 2.5
null
2008-08-21T15:56:58.657
2008-08-21T15:56:58.657
2017-05-23T12:34:51.097
-1
137
null
20,348
2
null
20,326
0
null
First thing I would look for is that you don't have the second ComboBox's AutoPostBack property set to true. If you change the value in the second combo with that property set true, I believe it will generate a postback on that control.
null
CC BY-SA 2.5
null
2008-08-21T15:59:46.687
2008-08-21T15:59:46.687
null
null
1,975,282
null
20,346
1
20,418
null
209
67,921
What are attributes in .NET, what are they good for, and how do I create my own attributes?
What are attributes in .NET?
CC BY-SA 3.0
0
2008-08-21T15:59:39.773
2019-02-05T19:28:56.170
2017-04-18T19:58:20.767
63,550
1,595
[ "c#", ".net", "glossary", ".net-attributes" ]
20,343
2
null
20,336
1
null
Best option would be to assume nothing. If they have meaning, you will find that from the other side when you need the information they provide.
null
CC BY-SA 2.5
null
2008-08-21T15:59:22.070
2008-08-21T15:59:22.070
null
null
1,343
null
20,351
2
null
20,346
5
null
An attribute is a class that contains some bit of functionality that you can apply to objects in your code. To create one, create a class that inherits from System.Attribute. As for what they're good for... there are almost limitless uses for them. [http://www.codeproject.com/KB/cs/dotnetattributes.aspx](http://www.c...
null
CC BY-SA 2.5
null
2008-08-21T16:00:51.473
2008-08-21T16:00:51.473
null
null
1,975,282
null
20,352
2
null
20,309
7
null
When I had to do this, I created a blank solution in VS and then added the folders from the ASP site one at a time, adding "existing items" to each folder as I created it. In this way I'm able to open the solution which keeps track of what files I had open at last open, plus I get the benefits of intellisense
null
CC BY-SA 2.5
null
2008-08-21T16:01:28.523
2008-08-21T16:01:28.523
null
null
1,097
null
20,326
1
20,649
null
6
6,536
I have a ASP.NET 1.1 application, and I'm trying to find out why when I change a ComboBox which value is used to fill another one (parent-child relation), two postbacks are produced. I have checked and checked the code, and I can't find the cause. Here are both call stacks which end in a page_load First postback (ge...
Double postback issue
CC BY-SA 4.0
null
2008-08-21T15:55:12.517
2019-07-21T20:33:18.983
2019-07-21T20:33:18.983
4,751,173
1,782
[ "asp.net", ".net-1.1" ]
20,353
2
null
20,272
0
null
Give this a try: ``` Shell "p4 open" & ActiveDocument.FullName ```
null
CC BY-SA 2.5
null
2008-08-21T16:02:04.510
2008-08-21T16:02:04.510
null
null
299
null
20,357
2
null
20,346
5
null
Attributes are like metadata applied to classes, methods or assemblies. They are good for any number of things (debugger visualization, marking things as obsolete, marking things as serializable, the list is endless). Creating your own custom ones is easy as pie. Start here: [http://msdn.microsoft.com/en-us/library/...
null
CC BY-SA 2.5
null
2008-08-21T16:02:46.617
2008-08-21T16:02:46.617
null
null
414
null
20,363
1
null
null
53
82,069
I have a database with a table Customers that have some data I have another database in the office that everything is the same, but my table Customers is empty How can I create a sql file in SQL Server 2005 (T-SQL) that takes everything on the table Customers from the first database, creates a, let's say, buildcustomer...
SQL Server 2005 - Export table programmatically (run a .sql file to rebuild it)
CC BY-SA 3.0
0
2008-08-21T16:04:31.823
2022-12-07T09:02:28.300
2017-03-23T15:39:42.307
1,033,581
null
[ "sql", "sql-server", "sql-server-2005", "database-table" ]
20,364
2
null
20,322
6
null
I really like [log4php](http://logging.apache.org/log4php/) for logging, even though it's not yet out of the incubator. I use log4net in just about everything, and have found the style quite natural for me. With regard to system crashes, you can log the error to multiple destinations (e.g., have appenders whose thres...
null
CC BY-SA 3.0
null
2008-08-21T16:04:43.133
2011-08-27T03:06:58.407
2011-08-27T03:06:58.407
2,314
2,314
null
20,354
2
null
20,322
11
null
You could use [set_error_handler](http://www.php.net/manual/en/function.set-error-handler.php) to set a custom exception to log your errors. I'd personally consider storing them in the database as the default Exception handler's backtrace can provide information on what caused it - this of course won't be possible if t...
null
CC BY-SA 2.5
null
2008-08-21T16:02:05.930
2008-08-24T23:55:40.323
2020-06-20T09:12:55.060
-1
2,025
null
20,344
2
null
20,336
1
null
Undefined, I believe? I think it depends on the mainboard and CPU, and should be treated as random for your own good.
null
CC BY-SA 2.5
null
2008-08-21T15:59:25.877
2008-08-21T15:59:25.877
null
null
2,018
null
20,366
2
null
16,556
0
null
Yes, and no, it's not very useful in my opinion. It's not very stable, it's easy to get out of sync, and the "look how fast I generate this" advantage is virtually nil when compared to more mundane things such as code snippets. Then again, I am a total "Architect" luddite, so take this with a grain of salt.
null
CC BY-SA 2.5
null
2008-08-21T16:05:07.623
2008-08-21T16:05:07.623
null
null
414
null
20,321
1
null
null
9
1,774
I am developing a website that will manage data for multiple entities. No data is shared between entities, but they may be owned by the same customer. A customer may want to manage all their entities from a single "dashboard". So should I have one database for everything, or keep the data seperated into individual d...
One database or many?
CC BY-SA 2.5
0
2008-08-21T15:53:23.020
2010-04-26T15:42:34.707
2009-09-03T11:10:44.200
23,118
744
[ "performance", "database-design", "multi-tenant", "maintainability" ]
20,368
2
null
20,336
8
null
> This early execution environment is highly implementation defined, meaning the implementation of your particular BIOS. Never make any assumptions on the contents of registers. They might be initialized to 0, but they might contain a random value just as well. from the [OS dev Wiki](http://wiki.osdev.org/Boot_sequen...
null
CC BY-SA 2.5
null
2008-08-21T16:06:07.857
2008-08-21T16:06:07.857
null
null
269
null
20,371
2
null
20,322
3
null
> > Simply writing them to a file won't be useful, will it? But of course it is - that's a great thing to do, much better than displaying them on the screen. You want to show the user a nice screen which says "Sorry, we goofed. Engineers have been notified. Go back and try again" and ABSOLUTELY NO TECHNICAL DETAIL, be...
null
CC BY-SA 2.5
null
2008-08-21T16:06:44.627
2008-08-21T16:06:44.627
null
null
137
null
20,380
2
null
20,249
4
null
OK - I got this working. It looks like the primary assembly was the only one whose assembly attributes were being copied. With copyattrs set, the last one in would win, not a merge (as far as I can tell). I created a dummy project to reference the other DLL's and included all the web resources from those projects in...
null
CC BY-SA 3.0
null
2008-08-21T16:09:36.070
2012-08-11T15:59:33.463
2012-08-11T15:59:33.463
1,477,076
1,907
null
20,370
2
null
20,363
1
null
You could always export the data from the Customers table to an Excel file and import that data into your Customers table. To import/export data: 1. Right click on database 2. Go to Tasks 3. Go to Import Data or Export Data 4. Change the data source to Microsoft Excel 5. Follow the wizard
null
CC BY-SA 2.5
null
2008-08-21T16:06:31.413
2008-08-21T16:13:17.357
2008-08-21T16:13:17.357
299
299
null
20,384
2
null
20,376
7
null
[JavaScript Profiler](http://www.whitefrost.com/documents/html/technical/dhtml/jsprof.html) is a decent tool.
null
CC BY-SA 2.5
null
2008-08-21T16:10:26.067
2008-08-21T16:10:26.067
null
null
35
null
20,381
2
null
20,322
0
null
I think it depends a lot of where your error occured. If the DB is down logging it to the DB is no good idea ;) I use the [syslog()](http://php.net/syslog) function for logging the error, but I have no problems writing it to a file when I'm on a system which has no syslog-support. You can easily set up your system to ...
null
CC BY-SA 2.5
null
2008-08-21T16:09:43.200
2008-08-21T16:09:43.200
null
null
1,462
null
20,389
1
33,052
null
6
11,802
How do you manage deploying InfoPath forms to different sharepoint servers? Is there a better way to deal all the data connections being site-specific without opening the forms, editing the data connections and republishing for each environment?
Deploying InfoPath forms to different SharePoint servers
CC BY-SA 2.5
0
2008-08-21T16:12:45.220
2011-09-08T10:29:50.730
null
null
1,453
[ "sharepoint", "moss", "infopath" ]
20,376
1
null
null
55
29,972
Does anyone know a tool for Profiling JavaScript in IE? List available: - [IE8](http://blogs.msdn.com/ie/archive/2008/09/11/introducing-the-ie8-developer-tools-jscript-profiler.aspx)- [JavaScript Profiler](http://www.whitefrost.com/documents/html/technical/dhtml/jsprof.html)- [YUI!](http://developer.yahoo.com/yui/pro...
JavaScript Profiler in IE
CC BY-SA 2.5
0
2008-08-21T16:08:34.200
2010-05-28T11:49:14.750
2008-10-13T20:32:19.837
1,100
1,100
[ "javascript", "performance", "internet-explorer", "profiling" ]
20,386
1
24,079
null
20
14,577
What are all the possible ways in which we can get memory leaks in .NET? I know of two: 1. Not properly un-registering Event Handlers/Delegates. 2. Not disposing dynamic child controls in Windows Forms: Example: ``` // Causes Leaks Label label = new Label(); this.Controls.Add(label); this.Controls.Remove(l...
Memory leaks in .NET
CC BY-SA 3.0
0
2008-08-21T16:11:34.520
2012-07-03T14:51:51.813
2012-01-05T23:35:19.263
1,288
380
[ ".net", "optimization", "memory-leaks" ]
20,391
1
20,453
null
5
3,159
I have a svn repo on my machine (Windows). Anyone have a script to back it up to a network share? I'm using the repo locally since I'm disconnected a lot. The network share is on a server with a backup strategy. I'm a perfect candidate for git/hg but I don't want to give up my VS integration just yet.
Script to backup svn repository to network share
CC BY-SA 3.0
0
2008-08-21T16:12:53.707
2013-04-01T12:40:56.603
2013-04-01T12:40:56.603
21,960
1,946
[ "svn" ]
20,392
1
20,486
null
5
6,185
We've been trying to alter a lot of columns from nullable to not nullable, which involves dropping all the associated objects, making the change, and recreating the associated objects. We've been using SQL Compare to generate the scripts, but I noticed that SQL Compare doesn't script statistic objects. Does this mean ...
Is it OK to drop sql statistics?
CC BY-SA 2.5
null
2008-08-21T16:12:58.540
2013-12-16T10:21:38.767
null
null
2,086
[ "sql", "sql-server", "scripting", "statistics" ]
20,358
2
null
20,346
2
null
You can use custom attributes as a simple way to define tag values in sub classes without having to write the same code over and over again for each subclass. I came across a nice [concise example by John Waters](http://blog.falafel.com/2008/04/15/CustomAttributesToTheRescue.aspx) of how to define and use custom attri...
null
CC BY-SA 2.5
null
2008-08-21T16:02:48.533
2008-08-21T16:02:48.533
null
null
206
null
20,394
2
null
20,376
0
null
I don't think [debugbar](http://www.debugbar.com/) has a profiler.. but it does have a debugger and a console... so you can fake it...
null
CC BY-SA 2.5
null
2008-08-21T16:13:46.120
2008-08-21T16:13:46.120
null
null
2,031
null
20,399
2
null
20,336
1
null
Safest bet is to assume undefined.
null
CC BY-SA 2.5
null
2008-08-21T16:14:34.840
2008-08-21T16:14:34.840
null
null
61
null
20,407
2
null
7,364
2
null
The PDF/pdflib extension documentation in PHP is sparse (something that has been noted in bugs.php.net) - I reccommend you use the Zend library.
null
CC BY-SA 2.5
null
2008-08-21T16:15:39.893
2008-08-21T16:15:39.893
null
null
2,025
null
20,402
2
null
20,392
1
null
Why are you dropping objects? Seems to me the sequence should be a lot simpler, and less destructive: assign all of these objects a default value, then make the change to not nullable.
null
CC BY-SA 2.5
null
2008-08-21T16:15:27.897
2008-08-21T16:15:27.897
null
null
1,975,282
null
20,393
2
null
20,386
14
null
There's no way to provide a comprehensive list... this is very much like asking "How can you get wet?" That said, make sure you're calling Dispose() on everything that implements IDisposable, and make sure you implement IDisposable on any types that consume unmanaged resources of any kind. Every now and then, run som...
null
CC BY-SA 2.5
null
2008-08-21T16:13:22.720
2010-07-27T18:28:39.900
2010-07-27T18:28:39.900
369
35
null
20,408
2
null
20,391
3
null
svnadmin dump C:\SVNRepositorio\Repositorio > \\Backups\BkTmpSubversion\subversiontemp.dump Try this.
null
CC BY-SA 2.5
null
2008-08-21T16:15:53.247
2008-08-21T16:15:53.247
null
null
1,154
null
20,410
2
null
20,392
0
null
Statistics are too data-specific to be tooled. It would be potentially very inefficient to blindly re-create them on a data set.
null
CC BY-SA 2.5
null
2008-08-21T16:16:06.427
2008-08-21T16:16:06.427
null
null
414
null
20,401
2
null
11,879
1
null
JSON is a pretty standard way to pass objects around the web (as a subset of javascript). Many languages feature a library which will convert JSON code into a native object - see for example [simplejson](http://undefined.org/python/#simplejson) in Python. For more libraries for JSON use, see the [JSON webpage](http://...
null
CC BY-SA 2.5
null
2008-08-21T16:15:26.337
2008-08-21T16:15:26.337
null
null
199
null