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 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12,568 | 2 | null | 12,509 | 1 | null | Vincent, I'm not suggesting that anyone rewrite existing RSS feeds just for the sake of it, that would be a big waste of time! In terms of RSS being the acronym that defines the category, I'm guessing that most users now identify with the orange feed icon, rather than the specific flavour of XML behind it.
| null | CC BY-SA 2.5 | null | 2008-08-15T18:13:11.777 | 2008-08-15T18:13:11.777 | null | null | 1,450 | null |
12,569 | 1 | 12,571 | null | 6 | 1,196 | Let's say we have a simple function defined in a pseudo language.
```
List<Numbers> SortNumbers(List<Numbers> unsorted, bool ascending);
```
We pass in an unsorted list of numbers and a boolean specifying ascending or descending sort order. In return, we get a sorted list of numbers.
In my experience, some people a... | Rigor in capturing test cases for unit testing | CC BY-SA 2.5 | 0 | 2008-08-15T18:14:28.327 | 2008-09-26T01:42:25.813 | 2008-08-23T20:02:59.393 | 1,190 | 12,081 | [
"unit-testing",
"testing",
"sorting"
] |
12,576 | 1 | 12,584 | null | 16 | 2,179 | What can I do to increase the performance/speed of my PHP scripts without installing software on my servers?
| PHP performance | CC BY-SA 2.5 | 0 | 2008-08-15T18:25:25.763 | 2017-12-27T11:39:06.513 | null | null | 115 | [
"php",
"performance"
] |
12,579 | 2 | null | 12,576 | 3 | null | There is no magic solution, and attempting to provide generic solutions could well just be a waste of time.
Where are your bottlenecks? For example are your scripts processor/database/memory intensive?
Have you performed any profiling?
| null | CC BY-SA 2.5 | null | 2008-08-15T18:28:47.317 | 2008-08-15T18:28:47.317 | null | null | 1,043 | null |
12,575 | 2 | null | 12,565 | 10 | null | Broadly speaking, you're correct. As well as hashes, the general style is that curly braces `{}` are often used for blocks that can fit all onto one line, instead of using `do`/`end` across several lines.
Square brackets `[]` are used as class methods in lots of Ruby classes, including String, BigNum, Dir and confusin... | null | CC BY-SA 3.0 | null | 2008-08-15T18:24:06.933 | 2014-12-04T05:42:31.873 | 2014-12-04T05:42:31.873 | 128,421 | 1,450 | null |
12,571 | 2 | null | 12,569 | 10 | null | Don't waste too much time trying to think of boundry condition. Your tests won't be able to catch bug first time around. The idea is to have tests that are , and then each time a bug surface, write a new test specifically for that bug so that you never hear from it again.
Another note I want to make about code co... | null | CC BY-SA 2.5 | null | 2008-08-15T18:17:17.387 | 2008-08-16T09:34:43.820 | 2008-08-16T09:34:43.820 | 92 | 92 | null |
12,573 | 2 | null | 12,569 | 0 | null | A good code coverage tool really helps.
100% coverage doesn't mean that it definitely is adequately tested, but it's a good indicator.
For .Net NCover's quite good, but is no longer open source.
---
@Mike Stone -
Yeah, perhaps that should have been "high coverage" - we aim for 80% minimum, past about 95% it's u... | null | CC BY-SA 2.5 | null | 2008-08-15T18:18:57.430 | 2008-08-15T18:38:17.703 | 2008-08-15T18:38:17.703 | 905 | 905 | null |
12,580 | 2 | null | 12,576 | 0 | null | Whenever I look at performance problems, I think the best thing to do is time how long your pages take to run, and then look at the slowest ones. When you get these real metrics, you can often improve performance on the slowest ones by orders of magnitude, either by fixing a slow SQL query or perhaps tightening up the... | null | CC BY-SA 2.5 | null | 2008-08-15T18:29:48.483 | 2008-08-15T18:29:48.483 | null | null | 122 | null |
12,578 | 1 | 47,130 | null | 5 | 3,067 | When I process a cube in Visual Studio 2005 I get following message:
> Process succeeded. Trace information
is still being transferred. If you do
not want to wait for all of the
information to arrive press Stop.
and no trace info is displayed. Cube is processed OK by it is a little bit annoying. Any ideas? I ac... | No trace info during processing of a cube in SSAS | CC BY-SA 2.5 | 0 | 2008-08-15T18:28:45.350 | 2011-03-02T15:17:46.167 | 2009-03-22T18:40:58.987 | 14,444 | 501 | [
"sql-server",
"visual-studio-2005",
"ssas",
"trace",
"olap"
] |
12,585 | 2 | null | 4,430 | 21 | null | I've had great success with [wsdl2php](https://github.com/jbarciauskas/wsdl2php). It will automatically create wrapper classes for all objects and methods used in your web service.
| null | CC BY-SA 3.0 | null | 2008-08-15T18:36:14.227 | 2014-10-23T19:04:18.513 | 2014-10-23T19:04:18.513 | 72 | 72 | null |
12,583 | 2 | null | 12,569 | 0 | null | @Keith
I think you nailed it, code coverage is important to look at if you want to see how "done" you are, but I think 100% is a bit unrealistic a goal. Striving for 75-90% will give you pretty good coverage without going overboard... don't test for the pure sake of hitting 100%, because at that point you are just wa... | null | CC BY-SA 2.5 | null | 2008-08-15T18:33:05.527 | 2008-08-15T18:33:05.527 | null | null | 122 | null |
12,554 | 2 | null | 11,806 | 7 | null | Here is a class that I use to impersonate a user.
```
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace orr.Tools
{
#... | null | CC BY-SA 2.5 | null | 2008-08-15T17:58:18.483 | 2008-08-15T17:58:18.483 | null | null | 519 | null |
12,593 | 1 | 12,596 | null | 11 | 3,480 | I'm developing a C# application that uses a handful of XML files and some classes in System.Xml. A coworker insists on adding the MSXML6 redistributable to our install, along with the .NET framework but I don't think the .NET framework uses or needs MSXML in anyway. I am well aware that using MSXML from .NET is not s... | Does System.Xml use MSXML? | CC BY-SA 2.5 | 0 | 2008-08-15T18:45:07.003 | 2022-03-23T09:30:33.197 | null | null | 1,254 | [
".net",
"xml",
"msxml"
] |
12,589 | 2 | null | 6,812 | 0 | null | There's a few different ways to do so, the easiest generally being [keytouch](http://keytouch.sourceforge.net/), which is probably available in the Debian repositories. The user manual is [here](http://keytouch.sourceforge.net/user_manual/user_manual.html). There is a chance that your keyboard won't work with it though... | null | CC BY-SA 2.5 | null | 2008-08-15T18:37:48.640 | 2008-08-15T18:37:48.640 | null | null | 242,853 | null |
12,596 | 2 | null | 12,593 | 14 | null | System.Xml doesn't use MSXML6. They are seperate xml processing engines. See post here: [MSXML 6.0 vs. System.Xml: Schema handling differences](https://web.archive.org/web/20120203153429/http://blogs.msdn.com/b/stan_kitsis/archive/2005/09/20/472185.aspx)
| null | CC BY-SA 4.0 | null | 2008-08-15T18:47:01.617 | 2022-03-23T09:30:33.197 | 2022-03-23T09:30:33.197 | 139,560 | 1,238 | null |
12,586 | 2 | null | 12,509 | 111 | null | The fundamental thing that the Atom creators didn't understand (and that the Atom supporters still don't understand), is that Atom isn't somehow separate from RSS. There's this idea that RSS fractured, and that somehow Atom fixes that problem. But it doesn't. Atom is just another RSS splinter. A new name doesn't ch... | null | CC BY-SA 2.5 | null | 2008-08-15T18:36:55.007 | 2008-08-15T18:36:55.007 | null | null | 872 | null |
12,584 | 2 | null | 12,576 | 20 | null | Profile. Profile. Profile. I'm not sure if there is anything out there for PHP, but it should be simple to write a little tool to insert profiling information in your code. You will want to profile function times and SQL query times.
So where you have a function:
```
function foo($stuff) {
...
return ...;
}
`... | null | CC BY-SA 2.5 | null | 2008-08-15T18:34:49.957 | 2008-08-15T22:39:42.927 | 2008-08-15T22:39:42.927 | 338 | 338 | null |
12,597 | 2 | null | 12,593 | -1 | null | I think it's needed for some MsSql-XML functionality, but System.Xml is in the core framework.
You should test your installer on a fresh machine anyway, just to be sure.
| null | CC BY-SA 2.5 | null | 2008-08-15T18:51:10.797 | 2008-08-15T18:51:10.797 | null | null | 905 | null |
12,594 | 1 | 12,599 | null | 1 | 1,661 | Let's say I have a drive such as , and I want to find out if it's shared and what it's share name (e.g. ) is.
To find out if it's shared, I can use [NetShareCheck](https://learn.microsoft.com/en-us/windows/desktop/api/Lmshare/nf-lmshare-netsharecheck).
How do I then map the drive to its share name? I thought that [Ne... | Windows/C++: How do I determine the share name associated with a shared drive? | CC BY-SA 4.0 | null | 2008-08-15T18:45:36.190 | 2020-05-29T13:11:00.800 | 2020-05-29T13:07:25.990 | 3,074,564 | 179 | [
"c++",
"windows",
"networking",
"share"
] |
12,592 | 1 | 12,609 | null | 84 | 17,858 | Is it possible to write a `doctest` unit test that will check that an exception is raised?
For example, if I have a function `foo(x)` that is supposed to raise an exception if `x < 0`, how would I write the `doctest` for that?
| Can you check that an exception is thrown with doctest in Python? | CC BY-SA 4.0 | 0 | 2008-08-15T18:43:17.177 | 2021-12-16T08:59:08.467 | 2021-12-16T08:59:08.467 | 8,708,364 | 742 | [
"python",
"doctest"
] |
12,603 | 1 | 12,606 | null | 2 | 996 | If you create an ASP.NET web file project you have direct access to the Profile information in the web.config file. If you convert that to a Web App and have been using ProfileCommon etc. then you have to jump through a whole bunch of hoops to get your web app to work.
Why wasn't the Profile provider built into the AS... | Why was the Profile provider not built into Web Apps? | CC BY-SA 2.5 | null | 2008-08-15T18:58:54.430 | 2009-03-11T04:17:21.247 | null | null | 1,463 | [
"asp.net"
] |
12,602 | 2 | null | 12,593 | 0 | null | There is no need for this sort of stuff to be the subject of tedious workplace debates, because the source code for the framework is available, and with a minuscule amount of work you can download the whole lot onto your machine. [http://www.codeplex.com/NetMassDownloader](http://www.codeplex.com/NetMassDownloader)
W... | null | CC BY-SA 2.5 | null | 2008-08-15T18:57:43.467 | 2008-08-15T18:57:43.467 | null | null | 987 | null |
12,599 | 2 | null | 12,594 | 3 | null | If all else fails, you could always use [NetShareEnum](https://learn.microsoft.com/en-us/windows/win32/api/lmshare/nf-lmshare-netshareenum) and call [NetShareGetInfo](https://learn.microsoft.com/windows/desktop/api/lmshare/nf-lmshare-netsharegetinfo) on each.
| null | CC BY-SA 4.0 | null | 2008-08-15T18:55:15.297 | 2020-05-29T13:05:20.413 | 2020-05-29T13:05:20.413 | 3,074,564 | 414 | null |
12,610 | 2 | null | 8,472 | 1 | null | I think they are working on throttling. It would make more sense just to disable CAPTCHA for users with 500+ rep and reset the rep for attackers.
| null | CC BY-SA 2.5 | null | 2008-08-15T19:09:46.360 | 2008-08-15T19:09:46.360 | null | null | 795 | null |
12,608 | 2 | null | 12,565 | 2 | null | a few examples:
```
[1, 2, 3].class
# => Array
[1, 2, 3][1]
# => 2
{ 1 => 2, 3 => 4 }.class
# => Hash
{ 1 => 2, 3 => 4 }[3]
# => 4
{ 1 + 2 }.class
# SyntaxError: compile error, odd number list for Hash
lambda { 1 + 2 }.class
# => Proc
lambda { 1 + 2 }.call
# => 3
```
| null | CC BY-SA 2.5 | null | 2008-08-15T19:03:12.893 | 2008-08-15T19:03:12.893 | null | null | 1,190 | null |
12,606 | 2 | null | 12,603 | 3 | null | The profile provider uses the ASP.NET Build Provider system, which doesn't work with Web Application Projects.
> Adding a customized BuildProvider
class to the Web.config file works in
an ASP.NET Web site but does not work
in an ASP.NET Web application project.
In a Web application project, the code
that is ... | null | CC BY-SA 2.5 | null | 2008-08-15T19:02:40.430 | 2008-08-15T19:02:40.430 | null | null | 5 | null |
12,591 | 1 | null | null | 10 | 2,406 | Is there a way, when I parse an XML document using lxml, to validate that document against its DTD using an external catalog file? I need to be able to work the fixed attributes defined in a document’s DTD.
| Using an XML catalog with Python's lxml? | CC BY-SA 2.5 | 0 | 2008-08-15T18:42:20.503 | 2021-01-08T09:47:01.883 | null | null | 207 | [
"python",
"xml",
"lxml"
] |
12,611 | 1 | null | null | 15 | 25,805 | I have to create something similiar to Google Calendar, so I created an events table that contains all the events for a user.
The hard part is handling re-occurring events, the row in the events table has an event_type field that tells you what kind of event it is, since an event can be for a single date only, OR a re... | Designing a Calendar system like Google Calendar | CC BY-SA 2.5 | 0 | 2008-08-15T19:10:15.827 | 2009-09-30T19:30:30.597 | 2008-08-16T04:48:01.370 | 1 | 1,368 | [
"algorithm",
"calendar"
] |
12,612 | 1 | 12,707 | null | 2 | 808 | we're developing a web app to cover all aspects of a printing company from finances, to payroll, to job costing. Its important to be able to control who can access what parts of these applications. Don't want a line employee giving himself a raise, etc...
I've heard of the concept of ACL & ACO, but haven't found a g... | Access Control Lists & Access Control Objects, good tutorial? | CC BY-SA 2.5 | 0 | 2008-08-15T19:11:31.800 | 2008-10-11T00:14:35.520 | 2008-10-11T00:14:35.507 | 1,470 | 1,470 | [
"permissions",
"acl"
] |
12,613 | 1 | 12,538,719 | null | 19 | 3,907 | I've been using Emacs's sql interactive mode to talk to the MySQL db server and gotten to enjoy it. A developer has set up another db on a new non-default port number but I don't know how to access it using sql-mysql.
How do I specify a port number when I'm trying to connect to a database?
It would be even better if ... | Specify a Port Number in Emacs sql-mysql | CC BY-SA 2.5 | 0 | 2008-08-15T19:12:24.217 | 2012-09-21T21:58:36.923 | 2008-08-15T22:23:31.007 | 680 | 680 | [
"sql",
"mysql",
"emacs"
] |
12,609 | 2 | null | 12,592 | 110 | null | Yes. You can do it. The [doctest module documentation](https://docs.python.org/3/library/doctest.html) and Wikipedia has an [example](http://en.wikipedia.org/wiki/Doctest#Example_2:_doctests_embedded_in_a_README.txt_file) of it.
```
>>> x
Traceback (most recent call last):
...
NameError: name 'x' is not def... | null | CC BY-SA 3.0 | null | 2008-08-15T19:04:13.093 | 2014-06-11T23:55:51.357 | 2014-06-11T23:55:51.357 | 1,752,050 | 1,448 | null |
12,615 | 2 | null | 12,611 | 3 | null | I would say start with the ical standard. If you use it as your model, then you'll be able to do everything that google calendar, outlook, mac ical (the program), and get virtually instant integration with them.
From there, time to bone up on your ajax and javascript cuz you can't have a flashy web ui with drag drop ... | null | CC BY-SA 2.5 | null | 2008-08-15T19:14:02.950 | 2008-08-15T19:14:02.950 | null | null | 1,220 | null |
12,616 | 2 | null | 12,611 | 0 | null | I think I understand your second paragraph to mean you are considering a second events table that has a row for each occurrence of an event. I would avoid that.
Re-occurring events should have a start date and a stop date (which could be Null for events that continue every X days "forever") You'll have to decide what ... | null | CC BY-SA 2.5 | null | 2008-08-15T19:17:51.803 | 2008-08-15T19:17:51.803 | null | null | 763 | null |
12,623 | 2 | null | 12,304 | 0 | null | You have a check datasbase integrity task and you double-clicked it choose MyDb and when the plan runs it only checks master?? weird. Are you sure you don't another plan running?
| null | CC BY-SA 2.5 | null | 2008-08-15T19:22:39.093 | 2008-08-15T19:22:39.093 | null | null | 1,433 | null |
12,628 | 2 | null | 12,613 | 8 | null | ```
(setq sql-mysql-options (list "-P <port number>"))
```
| null | CC BY-SA 3.0 | null | 2008-08-15T19:27:09.133 | 2012-08-11T15:45:53.040 | 2012-08-11T15:45:53.040 | 1,477,076 | 676 | null |
12,621 | 2 | null | 12,611 | 2 | null | You should have a start date, end date, and expiration date. Single day events would have the same start date and end date, and allows you to do partial day events as well. As for re-occuring events, then the start and end date would be for the same day, but have different times, then you have an enumeration or table t... | null | CC BY-SA 2.5 | null | 2008-08-15T19:20:32.610 | 2008-08-15T19:20:32.610 | null | null | 77 | null |
12,622 | 2 | null | 12,611 | 1 | null | I have to agree with @ChanChan on reading the ical spec for how to store these things. There is no easy way to handle recurrences, especially ones that have exceptions. I've built and rebuilt and rebuilt a database to handle this, and I keep coming back to ical.
It's not a bad idea to create a subordinate table, dep... | null | CC BY-SA 2.5 | null | 2008-08-15T19:22:35.397 | 2008-08-15T19:22:35.397 | null | null | 1,190 | null |
12,618 | 2 | null | 12,611 | 1 | null | From past experience I would create a new record for each occurring event and then have a column which references the previous event so you can track all events in a series.
This has two advantages:
1. No complicated routines to work out the next event date
2. Individual occurrences can be edited without effecting t... | null | CC BY-SA 2.5 | null | 2008-08-15T19:19:04.890 | 2008-08-15T19:19:04.890 | null | null | 383 | null |
12,630 | 2 | null | 12,516 | 0 | null | should use a functional language imo. Trees are harder to represent and manipulate in OO languages.
| null | CC BY-SA 2.5 | null | 2008-08-15T19:28:32.513 | 2008-08-24T21:35:36.010 | 2008-08-24T21:35:36.010 | 580 | 580 | null |
12,627 | 2 | null | 12,611 | 1 | null | @GateKiller
I hadn't thought of the case where you edit individual occurrences. It makes sense you would store the occurrences separately in that case.
When you do that, though, how far in the future do you store events? Do you pick an arbitrary date? Do you auto-generate the new occurrences the first time a user bro... | null | CC BY-SA 2.5 | null | 2008-08-15T19:25:04.720 | 2008-08-15T19:25:04.720 | null | null | 763 | null |
12,629 | 2 | null | 12,611 | 2 | null | Darren,
That is how I have designed my events table actually, but when thinking about it, say I have 100K users who have create events, this table will be hit pretty hard, especially if I am going to be sending out emails to remind people of their events (events can be for specific times of the day also!), so I could ... | null | CC BY-SA 2.5 | null | 2008-08-15T19:27:27.290 | 2008-08-15T19:31:54.240 | 2008-08-15T19:31:54.240 | 1,368 | 1,368 | null |
12,633 | 1 | 12,677 | null | 92 | 148,191 | I'm trying to parse an INI file using C++. Any tips on what is the best way to achieve this? Should I use the Windows API tools for INI file processing (with which I am totally unfamiliar), an open-source solution or attempt to parse it manually?
| What is the easiest way to parse an INI File in C++? | CC BY-SA 2.5 | 0 | 2008-08-15T19:31:01.747 | 2021-04-08T21:49:23.793 | null | null | 1,467 | [
"c++",
"winapi",
"ini",
"fileparse"
] |
12,619 | 2 | null | 12,612 | 1 | null | I've had to implement that type of security a couple of times. Unfortunately I don't know of any really good articles that provide examples. My implementations were mainly piecing together the parts through trial and error.
However, I did come across this link on MSDN:
[http://msdn.microsoft.com/en-us/library/52kd5... | null | CC BY-SA 2.5 | null | 2008-08-15T19:19:07.667 | 2008-08-15T19:27:47.010 | 2008-08-15T19:27:47.010 | 733 | 733 | null |
12,637 | 2 | null | 12,385 | 0 | null | Have you tried a two way data binding between the two dependency properties?
| null | CC BY-SA 2.5 | null | 2008-08-15T19:34:06.653 | 2008-08-15T19:34:06.653 | null | null | 580 | null |
12,639 | 2 | null | 12,374 | 0 | null | Oh, boy. sprocs don't lend themselves to (automated) unit testing. I sort-of "unit test" my complex sprocs by writing tests in t-sql batch files and hand checking the output of the print statements and the results.
| null | CC BY-SA 2.5 | null | 2008-08-15T19:35:27.680 | 2008-08-15T19:35:27.680 | null | null | 1,433 | null |
12,634 | 2 | null | 12,594 | 0 | null | Use;
```
SHGetFileInfo with SHGFI_ATTRIBUTES
```
upon return check the dwAttributes flag for SFGAO_SHARE.
I'm not sure how to find the actual path tho.
| null | CC BY-SA 2.5 | null | 2008-08-15T19:31:37.640 | 2008-08-15T19:31:37.640 | null | null | 1,043 | null |
12,644 | 2 | null | 12,638 | 0 | null | How many users of the app will there be? Is there possibility of using windows integrated authentication for SQL authentication?
: If you can give each user a SQL login (windows integrated) then you can pickup the logged on user using the SYSTEM_USER function.
| null | CC BY-SA 2.5 | null | 2008-08-15T19:40:43.787 | 2008-08-16T01:13:39.307 | 2008-08-16T01:13:39.307 | 419 | 419 | null |
12,636 | 2 | null | 12,633 | 23 | null | I have never parsed ini files, so I can't be too specific on this issue.
But i have one advice:
[http://en.wikipedia.org/wiki/INI_file#Accessing_INI_files](http://en.wikipedia.org/wiki/INI_file#Accessing_INI_files)
[http://sdl-cfg.sourceforge.net/](http://sdl-cfg.sourceforge.net/)
[http://sourceforge.net/projects/lib... | null | CC BY-SA 2.5 | null | 2008-08-15T19:33:31.397 | 2008-08-15T19:40:48.730 | 2008-08-15T19:40:48.730 | 960 | 960 | null |
12,650 | 2 | null | 12,638 | 2 | null | Does this work for you?
```
select user_name(),suser_sname()
```
---
Doh! I forgot to escape my code.
| null | CC BY-SA 2.5 | null | 2008-08-15T19:44:23.013 | 2008-08-15T19:49:03.503 | 2008-08-15T19:49:03.503 | 733 | 733 | null |
12,647 | 1 | 28,589 | null | 97 | 156,811 | Is there a simple way in Perl that will allow me to determine if a given variable is numeric? Something along the lines of:
```
if (is_number($x))
{ ... }
```
would be ideal. A technique that won't throw warnings when the `-w` switch is being used is certainly preferred.
| How do I tell if a variable has a numeric value in Perl? | CC BY-SA 2.5 | 0 | 2008-08-15T19:43:15.293 | 2022-06-02T17:58:43.767 | 2009-10-21T10:30:31.570 | 2,766,176 | 872 | [
"perl",
"numbers"
] |
12,649 | 2 | null | 12,642 | 0 | null | Matt Berseth had some thoughts in this, might help:
[http://mattberseth.com/blog/2008/07/aspnet_file_upload_with_realti_1.html](http://mattberseth.com/blog/2008/07/aspnet_file_upload_with_realti_1.html)
- Apologies mate, I coulda sworn Matt's article was about Silverlight, but it's quite clearly not. Blame it on tho... | null | CC BY-SA 2.5 | null | 2008-08-15T19:44:06.680 | 2008-08-15T20:07:54.730 | 2008-08-15T20:07:54.730 | 419 | 419 | null |
12,654 | 2 | null | 12,647 | 4 | null | Not perfect, but you can use a regex:
```
sub isnumber
{
shift =~ /^-?\d+\.?\d*$/;
}
```
| null | CC BY-SA 2.5 | null | 2008-08-15T19:49:44.563 | 2008-08-15T19:49:44.563 | null | null | 1,317 | null |
12,653 | 2 | null | 12,638 | 0 | null | It should be
```
select user name(),suser sname()
```
replace spaces with underscores
| null | CC BY-SA 2.5 | null | 2008-08-15T19:49:23.300 | 2008-08-15T19:49:23.300 | null | null | 740 | null |
12,638 | 1 | null | null | 4 | 4,367 | So basically I'm building an app for my company and it NEEDS to be built using MS Access and it needs to be built on SQL Server.
I've drawn up most of the plans but am having a hard time figuring out a way to handle the auditing system.
Since it is being used internally only and you won't even be able to touch the db... | Building an auditing system; MS Access frontend on SQL Server backend | CC BY-SA 2.5 | 0 | 2008-08-15T19:35:13.313 | 2013-05-17T12:04:14.770 | 2017-05-23T10:32:50.377 | -1 | 428,190 | [
"sql",
"sql-server",
"ms-access",
"triggers"
] |
12,655 | 2 | null | 12,516 | 0 | null | > Or maybe this is the real question:
how can you represent (2) as a BST?
That is the part that is tripping me
up.
Recursion.
| null | CC BY-SA 2.5 | null | 2008-08-15T19:50:45.323 | 2008-08-15T19:50:45.323 | null | null | 432 | null |
12,660 | 2 | null | 12,638 | 1 | null | If you specify SSPI in your connection string to Sql, I think your Windows credentials are provided.
| null | CC BY-SA 2.5 | null | 2008-08-15T19:53:32.167 | 2008-08-15T19:53:32.167 | null | null | 733 | null |
12,642 | 1 | 12,691 | null | 4 | 1,742 | I am trying to upload a file or stream of data to our web server and I cant find a decent way of doing this. I have tried both `WebClient` and `WebRequest` both have their problems.
Nice and easy but you do not get any notification that the asynchronous upload has completed, and the `UploadProgressChanged` event do... | Upload binary data with Silverlight 2b2 | CC BY-SA 3.0 | null | 2008-08-15T19:37:57.863 | 2012-04-25T16:09:39.390 | 2012-04-25T16:09:39.390 | 1,332,690 | 1,478 | [
".net",
"silverlight"
] |
12,657 | 1 | 12,735 | null | 2 | 4,168 | I'm using the new ASP.Net ListView control to list database items that will be grouped together in sections based on one of their columns like so:
```
region1
store1
store2
store3
region2
store4
region3
store5
store6
```
Is this possible to do with the ListView's GroupItemTemplate? Every exam... | Can I create a ListView with dynamic GroupItemCount? | CC BY-SA 2.5 | null | 2008-08-15T19:51:05.417 | 2018-10-05T07:29:48.030 | null | null | 1,249 | [
"asp.net",
".net-3.5",
"listview"
] |
12,662 | 2 | null | 12,642 | 0 | null | Thanks, problem I can see with the article is that its not talking about Silverlight, and Silverlight has limited functions, for some reason they have removed some necessary events and methods for binary transfers for no reason.
I need to use Silverlight as I need/want to upload multiple files and HTML does not allo... | null | CC BY-SA 2.5 | null | 2008-08-15T19:56:42.910 | 2008-08-15T19:56:42.910 | null | null | 1,478 | null |
12,658 | 2 | null | 12,613 | 6 | null | I found the option using:
```
M-x customize-group
SQL
```
That included a setting labeled:
```
Mysql Options:
```
If you set the option and save it, there will be a new line added to your .emacs:
```
(custom-set-variables
'(sql-mysql-options (quote ("-P ???"))))
```
(Obviously, you ought to use the actual por... | null | CC BY-SA 2.5 | null | 2008-08-15T19:51:45.463 | 2008-08-15T19:51:45.463 | null | null | 1,438 | null |
12,672 | 2 | null | 12,638 | 0 | null | you need to connect with integrated security aka trusted connection see ([http://www.connectionstrings.com/?carrier=sqlserver](http://www.connectionstrings.com/?carrier=sqlserver))
| null | CC BY-SA 2.5 | null | 2008-08-15T20:02:55.533 | 2008-08-15T20:02:55.533 | null | null | 740 | null |
12,667 | 2 | null | 12,647 | 13 | null | Usually number validation is done with regular expressions. This code will determine if something is numeric as well as check for undefined variables as to not throw warnings:
```
sub is_integer {
defined $_[0] && $_[0] =~ /^[+-]?\d+$/;
}
sub is_float {
defined $_[0] && $_[0] =~ /^[+-]?\d+(\.\d+)?$/;
}
```
He... | null | CC BY-SA 2.5 | null | 2008-08-15T19:58:52.907 | 2008-08-15T20:07:19.457 | 2008-08-15T20:07:19.473 | 432 | 432 | null |
12,656 | 1 | 13,092 | null | 9 | 5,799 | In a project that I'm about to wrap up, I've written and implemented an object-relational mapping solution for PHP. Before the doubters and dreamers cry out "how on earth?", relax -- I haven't found a way to make late static binding work -- I'm just working around it in the best way that I possibly can.
Anyway, I'm no... | Variable parameter/result binding with prepared statements | CC BY-SA 4.0 | 0 | 2008-08-15T19:50:52.517 | 2021-09-24T20:34:41.557 | 2020-12-24T18:35:03.070 | 1,839,439 | 1,344 | [
"php",
"mysql",
"mysqli"
] |
12,666 | 2 | null | 12,523 | 0 | null | This is what i was looking for.
Check out [http://www.codeplex.com/white](http://www.codeplex.com/white) and [http://nunitforms.sourceforge.net/](http://nunitforms.sourceforge.net/). We've used the White project with success.
| null | CC BY-SA 3.0 | null | 2008-08-15T19:58:51.503 | 2013-01-22T10:33:26.707 | 2013-01-22T10:33:26.707 | 1,410,342 | 1,455 | null |
12,669 | 1 | 12,693 | null | 14 | 7,734 | Let's say I woke up today and wanted to create a clone of StackOverflow.com, and reap the financial windfall of millions $0.02 ad clicks. Where do I start?
My understanding of web technologies are:
- - - - - -
To write a good website to I just need to buy seven books and read them all? Are Web 2.0 sites really the ... | Resources for getting started with web development? | CC BY-SA 2.5 | 0 | 2008-08-15T20:00:28.660 | 2015-05-06T20:26:07.610 | 2015-05-06T20:26:07.610 | 3,225,495 | 322 | [
"language-agnostic"
] |
12,676 | 2 | null | 12,671 | 0 | null | Sorry, but I'm confused. You can't call an ascx directly, so...
Is your modal code that you are calling from within the same page, like a hidden panel, etc;
Or is it another aspx page that you are calling on a click event?
| null | CC BY-SA 2.5 | null | 2008-08-15T20:06:41.940 | 2008-08-15T20:06:41.940 | null | null | null | null |
12,674 | 2 | null | 12,516 | 4 | null | > The problem, I think, is that we need to parse perentheses, and yet they are not a binary operator? Should we take (2) as a single token, that evaluates to 2?
The parens don't need to show up in the expression tree, but they do affect its shape. E.g., the tree for (1+2)+3 is different from 1+(2+3):
```
+
/ \
+... | null | CC BY-SA 2.5 | null | 2008-08-15T20:04:21.723 | 2008-08-15T20:04:21.723 | null | null | 1,412 | null |
12,684 | 2 | null | 12,633 | 2 | null | Unless you plan on making the app cross-platform, using the Windows API calls would be the best way to go. Just ignore the note in the API documentation about being provided only for 16-bit app compatibility.
| null | CC BY-SA 2.5 | null | 2008-08-15T20:10:46.143 | 2008-08-15T20:10:46.143 | null | null | 1,441 | null |
12,679 | 2 | null | 12,638 | 1 | null | I tried playing with Access a bit to see if I could find a way for you. I think you can specify a new datasource to your SQL table, and select Windows NT Authentication as your connection type.
| null | CC BY-SA 2.5 | null | 2008-08-15T20:07:23.950 | 2008-08-15T20:07:23.950 | null | null | 733 | null |
12,671 | 1 | 12,700 | null | 6 | 6,762 | I'm fairly new to ASP.NET and trying to learn how things are done. I come from a C# background so the code-behind portion is easy, but thinking like a web developer is unfamiliar.
I have an aspx page that contains a grid of checkboxes. I have a button that is coded via a Button_Click event to collect a list of which r... | How can I pass data from an aspx page to an ascx modal popup? | CC BY-SA 2.5 | null | 2008-08-15T20:01:23.010 | 2010-04-27T09:49:14.357 | 2008-09-19T22:35:29.463 | 811 | 1,373 | [
"c#",
"asp.net",
"asp.net-ajax"
] |
12,661 | 1 | 12,822 | null | 84 | 88,895 | What's the most efficient way to resize large images in PHP?
I'm currently using the [GD](http://en.wikipedia.org/wiki/GD_Graphics_Library) function imagecopyresampled to take high resolution images, and cleanly resize them down to a size for web viewing (roughly 700 pixels wide by 700 pixels tall).
This works great ... | Efficient JPEG Image Resizing in PHP | CC BY-SA 3.0 | 0 | 2008-08-15T19:55:17.000 | 2017-04-03T07:32:13.580 | 2017-04-03T07:32:13.580 | 4,380,409 | 1,477 | [
"php",
"image",
"gd",
"jpeg"
] |
12,677 | 2 | null | 12,633 | 120 | null | You can use the Windows API functions, such as [GetPrivateProfileString()](https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofilestring) and [GetPrivateProfileInt()](https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofileint).
| null | CC BY-SA 4.0 | null | 2008-08-15T20:06:53.140 | 2021-04-08T21:49:23.793 | 2021-04-08T21:49:23.793 | 421,178 | 4 | null |
12,675 | 2 | null | 12,611 | 4 | null | Attempting to store each instance of every event seems like it would be really problematic and, well, impossible. If someone creates an event that occurs "every thursday, forever", you clearly cannot store all the future events.
You try to generate the future events on demand, and populate the future events only whe... | null | CC BY-SA 2.5 | null | 2008-08-15T20:06:09.863 | 2008-08-15T20:06:09.863 | null | null | 872 | null |
12,680 | 2 | null | 12,669 | 0 | null | I would recommend this book:
[http://www.amazon.com/MCTS-Self-Paced-Training-Exam-70-528/dp/0735623341/ref=sr_1_1?ie=UTF8&s=books&qid=1218830714&sr=8-1](https://rads.stackoverflow.com/amzn/click/com/0735623341)
I have just read it to take the exam, and although I knew the web theory part, I found it to be of great val... | null | CC BY-SA 2.5 | null | 2008-08-15T20:08:55.973 | 2008-08-15T20:08:55.973 | null | null | 960 | null |
12,681 | 2 | null | 12,556 | 2 | null | From a coworker who used to work at TIBCO:
> TIBCO is a complicated, hard to use system because it's used for complicated, hard to solve problems.
| null | CC BY-SA 2.5 | null | 2008-08-15T20:09:25.677 | 2009-08-05T11:22:00.913 | 2009-08-05T11:22:00.913 | 116 | 116 | null |
12,687 | 2 | null | 12,638 | 1 | null | Sure :)
There should be a section in Access called "External Data" (I'm running a new version of Access, so the menu choice might be different).
Form this there should be an option to specify an ODBC connection.
I get an option to Link to the datasource by creating a linked table.
I then created a Machine datasourc... | null | CC BY-SA 2.5 | null | 2008-08-15T20:14:30.097 | 2008-08-15T20:18:38.250 | 2008-08-15T20:18:38.250 | 733 | 733 | null |
12,688 | 2 | null | 12,516 | 1 | null | Re: Justin
I think the tree would look something like this:
```
+
/ \
2 ( )
|
2
```
Basically, you'd have an "eval" node, that just evaluates the tree below it. That would then be optimized out to just being:
```
+
/ \
2 2
```
In this case the parens aren't required and don't add anything. They do... | null | CC BY-SA 2.5 | null | 2008-08-15T20:14:33.030 | 2008-08-15T20:14:33.030 | null | null | 1,409 | null |
12,686 | 2 | null | 12,669 | 12 | null | While I have built my knowledge largely based on using the internet to search out what I want to know (w3schools.com helped a lot, as did A List Apart), a few good books have helped me along the way, though they have been platform/language-specific, so I'll avoid mentioning them unless someone is curious. For me, at le... | null | CC BY-SA 2.5 | null | 2008-08-15T20:11:40.667 | 2008-08-15T20:11:40.667 | null | null | 1,344 | null |
12,692 | 1 | 12,713 | null | 7 | 682 | Has anyone built a website with IronPython and ASP.NET. What were your experiences and is the combination ready for prime-time?
| IronPython and ASP.NET | CC BY-SA 2.5 | null | 2008-08-15T20:17:49.450 | 2008-10-27T08:41:47.340 | null | null | 1,050 | [
"asp.net",
"ironpython"
] |
12,695 | 2 | null | 8,472 | 1 | null | I recently (can't remember where) saw a system that showed a bunch of pictures. Each of the pictures had a character assigned to it. The user was then asked to type in the characters for some pictures that showed examples of some category (cars, computers, buildings, flowers and so on). The pictures and characters chan... | null | CC BY-SA 2.5 | null | 2008-08-15T20:23:51.263 | 2008-08-15T20:27:59.323 | 2008-08-15T20:27:59.323 | 1,398 | 1,398 | null |
12,700 | 2 | null | 12,671 | 3 | null | All a usercontrol(.ascx) file is is a set of controls that you have grouped together to provide some reusable functionality. The controls defined in it are still added to the page's control collection (.aspx) durring the page lifecylce. The ModalPopupExtender uses javascript and dhtml to show and hide the controls in... | null | CC BY-SA 2.5 | null | 2008-08-15T20:25:28.017 | 2008-08-15T20:25:28.017 | null | null | 1,334 | null |
12,691 | 2 | null | 12,642 | 1 | null | The way i get around it is through INotifyPropertyChanged and event notification.
The essentials:
```
public void DoIt(){
this.IsUploading = True;
WebRequest postRequest = WebRequest.Create(new Uri(ServiceURL));
postRequest.BeginGetRequestStream(new AsyncCallback(RequestOpened), postRequest);
... | null | CC BY-SA 2.5 | null | 2008-08-15T20:17:44.257 | 2008-08-15T20:17:44.257 | null | null | 580 | null |
12,697 | 2 | null | 12,612 | 1 | null | If you're using .NET/Windows you might want to look into Windows Authorization Manager (AzMan). There are support for AzMan in Enterprise Library but there are other ways of using it as well.
[http://msdn.microsoft.com/en-us/library/ms998336.aspx](http://msdn.microsoft.com/en-us/library/ms998336.aspx)
[http://alt.plur... | null | CC BY-SA 2.5 | null | 2008-08-15T20:24:03.573 | 2008-08-15T20:33:57.093 | 2008-08-15T20:33:57.093 | 966 | 966 | null |
12,693 | 2 | null | 12,669 | 9 | null | I think that this series of [Opera Articles](http://www.opera.com/wsc/) will give you a good idea of web standards and basic concepts of web development.
: the Opera docs were relocated in 2012 to this section of [webplatform.org](http://webplatform.org):
[http://docs.webplatform.org/wiki/Main_Page](http://docs.webp... | null | CC BY-SA 3.0 | null | 2008-08-15T20:18:46.860 | 2014-03-23T18:36:22.670 | 2014-03-23T18:36:22.670 | 1,414 | 1,414 | null |
12,694 | 2 | null | 12,489 | 2 | null | Directory listing varies greatly according to the OS/platform under consideration. This is because, various Operating systems using their own internal system calls to achieve this.
A solution to this problem would be to look for a library which masks this problem and portable. Unfortunately, there is no solution that ... | null | CC BY-SA 2.5 | null | 2008-08-15T20:20:24.267 | 2008-08-15T20:20:24.267 | null | null | 1,311 | null |
12,707 | 2 | null | 12,612 | 2 | null | A brief rundown on ACLs, where they should be used and how they should be structured and implemented for various applications and user levels can be found here:
[LINK](http://c2.com/cgi/wiki?AccessControlList)
| null | CC BY-SA 2.5 | null | 2008-08-15T20:31:23.557 | 2008-08-15T20:31:23.557 | null | null | 1,311 | null |
12,703 | 2 | null | 12,144 | 5 | null | @Guy
But application config isn't always just key/value pairs. Look at something like the tomcat configuration for what ports it listens on. Here's an example:
```
<Connector port="80" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" red... | null | CC BY-SA 2.5 | null | 2008-08-15T20:26:46.687 | 2008-08-15T20:26:46.687 | null | null | 1,409 | null |
12,702 | 1 | 42,332 | null | 51 | 56,864 | I have a WCF service from which I want to return a DataTable. I know that this is often a highly-debated topic, as far as whether or not returning DataTables is a good practice. Let's put that aside for a moment.
When I create a DataTable from scratch, as below, there are no problems whatsoever. The table is created, ... | Returning DataTables in WCF/.NET | CC BY-SA 3.0 | 0 | 2008-08-15T20:26:01.447 | 2016-12-19T04:49:58.767 | 2015-07-25T21:48:51.883 | 63,550 | 940 | [
"c#",
".net",
"wcf",
"web-services",
"datatable"
] |
12,706 | 1 | 12,719 | null | 2 | 1,783 | I'm coming from a Rails background and doing some work on a ASP.NET project (not ASP MVC). Newbie question: what's the easiest way to make a custom editor for a table of records?
For example: I have a bunch of data rows and want to change the "category" field on each -- maybe a dropdown, maybe a link, maybe the user t... | Best way to custom edit records in ASP.NET? | CC BY-SA 2.5 | null | 2008-08-15T20:30:37.663 | 2012-08-11T15:45:19.717 | null | null | 109 | [
"asp.net"
] |
12,709 | 1 | 16,269 | null | 4 | 11,510 | I originally asked this question on [RefactorMyCode](http://refactormycode.com/codes/36-load-xmlnodelist-into-an-xmldocument), but got no responses there...
Basically I'm just try to load an `XmlNodeList` into an `XmlDocument` and I was wondering if there's a more efficient method than looping.
```
Private Function ... | Load an XmlNodeList into an XmlDocument without looping? | CC BY-SA 3.0 | null | 2008-08-15T20:33:33.833 | 2012-04-25T18:36:41.350 | 2012-04-25T18:36:41.350 | 51,831 | 1,414 | [
"xml",
"vb.net",
"xmldocument",
"xmlnode",
"xmlnodelist"
] |
12,715 | 2 | null | 12,706 | 0 | null | There are a few controls that will do this for you, with varying levels of complexity depending on their relative flexibility.
The traditional way to do this would be the DataGrid control, which gives you a table layout. If you want something with more flexibility in appearance, the DataList and ListView controls als... | null | CC BY-SA 2.5 | null | 2008-08-15T20:39:45.320 | 2008-08-15T20:39:45.320 | null | null | 1,249 | null |
12,724 | 2 | null | 12,638 | 1 | null | ```
CREATE TRIGGER testtrigger1
ON testdatatable
AFTER update
AS
BEGIN
INSERT INTO testtable (datecol,usercol1,usercol2) VALUES (getdate(),user_name(),suser_sname());
END
GO
```
| null | CC BY-SA 2.5 | null | 2008-08-15T20:46:22.840 | 2008-08-15T20:46:22.840 | null | null | 428,190 | null |
12,713 | 2 | null | 12,692 | 7 | null | The current version of ASP.NET integration for IronPython is not very up-to-date and is more of a "proof-of-concept." I don't think I'd build a production website based on it.
: I have a very high level of expectation for how things like this should work, and might setting the bar a little high. Maybe you should take... | null | CC BY-SA 2.5 | null | 2008-08-15T20:37:24.920 | 2008-09-24T17:57:40.213 | 2008-09-24T17:57:40.213 | 533 | 533 | null |
12,718 | 1 | 12,744 | null | 1 | 3,666 | When installing subversion as a service, I used this command:
```
c:\>svnservice -install --daemon --root "c:\documents and settings\my_repository"
```
And then I got this error:
```
Could not create service in service control manager.
```
After looking at some MSDN docs on the service control manager, I tried gr... | Setting up Subversion on Windows as a service | CC BY-SA 2.5 | null | 2008-08-15T20:41:54.940 | 2011-08-08T09:11:06.967 | 2008-08-17T02:13:35.317 | 55 | 672 | [
"svn",
"version-control"
] |
12,719 | 2 | null | 12,706 | 2 | null | You can REALLY cheat nowadays and take a peek at the new Dynamic Data that comes with .NET 3.5 SP1. Scott Guthrie has a blog entry demoing on how quick and easy it'll flow for you here:
[http://weblogs.asp.net/scottgu/archive/2007/12/14/new-asp-net-dynamic-data-support.aspx](http://weblogs.asp.net/scottgu/archive/2007... | null | CC BY-SA 2.5 | null | 2008-08-15T20:42:30.230 | 2008-08-15T20:42:30.230 | null | null | 71 | null |
12,712 | 2 | null | 12,702 | 4 | null | The attribute you want is OperationContract (on interface) / Operation Behavior (on method):
```
[ServiceContract]
public interface ITableProvider
{
[OperationContract]
DataTable GetTbl();
}
[OperationBehavior]
public DataTable GetTbl(){
DataTable tbl = new DataTable("testTbl");
//Populate table with... | null | CC BY-SA 3.0 | null | 2008-08-15T20:35:00.977 | 2015-07-25T21:51:23.113 | 2015-07-25T21:51:23.113 | 63,550 | 77 | null |
12,716 | 1 | 12,751 | null | 4 | 4,460 | In C++ program, I am trying to #import TLB of .NET out-of-proc server.
I get errors like:
> z:\server.tlh(111) : error C2146: syntax error : missing ';' before identifier 'GetType'z:\server.tlh(111) : error C2501: '_TypePtr' : missing storage-class or type specifiersz:\server.tli(74) : error C2143: syntax error : missi... | Problems with #import of .NET out-of-proc server | CC BY-SA 3.0 | 0 | 2008-08-15T20:40:11.980 | 2020-04-11T19:21:54.590 | 2020-06-20T09:12:55.060 | -1 | 814 | [
"c#",
"c++",
"com",
"interop"
] |
12,730 | 2 | null | 12,718 | 0 | null | The only thing I can currently think of, is the following: make sure you're running under an administrator account. That's absolutely necessary to install a service, AFAIK.
Have fun with Subversion, btw :)
| null | CC BY-SA 2.5 | null | 2008-08-15T20:51:20.320 | 2008-08-15T20:51:20.320 | null | null | 1,037 | null |
12,720 | 1 | 12,728 | null | 2 | 934 | I have a .NET 2.0 application that has recently had contributions that are Service Pack 1 dependent. The deployment project has detected .NET 2.0 as a prerequisite, but NOT SP1. How do I include SP1 as a dependency/prerequisite in my deployment project?
| Add .NET 2.0 SP1 as a prerequisite for deployment project | CC BY-SA 2.5 | null | 2008-08-15T20:42:51.523 | 2009-04-18T14:20:37.403 | 2009-04-18T14:20:37.403 | 2,284 | 1,484 | [
".net-2.0",
"installation",
"dependencies"
] |
12,727 | 2 | null | 12,718 | 0 | null | I've never used the command line installer for this. I assume you are downloading the latest from:
[http://svnservice.tigris.org/](http://svnservice.tigris.org/)
I run the installer, and then use the configuration tool (in the Start Menu, SVN Service, SVN Service Administration) to set it up.
| null | CC BY-SA 2.5 | null | 2008-08-15T20:48:06.677 | 2008-08-15T20:48:06.677 | null | null | 1,219 | null |