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
11,968
2
null
11,964
-1
null
Um, [VMware is free](http://info.vmware.com/content/GLP_VMwarePlayer).
null
CC BY-SA 2.5
null
2008-08-15T04:36:17.037
2008-08-15T04:36:17.037
null
null
872
null
11,969
2
null
11,964
1
null
I've been using vmware for about 8 years or so. Currently I'm using it on a mac and am very happy with it. I still have my old windows 95 in suspended animation, I boot it up every once in a while to show my kids the awesomeness of 32M and 256 colors. That being said, you should probably try them out with the partic...
null
CC BY-SA 2.5
null
2008-08-15T04:36:51.403
2008-08-15T04:36:51.403
null
null
116
null
11,970
2
null
11,964
2
null
I've only had experience with [VMware ESX](http://www.vmware.com/products/vi/esx/), and while it's a fairly expensive product, it is also very powerful. I would definitely recommend it if you have the resources. Depending on your needs, they also have a more basic (and free) version, [VMware Server](http://www.vmware...
null
CC BY-SA 2.5
null
2008-08-15T04:36:54.180
2008-08-15T04:36:54.180
null
null
423
null
11,975
1
11,983
null
20
5,442
Store everything in GMT? Store everything the way it was entered with an embedded offset? Do the math everytime you render? Display relative Times "1 minutes ago"?
Handling timezones in storage?
CC BY-SA 2.5
0
2008-08-15T04:54:59.510
2019-02-22T20:24:08.567
2009-06-27T01:36:47.180
81,205
1,220
[ "localization", "internationalization", "timezone", "globalization" ]
11,973
2
null
11,964
11
null
Try [VirtualBox](http://www.virtualbox.org/). It's free, open source, and it runs on Windows, Linux, Macintosh and OpenSolaris.
null
CC BY-SA 2.5
null
2008-08-15T04:43:48.440
2008-08-15T05:11:28.837
2008-08-15T05:11:28.837
718
718
null
11,962
2
null
11,926
1
null
On one of Rob Conery's MVC Storefront [screencasts](http://www.asp.net/learn/3.5-SP1/video-356.aspx), he encounters this exact issue. It's at around the 23 minute mark if you're interested.
null
CC BY-SA 2.5
null
2008-08-15T04:27:58.410
2008-08-15T04:27:58.410
null
null
404
null
11,964
1
11,973
null
3
3,519
What should I use to virtualize my desktop, vmx, xen, or vmware? @Derek Park: Free as in speech, not beer. I want to be able to make a new virtual machine from my own licensed copies of windows, for that vmware is kind of expensive.
Pay for vmware or use Open Source?
CC BY-SA 2.5
0
2008-08-15T04:32:29.883
2009-01-03T03:00:56.643
2008-08-15T04:40:02.037
1,220
1,220
[ "virtualization" ]
11,974
1
12,057
null
5
3,751
Basically, something better than this: ``` <input type="file" name="myfile" size="50"> ``` First of all, the `browse` button looks different on every browser. Unlike the `submit` button on a form, you have to come up with some [hack-y](http://www.quirksmode.org/dom/inputfile.html) way to style it. Secondly, there'...
What is the best way to upload a file via an HTTP POST with a web form?
CC BY-SA 3.0
0
2008-08-15T04:54:05.613
2016-07-22T13:59:51.047
2017-05-23T12:01:17.740
-1
1,396
[ "html", "http", "forms", "post", "upload" ]
11,980
2
null
11,975
1
null
Personally, I can't see any reason not to store everything in GMT and then use the users local timezone to display the time as it relates to them. If you want to display relative time, you obviously still need the time and do a translation, but if you do want to do the translation I think GMT is still your best option...
null
CC BY-SA 2.5
null
2008-08-15T05:05:56.947
2008-08-15T05:05:56.947
null
null
493
null
11,985
2
null
11,831
2
null
> It was not just a bunch of variables in a fancy dress because this was had dozens of responsibilities, like communicating with persistence layer to save/retrieve data about the company, deal with employees and prices collections, etc. I must say you're not really describing somthing that should be a single object an...
null
CC BY-SA 2.5
null
2008-08-15T05:22:48.177
2008-08-15T05:22:48.177
null
null
1,327
null
11,981
2
null
11,975
0
null
I like storing in GMT and showing only relative ("about 10 seconds ago", "5 months ago"). Users don't need to see actual timestamps for most use cases. There are certainly exceptions, and an individual application might have many of them, so it can't be a 'one-true-way' answer. Things that need strong audit-ability ...
null
CC BY-SA 2.5
null
2008-08-15T05:15:29.237
2008-08-15T05:15:29.237
null
null
1,190
null
11,987
2
null
11,975
1
null
So I ran a little experiment with MSSQL server. I created a table and added a row with the current localized timezone (Australia). Then I changed my datetime to be GMT and added another row. Even tho those rows were added around 10 seconds apart, they appear in SQL server as tho they're 10 hours apart. If nothing el...
null
CC BY-SA 2.5
null
2008-08-15T05:23:13.260
2008-08-15T05:23:13.260
null
null
493
null
11,991
2
null
11,975
1
null
MS Dynamics stores GMT and then at a user level knows your times zone relative to GMT. Then it displays items to you in your time zone. Just thought I'd throw that out there as that's a pretty big group at MS and this is how they decided to handle it.
null
CC BY-SA 2.5
null
2008-08-15T05:27:40.413
2008-08-15T05:27:40.413
null
null
225
null
11,986
1
32,898
null
3
542
I am running - - - - and I get the following error when trying to rake `db:migrate` on an app that works find connected to MySQL. > rake aborted! no such file to load -- sqlite3/database
Why does sqlite3-ruby-1.2.2 not work on OS X?
CC BY-SA 3.0
null
2008-08-15T05:23:02.153
2015-09-09T09:47:48.977
2015-09-09T09:47:48.977
1,537,726
1,396
[ "ruby-on-rails", "ruby", "sqlite" ]
11,950
1
11,967
null
30
39,543
I'm looking for the best way to log errors in an ASP.NET application. I want to be able to receive emails when errors occurs in my application, with detailed information about the Exception and the current Request. In my company we used to have our own ErrorMailer, catching everything in the Global.asax Application_Er...
How do you log errors (Exceptions) in your ASP.NET apps?
CC BY-SA 3.0
0
2008-08-15T04:05:10.843
2017-10-06T10:01:40.273
2017-06-05T13:47:14.303
1,709,587
1,130
[ "asp.net", "error-handling", "nlog", "health-monitoring" ]
11,976
2
null
11,964
3
null
@ChanChan, I don't think you can claim to be only interested in freedom when you ask if you should "Pay for vmware." I'm forced to assume you are talking about money there, not about freedom. :p Nonetheless, I gave you a poor link. [VMware Server](http://www.vmware.com/download/server/) is free (as in beer) and wil...
null
CC BY-SA 2.5
null
2008-08-15T04:57:09.367
2008-08-15T05:11:22.270
2008-08-15T05:11:22.270
872
872
null
11,997
2
null
10,314
1
null
Andrew: There actually are plenty of Cocoa developers who don't use instance variable prefixes at all. It's also extremely common in the Smalltalk world (in fact, I'd say it's nearly unheard-of in Smalltalk to use prefixes on instance variables). Prefixes on instance variables have always struck me as a C++-ism that ...
null
CC BY-SA 2.5
null
2008-08-15T05:36:36.043
2008-08-15T05:36:36.043
null
null
714
null
11,983
2
null
11,975
39
null
You have to store in UTC - if you don't, your historic reporting and behaviour during things like Daylight Savings goes... funny. GMT is a local time, subject to Daylight Savings relative to UTC (which is not). Presentation to users in different time-zones can be a real bastard if you're storing local time. It's eas...
null
CC BY-SA 3.0
null
2008-08-15T05:19:37.603
2012-11-06T14:00:22.637
2012-11-06T14:00:22.637
257
257
null
12,002
2
null
11,915
13
null
Another crazy approach, but has its advantage, is to use a normal .aspx view to render the RSS. In your action method, just set the appropriate content type. The one benefit of this approach is it is easy to understand what is being rendered and how to add custom elements such as geolocation. Then again, the other app...
null
CC BY-SA 2.5
null
2008-08-15T05:49:33.317
2008-08-15T05:49:33.317
null
null
598
null
12,005
2
null
11,974
0
null
It is true, the file upload control is definitely behind the times. Hopefully this will be addressed in a future asp.net version. Though it costs some money, I have found the [Telerik upload control](http://www.telerik.com/products/aspnet-ajax/controls/upload/overview.aspx) to have all of the functionality that you ar...
null
CC BY-SA 2.5
null
2008-08-15T05:56:22.227
2008-08-15T05:56:22.227
null
null
51
null
12,008
1
12,047
null
5
3,055
I curious to how different people solve integration of systems. I have a feeling that the last years more and more work has gone into integrating systems and that this kind of work need will increase as well. I wondering if you solve it developing your own small services that are then connected or if you use some sort...
How do you do system integration?
CC BY-SA 2.5
0
2008-08-15T06:06:13.720
2008-12-25T21:44:35.880
null
null
298
[ "architecture", "system-integration" ]
12,009
1
12,032
null
35
33,517
How can I pipe the new password to smbpasswd so I can automate my installation process.
Piping password to smbpasswd
CC BY-SA 2.5
0
2008-08-15T06:08:55.243
2018-11-22T09:56:05.690
2009-07-30T18:42:43.350
34,813
115
[ "automation", "installation", "debian", "samba" ]
12,011
2
null
11,950
2
null
I've been using the Enterprise Library's Logging objects. It allows you to have different types of logging (flat file, e-mail, and/or database). It's pretty customizable and has a pretty good interface for updating your web.config for the configuration of the logging. Usually I call my logging from the On Error in the ...
null
CC BY-SA 2.5
null
2008-08-15T06:11:57.937
2008-08-15T06:11:57.937
null
null
721
null
11,989
2
null
11,986
2
null
Looks like there's a [bug](http://rubyforge.org/tracker/index.php?func=detail&aid=20533&group_id=254&atid=1043) with 1.2.2. Just roll back to 1.2.1 with: > gem install sqlite3-ruby -v=1.2.1 and that will fix the problem.
null
CC BY-SA 2.5
null
2008-08-15T05:24:54.943
2008-08-15T05:24:54.943
null
null
1,396
null
12,013
2
null
11,930
2
null
You may be better off using something like checkmyip.org, which will determine your public IP address - not necessarily your first hop router: at Uni I have a "real" IP address, whereas at home it is my local router's public IP address. You can parse the page that returns, or find another site that allows you to just ...
null
CC BY-SA 2.5
null
2008-08-15T06:15:16.823
2008-08-15T06:15:16.823
null
null
188
null
12,016
2
null
12,009
-4
null
using either [pipelines](http://en.wikipedia.org/wiki/Pipeline_(Unix)) or [redirection](http://en.wikipedia.org/wiki/Redirection_(Unix)).
null
CC BY-SA 2.5
null
2008-08-15T06:16:12.187
2008-08-15T06:16:12.187
null
null
1,063
null
11,943
2
null
11,930
1
null
That is not as easy as it sounds. Java is platform independent, so I am not sure how to do it in Java. I am that .NET contacts some web site which reports it back. There are a couple ways to go. First, a deeper look into the ICMP protocol may give you the information you need. You can also trace the IP you go thr...
null
CC BY-SA 2.5
null
2008-08-15T03:49:48.800
2008-08-15T03:49:48.800
null
null
725
null
12,020
2
null
11,975
0
null
I usually just use Unix time. not necessarily future safe, but it works pretty well.
null
CC BY-SA 2.5
null
2008-08-15T06:20:14.160
2008-08-15T06:20:14.160
null
null
1,063
null
12,018
2
null
11,045
135
null
You should use `Application.Volatile` in the top of your function: ``` Function doubleMe(d) Application.Volatile doubleMe = d * 2 End Function ``` It will then reevaluate whenever the workbook changes (if your calculation is set to automatic).
null
CC BY-SA 3.0
null
2008-08-15T06:18:51.387
2015-08-28T16:33:28.143
2015-08-28T16:33:28.143
2,237,785
224
null
12,025
2
null
11,950
9
null
I've been using [Log4net](http://logging.apache.org/log4net/index.html), configured to email details of fatal errors. It's also set up to log everything to a log file, which is invaluable when trying to debug problems. The other benefit is that if that standard functionality doesn't do what you want it to, it's fairl...
null
CC BY-SA 2.5
null
2008-08-15T06:31:07.070
2008-08-15T06:31:07.070
null
null
775
null
12,027
2
null
11,930
1
null
Matthew: Yes, that is what I meant by "I can get my internet IP using a service on a website." Sorry about being glib. Brian/Nick: Traceroute would be fine except for the fact that lots of these routers have ICMP disabled and thus it always stalls. I think a combination of traceroute and uPnP will work out. That is w...
null
CC BY-SA 2.5
null
2008-08-15T06:31:38.100
2008-08-15T06:34:49.607
2008-08-15T06:34:49.607
338
338
null
12,026
2
null
12,009
13
null
Try something like this: ``` (echo oldpasswd; echo newpasswd) | smbpasswd -s ```
null
CC BY-SA 2.5
null
2008-08-15T06:31:29.427
2008-08-15T06:31:29.427
null
null
116
null
12,030
2
null
11,930
12
null
Java doesn't make this as pleasant as other languages, unfortunately. Here's what I did: ``` import java.io.*; import java.util.*; public class ExecTest { public static void main(String[] args) throws IOException { Process result = Runtime.getRuntime().exec("traceroute -m 1 www.amazon.com"); Buff...
null
CC BY-SA 2.5
null
2008-08-15T06:38:21.813
2008-08-15T06:38:21.813
null
null
422
null
12,040
2
null
11,919
0
null
From my experience with windows/apache it's just a matter of install MySQL, I can't Imagine that IIS/Apache has anything to do with this.
null
CC BY-SA 2.5
null
2008-08-15T06:52:22.643
2008-08-15T06:52:22.643
null
null
115
null
12,037
2
null
11,275
0
null
We used [CodeTwo-s](http://codetwo.com/) Exchange rules for a while on Exchange 2003. However there is a known problem with it: if the messages stay in the queue for 2-3 minutes, the Exchange itself sends out the message without the footer. Most of the times it's not a problem, but we have something like 700 people in...
null
CC BY-SA 2.5
null
2008-08-15T06:50:38.187
2008-08-15T06:50:38.187
null
null
968
null
12,039
1
null
null
7
32,026
I have an application that sometimes causes a BSOD on a Win XP machine. Trying to find out more, I loaded up the resulting *.dmp file (from C:\Windows\Minidump), but get this message when in much of the readout when doing so: ``` ********************************************************************* * Symbols can not ...
"Symbols can not be loaded" when trying to read dump
CC BY-SA 3.0
0
2008-08-15T06:51:59.557
2015-09-07T20:56:15.093
2015-09-07T20:56:15.093
480,982
null
[ "windows", "windows-xp", "crash-dumps", "bsod" ]
12,046
2
null
12,045
4
null
I think what I would do in this case is test the code that actually executes when the timer ticks, rather than the entire sequence. What you really need to decide is whether it is worthwhile for you to test the actual behaviour of the application (for example, if what happens after every tick changes drastically from o...
null
CC BY-SA 2.5
null
2008-08-15T07:09:04.780
2008-08-15T07:09:04.780
null
null
1,975,282
null
12,032
2
null
12,009
51
null
Thanks to Mark I found the answer: ``` (echo newpassword; echo confirmNewPassword) | smbpasswd -s ``` BTW: (echo oldpasswd; echo newpasswd) | smbpasswd -s does not work.
null
CC BY-SA 2.5
null
2008-08-15T06:38:59.287
2008-08-15T08:37:32.243
2008-08-15T08:37:32.243
115
115
null
12,045
1
12,054
null
20
7,768
I am currently writing a simple, timer based mini app in C# that performs an action n times every k seconds. I am trying to adopt a test driven development style, so my goal is to unit test all parts of the app. So, my question is: Is there a good way to unit test a timer based class? The problem, as I see it, is tha...
Unit testing a timer based application?
CC BY-SA 3.0
0
2008-08-15T07:02:45.993
2014-05-04T21:53:27.193
2014-05-04T21:53:27.193
1,537,726
276
[ "c#", ".net", "unit-testing", "timer" ]
12,043
2
null
12,039
3
null
you actually need to either download the symbols to your computer, or configure it to download as you go if you are online while debugging. Here's the link that talks about this in detail: [http://www.microsoft.com/whdc/DevTools/Debugging/debugstart.mspx](http://www.microsoft.com/whdc/DevTools/Debugging/debugstart.msp...
null
CC BY-SA 2.5
null
2008-08-15T06:58:44.770
2008-08-15T06:58:44.770
null
null
380
null
12,054
2
null
12,045
11
null
What I have done is to mock the timer, and also the current system time, that my events could be triggered immediately, but as far as the code under test was concerned time elapsed was seconds.
null
CC BY-SA 2.5
null
2008-08-15T07:43:18.110
2008-08-15T07:43:18.110
null
null
259
null
12,052
2
null
12,051
2,178
null
Modify your constructor to the following so that it calls the base class constructor properly: ``` public class MyExceptionClass : Exception { public MyExceptionClass(string message, string extrainfo) : base(message) { //other stuff here } } ``` Note that a constructor is not something that you c...
null
CC BY-SA 2.5
null
2008-08-15T07:40:22.157
2008-08-15T07:48:56.353
2008-08-15T07:48:56.353
372
372
null
12,051
1
12,052
null
1,800
1,324,026
If I inherit from a base class and want to pass something from the constructor of the inherited class to the constructor of the base class, how do I do that? For example, if I inherit from the Exception class I want to do something like this: ``` class MyExceptionClass : Exception { public MyExceptionClass(strin...
Calling the base constructor in C#
CC BY-SA 4.0
0
2008-08-15T07:39:23.097
2023-01-13T16:30:10.490
2020-02-26T21:01:16.483
3,739,391
493
[ "c#", ".net", "inheritance", "constructor" ]
12,058
2
null
11,974
1
null
You could have a look at the [Fancy Upload](http://digitarald.de/project/fancyupload/) script. Though it uses flash it still looks great.
null
CC BY-SA 2.5
null
2008-08-15T07:58:28.830
2008-08-15T07:58:28.830
null
null
87
null
12,057
2
null
11,974
9
null
File upload boxes is where we're currently at if you don't want to involve other technologies like Flash, Java or ActiveX. With plain HTML you are pretty much limited to the experience you've described (no progress bar, double submits, etc). If you are willing to use some javascript, you can solve some of the problems...
null
CC BY-SA 2.5
null
2008-08-15T07:54:33.063
2008-08-15T07:54:33.063
null
null
1,265
null
12,062
2
null
8,832
1
null
You can use the `S` flag to skip the `404` rule, like this: ``` RewriteEngine on # Do not separate these two rules so long as the first has S=1 RewriteRule (.*)\.php$ $1.cfm [S=1] RewriteRule \.cfm$ - [R=404] ``` If you are also using the `Alias` option then you should also add the `PT` flag. See the [mod_rewrite d...
null
CC BY-SA 2.5
null
2008-08-15T08:02:25.513
2008-08-15T08:02:25.513
null
null
954
null
12,065
2
null
11,439
1
null
I guess you'll have to go beyond the out-of-the-box setup and deployment package and try a third party app. You may want to look at: - [Wix](http://wix.sourceforge.net/)- [Nullsoft Scriptable Install System](http://nsis.sourceforge.net/Main_Page) Both are free; they might give you the customization that you need.
null
CC BY-SA 2.5
null
2008-08-15T08:10:12.423
2008-08-15T08:10:12.423
null
null
372
null
11,963
2
null
2,798
5
null
By Map Routing, you mean finding the shortest path along a street network? Dijkstra shortest-path algorithm is the best known. Wikipedia has not a bad intro: [http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm](http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm) There's a Java applet here where you can see it in ac...
null
CC BY-SA 3.0
null
2008-08-15T04:31:27.390
2016-11-20T00:28:03.443
2016-11-20T00:28:03.443
6,392,939
1,050
null
12,047
2
null
12,008
10
null
wow - Ok - will get a post on this but will be big. Intergration needs to be backed up with a big understanding by the business on the benefits - Get an opertating model sorted out - as the business may acutally need to standardise instead of intergrate, as this can be costly - its why most SOA fail! [Enterprise Archi...
null
CC BY-SA 2.5
null
2008-08-15T07:10:14.217
2008-08-15T07:51:51.637
2008-08-15T07:51:51.637
null
null
null
11,999
2
null
11,291
2
null
It's important to tell us what you're really trying to accomplish — the higher-level goal that you think capturing key events in an NSTextView will address. For example, when someone asks me how to capture key events in an NSText what they really want to know is how to validate input in the field. That's done by sett...
null
CC BY-SA 2.5
null
2008-08-15T05:41:51.943
2008-08-15T05:41:51.943
null
null
714
null
12,071
2
null
12,039
9
null
Quick answer is to c:\> set _NT_SYMBOL_PATH=SRV*C:\WINDOWS\Symbols*http://msdl.microsoft.com/download/symbols before starting windbg.
null
CC BY-SA 2.5
null
2008-08-15T08:24:51.630
2008-08-15T08:24:51.630
null
null
988
null
12,075
1
12,080
null
26
6,378
I'm sure many readers on SO have used [Lutz Roeder](https://www.lutzroeder.com/dotnet/)'s [.NET reflector](http://www.reflector.net/) to decompile their .NET code. I was amazed just how accurately our source code could be recontructed from our compiled assemblies. I'd be interested in hearing how many of you use obfu...
Should I be worried about obfuscating my .NET code?
CC BY-SA 4.0
0
2008-08-15T08:36:19.783
2018-08-08T17:48:20.897
2018-08-08T17:48:20.897
770,254
1,078
[ ".net", "obfuscation" ]
12,066
2
null
11,199
1
null
You might consider using ["ClickOnce Deployment"](http://www.15seconds.com/issue/041229.htm), which makes it very easy to add bootstrapping the .Net 2.0, 3.0, and/or 3.5 redistributable installers into your application. Just click a checkbox in your project's properties and your installer will automatically detect whet...
null
CC BY-SA 2.5
null
2008-08-15T08:11:31.893
2008-08-15T08:11:31.893
null
null
332
null
12,069
2
null
8,355
3
null
Configure a single VirtualHost to serve both secure.example.com and dbadmin.example.com (making it the only *:443 VirtualHost achieves this). You can then use [mod_rewrite](http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html) to adjust the URI for requests to dbadmin.example.com: ``` <VirtualHost *:443> ServerNa...
null
CC BY-SA 2.5
null
2008-08-15T08:21:28.300
2008-08-15T08:40:41.147
2008-08-15T08:40:41.163
954
954
null
12,077
2
null
12,075
3
null
easy for me - if you need to protect intellectual property - obfuicate - if not dont. Easy to do with the right tools.
null
CC BY-SA 2.5
null
2008-08-15T08:38:23.787
2008-08-15T08:38:23.787
null
null
null
null
12,079
2
null
12,075
2
null
I think to some extent we should ALL be worrying about our IP :) Good question though as its something I am keen to know more about (I currently do obfuscate). Having had some discussions with my manager at work, he said he doesn't obfuscate, but does NGEN on install, apparantly that should be enough to stop Reflect...
null
CC BY-SA 2.5
null
2008-08-15T08:39:54.330
2008-08-15T08:39:54.330
null
null
832
null
12,087
2
null
11,974
1
null
The problem here is that the browsers specifically work to block anything that changes the basic file upload input control. You can't change it with javascript for instance. The reason is security - if I could script it I could build a page that when you visited it sent me various files from your hard disk. Not nice...
null
CC BY-SA 2.5
null
2008-08-15T08:52:06.397
2013-04-03T07:47:51.953
2013-04-03T07:47:51.953
905
905
null
12,088
1
12,133
null
51
52,233
I wonder if anyone uses commercial/free java obfuscators on his own commercial product. I know only about one project that actually had an obfuscating step in the ant build step for releases. Do you obfuscate? And if so, why do you obfuscate? Is it really a way to protect the code or is it just a better feeling for t...
Do you obfuscate your commercial Java code?
CC BY-SA 2.5
0
2008-08-15T08:55:28.997
2014-06-25T13:09:33.270
2017-05-23T10:30:08.107
-1
834
[ "java", "obfuscation" ]
12,070
2
null
11,267
0
null
OK, I checked this out, Inheriting from WebControl rather than UserControl.. All worked fine. Looks like [Darren Kopp](https://stackoverflow.com/questions/11267/aspnet-usercontrols-and-defaultevent#11307) takes the crown for this one! Thanks for the input!
null
CC BY-SA 2.5
null
2008-08-15T08:22:42.447
2008-08-15T08:22:42.447
2017-05-23T12:33:27.093
-1
832
null
12,091
2
null
12,075
7
null
We currently obfuscate all our output, even though we are a small outfit who sells specialist software to a small number of clients. We made this decision for one simple reason - we discovered a disgruntled ex-employee was actively approaching our clients requesting binaries - there was some some concern he was intend...
null
CC BY-SA 2.5
null
2008-08-15T09:00:43.463
2008-08-15T09:00:43.463
null
null
770
null
12,089
2
null
11,740
1
null
Rather than use table prefixes instead have an application user that belongs to a `schema` (in MS Sql 2005 or above). This means that instead of: ``` select * from dbo.clientAProduct select * from dbo.clientBroduct ``` You have: ``` select * from clientA.Product select * from clientB.Product ```
null
CC BY-SA 3.0
null
2008-08-15T08:56:02.473
2012-05-18T21:46:19.433
2012-05-18T21:46:19.433
608
905
null
12,080
2
null
12,075
21
null
I wouldn't worry about it too much. I'd rather focus on putting out an awesome product, getting a good user base, and treating your customers right than worry about the minimal percentage of users concerned with stealing your code or looking at the source.
null
CC BY-SA 2.5
null
2008-08-15T08:39:57.140
2008-08-15T08:39:57.140
null
null
422
null
12,093
2
null
12,075
5
null
No new obfuscation, but lots of compiler tricks since 1.1 For instance every time you use an anonymous type you get IL that compiles back with a pretty obscure name. Every time you use yield you get a whole new class that implements both IEnumerable and IEnumerator (clever optimisation, unreadable code). Every time yo...
null
CC BY-SA 2.5
null
2008-08-15T09:14:09.270
2008-08-15T09:14:09.270
null
null
905
null
12,096
2
null
12,088
7
null
I guess it really comes down to your Java code is for, how it's distributed and who your clients are. We don't obfuscate anything, as we've never found one that was particularly good and it tends to be more trouble than it's worth. If someone has access to our JAR files and has the knowledge to be able to sniff around...
null
CC BY-SA 2.5
null
2008-08-15T09:22:45.320
2008-08-15T09:22:45.320
null
null
1,030
null
12,103
1
12,108
null
5
1,463
When I am running the following statement: ``` @filtered = map {s/&nbsp;//g} @outdata; ``` it is returning an empty list instead of the filtered list that I expected. What I am trying to do is remove every occurrence of `&nbsp;` from an array of string (which is an XML file). Obviously, I am not understanding some...
Why doesn't my Perl map return anything?
CC BY-SA 3.0
0
2008-08-15T09:38:31.250
2013-08-03T17:44:21.973
2013-08-03T17:44:21.973
471,272
274
[ "perl", "dictionary" ]
12,098
2
null
10,980
-3
null
I'm not a lawyer but all licenses mentioned are okay to be used in commercial products as long as you don't make any changes and claim the code is yours. I think if you don't wanna risk anything you should consult a lawyer.
null
CC BY-SA 2.5
null
2008-08-15T09:24:51.977
2008-08-15T09:24:51.977
null
null
198
null
12,106
2
null
10,810
2
null
I found out from the event log that there was a security issue with the user making the call to AzMan from a remote computer. The user did not belong the local Users group on the computer running ADAM/AzMan. When I corrected that everything worked again.
null
CC BY-SA 2.5
null
2008-08-15T09:44:36.773
2008-08-15T09:44:36.773
null
null
966
null
12,078
2
null
11,783
13
null
I'm guessing your code is like: ``` void DoSomethingIfCompFlag() { #if COMPILER_FLAG //your code #endif } ``` This won't get optimised out, however: ``` partial void DoSomethingIfCompFlag(); #if COMPILER_FLAG partial void DoSomethingIfCompFlag() { //your code } #endif ``` The first empty method is partia...
null
CC BY-SA 2.5
null
2008-08-15T08:38:41.137
2008-08-15T09:25:10.153
2008-08-15T09:25:10.153
905
905
null
12,104
2
null
12,095
2
null
Maybe you can try the BackgroundWorker component. It makes threading easier. Examples here: - [BackgroundWorker Threads and Supporting Cancel](http://www.codeproject.com/KB/cpp/BackgroundWorker_Threads.aspx)- [Using the BackgroundWorker Component in .NET 2 applications](http://www.c-sharpcorner.com/UploadFile/LivMic/B...
null
CC BY-SA 2.5
null
2008-08-15T09:38:36.613
2008-08-15T09:38:36.613
null
null
718
null
12,064
2
null
9,589
39
null
Other suggestions you may want to consider: - [Scons](http://www.scons.org/) is a cross-platform, cross-compiler build library, uses Python scripting for the build systems. Used in a variety of large projects, and performs very well.- If you're using [Qt](https://en.wikipedia.org/wiki/Qt_%28software%29), [QMake](https:...
null
CC BY-SA 4.0
null
2008-08-15T08:09:26.123
2022-06-27T20:40:00.207
2022-06-27T20:40:00.207
63,550
1,304
null
12,100
2
null
12,088
18
null
I use proguard for JavaME development. It's not only very very good at making jar files smaller (Essential for mobile) but it is useful as a nicer way of doing device-specific code without resorting to IDE-unfriendly preprocessing tools such as antenna. E.g. ``` public void doSomething() { /* Generated config cla...
null
CC BY-SA 2.5
null
2008-08-15T09:29:07.790
2008-08-15T09:29:07.790
null
null
974
null
12,107
1
12,114
null
3
3,867
We were having a problem with our build server not checking out modifications from source control despite recognizing that there had been changes. It was traced to the control folder (not sure what it's real name is), the existing working builds were using _svn. Clearing the working folder forced a new complete checko...
Configuring VisualSVN Server to use _svn instead of .svn
CC BY-SA 2.5
null
2008-08-15T09:47:38.110
2012-10-12T15:55:53.643
2012-10-12T15:55:53.643
761,095
982
[ "svn", "version-control", "visualsvn-server" ]
12,114
2
null
12,107
6
null
The business about _svn vs. .svn was an issue with Visual Studio web projects only (and I'm fairly sure it was fixed in VS2005 anyway), it's not a general "_svn works better with VS" thing. It's also only a working-copy issue, not a repository issue - i.e. it doesn't matter if some users of SVN are using clients set u...
null
CC BY-SA 2.5
null
2008-08-15T09:57:38.620
2009-03-24T11:07:18.997
2009-03-24T11:07:18.997
28,169
987
null
12,112
2
null
12,107
0
null
As far as I know _svn is needed, because WebApplications have problems when one of their directories begins with a point.
null
CC BY-SA 2.5
null
2008-08-15T09:54:52.150
2008-08-15T09:54:52.150
null
null
1,069
null
12,109
2
null
12,095
-1
null
Are you sure that the UI thread is running freely during all this process? i.e. it's not sitting blocked-up on a Join or some other wait? That's what it looks like to me. The suggestion of using BackgroundWorker is a good one - definitely superior to trying to sledge-hammer your way out of the problem with a load of...
null
CC BY-SA 2.5
null
2008-08-15T09:50:34.517
2008-08-15T09:50:34.517
null
null
987
null
12,115
2
null
12,095
0
null
Maybe outside of the scope but, to sometimes its useful to do an `Application.DoEvents();` to make the gui parts react to user input, such as pressing the cancel-button on a status bar dialog.
null
CC BY-SA 2.5
null
2008-08-15T09:58:15.797
2008-08-15T09:58:15.797
null
null
1,192
null
12,119
2
null
12,095
0
null
@John Thanks for the links. @Will There's no gain from threadpooling as I know it will only ever spawn one thread. The use of a thread is purely to have a responsive UI while SQL Server is being pounded with reads and writes. It's certainly not a short lived thread. Regarding sledge-hammers you're right. But, as i...
null
CC BY-SA 2.5
null
2008-08-15T10:07:06.447
2008-08-15T10:07:06.447
null
null
2,083,160
null
12,110
2
null
12,107
3
null
I've been using .svn with Visual Studio 2008 and 2005 as well as on our CC.Net integration server (with MSBuild) with no issues. I'd stick with the .svn format.
null
CC BY-SA 2.5
null
2008-08-15T09:50:59.587
2008-08-15T10:17:38.267
2008-08-15T10:17:38.267
905
905
null
12,118
2
null
12,095
0
null
Do you by any chance run Windows Vista? I've noticed the exactly same thing in some work related applications. Somehow, there seem to be a delay when the progress bar "animates".
null
CC BY-SA 2.5
null
2008-08-15T10:01:57.550
2008-08-15T10:01:57.550
null
null
936
null
12,117
2
null
12,107
2
null
> [http://subversion.tigris.org/svn_1.3_releasenotes.html](http://subversion.tigris.org/svn_1.3_releasenotes.html)Need to read the "Official support for Windows '_svn' directories (client and language bindings)" section And need to be aware that you're reading documentation which is several years old, a fact which...
null
CC BY-SA 2.5
null
2008-08-15T10:01:03.217
2008-08-15T10:01:03.217
null
null
987
null
12,108
2
null
12,103
10
null
Try this: ``` @filtered = map {s/&nbsp;//g; $_} @outdata; ``` The problem is the s operator in perl modifies $_ but actually returns the number of changes it made. So, the extra $_ at the end causes perl to return the modified string for each element of @outdata.
null
CC BY-SA 2.5
null
2008-08-15T09:49:17.153
2008-08-15T09:49:17.153
null
null
893
null
12,129
2
null
8,761
1
null
> Looks like CMFCVisualManager offers several methods for getting color information, e.g.CMFCVisualManager::GetSmartDockingBaseGuideColors() CMFCVisualManager::GetToolbarHighlightColor()Take a look at the MSDN docs for CMFCVisualManager. Good suggestion, but unfortunately they just return various shades of grey, when c...
null
CC BY-SA 2.5
null
2008-08-15T10:39:39.003
2008-08-15T10:39:39.003
2020-06-20T09:12:55.060
-1
1,078
null
12,120
2
null
11,145
2
null
The simple answer is that (at time of writing) what you want almost certainly didn't exist. Sorry! If you're Windows-based then I'd look for a product in the .NET space, where I expect you'd find something. You're probably going to have to pay real money though. I suppose, if you're brave, you may be able to talk to i...
null
CC BY-SA 3.0
null
2008-08-15T10:07:39.113
2014-12-04T05:43:41.117
2014-12-04T05:43:41.117
128,421
1,060
null
12,125
2
null
12,095
-1
null
> There's no gain from threadpooling as I know it will only ever spawn one thread. The use of a thread is purely to have a responsive UI while SQL Server is being pounded with reads and writes. It's certainly not a short lived thread. OK, I appreciate that, and glad you found your bug, but have you looked ...
null
CC BY-SA 2.5
null
2008-08-15T10:20:01.663
2008-08-15T10:20:01.663
null
null
987
null
12,130
2
null
10,599
2
null
@David H. Aust Using onblur for validation is problematic, because some folks use the enter key, not the mouse, to submit a form. Using onblur and the form's onsubmit event in conjunction could be a better solution. Back when I did JS validation for forms a lot more, I would run against keyup events. This gave the use...
null
CC BY-SA 2.5
null
2008-08-15T10:47:34.683
2008-08-15T10:47:34.683
null
null
1,344
null
12,133
2
null
12,088
64
null
If you do obfuscate, stay away from obfuscators that modify the code by changing code flow and/or adding exception blocks and such to make it hard to disassemble it. To make the code unreadable it is usually enough to just change all names of methods, fields and classes. The reason to stay away from changing code flow...
null
CC BY-SA 3.0
null
2008-08-15T10:57:31.463
2014-06-25T13:09:33.270
2014-06-25T13:09:33.270
988
988
null
12,055
2
null
10,793
12
null
mmilic, following on from [your response](https://stackoverflow.com/questions/10793/catching-unhandled-exceptions-in-aspnet-usercontrols#10910) to my [previous idea](https://stackoverflow.com/questions/10793/catching-unhandled-exceptions-in-aspnet-usercontrols#10815).. No additional logic required! That's the point, y...
null
CC BY-SA 2.5
null
2008-08-15T07:49:57.927
2008-08-15T08:11:27.570
2017-05-23T11:54:58.043
-1
832
null
12,136
2
null
12,135
4
null
The delay is because, having been unable to find the custom serializer dll, the system is building the equivalent code (which is very time-consuming) on the fly. The way to avoid the delay is to have the system build the DLL, and make sure it's available to the .EXE - have you tried this?
null
CC BY-SA 2.5
null
2008-08-15T11:06:41.773
2008-08-15T11:06:41.773
null
null
987
null
12,135
1
12,160
null
12
16,459
I'm using an XmlSerializer to deserialize a particular type in mscorelib.dll ``` XmlSerializer ser = new XmlSerializer( typeof( [.Net type in System] ) ); return ([.Net type in System]) ser.Deserialize( new StringReader( xmlValue ) ); ``` This throws a caught `FileNotFoundException` when the assembly is loaded: > "...
FileNotFoundException for mscorlib.XmlSerializers.DLL, which doesn't exist
CC BY-SA 2.5
0
2008-08-15T11:03:30.157
2011-03-30T11:36:50.220
2009-04-25T11:23:24.013
49,246
905
[ "c#", ".net", "serialization", "assemblies" ]
12,132
2
null
12,039
10
null
I usually go to the System control panel, then Advanced tab, then Environment. You can then add the requisite `_NT_SYMBOL_PATH` variable. Then you don't have to do anything on the command-line before running WinDbg. The setting of `srv*C:\Windows\Symbols*http`:`//msdl.microsoft.com/download/symbols` as suggested by st...
null
CC BY-SA 2.5
null
2008-08-15T10:56:39.937
2008-08-15T10:56:39.937
null
null
13
null
12,137
2
null
9,033
437
null
> From [CLR via C#](https://rads.stackoverflow.com/amzn/click/com/0735621632):When normalizing strings, it is highly recommended that you use ToUpperInvariant instead of ToLowerInvariant because . I remember one time my coworker always changed strings to uppercase before comparing. I've always wondered why he do...
null
CC BY-SA 2.5
null
2008-08-15T11:06:48.747
2008-08-15T11:06:48.747
null
null
718
null
12,140
1
12,185
null
2
667
A database application that I'm currently working on, stores all sorts of settings in the database. Most of those settings are there to customize certain business rules, but there's also some other stuff in there. The app contains objects that specifically do a certain task, e.g., a certain complicated calculation. Th...
Access to global application settings
CC BY-SA 2.5
null
2008-08-15T11:12:35.240
2013-01-22T10:22:58.130
null
null
1,037
[ "language-agnostic", "oop" ]
12,142
1
12,441
null
8
16,214
I installed VS SP1 and played around with Entity Framework. I created a schema from an existing database and tried some basic operations. Most of it went well, except the database schema update. I changed the database in every basic way: - - - - - The first three went well, but the type change and the column dele...
Update database schema in Entity Framework
CC BY-SA 2.5
0
2008-08-15T11:15:05.080
2013-07-19T06:02:07.457
2008-08-25T05:05:06.977
2,134
968
[ ".net", "entity-framework", "schema" ]
12,143
2
null
12,141
1
null
I dropped the live database and deleted it. Lesson learned: ensure you know your SQL - and make sure that you back up before you touch stuff.
null
CC BY-SA 2.5
null
2008-08-15T11:15:45.483
2008-11-09T17:24:30.207
2008-11-09T17:24:30.207
6,461
null
null
12,138
2
null
11,516
2
null
Perhaps this might help: Create a new Binding when you set the HeaderProperty property on the Header dependency property: Header property is your normal everyday DependencyProperty: ``` public string Header { get { return (string)GetValue(HeaderProperty); } set { SetValue(HeaderProperty, value); ...
null
CC BY-SA 3.0
null
2008-08-15T11:08:05.780
2012-08-11T15:49:40.103
2012-08-11T15:49:40.103
1,477,076
900
null
12,146
2
null
12,141
1
null
I discovered I didn't understand Oracle redo log files (terminology? it was a long time ago) and lost a weeks' trade data, which had to be manually re-keyed from paper tickets. There a silver lining - during the weekend I spent inputting, I learned a lot about the useability of my trade input screen, which improved d...
null
CC BY-SA 2.5
null
2008-08-15T11:22:33.643
2008-08-15T11:22:33.643
null
null
1,060
null
12,141
1
null
null
6
3,508
For example: Updating all rows of the customer table because you forgot to add the where clause. 1. What was it like, realizing it and reporting it to your coworkers or customers? 2. What were the lessons learned?
What is the worst database accident that happened to you in production?
CC BY-SA 3.0
0
2008-08-15T11:13:53.070
2018-02-23T00:41:11.817
2012-01-31T16:47:29.200
4,714
990
[ "database", "production" ]
12,150
2
null
12,141
1
null
Worst case scenario for most people is production data loss, but if they're not running nightly backups or replicating data to a DR site, then they deserve everything they get! @[Keith](https://stackoverflow.com/questions/12141/whats-your-worst-database-accident-happened-in-production#12145) in T-SQL, isn't the FROM k...
null
CC BY-SA 2.5
null
2008-08-15T11:30:17.903
2008-08-15T11:30:17.903
2017-05-23T12:19:33.570
-1
1,030
null
12,147
2
null
12,144
-3
null
What platform are you working on? I'd recommend trying to use the preferred/common method for it. 1. MacOSX - plists 2. Win32 - Registry (or are there a new one here, long since I developed on it) 3. Linux/Unix - ~/.apprc (name-value perhaps)
null
CC BY-SA 2.5
null
2008-08-15T11:27:09.033
2008-08-15T11:27:09.033
null
null
842
null
12,149
2
null
12,141
13
null
I think my worst mistake was ``` truncate table Customers truncate table Transactions ``` I didnt see what MSSQL server I was logged into, I wanted to clear my local copy out...The familiar "OH s**t" when it was taking significantly longer than about half a second to delete, my boss noticed I went visibily white, an...
null
CC BY-SA 2.5
null
2008-08-15T11:28:08.407
2008-08-15T11:38:00.587
2008-08-15T11:38:00.587
1,276
1,276
null