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
12,726
2
null
8,472
-3
null
One option would be out-of-band communication; the server could send the user an instant message (or SMS message?) that he/she then has to type into the captcha field. This imparts an "either/or" requirement on the user -- either you must enable JavaScript OR you must be logged on to your IM service of choice. While ...
null
CC BY-SA 2.5
null
2008-08-15T20:47:50.653
2008-08-15T21:19:44.787
2008-08-15T21:19:44.787
363
363
null
12,736
2
null
12,647
2
null
A slightly more robust regex can be found in [Regexp::Common](http://search.cpan.org/dist/Regexp-Common). It sounds like you want to know if Perl thinks a variable is numeric. Here's a function that traps that warning: ``` sub is_number{ my $n = shift; my $ret = 1; $SIG{"__WARN__"} = sub {$ret = 0}; eval { ...
null
CC BY-SA 2.5
null
2008-08-15T20:56:36.223
2009-10-21T10:32:08.227
2009-10-21T10:32:08.227
2,766,176
1,438
null
12,728
2
null
12,720
3
null
You'll want to setup launch condition in your deployment project to make sure version 2.0 SP1 is installed. You'll want to set a requirement based off the MsiNetAssemblySupport variable, tied to the version number of .NET 2.0 SP1 (2.0.50727.1433 and above according to [this page](http://blogs.msdn.com/astebner/archive/...
null
CC BY-SA 2.5
null
2008-08-15T20:51:14.580
2008-08-15T20:51:14.580
null
null
71
null
12,732
2
null
12,661
12
null
[phpThumb](http://phpthumb.sourceforge.net/) uses ImageMagick whenever possible for speed (falling back to GD if necessary) and seems to cache pretty well to reduce the load on the server. It's pretty lightweight to try out (to resize an image, just call phpThumb.php with a GET query that includes the graphic filename ...
null
CC BY-SA 2.5
null
2008-08-15T20:53:14.903
2008-08-15T20:53:14.903
null
null
1,482
null
12,743
2
null
12,045
11
null
[Len Holgate](http://www.lenholgate.com/) has a series of [20 articles on testing timer based code](http://www.lenholgate.com/archives/000306.html).
null
CC BY-SA 2.5
null
2008-08-15T21:01:50.173
2008-08-15T21:01:50.173
null
null
342
null
12,735
2
null
12,657
2
null
I haven't used GroupItemCount, but I have taken this example written up by [Matt Berseth](http://mattberseth.com/) titled [Building a Grouping Grid with the ASP.NET 3.5 LinqDataSource and ListView Controls](http://mattberseth.com/blog/2008/01/building_a_grouping_grid_with.html) and have grouped items by a key just like...
null
CC BY-SA 2.5
null
2008-08-15T20:56:08.033
2008-08-15T20:56:08.033
null
null
519
null
12,746
2
null
12,718
0
null
I recommend you tu use [Visual SVN Server](http://www.visualsvn.com/server/). Very easy to install
null
CC BY-SA 2.5
null
2008-08-15T21:04:49.623
2008-08-15T21:04:49.623
null
null
1,154
null
12,744
2
null
12,718
6
null
[VisualSVN Server](http://www.visualsvn.com/server) installs as a Windows service. It is free, includes Apache, OpenSSL, and a repository / permission management tool. It can also integrate with Active Directory for user authentication. I highly recommend it for hosting SVN on Windows.
null
CC BY-SA 2.5
null
2008-08-15T21:04:08.827
2008-08-15T21:11:30.467
2008-08-15T21:11:30.467
317
317
null
12,738
2
null
12,718
0
null
I'd suggest you move your repository to somewhere a little safer, maybe "c:\SVNRepo". I'd hesitate to put the Repository in "Documents and Settings". Is your repository actually called "my_repository"?
null
CC BY-SA 2.5
null
2008-08-15T20:57:39.450
2008-08-15T20:57:39.450
null
null
1,484
null
12,751
2
null
12,716
1
null
Added no_namespace and raw_interfaces_only to my #import: ``` #import "server.tlb" no_namespace named_guids ``` Also using TLBEXP.EXE instead of REGASM.EXE seems to help this issue.
null
CC BY-SA 2.5
null
2008-08-15T21:06:51.660
2010-10-28T07:06:14.997
2010-10-28T07:06:14.997
41,956
814
null
12,739
2
null
12,159
6
null
[Pete Goodliffe](http://goodliffe.blogspot.com/) has a series on the [unit testing of threaded](http://goodliffe.blogspot.com/search/label/threads) code. It's hard. I take the easier way out and try to keep the threading code abstracted from the actual test. Pete does mention that the way I do it is wrong but I've eit...
null
CC BY-SA 2.5
null
2008-08-15T20:59:45.590
2008-08-15T20:59:45.590
null
null
342
null
12,756
2
null
12,718
1
null
I've followed the instructions given at the Collabnet site: [http://svn.apache.org/repos/asf/subversion/trunk/notes/windows-service.txt](http://svn.apache.org/repos/asf/subversion/trunk/notes/windows-service.txt) They use the windows SC to create the service (which runs svnserve). This has worked for me without any ...
null
CC BY-SA 3.0
null
2008-08-15T21:14:03.130
2011-08-08T09:11:06.967
2011-08-08T09:11:06.967
183,172
1,441
null
12,769
2
null
12,765
16
null
That's the [BOM (Byte Order Mark)](http://en.wikipedia.org/wiki/Byte_Order_Mark) you are seeing. In your editor, there should be a way to force saving without BOM which will remove the problem.
null
CC BY-SA 2.5
null
2008-08-15T21:20:49.870
2008-08-20T10:52:49.630
2008-08-20T10:52:49.630
238
238
null
12,762
2
null
12,718
1
null
I think svnservice is obsolete, because since 1.4, svnserve itself has been able to run as a Windows service. (svnserve comes as a part of the normal SVN binary distribution) [http://svn.apache.org/repos/asf/subversion/trunk/notes/windows-service.txt](http://svn.apache.org/repos/asf/subversion/trunk/notes/windows-ser...
null
CC BY-SA 3.0
null
2008-08-15T21:15:38.307
2011-08-08T09:10:16.640
2011-08-08T09:10:16.640
183,172
987
null
12,775
2
null
12,768
3
null
You were on the right track. It is the fact that they are using the ASP.NET MVC web framework. It allows you to have full control of your output html.
null
CC BY-SA 2.5
null
2008-08-15T21:22:59.553
2008-08-15T21:22:59.553
null
null
1,117
null
12,742
2
null
12,647
23
null
Check out the CPAN module [Regexp::Common](http://search.cpan.org/dist/Regexp-Common). I think it does exactly what you need and handles all the edge cases (e.g. real numbers, scientific notation, etc). e.g. ``` use Regexp::Common; if ($var =~ /$RE{num}{real}/) { print q{a number}; } ```
null
CC BY-SA 2.5
null
2008-08-15T21:01:16.790
2009-10-21T10:31:35.233
2009-10-21T10:31:35.233
2,766,176
779
null
12,774
1
12,778
null
3
3,721
All the recent VisualSVN Server posts made me want to check it out. I have SVN running right now through Apache, but I'd like to try out VisualSVN Server, mostly for the Active Directory integration. Their docs don't describe whether you can easily migrate an existing repository. Anyone done this before?
Attaching VisualSVN Server to an existing repository
CC BY-SA 3.0
null
2008-08-15T21:22:36.340
2020-03-30T11:17:31.150
2012-11-01T11:04:18.013
761,095
404
[ "svn", "version-control", "visualsvn-server", "svn-repository" ]
12,765
1
12,769
null
10
1,817
This is driving me crazy. I have this one php file on a test server at work which does not work.. I kept deleting stuff from it till it became it outputs > Hello if I create a new file and copy / paste the same script to it it works! Why does this one file give me the strange characters all the time?
Strange characters in PHP
CC BY-SA 2.5
0
2008-08-15T21:18:30.843
2009-12-06T12:06:11.217
2009-12-06T12:06:11.217
1,701
null
[ "php", "encoding" ]
12,731
2
null
12,638
2
null
Ok, it's working here. I'm seeing my windows credentials when I update my tables. So, I bet we missed a step. Let me put together a 1,2,3 sequence of what I did and maybe we can track down where this is breaking for you. --- 1. Create a new MSAccess database (empty) 2. Click on the tables section 3. Select ext...
null
CC BY-SA 2.5
null
2008-08-15T20:52:27.900
2008-08-15T20:58:46.217
2008-08-15T20:58:46.217
733
733
null
12,768
1
12,789
null
10
998
I work with C# at work but dislike how with webforms it spews out a lot of JavaScript not including the many lines for viewstate that it creates. That's why I like coding with PHP as I have full control. But I was just wondering how this sites HTML is so clean and elegant? Does using MVC have something to do with it...
How is the HTML on this site so clean?
CC BY-SA 2.5
null
2008-08-15T21:19:48.437
2011-09-09T02:34:43.847
2011-09-09T02:34:43.847
540,162
1,469
[ "html", "semantic-markup" ]
12,772
2
null
12,611
5
null
As previously stated, , just enhance it. Checkout [VCalendar](http://www.ultraapps.com/app_overview.php?app_id=19), it is open source, and comes in PHP, ASP, and ASP.Net (C#)! Also you could check out [Day Pilot](http://www.daypilot.org/) which offers a calendar written in Asp.Net 2.0. They offer a lite version that ...
null
CC BY-SA 2.5
null
2008-08-15T21:22:01.520
2009-09-30T19:30:30.597
2009-09-30T19:30:30.597
415
415
null
12,778
2
null
12,774
4
null
[VisualSVN Server](http://www.visualsvn.com/server) will use your existing SVN repositories with no problems. I have successfully migrated repositories from SVN + Apache to VisualSVN Server on multiple occasions.
null
CC BY-SA 4.0
null
2008-08-15T21:23:40.957
2020-03-27T17:23:40.113
2020-03-27T17:23:40.113
761,095
317
null
12,782
2
null
12,774
2
null
An SVN server doesn't really 'attach' to a repository, it just needs to be able to see its files. The repository itself doesn't know or care if it's being accessed via svnserve, Apache mod_svn or direct file:// URLs
null
CC BY-SA 2.5
null
2008-08-15T21:27:18.983
2008-08-15T21:27:18.983
null
null
987
null
12,781
2
null
12,768
2
null
Yes - MVC doesn't utilize the ASP.NET view state junk.
null
CC BY-SA 2.5
null
2008-08-15T21:25:41.343
2008-08-15T21:25:41.343
null
null
357
null
12,787
2
null
12,774
5
null
There is an option on the VisualSVN Server Manager console to import an existing repository. You just give it the existing repository location and a name for the imported repository. Pretty simple.
null
CC BY-SA 3.0
null
2008-08-15T21:30:02.910
2012-09-25T15:19:24.683
2012-09-25T15:19:24.683
761,095
565
null
12,780
2
null
12,501
1
null
The latest CTP is CTP2 released on 05/02/08 and can be found [here](http://www.microsoft.com/downloads/details.aspx?FamilyId=7C8051C2-9BFC-4C81-859D-0864979FA403&displaylang=en). Remoting requires WinRM to be installed on both the calling machine and the target machine. Included in the CTP is a script to configure WS...
null
CC BY-SA 2.5
null
2008-08-15T21:25:02.700
2008-08-15T21:25:02.700
null
null
1,233
null
12,786
2
null
12,765
3
null
Found it, file -> encoding -> UTF8 with BOM , changed to to UTF :-) I should ahve asked before wasing time trying to figure it out :-)
null
CC BY-SA 2.5
null
2008-08-15T21:28:53.083
2008-08-15T21:28:53.083
null
null
null
null
12,788
2
null
12,768
3
null
The [ASP.NET MVC Framework](http://www.asp.net/mvc/) is an alternative to the normal "web forms" way of doing ASP.NET development. With it you lose a lot of abstraction, but gain a lot of control.
null
CC BY-SA 2.5
null
2008-08-15T21:30:21.863
2008-08-15T21:30:21.863
null
null
83
null
12,785
2
null
12,045
2
null
I agree with Danny insofar as it probably makes sense from a unit-testing perspective to simply forget about the timer mechanism and just verify that the action itself works as expected. I would also say that I disagree in that it's wasted effort to include the configuration of the timer in an automated test suite of ...
null
CC BY-SA 2.5
null
2008-08-15T21:28:51.710
2008-08-15T21:28:51.710
null
null
1,247
null
12,804
2
null
12,794
1
null
Are you using the latest jQuery ? What if you try ``` $("code").wrapInner(document.createElement("pre")); ``` Is it any better or do you get the same result ?
null
CC BY-SA 2.5
null
2008-08-15T21:50:14.897
2008-08-15T21:50:14.897
null
null
238
null
12,810
2
null
12,794
3
null
Btw I don't know if it is related but pre tags inside code tags will not validate in strict mode.
null
CC BY-SA 2.5
null
2008-08-15T21:56:18.817
2008-08-15T21:56:18.817
null
null
238
null
12,807
1
14,604
null
3
3,936
I have marked my DLL as vsdraCOM, and I can see it in the registry after installing, but my application does not see the COM interface until I call RegAsm on it manually. Why could this be? The COM registration does not work on Vista (confirmed myself) and on XP (confirmed by a colleague). Using Visual Studio 2005 on...
How to register COM from VS Setup project?
CC BY-SA 2.5
0
2008-08-15T21:51:29.480
2011-12-25T16:18:35.860
2008-08-16T18:56:32.050
1,490
1,490
[ "com", "registry" ]
12,808
2
null
9,877
2
null
For a simpler portfolio site, Wordpress might meet your needs. You can set up 'static' Wordpress pages for contact information, various portfolios, a resume, etc. This would also give you a blog if you want to do this. Wordpress does give you the flexibility to "hide" the blogging part of it and use it basically as ...
null
CC BY-SA 2.5
null
2008-08-15T21:52:16.610
2008-08-15T21:52:16.610
null
null
1,347
null
12,800
2
null
12,611
0
null
> [undefined](https://stackoverflow.com/users/1368/undefined) wrote:…this table will be hit pretty hard, especially if I am going to be sending out emails to remind people of their events (events can be for specific times of the day also!), so I could be polling this table every 15 minutes potentially! Create ...
null
CC BY-SA 2.5
null
2008-08-15T21:44:55.423
2008-08-15T21:50:08.580
2017-05-23T10:31:20.160
-1
83
null
12,789
2
null
12,768
9
null
One of the goals of ASP.NET MVC is to give you control of your markup. However, there have always been choices with ASP.NET which would allow you to generate relatively clean HTML. For instance, ASP.NET has always offered a choice with validator controls. Do you value development speed over markup? Use validators. Val...
null
CC BY-SA 2.5
null
2008-08-15T21:30:36.043
2008-08-15T21:40:59.550
2008-08-15T21:40:59.550
5
5
null
12,799
2
null
10,190
1
null
There are a few solutions which I use with MS SQL 2005. One of them is ROW_NUMBER(). But, personally, I don't like ROW_NUMBER() because it doesn't work for big results (DB which I work on is really big -- over 1TB data running thousands of queries in second -- you know -- big social networking site). Here are my favo...
null
CC BY-SA 2.5
null
2008-08-15T21:44:25.533
2008-08-15T21:44:25.533
null
null
1,483
null
12,815
1
null
null
13
2,220
In my limited experience with them executable requirements (i.e. specifying all requirements as broken automated tests) have proven to be amazingly successful. I've worked on one project in which we placed a heavy emphasis on creating high-level automated tests which exercised all the functionality of a given use case...
Anyone Using Executable Requirements?
CC BY-SA 2.5
0
2008-08-15T22:02:15.573
2014-04-10T19:33:35.860
2014-04-10T19:33:35.860
321,731
1,247
[ "testing", "process", "automation" ]
12,813
2
null
2,034
12
null
Take a look in the Subversion Book reference: ["Status of working copy files and directories"](http://svnbook.red-bean.com/en/1.8/svn.ref.svn.c.status.html) Highly recommended for anyone doing pretty much anything with SVN.
null
CC BY-SA 3.0
null
2008-08-15T22:01:40.897
2016-01-13T11:21:21.380
2016-01-13T11:21:21.380
761,095
1,347
null
12,816
2
null
2,873
-1
null
There is a "-Weffc++" option for gcc which according to the Mac OS X man page will: > Warn about violations of the following style guidelines from Scott Meyers' Effective C++ book: I know you asked about C, but this is the closest I know of..
null
CC BY-SA 2.5
null
2008-08-15T22:03:12.063
2008-08-15T22:03:12.063
null
null
755
null
12,805
2
null
12,661
23
null
Here's a snippet from the php.net docs that I've used in a project and works fine: ``` <? function fastimagecopyresampled (&$dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h, $quality = 3) { // Plug-and-Play fastimagecopyresampled function replaces much slower imagecopyresample...
null
CC BY-SA 3.0
null
2008-08-15T21:50:18.423
2017-03-27T08:05:12.823
2017-03-27T08:05:12.823
4,380,409
40
null
12,812
2
null
12,516
4
null
This gets into parsing/compiler theory, which is kind of a rabbit hole... [The Dragon Book](http://en.wikipedia.org/wiki/Compilers:_Principles,_Techniques,_and_Tools) is the standard text for compiler construction, and takes this to extremes. In this particular case, you want to construct a [context-free grammar](http:...
null
CC BY-SA 2.5
null
2008-08-15T21:58:53.053
2008-08-15T21:58:53.053
null
null
1,370
null
12,794
1
12,983
null
13
7,723
I'm trying to use `jQuery` to format code blocks, specifically to add a `<pre>` tag inside the `<code>` tag: ``` $(document).ready(function() { $("code").wrapInner("<pre></pre>"); }); ``` Firefox applies the formatting correctly, but IE puts the entire code block on one line. If I add an alert ``` alert($("cod...
How do I add a pre tag inside a code tag with jQuery?
CC BY-SA 3.0
null
2008-08-15T21:35:51.260
2017-12-14T07:02:46.333
2017-12-14T07:02:46.333
4,248,328
311
[ "javascript", "jquery", "html", "internet-explorer" ]
12,821
2
null
12,611
0
null
Derek Park, I would be creating each and every instance of an event in a table, and this table would be regenerated every month (so any event that was set to reoccurr 'forever' would be regenerated one month in advance using a windows service or maybe at the sql server level). The polling won't only be done every 15 mi...
null
CC BY-SA 2.5
null
2008-08-15T22:08:13.627
2008-08-15T22:08:13.627
null
null
1,368
null
12,822
2
null
12,661
48
null
People say that ImageMagick is much faster. At best just compare both libraries and measure that. 1. Prepare 1000 typical images. 2. Write two scripts -- one for GD, one for ImageMagick. 3. Run both of them a few times. 4. Compare results (total execution time, CPU and I/O usage, result image quality). Something w...
null
CC BY-SA 2.5
null
2008-08-15T22:08:38.993
2010-01-16T16:32:40.090
2010-01-16T16:32:40.090
63,550
1,483
null
12,828
2
null
11,857
7
null
I'll second Trac + Subversion. While nothing is perfect, this combination works quite well for me, and the price is right. Even for projects I work solo on, it's nice to have both of these integrated.
null
CC BY-SA 2.5
null
2008-08-15T22:17:09.210
2008-08-15T22:17:09.210
null
null
1,347
null
12,826
2
null
6,467
0
null
If the GNU version of date works for you, why don't you grab the source and compile it on AIX and Solaris? [http://www.gnu.org/software/coreutils/](http://www.gnu.org/software/coreutils/) In any case, the source ought to help you get the date arithmetic correct if you are going to write you own code. As an aside, co...
null
CC BY-SA 2.5
null
2008-08-15T22:13:52.900
2008-08-15T22:13:52.900
null
null
1,438
null
12,834
2
null
1,644
0
null
I enjoy both [Security Now](http://twit.tv/sn) and [Windows Weekly](http://twit.tv/ww), both a part of the [TWiT network](http://twit.tv/). You may want to check out the TWiT network, since they have a variety of tech related podcasts. Also, as seems common here, [Hanselminutes](http://hanselminutes.com/) is pretty g...
null
CC BY-SA 2.5
null
2008-08-15T22:23:14.767
2008-08-15T22:23:14.767
null
null
1,497
null
12,845
2
null
5,078
1
null
If you're going to do this, spend a bit of money and at the least buy a dedicated router/firewall with a separate DMZ port. You'll want to firewall off your internal network from your server so that when (not if!) your web server is compromised, your internal network isn't immediately vulnerable as well.
null
CC BY-SA 2.5
null
2008-08-15T22:33:40.567
2008-08-15T22:33:40.567
null
null
1,347
null
12,836
1
12,935
null
13
15,188
We have our own ORM we use here, and provide strongly typed wrappers for all of our db tables. We also allow weakly typed ad-hoc SQL to be executed, but these queries still go through the same class for getting values out of a data reader. In tweaking that class to work with Oracle, we've come across an interesting qu...
C# Database Access: DBNull vs null
CC BY-SA 3.0
0
2008-08-15T22:23:21.490
2012-08-11T16:08:55.237
2012-08-11T16:08:32.270
1,477,076
489
[ "c#", "orm", "null", "dbnull" ]
12,820
2
null
10,190
3
null
LINQ combined with lambda expressions and anonymous classes in .Net 3.5 simplifies this sort of thing. Querying the database: ``` var customers = from c in db.customers join p in db.purchases on c.CustomerID equals p.CustomerID where p.purchases > 5 select c; ``` Num...
null
CC BY-SA 2.5
null
2008-08-15T22:07:40.743
2008-08-15T22:07:40.743
null
null
1,249
null
12,843
1
20,591
null
84
14,864
I have two separate mercurial repositories. At this point it makes sense that they "become one" because I want to work on the two projects simultaneously. I'd really like the two projects to each be a subdirectory in the new repository. 1. How do I merge the two projects? 2. Is this a good idea, or should I keep the...
How to combine two projects in Mercurial?
CC BY-SA 2.5
0
2008-08-15T22:29:44.770
2017-05-31T11:31:52.593
2008-08-22T06:19:11.813
814
814
[ "mercurial" ]
12,823
1
12,875
null
4
4,356
My little site should be pooling list of items from a table using the active user's location as a filter. Think [Craigslist](http://craigslist.org), where you search for "dvd' but the results are not from all the DB, they are filtered by a location you select. My question has 2 levels: 1. should I go a-la-craigslist,...
Filter by zip code, or other location based data retrieval strategies
CC BY-SA 3.0
null
2008-08-15T22:09:05.343
2012-06-13T15:48:20.923
2012-06-13T15:48:20.923
851,273
350
[ "location", "zipcode" ]
12,854
2
null
12,836
1
null
Use `DBNull`. We encouintered some sort of problems when using null. If I recall correctly you cannot INSERT a null value to a field, only DBNull. Could be Oracle related only, sorry, I do not know the details anymore.
null
CC BY-SA 3.0
null
2008-08-15T22:46:43.800
2012-08-11T16:08:50.867
2012-08-11T16:08:50.867
1,477,076
1,069
null
12,848
2
null
12,836
3
null
From the experience I've had, the .NET DataTables and TableAdapters work better with DBNull. It also opens up a few special methods when strongly typed, such as DataRow.IsFirstNameNull when in place. I wish I could give you a better technical answer than that, but for me the bottom line is use DBNull when working with...
null
CC BY-SA 3.0
null
2008-08-15T22:37:33.773
2012-08-11T16:08:55.237
2012-08-11T16:08:55.237
1,477,076
71
null
12,852
2
null
11
14
null
When you know the viewer's time zone, it might be clearer to use calendar days at the day scale. I'm not familiar with the .NET libraries so I don't know how you'd do that in C#, unfortunately. On consumer sites, you could also be hand-wavier under a minute. "Less than a minute ago" or "just now" could be good enough....
null
CC BY-SA 2.5
null
2008-08-15T22:42:33.870
2008-08-15T22:42:33.870
null
null
1,472
null
12,851
2
null
2,873
1
null
You might find the [Uno tool](http://spinroot.com/uno/) useful. It's one of the few free non-toy options. It differs from lint, Flexelint, etc. in focusing on a small number of "semantic" errors (null pointer derefs, out-of-bounds array indices, and use of uninitialized variables). It also allows user-defined checks, l...
null
CC BY-SA 3.0
null
2008-08-15T22:39:41.380
2016-01-30T12:43:30.373
2016-01-30T12:43:30.373
982,161
1,412
null
12,857
2
null
12,576
0
null
I'm responsible for a large reporting system and we track the slowest reports kind of like that. I fire a unique key into the db when the report starts and then when it finishes I can determine how long it took. I'm using the database because that way I can detect when pages timeout (which happens a lot more than I'd...
null
CC BY-SA 2.5
null
2008-08-15T22:49:29.303
2008-08-15T22:49:29.303
null
null
1,430
null
12,864
2
null
12,642
0
null
This was pretty much what I was doing, the problem I was getting was that my UI was getting locked up. As you suggested what I was doing already, I presumed the problem was somewhere else so I used the old divide and conquer to narrow down the problem and it wasnt the actual update code, it was my attempt to a reques...
null
CC BY-SA 2.5
null
2008-08-15T23:01:08.280
2008-08-15T23:01:08.280
null
null
1,478
null
12,859
2
null
12,576
9
null
One reasonable technique that can easily be pulled off the shelf is caching. A vast amount of time tends to go into generating resources for clients that are common between requests (and even across clients); eliminating this runtime work can lead to dramatic speed increases. You can dump the generated resource (or res...
null
CC BY-SA 2.5
null
2008-08-15T22:50:50.767
2008-08-15T22:50:50.767
null
null
1,200
null
12,865
1
12,879
null
360
116,023
Got a bluescreen in windows while cloning a mercurial repository. After reboot, I now get this message for almost all hg commands: Google is no help. Any tips?
Mercurial stuck "waiting for lock"
CC BY-SA 3.0
0
2008-08-15T23:01:16.533
2019-12-20T10:43:05.193
2011-12-01T13:27:32.120
110,204
814
[ "mercurial" ]
12,855
1
null
null
6
11,076
I have a query where I am searching against a string: ``` SELECT county FROM city WHERE UPPER(name) = 'SAN FRANCISCO'; ``` Now, this works fine, but it doesn't scale well, and I need to optimize it. I have [found an option](http://www.ibm.com/developerworks/db2/library/techarticle/0203adamache/0203adamache.html) al...
Database Case Insensitive Index?
CC BY-SA 2.5
0
2008-08-15T22:47:57.370
2017-08-25T22:14:45.600
2016-09-30T04:42:45.123
116
122
[ "sql", "database", "oracle", "indexing", "db2" ]
12,856
2
null
5,078
2
null
Bit-Tech.Net ran a couple of articles on how to setup a home server using linux. Here are the links: [Article 1](http://www.bit-tech.net/bits/2007/06/05/build_your_own_server/1) [Article 2](http://www.bit-tech.net/bits/2007/07/24/build_your_own_better_server/1) Hope those are of some help.
null
CC BY-SA 2.5
null
2008-08-15T22:48:00.427
2008-08-15T22:48:00.427
null
null
1,500
null
12,874
2
null
11,291
1
null
I've done some hard digging, and I did find an answer to my own question. I'll get at it below, but thanks to the two fellas who replied. I think that Stack Overflow is a fantastic site already--I hope more Mac developers find their way in once the beta is over--this could be a great resource for other developers looki...
null
CC BY-SA 2.5
null
2008-08-15T23:12:13.267
2008-08-15T23:12:13.267
null
null
1,344
null
12,868
2
null
12,576
0
null
Follow some of the other advice first like profiling and making good resource allocation decisions, e.g. caching. Also, take into account the performance of outside resources like your database. In MySQL you can check the [slow query log](http://dev.mysql.com/doc/refman/5.0/en/slow-query-log.html) for example. In ...
null
CC BY-SA 2.5
null
2008-08-15T23:06:04.823
2008-08-15T23:06:04.823
null
null
1,227
null
12,870
1
12,878
null
17
1,402
This is a nasty one for me... I'm a PHP guy working in Java on a JSP project. I know how to do what I'm attempting through too much code and a complete lack of finesse. I'd prefer to do it right. Here is the situation: I'm writing a small display to show customers what days they can water their lawns based on th...
Arrays of Arrays in Java
CC BY-SA 3.0
0
2008-08-15T23:07:03.400
2018-01-30T07:09:29.400
2017-11-03T00:36:43.873
6,388,243
172
[ "java", "php", "jsp", "tomcat" ]
12,861
2
null
12,516
12
null
, Python version ``` #!/usr/bin/python class Node: """base class, you should not process one of these""" def process(self): raise('you should not be processing a node') class BinaryNode(Node): """base class for binary nodes""" def __init__(self, _left, _right): self.left = _left ...
null
CC BY-SA 2.5
null
2008-08-15T22:56:41.813
2008-09-02T15:34:27.150
2008-09-02T15:34:27.150
116
116
null
12,873
2
null
12,706
0
null
Thanks for the answers guys. It looks like customizing the DataGrid is the way to go. For any ASP.NET newbies, here's what I'm doing ``` <asp:DataGrid ID="GridView1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:BoundColumn DataField="RuleID" Visible="False" HeaderText="RuleID"></asp:BoundColu...
null
CC BY-SA 3.0
null
2008-08-15T23:11:50.100
2012-08-11T15:45:19.717
2012-08-11T15:45:19.717
1,477,076
109
null
12,876
2
null
12,516
0
null
@Justin: Look at my note on representing the nodes. If you use that scheme, then ``` 2 + (2) ``` can be represented as ``` . / \ 2 ( ) | 2 ```
null
CC BY-SA 2.5
null
2008-08-15T23:12:36.167
2008-08-15T23:40:16.720
2008-08-15T23:40:16.720
116
116
null
12,877
1
12,959
null
4
10,083
I just get the beach ball all day long (it's been doing nothing for hours). It's not taking CPU, not reading from disk, not using the network. I'm using on . It worked once, now even restarts of the computer won't help. Activity Monitor says it's "(Not Responding)". Only thing that I can do is kill -9 that sucker. W...
Oracle SQL Developer not responsive when trying to view tables (or suggest an Oracle Mac client)
CC BY-SA 3.0
null
2008-08-15T23:15:27.470
2020-03-30T11:39:01.327
2014-07-24T13:12:26.917
3,793,867
484
[ "java", "oracle", "macos" ]
12,886
2
null
12,855
7
null
You could add an indexed column holding a numerical hash key of the city name. (With duplicates allowed). Then you could do a multi-clause where : ``` hash = [compute hash key for 'SAN FRANCISCO'] SELECT county FROM city WHERE cityHash = hash AND UPPER(name) = 'SAN FRANCISCO' ; ``` Alternatively, go through ...
null
CC BY-SA 3.0
null
2008-08-15T23:28:22.687
2017-08-25T22:14:45.600
2017-08-25T22:14:45.600
7,076,958
1,244
null
12,875
2
null
12,823
5
null
Getting a Zip Code database is no problem. You can try this free one: [http://zips.sourceforge.net/](http://zips.sourceforge.net/) Although I don't know how current it is, or you can use one of many providers. We have an annual subscription to [ZipCodeDownload.com](http://www.ZipCodeDownload.com), and for maybe $100 w...
null
CC BY-SA 2.5
null
2008-08-15T23:12:26.323
2008-08-15T23:12:26.323
null
null
541
null
12,890
1
12,950
null
22
11,623
I have a large database of normalized order data that is becoming very slow to query for reporting. Many of the queries that I use in reports join five or six tables and are having to examine tens or hundreds of thousands of lines. There are lots of queries and most have been optimized as much as possible to reduce s...
What is a good way to denormalize a mysql database?
CC BY-SA 2.5
0
2008-08-15T23:36:30.207
2014-01-15T08:01:49.050
2014-01-15T08:01:49.050
2,967,572
1,430
[ "mysql", "database", "denormalization" ]
12,885
2
null
12,870
0
null
There is no pretty solution. Java just doesn't do things like this well. Mike's solution is pretty much the way to do it if you want strings as the indices (keys). Another option if the hash-of-hashes setup is too ugly is to append the strings together (shamelessly stolen from Mike and modified): ``` Hashtable<Stri...
null
CC BY-SA 2.5
null
2008-08-15T23:27:13.673
2008-08-15T23:27:13.673
null
null
872
null
12,863
2
null
7,074
582
null
The best answer I have ever heard about using the provided type aliases in C# comes from Jeffrey Richter in his book [CLR Via C#](https://rads.stackoverflow.com/amzn/click/com/0735621632). Here are his 3 reasons: > - - - ``` BinaryReader br = new BinaryReader(...); float val = br.ReadSingle(); // OK, but feels unna...
null
CC BY-SA 4.0
null
2008-08-15T23:00:44.410
2018-07-04T11:05:58.290
2018-07-04T11:05:58.290
5,407,188
646
null
12,896
1
12,965
null
35
59,411
I'm looking for good/working/simple to use PHP code for parsing raw email into parts. I've written a couple of brute force solutions, but every time, one small change/header/space/something comes along and my whole parser fails and the project falls apart. And before I get pointed at PEAR/PECL, I need actual code. My h...
parsing raw email in php
CC BY-SA 4.0
0
2008-08-15T23:50:17.527
2021-07-07T02:12:07.057
2021-07-07T02:12:07.057
13,176,802
314
[ "php", "email" ]
12,879
2
null
12,865
506
null
When "waiting for lock on repository", delete the repository file: `.hg/wlock` (or it may be in `.hg/store/lock`) When deleting the lock file, you must make sure nothing else is accessing the repository. (If the lock is a string of zeros or blank, this is almost certainly true).
null
CC BY-SA 4.0
null
2008-08-15T23:20:18.820
2019-05-23T14:43:33.520
2019-05-23T14:43:33.520
469,643
814
null
12,878
2
null
12,870
11
null
You could do essentially the same code with Hashtables (or some other Map): ``` Hashtable<String, Hashtable<String, String>> schedule = new Hashtable<String, Hashtable<String, String>>(); schedule.put("A", new Hashtable<String, String>()); schedule.put("B", new Hashtable<String, String>()); schedule.put("C", new H...
null
CC BY-SA 2.5
null
2008-08-15T23:16:52.383
2008-08-15T23:16:52.383
null
null
122
null
12,893
2
null
12,516
4
null
Representing the Nodes If we want to include parentheses, we need 5 kinds of nodes: - the binary nodes: Add Minus Mul Divthese have two children, a left and right side``` + / \ node node ``` - a node to hold a value: Valno children nodes, just a numeric value- a node to keep track of the parens: Parena single c...
null
CC BY-SA 2.5
null
2008-08-15T23:38:03.290
2008-08-15T23:38:03.290
null
null
116
null
12,898
2
null
12,669
2
null
You could go out and buy a bunch of books and start reading them and quickly get overwhelmed in the seemingly massive learning curve it takes to go from nowhere, which is where it appears you are, to a rich internet entrepreneur, which is where you want to be. Alternatively, and what I would suggest is, you could defi...
null
CC BY-SA 2.5
null
2008-08-15T23:55:01.713
2008-08-15T23:55:01.713
null
null
1,195
null
12,911
2
null
12,906
0
null
I know this might sound a little arcanine but why not just stat the directory that contains the database.
null
CC BY-SA 2.5
null
2008-08-16T00:15:10.940
2008-08-16T00:15:10.940
null
null
115
null
12,906
1
12,915
null
8
10,869
I need to know how much space occupies all the databases inside an SQL Server 2000. I did some research but could not found any script to help me out.
Find out complete SQL Server database size
CC BY-SA 2.5
0
2008-08-16T00:10:24.443
2011-01-13T03:47:00.927
2010-02-16T03:31:55.887
76,337
296
[ "sql-server" ]
12,902
2
null
12,890
2
null
MySQL 5 does support [views](http://dev.mysql.com/doc/refman/5.0/en/create-view.html), which may be helpful in this scenario. It sounds like you've already done a lot of optimizing, but if not you can use MySQL's [EXPLAIN](http://dev.mysql.com/doc/refman/5.0/en/explain.html) syntax to see what indexes are actually bei...
null
CC BY-SA 2.5
null
2008-08-16T00:04:20.523
2008-08-16T00:04:20.523
null
null
72
null
12,917
2
null
12,890
0
null
You might also want to consider selecting into a temporary table and then performing queries on that temporary table. This would avoid the need to rejoin your tables for every single query you issue (assuming that you can use the temporary table for numerous queries, of course). This basically gives you denormalized ...
null
CC BY-SA 2.5
null
2008-08-16T00:20:37.887
2008-08-16T00:20:37.887
null
null
872
null
12,905
1
31,828
null
2
599
I'm experimenting with creating an add-in for Infopath 2007. The documentation is very skimpy. What I'm trying to determine is what kind of actions an add-in can take while designing a form. Most of the discussion and samples are for when the user is filling out the form. Can I, for example, add a new field to the form...
Creating Infopath 2007 addins that manipulate the design-time form
CC BY-SA 2.5
null
2008-08-16T00:08:23.637
2008-09-26T18:42:32.840
2008-09-26T18:42:32.840
2,134
9
[ "ms-office", "infopath" ]
12,900
2
null
12,890
1
null
I know this is a bit tangential, but have you tried seeing if there are more indexes you can add? I don't have a lot of DB background, but I am working with databases a lot recently, and I've been finding that a lot of the queries can be improved just by adding indexes. We are using DB2, and there is a command called...
null
CC BY-SA 2.5
null
2008-08-15T23:58:13.907
2008-08-15T23:58:13.907
null
null
122
null
12,899
2
null
12,870
3
null
I'm not a Java programmer, but getting away from Java and just thinking in terms that are more language agnostic - a cleaner way to do it might be to use either constants or enumerated types. This should work in any langauge that supports multi-dimensional arrays. If using named constants, where, for example: ``` i...
null
CC BY-SA 2.5
null
2008-08-15T23:56:20.010
2008-08-15T23:59:53.137
2008-08-15T23:59:53.137
958
958
null
12,919
2
null
12,823
0
null
> how on earth do one [...] implement the function that given zip code 12345, gets all zipcodes in 1 mile distance? Here is a sample on how to do that: [http://www.codeproject.com/KB/cs/zipcodeutil.aspx](http://www.codeproject.com/KB/cs/zipcodeutil.aspx)
null
CC BY-SA 2.5
null
2008-08-16T00:22:39.690
2008-08-16T00:22:39.690
null
null
731
null
12,923
2
null
12,870
6
null
It seems like everyone is trying to find the Java way to do it like you're doing it in PHP, instead of the way it ought to be done in Java. Just consider each piece of your array an object, or, at the very least, the first level of the array as an object and each sub level as variables inside the object. The build a da...
null
CC BY-SA 2.5
null
2008-08-16T00:28:34.220
2008-08-16T00:28:34.220
null
null
1,195
null
12,910
2
null
9,831
3
null
Ok, it looks like there are a couple of issues here. As far as I can tell, there is no such thing as a "droppable" in mootools. This means your events like 'enter', 'leave' and 'drop' won't work. (These are events on the drag object) If you change those names to events that elements in mootools have (as in, DOM events...
null
CC BY-SA 3.0
null
2008-08-16T00:13:57.603
2011-08-15T21:18:01.643
2011-08-15T21:18:01.643
95
1,477
null
12,929
1
12,945
null
5
501
Is it in best interests of the software development industry for one framework, browser or language to and become the de facto standard? On one side it takes away the challenges of cross platform, but it opens it up for a single point of failure. Would it also result in a stagnation of innovation, or would it allow ...
Is a Homogeneous development platform good for the industry?
CC BY-SA 2.5
null
2008-08-16T00:46:54.167
2008-11-03T13:10:32.563
2008-11-03T13:10:32.563
23,855
255
[ "cross-platform" ]
12,935
2
null
12,836
15
null
I find it better to use null, instead of DB null. The reason is because, as you said, you're separating yourself from the DB world. It is generally good practice to check reference types to ensure they aren't null anyway. You're going to be checking for null for things other than DB data, and I find it is best to kee...
null
CC BY-SA 3.0
null
2008-08-16T00:55:43.510
2012-08-11T16:08:41.897
2012-08-11T16:08:41.897
1,477,076
392
null
12,927
1
12,961
null
16
5,553
I am calling a vendor's Java API, and on some servers it appears that the JVM goes into a low priority polling loop after logging into the API (CPU at 100% usage). The same app on other servers does not exhibit this behavior. This happens on WebSphere and Tomcat. The environment is tricky to set up so it is difficult...
If you have a Java application that is consuming CPU when it isn't doing anything, how do you determine what it is doing?
CC BY-SA 3.0
0
2008-08-16T00:45:38.210
2015-08-20T22:20:12.353
2011-10-17T11:59:28.930
496,830
791
[ "java", "profiling" ]
12,918
2
null
12,870
9
null
Don't try to be as dynamic as PHP is. You could try to first what you need. ``` interface Season { public string getDays(); } interface User { public Season getWinter(); public Season getSpring(); public Season getSummer(); public Season getFall(); } interface UserMap { public User getUser(s...
null
CC BY-SA 2.5
null
2008-08-16T00:21:05.763
2008-08-16T00:21:05.763
null
null
268
null
12,932
2
null
12,870
1
null
I agree that you should definitely put this logic behind the clean interface of: ``` public String lookupDays(String group, String date); ``` but maybe you should stick the data in a properties file. I'm not against hardcoding this data in your source files but, as you noticed, Java can be pretty wordy when it come...
null
CC BY-SA 2.5
null
2008-08-16T00:53:11.563
2008-08-16T00:53:11.563
null
null
1,471
null
12,938
2
null
12,929
0
null
No. Competition is good. It may make a web developers job easier, but I think it's bad for the industry. I personally prefer having choices. I believe Joel Spolsky's technique of creating his own language (Wasabi) to insulate his company from being platform specific is a good one. I also believe it is a good id...
null
CC BY-SA 2.5
null
2008-08-16T00:57:52.850
2008-08-16T00:57:52.850
null
null
791
null
12,944
2
null
12,929
0
null
I'm gonna have to agree with Mike on this one and say that without competition there is very little incentive to innovate.
null
CC BY-SA 2.5
null
2008-08-16T01:10:51.497
2008-08-16T01:10:51.497
null
null
493
null
12,928
2
null
3,088
1
null
Plenty of things tripped me up in the beginning, but none more than simple mechanics. Concepts, I took to immediately. But miss a closing brace? Easy to do, and often hard to debug, in a non-trivial program. So, my humble advice is: don't understimate the basics (like good typing). It sounds remedial, and even sill...
null
CC BY-SA 2.5
null
2008-08-16T00:46:31.483
2008-08-16T01:00:11.783
2017-05-23T12:03:03.317
-1
958
null
12,945
2
null
12,929
11
null
Defacto standards are bad because they are usually controlled by a single party. What is best for the industry is for there to be a foundation of open standards on top of which everyone can compete. The web is a perfect example. When IE won the browser war, it stagnated for , and is only just now starting to improve ...
null
CC BY-SA 2.5
null
2008-08-16T01:16:51.750
2008-08-16T01:16:51.750
null
null
1,249
null
12,946
1
12,979
null
8
20,025
Say you have 2 database servers, one database is the 'master' database where all write operations are performed, it is treated as the 'real/original' database. The other server's database is to be a mirror copy of the master database (slave?), which will be used for read only operations for a certain part of the appli...
Database replication. 2 servers, Master database and the 2nd is read-only
CC BY-SA 2.5
0
2008-08-16T01:18:46.007
2014-01-23T17:30:31.353
null
null
1,368
[ "sql-server", "replication" ]
12,936
1
16,749
null
17
2,950
Does anybody have experience working with PHP accelerators such as [MMCache](http://turck-mmcache.sourceforge.net/) or [Zend Accelerator](http://www.zend.com/en/)? I'd like to know if using either of these makes PHP comparable to web-technologies. Also, are there trade offs for using these?
Is using PHP accelerators such as MMCache or Zend Accelerator making PHP faster?
CC BY-SA 4.0
0
2008-08-16T00:55:53.010
2021-06-29T17:08:55.650
2021-06-29T17:08:55.650
1,839,439
40
[ "php", "caching", "zend-optimizer" ]