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
35,477
2
null
35,333
6
null
I forgot that in C you have to declare all your variables before any code.
null
CC BY-SA 3.0
null
2008-08-29T23:52:27.797
2011-09-05T05:21:32.340
2011-09-05T05:21:32.340
23,199
2,566
null
35,472
2
null
35,463
4
null
Here's my really naive solution. Your mileage may vary. Keep a sign bit, which is `sign(dividend) ^ sign(divisor)`. (Or `*`, or `/`, if you're storing your sign as 1 and -1, as opposed to false and true. Basically, negative if either one is negative, positive if none or both are negative.) Then, call the unsigned div...
null
CC BY-SA 2.5
null
2008-08-29T23:45:58.797
2008-08-30T00:49:45.803
2008-08-30T00:49:45.787
13
13
null
35,486
1
35,609
null
15
15,492
What is the best way to create fluid width/height rounded corners with jQuery? --- That plugin doesn't keep the height the same. I have a 10px high div that I want to round the corners on, when I use that script it adds about 10px onto whats there.
Fluid rounded corners with jQuery
CC BY-SA 3.0
0
2008-08-30T00:04:38.440
2015-05-18T20:17:55.377
2013-07-30T16:40:24.310
2,224,265
2,066
[ "jquery" ]
35,485
1
35,738
null
2
1,273
I want to be able to get an estimate of how much code & static data is used by my C++ program? Is there a way to find this out by looking at the executable or object files? Or perhaps something I can do at runtime? Will objdump & readelf help?
Linux: What is the best way to estimate the code & static data size of program?
CC BY-SA 2.5
0
2008-08-30T00:03:39.253
2016-05-09T06:09:43.830
2016-05-09T06:09:43.830
116
1,841
[ "c++", "linux", "unix" ]
35,490
1
65,385
null
47
14,071
In one of the answers to [Broadcast like UDP with the Reliability of TCP](https://stackoverflow.com/questions/31572/broadcast-like-udp-with-the-reliability-of-tcp#31629), a user mentions the [Spread](http://spread.org) messaging API. I've also run across one called [ØMQ](http://zeromq.org). I also have some familiari...
Spread vs MPI vs zeromq?
CC BY-SA 2.5
0
2008-08-30T00:07:41.770
2012-10-19T23:06:59.837
2017-05-23T11:55:04.370
-1
3,279
[ "api", "networking", "messaging", "distributed", "cluster-computing" ]
35,480
1
35,529
null
2
1,498
I'm currently working on a large implementation of Class::DBI for an existing database structure, and am running into a problem with clearing the cache from Class::DBI. This is a mod_perl implementation, so an instance of a class can be quite old between times that it is accessed. From the man pages I found two option...
How can I clear Class::DBI's internal cache?
CC BY-SA 2.5
null
2008-08-29T23:56:27.303
2010-02-05T04:23:22.140
2010-02-05T04:23:22.140
77,782
3,421
[ "perl", "class-dbi" ]
35,491
1
35,694
null
3
2,362
I want to be able to get an estimate of how much code & static data is used by my C++ program? Is there a way to find this out by looking at the executable or object files? Or perhaps something I can do at runtime? Will otool help?
Mac OS X: What is the best way to estimate the code & static data size of program?
CC BY-SA 2.5
0
2008-08-30T00:09:38.817
2017-06-19T16:04:25.140
2008-09-16T03:55:25.603
714
1,841
[ "macos", "mach-o" ]
35,467
2
null
34,914
1
null
In all cases here is actual code that runs ... doesn't mean much but produces output and hopefully can get you started ... ``` use XML::Parser; package MyNode::inner; sub doSomething { my $self = shift; print "This is an inner node containing : "; print $self->{Kids}->[0]->{Text}; print "\...
null
CC BY-SA 2.5
null
2008-08-29T23:29:17.917
2008-08-29T23:29:17.917
null
null
238
null
35,495
2
null
35,494
0
null
You can install SQLite and a Rails server like Mongrel on a Windows machine. I used Aptana to run a development environment, but I'm sure that there are better alternatives that don't require the IDE to be open to run. But this proves it is possible.
null
CC BY-SA 2.5
null
2008-08-30T00:11:22.917
2008-08-30T00:11:22.917
null
null
572
null
35,499
1
35,513
null
14
6,029
In the project I am currently working on, we have the need to develop a web chat application, not a very complex chat, just a way to connect two people to talk about a very specific topic, we don't need any kind of authentication for one of the two users, we don't have to support emoticons, avatars, or stuff like that....
Chat application AJAX polling
CC BY-SA 4.0
0
2008-08-30T00:14:19.227
2019-01-18T11:03:12.100
2019-01-18T11:03:12.100
567,854
3,695
[ "php", "ajax", "chat" ]
35,494
1
35,596
null
8
2,076
I'm looking to run Redmine, a Ruby on Rails app, on a VPS windows box. The only thing I can really think of is running a virtual Linux machine and hosting it from there. If that is my only option, am I going to run into problems running a virtual machine inside of a virtual machine? Also, this will be an internal ap...
Is there anyway to run Ruby on Rails applications on a Windows box?
CC BY-SA 3.0
0
2008-08-30T00:10:12.480
2012-10-11T14:29:23.523
2012-10-11T14:29:23.523
1,017,941
2,066
[ "ruby-on-rails", "windows", "ruby" ]
35,502
2
null
34,711
1
null
There isn't much information on this out there but it seems to be their own customized controls plus an IE component (and not Qt like Google Earth). [This forum thread](http://www.customizetalk.com/forums/viewtopic.php?t=841&postdays=0&postorder=asc&start=0) has a little bit of information.
null
CC BY-SA 2.5
null
2008-08-30T00:16:34.743
2008-08-30T02:11:10.430
2008-08-30T02:11:10.430
3,002
3,002
null
35,496
2
null
35,248
0
null
The problem with the applet approach mentioned is that unless you have the end user modify their java security properties your applet will not have permission to save to the hard drive. It may be possible using [Java Web Start](http://java.sun.com/developer/technicalArticles/Programming/jnlp/) (aka JNLP). I think t...
null
CC BY-SA 2.5
null
2008-08-30T00:12:05.363
2008-08-30T00:12:05.363
null
null
3,535
null
35,503
2
null
35,123
0
null
Don't you need to recompute the size of the scrollBox after the layout?
null
CC BY-SA 2.5
null
2008-08-30T00:16:36.693
2008-08-30T00:16:36.693
null
null
1,666
null
35,501
2
null
35,479
0
null
You could use the IISReset command line tool to stop/restart iis. So you could write a simple batch file to stop iis, copy your files, and then restart iis. I'm not sure how to integrate this with the VS publish feature however.
null
CC BY-SA 2.5
null
2008-08-30T00:16:29.673
2008-08-30T00:16:29.673
null
null
637
null
35,508
2
null
35,485
1
null
`readelf` will indeed help. You can use the `-S` option; that will show the sizes of all sections. `.text` is (the bulk of) your executable code. `.data` and `.rodata` is your static data. There are other sections too, some of which are used at runtime, others only at link time.
null
CC BY-SA 2.5
null
2008-08-30T00:19:35.703
2008-08-30T00:19:35.703
null
null
13
null
35,479
1
47,221
null
2
1,056
I'm using a native DLL (FastImage.dll) in a C# ASP.NET Web Service that sometimes locks (can't delete it---says access denied); this requires stopping IIS to delete the DLL. The inability to delete this DLL in the bin folder of my published Web Service prevents me from publishing successfully (even though it thinks it ...
Exception in Web Service locks DLL and prevents publishing. Workaround?
CC BY-SA 2.5
null
2008-08-29T23:55:09.350
2008-09-06T03:09:26.077
null
null
2,543
[ "c#", "asp.net", "visual-studio", "web-services", "iis" ]
35,509
2
null
35,499
5
null
> What would you recommend? XMPP through BOSH There's no need to invent your own message format and transport protocol when somebody else has. If you try, it'll slowly grow to be just as complex as BOSH but without the benefit of third-party library support or standardization.
null
CC BY-SA 2.5
null
2008-08-30T00:22:22.577
2008-08-30T00:22:22.577
null
null
3,560
null
35,463
1
null
null
10
9,347
Some code that rounds up the division to demonstrate (C-syntax): ``` #define SINT64 long long int #define SINT32 long int SINT64 divRound(SINT64 dividend, SINT64 divisor) { SINT32 quotient1 = dividend / divisor; SINT32 modResult = dividend % divisor; SINT32 multResult = modResult * 2; SINT32 quotient2 = mult...
How to divide two 64-bit numbers in Linux Kernel?
CC BY-SA 4.0
null
2008-08-29T23:22:39.430
2019-12-31T12:58:00.143
2019-12-31T12:58:00.143
1,221,236
null
[ "c", "linux", "64-bit" ]
35,492
2
null
22,873
7
null
: O'Reilly Book: 1. Real World Haskell, a great tutorial-oriented book on Haskell, available online and in print. My favorite general, less academic online tutorials: 1. The Haskell wikibook which contains all of the excellent Yet Another Haskell Tutorial. (This tutorial helps with specifics of setting up a Has...
null
CC BY-SA 2.5
null
2008-08-30T00:09:40.737
2010-03-07T18:52:06.160
2010-03-07T18:52:06.160
2,543
2,543
null
35,510
2
null
35,486
11
null
``` $(this).corner(); ``` See: [malsup.com/jquery/corner](http://malsup.com/jquery/corner) and [github repository for future ref](http://github.com/malsup/corner)
null
CC BY-SA 3.0
null
2008-08-30T00:23:34.977
2013-07-30T16:40:34.093
2013-07-30T16:40:34.093
2,224,265
2,422
null
35,511
2
null
35,026
0
null
You shouldn't ever really need to do this. Most software that to require the default instance (like Great Plains or Dynamics) doesn't actually. If you repost with your situation (installed X, then Y, but need to accomplish Z) I bet you'll get some good workarounds.
null
CC BY-SA 2.5
null
2008-08-30T00:26:18.090
2008-08-30T00:26:18.090
null
null
1,690
null
35,507
1
234,746
null
3
996
I have been working with Struts for some time, but for a project I am finishing I was asked to separate Templates (velocity .vm files), configs (struts.xml, persistence.xml) from main WAR file. I have all in default structure like: And I apparently can't find documentation about how to setup (probably in struts.xm...
Changing default file structure in a Java Struts App
CC BY-SA 3.0
null
2008-08-30T00:19:14.877
2011-11-19T01:16:07.680
2011-11-19T01:16:07.680
419
2,274
[ "java", "templates", "struts", "configuration-files" ]
35,513
2
null
35,499
7
null
You might also want to look into [Comet](http://en.wikipedia.org/wiki/Comet_(programming)). It's used by GTalk, Meebo, and many [other chat applications](http://ajaxian.com/archives/comet-a-new-approach-to-ajax-applications). A few years ago when I was experimenting with it, there weren't very many libraries or detail...
null
CC BY-SA 2.5
null
2008-08-30T00:29:37.490
2008-09-10T18:16:05.583
2008-09-10T18:16:05.583
1,811
1,811
null
35,512
2
null
35,232
1
null
+1 for SQL Server Compact. It's free and there's no 'engine' in the sense of a full-time service, but you do have to deploy a runtime (it's just two .dll files).
null
CC BY-SA 2.5
null
2008-08-30T00:26:24.970
2008-08-30T00:26:24.970
null
null
3,043
null
35,515
2
null
35,494
2
null
Redmine ran fine on our Windows build server from the command line, sans IDE, using Mongrel and SQLite. Granted, ours isn't a VPS, but at any rate Linux isn't required for this app.
null
CC BY-SA 2.5
null
2008-08-30T00:34:08.510
2008-08-30T00:34:08.510
null
null
3,462
null
35,506
2
null
31,173
2
null
I just wrote this: ``` makeSearchCommand({ name: "stackoverflow-tagsearch", author: { name: "Jörg W Mittag", email: "JoergWMittag+Ubiquity@GoogleMail.Com"}, license: "MIT X11", url: "http://Beta.StackOverflow.Com/questions/tagged/{QUERY}", icon: "http://StackOverflow.Com/favicon.ico", description: "Searche...
null
CC BY-SA 2.5
null
2008-08-30T00:18:54.833
2009-03-18T16:49:34.757
2009-03-18T16:49:34.757
2,988
2,988
null
35,514
2
null
35,232
2
null
To the best of my knowledge, you can attach directly to the MDF (called a "user instance", rather than attaching the MDF to a "server instance") only if SQL Server Express is installed on that machine. So your machine that has MySql on it would also have to run SQL Server Express.
null
CC BY-SA 2.5
null
2008-08-30T00:31:37.687
2008-08-30T00:31:37.687
null
null
470
null
35,518
2
null
35,322
1
null
Might be a kludge (and may not even work) but on your Login page see if `Request.QueryString["ReturnUrl"] != null` and if so set `Response.StatusCode = 401`. Bear in mind that you'll still need to get your console app to authenticate somehow. You don't get HTTP basic auth for free: you have to roll your own, but there...
null
CC BY-SA 2.5
null
2008-08-30T00:38:02.850
2008-08-30T00:38:02.850
null
null
1,278
null
35,520
2
null
31,077
4
null
We just did a large AIR app that used PDF quite a bit - make sure you save yourself some heartache and write some code to check the acrobat version or that it's even installed - if they don't have it you won't get an error, just a blank HTML control. I know, it sounds obvious, but still...
null
CC BY-SA 2.5
null
2008-08-30T00:39:34.237
2008-08-30T00:39:34.237
null
null
3,435
null
35,522
1
35,524
null
0
1,198
Programming Student here...trying to work on a project but I'm stuck. The project is trying to find the miles per gallon per trip then at the end outputting total miles and total gallons used and averaging miles per gallon How do I loop back up to the first question after the first set of questions has been asked. ...
looping and average in c++
CC BY-SA 2.5
null
2008-08-30T00:44:43.180
2012-02-16T05:21:50.507
null
null
335,696
[ "c++" ]
35,528
1
null
null
5
780
Does anyone known of a a good reference for canonical CS problems? I'm thinking of things like "the sorting problem", "the bin packing problem", "the travailing salesman problem" and what not. websites preferred
canonical problems list
CC BY-SA 2.5
0
2008-08-30T00:53:39.943
2009-06-19T07:43:07.200
2008-09-26T18:24:48.593
4,203
1,343
[ "reference", "theory", "knapsack-problem" ]
35,524
2
null
35,522
2
null
You will have to tell us the type of data you are given. As per your last question: remember that an average can be calculated in real time by either storing the sum and the number of data points (two numbers), or the current average and the number of data points (again, two numbers). For instance: ``` class Average...
null
CC BY-SA 2.5
null
2008-08-30T00:47:12.377
2008-08-30T00:47:12.377
null
null
338
null
35,521
2
null
35,429
2
null
Another option is running the appropriate `vars` batch file from a regular command prompt. The name and location varies from version to version. For VS2003, I believe it's `C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat`
null
CC BY-SA 4.0
null
2008-08-30T00:41:39.457
2021-04-15T17:49:43.960
2021-04-15T17:49:43.960
1,155,000
3,462
null
35,529
2
null
35,480
5
null
The "[common problems](http://wiki.class-dbi.com/wiki/Common_problems)" page on the [Class::DBI wiki](http://wiki.class-dbi.com/wiki) has a [section](http://wiki.class-dbi.com/wiki/Common_problems#Old_data_due_to_object_index) on this subject. The simplest solution is to disable the live object index entirely using: ...
null
CC BY-SA 2.5
null
2008-08-30T00:54:08.477
2008-08-30T00:54:08.477
null
null
164
null
35,526
2
null
35,407
1
null
I'd drop the '-l' If all you plan to run the the system is this build I the -j 4 does what you want. Based on my memory, if you have anything else running (crond?), that can push the load average over 4. [GNU make ref](http://sunsite.ualberta.ca/Documentation/Gnu/make-3.79/html_chapter/make_5.html#SEC47)
null
CC BY-SA 2.5
null
2008-08-30T00:49:34.633
2008-08-30T00:49:34.633
null
null
1,343
null
35,516
2
null
35,322
5
null
Ok, I worked around this. I made a custom ActionResult (HttpForbiddenResult) and custom ActionFilter (NoFallBackAuthorize). To avoid redirection, HttpForbiddenResult marks responses with status code 403. FormsAuthentication doesn't catch responses with this code so the login redirection is effectively skipped. The NoF...
null
CC BY-SA 2.5
null
2008-08-30T00:36:31.093
2008-08-30T00:36:31.093
null
null
1,946
null
35,530
1
35,531
null
27
85,537
Graphics and audio editing and processing software often contain functions called "High-Pass Filter" and "Low-Pass Filter". Exactly what do these do, and what are the algorithms for implementing them?
What Are High-Pass and Low-Pass Filters?
CC BY-SA 2.5
0
2008-08-30T00:55:26.053
2013-09-09T00:11:54.267
2008-10-05T02:07:23.717
11,694
1,175
[ "algorithm", "graphics", "audio", "photoshop", "signal-processing" ]
35,533
2
null
35,530
5
null
They are generally Electrical circuits that tend to pass parts of analog signals. High pass tends to transmit more of the high frequency parts and low pass tends to pass more of the low frequency parts. They can be simulated in software. A walking average can act as a low pass filter for instance and the difference be...
null
CC BY-SA 2.5
null
2008-08-30T00:59:58.243
2008-08-30T00:59:58.243
null
null
1,343
null
35,534
2
null
35,528
4
null
You can probably find the best in an algorithms textbook like [Introduction to Algorithms](https://rads.stackoverflow.com/amzn/click/com/0262032937). Though I've never read that particular book, it's quite renowned for being thorough and would probably contain most of the problems you're likely to encounter.
null
CC BY-SA 2.5
null
2008-08-30T01:00:11.707
2008-08-30T01:00:11.707
null
null
658
null
35,537
1
35,665
null
9
33,918
Is there an easy way to set the zoom level for a windows form in C#? In VBA there was a zoom property of the form.
Zoom for a windows form in C#
CC BY-SA 2.5
0
2008-08-30T01:11:46.937
2018-05-23T16:27:21.820
2018-05-23T16:27:21.820
8,422,953
3,270
[ "c#", "winforms" ]
35,536
2
null
35,528
4
null
["Computers and Intractability: A guide to the theory of NP-Completeness"](http://portal.acm.org/citation.cfm?id=578533) by Garey and Johnson is a great reference for this sort of thing, although the "solved" problems (in P) are obviously not given much attention in the book. I'm not aware of any good on-line resource...
null
CC BY-SA 2.5
null
2008-08-30T01:07:50.020
2009-06-19T07:43:07.200
2009-06-19T07:43:07.200
68,204
3,446
null
35,539
2
null
35,494
0
null
Try using a Rails distribution like: [http://instantrails.rubyforge.org/wiki/wiki.pl](http://instantrails.rubyforge.org/wiki/wiki.pl) One download install for rails+ruby+mysql on Windows.
null
CC BY-SA 2.5
null
2008-08-30T01:15:39.720
2008-08-30T01:15:39.720
null
null
2,603
null
35,538
1
35,543
null
43
26,949
What's the best way to go about validating that a document follows some version of HTML (prefereably that I can specify)? I'd like to be able to know where the failures occur, as in a web-based validator, except in a native Python app.
Validate (X)HTML in Python
CC BY-SA 2.5
0
2008-08-30T01:15:32.370
2020-10-23T14:58:43.143
null
null
3,594
[ "python", "html", "validation", "xhtml" ]
35,541
1
145,362
null
2
4,155
Doug McCune had created something that was exactly what I needed ([http://dougmccune.com/blog/2007/05/10/analyze-your-actionscript-code-with-this-apollo-app/](http://dougmccune.com/blog/2007/05/10/analyze-your-actionscript-code-with-this-apollo-app/)) but alas - it was for AIR beta 2. I just would like some tool that ...
Are there any good programs for actionscript/flex that'll count lines of code, number of functions, files, packages,etc
CC BY-SA 2.5
null
2008-08-30T01:17:52.100
2010-04-28T03:17:49.820
null
null
3,435
[ "apache-flex", "actionscript-3", "code-analysis" ]
35,545
2
null
35,494
1
null
I had good luck in the past with InstantRails, but I'm not sure how up-to-date it is now, as the project has changed hands several times. You might also try [ruby stack](http://bitnami.org/stack/rubystack) or [flash rails](http://rubyforge.org/projects/flashrails), though I've not used either personally.
null
CC BY-SA 2.5
null
2008-08-30T01:23:06.770
2008-08-30T01:23:06.770
null
null
85
null
35,550
2
null
34,726
1
null
I didn't know JRun was even still in existence since 1999 or something like that. Anyway, [Tomcat](http://tomcat.apache.org/) or [Jetty](http://jetty.mortbay.org/jetty/) would be my easy replacements. Tomcat for its scriptability from ANT etc and Jetty for its pure simplicity (start an instance in 5 lines of code!). [...
null
CC BY-SA 2.5
null
2008-08-30T01:28:55.897
2008-08-30T01:28:55.897
null
null
1,915
null
35,548
1
35,592
null
2
439
I use this tool called [Lazy C++](http://www.lazycplusplus.com/) which breaks a single C++ .lzz file into a .h and .cpp file. I want [Makepp](http://makepp.sourceforge.net/) to expect both of these files to exist after my rule for building .lzz files, but I'm not sure how to put two targets into a single build line.
Make source with two targets
CC BY-SA 2.5
null
2008-08-30T01:26:42.203
2010-04-26T22:57:48.287
2008-08-30T02:33:25.103
3,594
3,594
[ "build-process", "makefile", "lazy-c++" ]
35,552
2
null
35,541
0
null
To get a rough estimate, you could always run `find . -type f -exec cat {} \; | wc -l` in the project directory if you're using Mac OS X.
null
CC BY-SA 2.5
null
2008-08-30T01:29:49.200
2008-08-30T01:29:49.200
null
null
3,499
null
35,553
2
null
1,644
1
null
Stack Overflow This Week in Tech Security Now As I learn more about programming I'll add more to my list. Adding 43 folders now.
null
CC BY-SA 2.5
null
2008-08-30T01:30:32.303
2008-08-30T01:30:32.303
null
null
335,696
null
35,556
2
null
35,551
18
null
You've probably got the right code, but you also need to add CODE_ANALYSIS as a precompiler defined symbol in the project properties. I think those SuppressMessage attributes are only left in the compiled binaries if CODE_ANALYSIS is defined.
null
CC BY-SA 2.5
null
2008-08-30T01:37:11.273
2008-08-30T01:37:11.273
null
null
615
null
35,559
1
35,578
null
2
1,321
Wikipedia says SQL Server Express Edition is limited to "one processor, 1 GB memory and 4 GB database files". Does anyone have practical experience with how well this scales?
How far does SQL Server Express Edition scale?
CC BY-SA 2.5
0
2008-08-30T01:44:34.347
2013-06-09T12:49:32.487
2013-06-09T12:49:32.487
1,012,641
1,208
[ "sql-server-express" ]
35,543
2
null
35,538
17
null
XHTML is easy, use [lxml](http://lxml.de/validation.html). ``` from lxml import etree from StringIO import StringIO etree.parse(StringIO(html), etree.HTMLParser(recover=False)) ``` HTML is harder, since there's traditionally not been as much interest in validation among the HTML crowd (run StackOverflow itself throu...
null
CC BY-SA 4.0
null
2008-08-30T01:20:52.157
2019-09-14T13:49:06.937
2019-09-14T13:49:06.937
1,153,476
3,560
null
35,531
2
null
35,530
22
null
Wikipedia: - [High-pass filter](http://en.wikipedia.org/wiki/High-pass_filter)- [Low-pass filter](http://en.wikipedia.org/wiki/Low-pass_filter)- [Band-pass filter](http://en.wikipedia.org/wiki/Band-pass_filter) These "high", "low", and "band" terms refer to . In high-pass, you try to remove low frequencies. In low-pa...
null
CC BY-SA 2.5
null
2008-08-30T00:58:00.027
2008-08-30T00:58:00.027
null
null
338
null
35,562
2
null
35,538
2
null
I think that [HTML tidy](http://tidy.sourceforge.net/) will do what you want. There is a Python binding for it.
null
CC BY-SA 2.5
null
2008-08-30T01:48:07.800
2008-08-30T01:48:07.800
null
null
619
null
35,551
1
35,556
null
19
6,679
In a project I'm working on FxCop shows me lots of (and I mean more than 400) errors on the InitializeComponent() methods generated by the Windows Forms designer. Most of those errors are just the assignment of the Text property of labels. I'd like to suppress those methods in source, so I copied the suppression code ...
Excluding Code Analysis rule in source
CC BY-SA 3.0
0
2008-08-30T01:29:05.617
2015-08-27T22:28:06.937
2015-08-27T22:28:06.937
76,337
2,148
[ "visual-studio", "code-analysis", "fxcop", "suppression", "initializecomponent" ]
35,561
2
null
33,478
3
null
I'll second the vote for [Telerik](http://www.telerik.com). Their controls for the most part "just work" and their support has been excellent. I primarily use their forums and I still receive a response within a day (unlike some other vendors who barely seem to notice that they've even got a forum). It also feels like ...
null
CC BY-SA 2.5
null
2008-08-30T01:46:53.403
2008-08-30T01:46:53.403
2020-06-20T09:12:55.060
-1
3,656
null
35,566
2
null
33,478
1
null
I don't have a recommendation, but I do have some feedback on the Telerik recommendations. I can't stand their tools myself. The performance of their more complicated controls (e.g., Tree, Grid) is very sluggish and feels very un-web 2.0.
null
CC BY-SA 2.5
null
2008-08-30T01:49:50.060
2008-08-30T01:49:50.060
null
null
1,208
null
35,557
2
null
35,320
3
null
If you just want want the highest recursion depth couldn't you do something like this?Then, when you actually query the CTE just look for the row with max(Depth)? Like so: ``` DECLARE @LookupID int --Our test value SET @LookupID = 1; WITH cteLevelOne (ParentID, CustID, Depth) AS ( SELECT a.ParentID, a.Cus...
null
CC BY-SA 2.5
null
2008-08-30T01:42:45.613
2008-08-30T02:01:11.717
2008-08-30T02:01:11.717
794
794
null
35,569
1
35,582
null
12
821
It seems like if you want to get the keys of a mapping, you ask for them; otherwise, give me the mapping (constituted by a set of key-value pairs). Is there a historical reason for this?
Why does Python's iter() on a mapping return iterkeys() instead of iteritems()?
CC BY-SA 2.5
null
2008-08-30T01:51:05.187
2008-09-05T19:22:17.900
2008-09-05T19:22:17.900
3,594
3,594
[ "python", "mapping", "iteration" ]
35,560
1
36,348
null
6
3,785
I'm looking to push my domain model into a WCF Service API and wanted to get some thoughts on lazy loading techniques with this type of setup. Any suggestions when taking this approach? --- when I implemented this technique and step into my app, just before the server returns my list it hits the get of each prope...
Lazy Loading with a WCF Service Domain Model?
CC BY-SA 3.0
null
2008-08-30T01:46:19.630
2011-11-19T03:47:48.143
2011-11-19T03:47:48.143
54,680
2,701
[ "wcf", "web-services", "domain-driven-design" ]
35,568
2
null
33,933
1
null
Another very hacky option, if you are stuck with a lot of constraints, but know what the surrounding dom will look like: ``` style="width:100%;width:expression(this.parentNode.parentNode.parentNode.parentNode.width +'px')" ``` not pretty, but does work in IE7. Using jquery or similar would be a much neater solutio...
null
CC BY-SA 2.5
null
2008-08-30T01:50:58.917
2008-08-31T04:30:11.333
2008-08-31T04:30:11.333
3,354
3,354
null
35,571
2
null
35,499
0
null
I thought everyone used cometd for this sort of thing.
null
CC BY-SA 2.5
null
2008-08-30T01:54:36.943
2008-08-30T01:54:36.943
null
null
3,499
null
35,570
2
null
35,551
2
null
Module level suppression messages need to be pasted into the same file as the code that is raising the FxCop error before the namespace declaration or in assemblyinfo.cs. Additionally, you will need to have CODE_ANALYSIS defined as a conditional compiler symbols (Project > Properties > Build). Once that is in place, do...
null
CC BY-SA 2.5
null
2008-08-30T01:52:50.533
2008-08-30T02:21:17.393
2008-08-30T02:21:17.393
1,185
1,185
null
35,576
2
null
35,559
2
null
We have used SQL Server Express Edition in some of our smaller applications, maybe 5+ users, and smaller databases. The 4GB is very limiting in a high transaction environments, and in some cases we have had to migrate our customer to SQL Server Standard Edition.
null
CC BY-SA 2.5
null
2008-08-30T01:57:55.733
2008-08-30T01:57:55.733
null
null
1,768
null
35,572
2
null
35,538
6
null
Try tidylib. You can get some really basic bindings as part of the elementtidy module (builds elementtrees from HTML documents). [http://effbot.org/downloads/#elementtidy](http://effbot.org/downloads/#elementtidy) ``` >>> import _elementtidy >>> xhtml, log = _elementtidy.fixup("<html></html>") >>> print log line 1 col...
null
CC BY-SA 2.5
null
2008-08-30T01:55:50.170
2008-08-30T01:55:50.170
null
null
2,603
null
35,573
2
null
35,563
1
null
I can't reproduce this, hitting either +, + or the arrow keys updates the command line correctly. Are you running 10.5.4? Is it perhaps a bug in earlier versions?
null
CC BY-SA 3.0
null
2008-08-30T01:55:56.563
2015-09-06T15:29:46.980
2015-09-06T15:29:46.980
2,002,471
3,002
null
35,577
2
null
24,812
0
null
I would second: Programming Game AI by example (Matt Buckland) This book gives great algorithms that should easly port to XNA.
null
CC BY-SA 2.5
null
2008-08-30T01:58:16.137
2008-08-30T01:58:16.137
null
null
2,469
null
35,517
2
null
31,226
5
null
As you are sure about needing to represent the side of things, it may be worth looking at the [XSL-FO](http://www.w3.org/TR/xsl/) W3C Recommendation. This is a full-blown page description language and the (deeply unfashionable) other half of the better-known XSLT. Clearly the whole thing is anything but "lightwight",...
null
CC BY-SA 2.5
null
2008-08-30T00:36:55.490
2008-08-30T00:36:55.490
null
null
3,665
null
35,575
2
null
35,551
4
null
In FxCop 1.36 there is actually a project option on the "Spelling & Analysis" tab that will supress analysis for any generated code. If you don't want to turn analysis off for all generated code, you need to make sure that you add a CODE_ANALYSIS symbol to the list of conditional compilation symbols (project propertie...
null
CC BY-SA 2.5
null
2008-08-30T01:57:48.807
2008-08-30T01:57:48.807
null
null
1,559
null
35,578
2
null
35,559
5
null
It's a regular sql server, it just has a limit. SharePoint by default uses the sql server express if that gives you any idea. We have our entire office (80+) people running on that instance.
null
CC BY-SA 2.5
null
2008-08-30T02:00:04.700
2008-08-30T02:00:04.700
null
null
1,942
null
35,581
2
null
24,812
4
null
I have to comment that is a pretty dry read. If you're actually interested in AI, and want to stay interested, you are much better off going with Norvig's gift to the world: [Paradigms of Artificial Intelligence Programming](http://norvig.com/paip.html). Not only is this a great intro to AI, it's a great intro to bea...
null
CC BY-SA 2.5
null
2008-08-30T02:01:40.420
2008-08-30T02:01:40.420
null
null
338
null
35,582
2
null
35,569
12
null
Check out [this thread](http://mail.python.org/pipermail/python-3000/2007-September/010209.html) for a discussion on the reasons behind this behavior (including that Guido likes it, and it's [not likely to change](http://mail.python.org/pipermail/python-3000/2007-September/010222.html)).
null
CC BY-SA 2.5
null
2008-08-30T02:01:57.143
2008-08-30T02:12:03.717
2008-08-30T02:12:03.717
3,002
3,002
null
35,564
1
null
null
8
9,862
Where is the best tutorial for getting Ruby On Rails working on a windows box with Mongrel? I'm a complete novice at server management, so the more detailed the better!
Ruby On Rails on Windows with Mongrel
CC BY-SA 3.0
0
2008-08-30T01:48:51.510
2012-09-25T23:41:47.187
2012-09-25T23:41:47.187
206,401
2,066
[ "ruby-on-rails", "windows", "ruby", "mongrel" ]
35,563
1
464,168
null
8
4,134
Using Terminal.app on OS X 10.5, often you see the commands get garbled when you do a reverse-search with Bash. Is there some kind of termcap or perhaps a bash shopt command that can fix this? It is very annoying. Steps to reproduce: Open Terminal.app, reverse-search to a longish command. Hit <ctrl>-E once you'v...
How do I make bash reverse-search work in Terminal.app without it displaying garbled output?
CC BY-SA 2.5
0
2008-08-30T01:48:42.260
2015-09-06T15:29:46.980
2009-09-17T03:34:21.160
3,499
3,499
[ "macos", "bash" ]
35,588
2
null
35,563
1
null
I've encountered this bug, and while I don't know how to solve it, you can work around it by pressing `<down><up>`
null
CC BY-SA 2.5
null
2008-08-30T02:06:12.220
2008-08-30T02:06:12.220
null
null
3,560
null
35,586
2
null
35,499
2
null
> You might also want to look into Comet.I thought everyone used cometd for this sort of thing. BOSH is a standard for transporting XMPP over HTTP. It involves Comet for pushing data to the client.
null
CC BY-SA 2.5
null
2008-08-30T02:04:27.590
2008-08-30T02:04:27.590
2020-06-20T09:12:55.060
-1
3,560
null
35,584
2
null
16,322
4
null
Get the book it is an easy read for a coding book and really teaches you how to use Linq and the new features of .NET 3.5 some of the cool parts they put in for the language.
null
CC BY-SA 2.5
null
2008-08-30T02:02:43.477
2008-08-30T02:02:43.477
null
null
2,469
null
35,594
2
null
35,559
0
null
It really comes down to the nature of your database and application. What kind of application(s) are hitting SQL Server? In my experience, it only handles 5-10 users with a heavy read/write application.
null
CC BY-SA 2.5
null
2008-08-30T02:15:52.117
2008-08-30T02:15:52.117
null
null
1,934
null
35,592
2
null
35,548
3
null
I've never used Makepp personally, but since it's a drop-in replacement for GNU Make, you should be able to do something like: ``` build: foo.h foo.cpp g++ $(CFLAGS) foo.cpp -o $(LFLAGS) foo foo.h foo.cpp: foo.lzz lzz foo.lzz ``` Also not sure about the lzz invocation there, but that should help. You can rea...
null
CC BY-SA 2.5
null
2008-08-30T02:10:19.930
2008-08-30T02:10:19.930
null
null
3,548
null
35,583
2
null
35,491
2
null
I think otool can help. Specifically, "otool -s {segment} {section}" should print out the details. I'm not sure if you can get information about __DATA or __TEXT without specifying a section. Maybe those sizes are reported in the mach header: "otool -h"? ``` otool -s __DATA __data MyApp.bundle/Contents/MacOS/MyApp ot...
null
CC BY-SA 3.0
null
2008-08-30T02:02:39.233
2017-06-19T16:04:25.140
2017-06-19T16:04:25.140
2,146
2,146
null
35,593
2
null
31,868
4
null
I've had good luck using the DocLibHelper wrapper class described here: [http://geek.hubkey.com/2007/10/upload-file-to-sharepoint-document.html](http://geek.hubkey.com/2007/10/upload-file-to-sharepoint-document.html)
null
CC BY-SA 2.5
null
2008-08-30T02:14:02.153
2008-08-30T02:14:02.153
null
null
1,533
null
35,596
2
null
35,494
8
null
Windows is not the usual place to deploy production Rails apps, but there are people who do it. Mongrel was originally written to give better deployment options for Windows. As it turned out the UNIX deployment options weren't that good either. :) Start with the Ruby One Click installer so you have a sane installation...
null
CC BY-SA 2.5
null
2008-08-30T02:18:30.957
2008-08-30T02:18:30.957
null
null
3,674
null
35,601
2
null
35,599
0
null
I don't know enough about the guts of the file systems to answer the first, except when I read the first descriptions of NTFS it sounded an awful lot like the Berkley Fast Filesystem. As for the second, there are plenty of greps for Windows. When I had to use Windows in the past, I always installed Cygwin first thing...
null
CC BY-SA 2.5
null
2008-08-30T02:28:35.380
2008-08-30T02:28:35.380
null
null
3,333
null
35,605
2
null
35,599
4
null
I think you are a little bit confused. There is no 'Unix' and 'Windows' file systems. The *nix family of filesystems include ext3, ZFS, UFS etc. Windows primarily has had support for FAT16/32 and their own filesystem NTFS. However today linux systems can read and write to NTFS. More filesystems [here](http://en.wikiped...
null
CC BY-SA 2.5
null
2008-08-30T02:30:13.207
2008-08-30T02:30:13.207
null
null
2,874
null
35,599
1
null
null
0
14,991
I'll admit that I don't know the inner workings of the unix operating system, so I was hoping someone could shed some light on this topic. Why is the Unix file system better than the windows file system? Would grep work just as well on Windows, or is there something fundamentally different that makes it more powerful...
What makes the Unix file system more superior to the Windows file system?
CC BY-SA 2.5
0
2008-08-30T02:25:53.030
2021-01-27T20:55:02.877
2009-06-09T04:03:59.180
14,768
1,368
[ "unix", "filesystems" ]
35,608
2
null
35,599
1
null
well the *nix filesystems do a far better job of actual file managment than fat16/32 or NTFS. The *nix systems try to prevent the need for a defrag over windows doing...nothing? Other than that I don't really know what would make one better than the other.
null
CC BY-SA 2.5
null
2008-08-30T02:34:04.400
2008-08-30T02:34:04.400
null
null
2,066
null
35,609
2
null
35,486
9
null
I use: [Jquery-roundcorners-canvas](https://code.google.com/p/jquery-roundcorners-canvas/downloads/list) it handles borders, and keeps things the same size, in fact you have to pad in a bit to keep from having letters live in the crease. Its pretty fast, unless you are on ie 6. Same pretty syntax of the other corner p...
null
CC BY-SA 3.0
null
2008-08-30T02:35:18.110
2015-05-18T20:17:55.377
2015-05-18T20:17:55.377
1,220
1,220
null
35,600
2
null
35,248
1
null
If you don't want to write java code in-house, there are commercial applet solutions available: - [Vault](http://scand.com/products/vault/)- [MyDownloder](http://www.javaatwork.com/java-download-applet/details.html) Both of them have eval versions that you can download and test.
null
CC BY-SA 2.5
null
2008-08-30T02:28:23.757
2008-08-30T02:35:02.413
2008-08-30T02:35:02.413
2,633
2,633
null
35,614
1
null
null
2
430
I've been put in charge of coming up with a training itinerary for my team at work for a migration from c++ to Visual Studio 2008 with C#. The actual language switch I'm not too worried about, its the learning curve to Visual Studio. What does everything think would be the best way to set up a training course? I...
Visual Studio 2008 Training
CC BY-SA 2.5
null
2008-08-30T02:42:01.820
2013-08-01T13:47:45.740
2013-08-01T13:47:45.740
null
2,066
[ "c#", "visual-studio" ]
35,587
2
null
35,499
1
null
I did this very same thing a few months back and had fun just playing around with the concepts. I actually used the [forever-frame](http://cometdaily.com/2007/11/05/the-forever-frame-technique/) technique instead of polling. The below code is my "comet" js file that contains the general concepts required to get a "pa...
null
CC BY-SA 2.5
null
2008-08-30T02:05:04.670
2008-09-25T14:24:31.200
2008-09-25T14:24:31.200
2,701
2,701
null
35,617
2
null
34,858
0
null
+1 on the execution plan. From here you can see where all the time is being spent in your particular query. Eg. 85% of the time is spent table scanning a particular table, can you put an index on that table to improve it? etc etc.
null
CC BY-SA 2.5
null
2008-08-30T02:43:45.250
2008-08-30T02:43:45.250
null
null
1,915
null
35,606
2
null
35,599
8
null
First, there is no such thing as "the Unix file system". Second, upon what premise does your argument rest? Did you hear someone say it was superior? Perhaps if you offered some source, we could critique the specific argument. Okay, according to [http://en.wikipedia.org/wiki/Comparison_of_file_systems](http://en.wik...
null
CC BY-SA 2.5
null
2008-08-30T02:30:20.490
2008-08-30T03:07:19.733
2008-08-30T03:07:19.733
1,554
1,554
null
35,613
2
null
35,559
0
null
This question is far too vague to be useful to you or anyone else. Also, Wikipedia is your primary source of info on SQL Server, fail? The first matrix of the MSDN page for [Features Supported by the Editions of SQL Server 2008](http://msdn.microsoft.com/en-us/library/cc645993.aspx) is titled "Scalability." The only ...
null
CC BY-SA 2.5
null
2008-08-30T02:40:34.757
2008-08-30T02:40:34.757
null
null
1,042
null
35,615
1
35,632
null
20
10,640
Can anyone out there recommend a good online resource for CSS 'design patterns'? I know design patterns in a software context usually refer to OO based design patterns, but I mean design patterns in the broader sense of the term: i.e. common, clean solutions to common problems / tasks. An example of such a resource w...
What is a good online resource for css 'design patterns'?
CC BY-SA 2.5
0
2008-08-30T02:42:38.560
2020-02-26T13:50:45.293
2008-09-07T13:30:30.053
1,944
1,349,865
[ "html", "css", "design-patterns", "xhtml" ]
35,620
2
null
35,614
1
null
I think you're right to worry that the wiki thing wouldn't be hands-on enough. How about using it as an opportunity to refresh your process too, and do a mini project "Bootcamp" where you test drive the new language and IDE features along with some new development practices. Actually create a piece of software over t...
null
CC BY-SA 2.5
null
2008-08-30T02:44:31.830
2008-08-30T02:44:31.830
null
null
1,042
null
35,616
2
null
35,599
19
null
One of the fundamental differences in filesystem semantics between Unix and Windows is the idea of inodes. On Windows, a file name is directly attached to the file data. This means that the OS prevents somebody from deleting a file that is currently open. On some versions of Windows you can rename a file that is curre...
null
CC BY-SA 2.5
null
2008-08-30T02:43:34.237
2008-08-30T02:43:34.237
null
null
893
null
35,619
2
null
23,836
0
null
My advice is this. Try to keep the installer as simple as possible. Windows Installer is a very complicated piece of software and when things don't work right it can be hard to figure out what's going on. I'm sure we have all experienced the endless loop of Windows Installer trying to repair a file that you no longer h...
null
CC BY-SA 2.5
null
2008-08-30T02:44:20.223
2008-08-30T02:44:20.223
null
null
2,768
null
35,626
2
null
35,499
0
null
I agree with John. But there was another question that was not answered. I have done this but instead of using a database we used a flat file, it did eventually cripple the server, but it wasn't until we has ~450 active users, and if we had done it with a database it probably would have fared better.This was done on a...
null
CC BY-SA 2.5
null
2008-08-30T02:52:11.967
2008-08-30T02:52:11.967
null
null
115
null
35,633
2
null
34,209
5
null
To get rid of "This field is required," you need to make it not required, by using blank=True (and possibly null=True as well, if it's not a CharField).
null
CC BY-SA 2.5
null
2008-08-30T03:04:44.560
2008-08-30T03:04:44.560
null
null
3,207
null