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
40,032
1
null
null
2
756
I need to develop some programs for mobile devices but haven't decided the platform to build upon. I'm looking for Palm or Pocket PC devices that have Touch screen and Wi-Fi connection and are cheep because I'll need to buy several of them. I don't really need camera, mp3 players, video players, pdf readers or anythi...
Mobile devices for developers
CC BY-SA 2.5
0
2008-09-02T16:59:07.087
2009-05-08T15:58:24.377
2008-09-02T18:52:49.980
4,269
4,269
[ "mobile", "device" ]
40,040
2
null
40,032
1
null
You should probably target the Windows Mobile platform. The Palm platform is rather archaic and no longer widely used. The development environment is also rather spartan, while Microsoft has full IDEs available for Windows Mobile development. You might also consider the iPhone/iPod touch platform - I have a feeling the...
null
CC BY-SA 2.5
null
2008-09-02T17:01:40.077
2008-09-02T17:01:40.077
null
null
658
null
39,997
2
null
39,915
1
null
@palmsey Pretty much, but the variation on that pattern that I've seen most often gets rid of `ObjectAID` et al. `ParentID` becomes both the PK and the FK to `Parents`. That gets you something like: - `Parents`- `ParentID`- `ObjectA`- `ParentID`- `ColumnFromA NOT NULL`- `ObjectB`- `ParentID`- `ColumnFromB NOT NULL` ...
null
CC BY-SA 2.5
null
2008-09-02T16:43:10.823
2008-09-02T16:43:10.823
null
null
4,203
null
40,036
2
null
39,892
12
null
Here are a few resources that might help you in your quest to create browser helper objects (BHO). [http://petesearch.com/wiki/ (archived)](http://wayback.archive.org/web/20110923191120/http://petesearch.com/wiki) [http://www.hackszine.com/blog/archive/2007/06/howto_port_firefox_extensions.html](http://www.hackszine....
null
CC BY-SA 3.0
null
2008-09-02T17:00:57.410
2014-12-18T06:11:47.213
2014-12-18T06:11:47.213
55,334
3,351
null
40,039
1
46,480
null
3
6,374
What would be the easiest way to be able to send and receive raw network packets. Do I have to write my own JNI wrapping of some c API, and in that case what API am I looking for? EDIT: I want to be able to do what wireshark does, i.e. record all incomming packets on an interface, and in addition be able to send back ...
How do I read and write raw ip packets from java on a mac?
CC BY-SA 2.5
null
2008-09-02T17:01:28.920
2022-01-13T07:20:36.907
2008-09-05T18:52:44.570
122
4,220
[ "java", "macos", "networking" ]
40,043
1
40,061
null
8
472
How can I create a new database from my C# application? I'm assuming once I create it, I can simply generate a connection string on the fly and connect to it, and the issue all the CREATE TABLE statements.
How do I create a database programmatically in SQL Server?
CC BY-SA 3.0
null
2008-09-02T17:04:46.853
2017-10-11T03:12:33.370
2017-10-11T03:12:33.370
1,033,581
3,314
[ ".net", "sql-server" ]
40,025
2
null
39,517
5
null
@Mike: this kind of thinking makes me nervous. I've heard to many times "this should be infinitely portable", but when the question is asked: do you actually foresee that there will be any porting? the answer is: no. Sticking to the lowest common denominator can really hurt performance, as can the introduction of abst...
null
CC BY-SA 2.5
null
2008-09-02T16:56:03.460
2008-09-02T16:56:03.460
null
null
1,265
null
40,045
2
null
33,813
4
null
[E Text Editor](http://www.e-texteditor.com/). It does pretty much everything TextMate does , and even - - does some things better, such as the superb bundles editor, the bundles manager, and the branching undo history. [Snippet Pipes](http://e-texteditor.com/blog/2008/snippet-pipes). So, not exactly a useful feature...
null
CC BY-SA 2.5
null
2008-09-02T17:05:44.887
2010-11-23T23:19:06.383
2010-11-23T23:19:06.383
1,944
1,944
null
40,054
1
40,208
null
6
1,352
Code below does not run correctly and throws `InvalidOperationExcepiton`. ``` public void Foo() { DataContext context = new DataContext(); LinqEntity item = new LinqEntity(){ Id = 1, Name = "John", Surname = "Doe"} ; context.LinqEntities.Attach(item, true); } ```
How can I update in Linq an entity that is disconnected from database?
CC BY-SA 3.0
0
2008-09-02T17:08:36.690
2018-04-15T22:14:59.687
2018-04-15T22:14:59.687
6,332,918
4,215
[ "c#", "linq" ]
40,055
2
null
36,014
4
null
I'm with @Shaun Austin - try wrapping the try with the fully qualified name ``` catch (System.Exception) ``` and see if that helps.Does the ANTLR doc say what Exceptions should be thrown?
null
CC BY-SA 2.5
null
2008-09-02T17:08:45.083
2008-09-02T17:08:45.083
null
null
1,075
null
40,037
2
null
37,586
1
null
We have also used UTL_HTTP in a manner similar to what you have described. I don't have any direct experience with UTL_DBWS, so I hope you can follow up with any information/experience you can gather. @kogus, no it's a quite good design for many applications. PL/SQL is a full-fledged programming language that has bee...
null
CC BY-SA 2.5
null
2008-09-02T17:01:01.420
2008-09-02T17:01:01.420
null
null
116
null
40,059
2
null
40,032
1
null
You should probably at least evaluate the Apple [iPod Touch](http://www.apple.com/ipodtouch/). It certainly meets your basic "touch screen + WiFi" spec, and your users presumably won't object to all the the other nice features that will come along for the ride. I don't know what your cutoff for "cheap" is, but $299 f...
null
CC BY-SA 2.5
null
2008-09-02T17:09:04.207
2008-09-02T17:09:04.207
null
null
3,776
null
40,057
2
null
38,305
2
null
There is a tool in Ant called a classfileset. You specify the list of root classes that you know you need, and then the classfileset recursively analyzes their code to find all dependencies. Alternatively, you could develop a good test suite that exercises all of the functions that you need, then run your tests under ...
null
CC BY-SA 2.5
null
2008-09-02T17:08:56.203
2008-09-02T17:08:56.203
null
null
3,474
null
40,069
2
null
39,929
8
null
I think [GPGME](http://www.gnupg.org/related_software/gpgme/) and the [PyMe Python wrapper](http://pyme.sourceforge.net/) should do what you need.
null
CC BY-SA 2.5
null
2008-09-02T17:15:23.583
2008-09-02T17:15:23.583
null
null
3,207
null
40,064
2
null
39,835
1
null
> How can I display the tile of the page that contains the keyword in that dialog? You can't. The Location column in the Topics Found dialog always contains the name of the source chm file of the topic. The only way to get around this is to use modular help, which comes with it's own share of problems and overhead...
null
CC BY-SA 2.5
null
2008-09-02T17:12:06.337
2008-09-02T17:12:06.337
null
null
3,473
null
40,063
2
null
38,635
1
null
- [Gendarme](http://www.mono-project.com/Gendarme)- [Clone Detective](http://www.codeplex.com/CloneDetectiveVS)-
null
CC BY-SA 2.5
null
2008-09-02T17:11:07.043
2008-09-02T17:11:07.043
null
null
3,798
null
40,067
2
null
39,960
0
null
@pkaeding Yes, you're right. doesn't work in this case, but does. If I needed something like this, I'd create my own object to keep those functions together. ``` var func = {}; func.bar = ...; var s = "bar"; func[s](); ```
null
CC BY-SA 2.5
null
2008-09-02T17:14:25.007
2008-09-02T17:14:25.007
null
null
3,666
null
40,081
2
null
40,039
0
null
[TINI](http://www.maxim-ic.com/products/microcontrollers/tini/) is a java ethernet controller, which may have libraries and classes for directly accessing data from ethernet frames to TCP streams. You may be able to find something in there that implements your needed classes. If not, there should be pointers or user gr...
null
CC BY-SA 4.0
null
2008-09-02T17:22:46.610
2018-12-20T12:58:23.937
2018-12-20T12:58:23.937
1,997,093
2,915
null
40,079
2
null
40,054
1
null
I'm not sure what you mean by disconnected from the database. It appears that you are trying to insert a new row into the LinqEntities table -- is that correct? If that is the case you'll want to do ``` context.LinqEntities.InsertOnSubmit(item); context.Submit(); ```
null
CC BY-SA 2.5
null
2008-09-02T17:21:25.177
2008-09-02T17:21:25.177
null
null
1,249
null
40,061
2
null
40,043
13
null
[KB307283](http://support.microsoft.com/kb/307283) explains how to create a database using ADO.NET. From the article: ``` String str; SqlConnection myConn = new SqlConnection ("Server=localhost;Integrated security=SSPI;database=master"); str = "CREATE DATABASE MyDatabase ON PRIMARY " + "(NAME = MyDatabase_Data, ...
null
CC BY-SA 2.5
null
2008-09-02T17:09:15.800
2008-09-02T17:09:15.800
null
null
2,257
null
40,041
2
null
30,036
4
null
The new v8 engine which [should come out](http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html) today supports it (i think)
null
CC BY-SA 2.5
null
2008-09-02T17:03:08.543
2008-09-02T17:03:08.543
null
null
1,782
null
40,084
2
null
40,075
2
null
I would use the built in Func delegates instead. This same code would work on any IEnumerable. Your code would turn into: ``` public static R Reduce<T,R>(this IEnumerable<T> list, Func<T,R> r, R initial) { var aggregate = initial; foreach(var t in list) aggregate = r(t,aggregate); return agg...
null
CC BY-SA 2.5
null
2008-09-02T17:23:32.630
2008-09-02T17:29:57.900
2008-09-02T17:29:57.900
632
632
null
40,085
2
null
40,043
1
null
CREATE DATABASE works
null
CC BY-SA 2.5
null
2008-09-02T17:23:46.903
2008-09-02T17:23:46.903
null
null
4,290
null
40,075
1
40,148
null
28
27,666
I am writing a few extensions to mimic the map and reduce functions in Lisp. ``` public delegate R ReduceFunction<T,R>(T t, R previous); public delegate void TransformFunction<T>(T t, params object[] args); public static R Reduce<T,R>(this List<T> list, ReduceFunction<T,R> r, R initial) { var aggregate = initial...
Generic Map/Reduce List Extensions in C#
CC BY-SA 3.0
0
2008-09-02T17:18:19.460
2019-02-21T07:58:34.553
2018-02-26T19:06:40.560
264,607
1,455
[ "c#", "functional-programming", "extension-methods" ]
40,093
2
null
40,090
5
null
Yes, that'd be best`$`, as others have pointed out. For those interested in the rationale behind the lack of default parameter values, see @Giovanni Galbo's explanation.
null
CC BY-SA 2.5
null
2008-09-02T17:27:26.333
2008-09-02T18:38:36.490
2008-09-02T18:38:36.490
1,199
1,199
null
40,028
1
41,231
null
1
1,106
I think it can be done by applying the transformation matrix of the scenegraph to z-normal (0, 0, 1), but it doesn't work. My code goes like this: ``` Vector3f toScreenVector = new Vector3f(0, 0, 1); Transform3D t3d = new Transform3D(); tg.getTransform(t3d); //tg is Transform Group of all objects in a scene t3d.transf...
How to find a normal vector pointing directly from virtual world to screen in Java3D?
CC BY-SA 2.5
0
2008-09-02T16:57:08.543
2016-02-20T16:39:00.497
null
null
3,388
[ "java", "graphics", "java-3d" ]
40,065
2
null
39,112
117
null
Here's the basic pattern: - - - - - In code, it looks like this: ``` private static object ThisLock = new object(); public string GetFoo() { // try to pull from cache here lock (ThisLock) { // cache was empty before we got the lock, check again inside the lock // cache is still empty, so retreive ...
null
CC BY-SA 2.5
null
2008-09-02T17:12:26.023
2008-09-02T17:17:43.627
2008-09-02T17:17:43.627
4,239
4,239
null
40,095
2
null
40,090
2
null
Default arguments are part of C++, but as of C# 3.5 default arguments are still not supported-- you'll have to overload. They've been available in VB.Net since 1.0.
null
CC BY-SA 2.5
null
2008-09-02T17:27:48.563
2008-09-02T17:27:48.563
null
null
3,043
null
40,096
2
null
40,090
0
null
Yes. Or currying. Or abstracting into a class and using default values there.
null
CC BY-SA 2.5
null
2008-09-02T17:28:10.510
2008-09-02T17:28:10.510
null
null
2,902
null
40,086
2
null
40,026
2
null
It seems that this is not possible. From the [documentation](http://livedocs.adobe.com/flex/3/html/help.html?content=app_launch_1.html): > Only one instance of an AIR application is started. When an already running application is invoked again, AIR dispatches a new invoke event to the running instance. It also gives ...
null
CC BY-SA 2.5
null
2008-09-02T17:24:28.803
2008-09-02T17:24:28.803
null
null
1,265
null
40,098
2
null
40,090
0
null
No, AFAIK C# does not support overriding, and yes, that is the recommended way of accomplishing the same effect.
null
CC BY-SA 2.5
null
2008-09-02T17:28:30.213
2008-09-02T17:28:30.213
null
null
3,114
null
40,097
2
null
40,026
0
null
Last time I checked, an AIR app can only run a single instance. You could open multiple windows, but your app itself would have to support that. I hope they change this soon.
null
CC BY-SA 2.5
null
2008-09-02T17:28:16.550
2008-09-02T17:28:16.550
null
null
415
null
40,091
2
null
40,026
2
null
No, it can't. AIR only allows one running instance of any app with the same ID defined in the app.xml file. ``` <application xmlns="http://ns.adobe.com/air/application/1.0"> <id>ApplicationID</id> ``` To work around this you'll either have to create individually ID'd apps for each stream, or create a master app wit...
null
CC BY-SA 2.5
null
2008-09-02T17:26:03.370
2008-09-02T17:26:03.370
null
null
3,473
null
40,099
2
null
30,770
0
null
If you set the UpdateMode property to Conditional (default is Always) on both UpdatePanels it should stop the outer UpdatePanel triggering when only the usercontrols updatepanel should have refreshed.
null
CC BY-SA 2.5
null
2008-09-02T17:28:39.153
2008-09-02T17:28:39.153
null
null
4,043
null
40,101
2
null
39,457
2
null
After a bit more searching I decided to let the compiler do the hard work. Get the compiler to produce a [Register Transfer Language (RTL)](http://en.wikipedia.org/wiki/Register_Transfer_Language#RTL_in_GCC) file using the -dr options of gcc. The produced RTL file has the suffix .rtl or .expand. This file is far eas...
null
CC BY-SA 2.5
null
2008-09-02T17:29:06.203
2008-09-02T17:29:06.203
null
null
381
null
40,109
2
null
40,032
3
null
It supports C#, and Visual Studio comes with the mobile SDK. So if you know C# you probably already have the tools you need. And in spite of the iPhone/iPodTouch buzz, the Windows Mobile deployment is still 10X greater.
null
CC BY-SA 2.5
null
2008-09-02T17:33:12.620
2008-09-02T17:33:12.620
null
null
3,043
null
40,090
1
40,093
null
10
2,906
Is it true that the only way to handle default function arguments is through function overloading? For example, in PHP I can do this: ``` function foo($x, $y=0) { } ``` Would the best way to handle it in C# be this? ``` void foo(int x) { foo(x, 0); } void foo(int x, int y) { } ``` [Example lifted from here](h...
Is overloading the only way to have default function arguments in C#?
CC BY-SA 2.5
null
2008-09-02T17:25:56.367
2013-09-20T19:13:50.880
2008-09-02T17:32:15.773
305
305
[ "c#", "overloading" ]
40,089
2
null
40,075
1
null
You might want to add a way to do a map but return a new list, instead of working on the list passed in (and returning the list can prove useful to chain other operations)... perhaps an overloaded version with a boolean that indicates if you want to return a new list or not, as such: ``` public static List<T> Transfor...
null
CC BY-SA 2.5
null
2008-09-02T17:25:45.930
2008-09-02T17:25:45.930
null
null
122
null
40,116
1
null
null
18
111,970
How do I get it to work with my project? [http://ajax.asp.net/](http://ajax.asp.net/) [http://www.codeplex.com/AjaxControlToolkit/](http://www.codeplex.com/AjaxControlToolkit/)
How do I install and use the ASP.NET AJAX Control Toolkit in my .NET 3.5 web applications?
CC BY-SA 2.5
0
2008-09-02T17:36:16.263
2015-08-17T10:54:29.313
null
null
83
[ "asp.net", "ajax", ".net-3.5" ]
40,108
2
null
40,054
1
null
OK, if you're trying to update a row with ID = 1, you'll do it like this: ``` DataContext context = new DataContext(); LinqEntity item = (from le in context.LinqEntities where le.ID == 1 select le).Single(); item.Name = "John"; item.Surname = "Doe"; context.Submit(); ``` You coul...
null
CC BY-SA 2.5
null
2008-09-02T17:32:18.113
2008-09-02T17:37:42.487
2008-09-02T17:37:42.487
1,249
1,249
null
40,112
1
41,036
null
6
56,278
I've got an MS-Access app (1/10th MS-Acccess, 9/10ths MS-SQL) that needs to display photographs of some assets along with their specifications. Currently the images are stored in an MS-Access table as an OLE Object (and copy-n-pasted into the field by the users). For various reasons, I would like to do is store the or...
Is there a way to get ms-access to display images from external files
CC BY-SA 2.5
0
2008-09-02T17:34:34.163
2023-02-15T12:18:54.417
2008-09-12T19:02:01.417
685
685
[ "ms-access", "image" ]
40,106
2
null
39,112
1
null
I saw one pattern recently called Correct State Bag Access Pattern, which seemed to touch on this. I modified it a bit to be thread-safe. [http://weblogs.asp.net/craigshoemaker/archive/2008/08/28/asp-net-caching-and-performance.aspx](http://weblogs.asp.net/craigshoemaker/archive/2008/08/28/asp-net-caching-and-perform...
null
CC BY-SA 3.0
null
2008-09-02T17:29:56.747
2011-11-28T12:04:36.310
2011-11-28T12:04:36.310
2,429
2,429
null
40,122
1
40,170
null
2
1,120
My group is developing a service-based (.NET WCF) application and we're trying to decide how to handle exceptions in our internal services. Should we throw exceptions? Return exceptions serialized as XML? Just return an error code? Keep in mind that the user will never see these exceptions, it's only for other part...
Exceptions in Web Services
CC BY-SA 2.5
0
2008-09-02T17:38:59.470
2018-05-18T09:20:07.303
null
null
4,219
[ ".net", "wcf", "web-services", "exception" ]
40,117
2
null
39,727
0
null
> Hmmmm, I talking about them as they are implemented here:[http://blog.benday.com/archive/2008/03/31/23176.aspx](http://blog.benday.com/archive/2008/03/31/23176.aspx)(at least Context.Handler there)I am still having trouble in VS making that reference. Context.Handler is an instance of an HttpContext. HttpContext ex...
null
CC BY-SA 2.5
null
2008-09-02T17:36:37.713
2008-09-02T17:36:37.713
null
null
1,965
null
40,119
1
40,285
null
149
154,423
How do you find a memory leak in Java (using, for example, JHat)? I have tried to load the heap dump up in JHat to take a basic look. However, I do not understand how I am supposed to be able to find the root reference ([ref](https://stackoverflow.com/questions/104/anatomy-of-a-memory-leak)) or whatever it is called. B...
How to find a Java Memory Leak
CC BY-SA 3.0
0
2008-09-02T17:37:12.173
2021-03-24T16:11:22.790
2017-05-23T12:09:57.963
-1
4,208
[ "java", "memory", "memory-leaks", "jhat" ]
40,124
2
null
40,119
4
null
Well, there's always the low tech solution of adding logging of the size of your maps when you modify them, then search the logs for which maps are growing beyond a reasonable size.
null
CC BY-SA 2.5
null
2008-09-02T17:39:50.530
2008-09-02T17:39:50.530
null
null
122
null
40,120
2
null
39,735
3
null
jQuery, action, return JSON. [http://devlicio.us/blogs/mike_nichols/archive/2008/05/25/jquery-cascade-cascading-values-from-forms.aspx](http://devlicio.us/blogs/mike_nichols/archive/2008/05/25/jquery-cascade-cascading-values-from-forms.aspx)
null
CC BY-SA 2.5
null
2008-09-02T17:38:04.230
2008-09-02T17:38:04.230
null
null
2,676
null
40,128
2
null
40,107
0
null
I would probably use struct as the type, and then throw an exception if it isn't an Enum type. I don't see how your (Type, string) option is any safer than using object or struct.
null
CC BY-SA 2.5
null
2008-09-02T17:41:07.140
2008-09-02T17:41:07.140
null
null
2,688
null
40,131
2
null
40,107
0
null
[Here are the rules](http://msdn.microsoft.com/en-us/library/aa664615%28VS.71%29.aspx) for the types that can be included as Attribute parameters:
null
CC BY-SA 2.5
null
2008-09-02T17:44:12.487
2010-09-14T09:33:37.293
2010-09-14T09:33:37.293
180,239
3,641
null
40,105
2
null
39,928
1
null
[Microsoft KB article 822668](http://support.microsoft.com/kb/822668) is relevant here: > ## FIX: "Connection is busy with results for another command" error message occurs when you run a linked server query ### Symptoms Under stress conditions, you may receive the following error message when you perform linked s...
null
CC BY-SA 3.0
null
2008-09-02T17:29:38.790
2017-09-06T21:09:00.107
2017-09-06T21:09:00.107
366,904
2,894
null
40,121
2
null
40,090
20
null
Just to satisfy some curiosity: From [Why doesn't C# support default parameters?](http://blogs.msdn.com/csharpfaq/archive/2004/03/07/85556.aspx): > In languages such as C++, a default value can be included as part of the method declaration:void Process(Employee employee, bool bonus = false)This method can be called eit...
null
CC BY-SA 2.5
null
2008-09-02T17:38:58.987
2008-09-02T17:38:58.987
2020-06-20T09:12:55.060
-1
4,050
null
40,125
1
null
null
2
405
I'm trying to get a Firefox plugin to read data from a HTTP get, parse the results and present them as links in a bookmark-like drop-down menu. My quesion then is: Does anyone have any sample code that will do this?
Reading from a http-get presenting in Firefox bookmarks
CC BY-SA 2.5
null
2008-09-02T17:39:52.293
2014-05-20T18:32:19.317
2012-07-27T07:50:21.847
918,414
4,165
[ "javascript", "firefox", "plugins", "xul" ]
40,138
2
null
40,119
0
null
You really need to use a memory profiler that tracks allocations. Take a look at [JProfiler](http://www.ej-technologies.com/products/jprofiler/overview.html) - their "heap walker" feature is great, and they have integration with all of the major Java IDEs. It's not free, but it isn't that expensive either ($499 for a s...
null
CC BY-SA 2.5
null
2008-09-02T17:46:46.223
2008-09-02T17:46:46.223
null
null
3,776
null
40,139
2
null
35,834
1
null
Check out this LGPL project. I know it can set foreground for a window. Otherwise aku is correct. It'll require most likely some pinvoke calls. [http://mwinapi.sourceforge.net/](http://mwinapi.sourceforge.net/) If you need information on pinvoke use: [http://www.pinvoke.net/](http://www.pinvoke.net/)
null
CC BY-SA 2.5
null
2008-09-02T17:47:51.977
2008-09-02T17:47:51.977
null
null
null
null
40,140
2
null
40,122
1
null
I'm a bit confused, I'm not being flippant -- you say you want to return exceptions serialised as XML on the one hand and that the user will never see the exceptions on the other hand. Who will be seeing these exceptions? Normally I'd say to use WCF fault contracts.
null
CC BY-SA 2.5
null
2008-09-02T17:47:54.397
2008-09-02T17:47:54.397
null
null
2,995
null
40,118
2
null
40,116
38
null
1. Download the ZIP file AjaxControlToolkit-Framework3.5SP1-DllOnly.zip from the ASP.NET AJAX Control Toolkit Releases page of the CodePlex web site. 2. Copy the contents of this zip file directly into the bin directory of your web site. 1. Put this in your web.config under the <controls> section: <?xml versio...
null
CC BY-SA 2.5
null
2008-09-02T17:36:39.960
2008-09-02T17:43:50.660
2008-09-02T17:43:50.660
83
83
null
40,142
2
null
40,132
6
null
I personally would create a carrier object to store the values. You then get the nice intellisense for it, and changes to it would be quite straightforward. It would also be faster than dictionary lookups for parameter values. And of course, you get type safety. :)
null
CC BY-SA 2.5
null
2008-09-02T17:48:04.193
2008-09-02T17:48:04.193
null
null
832
null
40,146
2
null
40,119
5
null
There are tools that should help you find your leak, like JProbe, YourKit, AD4J or JRockit Mission Control. The last is the one that I personally know best. Any good tool should let you drill down to a level where you can easily identify what leaks, and where the leaking objects are allocated. Using HashTables, Hashm...
null
CC BY-SA 2.5
null
2008-09-02T17:48:30.337
2008-09-02T17:48:30.337
null
null
4,165
null
40,133
1
40,156
null
3
4,182
I have been experimenting with [woopra.com](http://www.woopra.com/) A web analytics tool. Which requires a piece of javascript code to be added to each page to function. This is easy enough with more dynamic sites with universal headers or footers but not for totally static html pages. I attempted to work round it by u...
Getting Apache to modify static webpages on the fly
CC BY-SA 4.0
0
2008-09-02T17:45:39.020
2020-08-30T20:42:02.700
2020-08-30T20:42:02.700
2,430,549
3,720
[ "apache", "templates", "filtering", "ssi" ]
40,149
2
null
40,132
0
null
Something like this should be good: ``` MyConfigurationDialog dialog = new MyConfigurationDialog(); //Copy the dictionary so that the dialog can't mess with our settings dialog.Settings = new Dictionary(existingSettings); if(DialogResult.OK == dialog.Show()) { //grab the settings that the dialog may have changed ...
null
CC BY-SA 2.5
null
2008-09-02T17:50:18.290
2008-09-02T17:50:18.290
null
null
96
null
40,153
2
null
40,122
2
null
Well, why not just throw the standard SOAPExceptions? The problem with error codes and serialized XML is that they both require additional logic to recognize that an error did in fact happen. Such an approach is only useful if you have specialized logging or logic that needs to happen on the other side of the web se...
null
CC BY-SA 2.5
null
2008-09-02T17:51:34.027
2008-09-02T17:51:34.027
null
null
2,170
null
40,148
2
null
40,075
35
null
These look very similar to extensions in Linq already: ``` //takes a function that matches the Func<T,R> delegate listInstance.Aggregate( startingValue, (x, y) => /* aggregate two subsequent values */ ); //takes a function that matches the Action<T> delegate listInstance.ForEach( x => /* do something w...
null
CC BY-SA 2.5
null
2008-09-02T17:49:54.080
2008-09-02T17:54:58.683
2008-09-02T17:54:58.683
905
905
null
40,132
1
40,142
null
2
452
I've got a situation where I have a main form that pops up an advanced configuration form that just has half a dozen matched check boxes and combo boxes to select some advanced options (the check boxes to enable/disable, the combo to select a media if enabled). If I just pass the individual settings for the check and ...
Best way to pass a large number of arguments into a configuration dialog
CC BY-SA 2.5
null
2008-09-02T17:44:32.313
2010-08-27T19:24:07.550
null
null
1,512
[ "c#" ]
40,151
1
40,257
null
-3
851
I have a very strange problem. Under some elusive circumstances I fail to apply any jQuery selector on my pages under IE. It's OK under Firefox though. The jQuery function simply returns empty array. Any suggestions? Page is too complex to post it here. Practically any selector, except `"#id"` selectors, returns a z...
Why do jQuery selectors sometimes not work in Internet Explorer
CC BY-SA 3.0
0
2008-09-02T17:50:31.347
2015-07-29T07:54:44.843
2015-07-29T07:54:44.843
4,978,026
2,313
[ "javascript", "jquery", "html", "internet-explorer" ]
40,154
1
4,868,661
null
469
198,552
How can you beta test an iPhone app? I can get it on my own device, and anyone that gives me a device, I can run it on theirs, but is there a way to do a limited release via the app store for beta testing? Related: Also, see [this question](https://stackoverflow.com/questions/37464/iphone-app-minus-app-store) on gett...
How do you beta test an iphone app?
CC BY-SA 3.0
0
2008-09-02T17:52:24.120
2020-03-02T19:23:48.153
2017-05-23T12:02:37.570
-1
245
[ "ios", "beta-testing" ]
40,156
2
null
40,133
2
null
I think that [mod_filter_ext](http://httpd.apache.org/docs/2.2/mod/mod_ext_filter.html) is the module you are looking for. You can write a short Perl script for example to insert the JS code in the pages and register it to process HTML pages: ``` while (<>) { s/<html>/\Q<script>....\E/; print $_; } ``` You c...
null
CC BY-SA 2.5
null
2008-09-02T17:53:01.620
2008-09-02T17:53:01.620
null
null
1,265
null
40,159
2
null
38,074
5
null
Yeah, it is messy, I can't think of a way to avoid it though. You could hide some of the messiness from the client by putting the temporary table creation in a stored procedure (and using "execute immediate" to create they table) One thing you will need to watch out for is left over temporary tables (should something f...
null
CC BY-SA 2.5
null
2008-09-02T17:53:52.493
2008-09-02T17:53:52.493
null
null
3,590
null
40,160
2
null
40,107
0
null
> @Danial Jennings I read through the rules there and found: "An enum type, provided it has public accessibility and the types in which it is nested (if any) also have public accessibility (Section 17.2).". How does trying for Enum e in the constructor fail based on the quoted rule? Is it because being of type enum d...
null
CC BY-SA 2.5
null
2008-09-02T17:53:54.100
2008-09-02T17:53:54.100
null
null
1,455
null
40,158
2
null
40,151
3
null
What version(s) of IE is it failing under? Is it failing for a specific complex selector? I think we need an example. Edit: Does the problem go away if you upgrade to 1.2.6? 1.2.6 is primarily a bug-fix release according to [this page](http://docs.jquery.com/Release:jQuery_1.2.6). Failing that, the best way to find t...
null
CC BY-SA 2.5
null
2008-09-02T17:53:36.690
2008-09-02T18:18:19.923
2008-09-02T18:18:19.940
619
619
null
40,161
1
40,180
null
20
8,238
Does C# have built-in support for parsing strings of page numbers? By page numbers, I mean the format you might enter into a print dialog that's a mixture of comma and dash-delimited. Something like this: ``` 1,3,5-10,12 ``` What would be really nice is a solution that gave me back some kind of list of all page nu...
Does C# have built-in support for parsing page-number strings?
CC BY-SA 3.0
0
2008-09-02T17:53:54.473
2018-06-25T12:29:13.467
2015-07-24T16:28:08.237
3,555,000
305
[ "c#", "parsing" ]
40,163
2
null
40,132
0
null
I agree with Rob Cooper. Create a class to represent your configuration, and pass that into the constructor of your form. This will also allow you to define methods on your new "config" class like "saveSettings", "LoadSettings", etc. That in turn should keep the code more maintainable in general. As an quick-and-di...
null
CC BY-SA 2.5
null
2008-09-02T17:55:34.940
2008-09-02T17:55:34.940
null
null
672
null
40,157
2
null
31,158
1
null
The book 'Real-Time Collision Detection' by Christer Ericson (ISBN: 1-55860-732-3) is a recent (2005) and widely praised book which should give you some good answers. It starts with a basic primer of some of the maths you will need to know, and then goes into various types of bounding volumes (spheres, axis-aligned bo...
null
CC BY-SA 2.5
null
2008-09-02T17:53:24.820
2008-09-02T17:53:24.820
null
null
4,053
null
40,164
2
null
40,122
0
null
Phil, different parts of the application call each other using WCF. By "return exceptions serialized as XML," I meant that the return value of the function wold be an exception object. Success would be indicated by null. I don't think that's the right option. WCF fault contracts sound good, but I don't know anyth...
null
CC BY-SA 2.5
null
2008-09-02T17:55:36.937
2008-09-02T17:55:36.937
null
null
4,219
null
40,141
2
null
39,867
24
null
It turns out that the answer was easier than I expected. There is a `--batch` parameter missing, gpg tries to read from /dev/tty that doesn't exist for cron jobs. To debug that I have used `--exit-on-status-write-error` param. But to use that I was inspired by exit status 2, reported by echoing `$?` as Cd-Man suggested...
null
CC BY-SA 2.5
null
2008-09-02T17:48:02.243
2008-09-02T17:48:02.243
null
null
3,105
null
40,169
1
40,179
null
10
4,349
I infrequently (monthly/quarterly) generate hundreds of Crystal Reports reports using Microsoft SQL Server 2005 database views. Are those views wasting CPU cycles and RAM during all the time that I am not reading from them? Should I instead use stored procedures, temporary tables, or short-lived normal tables since I...
Is it okay to have a lot of database views?
CC BY-SA 2.5
0
2008-09-02T17:58:52.310
2013-09-25T14:11:26.307
2008-10-08T22:24:49.483
15,401
83
[ "sql", "sql-server", "database", "database-design", "crystal-reports" ]
40,167
2
null
40,125
2
null
Having never developed one myself, I'm not certain how this is typically done in Firefox plugins, but since plugin scripting is JavaScript, I can probably help out with the loading part. Assuming a variable named url containing the URL you want to request: ``` var xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", ur...
null
CC BY-SA 3.0
null
2008-09-02T17:57:34.917
2014-05-20T18:32:19.317
2014-05-20T18:32:19.317
4,287
4,287
null
40,171
1
250,296
null
2
1,656
The ASP page gets data uses that to draw a graph, I then need to save the image created to JPEG to be displayed on the browser and also used in PDF and other format. What is the best way to compress the image? I am currently porting a JPEG compression library to ASP but I think it will be too slow on this ARM device ru...
How to compress JPEG images with ASP on Windows CE
CC BY-SA 2.5
0
2008-09-02T18:00:04.880
2011-11-21T03:52:01.373
2011-11-21T03:52:01.373
3,043
4,294
[ "asp-classic", "compression", "windows-ce", "jpeg" ]
40,170
2
null
40,122
3
null
WCF uses `SoapFaults` as its native way of transmitting exceptions from either the service to the client, or the client to the service. You can declare a custom SOAP fault using the `FaultContract` attribute in your contract interface: For example: ``` [ServiceContract(Namespace="foobar")] interface IContract { ...
null
CC BY-SA 4.0
null
2008-09-02T17:59:04.307
2018-05-18T09:20:07.303
2018-05-18T09:20:07.303
886,001
1,965
null
40,143
2
null
38,998
1
null
Personally, I use a set of methods I have developed for bridging the server-side ASP.NET "magic" (I have yet to use the MS MVC stuff yet) and my client-side code because of the munging of the IDs that happens. Here is just one that may or may not prove useful: ``` public void RegisterControlClientID(Control control) {...
null
CC BY-SA 2.5
null
2008-09-02T17:48:10.307
2008-09-02T17:48:10.307
null
null
1,790
null
40,173
2
null
39,960
18
null
- locals() - No. - globals() - Yes. `window` is a reference to the global scope, like `globals()` in python. ``` globals()["foo"] ``` is the same as: ``` window["foo"] ```
null
CC BY-SA 2.5
null
2008-09-02T18:01:29.697
2008-09-02T18:01:29.697
null
null
473
null
40,172
2
null
38,948
1
null
I don't know much about Java, but I remember running into [Quercus](http://www.caucho.com/resin-3.0/quercus/) a while ago. It's a 100% Java interpreter for PHP code. So yes, you could have PHP templates on your Java app. : see [Quercus: PHP in Java](http://caucho.com/resin/doc/quercus.xtp) for more info.
null
CC BY-SA 2.5
null
2008-09-02T18:01:24.597
2008-09-02T23:47:26.137
2008-09-02T23:47:26.137
4,272
4,272
null
40,178
2
null
40,171
0
null
I'm confused... The images from ASP would be compressed on the server side--not client side. I'm sure your web server is not running on Windows CE, so I don't think your concern is warranted. Seems as though you can run a web server on Windows CE: [http://www.microsoft.com/windows/embedded/products/windowsce/de...
null
CC BY-SA 2.5
null
2008-09-02T18:06:22.353
2008-09-02T18:23:34.327
2008-09-02T18:23:34.327
3,880
3,880
null
40,179
2
null
40,169
8
null
For the most part, it doesn't matter. Yes, SQL Server will have more choices when it parses SELECT * FROM table (it'll have to look in the system catalogs for 'table') but it's highly optimized for that, and provided you have sufficient RAM (most servers nowadays do), you won't notice a difference between 0 and 1,000 v...
null
CC BY-SA 2.5
null
2008-09-02T18:06:41.043
2008-09-02T18:06:41.043
null
null
2,590
null
40,107
1
null
null
6
1,237
I imagine everyone has seen code like: ``` public void Server2ClientEnumConvert( ServerEnum server) { switch(server) { case ServerEnum.One: return ClientEnum.ABC //And so on. ``` Instead of this badness we could do somthing like: ``` public enum ServerEnum { [Enum2Enum(ClientEn...
Using attributes to cut down on enum to enum mapping and enum/const to action switch statments
CC BY-SA 2.5
null
2008-09-02T17:32:15.103
2010-09-14T09:33:37.293
2008-12-29T19:19:23.907
1,065
1,455
[ "c#", "reflection", "enums", "attributes" ]
40,165
2
null
40,161
9
null
It doesn't have a built-in way to do this, but it would be trivial to do using String.Split. Simply split on ',' then you have a series of strings that represent either page numbers or ranges. Iterate over that series and do a String.Split of '-'. If there isn't a result, it's a plain page number, so stick it in your ...
null
CC BY-SA 2.5
null
2008-09-02T17:55:52.550
2008-09-02T17:55:52.550
null
null
3,641
null
40,180
2
null
40,161
25
null
Should be simple: ``` foreach( string s in "1,3,5-10,12".Split(',') ) { // try and get the number int num; if( int.TryParse( s, out num ) ) { yield return num; continue; // skip the rest } // otherwise we might have a range // split on the range delimiter string[] subs...
null
CC BY-SA 3.0
null
2008-09-02T18:07:14.410
2011-11-23T12:42:50.057
2011-11-23T12:42:50.057
905
905
null
40,182
2
null
40,112
0
null
The easiest way is probably to plop an Internet Explorer onto one of your forms. Check out this site: [http://www.acky.net/tutorials/vb/wbrowser/](http://www.acky.net/tutorials/vb/wbrowser/) Since you can reference that object in Access, you will only need to point the webbrowser control to the path of the .jpg (Navig...
null
CC BY-SA 2.5
null
2008-09-02T18:07:18.467
2008-09-02T18:07:18.467
null
null
2,260
null
40,188
2
null
35,772
2
null
The way the FogBugz screenshot setup tool does this is that it appends a 256 byte block at the end of the setup program at the moment it is downloaded. In other words, the download script spits out all the bytes from setup.exe and then an extra 256 with the url for the FogBugz server, plus any padding. Windows ignore...
null
CC BY-SA 2.5
null
2008-09-02T18:12:57.987
2008-09-06T22:59:42.253
2008-09-06T22:59:42.253
245
245
null
40,190
2
null
40,107
0
null
Why not use a Dictionary? This could be a static property of your class, initialized with those fancy schmancy object initializers we got in 3.0? You would not be typing more code (the mapping has to be done even with the Attribute sollution).
null
CC BY-SA 2.5
null
2008-09-02T18:15:22.100
2008-09-02T18:15:22.100
null
null
2,260
null
40,189
2
null
28,380
15
null
I remember having the same problem - After searching on the web, I found this solution - From the command line, ``` 1. > adb shell 2. # sqlite3 /data/data/com.android.providers.settings/databases/settings.db 3. sqlite> INSERT INTO system VALUES(99,’http_proxy', 'proxy:port'); 4. sqlite>.exit ``` EDIT: Edited answer ...
null
CC BY-SA 3.0
null
2008-09-02T18:13:27.953
2011-05-06T11:20:33.373
2011-05-06T11:20:33.373
907
907
null
40,187
2
null
40,169
1
null
The views are only going to take up cpu/memory resources when they are called. Anyhow, best practice would be to consolidate what can be consolidated, remove what can be removed, and if it's literally only used by your reports, choose a consistent naming standard for the views so they can easily be grouped together wh...
null
CC BY-SA 2.5
null
2008-09-02T18:12:24.383
2008-09-02T18:12:24.383
null
null
3,743
null
40,195
2
null
40,193
1
null
How about `find ./ -type f` (which will find all files in the currently directory)? Take off the `-type f` to find everything.
null
CC BY-SA 3.0
null
2008-09-02T18:20:23.163
2014-10-28T17:51:13.263
2014-10-28T17:51:13.263
128,421
305
null
40,200
2
null
40,193
15
null
Try using: ``` find . -type f -maxdepth 1 ``` This will only list the files in the directory, leave out the `-type f` argument if you want to list files and directories.
null
CC BY-SA 3.0
null
2008-09-02T18:23:11.160
2014-10-28T17:50:51.363
2014-10-28T17:50:51.363
128,421
75
null
40,201
2
null
40,193
1
null
Things to try: Check ls isn't aliased? ``` alias ls ``` Perhaps try find instead? ``` find . \( -type d -name . -prune \) -o \( -type f -print \) ``` Hope this helps.
null
CC BY-SA 2.5
null
2008-09-02T18:23:16.103
2008-09-02T18:23:16.103
null
null
3,295
null
40,202
2
null
40,193
5
null
You can redirect output and run the ls process in the background. ``` ls > myls.txt & ``` This would allow you to go on about your business while its running. It wouldn't lock up your shell. Not sure about what options are for running ls and getting less data back. You could always run `man ls` to check.
null
CC BY-SA 3.0
null
2008-09-02T18:23:21.020
2014-10-28T17:50:24.497
2014-10-28T17:50:24.497
128,421
4,277
null
40,203
2
null
39,855
0
null
Try [PowerPoint ActiveX 2.4](http://www.freedownloadscenter.com/Programming/Delphi_Tools_and_Components/PowerPoint_ActiveX.html). This is an ActiveX component that embeds PowerPoint into an OCX. Since you are using just Internet Explorer 6 and Internet Explorer 7 you can embed this component into the HTML.
null
CC BY-SA 3.0
null
2008-09-02T18:24:16.040
2011-10-19T09:13:18.143
2011-10-19T09:13:18.143
63,550
1,965
null
40,204
2
null
40,193
3
null
I'm assuming you are using GNU ls? try ``` \ls ``` It will unalias the usual ls (ls --color=auto).
null
CC BY-SA 2.5
null
2008-09-02T18:24:46.413
2008-09-02T18:24:46.413
null
null
2,710
null
40,206
2
null
40,193
46
null
``` ls -U ``` will do the ls without sorting. Another source of slowness is `--color`. On some linux machines, there is a convenience alias which adds `--color=auto'` to the ls call, making it look up file attributes for each file found (slow), to color the display. This can be avoided by `ls -U --color=never` or `\ls...
null
CC BY-SA 4.0
null
2008-09-02T18:25:34.273
2022-02-24T10:42:07.113
2022-02-24T10:42:07.113
885,650
3,333
null
40,194
2
null
24,596
11
null
UPDATE: Tapestry 5.2 is out, so it's not abandoned, as it previously appeared to be. My experience is with Tapestry 4, not 5, so your mileage may vary. My opinion of Tapestry has changed over the years; I have modified this post to reflect it. I can no longer recommend Tapestry as I did previously. Tapestry 5 appears ...
null
CC BY-SA 2.5
null
2008-09-02T18:20:09.280
2010-08-31T21:25:38.243
2010-08-31T21:25:38.243
4,287
4,287
null
40,205
2
null
39,503
7
null
Once the OS is started the MBR is typically protected for virus reasons - this is one of the oldest virus tricks in the books - goes back to passing viruses from floppy to floppy. Even if it wasn't restricted, you have to write low level code - it isn't part of the file system, but exists on a specific location on the...
null
CC BY-SA 2.5
null
2008-09-02T18:25:28.517
2009-02-27T16:50:00.180
2009-02-27T16:50:00.180
5,640
2,915
null