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
22,039
2
null
22,015
1
null
Well.. I'd have liked a simple login-pwd combo (that I'd breeze thru with Passwordmaker.org). However being a developer, I can understand that they didnt want to reinvent the login wheel again... OpenID: I enter my blog url => Google sign in => I'm in. It's an extra level.. but it's OK.
null
CC BY-SA 2.5
null
2008-08-22T10:30:23.990
2008-08-22T10:30:23.990
null
null
1,695
null
22,033
2
null
20,081
1
null
Rather than having the input parameter as a cursor, I would have a table variable (don't know if Oracle has such a thing I'm a TSQL guy) or populate another temp table with the ID values and join on it in the view/function or wherever you need to. The only time for cursors in my honest opinion is when you to loop. An...
null
CC BY-SA 2.5
null
2008-08-22T10:25:06.327
2008-08-22T10:25:06.327
null
null
2,083,160
null
22,022
2
null
22,012
4
null
You can use the `<probing>` element in a manifest file to tell the Runtime to look in different directories for its assembly files. [http://msdn.microsoft.com/en-us/library/823z9h8w.aspx](http://msdn.microsoft.com/en-us/library/823z9h8w.aspx) e.g.: ``` <configuration> <runtime> <assemblyBinding xmlns="urn:schemas...
null
CC BY-SA 2.5
null
2008-08-22T10:13:02.533
2008-08-22T10:13:02.533
null
null
1,908
null
22,041
2
null
13,128
0
null
Maybe I'm misunderstanding, but don't you only have to ship the libraries if the end-user code calls them directly? If all the access to JPEG methods, etc. is from your code in your static library, then just link the libraries into your library. I.e., ``` --------------------- | End-user EXE file | --------------------...
null
CC BY-SA 4.0
null
2008-08-22T10:32:09.833
2022-06-27T21:29:44.237
2022-06-27T21:29:44.237
63,550
2,102
null
21,621
2
null
21,574
169
null
Sam Ruby has a [cool slideshow that outline the differences](http://slideshow.rubyforge.org/ruby19.html). In the interest of bringing this information inline for easier reference, and in case the link goes dead in the abstract future, here's an overview of Sam's slides. The slideshow is less overwhelming to review, bu...
null
CC BY-SA 3.0
null
2008-08-22T01:53:44.310
2013-11-21T20:52:27.537
2013-11-21T20:52:27.537
536,738
722
null
22,026
2
null
22,012
18
null
One nice approach I've used lately is to add an event handler for the AppDomain's AssemblyResolve event. ``` AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.AssemblyResolve += new ResolveEventHandler(MyResolveEventHandler); ``` Then in the event handler method you can load the assembly that was atte...
null
CC BY-SA 2.5
null
2008-08-22T10:15:01.203
2008-08-22T11:07:36.927
2008-08-22T11:07:36.927
1,120
1,120
null
22,044
2
null
22,011
3
null
I would strongly recommend getting a copy of Michael Feather's book [Working Effectively With Legacy Code](https://rads.stackoverflow.com/amzn/click/com/0131177052) (by "Legacy Code" Feathers means any system that isn't adequately covered by unit tests). It is full of good ideas which should help you with your refactor...
null
CC BY-SA 2.5
null
2008-08-22T10:34:57.677
2008-08-23T10:24:43.637
2008-08-23T10:24:43.637
2,084
2,084
null
22,042
2
null
3,088
0
null
For me, exploring and experimenting within the IDE itself helped me to learn Java and Visual Basic, but I learnt the basics of programming the hard way: Perl 5. There wasn't a free IDE back then, so it meant typing codes into Notepad, saving it, and then run the perl interpreter. I'd say that IDEs make learning the ba...
null
CC BY-SA 2.5
null
2008-08-22T10:32:23.047
2008-08-22T10:32:23.047
null
null
2,504,504
null
22,043
2
null
21,697
15
null
That sounds just right to me. Exceptions are preferable as they can be thrown up to the top of the service layer from anywhere inside the service layer, no matter how deeply nested inside the service method implementation it is. This keeps the service code clean as you know the calling presenter will always get notific...
null
CC BY-SA 2.5
null
2008-08-22T10:33:43.903
2008-08-24T13:00:18.417
2017-05-23T10:27:42.823
-1
1,820
null
22,045
2
null
3,088
11
null
The key thing is that the person in question needs to have some problem that they want solving. If you don't have a program that you want to write (and something sensible and well-defined, not "I want to write the next Quake!") then you can't learn to program, because you have nothing to motivate you. I mean, you coul...
null
CC BY-SA 2.5
null
2008-08-22T10:35:35.553
2008-08-22T10:35:35.553
null
null
2,131
null
22,050
2
null
22,015
7
null
Also, SSO (as you mentioned) usually implies that I only have to login once (presumably to my workstation) and then from there on, I don't need to sign-in anywhere. OpenID of course doesn't solve that problem. For example, if I use OpenID to sign in to StackOverflow, it doesn't mean I don't need to sign in to another ...
null
CC BY-SA 2.5
null
2008-08-22T10:42:45.003
2008-08-22T10:42:45.003
null
null
380
null
22,053
2
null
22,011
0
null
I seriously think introducing ORM into a legacy application is calling for trouble (and might be the same amount of trouble as a complete rewrite). Other than that, ORM is a great way to go, and should definitely by considered.
null
CC BY-SA 2.5
null
2008-08-22T10:45:40.677
2008-08-22T10:45:40.677
null
null
380
null
22,049
2
null
22,015
0
null
At least in the intranet scenario, I think Active Directory (or similar) is still one of the best options.
null
CC BY-SA 2.5
null
2008-08-22T10:41:00.623
2008-08-22T10:41:00.623
null
null
380
null
22,046
2
null
22,015
0
null
Actually, in the case of StackOverflow, a separate account would have saved me a lot of trouble. I decided to use my WordPress.com OpenID, since that's where I'm hosting my blog, but it turned out that WordPress.com have serious problems with their OpenID service, and most of the time I am not able to log on to StackOv...
null
CC BY-SA 2.5
null
2008-08-22T10:37:16.173
2008-08-22T10:37:16.173
null
null
1,709
null
22,047
2
null
22,015
4
null
It took me a while to understand OpenID (so many providers!) but I really like the concept. Tie it in with Gravatar and rewriting your profile is much more painless - perhaps one or two fields. The only issues are that you have to trust your OpenID provider - but that's not really what I'd call a problem, more like co...
null
CC BY-SA 2.5
null
2008-08-22T10:39:47.663
2008-08-22T10:39:47.663
null
null
2,025
null
22,058
2
null
9,729
3
null
Keith, I'm working on VS add-in for WPF applications localization. I want to be able to manage project specific settings via "project properties" page. I did some research and it seems that it is not possible to extend existing projects in this way.
null
CC BY-SA 2.5
null
2008-08-22T10:50:17.123
2008-08-22T10:50:17.123
null
null
1,196
null
22,048
2
null
21,956
0
null
Do you need two arrays of DataRows? the DataRow object has a RowState property which will give you what you require. See the MSDN Docs: [http://msdn.microsoft.com/](http://msdn.microsoft.com/en-us/library/system.data.datarow.rowstate.aspx)
null
CC BY-SA 3.0
null
2008-08-22T10:39:49.940
2013-01-23T05:11:33.193
2013-01-23T05:11:33.193
1,410,342
2,083,160
null
22,059
1
null
null
5
2,366
I was wondering how as semantic service like Open Calais figures out the names of companies, or people, tech concepts, keywords, etc. from a piece of text. Is it because they have a large database that they match the text against? How would a service like Zemanta know what images to suggest to a piece of text for ins...
How do content discovery engines, like Zemanta and Open Calais work?
CC BY-SA 3.0
0
2008-08-22T10:51:19.057
2013-08-07T16:43:09.190
2013-08-07T16:43:09.190
985,906
null
[ "python", "ruby", "semantics", "zemanta" ]
22,066
2
null
22,011
0
null
Unless your code is already architectured to allow for "hot swapping" of your model layer backend, changing it in any way will always be extremely risky. Trying to build a safety net of unit tests on poorly architected code isn't going to guarantee success, only make you feel safer about changing it. So, unless you...
null
CC BY-SA 3.0
null
2008-08-22T10:59:13.640
2012-08-11T16:11:08.667
2012-08-11T16:11:08.667
1,477,076
2,443
null
22,068
2
null
22,000
5
null
You could also adjust the line height of the td element: ``` td { line-height: 0 } ```
null
CC BY-SA 3.0
null
2008-08-22T11:03:36.017
2016-01-14T19:57:00.783
2016-01-14T19:57:00.783
2,678,454
383
null
22,067
1
938,672
null
7
28,042
Has anybody used the MS Project Gantt chart control in C#? If yes, can you share some resources regarding this?
MS Project Gantt chart control usage in C#
CC BY-SA 3.0
0
2008-08-22T11:00:27.067
2012-06-13T16:05:56.057
2012-06-13T16:05:56.057
851,273
2,437
[ "c#", ".net-2.0", "controls", "ms-project", "gantt-chart" ]
22,060
2
null
14,545
1
null
In my own wiki system my caching system is pretty simple - when the page is updated it checks links to make sure they are valid and applies the correct formatting/location for those that aren't. The cached page is saved as a HTML page in my cache root. Pages that are marked as 'not created' during the page update are ...
null
CC BY-SA 2.5
null
2008-08-22T10:52:03.063
2008-08-22T10:52:03.063
null
null
2,025
null
22,074
2
null
3,881
7
null
Couldn't agree more with what's being said. Fail early, fail fast. Pretty good Exception mantra. The question about which Exception to throw is mostly a matter of personal taste. In my mind IllegalArgumentException seems more specific than using a NPE since it's telling me that the problem was with an argument I p...
null
CC BY-SA 2.5
null
2008-08-22T11:11:35.980
2008-08-22T11:11:35.980
null
null
2,443
null
22,083
2
null
126
9
null
If you mean "most encapsulation" by "purist", then I typically declare all my fields as private and then use "this.field" from within the class itself. For other classes, including subclasses, I access instance state using the getters.
null
CC BY-SA 4.0
null
2008-08-22T11:15:45.690
2020-07-17T17:49:27.687
2020-07-17T17:49:27.687
10,325,630
2,443
null
22,089
2
null
22,084
1
null
I too am on my adventure into ASP.NET and have also had similar frustrations.. However, you soon get used to it. You just need to remember, . To some extent you can control/tweak these things, even if it means inheriting the control and tweaking the HTML output from there. I have had to do that in the past, where cer...
null
CC BY-SA 2.5
null
2008-08-22T11:22:55.330
2008-08-22T11:22:55.330
null
null
832
null
22,084
1
22,112
null
13
4,854
I'm getting into ASP.NET (C# - I know it doesn't matter for this particular question, but full disclosure and all that), and while I love that the `asp:`-style controls save me a lot of tedious HTML-crafting, I am often frustrated with certain behaviors. I encountered one last night when working with Master Pages: my `...
Controls versus standard HTML
CC BY-SA 3.0
0
2008-08-22T11:18:07.510
2012-09-11T00:14:15.887
2012-09-11T00:14:15.887
1,270,384
1,344
[ "c#", "asp.net", "controls" ]
22,052
2
null
21,879
1
null
Usually, an overview of each field is a good thing to have when looking at any topic, but it's rare to have a genuine dependence the way we'd think of it. Algebra is always needed. I can't think of a time I've needed any trigonometry. (except to expand it with new things from calculus) I'm even quite sure people wouldn...
null
CC BY-SA 2.5
null
2008-08-22T10:44:18.840
2008-08-22T10:44:18.840
null
null
1,421
null
22,057
2
null
22,015
5
null
I have to say that I absolutely agree with the statements on it being too difficult for the "average" Internet user. I think that OpenID could still be considered "new", even though the original proposal was back in 2005. More high traffic sites are taking it up as just an option for creating an account, rather than ...
null
CC BY-SA 2.5
null
2008-08-22T10:47:25.867
2008-08-22T10:47:25.867
null
null
1,662
null
22,094
2
null
22,015
0
null
> At least in the intranet scenario, I think Active Directory (or similar) is still one of the best options. Yep, in any case, Active Directory is behind the curtains of the OpenId Server Provider. In order to develop a SSO solution within an Intranet there are commercial options such as Access Manager (former IC...
null
CC BY-SA 2.5
null
2008-08-22T11:25:08.133
2008-08-22T11:25:08.133
null
null
2,249
null
22,093
2
null
21,448
2
null
Unless it's a business requirement, I suggest you move the connection string from the command line to the package and use a package configuration to define the path to the Excel file (in order not to hard-code it). This will make it easier to maintain. 1. Define a variable @ExcelPath. 2. Use connection's Expression p...
null
CC BY-SA 3.0
null
2008-08-22T11:24:42.500
2011-07-28T13:26:26.163
2011-07-28T13:26:26.163
null
95
null
22,096
2
null
22,084
2
null
As for the ID's on server-controls: You can find the actually ID that is going to be written to the browser by accessing ClientID. That way you can combine server-side og client-side scripting and still dont have to hardcode _id="ct100_nav"_ I always try to use the included controls instead of "hacking" HTML, because...
null
CC BY-SA 2.5
null
2008-08-22T11:25:18.413
2008-08-22T11:25:18.413
null
null
2,257
null
22,101
2
null
8,443
0
null
> Is the device running out of memory and therefore gives up the ghost when it requires the additional memory to stop at the breakpoint? No, there's over a gig of RAM to go, and even more of virtual memory.
null
CC BY-SA 2.5
null
2008-08-22T11:27:37.347
2008-08-22T11:27:37.347
null
null
257
null
22,073
2
null
21,753
1
null
Maybe consider not using BITS at all and use the old favourite . Robocopy is a standalone command-line executable which is part of [the Windows Server 2003 ResKit tools](http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd) and now standard on Vista/2008. Robocopy has the `/IPG:...
null
CC BY-SA 2.5
null
2008-08-22T11:11:08.743
2008-08-22T11:11:08.743
null
null
1,278
null
22,106
1
22,113
null
2
5,864
In Linux, what is the difference between `/dev/ttyS0` and `/dev/ttys0`? I know that the first is a serial port, but what about the second, with the small `s`?
Difference between `/dev/ttyS0` and `/dev/ttys0`?
CC BY-SA 3.0
null
2008-08-22T11:29:57.123
2013-04-18T17:01:32.573
2013-04-18T17:01:32.573
1,454,806
1,585
[ "linux", "serial-port" ]
22,105
2
null
21,749
0
null
I'm not sure I quite understand what you are getting at, but here's a few things I can suggest you can try... 1. This behaviour changes between different versions of Delphi. I'd suggest that this is due to the hoops they jumped through to support Windows Vista in Delphi 2007. 2. If you are using Delphi 2007, try remo...
null
CC BY-SA 2.5
null
2008-08-22T11:29:17.013
2008-08-22T11:29:17.013
null
null
1,389
null
22,099
2
null
21,651
0
null
JSON is Javascript Object Notation, so if you are using Javascript you are already there! Have a look at these links, they give examples of how to create Javascript objects from JSON: [http://www.hunlock.com/blogs/Mastering_JSON_(_JavaScript_Object_Notation_)](http://www.hunlock.com/blogs/Mastering_JSON_(_JavaScript_O...
null
CC BY-SA 2.5
null
2008-08-22T11:26:32.183
2008-08-22T11:26:32.183
null
null
986
null
22,108
2
null
22,067
1
null
Try these links for a start. [http://www.ilog.com/products/ganttnet/](http://www.ilog.com/products/ganttnet/) [http://www.netronic.com/products-for-developers/gantt-charts.html?gclid=COLdutasoZUCFQunQwodoWOPkw](http://www.netronic.com/products-for-developers/gantt-charts.html?gclid=COLdutasoZUCFQunQwodoWOPkw)
null
CC BY-SA 2.5
null
2008-08-22T11:32:51.920
2008-08-22T11:32:51.920
null
null
2,041
null
22,107
2
null
22,084
0
null
If the ID's prefix added by ASP.NET is an issue for you to access them later using JS or something... you have the .ClientID property server side. If the overhead added by ASP.NET you should consider ASP.NET MVC (still preview) where you have full control over the emitted html. I'm moving to MVC because I don't like ...
null
CC BY-SA 2.5
null
2008-08-22T11:30:28.477
2008-08-22T11:30:28.477
null
null
1,812
null
22,112
2
null
22,084
13
null
Personally, I think the standard ASP.NET controls are fine for inhouse stuff - quick and dirty is good in that scenario. But, I once worked with a web developer who was also a designer and he refused to use the ASP.NET controls and only code in HTML and add runat="server" tags when needed. This was more because he wa...
null
CC BY-SA 2.5
null
2008-08-22T11:34:27.003
2008-08-22T11:34:27.003
null
null
1,075
null
22,111
2
null
126
8
null
If I don't edit the property, I'll use a public method `get_property()` unless it's a special occasion such as a MySQLi object inside another object in which case I'll just make the property public and refer to it as `$obj->object_property`. Inside the object it's always $this->property for me.
null
CC BY-SA 4.0
null
2008-08-22T11:34:06.987
2020-07-17T19:49:32.333
2020-07-17T19:49:32.333
10,325,630
2,025
null
22,118
2
null
22,106
0
null
And this: [http://lists.opensuse.org/archive/opensuse/2003-12/msg02404.html](http://lists.opensuse.org/archive/opensuse/2003-12/msg02404.html)
null
CC BY-SA 2.5
null
2008-08-22T11:36:51.427
2008-08-22T11:36:51.427
null
null
419
null
22,109
2
null
22,084
2
null
@Brian, Yup! You can pretty much control all the behaviour.. Consider looking into creating Custom Controls (there are three types). I recently gave an overview of them in my question [here](https://stackoverflow.com/questions/17532/aspnet-custom-controls-composites). I would recommend checking them out, has help me ...
null
CC BY-SA 2.5
null
2008-08-22T11:33:30.360
2008-08-22T11:33:30.360
2017-05-23T12:01:24.217
-1
832
null
22,113
2
null
22,106
1
null
[see this](http://www.linuxselfhelp.com/HOWTO/Text-Terminal-HOWTO-6.html) > For a pseudo terminal pair such as ptyp3 and ttyp3, the pty... is the master or controlling terminal and the tty... is the slave. There are only 16 ttyp's: ttyp0-ttypf (f is a hexadecimal digit). . For example the pair ttys8, ptys8...
null
CC BY-SA 2.5
null
2008-08-22T11:35:06.423
2008-08-22T11:35:06.423
null
null
null
null
22,115
1
22,133
null
131
105,932
I am writing a Java utility that helps me to generate loads of data for performance testing. It would be cool to be able to specify a regex for Strings so that my generator spits out things that match this. Is something out there already baked that I can use to do this? Or is there a library that gets me most of the ...
Using Regex to generate Strings rather than match them
CC BY-SA 4.0
0
2008-08-22T11:35:41.990
2022-10-12T16:11:11.323
2022-10-12T16:11:11.323
1,594,823
2,455
[ "java", "regex" ]
22,126
2
null
21,547
4
null
Credit due to @Blorgbeard for sharing his script. I'll certainly bookmark it in case I need it. Yes, you can "right click" on the table and script the `CREATE TABLE` script, but: - - With this script converted into a stored procedure, and combined with a wrapper script you would have a nice automated way to dump y...
null
CC BY-SA 2.5
null
2008-08-22T11:45:12.407
2008-08-22T11:45:12.407
null
null
993
null
22,124
2
null
22,106
0
null
In the Linux devices.txt file in the kernel docs it says: ``` 3 char Pseudo-TTY slaves 0 = /dev/ttyp0 First PTY slave 1 = /dev/ttyp1 Second PTY slave ... 255 = /dev/ttyef 256th PTY slave These are the old-style (BSD) PTY devices; Unix98 devices are on major 136 and above. `...
null
CC BY-SA 2.5
null
2008-08-22T11:43:24.033
2008-08-22T11:43:24.033
null
null
2,257
null
22,087
2
null
19,487
10
null
I have a fairly natural way of coding. The key is to treat the page like a document or an article. If you think of it like this the following becomes logically clear: 1. The page title is a top level heading Whether you make the site title or actual page title the h1 is up to you - personally I'd make About Us the h1...
null
CC BY-SA 2.5
null
2008-08-22T11:21:22.697
2008-08-22T11:26:51.420
2008-08-22T11:26:51.420
2,025
2,025
null
22,134
2
null
16,991
2
null
I prefer TextMate on OS X. But Netbeans (multi-platform) is coming along quite nicely. Plus it comes with its IDE fully functional debugger.
null
CC BY-SA 2.5
null
2008-08-22T11:54:40.637
2008-08-22T11:54:40.637
null
null
null
null
22,078
2
null
19,487
5
null
Well, when I build a website I tend to try and forget about the design completely while writing the HTML. I do this so I won't end up with any design-specific markup and so I can focus on the semantic meaning of the elements. Some pointers how to markup things: - menu - use the UL (unordered list) element, since th...
null
CC BY-SA 3.0
null
2008-08-22T11:13:18.923
2016-01-14T19:13:40.240
2016-01-14T19:13:40.240
2,678,454
1,993
null
22,139
2
null
22,011
1
null
I work on a large ASP.net application where we recently started to use NHibernate. We moved a large number of domain objects that we had been persisting manually to Sql Server over to NHibernate instead. It simplified things quite a bit and made it much easier to change things over time. We're glad we made the changes ...
null
CC BY-SA 2.5
null
2008-08-22T11:57:41.613
2008-08-22T11:57:41.613
null
null
null
null
22,140
1
null
null
1
1,602
As part of our product release we ship Apache HTTP Server binaries that we have compiled on our (UNIX) development machine. We tell our clients to install the binaries (on their UNIX servers) under the same directory structure that we compiled it under. For some clients this is not appropriate, e.g. where there are re...
Can you compile Apache HTTP Server and redeploy its binaries to a different location?
CC BY-SA 2.5
null
2008-08-22T11:57:53.313
2021-08-16T08:42:44.180
2008-08-22T13:07:31.303
381
381
[ "apache", "unix", "httpserver" ]
22,156
1
22,174
null
1
669
I've been using user controls extensively but never use a HttpHandler and was wondering if I am doing something suboptimal or wrong
What is the difference between HttpHandler and a Web User Control and when to use each one?
CC BY-SA 2.5
null
2008-08-22T12:03:36.060
2013-01-24T10:07:23.303
null
null
2,385
[ "asp.net" ]
22,146
2
null
16,991
1
null
I'd recommend NetBeans 6.1 too. Very nice IDE and makes working with Ruby a pleasure.
null
CC BY-SA 2.5
null
2008-08-22T11:59:39.097
2008-08-22T11:59:39.097
null
null
null
null
22,157
2
null
22,149
0
null
Python stores Unicode as UTF-16. str() will return the UTF-8 representation of the UTF-16 string.
null
CC BY-SA 2.5
null
2008-08-22T12:03:47.807
2008-08-22T12:03:47.807
null
null
309,844
null
22,132
2
null
22,115
2
null
You'll have to write your own parser, like the author of String::Random (Perl) did. In fact, he doesn't use regexes anywhere in that module, it's just what perl-coders are used to. On the other hand, maybe you can have a look at [the source](http://search.cpan.org/%7Esteve/String-Random-0.20/Random.pm), to get some poi...
null
CC BY-SA 2.5
null
2008-08-22T11:53:25.693
2008-10-09T13:33:31.007
2020-06-20T09:12:55.060
-1
2,257
null
22,133
2
null
22,115
57
null
Complete list of suggested libraries on this question: 1. Xeger* - Java 2. Generex* - Java 3. Rgxgen - Java 4. rxrdg - C# * - Depends on `dk.brics.automaton` As mentioned in the comments, there is a library available at Google Code to achieve this: [https://code.google.com/archive/p/xeger/](https://code.google.com...
null
CC BY-SA 4.0
null
2008-08-22T11:54:06.270
2020-09-14T13:49:41.150
2020-09-14T13:49:41.150
4,174,003
1,820
null
22,165
1
22,220
null
5
1,953
I have a need to create a "transactional" process using an external API that does not support COM+ or .NET transactions (Sharepoint to be exact) What I need to do is to be able to perform a number of processes in a sequence, but any failure in that sequence means that I will have to manually undo all of the previous s...
Transactional Design Pattern
CC BY-SA 3.0
null
2008-08-22T12:08:40.650
2013-12-02T12:52:06.783
2013-12-02T12:52:06.783
2,432,317
983
[ "sharepoint", "design-patterns", "transactions" ]
22,145
1
22,170
null
20
40,928
I am working on a project where I produce an aluminium extrusion cutting list. The aluminium extrusions come in lengths of 5m. I have a list of smaller lengths that need to be cut from the 5m lengths of aluminium extrusions. The smaller lengths need to be cut in the order that produces the least amount of off cut wa...
Calculating a cutting list with the least amount of off cut waste
CC BY-SA 2.5
0
2008-08-22T11:58:56.943
2022-01-22T19:17:55.943
2009-01-19T13:12:54.933
1,142
1,142
[ "algorithm" ]
22,163
2
null
22,115
4
null
On stackoverflow podcast 11: > Spolsky: Yep. There's a new product also, if you don't want to use the Team System there our friends at Redgate have a product called SQL Data Generator [[http://www.red-gate.com/products/sql_data_generator/index.htm]](http://www.red-gate.com/products/sql_data_generator/index.htm]). I...
null
CC BY-SA 2.5
null
2008-08-22T12:07:55.767
2008-08-22T12:07:55.767
null
null
1,611
null
22,164
2
null
19,838
2
null
There's a good set of slides on Ruby Blocks as part of the "Rails with Passion" course: [Ruby_Blocks.pdf](http://www.javapassion.com/rubyonrails/ruby_blocks.pdf) This covers representing a block, how they get passed arguments and executed, and even further into things like Proc objects. It's very clearly explained. ...
null
CC BY-SA 2.5
null
2008-08-22T12:07:59.980
2008-08-22T12:07:59.980
null
null
2,455
null
22,169
2
null
22,156
6
null
Unfortunately your question is a little like "Should I use a sandwich or a cement mixer". HttpHandlers and User controls are completely different things. HttpHandlers are used to process HTTP requests. For example, if you wanted to dynamically create an RSS feed, you could write an HTTP handler that handles all requ...
null
CC BY-SA 2.5
null
2008-08-22T12:10:17.073
2008-08-22T12:10:17.073
null
null
475
null
22,171
2
null
22,156
0
null
Even an `Asp.Net` page is an `HttpHandler`. ``` public class Page : TemplateControl, IHttpHandler ``` A user control actually resides within the asp.net aspx page.
null
CC BY-SA 3.0
null
2008-08-22T12:11:18.117
2013-01-24T10:07:23.303
2013-01-24T10:07:23.303
1,410,342
380
null
22,149
1
522,827
null
34
14,023
I stumbled over this passage in the [Django tutorial](http://www.djangoproject.com/documentation/tutorial01/): > Django models have a default () method that calls () and converts the result to a UTF-8 bytestring. This means that unicode(p) will return a Unicode string, and str(p) will return a normal string, with char...
Unicode vs UTF-8 confusion in Python / Django?
CC BY-SA 2.5
0
2008-08-22T12:01:53.490
2009-10-21T10:11:53.450
null
null
2,077
[ "python", "django", "unicode" ]
22,167
2
null
22,145
1
null
That's an interesting problem because I suppose it depends on the quantity of each length you're producing. If they are all the same quantity and you can get Each different length onto one 5m extrusion then you have the optimum soloution. However if they don't all fit onto one extrusion then you have a greater problem...
null
CC BY-SA 2.5
null
2008-08-22T12:09:56.277
2008-08-22T12:09:56.277
null
null
2,025
null
22,170
2
null
22,145
16
null
This is a classic, difficult problem to solve efficiently. The algorithm you describe sounds like a [Greedy Algorithm](http://en.wikipedia.org/wiki/Greedy_algorithm). Take a look at this Wikipedia article for more information: [The Cutting Stock Problem](http://en.wikipedia.org/wiki/Cutting_stock_problem)
null
CC BY-SA 2.5
null
2008-08-22T12:10:17.823
2008-08-22T12:10:17.823
null
null
1,131
null
22,174
2
null
22,156
0
null
Expect a better answer (probably before I finish typing this) but as a quick summary. A user control is something that can be added to a page. A HttpHandler can be used instead of a page.
null
CC BY-SA 2.5
null
2008-08-22T12:11:39.333
2008-08-22T12:11:39.333
null
null
1,755
null
22,135
1
null
null
7
45,581
I am trying to implement NTLM authentication on one of our internal sites and everything is working. The one piece of the puzzle I do not have is how to take the information from NTLM and authenticate with Active Directory. There is a [good description of NTLM](http://www.innovation.ch/personal/ronald/ntlm.html) and t...
How do I use NTLM authentication with Active Directory
CC BY-SA 3.0
0
2008-08-22T11:55:45.610
2013-11-08T13:30:03.820
2012-01-11T19:00:08.157
850,882
309,844
[ "http", "authentication", "coldfusion", "active-directory", "ntlm" ]
22,176
2
null
22,165
3
null
The GoF Command Pattern supports undoable operations. I think the same pattern can be used for sequential operations (sequential commands).
null
CC BY-SA 2.5
null
2008-08-22T12:11:49.753
2008-08-22T12:11:49.753
null
null
572
null
22,173
2
null
20,791
2
null
I haven't found a way to do this yet, but I found [this site](http://www.herongyang.com/crypto/openssl_crt.html) helpful a few months back. O'Reilly also published a book called Network Security Hacks (available on Safari) that has a section starting at Hack #45 on creating your own certificate authority.
null
CC BY-SA 2.5
null
2008-08-22T12:11:27.273
2008-08-22T12:11:27.273
null
null
1,288
null
22,182
2
null
22,145
4
null
No specific ideas on this problem, I'm afraid - but you could look into a '[genetic algorithm](http://en.wikipedia.org/wiki/Genetic_algorithm)' (which would go like this)... Place the lengths to cut in a random order and give that order a score based on how good a match it is to your ideal solution (0% waste, presuma...
null
CC BY-SA 2.5
null
2008-08-22T12:17:52.093
2008-08-22T12:17:52.093
null
null
475
null
22,186
2
null
22,181
0
null
Why don't you use LinqToSql - everything you need is done automatically. For the sake of being general you can use any other [ORM tool](http://en.wikipedia.org/wiki/Object-relational_mapping) for .NET
null
CC BY-SA 2.5
null
2008-08-22T12:18:46.867
2008-08-22T12:18:46.867
null
null
1,801
null
22,192
2
null
20,389
0
null
In my scenario, I am not using the built-in "save" button. I have a data connection that I use to "post" the data to another list. Yes, that's what I mean by site-specific. I don't think you can use localhost 'cos then when a user saves the form, it'll try to post to the user's computer (i.e. localhost). I have tried ...
null
CC BY-SA 2.5
null
2008-08-22T12:25:08.130
2008-08-22T12:25:08.130
null
null
1,453
null
22,189
2
null
22,181
0
null
I would call `reader.GetOrdinal` for each field name before starting the while loop. Unfortunately `GetOrdinal` throws an `IndexOutOfRangeException` if the field doesn't exist, so it won't be very performant. You could probably store the results in a `Dictionary<string, int>` and use its `ContainsKey` method to determ...
null
CC BY-SA 3.0
null
2008-08-22T12:21:32.147
2013-05-18T01:47:15.077
2013-05-18T01:47:15.077
1,012,641
615
null
22,191
2
null
22,135
2
null
As I understand it. NTLM is one of IIS built in authentication methods. If the the Host is registered on the domain of said active directory, it should be automatic. One thing to watch out for is the username should be in one of two formats. - - If you are trying to go against a different active directory you sh...
null
CC BY-SA 2.5
null
2008-08-22T12:24:49.097
2008-08-22T12:24:49.097
null
null
1,293
null
22,168
2
null
22,149
-1
null
From [Wikipedia on UTF-8](http://en.wikipedia.org/wiki/UTF-8): > So, it's anywhere between one and four bytes depending on which character you wish to represent within the realm of Unicode. [From Wikipedia on Unicode:](http://en.wikipedia.org/wiki/Unicode) > So it's able to represent most (but not all) of the w...
null
CC BY-SA 2.5
null
2008-08-22T12:10:14.077
2008-08-22T12:10:14.077
null
null
1,993
null
22,193
2
null
2,742
1
null
From what i've tried (and are still up to do), a good addition to an erlang dev. environment would be a virtual machine running ubuntu/yaws/erlang. Perhaps [Erlyweb](http://feeds.feedburner.com/10xSoftwareDevelopment?format=xml) (erlang/yaws framework) would be nice checking out too. [Ciaran](http://blog.ciarang.com/p...
null
CC BY-SA 2.5
null
2008-08-22T12:25:51.793
2008-08-22T12:25:51.793
null
null
2,452
null
22,187
1
22,285
null
21
4,179
What libraries exist for other programming languages to provide an Erlang-style concurrency model (processes, mailboxes, pattern-matching receive, etc.)? Note: I am specifically interested in things that are intended to be similar to Erlang, not just any threading or queueing library.
Erlang-style Concurrency for Other Languages
CC BY-SA 2.5
0
2008-08-22T12:19:29.983
2022-08-21T18:28:24.950
2008-10-20T13:26:48.023
1,175
1,175
[ "multithreading", "concurrency", "erlang" ]
22,194
2
null
22,135
0
null
i assume that you are wanting get to some of the attributes that are set against the LDAP account - role - department etc. for coldfusion check this out [http://www.adobe.com/devnet/server_archive/articles/integrating_cf_apps_w_ms_active_directory.html](http://www.adobe.com/devnet/server_archive/articles/integrating_...
null
CC BY-SA 2.5
null
2008-08-22T12:25:52.840
2008-08-22T12:31:33.153
2008-08-22T12:31:33.153
null
null
null
22,177
2
null
22,156
1
null
Basically a user control is a piece of server logic and UI. An HTTP Handler is only a piece of logic that is executed when a resource on your server is requested. For example you may decide to handle requests for images sent to your server through your own handler and serve images from a database instead of the file sy...
null
CC BY-SA 2.5
null
2008-08-22T12:11:51.267
2008-08-22T12:11:51.267
null
null
1,801
null
22,195
2
null
22,181
6
null
Also check out this [extension method I wrote](http://www.madprops.org/blog/another-idbcommand-extension-fill/) for use on data commands: ``` public static void Fill<T>(this IDbCommand cmd, IList<T> list, Func<IDataReader, T> rowConverter) { using (var rdr = cmd.ExecuteReader()) { while (rdr.Read()...
null
CC BY-SA 2.5
null
2008-08-22T12:26:37.643
2008-08-22T12:26:37.643
null
null
615
null
22,199
2
null
22,181
1
null
Use the `GetSchemaTable()` method to retrieve the metadata of the `DataReader`. The `DataTable` that is returned can be used to check if a specific column is present or not.
null
CC BY-SA 3.0
null
2008-08-22T12:28:59.757
2013-05-18T01:47:56.110
2013-05-18T01:47:56.110
1,012,641
2,374
null
22,201
2
null
22,181
1
null
Why not just have each sproc return complete column set, using null, -1, or acceptable values where you don't have the data. Avoids having to catch IndexOutOfRangeException or re-writing everything in LinqToSql.
null
CC BY-SA 2.5
null
2008-08-22T12:30:26.603
2008-08-22T12:30:26.603
null
null
1,453
null
22,198
2
null
22,165
0
null
You might want to have a look at the Compensating Resource Manager: [http://msdn.microsoft.com/en-us/library/8xkdw05k(VS.80).aspx](http://msdn.microsoft.com/en-us/library/8xkdw05k(VS.80).aspx)
null
CC BY-SA 2.5
null
2008-08-22T12:27:38.763
2008-08-22T12:27:38.763
null
null
419
null
22,203
2
null
18,869
0
null
Have you tried putting in the ? It should be picked up by the if it's in one of those directories. For example: ``` /lib/ /usr/lib/ /usr/share/lib/ /usr/local/lib/ ```
null
CC BY-SA 2.5
null
2008-08-22T12:31:19.300
2008-08-22T12:31:19.300
null
null
1,630
null
22,202
2
null
22,084
0
null
I think most of the answers here take a designer's point of view. On a small-to-medium project it might seem like an overhead to synchronize code and CSS/HTML and make them standards-compliant and clean. A designer's way to do that is to have full control over rendered HTML. But there's many ways to have that full cont...
null
CC BY-SA 2.5
null
2008-08-22T12:31:18.863
2008-08-22T12:31:18.863
null
null
1,801
null
22,206
2
null
22,149
-2
null
> so what is a "Unicode string" in Python? Python 'knows' that your string is Unicode. Hence if you do regex on it, it will know which is character and which is not etc, which is really helpful. If you did a strlen it will also give the correct result. As an example if you did string count on Hello, you will get 5 (...
null
CC BY-SA 2.5
null
2008-08-22T12:32:04.383
2008-08-25T14:01:34.597
2008-08-25T14:01:34.597
370,899
370,899
null
22,210
2
null
22,140
1
null
I think the way to do(get around) this problem is to develop a "./configure && make" script that your client uses to install, specify and compile the binaries. That would offcourse require that the client has all the source-code installed on his server or you can make it available on an NFS share.
null
CC BY-SA 2.5
null
2008-08-22T12:34:20.480
2008-08-22T12:34:20.480
null
null
2,257
null
22,197
2
null
22,187
7
null
Microsoft [Concurrency and Coordination Runtime](http://msdn.microsoft.com/en-us/library/bb648752.aspx) for .NET. > The CCR is appropriate for an application model that separates components into pieces that can interact only through messages. Components in this model need means to coordinate between messages...
null
CC BY-SA 2.5
null
2008-08-22T12:27:27.907
2008-08-22T12:27:27.907
null
null
338
null
22,185
2
null
22,135
0
null
Hm, I'm not sure what you're trying to accomplish. Usually implementing NTLM on an internal site is as simple as unchecking "Enable Anonymous Access" in "Authentication and Access Control" in the "Directory Security" tab of website properties in IIS. If that is cleared, then your web application users will see a pop-u...
null
CC BY-SA 2.5
null
2008-08-22T12:18:25.463
2008-08-22T12:18:25.463
null
null
1,690
null
22,211
1
null
null
2
463
I am just starting to play with Django/Python and am trying to shift into the MTV mode of programming that Django asks for (insists on). Deciding on what functions should be methods of a model vs simple being a function in a view has so far been confusing. Does anyone know of a book, website, blog, slideshow, whateve...
Web framework programming mindset
CC BY-SA 2.5
0
2008-08-22T12:34:32.787
2008-10-16T20:36:41.527
2008-09-10T14:13:51.767
-1
2,468
[ "frameworks", "object" ]
22,213
2
null
10,300
0
null
There is [Castle.Components.Validator](http://209.85.135.104/search?q=cache:EzaP2dgUM9cJ:hammett.castleproject.org/%3Fp%3D114+Castle.Components.Validator&hl=ru&ct=clnk&cd=2&gl=ru&client=firefox-a) module in Castle project. It's very agile and powerfull. It generates validation rules based on model attributes (or any ot...
null
CC BY-SA 2.5
null
2008-08-22T12:36:40.987
2008-08-22T12:36:40.987
null
null
2,313
null
22,209
2
null
4,269
6
null
I've used clickatell in the past and found them very good also. However, You could build your own to get messages VERY cheap. All you need is: a contract which gives loads of (or unlimited) messages; windows mobile phone; and a bit of socket programming. Write a web service (pass the number and the message) which mak...
null
CC BY-SA 2.5
null
2008-08-22T12:33:12.057
2008-08-22T12:33:12.057
null
null
1,755
null
22,181
1
26,103
null
3
7,391
I have a very simple mapping function called "BuildEntity" that does the usual boring "left/right" coding required to dump my reader data into my domain object. (shown below) My question is this - If I don't bring back every column in this mapping as is, I get the "System.IndexOutOfRangeException" exception and wanted ...
ADO.NET Mapping From SQLDataReader to Domain Object?
CC BY-SA 2.5
0
2008-08-22T12:14:37.563
2013-12-09T16:56:58.620
null
null
null
[ "ado.net" ]
22,220
2
null
22,165
3
null
If your changes are done to the SharePoint object model, you can use the fact that changes are not committed until you call the `Update()` method of the modified object, such as `SPList.Update()` or `SPWeb.Update()`. Otherwise, I would use the Design Pattern. Chapter 6 in [Head First Design Patterns](https://rads.sta...
null
CC BY-SA 2.5
null
2008-08-22T12:40:18.250
2008-08-22T12:40:18.250
null
null
1,287
null
22,208
2
null
22,149
9
null
Meanwhile, I did a refined research to verify what the internal representation in Python is, and also what its limits are. "[The Truth About Unicode In Python](http://www.cmlenz.net/archives/2008/07/the-truth-about-unicode-in-python)" is a very good article which cites directly from the Python developers. Apparently, i...
null
CC BY-SA 2.5
null
2008-08-22T12:32:59.170
2009-02-09T13:50:39.157
2009-02-09T13:50:39.157
437
2,077
null
22,219
2
null
21,934
17
null
Darren Thomas gives a good answer. However, one big difference between the Java and Python approaches is that with reference counting in the common case (no circular references) objects are cleaned up immediately rather than at some indeterminate later date. For example, I can write sloppy, non-portable code in CPyth...
null
CC BY-SA 2.5
null
2008-08-22T12:40:03.460
2008-08-22T12:40:03.460
null
null
1,694
null
22,226
2
null
22,187
7
null
Scala supports actors. But I would not call scala intentionally similar to Erlang. Nonetheless scala is absolutely worth taking a look!
null
CC BY-SA 2.5
null
2008-08-22T12:45:04.523
2008-08-22T12:45:04.523
null
null
1,870
null
22,217
2
null
4,269
3
null
I have been doing that with a nokia phone, connected to a linux machine. I have a cron job and a script that would check a database table for new messages and use [gnokii](http://www.gnokii.org/) to send messages. It works great if the number of sms you are goig to send isn't to big.
null
CC BY-SA 2.5
null
2008-08-22T12:38:57.940
2008-08-22T12:38:57.940
null
null
1,534
null
22,233
2
null
22,211
0
null
If you aren't absolutely set on diving into Django and don't mind trying something else as a start, you might want to give [WSGI](http://www.python.org/dev/peps/pep-0333/) a shot, which allows you to template your application your own way using a [third party engine](http://pypi.python.org/pypi/Tenjin/0.6.2), rather th...
null
CC BY-SA 2.5
null
2008-08-22T12:47:09.513
2008-08-22T12:47:09.513
null
null
1,662
null
22,234
2
null
21,938
8
null
There's been a lot of philosophical discussions (more like arguments) about this issue. Personally, I believe the worst thing you can do is swallow exceptions. The next worst is allowing an exception to bubble up to the surface where the user gets a nasty screen full of technical mumbo-jumbo.
null
CC BY-SA 2.5
null
2008-08-22T12:47:44.627
2008-08-22T12:47:44.627
null
null
1,453
null