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
18,062
2
null
18,034
30
null
> from [http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#selfcert](http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#selfcert): 1. Make sure OpenSSL is installed and in your PATH. 2. Run the following command, to create server.key and server.crt files: openssl req -new -x509 -nodes -out server.crt -keyout server.k...
null
CC BY-SA 3.0
null
2008-08-20T14:11:40.883
2014-02-17T20:03:52.220
2014-02-17T20:03:52.220
348,314
202
null
18,080
1
2,515,243
null
4
1,181
Are there any open source (or I guess commercial) packages that you can plug into your site for monitoring purposes? I'd like something that we can hook up to our ASP.NET site and use to provide reporting on things like: - - - - - Ideally in c# :) With some sexy graphs. : I'd also be happy with a package that I ca...
Best traffic / performance / usage monitoring module?
CC BY-SA 3.0
0
2008-08-20T14:20:40.020
2014-09-16T22:34:32.530
2014-09-16T22:34:32.530
1,783,619
2,086
[ "performance", "monitoring", "usage-statistics" ]
18,066
2
null
7,084
4
null
I like using stdint.h types for defining system APIs specifically because they explicitly say how large items are. Back in the old days of Palm OS, the system APIs were defined using a bunch of wishy-washy types like "Word" and "SWord" that were inherited from very classic Mac OS. They did a cleanup to instead say In...
null
CC BY-SA 2.5
null
2008-08-20T14:12:16.360
2008-08-20T14:12:16.360
null
null
1,323
null
18,089
2
null
18,035
3
null
Another technical benefit, aside from the increased address space, is that 64bit apps [always use DEP](http://blogs.technet.com/robert_hensing/archive/2007/04/04/dep-on-vista-explained.aspx), so you are forced to fix those bugs and potential security holes.
null
CC BY-SA 2.5
null
2008-08-20T14:23:46.037
2008-08-20T14:23:46.037
null
null
1,367
null
18,076
2
null
18,035
1
null
DotNet rocks had a recent show all about the benefits and pitfalls of going 64-bit from a .Net developer perspective. [http://www.dotnetrocks.com/default.aspx?showNum=341](http://www.dotnetrocks.com/default.aspx?showNum=341) There are the obvious benefits of having access to more RAM in windows, as well as the obviou...
null
CC BY-SA 2.5
null
2008-08-20T14:18:20.493
2008-08-20T14:18:20.493
null
null
1,908
null
18,094
2
null
18,080
0
null
[Google Analytics](http://google.com/analytics) is free (up to 50,000 hits per month I think) and is easy to setup with just a little javascript snippet to insert into your header or footer and has great detailed reports, with some very nice graphs.
null
CC BY-SA 2.5
null
2008-08-20T14:25:01.150
2008-08-20T14:25:01.150
null
null
194
null
18,077
1
19,329
null
12
6,869
I wanted some of those spiffy rounded corners for a web project that I'm currently working on. I thought I'd try to accomplish it using javascript and not CSS in an effort to keep the requests for image files to a minimum (yes, I know that it's possible to combine all required rounded corner shapes into one image) and...
The best way of checking for -moz-border-radius support
CC BY-SA 3.0
0
2008-08-20T14:18:33.287
2016-02-08T13:23:17.700
2016-02-08T13:23:17.700
92,701
2,114
[ "javascript", "css" ]
18,091
2
null
17,032
0
null
> I'm seeing a pattern for stackoverflow success: dig up old CodingHorror posts and (Jeopardy style) phrase them in terms of a question. I plead innocent! But you're right, this seemed to be a relatively popular little question.
null
CC BY-SA 2.5
null
2008-08-20T14:24:04.023
2008-08-20T14:24:04.023
null
null
1,853
null
18,098
2
null
18,080
0
null
Google Analytics is quick to set up and provides more sexy graphs than you can shake a stick at. [http://www.google.com/analytics/](http://www.google.com/analytics/)
null
CC BY-SA 2.5
null
2008-08-20T14:26:37.573
2008-08-20T14:26:37.573
null
null
2,084
null
18,096
2
null
17,056
5
null
If you're just searching people's names, it might be in your best interest to not even use the full text index. Full text index makes sense when you have large text fields, but if you're mostly dealing with one word per field, I'm not sure how much extra you would get out of full text indexes. Waiting for the full te...
null
CC BY-SA 2.5
null
2008-08-20T14:25:57.700
2008-08-20T14:25:57.700
null
null
1,862
null
18,097
1
18,109
null
55
21,964
In C#, if I have an inherited class with a default constructor, do I have to explicitly call the base class' constructor or will it be implicitly called? ``` class BaseClass { public BaseClass() { // ... some code } } class MyClass : BaseClass { public MyClass() // Do I need to put ": base()" h...
In C#, do you need to call the base constructor?
CC BY-SA 3.0
0
2008-08-20T14:26:32.910
2017-03-10T17:09:23.080
2013-06-14T18:00:51.887
1,159,478
1,463
[ "c#", "inheritance", "constructor" ]
18,102
2
null
18,097
7
null
It is implied.
null
CC BY-SA 2.5
null
2008-08-20T14:28:50.563
2008-08-20T14:28:50.563
null
null
200
null
18,086
2
null
16,935
0
null
Here is what I found. After posting my question I went on and modified the compile task with the attributes `fork="true"`, `memoryinitialsize="256m"` and `memorymaximumsize="1024m"` (a found today that this was suggested by Kieron and jmanning2k, thanks for your time). This didn't solve the problem nonetheless. I deci...
null
CC BY-SA 2.5
null
2008-08-20T14:23:06.457
2008-08-20T14:23:06.457
null
null
2,024
null
18,093
1
18,877
null
1
476
We are investigating using CruiseControl.NET as both a Continues Integration build provider, as well as automating the first part of our deployment process. Has anyone modified CruiseControl.NET's dashboard to add custom login and user roles (IE, Separate out access to forcing a build to only certain individuals on a ...
Modifying Cruise Control.NET
CC BY-SA 2.5
null
2008-08-20T14:24:33.770
2012-08-11T16:03:23.180
null
null
1,965
[ "cruisecontrol.net", "nvelocity" ]
18,082
1
1,830,844
null
2,543
1,560,538
What's the cleanest, most effective way to validate decimal numbers in JavaScript? Bonus points for: 1. Clarity. Solution should be clean and simple. 2. Cross-platform. Test cases: ``` 01. IsNumeric('-1') => true 02. IsNumeric('-1.5') => true 03. IsNumeric('0') => true 04. IsNumeric('0.42') => t...
Validate decimal numbers in JavaScript - IsNumeric()
CC BY-SA 3.0
0
2008-08-20T14:21:13.793
2023-01-17T12:05:45.190
2016-12-07T03:57:31.890
2,571,493
29
[ "javascript", "validation", "numbers" ]
18,100
2
null
18,097
0
null
AFAIK, you only need to call the base constructor if you need to pass down any values to it.
null
CC BY-SA 2.5
null
2008-08-20T14:28:05.493
2008-08-20T14:28:05.493
null
null
960
null
18,107
2
null
18,010
2
null
I started with AnkhSvn and then moved on to VisualSvn. I have my own gripes with VisualSvn but its far less trouble compared to Ankh. I'm yet to try the new version of Ankh which they say is a complete rewrite and had inputs from Microsoft dev team as well.
null
CC BY-SA 2.5
null
2008-08-20T14:31:47.560
2008-08-20T14:31:47.560
null
null
2,137
null
18,103
2
null
17,840
2
null
I found [an interesting article about implementing a parser combinator in C#](http://blogs.msdn.com/lukeh/archive/2007/08/19/monadic-parser-combinators-using-c-3-0.aspx). It also references some more general papers on the subject. [The Wikipedia article on the subject](http://en.wikipedia.org/wiki/Parser_Combinator) a...
null
CC BY-SA 2.5
null
2008-08-20T14:29:11.700
2008-08-20T14:29:11.700
null
null
1,709
null
18,109
2
null
18,097
63
null
You do not need to explicitly call the base constructor, it will be implicitly called. Extend your example a little and create a Console Application and you can verify this behaviour for yourself: ``` using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) ...
null
CC BY-SA 2.5
null
2008-08-20T14:32:49.883
2008-08-20T14:32:49.883
null
null
2,084
null
18,129
2
null
16,808
0
null
It seems Microsoft Style Cop was causing the issue. It was not registered as an Add-in, but was integrated into VS2005 on some deeper level.
null
CC BY-SA 3.0
null
2008-08-20T14:46:08.947
2013-01-22T13:48:21.677
2013-01-22T13:48:21.677
1,410,342
1,624
null
18,115
2
null
18,097
5
null
A derived class is built upon the base class. If you think about it, the base object has to be instantiated in memory before the derived class can be appended to it. So the base object will be created on the way to creating the derived object. So no, you do not call the constructor.
null
CC BY-SA 2.5
null
2008-08-20T14:38:08.870
2008-08-20T14:38:08.870
null
null
1,188
null
18,132
1
null
null
34
24,231
So the ADO.NET Entity Framework has gotten a little bit of bad press (in the form of blog entries and a petition) but I don't want to rush to judgement. I'm limited in time for experimentation but I was wondering has anyone worked with it yet with more empirical feedback? Finally, what are thoughts on using NHibernat...
ADO.NET Entity Framework vs NHibernate
CC BY-SA 3.0
0
2008-08-20T14:48:00.377
2016-04-14T09:35:36.467
2016-04-14T08:39:53.097
750,216
64
[ "nhibernate", "entity-framework", "orm", "ado.net" ]
18,119
1
18,490
null
4
1,540
In a world where manual memory allocation and pointers still rule (Borland Delphi) I need a general solution for what I think is a general problem: At a given moment an object can be referenced from multiple places (lists, other objects, ...). Is there a good way to keep track of all these references so that I can upd...
How to keep track of the references to an object?
CC BY-SA 3.0
null
2008-08-20T14:39:12.923
2017-12-14T09:49:31.257
2017-12-14T09:49:31.257
3,817,004
null
[ "oop", "delphi" ]
18,117
2
null
17,965
4
null
By default you will get a core file. Check to see that the current directory of the process is writable, or no core file will be created.
null
CC BY-SA 2.5
null
2008-08-20T14:38:36.623
2008-08-20T14:38:36.623
null
null
116
null
18,150
2
null
16,233
1
null
IE supports `@font-face` (it started out as their proprietary technology in MS Word). [Here's a blog post from the IE team about it just about a month ago](http://blogs.msdn.com/ie/archive/2008/07/21/font-embedding-on-the-web.aspx).
null
CC BY-SA 3.0
null
2008-08-20T14:54:22.793
2014-05-03T17:55:42.023
2014-05-03T17:55:42.023
707,111
1,786
null
18,111
2
null
15,954
0
null
The result from the hash differs between the C++ and C# implementation. I figured out that str parameter needs to be passed as a byte array. ``` private uint sdbm(byte[] str) { uint hash = 0; foreach (char ch in str) hash = ch + (hash << 6) + (hash << 16) - hash; return hash; } ``` Call the met...
null
CC BY-SA 4.0
null
2008-08-20T14:34:20.080
2019-11-27T02:05:00.033
2019-11-27T02:05:00.033
3,968,623
1,658
null
18,155
2
null
18,119
1
null
I can't quite figure out why you'd want to do this. Surely you would just check a reference in not Nil before using it? Anwyays, two possible solutions I would consider are: 1. Have objects manager their own reference counts. 2. Create a reference counting manager class. I would probably add AddRef() and ReleaseR...
null
CC BY-SA 2.5
null
2008-08-20T14:56:44.897
2008-08-20T14:56:44.897
null
null
2,019
null
18,127
2
null
18,010
1
null
I've been using both the newest version of Ankh SVN and Tortoise on a project at home. I find them to both be very good with a caveat. I've found that both SVN tools have at times failed to keep up with my file/folder renaming and moving resulting in it thinking that a perfectly good file needs to be deleted on the ne...
null
CC BY-SA 2.5
null
2008-08-20T14:45:47.760
2008-08-20T14:45:47.760
null
null
2,086
null
18,138
2
null
18,059
1
null
I haven't seen the browser eat exceptions, unless you mean script errors. Script errors can be enabled via the `browser.ScriptErrorsSuppressed` property. If you're talking about real exceptions, not just script errors, can you show us some code that reproduces the problem? We've used the browser extensively and haven'...
null
CC BY-SA 2.5
null
2008-08-20T14:49:30.340
2008-08-27T17:33:39.080
2008-08-27T17:33:39.080
536
536
null
18,158
2
null
9,033
19
null
I see a lot of people replicate the functionality of `Nullable<T>.GetValueOrDefault(T)`.
null
CC BY-SA 2.5
null
2008-08-20T15:00:30.173
2009-07-23T18:48:37.507
2009-07-23T18:48:37.507
113,116
1,786
null
18,144
2
null
17,056
2
null
Another approach could be to abstract the searching away from the individual fields. In other words create a view on your data which turns all the split fields like firstname lastname into concatenated fields i.e. full_name Then search on the view. This would likely make the search query simpler.
null
CC BY-SA 2.5
null
2008-08-20T14:51:03.147
2008-08-20T14:51:03.147
null
null
1,970
null
18,141
2
null
18,035
2
null
I switched from 32 bit Vista to 64 bit and haven't looked back. I have only had a problem with one device (a multi-track firewire mixing board) - but everything else that has worked for 32-bit works for 64. Throw in the ability to add piles of cheap RAM, and I don't see any reason why anyone would stick with 32 if th...
null
CC BY-SA 2.5
null
2008-08-20T14:49:56.113
2008-08-20T14:49:56.113
null
null
2,130
null
18,085
2
null
18,082
84
null
This way seems to work well: ``` function IsNumeric(input){ var RE = /^-{0,1}\d*\.{0,1}\d+$/; return (RE.test(input)); } ``` In one line: ``` const IsNumeric = (num) => /^-{0,1}\d*\.{0,1}\d+$/.test(num); ``` And to test it: ``` const IsNumeric = (num) => /^-{0,1}\d*\.{0,1}\d+$/.test(num); func...
null
CC BY-SA 4.0
null
2008-08-20T14:22:56.270
2020-03-14T06:54:04.693
2020-03-14T06:54:04.693
4,832,311
29
null
18,148
2
null
18,082
6
null
A couple of tests to add: ``` IsNumeric('01.05') => false IsNumeric('1.') => false IsNumeric('.') => false ``` I came up with this: ``` function IsNumeric(input) { return /^-?(0|[1-9]\d*|(?=\.))(\.\d+)?$/.test(input); } ``` The solution covers: - - -
null
CC BY-SA 3.0
null
2008-08-20T14:53:26.883
2011-05-25T09:25:24.257
2011-05-25T09:25:24.257
63,550
2,120
null
18,173
2
null
18,132
4
null
Microsoft have all but admitted that the ADO.Net Entity Framework isn't an ORM (I can't find a reference currently). So if you think of the Entity Framework as a query engine then apparently it is really good at what it does. For a complete ORM solution you might want to look elsewhere however. The following blog post...
null
CC BY-SA 2.5
null
2008-08-20T15:04:33.660
2008-08-20T15:04:33.660
null
null
1,908
null
18,175
2
null
12,843
3
null
If you aren't using the same code across the projects, keep them separate. You can set personal repository of each of those projects to be just a directory apart. Why mix all the branches, merges, and commit comments when you don't have to. Pushing from One repository to Another. You can always use the [transplant](...
null
CC BY-SA 3.0
null
2008-08-20T15:05:01.037
2017-05-31T11:31:30.490
2017-05-31T11:31:30.490
1,000,551
157
null
18,172
1
19,606
null
15
4,586
I am looking for a robust way to copy files over a Windows network share that is tolerant of intermittent connectivity. The application is often used on wireless, mobile workstations in large hospitals, and I'm assuming connectivity can be lost either momentarily or for several minutes at a time. The files involved are...
Copying Files over an Intermittent Network Connection
CC BY-SA 2.5
0
2008-08-20T15:04:20.930
2012-07-18T23:33:11.240
2010-12-08T20:16:49.337
166,749
2,144
[ "windows", "vb6", "network-programming", "wireless", "intermittent" ]
18,165
2
null
18,119
0
null
Are you trying to keep track of who's referencing an object so you can clear those references when the object is destroyed, or are you trying to keep track of when it's safe to destroy the object? If the latter then it sounds like you're looking for a garbage collector. I've never dealt with Delphi so I don't know if...
null
CC BY-SA 2.5
null
2008-08-20T15:02:30.170
2008-08-20T15:02:30.170
null
null
1,409
null
18,167
1
null
null
5
6,920
I've got a database server that I am unable to connect to using the credentials I've been provided. However, on the staging version of the same server, there's a linked server that points to the production database. Both the staging server and the linked server have the same schema. I've been reassured that I should e...
What's the ASP.NET Connection String Format for a Linked Server?
CC BY-SA 2.5
null
2008-08-20T15:03:26.597
2009-06-29T13:28:10.100
null
null
1,124
[ "asp.net", "sql-server" ]
18,185
2
null
18,097
9
null
It's implied for base parameterless constructors, but it is needed for defaults in the current class: ``` public class BaseClass { protected string X; public BaseClass() { this.X = "Foo"; } } public class MyClass : BaseClass { public MyClass() // no ref to base needed { /...
null
CC BY-SA 3.0
null
2008-08-20T15:11:19.430
2017-03-10T17:09:23.080
2017-03-10T17:09:23.080
905
905
null
18,178
2
null
18,172
5
null
Try using BITS (Background Intelligent Transfer Service). It's the infrastructure that Windows Update uses, is accessible via the Win32 API, and is built specifically to address this. It's usually used for application updates, but should work well in any file moving situation. [http://www.codeproject.com/KB/IP/bitsma...
null
CC BY-SA 2.5
null
2008-08-20T15:06:53.420
2008-08-20T15:06:53.420
null
null
1,975,282
null
18,194
1
18,211
null
4
12,993
So I'm getting a new job working with databases (Microsoft SQL Server to be precise). I know nothing about SQL much less SQL Server. They said they'd train me, but I want to take some initiative to learn about it on my own to be ahead. Where's the best place to start (tutorials, books, etc)? I want to learn more ab...
Best way to learn SQL Server
CC BY-SA 2.5
0
2008-08-20T15:14:13.247
2013-11-19T00:22:15.373
2009-07-17T11:23:25.713
76,337
2,147
[ "sql", "sql-server", "database" ]
18,186
2
null
18,132
13
null
NHibernate may be more mature. That does not necessarily mean it is a "better" solution. Having used it at my job for some time, I would personally prefer to use almost anything than NHibernate (even straight SQL, if migration were remotely feasible). The number of error messages thrown by NHibernate that don't mean an...
null
CC BY-SA 2.5
null
2008-08-20T15:11:36.437
2008-08-20T15:11:36.437
null
null
1,975,282
null
18,179
2
null
18,172
0
null
How about simply sending a hash after or before you send the file, and comparing that with the file you received? That should at least make sure you have a correct file. If you want to go all out you could do the same process, but for small parts of the file. Then when you have all pieces, join them on the receiving e...
null
CC BY-SA 2.5
null
2008-08-20T15:08:15.757
2008-08-20T15:08:15.757
null
null
909
null
18,202
2
null
17,980
2
null
> 10.1f means floating point with 1 place after the decimal point and the 10 places before the decimal point. If the number has less than 10 digits, it's padded with spaces. 10.2f is the same, but with 2 places after the decimal point. On every system I've seen, from Unix to Rails Migrations, this is not the case. @r...
null
CC BY-SA 2.5
null
2008-08-20T15:17:26.280
2008-08-20T15:17:26.280
null
null
1,190
null
18,197
1
18,263
null
12
1,196
How do you test the usability of the user interfaces of your applications - be they web or desktop? Do you just throw it all together and then tweak it based on user experience once the application is live? Or do you pass it to a specific usability team for testing prior to release? We are a small software house, bu...
How do you test the usability of your user interfaces
CC BY-SA 2.5
0
2008-08-20T15:15:06.333
2020-07-27T16:34:41.250
2008-12-10T09:27:07.920
770
770
[ "user-interface", "testing", "usability" ]
18,170
2
null
18,097
30
null
It is implied, provided it is parameterless. This is because you , see the code below for an example: ``` public class SuperClassEmptyCtor { public SuperClassEmptyCtor() { // Default Ctor } } public class SubClassA : SuperClassEmptyCtor { // No Ctor's this is fine since we have // a defaul...
null
CC BY-SA 2.5
null
2008-08-20T15:03:55.457
2008-08-20T15:03:55.457
null
null
832
null
18,209
2
null
18,194
0
null
Yikes...first I'd say "Best of luck to ya!" Then secondly if you are really serious that you have no experiences with SQL I'd say find one of the SAMS "Teach Yourself SQL in 34 nanoseconds" books. Normally I'd never recommend a SAMS book, but if you are the stalwart type to accept a job you know nothing about then......
null
CC BY-SA 2.5
null
2008-08-20T15:19:22.610
2008-08-20T15:19:22.610
null
null
1,975
null
18,210
2
null
18,197
7
null
What I like to do is give someone an install package, ask them to perform a number of tasks related to how the application works, and watch. Hardest part is to keep your mouth shut.
null
CC BY-SA 2.5
null
2008-08-20T15:19:50.830
2008-08-20T15:19:50.830
null
null
null
null
18,207
2
null
18,197
1
null
I frequently take any new interface I'm working on to one of our technical support people. They've heard every complaint about interfaces that you could ever imagine, so if anyone is going to think up potential problems, they will. Also, and I'm not kidding about this, I often take the least computer literate person ...
null
CC BY-SA 2.5
null
2008-08-20T15:19:16.387
2008-08-20T15:19:16.387
null
null
194
null
18,211
2
null
18,194
5
null
If you're planning on coding against a sql database using .NET, skip ADO and go directly to Linq. You will NOT miss anything. Oh, also, Joe Celko. If you see his name on an article or a book about SQL, read it.
null
CC BY-SA 2.5
null
2008-08-20T15:21:18.503
2008-08-20T15:21:18.503
null
null
null
null
18,166
1
18,287
null
4
3,418
I am attempting to POST against a vendor's server using PHP 5.2 with cURL. I'm reading in an XML document to post against their server and then reading in a response: ``` $request = trim(file_get_contents('test.xml')); $curlHandle = curl_init($servletURL); curl_setopt($curlHandle, CURLOPT_POST, TRUE); curl_setopt($cur...
cURL adding whitespace to post content?
CC BY-SA 2.5
null
2008-08-20T15:02:49.233
2016-01-15T14:34:02.920
2008-08-20T15:27:54.680
204
204
[ "php", "xml", "curl" ]
18,213
2
null
18,197
2
null
Normally, we test the usability of new interfaces by asking a small selection of users to try out a beta version. We give a small amount of instruction as to what the new features/screens are supposed to do and let them dive straight into it. It's very interesting to see where they are looking and clicking. We never ...
null
CC BY-SA 2.5
null
2008-08-20T15:22:20.327
2008-08-20T15:22:20.327
null
null
2,019
null
18,196
2
null
18,097
-3
null
You don’t need call the base constructor explicitly it will be implicitly called, but sometimes you need pass parameters to the constructor in that case you can do something like: ``` using System; namespace StackOverflow.Examples { class Program { static void Main(string[] args) { ...
null
CC BY-SA 2.5
null
2008-08-20T15:14:37.193
2008-08-20T15:14:37.193
null
null
2,143
null
18,228
2
null
16,926
1
null
I disagree with Jon. While this solution can be used poorly in the way he describes, it does not necessarily mean it will. Any wise developer or designer is going to take the script generated css classes and pull only what is really needed into the css file. The solution still solves the OP's question.
null
CC BY-SA 2.5
null
2008-08-20T15:31:16.247
2008-08-20T15:31:16.247
null
null
417
null
18,224
1
18,231
null
6
503
So, in your experience, whats the best way? Is there a secure way that's also scriptable/triggerable in a build automation tool? Edit: I should mention this is windows/.net and I'll be deploying to iis6
Whats the best way to securely publish a site post build?
CC BY-SA 2.5
0
2008-08-20T15:26:28.973
2010-06-15T00:08:33.300
2008-08-22T22:35:45.430
1,946
1,946
[ ".net", "windows", "deployment", "iis-6" ]
18,216
1
18,239
null
2
915
I'm not quite sure if this is possible, or falls into the category of pivot tables, but I figured I'd go to the pros to see. I have three basic tables: Card, Property, and CardProperty. Since cards do not have the same properties, and often multiple values for the same property, I decided to use the union table approa...
Query a union table with fields as columns
CC BY-SA 3.0
null
2008-08-20T15:23:02.400
2021-05-20T15:21:44.293
2017-08-04T14:14:30.530
1,836,618
71
[ "sql", "database-design", "stored-procedures" ]
18,226
2
null
17,056
4
null
Thanks for the responses guys I finally was able to get it to work. With part of both Biri, and Kibbee's answers. I needed to add * to the string and break it up on spaces in order to work. So in the end I got ``` .... @Name nvarchar(100), .... --""s added to prevent crash if searching on more then one word. DECLARE @...
null
CC BY-SA 3.0
null
2008-08-20T15:28:21.450
2012-04-17T19:44:13.180
2012-04-17T19:44:13.180
1,925
1,925
null
18,215
2
null
18,166
3
null
Not an answer, but I find the whole fopen/fread/fclose thing very dull to peruse when looking at code. You can replace: ``` $file = 'test.xml'; $fileHandle = fopen($file, 'r'); $request = fread($fileHandle, filesize($file)); fclose($fileHandle); $request = trim($request); ``` With: ``` $request = trim(file_get_con...
null
CC BY-SA 2.5
null
2008-08-20T15:22:50.293
2008-08-20T15:22:50.293
null
null
1,951
null
18,229
2
null
18,223
4
null
Your trigger is only using the first row from 'Inserted'. This is a common misunderstanding when dealing with SQL triggers for the first time. The trigger fires per update not per row. For example if you do the following:- update products set title = 'geoff de geoff' this would update all the products, but a trigger...
null
CC BY-SA 2.5
null
2008-08-20T15:31:33.330
2008-08-20T15:31:33.330
null
null
1,982
null
18,223
1
18,229
null
3
11,781
I have a table in a SQL Server 2005 database with a trigger that is supposed to add a record to a different table whenever a new record is inserted. It seems to work fine, but if I execute an Insert Into on the master table that uses a subquery as the source of the values, the trigger only inserts one record in the oth...
SQL Server 2005 insert trigger not inserting enough records
CC BY-SA 2.5
null
2008-08-20T15:26:06.853
2010-12-14T00:26:45.637
null
null
741
[ "sql-server" ]
18,235
2
null
18,223
2
null
Please lookup [multi row consideration for triggers](http://msdn.microsoft.com/en-us/library/ms190752.aspx) What is with the cursor inside a trigger? Learn how to program set based, cursors are in T-SQL and should only be used to defragment/update stats/other maintanance a bunch of tables
null
CC BY-SA 2.5
null
2008-08-20T15:33:45.260
2008-08-20T15:33:45.260
null
null
740
null
18,237
2
null
17,781
7
null
An option that doesn't require your own CA is to get certificates from [CAcert](http://www.cacert.org/) (they're free). I find it convenient to add the two CAcert root certificates to my client machines, then I can manage all the SSL certificates through CAcert.
null
CC BY-SA 2.5
null
2008-08-20T15:34:06.663
2008-08-20T15:34:06.663
null
null
954
null
18,200
2
null
18,194
3
null
SQL: [http://www.google.com/search?hl=en&q=introduction+to+sql](http://www.google.com/search?hl=en&q=introduction+to+sql) -> [http://www.w3schools.com/SQL/sql_intro.asp](http://www.w3schools.com/SQL/sql_intro.asp) MSSQL: [http://www.google.com/search?hl=en&safe=off&q=introduction+to+ms+sql](http://www.google.com/sear...
null
CC BY-SA 2.5
null
2008-08-20T15:15:38.580
2008-08-20T15:15:38.580
null
null
960
null
18,238
2
null
18,080
0
null
Not Invented here but it's on my todo list to setup. [http://awstats.sourceforge.net/](http://awstats.sourceforge.net/)
null
CC BY-SA 2.5
null
2008-08-20T15:34:34.477
2008-08-20T15:34:34.477
null
null
1,293
null
18,231
2
null
18,224
6
null
For some projects I use [Capistrano](http://www.capify.org/) to push out to live. It is built on top of ruby and makes deploy script writing super easy and uses ssh. On other projects I have a tiny deploy app that uses bash to do an svn export to a temporary directory and then rsync it over to the live server. You ca...
null
CC BY-SA 2.5
null
2008-08-20T15:32:22.313
2008-08-20T15:32:22.313
null
null
1,797
null
18,240
2
null
18,224
0
null
hm, around here we use a staging "server" for testing purposes on the live environment (actually, its an apache virtual host on the production server) and [araxis merge](http://www.araxis.com/merge/index.html) (a really smart line-by-line file comparison tool) to sync development and staging. once its tested, just; re...
null
CC BY-SA 2.5
null
2008-08-20T15:37:06.280
2008-08-20T15:37:06.280
null
null
547
null
18,239
2
null
18,216
1
null
Is this for SQL server? If yes then [Concatenate Values From Multiple Rows Into One Column (2000)](http://wiki.lessthandot.com/index.php/Concatenate_Values_From_Multiple_Rows_Into_One_Column) [Concatenate Values From Multiple Rows Into One Column Ordered (2005+)](http://wiki.lessthandot.com/index.php/Concatenate_Valu...
null
CC BY-SA 2.5
null
2008-08-20T15:36:17.123
2008-08-20T15:36:17.123
null
null
740
null
18,234
2
null
18,224
0
null
You could always write a small client/server app that encrypts at the source, pushes the files, and then decrypts at the destination. That's a little bit of work, but probably a trivial amount. And it's scriptable as long as your automation tool supports executing something in the file system (which I think all do). T...
null
CC BY-SA 2.5
null
2008-08-20T15:32:58.880
2008-08-20T15:32:58.880
null
null
1,975,282
null
18,243
2
null
18,224
1
null
Make a copy of your live site directory, use [rsync](http://samba.anu.edu.au/rsync/) to update that copy with your latest version, then rename the live and updated directories so that the updated version is now live. In bash: ``` #!/bin/bash set -e cp -R /var/livesite /var/newversion rsync user@devserver:/var/readyt...
null
CC BY-SA 2.5
null
2008-08-20T15:38:28.413
2008-08-20T16:13:43.120
2008-08-20T16:13:43.120
619
619
null
18,236
2
null
18,216
0
null
Don't collapse by concatenation for storage of related records in your database. Its not exactly best practices. What you're describing is a pivot table. Pivot tables are . I'd suggest avoiding them if at all possible. Why not just read in your related rows and process them in memory? It doesn't sound like yo...
null
CC BY-SA 2.5
null
2008-08-20T15:34:04.307
2008-08-20T15:34:04.307
null
null
null
null
18,246
2
null
18,080
0
null
[@Ian](https://stackoverflow.com/questions/18080/best-traffic-performance-usage-monitoring-module#18098) Looks like they've raised the limit. Not very surprising, it is google after all ;) > This free version is limited to 5 million pageviews a month - however, users with an active Google AdWords account are given un...
null
CC BY-SA 2.5
null
2008-08-20T15:39:34.887
2008-08-20T15:39:34.887
2017-05-23T11:48:37.237
-1
914
null
18,247
2
null
18,166
0
null
I did a `wc -m test.xml` and came back with 743 characters in the XML file and the `var_dump` on `$request` comes back with 742 characters so something is getting stripped with `trim()` (I assume). I did a: ``` print "=====" . $request . "====="; ``` and the start and end of the XML butts right up against the =====...
null
CC BY-SA 3.0
null
2008-08-20T15:39:42.670
2016-01-15T14:34:02.920
2016-01-15T14:34:02.920
4,932,070
204
null
18,241
2
null
18,224
4
null
This seems like the sort of thing that could be done easily with SFTP. Take a look at [PuTTY](http://www.chiark.greenend.org.uk/~sgtatham/putty/) (psftp and pscp) or [WinSCP](http://winscp.net/eng/docs/introduction) for Windows, or [rsync](http://rsync.samba.org/) and [OpenSSH](http://www.openssh.org/) for Unixes.
null
CC BY-SA 2.5
null
2008-08-20T15:37:21.473
2008-08-20T15:37:21.473
null
null
954
null
18,230
2
null
18,223
1
null
The trigger only fires once for each INSERT statment executed - not once for each record inserted. In your trigger you can access the 'virtual' table called for details of the records inserted. ie: ``` SELECT COUNT(*) FROM inserted ``` Will return the number of inserted records.
null
CC BY-SA 2.5
null
2008-08-20T15:31:42.393
2008-08-20T15:31:42.393
null
null
770
null
18,245
2
null
18,216
0
null
One option is to have Properties have a PropertyType, so: ``` table cards integer ID | string name | ... (other properties common to all Cards) table property_types integer ID | string name | string format | ... (possibly validations) table properties integer ID | integer property_type_id | string name | string valu...
null
CC BY-SA 2.5
null
2008-08-20T15:39:05.620
2008-08-20T15:39:05.620
null
null
1,190
null
18,250
1
null
null
0
218
The creation date of an executable linked in VS2005 is not set to the real creation-date of the `.exe` file. Only a complete re-build will set the current date, a re-link will not do it. Obviously the file is set to some date, which is taken from one of the project-files. So: is there a way to force the linker to set...
Creation Date of Compiled Executable (VC++ 2005)
CC BY-SA 3.0
null
2008-08-20T15:40:53.167
2017-07-10T19:09:26.773
2017-07-10T19:09:26.773
7,750,640
null
[ "date", "executable" ]
18,255
2
null
14,911
0
null
I have recently came across [dompdf](http://www.digitaljunkies.ca/dompdf/) which I have used to convert pages created in HTML into PDF documents. It uses PHP5 (assuming using PHP does not bother you). This is also assuming that you don't want to statically create HTML files on the file system and then convert them usin...
null
CC BY-SA 2.5
null
2008-08-20T15:46:05.760
2008-08-20T15:46:05.760
null
null
277
null
18,249
2
null
18,082
6
null
I'd like to add the following: ``` 1. IsNumeric('0x89f') => true 2. IsNumeric('075') => true ``` Positive hex numbers start with `0x` and negative hex numbers start with `-0x`. Positive oct numbers start with `0` and negative oct numbers start with `-0`. This one takes most of what has already been mentioned into co...
null
CC BY-SA 3.0
null
2008-08-20T15:40:28.440
2018-01-05T13:02:03.513
2018-01-05T13:02:03.513
92,701
1,585
null
18,261
2
null
2,158
9
null
I'm probably going a million miles in the wrong direct (but i'm only young :P ). but couldn't you add the graphic to a panel and then a mouselistener to the graphic object so that when the user on the graphic your action is preformed.
null
CC BY-SA 2.5
null
2008-08-20T15:48:56.063
2008-08-20T15:48:56.063
null
null
1,732
null
18,253
1
23,076
null
9
3,891
I'm looking for a testing framework for the Windows kernel environment. So far, I've found [cfix](http://cfix.sourceforge.net/). Has any one tried it? Are there alternatives?
Unit testing kernel drivers
CC BY-SA 2.5
0
2008-08-20T15:43:55.187
2021-06-25T16:25:50.723
2008-08-23T19:59:57.607
2,134
2,150
[ "windows", "unit-testing", "kernel", "drivers" ]
18,266
2
null
18,197
2
null
I agree with Adam; using a very computer illiterate person is very helpful. However, what I've run into before with that is the program I want them to try out just isn't "up their alley" as far as something they would ever want to do. A good way to start is with a paper prototype. Have specific tasks that you want you...
null
CC BY-SA 2.5
null
2008-08-20T15:51:47.337
2008-08-20T15:51:47.337
null
null
1,540
null
18,262
2
null
18,216
1
null
Related but values are values are kept in separate columns and you have know your "special types" a head of time: [SQL query to compare product sales by month](https://stackoverflow.com/questions/17194/sql-query-to-compare-product-sales-by-month#17290) Otherwise I would do this with cursor in a stored procedure or pre...
null
CC BY-SA 2.5
null
2008-08-20T15:48:57.577
2008-08-20T16:00:43.650
2017-05-23T10:27:42.823
-1
1,293
null
18,271
2
null
18,197
3
null
Some of the best advice on usability testing is available on Jakob Nielsen's Website [http://www.useit.com](http://www.useit.com). He advocates what Will mentioned - ask users to perform various tasks on your website or web application and then sit back to see what they do. Do not interrupt the users by asking questi...
null
CC BY-SA 2.5
null
2008-08-20T15:57:55.700
2008-08-20T15:57:55.700
null
null
2,141
null
18,265
1
18,406
null
7
9,690
What methods are there for automatically getting a stack trace on Unix systems? I don't mean just getting a core file or attaching interactively with GDB, but having a SIGSEGV handler that dumps a backtrace to a text file. Bonus points for the following optional features: - - - `dlopen`-
Getting stack traces on Unix systems, automatically
CC BY-SA 2.5
0
2008-08-20T15:50:52.283
2016-04-13T17:11:09.527
2011-03-11T19:08:20.510
203,667
954
[ "linux", "unix", "stack-trace", "segmentation-fault" ]
18,267
2
null
18,224
1
null
@Neall, I'd add a `set -e` on the second line, because you don't want the live site being replaced if the `rsync` fails for any reason. `set -e` causes the script to exit if any of its commands fail. Edit: The `set -e` should be the first thing in the script, right after `#!/bin/bash`.
null
CC BY-SA 2.5
null
2008-08-20T15:55:40.713
2008-08-20T16:09:37.777
2008-08-20T16:09:37.777
954
954
null
18,263
2
null
18,197
8
null
I like [Paul Buchheit's](http://friendfeed.com/paul) answer on this from startup school. The short version of what he said listen to your users. Listen does not mean obey your users. Take in the data filter out all the bad advice and iteratively clean up the site. Lather, rinse, repeat. If you are a small shop you pr...
null
CC BY-SA 2.5
null
2008-08-20T15:49:45.640
2008-08-20T15:49:45.640
null
null
1,797
null
18,272
1
18,336
null
2
2,240
Server Management Studio tends to be a bit un-intuitive when it comes to managing Extended Properties, so can anyone recommend a decent tool that improves the situation. One thing I would like to do is to have templates that I can apply objects, thus standardising the nomenclature and content of the properties applied...
Recommend a tool to manage Extended Properties in SQL server 2005
CC BY-SA 3.0
0
2008-08-20T15:58:40.783
2013-02-27T19:34:58.090
2012-06-13T16:04:01.873
851,273
770
[ "sql-server", "extended-properties" ]
18,278
2
null
18,250
1
null
Delete the executable as part of a pre-link event. Edit: Hah, I forgot about Explorer resetting the creation date if you name a file exactly the same as a file that was recently deleted. Why are you keying off the creation date anyway?
null
CC BY-SA 3.0
null
2008-08-20T16:02:34.910
2012-07-03T14:54:05.090
2012-07-03T14:54:05.090
142,162
1,799
null
18,277
2
null
14,911
0
null
If you do have a budget take a look at the following [OpenEdge](http://www.openedgesoft.com/). I know that they did excatly what you want for us. A linux based PDF generation system. I'd ask what they can do for you. Val Cassidy is the persons name. BTW: I'm not getting anything for this and I don't even work for bespo...
null
CC BY-SA 2.5
null
2008-08-20T16:00:29.873
2008-08-20T16:00:29.873
2020-06-20T09:12:55.060
-1
925
null
18,280
2
null
18,250
0
null
A complete rebuild will delete that file forcing the linker to create it, hence the reason it gets a new creation date. You could try disabling incremental linking under project properties (Linker | General). If that doesn't do it you could add a build event to delete the exe file and force it to create a new file ea...
null
CC BY-SA 2.5
null
2008-08-20T16:02:52.193
2008-08-20T16:02:52.193
null
null
1,254
null
18,279
2
null
16,926
2
null
I agree with Jon, but I don't see a problem* with doing what the OP wants. Using the script provided, you'd know all of your classes and ids. While working on your CSS, you should be deciding if you to use each of them. At the end, or at the point that you feel like you have a good handle on what you're doing, run it ...
null
CC BY-SA 2.5
null
2008-08-20T16:02:39.090
2008-08-20T16:02:39.090
null
null
1,540
null
18,259
2
null
16,233
1
null
> Note that a responsible web developer does not use fonts that are only available on Windows (and especially ones that are only available on Vista), nor do they use a technology that isn't supported by at least the majority of browsers. I think this is rather missing the point. It wouldn't matter if you did; everyone...
null
CC BY-SA 3.0
null
2008-08-20T15:48:26.580
2014-05-03T17:55:29.367
2014-05-03T17:55:29.367
707,111
137
null
18,287
2
null
18,166
2
null
It turns out it's an encoding issue. The app apparently needs the XML in www-form-urlencoded instead of form-data so I had to change: ``` # This sets the encoding to multipart/form-data curl_setopt($curlHandle, CURLOPT_POSTFIELDS, array('XML'=>$request)); ``` to ``` # This sets it to application/x-www-form-urlencod...
null
CC BY-SA 2.5
null
2008-08-20T16:11:31.750
2008-08-20T16:11:31.750
null
null
204
null
18,289
2
null
17,333
-1
null
It depends on how precise you want the comparison to be. If you want to compare for exactly the same number, then just go with ==. (You almost never want to do this unless you actually want exactly the same number.) On any decent platform you can also do the following: ``` diff= a - b; return fabs(diff)<EPSILON; ``` ...
null
CC BY-SA 3.0
null
2008-08-20T16:11:59.240
2012-07-03T14:49:47.430
2012-07-03T14:49:47.430
142,162
1,799
null
18,284
1
18,307
null
10
8,018
I'm a long time hobbyist programmer interested in getting into web application development. I have a fair amount of personal experience with various non-web languages, but have never really branched over to web applications. I don't usually have any issues learning new languages or technologies, so I'm not worried abo...
Best Way to Begin Learning Web Application Design
CC BY-SA 2.5
0
2008-08-20T16:08:43.100
2014-08-17T09:36:39.793
2008-09-09T22:13:50.450
-1
1,429
[ "language-agnostic", "web-applications", "resources" ]
18,292
1
18,370
null
76
109,226
Trying to setup an SSH server on Windows Server 2003. What are some good ones? Preferably open source. I plan on using WinSCP as a client so a server which supports the advanced features implemented by that client would be great.
What are some good SSH Servers for windows?
CC BY-SA 3.0
0
2008-08-20T16:13:39.937
2018-03-12T09:40:41.513
2014-02-19T10:56:42.443
1,794,706
1,946
[ "windows", "deployment", "ssh", "winscp" ]
18,291
1
18,516
null
60
27,933
I'm wondering how the few Delphi users here are doing unit testing, if any? Is there anything that integrates with the IDE that you've found works well? If not, what tools are you using and do you have or know of example mini-projects that demonstrate how it all works? ### Update: I forgot to mention that I'm usin...
Unit testing in Delphi - how are you doing it?
CC BY-SA 3.0
0
2008-08-20T16:12:50.703
2019-02-18T16:00:26.640
2020-06-20T09:12:55.060
-1
1,461
[ "delphi", "unit-testing", "delphi-7", "delphi-2006" ]
18,293
2
null
6,915
0
null
I suppose saying don't do this because it's not safe and will probably break more often than just initializing this stuff in `main()` isn't going to be that popular. (And yes, I know that suggesting that means you shouldn't attempt to do interesting stuff in constructors of global objects. That's the point.)
null
CC BY-SA 3.0
null
2008-08-20T16:13:40.890
2012-07-03T14:56:23.780
2012-07-03T14:56:23.780
142,162
1,799
null
18,290
1
18,344
null
50
22,281
Within Ruby on Rails applications database.yml is a plain text file that stores database credentials. When I deploy my Rails applications I have an after deploy callback in my Capistrano recipe that creates a symbolic link within the application's /config directory to the database.yml file. The file itself is stored ...
How Do You Secure database.yml?
CC BY-SA 2.5
0
2008-08-20T16:12:46.850
2020-07-16T15:40:47.643
null
null
1,450
[ "ruby-on-rails", "security", "deployment" ]