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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25,792 | 2 | null | 25,785 | 4 | null | If the filenames don't have spaces, this will work:
```
ls -C1 -t| awk 'NR>5'|xargs rm
```
If the filenames do have spaces, something like
```
ls -C1 -t | awk 'NR>5' | sed -e "s/^/rm '/" -e "s/$/'/" | sh
```
Basic logic:
- - - -
| null | CC BY-SA 3.0 | null | 2008-08-25T08:43:44.830 | 2011-11-04T13:22:04.127 | 2011-11-04T13:22:04.127 | 244,297 | 116 | null |
25,805 | 2 | null | 25,767 | 1 | null | I came up with this and it appears to work.
```
while($row = mysql_fetch_assoc($result))
{
$_SESSION = array_merge_recursive($_SESSION, $row);
}
```
| null | CC BY-SA 2.5 | null | 2008-08-25T09:05:49.067 | 2008-08-25T09:05:49.067 | null | null | 115 | null |
25,795 | 2 | null | 25,767 | 0 | null | >
Then wrap the user data in a class. Modifyng $_SESSION directly looks somewhat dirty. If you want to keep the data in a dictionary—which you can still do even if you put it in a separate class.
You could also implement a loop that iterates over all columns, gets their names and copy the data to a map with the sam... | null | CC BY-SA 2.5 | null | 2008-08-25T08:47:46.240 | 2010-05-27T16:57:26.027 | 2010-05-27T16:57:26.027 | 223,391 | 1,709 | null |
25,784 | 2 | null | 25,749 | 162 | null | The `@` character isn't used in C or C++ identifiers, so it's used to introduce Objective-C language keywords in a way that won't conflict with the other languages' keywords. This enables the "Objective" part of the language to freely intermix with the C or C++ part.
Thus with very few exceptions, any time you see `@... | null | CC BY-SA 2.5 | null | 2008-08-25T08:36:29.887 | 2008-08-25T08:36:29.887 | null | null | 714 | null |
25,808 | 2 | null | 25,803 | 1 | null | I don't know a solution but my approach would be as follows.
Decorate the class (or its methods) with a custom attribute. Somewhere else in the program, let an initialization function reflect all types, read the methods decorated with the attributes and inject some IL code into the method. It might actually be more pr... | null | CC BY-SA 2.5 | null | 2008-08-25T09:07:28.220 | 2008-08-25T09:07:28.220 | null | null | 1,968 | null |
25,806 | 2 | null | 25,803 | -1 | null |
1. Write your own AOP library.
2. Use reflection to generate a logging proxy over your instances (not sure if you can do it without changing some part of your existing code).
3. Rewrite the assembly and inject your logging code (basically the same as 1).
4. Host the CLR and add logging at this level (i think this is t... | null | CC BY-SA 2.5 | null | 2008-08-25T09:06:09.487 | 2008-08-25T09:06:09.487 | null | null | 1,065 | null |
25,810 | 2 | null | 25,803 | 7 | null | If you write a class - call it Tracing - that implements the IDisposable interface, you could wrap all method bodies in a
```
Using( Tracing tracing = new Tracing() ){ ... method body ...}
```
In the Tracing class you could the handle the logic of the traces in the constructor/Dispose method, respectively, in the T... | null | CC BY-SA 2.5 | null | 2008-08-25T09:12:02.920 | 2008-08-25T09:12:02.920 | null | null | 1,448,983 | null |
25,815 | 2 | null | 25,807 | 37 | null | `C.__bases__` is an array of the super classes, so you could implement your hypothetical function like so:
```
def magicGetSuperClasses(cls):
return cls.__bases__
```
But I imagine it would be easier to just reference `cls.__bases__` directly in most cases.
| null | CC BY-SA 3.0 | null | 2008-08-25T09:22:22.147 | 2011-09-25T02:46:55.227 | 2011-09-25T02:46:55.227 | 208,880 | 2,168 | null |
25,807 | 1 | 25,815 | null | 33 | 16,732 | If I have Python code
```
class A():
pass
class B():
pass
class C(A, B):
pass
```
and I have class `C`, is there a way to iterate through it's super classed (`A` and `B`)? Something like pseudocode:
```
>>> magicGetSuperClasses(C)
(<type 'A'>, <type 'B'>)
```
One solution seems to be [inspect module](... | Python super class reflection | CC BY-SA 2.5 | 0 | 2008-08-25T09:06:16.087 | 2011-09-25T02:46:55.227 | 2008-08-25T09:21:10.293 | 2,679 | 2,679 | [
"python",
"reflection"
] |
25,813 | 2 | null | 25,771 | 24 | null | Though not your exact format, will be of the format Mmm dd yyyy, while will be of the format hh:mm:ss. You can create a string like this and use it in whatever print routine makes sense for you:
```
const char *buildString = "This build XXXX was compiled at " __DATE__ ", " __TIME__ ".";
```
(Note on another answer... | null | CC BY-SA 2.5 | null | 2008-08-25T09:13:52.930 | 2008-08-25T09:13:52.930 | null | null | 2,666 | null |
25,811 | 2 | null | 25,803 | 5 | null | Take a look at this - Pretty heavy stuff..
[http://msdn.microsoft.com/en-us/magazine/cc164165.aspx](http://msdn.microsoft.com/en-us/magazine/cc164165.aspx)
Essential .net - don box had a chapter on what you need called Interception.
I scraped some of it here (Sorry about the font colors - I had a dark theme back then... | null | CC BY-SA 2.5 | null | 2008-08-25T09:12:17.133 | 2008-08-25T09:12:17.133 | null | null | 1,695 | null |
25,823 | 1 | 25,835 | null | 10 | 632 | How do I compile, link and call different YACC grammars using `yyparse()` in one program?
| Multiple YACC grammars in one program | CC BY-SA 3.0 | null | 2008-08-25T09:38:36.243 | 2013-07-05T08:59:09.107 | 2013-07-05T08:59:09.107 | 1,584,286 | 2,803 | [
"yacc"
] |
25,828 | 2 | null | 25,730 | 1 | null | Try [Jochen Kalmbach's Memory Leak Detector](http://www.codeproject.com/KB/applications/leakfinder.aspx) on Code Project.
The URL to the latest version was somewhere in the comments when I last checked.
| null | CC BY-SA 2.5 | null | 2008-08-25T09:52:34.103 | 2008-08-25T09:52:34.103 | null | null | 45,603 | null |
25,803 | 1 | 25,820 | null | 158 | 105,006 | For a given class I would like to have tracing functionality i.e. I would like to log every method call (method signature and actual parameter values) and every method exit (just the method signature).
How do I accomplish this assuming that:
- - -
To make the question more concrete let's assume there are 3 cl... | How do I intercept a method call in C#? | CC BY-SA 2.5 | 0 | 2008-08-25T09:00:23.883 | 2020-08-04T05:02:00.303 | 2008-08-25T09:14:12.197 | 2,800 | 2,800 | [
"c#",
"reflection",
"aop"
] |
25,825 | 2 | null | 25,803 | 48 | null | The simplest way to achieve that is probably to use [PostSharp](http://www.postsharp.net). It injects code inside your methods based on the attributes that you apply to it. It allows you to do exactly what you want.
Another option is to use the [profiling API](http://msdotnetsupport.blogspot.com/2006/08/net-profiling-... | null | CC BY-SA 3.0 | null | 2008-08-25T09:41:12.740 | 2017-02-21T21:24:30.083 | 2017-02-21T21:24:30.083 | 1,180,998 | 2,680 | null |
25,819 | 2 | null | 25,765 | 3 | null | I tend to use `java.util.Properties` (or similar classes in other languages and frameworks) [wrapped in an application-specific configuration class](http://blog.looplabel.net/2008/06/26/design-patterns-for-implementing-application-preferences-anyone/) most of the time, but I am very interested in alternatives or variat... | null | CC BY-SA 2.5 | null | 2008-08-25T09:30:26.480 | 2008-08-25T09:30:26.480 | null | null | 1,709 | null |
25,820 | 2 | null | 25,803 | 72 | null | C# is not an AOP oriented language. It has some AOP features and you can emulate some others but making AOP with C# is painful.
I looked up for ways to do exactly what you wanted to do and I found no easy way to do it.
As I understand it, this is what you want to do:
```
[Log()]
public void Method1(String name, Int3... | null | CC BY-SA 2.5 | null | 2008-08-25T09:31:40.953 | 2008-08-25T09:31:40.953 | null | null | 2,695 | null |
25,831 | 2 | null | 25,730 | 37 | null | I personally use [Visual Leak Detector](http://vld.codeplex.com), though it can cause large delays when large blocks are leaked (it displays the contents of the entire leaked block).
| null | CC BY-SA 3.0 | null | 2008-08-25T10:03:23.780 | 2011-11-18T11:52:32.960 | 2011-11-18T11:52:32.960 | 95,706 | 891 | null |
25,826 | 2 | null | 24,414 | 1 | null | any client side additions?
As per [IEMobile Team Blog](http://blogs.msdn.com/iemobile/archive/2006/04/06/570375.aspx), the only way for that would be wait for the next release :(
| null | CC BY-SA 2.5 | null | 2008-08-25T09:46:43.663 | 2008-08-25T09:46:43.663 | null | null | 123 | null |
25,798 | 2 | null | 25,746 | 86 | null | In Objective-C, the syntax `@"foo"` is an , instance of `NSString`. It does not make a constant string from a string literal as Mike assume.
Objective-C compilers typically intern literal strings within compilation units — that is, they coalesce multiple uses of the same literal string — and it's possible for the l... | null | CC BY-SA 3.0 | null | 2008-08-25T08:51:58.443 | 2012-07-25T04:04:38.763 | 2012-07-25T04:04:38.763 | -1 | 714 | null |
25,835 | 2 | null | 25,823 | 7 | null | Use the -p option for each separate yacc grammar
```
-p prefix
Use prefix instead of yy as the prefix for all external
names produced by yacc. For X/Open compliance, when the
environment variable _XPG is set, then the -p option will work
as described in the previous sent... | null | CC BY-SA 2.5 | null | 2008-08-25T10:12:12.667 | 2008-08-25T10:17:46.820 | 2008-08-25T10:17:46.820 | 842 | 842 | null |
25,838 | 2 | null | 25,833 | 4 | null | Here's a [visual studio 2008 to 2005 downgrade tool](http://mises.org/Community/blogs/misestech/archive/2008/02/28/visual-studio-2008-to-2005-downgrade-utility.aspx)
And [another one](http://home.hot.rr.com/graye/Articles/ProjectConverter.htm).
I haven't tried either of these, so please report back if they are success... | null | CC BY-SA 2.5 | null | 2008-08-25T10:16:49.987 | 2008-08-25T10:16:49.987 | null | null | 49 | null |
25,839 | 2 | null | 25,767 | 0 | null | If Unkwntech's suggestion does indeed work, I suggest you change your `SELECT` statement so that it doesn't grab everything, since your password column would be one of those fields.
As for whether or not you need to keep this stuff in the session, I say why not? If you're going to check the DB when the user logs in (I... | null | CC BY-SA 2.5 | null | 2008-08-25T10:23:55.680 | 2008-08-25T10:23:55.680 | null | null | 1,344 | null |
25,834 | 2 | null | 25,833 | 0 | null | I'd say you should restore your 2005 version from source control, assuming you have source control and a 2005 copy of the file.
Otherwise, there are plenty of pages on the net that details the changes, but unfortunately no ready-made converter program that will do it for you.
Be aware that as soon as you open the fil... | null | CC BY-SA 2.5 | null | 2008-08-25T10:10:38.427 | 2008-08-25T10:10:38.427 | null | null | 267 | null |
25,841 | 1 | null | null | 11 | 16,404 | How do you get the maximum number of bytes that can be passed to a `sendto(..)` call for a socket opened as a UDP port?
| Maximum buffer length for sendto? | CC BY-SA 3.0 | 0 | 2008-08-25T10:27:55.127 | 2020-02-26T04:52:16.317 | 2013-12-02T12:48:33.777 | 2,432,317 | 842 | [
"unix",
"sockets",
"networking",
"udp",
"ioctl"
] |
25,844 | 2 | null | 25,765 | 2 | null | I [wrote](http://dlinsin.blogspot.com/2008/07/configuration-notations.html) about this a couple of weeks ago and came to the conclusion that XML is one of the most widely used notations.
Is it the best? I don't think so, I really like JSON, but the tooling is still not up to XML so I guess we have to wait and see.
| null | CC BY-SA 2.5 | null | 2008-08-25T10:36:07.430 | 2008-08-25T10:36:07.430 | null | null | 198 | null |
25,833 | 1 | 58,286 | null | 7 | 8,578 | I have seen [Solutions created in Visual Studio 2008 cannot be opened in Visual Studio 2005](http://blogs.msdn.com/djpark/archive/2007/11/07/how-to-use-solutions-and-projects-between-visual-studio-2005-and-2008.aspx) and tried workaround 1. Yet to try the workaround 2.
But as that link was bit old and out of desperat... | How to open VS 2008 solution in VS 2005? | CC BY-SA 3.0 | 0 | 2008-08-25T10:06:45.800 | 2013-12-14T16:35:20.410 | 2013-12-14T16:35:20.410 | 59,303 | 123 | [
"visual-studio-2008",
"visual-studio-2005",
"projects-and-solutions"
] |
25,840 | 2 | null | 25,752 | 4 | null | I'm nearly certain you can accomplish this with CSS padding, as well. Then you won't be married to the space characters being hard-coded into all of your `<option>` tags.
| null | CC BY-SA 2.5 | null | 2008-08-25T10:26:43.770 | 2008-08-25T10:26:43.770 | null | null | 1,344 | null |
25,851 | 2 | null | 25,846 | 3 | null | Add this to your ~/.bash_profile which means that your architecture is 64-bit ant you’d like to compile Universal binaries.
```
export CFLAGS="-arch x86_64"
```
| null | CC BY-SA 3.0 | null | 2008-08-25T10:49:52.467 | 2011-07-20T19:24:36.487 | 2011-07-20T19:24:36.487 | 3,765 | 2,257 | null |
25,846 | 1 | null | null | 5 | 2,275 | I know that MAC OS X 10.5 comes with Apache installed but I would like to install the latest Apache without touching the OS Defaults incase it causes problems in the future with other udpates. So I have used the details located at: [http://diymacserver.com/installing-apache/compiling-apache-on-leopard/](http://diymacse... | Installing Apache Web Server on 64 Bit Mac | CC BY-SA 2.5 | 0 | 2008-08-25T10:42:24.387 | 2011-07-20T19:24:36.487 | 2008-08-25T12:14:52.043 | 123 | 2,196 | [
"apache",
"macos",
"64-bit"
] |
25,854 | 2 | null | 25,846 | 0 | null | [This page](http://www.mail-archive.com/dev@httpd.apache.org/msg38674.html) claims that a flag for gcc (`maix64`) should do the trick. Give it a whirl, and if you need any more help, post back here.
| null | CC BY-SA 2.5 | null | 2008-08-25T10:52:14.630 | 2008-08-25T10:52:14.630 | null | null | 1,344 | null |
25,856 | 2 | null | 25,566 | 9 | null | There's a (proven!) worst sorting algorithm called [slow sort](http://c2.com/cgi/wiki?SlowSort) that uses the “multiply and surrender” paradigm and runs in exponential time.
While your algorithm is slower, it doesn't progress steadily but instead performs random jumps. Additionally, slow sort's best case is still expo... | null | CC BY-SA 2.5 | null | 2008-08-25T10:58:09.297 | 2008-08-25T10:58:09.297 | null | null | 1,968 | null |
25,859 | 2 | null | 25,833 | 2 | null | You can download and use Visual Studio 2008 Express editions. They're free...
| null | CC BY-SA 2.5 | null | 2008-08-25T11:01:22.207 | 2008-08-25T11:01:22.207 | null | null | null | null |
25,853 | 2 | null | 25,841 | 2 | null | As UDP is not connection oriented there's no way to indicate that two packets belong together. As a result you're limited by the maximum size of a single IP packet (65535). The data you can send is somewhat less that that, because the IP packet size also includes the IP header (usually 20 bytes) and the UDP header (8 b... | null | CC BY-SA 4.0 | null | 2008-08-25T10:51:01.357 | 2020-02-26T04:52:16.317 | 2020-02-26T04:52:16.317 | 12,597 | 1,466 | null |
25,865 | 1 | 25,886 | null | 65 | 25,365 | My good friend, Wikipedia, [didn't give me a very good response](http://en.wikipedia.org/wiki/Language_binding) to that question. So:
- -
Specifically accessing functions from code written in language X of a library written in language Y.
| What is a language binding? | CC BY-SA 2.5 | 0 | 2008-08-25T11:13:29.993 | 2012-06-07T02:23:42.783 | 2012-06-07T02:23:42.783 | 1,324,019 | 416 | [
"language-agnostic",
"glossary",
"language-binding"
] |
25,850 | 2 | null | 4,954 | 6 | null | Coolest regular expression :
```
/^1?$|^(11+?)\1+$/
```
It tests if a number is prime. And it works!!
N.B.: to make it work, a bit of set-up is needed; the number that we want to test has to be converted into a string of “`1`”s first, we can apply the expression to test if the string does contain a prime number o... | null | CC BY-SA 2.5 | null | 2008-08-25T10:48:25.577 | 2009-09-17T08:56:35.083 | 2009-09-17T08:56:35.083 | 1,968 | 1,968 | null |
25,855 | 2 | null | 25,841 | 14 | null | Use getsockopt(). [This site](http://www.mkssoftware.com/docs/man3/getsockopt.3.asp) has a good breakdown of the usage and options you can retrieve.
In Windows, you can do:
For Linux, according to the UDP man page, the kernel will use MTU discovery (it will check what the maximum UDP packet size is between here and... | null | CC BY-SA 2.5 | null | 2008-08-25T10:54:56.793 | 2008-08-25T11:23:27.113 | 2008-08-25T11:23:27.113 | 1,693 | 1,693 | null |
25,864 | 2 | null | 25,646 | 2 | null | I've always had problems with OpenGL implementations from Intel, though I'm not sure that's your problem this time. I think you're running into some byte-order issues. Give this a read and feel free to experiment with different constants for packing and color order.
[http://developer.apple.com/documentation/MacOSX/Con... | null | CC BY-SA 2.5 | null | 2008-08-25T11:12:06.267 | 2008-08-25T11:12:06.267 | null | null | 287 | null |
25,869 | 2 | null | 25,771 | 1 | null | I think, the suggested solutions to use , or would be good enough. I do recommend to get a hold of a touch program to include in a pre-build step in order to touch the file that holds the use of the preprocessor variable. Touching a file makes sure, that its timestamp is newer than at the time it was last compiled. T... | null | CC BY-SA 2.5 | null | 2008-08-25T11:22:17.117 | 2008-08-25T11:22:17.117 | null | null | 1,398 | null |
25,860 | 2 | null | 18,671 | 13 | null | Probably the quick easiest way is using the sqlite .dump command, in this case create a dump of the sample database.
```
sqlite3 sample.db .dump > dump.sql
```
You can then (in theory) import this into the mysql database, in this case the test database on the database server 127.0.0.1, using user root.
```
mysql -p... | null | CC BY-SA 2.5 | null | 2008-08-25T11:10:04.650 | 2008-08-25T11:10:04.650 | null | null | 2,674 | null |
25,877 | 2 | null | 24,991 | 49 | null | When the java compiler cannot infer the parameter type by itself for a static method, you can always pass it using the full qualified method name: Class . < Type > method();
```
Object list = Collections.<String> emptyList();
```
| null | CC BY-SA 2.5 | null | 2008-08-25T11:28:51.017 | 2008-08-25T11:28:51.017 | null | null | null | null |
25,871 | 1 | null | null | 1 | 2,309 | We created several custom web parts for SharePoint 2007. They work fine. However whenever they are loaded, we get an error in the event log saying:
> error initializing safe control - Assembly: ...
The assembly actually loads fine. Additionally, it is correctly listed in the `web.config` and `GAC`.
Any ideas about h... | Webpart registration error in event log | CC BY-SA 3.0 | null | 2008-08-25T11:24:38.267 | 2017-07-19T17:40:39.887 | 2017-07-19T17:40:39.887 | 7,750,640 | null | [
"asp.net",
"sharepoint",
"moss"
] |
25,875 | 2 | null | 25,865 | 24 | null | In the context of code libraries, bindings are wrapper libraries that bridge between two programming languages so that a library that was written for one language can also be implicitly used in another language.
For example, libsvn is the API for Subversion and was written in C. If you want to access Subversion from ... | null | CC BY-SA 2.5 | null | 2008-08-25T11:26:10.070 | 2008-08-25T11:26:10.070 | null | null | 456 | null |
25,878 | 1 | null | null | 13 | 2,255 | What is a data binding?
| What is a data binding? | CC BY-SA 2.5 | 0 | 2008-08-25T11:29:02.733 | 2018-01-09T12:25:22.523 | 2008-08-25T11:45:18.323 | 123 | 1,521 | [
"data-binding",
"glossary"
] |
25,868 | 2 | null | 25,865 | -1 | null | In Flex (Actionscript 3). [Source](http://livedocs.adobe.com/flex/1/flex_builder_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Using_Flex_Builder&file=brady712.htm)
A data binding copies the value of a property in one object to a property in another object. You can bind the properties of following objects: Flex com... | null | CC BY-SA 2.5 | null | 2008-08-25T11:21:56.900 | 2008-08-25T11:21:56.900 | null | null | 22 | null |
25,882 | 2 | null | 25,871 | 2 | null | You need to add a safecontrol entry to the web,config file, have a look at the following:
```
<SafeControls>
<SafeControl
Assembly = "Text"
Namespace = "Text"
Safe = "TRUE" | "FALSE"
TypeName = "Text"/>
...
</SafeControls>
```
[http://msdn.microsoft.com/en-us/library/ms413697.aspx](http://msdn.mi... | null | CC BY-SA 2.5 | null | 2008-08-25T11:31:07.487 | 2008-08-25T11:31:07.487 | null | null | 2,758 | null |
25,891 | 2 | null | 24,041 | 9 | null | Markup is a general term for content formatting - such as HTML - but markdown is a library that generates HTML markup. Take a look at [Markdown](http://daringfireball.net/projects/markdown/).
| null | CC BY-SA 2.5 | null | 2008-08-25T11:41:26.073 | 2008-08-25T11:41:26.073 | null | null | 2,025 | null |
25,886 | 2 | null | 25,865 | 44 | null | Let's say you create a C library to post stuff to stackoverflow. Now you want to be able to use the same library from Python. In this case, you will write Python bindings for your library.
Also see SWIG: [http://www.swig.org](http://www.swig.org)
| null | CC BY-SA 2.5 | null | 2008-08-25T11:33:02.677 | 2008-08-25T11:33:02.677 | null | null | null | null |
25,893 | 2 | null | 25,846 | 0 | null | Be aware that you may run into issues with your apache modules. If they are compiled in 32-bit mode, then you will not be able to load them into a 64-bit apache.
I had this issue with mod_python, took a bit of thinking to figure out this was the reason.
| null | CC BY-SA 2.5 | null | 2008-08-25T11:44:44.457 | 2008-08-25T11:44:44.457 | null | null | 188 | null |
25,901 | 2 | null | 23,439 | 0 | null | Unfortuantely, thats just the way flash handles it. Not particularly smart, but it works for most people.
| null | CC BY-SA 2.5 | null | 2008-08-25T11:54:49.270 | 2008-08-25T11:54:49.270 | null | null | 522 | null |
25,892 | 2 | null | 24,881 | 13 | null | [@Blorgbeard](https://stackoverflow.com/questions/24881/c-gcc-errors#24888):
- - - - - - - - - - - - -
[http://en.wikipedia.org/wiki/C99](http://en.wikipedia.org/wiki/C99)
[A Tour of C99](http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=215)
| null | CC BY-SA 2.5 | null | 2008-08-25T11:41:45.307 | 2008-08-25T11:41:45.307 | 2017-05-23T12:34:18.703 | -1 | 1,897 | null |
25,899 | 2 | null | 23,439 | 1 | null | You can't help the memory problems much until Flash adds destructors and explicit object deletion, unfortunately. See this thread:
[Unloading a ByteArray in Actionscript 3](https://stackoverflow.com/questions/34/unloading-a-bytearray-in-actionscript-3)
There's a limit to how much memory Flash applets can use; the GC ... | null | CC BY-SA 2.5 | null | 2008-08-25T11:52:04.143 | 2008-08-25T11:52:04.143 | 2017-05-23T12:19:34.457 | -1 | 1,088 | null |
25,879 | 2 | null | 25,878 | 12 | null | Binding generally refers to a mapping of one thing to another - i.e. a datasource to a presentation object. It can typically refer to binding data from a database, or similar source (XML file, web service etc) to a presentation control or element - think list or table in HTML, combo box or data grid in desktop software... | null | CC BY-SA 2.5 | null | 2008-08-25T11:29:21.467 | 2008-08-25T11:29:21.467 | null | null | 1,521 | null |
25,889 | 2 | null | 4,954 | 0 | null | These RE's are specific to Visual Studio and C++ but I've found them helpful at times:
Find all occurrences of "routineName" with non-default params passed:
Conversely to find all occurrences of "routineName" with only defaults:
To find code enabled (or disabled) in a debug build:
_DEBUG*
Note that this wil... | null | CC BY-SA 2.5 | null | 2008-08-25T11:37:16.177 | 2008-08-25T12:46:46.493 | 2008-08-25T12:46:46.493 | 2,820 | 2,820 | null |
25,910 | 2 | null | 8,127 | 2 | null | @jamie: There is one reason why you may not be able to do a clean build every time when using a continuous integration server -- build time. On some projects I've worked on, clean builds take 80+ minutes (an embedded project consisting of thousands of C++ files to checkout and then compile against multiple targets). ... | null | CC BY-SA 2.5 | null | 2008-08-25T12:01:25.290 | 2008-08-25T12:01:25.290 | null | null | 1,541 | null |
25,902 | 1 | null | null | 32 | 13,808 | Continuous Integration toolchains for .NET, Java, and other languages are relatively well defined, but the C++ market seems to have a lot of diversity.
By CI "toolchain" I specifically mean tools for the build scripts, automated testing, coding standards checking, etc.
What are C++ teams using for CI toolchains?
| What toolchains exist for Continuous Integration with C++? | CC BY-SA 3.0 | 0 | 2008-08-25T11:56:18.470 | 2015-06-04T17:26:26.020 | 2015-06-04T17:26:26.020 | 1,541 | 1,541 | [
"c++",
"build-process",
"continuous-integration"
] |
25,909 | 2 | null | 25,561 | 5 | null | BTW, you can replace [ABCDEFGHJKLMNPQRSTVXYZ0123456789] character class with a more readable subtracted character class.
```
[[A-Z\d]-[IOUW]]
```
If you just want to match 3 groups like that, why don't you use this pattern 3 times in your regex and just use captured 1, 2, 3 subgroups to form the new string?
```
([[... | null | CC BY-SA 2.5 | null | 2008-08-25T12:01:15.183 | 2008-08-25T12:06:53.390 | 2008-08-25T12:06:53.390 | 1,897 | 1,897 | null |
25,920 | 2 | null | 22,816 | 0 | null | Here's something different: it's very to embed web pages in SWT views. I recently tried it and it works very well. You can see where this is going: there are plenty of beautiful charting components for HTML, it could be an option. Just make sure the component is client-side only (unless you want to start a server).
I ... | null | CC BY-SA 2.5 | null | 2008-08-25T12:13:53.357 | 2008-08-25T12:13:53.357 | null | null | 2,823 | null |
25,874 | 2 | null | 25,865 | 5 | null | [a new question](https://stackoverflow.com/questions/25878/what-is-a-data-binding)
Binding generally refers to a mapping of one thing to another - i.e. a datasource to a presentation object. It can typically refer to binding data from a database, or similar source (XML file, web service etc) to a presentation control ... | null | CC BY-SA 2.5 | null | 2008-08-25T11:24:41.633 | 2008-08-25T11:30:20.247 | 2017-05-23T12:34:19.023 | -1 | 1,521 | null |
25,887 | 2 | null | 25,771 | 5 | null | `__TIME__` and `__DATE__` can work, however there are some complications.
If you put these definitions in a .h file, and include the definitions from multiple .c/.cpp files, each file will have a different version of the date/time based on when it gets compiled. So if you're looking to use the date/time in two diffe... | null | CC BY-SA 3.0 | null | 2008-08-25T11:33:12.957 | 2017-05-05T10:39:40.470 | 2017-05-05T10:39:40.470 | 468,725 | 1,541 | null |
25,929 | 2 | null | 25,921 | 6 | null | ASP.NET is the framework, just like .NET
The code itself, will be a mix of HTML, JavaScript(for Client-Side) and .NET compatible language. So C#, VB.NET, C++.NET, heck...even IronPython
| null | CC BY-SA 2.5 | null | 2008-08-25T12:18:33.363 | 2008-08-25T12:18:33.363 | null | null | 194 | null |
25,932 | 2 | null | 25,921 | 2 | null | Let's say it's a technique from MS to build web applications. ASP stands for Active Server Pages, .NET is the framework behind it.
C# and VB.NET are the languages which can be used, but I guess other .NET languages also can be used.
| null | CC BY-SA 2.5 | null | 2008-08-25T12:20:37.803 | 2008-08-25T12:20:37.803 | null | null | 968 | null |
25,914 | 1 | null | null | 1 | 471 | I'm trying to setup CruiseControl.net webdashboard at the moment. So far it works nice, but I have a problem with the NAnt Build Timing Report.
Firstly, my current `ccnet.config` file looks something like this:
```
<project name="bla">
...
<prebuild>
<nant .../>
</prebuild>
<tasks>
<nant .../>
</tasks>
<publishers>... | CruiseControl.net duplicate NAnt timings | CC BY-SA 3.0 | null | 2008-08-25T12:04:50.540 | 2017-07-19T17:26:19.790 | 2017-07-19T17:26:19.790 | 7,750,640 | 1,085 | [
"continuous-integration",
"cruisecontrol.net",
"nant"
] |
25,934 | 2 | null | 25,921 | 0 | null | Take a look at MS' info for those who don't know or understand the platform.
[http://www.asp.net/get-started](http://www.asp.net/get-started)
| null | CC BY-SA 2.5 | null | 2008-08-25T12:22:27.923 | 2010-11-02T13:45:06.503 | 2010-11-02T13:45:06.503 | 730 | 730 | null |
25,916 | 2 | null | 17,434 | 5 | null | Friend comes handy when you are building a container and you want to implement an iterator for that class.
| null | CC BY-SA 3.0 | null | 2008-08-25T12:11:39.620 | 2016-01-26T16:55:28.753 | 2016-01-26T16:55:28.753 | 982,161 | 1,781 | null |
25,943 | 2 | null | 25,902 | 2 | null | Visual Build Professional is my favorite tool for pulling together all the other tools. Windows only, of course, but it integrates with all flavors of Visual Studio and a host of test tools, source controls tools, issue trackers, etc. It windows only, though. I know that's not the entire stack, but it's a start.
| null | CC BY-SA 2.5 | null | 2008-08-25T12:26:19.023 | 2008-08-25T12:26:19.023 | null | null | 2,494 | null |
25,921 | 1 | 25,958 | null | 9 | 1,238 | I've been strictly in a C++ environment for years (and specialized statistical languages). Visual Studio until 2001, and Borland since. Mostly specialized desktop applications for clients.
I'm not remaining willfully ignorant of it, but over the years when I've dipped into other things, I've spent my time playing aro... | What is ASP.NET? | CC BY-SA 2.5 | 0 | 2008-08-25T12:14:39.580 | 2011-05-21T14:34:10.010 | 2010-02-26T22:20:31.067 | 63,550 | 1,179 | [
"asp.net",
"glossary"
] |
25,944 | 2 | null | 25,921 | 5 | null | ASP.NET is a framework, it delivers:
1. A class hierachy you hook into, that allows both usage of supplied components, as well as development of your own.
2. Integration with and easy access to the underlying webserver.
3. An event model, which is probably the "best" thing about it.
4. A general abstraction from the ... | null | CC BY-SA 2.5 | null | 2008-08-25T12:27:20.720 | 2008-08-25T12:27:20.720 | null | null | 2,491 | null |
25,947 | 2 | null | 2,767 | 1 | null | I use a lot the Fogbguz plug in but well you need to use Fogbugz first !!!
| null | CC BY-SA 2.5 | null | 2008-08-25T12:28:12.077 | 2008-08-25T12:28:12.077 | null | null | 1,154 | null |
25,888 | 2 | null | 25,752 | 4 | null | @Brian
> I'm nearly certain you can accomplish this with CSS padding, as well. Then you won't be married to the space characters being hard-coded into all of your tags.
Good thinking - but unfortunately it doesn't work in (everyone's favourite browser...) IE7 :-(
Here's some code that will work in Firefox (and I as... | null | CC BY-SA 2.5 | null | 2008-08-25T11:37:15.910 | 2008-08-25T11:37:15.910 | null | null | 2,025 | null |
25,940 | 2 | null | 25,921 | 8 | null | I was going to write a lengthy answer but I felt that [Wikipedia had it covered](http://en.wikipedia.org/wiki/Asp.net):
> [ASP.NET](http://www.asp.net/) is a web application framework
developed and marketed by Microsoft,
that programmers can use to build
dynamic web sites, web applications
and web services. It... | null | CC BY-SA 3.0 | null | 2008-08-25T12:23:55.797 | 2011-05-21T14:34:10.010 | 2011-05-21T14:34:10.010 | 202 | 202 | null |
25,956 | 2 | null | 19,011 | 4 | null | RMS performance and implementation varies wildly between devices, so if platform portability is a problem, you may find that your code works well on some devices and not others. RMS is designed to store small amounts of data (High score tables, or whatever) not large amounts.
You might find that some platforms are fas... | null | CC BY-SA 2.5 | null | 2008-08-25T12:36:21.867 | 2008-08-25T12:36:21.867 | null | null | 974 | null |
25,938 | 1 | 30,841 | null | 0 | 2,972 | I need to have a summary field in each page of the report and in page 2 and forward the same summary has to appear at the top of the page. Anyone know how to do this?
Ex:
```
>
> Page 1
>
> Name Value
> a 1
> b 3
> Total 4
>
> Page 2
> Name Value
> Total Before 4
> c 5
> ... | Summary fields in Crystal Report VS2008 | CC BY-SA 3.0 | null | 2008-08-25T12:23:47.657 | 2017-12-14T23:26:33.417 | 2017-12-14T23:26:33.417 | 1,753,960 | 1,154 | [
"visual-studio-2008",
"crystal-reports"
] |
25,955 | 2 | null | 25,950 | 1 | null | I've actually heard really good things performance with about the JVM implementation, JRuby. Completly anecdotal, but perhaps worth looking into.
See also [http://en.wikipedia.org/wiki/JRuby#Performance](http://en.wikipedia.org/wiki/JRuby#Performance)
| null | CC BY-SA 2.5 | null | 2008-08-25T12:36:07.860 | 2008-08-25T12:36:07.860 | null | null | 797 | null |
25,952 | 1 | 2,707,368 | null | 113 | 104,115 | Back when I was at school, I remember tinkering with a Mac game where you programmed little robots in a sort of pseudo-assembler language which could then battle each other. They could move themselves around the arena, look for opponents in different directions, and fire some sort of weapon. Pretty basic stuff, but I r... | Best programming based games | CC BY-SA 2.5 | 0 | 2008-08-25T12:34:43.323 | 2014-07-27T18:41:05.947 | 2010-05-22T22:04:48.757 | 164,901 | 797 | [
"artificial-intelligence"
] |
25,957 | 2 | null | 23,640 | 0 | null | Although it's not what you're looking for, [Moodle](http://moodle.org/) might be of use to you if you're looking into having online courses.
| null | CC BY-SA 2.5 | null | 2008-08-25T12:37:10.960 | 2008-08-25T12:37:10.960 | null | null | 1,862 | null |
25,963 | 2 | null | 25,952 | 24 | null | I think the original game was called [Core Wars](http://en.wikipedia.org/wiki/Core_War) (this Wikipedia article contains a lot of interesting links); there still seem to be programs and competitions around, for example at [corewars.org](http://www.corewars.org/). I never had the time to look into these games, but they ... | null | CC BY-SA 2.5 | null | 2008-08-25T12:42:16.253 | 2008-08-25T12:42:16.253 | null | null | 1,037 | null |
25,959 | 2 | null | 25,952 | 34 | null | I used to have a lot of fun coding my own robot with [Robocode](http://robocode.sourceforge.net/) in college.
It is Java based, the API is detailled and it's pretty easy to get a challenging robot up and running.
Here is an example :
```
public class MyFirstRobot extends Robot {
public void run() {
wh... | null | CC BY-SA 2.5 | null | 2008-08-25T12:39:08.243 | 2008-08-25T12:39:08.243 | null | null | 1,291 | null |
25,962 | 2 | null | 25,952 | 3 | null | [Core Wars](http://www.corewars.org/)
| null | CC BY-SA 2.5 | null | 2008-08-25T12:40:30.627 | 2008-08-25T12:40:30.627 | null | null | 305 | null |
25,960 | 2 | null | 25,952 | 5 | null | I was also keen on these kind of games. One modern example which I have used is [http://www.robotbattle.com/](http://www.robotbattle.com/). There are various others - for example the ones listed at [http://www.google.com/Top/Games/Video_Games/Simulation/Programming_Games/Robotics/](http://www.google.com/Top/Games/Video... | null | CC BY-SA 2.5 | null | 2008-08-25T12:39:17.197 | 2008-08-25T12:39:17.197 | null | null | 1,912 | null |
25,966 | 2 | null | 25,952 | 2 | null | I've never heard or Core Wars before, but it looks interesting. I do have to vouch for RoboCode, though. That's fun and challenging, especially if you have a group of people competing against either other.
| null | CC BY-SA 2.5 | null | 2008-08-25T12:44:43.347 | 2008-08-25T12:44:43.347 | null | null | 572 | null |
25,950 | 1 | null | null | 8 | 4,833 | I'm pretty keen to develop my first Ruby app, as my company has finally blessed its use internally.
In everything I've read about Ruby up to v1.8, there is never anything positive said about performance, but I've found nothing about version 1.9. The last figures I saw about 1.8 had it drastically slower than just abou... | Ruby Performance | CC BY-SA 2.5 | 0 | 2008-08-25T12:34:21.310 | 2011-12-19T21:07:48.403 | 2011-12-19T21:07:48.403 | 38,765 | 1,693 | [
"ruby",
"performance",
"ruby-1.9"
] |
25,961 | 2 | null | 25,950 | 8 | null | There are some benchmarks of 1.8 vs 1.9 at [http://www.rubychan.de/share/yarv_speedups.html](http://www.rubychan.de/share/yarv_speedups.html). Overall, it looks like 1.9 is a lot faster in most cases.
| null | CC BY-SA 2.5 | null | 2008-08-25T12:40:01.330 | 2008-08-25T12:40:01.330 | null | null | 797 | null |
25,975 | 1 | 25,987 | null | 4 | 2,962 | The Compact Framework doesn't support Assembly.GetEntryAssembly to determine the launching .exe. So is there another way to get the name of the executing .exe?
EDIT: I found the answer on Peter Foot's blog: [http://peterfoot.net/default.aspx](http://peterfoot.net/default.aspx)
Here is the code:
```
byte[] buffer = ne... | How can I get the name of the executing .exe? | CC BY-SA 2.5 | null | 2008-08-25T12:51:33.127 | 2013-04-26T13:10:20.113 | 2012-04-25T03:17:22.203 | 13,154 | 1,382 | [
".net",
"compact-framework",
"windows-ce"
] |
25,971 | 2 | null | 25,969 | 1,931 | null | Try:
```
INSERT INTO table1 ( column1 )
SELECT col1
FROM table2
```
This is standard ANSI SQL and should work on any DBMS
It definitely works for:
- - - - - - - - - - - - - -
| null | CC BY-SA 4.0 | null | 2008-08-25T12:47:54.460 | 2021-02-17T16:06:35.850 | 2021-02-17T16:06:35.850 | 6,323,834 | 244 | null |
25,983 | 2 | null | 25,614 | 1 | null | It all depends on the feature set. If you want to benefit from an XSL Transformation Engine (Like Xalan) or an XPath Engine (Like Jaxen or Saxon) I would recommend sticking to the more popular framework available like Apache Xerces, JDOM.
After that, it's all a matter of taste. I personnally use a W3C compliant ( org.... | null | CC BY-SA 2.5 | null | 2008-08-25T12:54:53.180 | 2008-08-25T12:54:53.180 | null | null | 244 | null |
25,987 | 2 | null | 25,975 | 4 | null | I am not sure whether it works from managed code (or even the compact framework), but in Win32 you can call GetModuleFileName to find the running exe file.
[MSDN: GetModuleFileName](http://msdn.microsoft.com/en-us/library/ms683197(VS.85).aspx)
| null | CC BY-SA 2.5 | null | 2008-08-25T12:56:35.267 | 2008-08-25T12:56:35.267 | null | null | 1,810 | null |
25,969 | 1 | 25,971 | null | 1,756 | 3,184,203 | I am trying to `INSERT INTO` a table using the input from another table. Although this is entirely feasible for many database engines, I always seem to struggle to remember the correct syntax for the `SQL` engine of the day ([MySQL](http://en.wikipedia.org/wiki/MySQL), [Oracle](http://en.wikipedia.org/wiki/Oracle_Datab... | Insert into ... values ( SELECT ... FROM ... ) | CC BY-SA 4.0 | 0 | 2008-08-25T12:45:56.930 | 2021-07-13T15:27:13.200 | 2018-05-29T15:45:13.657 | 792,066 | 244 | [
"sql",
"database",
"syntax",
"database-agnostic",
"ansi-sql-92"
] |
25,976 | 2 | null | 25,841 | 5 | null | On Mac OS X there are different values for sending (SO_SNDBUF) and receiving (SO_RCVBUF).
This is the size of the send buffer (man getsockopt):
```
getsockopt(sock, SOL_SOCKET, SO_SNDBUF, (int *)&optval, &optlen);
```
Trying to send a bigger message (on Leopard 9216 octets on UDP sent via the local loopback) will re... | null | CC BY-SA 4.0 | null | 2008-08-25T12:51:47.587 | 2020-02-26T04:46:52.733 | 2020-02-26T04:46:52.733 | 12,597 | 2,811 | null |
25,958 | 2 | null | 25,921 | 5 | null | > ASP.NET is a web application framework
developed and marketed by Microsoft,
that programmers can use to build
dynamic web sites, web applications
and web services. It was first
released in January 2002 with version
1.0 of the .NET Framework, and is the successor to Microsoft's Active Server
Pages (ASP) ... | null | CC BY-SA 2.5 | null | 2008-08-25T12:38:41.223 | 2010-02-26T22:24:19.297 | 2010-02-26T22:24:19.297 | 63,550 | 2,695 | null |
25,964 | 2 | null | 25,952 | 2 | null | I'd say the most famous programming game there has been is the [core wars](http://en.wikipedia.org/wiki/Core_War). I don't know if you can still find active "rings" although there was a lot when I tried it some time ago (4 or 5 years).
| null | CC BY-SA 2.5 | null | 2008-08-25T12:42:19.327 | 2008-08-25T12:42:19.327 | null | null | 2,695 | null |
25,989 | 2 | null | 25,977 | 2 | null | Well, not to answer your question directly, but I have seen this happen. Microsoft recently launched a tool called [PhotoSynth](http://photosynth.net/) which does something very similar to determine overlapping areas in a large number of pictures (which could be of different aspect ratios).
I wonder if they have any a... | null | CC BY-SA 2.5 | null | 2008-08-25T12:57:21.163 | 2008-08-25T12:57:21.163 | null | null | 380 | null |
25,984 | 2 | null | 5,916 | 0 | null | Emacs has a folding minor mode, but I only fire it up occasionally. Mostly when I'm working on some monstrosity inherited from another physicist who evidently had less instruction or took less care about his/her coding practices.
| null | CC BY-SA 2.5 | null | 2008-08-25T12:55:19.763 | 2008-08-25T12:55:19.763 | null | null | 2,509 | null |
25,991 | 2 | null | 25,977 | 8 | null | You'll need [pattern recognition](http://en.wikipedia.org/wiki/Pattern_recognition) for that. To determine small differences between two images, [Hopfield nets](http://en.wikipedia.org/wiki/Hopfield_net) work fairly well and are quite easy to implement. I don't know any available implementations, though.
| null | CC BY-SA 2.5 | null | 2008-08-25T13:00:13.137 | 2008-08-25T13:00:13.137 | null | null | 1,968 | null |
25,990 | 2 | null | 25,975 | 0 | null | In managed code, i think you can use this:
[http://msdn.microsoft.com/en-us/library/system.windows.forms.application.executablepath.aspx](http://msdn.microsoft.com/en-us/library/system.windows.forms.application.executablepath.aspx)
Application.ExecutablePath
| null | CC BY-SA 2.5 | null | 2008-08-25T12:59:02.063 | 2008-08-25T12:59:02.063 | null | null | 2,494 | null |
25,982 | 1 | 27,450 | null | 1 | 950 | Given that my client code knows everything it needs to about the remoting object, what's the simplest way to connect to it?
This is what I'm doing at the moment:
```
ChannelServices.RegisterChannel(new HttpChannel(), false);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(IRemoteServer), "RemoteServer... | What's the simplest way to connect to a .NET remote server object | CC BY-SA 2.5 | null | 2008-08-25T12:54:52.307 | 2014-12-15T17:14:22.320 | 2014-12-15T17:14:22.320 | 1,429,387 | 2,373 | [
"c#",
".net",
"remoting",
"remote-server"
] |
25,977 | 1 | 26,061 | null | 103 | 114,240 | I would like to compare a screenshot of one application (could be a Web page) with a previously taken screenshot to determine whether the application is displaying itself correctly. I don't want an exact match comparison, because the aspect could be slightly different (in the case of a Web app, depending on the browser... | How can I measure the similarity between two images? | CC BY-SA 2.5 | 0 | 2008-08-25T12:51:49.053 | 2019-02-24T21:55:31.660 | 2009-08-26T00:49:42.117 | 18,437 | 2,680 | [
"algorithm",
"language-agnostic",
"image",
"image-processing"
] |
25,994 | 2 | null | 25,977 | 4 | null | I wonder (and I'm really just throwing the idea out there to be shot down) if something could be derived by subtracting one image from the other, and then compressing the resulting image as a jpeg of gif, and taking the file size as a measure of similarity.
If you had two identical images, you'd get a white box, which... | null | CC BY-SA 2.5 | null | 2008-08-25T13:04:38.540 | 2008-08-25T13:10:28.493 | 2008-08-25T13:10:28.493 | 797 | 797 | null |
25,999 | 1 | 145,450 | null | 25 | 9,275 | I'm playing around with a native (non-web) single-player game I'm writing, and it occured to me that having a daily/weekly/all-time (think Xbox Live Leaderboard) would make the game much more interesting, adding some (small) amount of community and competition. However, I'm afraid people would see such a feature as an... | Secure Online Highscore Lists for Non-Web Games | CC BY-SA 2.5 | 0 | 2008-08-25T13:10:37.997 | 2013-09-02T01:49:26.980 | 2008-08-25T13:23:37.060 | 996 | 996 | [
"encryption",
"leaderboard"
] |
26,003 | 2 | null | 5,916 | 2 | null | This is just one of those silly discussions that lead to nowhere. If you like regions, use them. If you don't, configure your editor to turn them off. There, everybody is happy.
| null | CC BY-SA 2.5 | null | 2008-08-25T13:14:36.923 | 2008-08-25T13:14:36.923 | null | null | 1,453 | null |