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
33,050
2
null
32,505
1
null
Sounds like you might want [TagSoup](http://home.ccil.org/~cowan/XML/tagsoup/). It may not be exactly what you want, but as far as bad-document-handling parsers go it's the gold standard.
null
CC BY-SA 2.5
null
2008-08-28T18:41:48.983
2008-08-28T18:41:48.983
null
null
3,488
null
33,060
2
null
33,034
0
null
Based on all these posts, the conclusions that I'm reaching are (1) it depends on the bank and (2) there's probably more than one piece of data that's involved, but see (1).
null
CC BY-SA 2.5
null
2008-08-28T18:45:24.390
2008-08-28T18:45:24.390
null
null
572
null
33,062
2
null
33,055
3
null
I like to just copy the entire repo directory to my backup location. That way, if something happens, you can just copy the directory back and be ready to go immediately. Just make sure to preserve permissions, if needed. Usually, this is only a concern on Linux machines.
null
CC BY-SA 2.5
null
2008-08-28T18:46:23.093
2008-08-28T18:46:23.093
null
null
3,467
null
33,059
2
null
33,034
20
null
In fact they most probably use cookies. An alternative for them would be to use "[flash cookies](http://www.bestflashanimationsite.com/tutorials/4/)" (officially called "[Local Shared Objects](http://www.adobe.com/support/flash/action_scripts/local_shared_object/)"). They are similar to cookies in that they are tied to...
null
CC BY-SA 2.5
null
2008-08-28T18:45:05.903
2008-08-28T18:45:05.903
null
null
1,265
null
33,035
2
null
32,986
2
null
They are very similar. With Objective-C 2.0 most enumerations now default to `NSFastEnumeration` which creates a buffer of the addresses to each object in the collection that it can then deliver. The one step that you save over the classic for loop is not having to call `objectAtIndex:i` each time inside the loop. The ...
null
CC BY-SA 3.0
null
2008-08-28T18:37:27.543
2015-02-10T14:49:44.207
2015-02-10T14:49:44.207
3,353,294
null
null
33,064
2
null
33,055
180
null
You could use something like (Linux): ``` svnadmin dump repositorypath | gzip > backupname.svn.gz ``` Since Windows does not support GZip it is just: ``` svnadmin dump repositorypath > backupname.svn ```
null
CC BY-SA 2.5
null
2008-08-28T18:46:35.447
2008-09-01T09:42:28.987
2008-09-01T09:42:28.987
2,569
2,569
null
33,042
1
33,071
null
21
22,464
I have a very large code base that contains extensive unit tests (using CppUnit). , and (ideally) generate some sort of report that tells me on a per-library or per-file basis, how much of the code was exercised. Here's the kicker: this has to run completely unnatended (eventually inside a continuous integration build...
How can I measure CppUnit test coverage (on win32 and Unix)?
CC BY-SA 2.5
0
2008-08-28T18:40:00.033
2015-08-18T13:40:58.187
2008-11-18T03:07:18.540
14,343
1,304
[ "c++", "unit-testing", "cross-platform", "code-coverage", "cppunit" ]
33,063
1
33,112
null
2
2,480
I have a big string (let's call it a CSV file, though it isn't actually one, it'll just be easier for now) that I have to parse in C# code. The first step of the parsing process splits the file into individual lines by just using a `StreamReader` object and calling `ReadLine` until it's through the file. However, any g...
Looking for Regex to find quoted newlines in a big string (for C#)
CC BY-SA 3.0
null
2008-08-28T18:46:24.417
2015-09-09T09:46:26.333
2015-09-09T09:46:26.333
1,537,726
2,187
[ "c#", "regex" ]
33,052
2
null
20,389
2
null
If I understand your scenario correctly: You have an InfoPath form, with data connections that submit your data. You wish to deploy this form on multiple SharePoint Servers and have those data connections submit data to the currently deployed server. You can't really get around needing to do work on every SharePoint ...
null
CC BY-SA 2.5
null
2008-08-28T18:42:29.327
2008-08-28T18:42:29.327
null
null
211,367
null
33,068
2
null
33,055
10
null
- You can create a repository backup () with [svnadmin dump](http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html).- You can then import it in using [svnadmin load](http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.load.html). Detailed reference in the SVNBook: ["Repository data migration using svnadmin...
null
CC BY-SA 3.0
null
2008-08-28T18:48:27.830
2017-11-02T23:12:16.430
2017-11-02T23:12:16.430
1,621
1,621
null
33,073
1
33,085
null
4
1,879
How do I make `diff` ignore temporary files like `foo.c~`? Is there a configuration file that will make ignoring temporaries the default? More generally: what's the best way to generate a "clean" patch off a tarball? I do this rarely enough (submitting a bug fix to an OSS project by email) that I always struggle with ...
Ignore Emacs auto-generated files in a diff
CC BY-SA 2.5
null
2008-08-28T18:50:31.383
2014-10-12T22:28:24.720
2008-08-28T19:11:55.497
1,412
1,412
[ "emacs", "backup", "diff", "patch", "autosave" ]
33,075
2
null
33,063
1
null
What if you got the whole file into a variable then split that based on non-quoted newlines?
null
CC BY-SA 2.5
null
2008-08-28T18:51:03.113
2008-08-28T18:51:03.113
null
null
1,358
null
33,072
2
null
33,055
12
null
[svnadmin hotcopy](http://svnbook.red-bean.com/nightly/en/svn.ref.svnadmin.c.hotcopy.html) ``` svnadmin hotcopy REPOS_PATH NEW_REPOS_PATH ``` > This subcommand makes a full “hot” backup of your repository, including all hooks, configuration files, and, of course, database files.
null
CC BY-SA 3.0
null
2008-08-28T18:50:14.330
2012-07-04T19:17:09.323
2012-07-04T19:17:09.323
1,001,985
3,142
null
33,076
1
33,714
null
9
11,019
In the past I had to develop a program which acted as a rule evaluator. You had an antecedent and some consecuents (actions) so if the antecedent evaled to true the actions where performed. At that time I used a modified version of the [RETE algorithm](http://en.wikipedia.org/wiki/Rete_algorithm) (there are three vers...
Pattern recognition algorithms
CC BY-SA 2.5
0
2008-08-28T18:51:32.097
2012-09-18T10:08:34.407
2008-08-28T19:15:26.890
1,414
2,695
[ "algorithm", "pattern-recognition" ]
33,056
2
null
23,755
1
null
The haystack shouldn't know about the needle, and the needle shouldn't know about the haystack. The searcher needs to know about both, but whether or not the haystack should know how to search itself is the real point in contention. So I'd go with a mix of 2 and 3; the haystack should be able to tell someone else how ...
null
CC BY-SA 3.0
null
2008-08-28T18:44:17.090
2012-07-03T14:55:06.010
2012-07-03T14:55:06.010
142,162
1,799
null
33,010
2
null
27,581
20
null
There are a couple of ways to do your check for class equality before checking member equality, and I think both are useful in the right circumstances. 1. Use the instanceof operator. 2. Use this.getClass().equals(that.getClass()). I use #1 in a `final` equals implementation, or when implementing an interface that...
null
CC BY-SA 2.5
null
2008-08-28T18:25:36.760
2008-08-29T16:15:27.863
2008-08-29T16:15:27.863
3,474
3,474
null
33,077
2
null
31,320
1
null
You might want to give the [FiveRuns TuneUp](http://www.fiveruns.com/products/tuneup) service a try, as it's really rather impressive. TuneUp is a free service whereby you download a plugin and when you run your application it injects a panel at the top of the screen that can be expanded to display detailed performan...
null
CC BY-SA 2.5
null
2008-08-28T18:52:37.307
2008-08-28T18:52:37.307
null
null
1,450
null
33,074
2
null
33,063
0
null
Sorry, I've misinterpreted your post. If you're looking for a regex, then here is one: ``` content = Regex.Replace(content, "'([^']*)\n([^']*)'", "'\1TOKEN\2'"); ``` There might be edge cases and that two problems but I think it should be ok most of the time. What the Regex does is that it first finds any pair of s...
null
CC BY-SA 2.5
null
2008-08-28T18:50:32.833
2008-08-28T19:10:32.097
2008-08-28T19:10:32.097
3,055
3,055
null
33,083
2
null
28,256
5
null
I would suggest cheating and using the [Shunting Yard Algorithm](http://en.wikipedia.org/wiki/Shunting_yard_algorithm). It's an easy means of writing a simple calculator-type parser and takes precedence into account. If you want to properly tokenise things and have variables, etc. involved then I would go ahead and wr...
null
CC BY-SA 2.5
null
2008-08-28T18:53:58.393
2008-08-28T18:53:58.393
null
null
3,394
null
33,061
1
null
null
3
2,410
I want to take a QTMovie that I have and export it with the audio fading in and fading out for a predetermined amount of time. I want to do this within Cocoa as much as possible. The movie will likely only have audio in it. My research has turned up a couple of possibilities: 1. Use the newer Audio Context Insert API...
Best way to export a QTMovie with a fade-in and fade-out in the audio
CC BY-SA 2.5
null
2008-08-28T18:45:55.043
2008-11-10T16:12:10.540
2008-11-10T16:12:10.540
21,755
3,493
[ "objective-c", "cocoa", "macos", "quicktime" ]
33,079
1
33,087
null
28
1,778
I have a couple of pet projects where I'm the sole designer/programmer and I spend too much time changing the user interface to make it easier to use and avoiding that is so common on "programmer" designs. Do you have tips to choose a color scheme when you do not have a graphics designer around? How do you avoid cre...
Fighting programmer colors
CC BY-SA 2.5
0
2008-08-28T18:52:49.410
2011-01-14T20:38:42.173
2008-08-28T19:05:43.297
2,148
2,148
[ "user-interface", "colors", "graphic-design" ]
33,082
2
null
33,055
24
null
There's a hotbackup.py script available on the Subversion web site that's quite handy for automating backups. [http://svn.apache.org/repos/asf/subversion/trunk/tools/backup/hot-backup.py.in](http://svn.apache.org/repos/asf/subversion/trunk/tools/backup/hot-backup.py.in)
null
CC BY-SA 3.0
null
2008-08-28T18:53:45.010
2012-01-02T21:42:23.187
2012-01-02T21:42:23.187
-1
9
null
33,089
1
33,106
null
3
1,310
I'm using the [ASP.NET Login Controls](http://msdn.microsoft.com/en-us/library/ms178329.aspx) and [Forms Authentication](http://msdn.microsoft.com/en-us/library/aa480476.aspx) for membership/credentials for an ASP.NET web application. It keeps redirecting to a Login.aspx page at the root of my application that does no...
How do I use ASP.NET Login Controls when my Login.aspx is not at the root of my application?
CC BY-SA 2.5
0
2008-08-28T18:55:32.680
2008-10-09T17:54:39.840
2008-08-28T19:17:21.177
83
83
[ "asp.net", "forms-authentication" ]
33,086
1
33,100
null
10
2,747
My boss has come to me and asked how to enure a file uploaded through web page is safe. He wants people to be able to upload pdfs and tiff images (and the like) and his real concern is someone embedding a virus in a pdf that is then viewed/altered (and the virus executed). I just read something on a procedure that cou...
ensuring uploaded files are safe
CC BY-SA 2.5
0
2008-08-28T18:55:06.177
2011-04-22T21:10:14.463
2008-08-29T21:17:27.670
1,942
1,942
[ "security", "antivirus" ]
33,090
2
null
22,873
0
null
For C++ I am a big fan of [C++ Common Knowledge: Essential Intermediate Programming](https://rads.stackoverflow.com/amzn/click/com/0321321928), I like that it is organized into small sections (usually less than 5 pages per topic) So it is easy for me to grab it and read up on concepts that I need to review. It is a m...
null
CC BY-SA 2.5
null
2008-08-28T18:55:42.260
2008-08-28T18:55:42.260
null
null
3,494
null
33,088
2
null
33,055
3
null
If you are using the FSFS repository format (the default), then you can copy the repository itself to make a backup. With the older BerkleyDB system, the repository is not platform independent and you would generally want to use svnadmin dump. The [svnbook documentation topic for backup](http://svnbook.red-bean.com/en...
null
CC BY-SA 3.0
null
2008-08-28T18:55:26.533
2017-03-23T19:42:37.357
2017-03-23T19:42:37.357
761,095
1,441
null
33,094
2
null
33,079
0
null
Adobe's [Kuler](http://kuler.adobe.com) website has a lot of user-created color schemes uploaded by designers. I normally search for higher ranked schemes first.
null
CC BY-SA 2.5
null
2008-08-28T18:57:08.947
2008-08-28T18:57:08.947
null
null
3,114
null
33,091
2
null
33,079
18
null
For desktop apps, get the colors from the OS. I, personally, want all of my apps to look and feel the same as my OS. For web apps, I'm not really sure.
null
CC BY-SA 2.5
null
2008-08-28T18:56:25.813
2008-08-28T18:56:25.813
null
null
572
null
33,092
2
null
33,089
1
null
I found the answer at [CoderSource.net](http://www.codersource.net/asp_net_forms_authentication.aspx). I had to put the correct path into my web.config file. ``` <?xml version="1.0"?> <configuration> <system.web> ... <!-- The <authentication> section enables configuration ...
null
CC BY-SA 2.5
null
2008-08-28T18:56:52.117
2008-08-28T18:56:52.117
null
null
83
null
33,096
2
null
33,080
10
null
What should happen in the case of overflow? If you want it to just get to the bottom of the window, use absolute positioning: ``` div { position: absolute; top: 300px; bottom: 0px; left: 30px; right: 30px; } ``` This will put the DIV 30px in from each side, 300px from the top of the screen, and flush with...
null
CC BY-SA 3.0
null
2008-08-28T18:57:23.410
2016-02-08T14:51:30.187
2016-02-08T14:51:30.187
92,701
96
null
33,098
2
null
33,073
0
null
You can create a small sunction/script to it, like: ``` #!/bin/bash olddir="/tmp/old" newdir="/tmp/new" pushd $newdir for files in $(find . -name \*.c) do diff $olddir/$file $newdir/$file done popd ``` This is only one way to script this. The simple way. But I think you got the idea. Other suggestion is configur...
null
CC BY-SA 2.5
null
2008-08-28T18:57:39.040
2008-08-28T18:57:39.040
null
null
2,274
null
33,099
2
null
7,674
2
null
I've used the FLVPlayBack component for a while now and while it has some quirks I find it to be pretty versatile without having to write a lot of code. The only large drawback I found is that if you try to stream a file that doesn't exist the playstate remains "loading" and never resolves - at that point, you can't l...
null
CC BY-SA 2.5
null
2008-08-28T18:58:05.390
2008-08-28T18:58:05.390
null
null
3,435
null
33,100
2
null
33,086
4
null
I'd recommend running your uploaded files through antivirus software such as [ClamAV](http://www.clamav.net/). I don't know about scrubbing files to remove viruses, but this will at least allow you to detect and delete infected files before you view them.
null
CC BY-SA 2.5
null
2008-08-28T18:58:09.773
2008-08-28T18:58:09.773
null
null
72
null
33,071
2
null
33,042
14
null
### Which tool should I use? This [article describes](http://web.archive.org/web/20090527141110/http://www.kimbly.com/blog/000331.html) another developers frustrations searching for C++ code coverage tools. The author's final solution was [Bullseye Coverage](http://www.bullseye.com/). [Bullseye Coverage](http://www...
null
CC BY-SA 3.0
null
2008-08-28T18:49:37.500
2012-11-02T15:20:07.933
2020-06-20T09:12:55.060
-1
92
null
33,097
2
null
33,079
1
null
Lately I have been using the following website: [http://www.nickherman.com/colormatch/](http://www.nickherman.com/colormatch/) to help me (also a non-designer) pick matching color schemes. I usually find a color that is fairly pleasing, then use the matching colors from this website. If all else fails, I also ask my...
null
CC BY-SA 2.5
null
2008-08-28T18:57:34.190
2008-08-28T18:57:34.190
null
null
2,626
null
33,101
2
null
32,750
3
null
OK, I found the issue, and it was from a part of the code unrelated to the part of the code I was asking about. The data was being passed as a string, I was converting it to a byte array (this was a test rig so I was trying to simulate the byte array that I get in the main app), then converting that to a MemoryStream, ...
null
CC BY-SA 2.5
null
2008-08-28T18:58:10.257
2008-08-28T20:22:47.230
2008-08-28T20:22:47.230
2,577
2,577
null
33,103
1
33,130
null
7
411
I've noticed that some sites (usually banks) suppress the ability to paste text into text fields. How is this done? I know that JavaScript can be used to swallow the keyboard shortcut for paste, but what about the right-click menu item?
How Do Sites Suppress Pasting Text?
CC BY-SA 2.5
null
2008-08-28T18:58:36.090
2019-10-08T09:47:23.287
2017-09-04T14:20:41.337
1,000,551
1,450
[ "javascript", "browser", "web-applications", "clipboard" ]
33,107
2
null
33,079
0
null
Aim for pastel colours that are slightly dimmer than their full-blown counterparts, i.e. a pastel red is dimmer than a (255,0,0) red for example. Try to select colours from the same palette, one cheaty way of determining colour schemes I use is to take a screenshot of an Office 2007 app, usually excel, and paste out so...
null
CC BY-SA 2.5
null
2008-08-28T18:59:06.137
2008-08-28T18:59:06.137
null
null
3,394
null
33,106
2
null
33,089
6
null
Use the LoginUrl property for the forms item? ``` <authentication mode="Forms"> <forms defaultUrl="~/Default.aspx" loginUrl="~/login.aspx" timeout="1440" ></forms> </authentication> ```
null
CC BY-SA 2.5
null
2008-08-28T18:59:05.527
2008-08-28T18:59:05.527
null
null
1,375
null
33,108
2
null
33,086
1
null
You'd probably need to chain an actual virus scanner to the upload process (the same way many virus scanners ensure that a file you download in your browser is safe). In order to do this yourself, you'd have to keep it up to date, which means keeping libraries of virus definitions around, which is likely beyond the sc...
null
CC BY-SA 2.5
null
2008-08-28T18:59:08.723
2008-08-28T18:59:08.723
null
null
1,975,282
null
33,109
2
null
32,642
0
null
[http://quickstarts.asp.net/3-5-extensions/mvc/default.aspx](http://quickstarts.asp.net/3-5-extensions/mvc/default.aspx) Is that relevant?
null
CC BY-SA 2.5
null
2008-08-28T18:59:12.937
2008-08-28T18:59:12.937
null
null
1,344
null
33,085
2
null
33,073
4
null
This doesn't strictly answer your question, but you can avoid the problem by configuring Emacs to use a specific directory to keep the backup files in. There are different implementations for Emacs or XEmacs. In GNU Emacs In XEmacs You can also remove them all with a simple find command Note that the asterisk...
null
CC BY-SA 2.5
null
2008-08-28T18:55:05.333
2009-02-26T12:28:40.910
2009-02-26T12:28:40.910
1,820
1,820
null
33,080
1
33,147
null
31
161,930
In a web application, I have a page that contains a DIV that has an auto-width depending on the width of the browser window. I need an auto-height for the object. The DIV starts about 300px from the top screen, and its height should make it stretch to the bottom of the browser screen. I have a max height for the con...
Setting the height of a DIV dynamically
CC BY-SA 4.0
0
2008-08-28T18:52:53.060
2020-03-23T09:09:54.433
2020-03-23T09:09:54.433
1,442,180
1,226
[ "javascript", "html", "css" ]
33,111
2
null
33,079
0
null
I tend to use alot of grays, along with black and white, keep things simple and avoid any kind of annoying, bright colors. Seems to me like that's what the SO guys did.
null
CC BY-SA 2.5
null
2008-08-28T18:59:52.653
2008-08-28T18:59:52.653
null
null
1,749
null
33,112
2
null
33,063
3
null
Since this isn't a true CSV file, does it have any sort of schema? From your example, it looks like you have: int, int, int, int, string , bool, bool, int With that making up your record / object. Assuming that your data is well formed (I don't know enough about your source to know how valid this assumption is); you...
null
CC BY-SA 2.5
null
2008-08-28T19:00:02.280
2008-08-28T19:00:02.280
null
null
211,367
null
33,095
2
null
33,079
0
null
There are a lot of "color theme pickers" on the web. If you use these, your colors will at least look like they belong together. The first one I looked at on google: [http://www.yafla.com/dforbes/yaflaColor/ColorRGBHSL.aspx](http://www.yafla.com/dforbes/yaflaColor/ColorRGBHSL.aspx)?
null
CC BY-SA 2.5
null
2008-08-28T18:57:13.597
2008-08-28T18:57:13.597
null
null
3,486
null
33,115
1
null
null
46
38,027
Does C# have the notion of private / protected inheritance, and if not, why? ``` class Foo : private Bar { public: ... }; ``` ``` public abstract NServlet class : private System.Web.UI.Page { // error "type expected" } ``` I am implementing a "servlet like" concept in an .aspx page and I don't want th...
Does C# have the notion of private and protected inheritance?
CC BY-SA 2.5
0
2008-08-28T19:00:57.550
2019-07-01T23:52:10.907
null
null
1,638
[ "c#", "inheritance" ]
33,120
2
null
33,104
3
null
With jQuery newer than 1.2 you can use [JSONP](http://remysharp.com/2007/10/08/what-is-jsonp/)
null
CC BY-SA 2.5
null
2008-08-28T19:01:09.920
2008-08-28T19:01:09.920
null
null
238
null
33,123
2
null
33,104
5
null
My best suggestion would be to create a webservice on each site that the other could call with the information that needs to get passed. If security is necessary, it's easy to add an SSL-like authentication scheme (or actual SSL even, if you like) to this system to ensure that only the two servers are able to talk to t...
null
CC BY-SA 2.5
null
2008-08-28T19:02:25.580
2008-08-28T19:02:25.580
null
null
1,975,282
null
33,117
1
33,343
null
23
18,850
Can anyone point me to a good tutorial on creating a bootable Linux CD from scratch? I need help with a fairly specialized problem: my firm sells an expansion card that requires custom firmware. Currently we use an extremely old live CD image of RH7.2 that we update with current firmware. Manufacturing puts the cards i...
Building a custom Linux Live CD
CC BY-SA 2.5
0
2008-08-28T19:01:03.290
2016-12-16T08:08:34.417
2020-06-20T09:12:55.060
-1
1,565
[ "linux" ]
33,128
2
null
33,115
1
null
No, public inheritance only.
null
CC BY-SA 2.5
null
2008-08-28T19:03:38.557
2008-08-28T19:03:38.557
null
null
2,773
null
33,125
2
null
33,086
0
null
Yes, ClamAV should scan the file regardless of the extension.
null
CC BY-SA 2.5
null
2008-08-28T19:02:56.860
2008-08-28T19:02:56.860
null
null
72
null
33,087
2
null
33,079
28
null
[kuler](http://kuler.adobe.com/) has a lot of user submitted colour schemes edit: just remembered... also try [colorlovers](http://www.colourlovers.com/)
null
CC BY-SA 2.5
null
2008-08-28T18:55:14.287
2008-08-28T19:18:26.197
2008-08-28T19:18:26.197
2,083
2,083
null
33,104
1
33,123
null
10
2,119
Here's my problem - I'd like to communicate between two websites and I'm looking for a clean solution. The current solution uses Javascript but there are nasty workarounds because of (understandable) cross-site scripting restrictions. At the moment, opens a modal window containing using a [jQuery](http://jquery.com/...
Communicating between websites (using Javascript or ?)
CC BY-SA 3.0
null
2008-08-28T18:58:39.990
2014-08-30T21:08:49.057
2014-08-30T21:08:49.057
3,366,929
1,456
[ "javascript", "jquery", "web", "xss" ]
33,110
2
null
33,079
0
null
If you pick a "theme" color for your app, you can use [Kuler](http://kuler.adobe.com/) to help flesh out the palette. Related post: - [Web 2.0 Color Combinations](https://stackoverflow.com/questions/28303/web-20-color-combinations)-
null
CC BY-SA 2.5
null
2008-08-28T18:59:19.427
2008-08-28T18:59:19.427
2017-05-23T12:13:33.373
-1
96
null
33,130
2
null
33,103
10
null
Probably using the [onpaste](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.onpaste) event, and either `return false` from it or use `e.preventDefault()` on the Event object. Note that `onpaste` is , don't rely on it for production sites, because it will not be there forever. ``` $(document).on("paste",...
null
CC BY-SA 4.0
null
2008-08-28T19:04:28.167
2019-10-08T09:47:23.287
2019-10-08T09:47:23.287
6,631,280
2,688
null
33,124
2
null
33,080
0
null
If I understand what you're asking, this should do the trick: ``` // the more standards compliant browsers (mozilla/netscape/opera/IE7) use // window.innerWidth and window.innerHeight var windowHeight; if (typeof window.innerWidth != 'undefined') { windowHeight = window.innerHeight; } // IE6 in standards compli...
null
CC BY-SA 2.5
null
2008-08-28T19:02:53.350
2008-08-28T19:02:53.350
null
null
2,284
null
33,114
2
null
33,055
107
null
We use svnadmin hotcopy, e.g.: ``` svnadmin hotcopy C:\svn\repo D:\backups\svn\repo ``` As per [the book](http://svnbook.red-bean.com/nightly/en/svn.ref.svnadmin.c.hotcopy.html): > You can run this command at any time and make a safe copy of the repository, regardless of whether other processes are using the reposi...
null
CC BY-SA 2.5
null
2008-08-28T19:00:57.503
2008-08-28T21:39:52.910
2008-08-28T21:39:52.910
1,278
1,278
null
33,142
2
null
33,115
1
null
You probably want a ServletContainer class that gets hooked up with a NServlet implementation. In my book, not allowing private / protected inheritance is not really a big deal and keeps the language less confusing - with LINQ etc. we allready have enough stuff to remember.
null
CC BY-SA 2.5
null
2008-08-28T19:10:00.617
2008-08-28T19:10:00.617
null
null
2,260
null
33,129
2
null
33,080
8
null
`document.getElementById('myDiv').style.height = 500;` This is the very basic JS code required to adjust the height of your object dynamically. I just did this very thing where I had some auto height property, but when I add some content via `XMLHttpRequest` I needed to resize my parent div and this offsetheight prop...
null
CC BY-SA 3.0
null
2008-08-28T19:03:42.630
2016-02-08T14:52:21.677
2016-02-08T14:52:21.677
92,701
2,701
null
33,113
1
33,290
null
0
351
I would like to extend some existing applications' drag and drop behavior, and I'm wondering if there is any way to hack on drag and drop support or changes to drag and drop behavior by monitoring the app's message loop and injecting my own messages. It would also work to monitor for when a paste operation is executed...
Is there any way to override the drag/drop or copy/paste behavior of an existing app in Windows?
CC BY-SA 2.5
null
2008-08-28T19:00:40.547
2008-10-29T07:33:27.943
2008-10-29T07:33:27.943
327
327
[ "windows", "detours" ]
33,137
2
null
31,287
0
null
If you are going to be using VPCs as a server...perhaps Hyper-V ([http://en.wikipedia.org/wiki/Windows_Server_Virtualization](http://en.wikipedia.org/wiki/Windows_Server_Virtualization)) is something to look at. Its pretty powerful, in how it lets you assign RAM / CPU Cores to a virtualized machine.
null
CC BY-SA 2.5
null
2008-08-28T19:06:44.883
2008-08-28T19:06:44.883
null
null
211,367
null
33,151
2
null
33,115
-3
null
No it doesn't. What would the benefit be of allowing this type of restriction?
null
CC BY-SA 2.5
null
2008-08-28T19:11:40.083
2008-08-28T19:11:40.083
null
null
1,559
null
33,144
1
33,267
null
8
12,471
I am looking to start writing apps for my Windows Mobile 6.1 professional device (Sprint Mogul/HTC Titan). I use the copy of Visual Studio 2003 that I bought in college for all of my current contracting work, (all of my day job work is done on a company laptop). From what I can tell from MSDN in order to develop usin...
Windows Mobile 6 Development, alternatives to visual studio?
CC BY-SA 2.5
0
2008-08-28T19:10:51.317
2010-11-08T14:39:38.583
2010-11-08T14:39:38.583
3,494
3,494
[ "windows-mobile" ]
33,152
2
null
33,115
5
null
You can hide inherited APIs from being publicly visible by declaring that same member in your class as private, and using the new keyword. See [Hiding through Inheritance](http://msdn.microsoft.com/en-us/library/aa691135.aspx) from MSDN.
null
CC BY-SA 2.5
null
2008-08-28T19:11:55.963
2008-08-28T19:11:55.963
null
null
2,688
null
33,140
2
null
832
0
null
This isn't a full answer for you, but on the left join piece you can use the DefaultIfEmpty operator like so: ``` var collection = from u in db.Universe join history in db.History on u.id = history.id into temp from h in temp.DefaultIfEmpty() where h.dateCol < DateTime.Now.Date.AddDays(-1) select u.id, u.name, h.date...
null
CC BY-SA 4.0
null
2008-08-28T19:09:00.853
2020-03-18T11:21:57.237
2020-03-18T11:21:57.237
1,442,180
2,176
null
33,133
2
null
33,117
2
null
[Creating Your Own Custom Ubuntu 7.10 Or Linux Mint 4.0 Live-CD With Remastersys](http://www.howtoforge.com/ubuntu-linux-mint-livecd-with-remastersys)
null
CC BY-SA 2.5
null
2008-08-28T19:05:31.580
2008-08-28T19:05:31.580
null
null
1,811
null
33,155
2
null
33,115
3
null
If you want the NServlet class to not know anything about the Page, you should look into using the Adapter pattern. Write a page that will host an instance of the NServlet class. Depending on what exactly you're doing, you could then write a wide array of classes that only know about the base class NServlet without h...
null
CC BY-SA 2.5
null
2008-08-28T19:13:31.560
2008-08-28T19:13:31.560
null
null
3,433
null
33,154
2
null
1,711
6
null
I have a few good books that strongly influenced me that I've not seen on this list so far: [The Psychology of Everyday Things](https://rads.stackoverflow.com/amzn/click/com/0465067093) by Donald Norman. The general principles of design for other people. This may seem to be mostly good for UI but if you think about ...
null
CC BY-SA 2.5
null
2008-08-28T19:13:28.003
2008-08-28T19:13:28.003
null
null
2,820
null
33,158
2
null
33,144
1
null
CASL from [Caslsoft](http://www.caslsoft.com/) is a nice language for mobile development. I have used it for one project on Windows CE, but it should work on Windows Mobile as well. It was easy to get started. (You can use the free version to do the initial development)
null
CC BY-SA 2.5
null
2008-08-28T19:15:38.920
2008-08-28T19:15:38.920
null
null
2,703
null
33,156
2
null
23,755
1
null
``` class Haystack {//whatever }; class Needle {//whatever }: class Searcher { virtual void find() = 0; }; class HaystackSearcher::public Searcher { public: HaystackSearcher(Haystack, object) virtual void find(); }; Haystack H; Needle N; HaystackSearcher HS(H, N); HS.find(); ```
null
CC BY-SA 2.5
null
2008-08-28T19:14:37.253
2008-08-28T19:14:37.253
null
null
1,179
null
33,163
2
null
33,150
0
null
Your workaround is actually the better answer. If you have code that you must run at a certain part of your control's lifecycle, you expose events to let the container extend the lifecycle with custom functionality.
null
CC BY-SA 2.5
null
2008-08-28T19:16:47.717
2008-08-28T19:16:47.717
null
null
3,433
null
33,147
2
null
33,080
37
null
Try this simple, specific function: ``` function resizeElementHeight(element) { var height = 0; var body = window.document.body; if (window.innerHeight) { height = window.innerHeight; } else if (body.parentElement.clientHeight) { height = body.parentElement.clientHeight; } else if (body && body.c...
null
CC BY-SA 2.5
null
2008-08-28T19:11:28.617
2008-08-28T21:11:05.133
2008-08-28T21:11:05.133
1,790
1,790
null
33,150
1
33,179
null
1
2,389
I am working on a Customer Server Control that extends another control. There is no problem with attaching to other controls on the form. in vb.net: `Parent.FindControl(TargetControlName)` I would like to pass a method to the control in the ASPX markup. for example: `<c:MyCustomerControl runat=server InitializeSt...
How to pass method name to custom server control in asp.net?
CC BY-SA 3.0
null
2008-08-28T19:11:34.217
2017-08-07T21:00:06.410
2017-08-07T20:58:31.690
1,704,458
2,017
[ "c#", "asp.net", "vb.net", "custom-server-controls", "web-controls" ]
33,145
2
null
31,673
1
null
We use WZC on XP and Native WiFi on Vista, but here's the code which we use on Vista, FWIW. Profile creation: ``` // open a handle to the service if ((dwError = WlanOpenHandle( WLAN_API_VERSION, NULL, // reserved &dwServiceVersion, &hClient )) != ERROR_SUCCESS) { ...
null
CC BY-SA 2.5
null
2008-08-28T19:11:15.357
2010-05-20T08:05:52.037
2010-05-20T08:05:52.037
147,141
1,490
null
33,170
2
null
33,166
14
null
I found the answer on [Velocity Reviews](http://www.velocityreviews.com/forums/t367373-remove-quotreturnurlquot-from-url.html). I handled the LoggedIn event to force a redirection to the DestinationPageUrl page. ``` Public Partial Class Login Inherits System.Web.UI.Page Protected Sub Login1_LoggedIn(ByVal se...
null
CC BY-SA 3.0
null
2008-08-28T19:19:29.877
2013-12-05T16:10:41.293
2013-12-05T16:10:41.293
96,505
83
null
33,171
2
null
33,117
1
null
Depends on your distro. Here's a good article you can check out from [LWN.net](http://lwn.net/Articles/172132/) There is a book I used which covers a lot of distros, though it does not cover creating a flash-bootable image. The book is [Live Linux(R) CDs: Building and Customizing Bootables](https://rads.stackoverflo...
null
CC BY-SA 2.5
null
2008-08-28T19:19:49.750
2008-08-28T19:19:49.750
null
null
3,467
null
33,168
2
null
32,149
17
null
Unless I've misunderstood your question I don't think you need to roll your own, the TextInfo class can do it for you. ``` using System.Globalization; CultureInfo.InvariantCulture.TextInfo.ToTitleCase("GeOrGE bUrdEll") ``` Will return "George Burdell. And you can use your own culture if there's some special rules i...
null
CC BY-SA 3.0
null
2008-08-28T19:18:49.037
2011-11-22T07:22:35.720
2017-05-23T11:52:53.557
-1
2,114
null
33,166
1
33,170
null
12
6,139
I'm using the [ASP.NET Login Controls](http://msdn.microsoft.com/en-us/library/ms178329.aspx) and [Forms Authentication](http://msdn.microsoft.com/en-us/library/aa480476.aspx) for membership/credentials for an ASP.NET web application. I've got pages such as that are accessable to only Anonymous users. When I click m...
How do I keep my Login.aspx page's ReturnUrl parameter from overriding my ASP.NET Login control's DestinationPageUrl property?
CC BY-SA 2.5
0
2008-08-28T19:18:33.407
2013-12-05T16:10:41.293
null
null
83
[ "asp.net", "forms-authentication" ]
33,159
2
null
32,717
0
null
Actually, pre-build and post-build events seem to be solely a place to add batch-file type commands. This would not help me to set up standard build directories for our projects, unfortunately. And having these events create seems like a very 1980's approach for a modern language like C#, IMO. After digging some mor...
null
CC BY-SA 2.5
null
2008-08-28T19:16:05.470
2008-08-28T19:16:05.470
null
null
3,114
null
33,176
2
null
33,174
3
null
yikes! :) look at the web service and .net API before going direct to the database. i've used both and they provide plenty of flexibility (including building your own web services on top of the API if necessary). API for on server clients, web services for off server clients.
null
CC BY-SA 2.5
null
2008-08-28T19:23:01.943
2008-08-28T19:23:01.943
null
null
3,142
null
33,175
1
null
null
3
284
Is there a way when executing a stored procedure in Management Studio to get the data types of the result sets coming back? I'm looking for something like functionality of when you pass a table name to sp_help
How to tell the data types after executing a stored procedure?
CC BY-SA 2.5
null
2008-08-28T19:22:17.297
2015-05-12T15:03:42.367
2015-05-12T15:03:42.367
1,118,488
1,302
[ "sql-server", "tsql", "ssms" ]
33,174
1
33,235
null
1
1,238
Is it possible to access the database backend of a sharepoint server? My company uses Sharepoint to store data and pictures of various assets. Ideally I would be able to access the data and display it in my application to allow users both methods of access. Before I go talk to the IT department I would like to find ou...
Accessing Sharepoint from outside the WebUI
CC BY-SA 2.5
null
2008-08-28T19:20:38.737
2022-07-24T14:03:25.573
2008-09-24T19:12:05.260
1,190
757
[ "sql-server", "ruby-on-rails", "ruby", "sharepoint" ]
33,177
2
null
31,242
2
null
Place your controls within a panel or equivalent and then reduce the width of the panel by the size of a vertical scrollbar. That means that when the vertical scrollbar appears then it will no longer require the horizontal scrollbar to make up for the lost width that the vertical scrollbar took.
null
CC BY-SA 2.5
null
2008-08-28T19:23:12.753
2008-08-28T19:23:12.753
null
null
1,143
null
33,180
2
null
33,115
21
null
C# allows public inheritance only. C++ allowed all three kinds. Public inheritance implied an "IS-A" type of relationship, and private inheritance implied a "Is-Implemented-In-Terms-Of" kind of relationship. Since layering (or composition) accomplished this in an arguably simpler fashion, private inheritance was only u...
null
CC BY-SA 3.0
null
2008-08-28T19:30:30.787
2012-07-04T19:08:07.643
2012-07-04T19:08:07.643
1,001,985
3,114
null
33,188
2
null
33,175
0
null
No easy way comes to mind without parsing syscomments to see what it's querying from where. If you can edit the SP to select XML, you can append XML_INFO to the query to get the schema back.
null
CC BY-SA 2.5
null
2008-08-28T19:32:58.767
2008-08-28T19:32:58.767
null
null
2,757
null
33,182
2
null
33,115
2
null
@bdukes: Keep in mind that you aren't hiding the member. E.g.: ``` class Base { public void F() {} } class Derived : Base { new private void F() {} } Base o = new Derived(); o.F(); // works ``` But this accomplishes the same as private inheritance in C++, which is what the questioner wanted.
null
CC BY-SA 4.0
null
2008-08-28T19:30:45.170
2019-07-01T23:52:10.907
2019-07-01T23:52:10.907
102,937
2,773
null
33,179
2
null
33,150
2
null
If you want to be able to pass a method in the ASPX markup, you need to use the `Browsable` attribute in your code on the event. VB.NET ``` <Browsable(True)> Public Event InitializeStuffCallback ``` C# ``` [Browsable(true)] public event EventHandler InitializeStuffCallback; ``` Reference: [Design-Time Attributes...
null
CC BY-SA 3.0
null
2008-08-28T19:24:26.793
2017-08-07T20:59:12.647
2017-08-07T20:59:12.647
1,704,458
1,804
null
33,187
2
null
33,150
2
null
Normally you wouldn't need to get the method via reflection. Inside your user control, define a public event (sorry I do not know the vb syntax so this will be in c#) ``` public event EventHandler EventName; ``` Now, inside your aspx page, or whatever container of the user control, define a protected method that mat...
null
CC BY-SA 2.5
null
2008-08-28T19:32:42.590
2008-08-28T19:32:42.590
null
null
31,505
null
33,198
2
null
33,175
1
null
You do get to look at the types though, if you call the stored procedure via ADO, ADO.NET, ODBC or the likes: The resulting recordsets have the type information you are looking for. Are you really restricted to Management Studio?
null
CC BY-SA 2.5
null
2008-08-28T19:36:47.747
2008-08-28T19:36:47.747
null
null
2,260
null
33,200
2
null
7,492
1
null
I found [IBM Page Detailer](http://www.alphaworks.ibm.com/tech/pagedetailer) also an interesting tool to work with.
null
CC BY-SA 2.5
null
2008-08-28T19:38:25.400
2008-08-28T19:38:25.400
null
null
91
null
33,194
2
null
33,086
2
null
It depends on your company's budget but there are hardware devices and software applications that can sit between your web server and the outside world to perform these functions. Some of these are hardware firewalls with anti-virus software built in. Sometimes they are called application gateways or application proxi...
null
CC BY-SA 2.5
null
2008-08-28T19:35:00.837
2008-08-28T19:35:00.837
null
null
3,498
null
33,191
2
null
33,150
0
null
Every ASP.NET page is inherited from `Page` as in: ``` class MyPage : Page ``` Therefore, to find that method via Reflection, you must get the correct type, which is the type of the page class that stores the page code. I suppose you need to support multiple pages for this control to be instantiated in I believe y...
null
CC BY-SA 3.0
null
2008-08-28T19:34:17.907
2017-08-07T21:00:06.410
2017-08-07T21:00:06.410
1,704,458
3,055
null
33,199
1
33,208
null
30
11,763
Would it be possible to print `Hello` twice using single `condition`? ``` if "condition" printf ("Hello"); else printf("World"); ```
What's the "condition" in C interview test?
CC BY-SA 3.0
0
2008-08-28T19:37:33.343
2015-12-23T05:04:46.437
2015-12-23T05:04:46.437
2,893,131
2,454
[ "c", "conditional-statements" ]
33,172
2
null
33,063
3
null
State-machines for doing such a job are made easy using C# 2.0 iterators. Here's hopefully the last CSV parser I'll ever write. The whole file is treated as a enumerable bunch of enumerable strings, i.e. rows/columns. IEnumerable is great because it can then be processed by LINQ operators. ``` public class CsvParser {...
null
CC BY-SA 2.5
null
2008-08-28T19:20:07.630
2008-08-28T19:20:07.630
null
null
1,278
null
33,201
2
null
31,875
90
null
The module approach works well. If I absolutely need a singleton I prefer the Metaclass approach. ``` class Singleton(type): def __init__(cls, name, bases, dict): super(Singleton, cls).__init__(name, bases, dict) cls.instance = None def __call__(cls,*args,**kw): if cls.instance is Non...
null
CC BY-SA 3.0
null
2008-08-28T19:39:25.117
2011-09-13T02:50:29.160
2011-09-13T02:50:29.160
190,597
2,482
null
33,205
2
null
33,199
5
null
``` if ( printf("Hello")==0) ``` see [[http://www.coders2020.com/what-does-printf-return]](http://www.coders2020.com/what-does-printf-return]) (matt corrected my =, thanks, C is far away)
null
CC BY-SA 2.5
null
2008-08-28T19:40:56.580
2008-08-28T19:46:51.667
2008-08-28T19:46:51.683
1,165,587
1,165,587
null
33,206
2
null
33,199
0
null
``` if(printf("Hello") == 1) printf("Hello") else printf("World") ```
null
CC BY-SA 2.5
null
2008-08-28T19:41:10.200
2008-08-28T19:41:10.200
null
null
632
null
33,161
2
null
31,935
8
null
I fiddled around with the ScriptManager suggestions - which I reckon I would have eventually got working but it seems to me that the Timer idea is easier to implement and not really(!) that much of a hack?! Here's how I got my panel updated the initial page render was complete... default.aspx ``` <%@ Page Language=...
null
CC BY-SA 3.0
null
2008-08-28T19:16:41.803
2013-11-15T13:19:34.943
2013-11-15T13:19:34.943
3,099
3,099
null
33,207
1
33,236
null
332
75,693
What frameworks exist to unit test Objective-C code? I would like a framework that integrates nicely with Apple Xcode.
What is the best way to unit test Objective-C code?
CC BY-SA 4.0
0
2008-08-28T19:41:30.307
2019-03-05T22:46:49.003
2018-10-22T00:35:43.620
10,221,765
2,339
[ "objective-c", "cocoa", "unit-testing", "xcode" ]