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,526 | 2 | null | 40,485 | 18 | null | There are some super-fast implementations that (from memory) represent cells of 8 or more adjacent squares as bit patterns and use that as an index into a large array of precalculated values to determine in a single machine instruction if a cell is live or dead.
Check out here:
[http://dotat.at/prog/life/life.html](h... | null | CC BY-SA 2.5 | null | 2008-09-02T20:26:01.207 | 2008-09-02T20:26:01.207 | null | null | 3,146 | null |
40,568 | 1 | 1,016,737 | null | 56 | 58,111 | Are square brackets in URLs allowed?
I noticed that [Apache commons HttpClient](http://hc.apache.org/httpclient-3.x/index.html) (3.0.1) throws an IOException, wget and Firefox however accept square brackets.
URL example:
```
http://example.com/path/to/file[3].html
```
My HTTP client encounters such URLs but I'm no... | Are square brackets permitted in URLs? | CC BY-SA 3.0 | 0 | 2008-09-02T20:35:24.150 | 2017-07-04T09:13:41.263 | 2017-07-04T08:19:31.700 | 938,111 | 4,308 | [
"apache",
"http",
"url",
"syntax",
"square-bracket"
] |
40,580 | 2 | null | 40,577 | 2 | null | Try using [Chronic](http://chronic.rubyforge.org/) to parse the date strings into actual datetime objects.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:39:13.000 | 2008-09-02T20:39:13.000 | null | null | 3,560 | null |
40,572 | 2 | null | 39,395 | 2 | null | What is PI? The circumference of a circle divided by its diameter.
In computer graphics you can plot/draw a circle with its centre at 0,0 from a initial point x,y, the next point x',y' can be found using a simple formula:
x' = x + y / h : y' = y - x' / h
h is usually a power of 2 so that the divide can be done easily... | null | CC BY-SA 2.5 | null | 2008-09-02T20:36:39.823 | 2008-09-02T20:36:39.823 | null | null | null | null |
40,577 | 1 | 40,822 | null | 0 | 1,975 | In Ruby, I'm trying to do the following.
```
def self.stats(since)
return Events.find(:all, :select => 'count(*) as this_count', :conditions => ['Date(event_date) >= ?', (Time.now - since)]).first.this_count
end
```
where "since" is a string representing an amount of time ('1 hour', '1 day', '3 days') and so on. A... | Datetime arithmetic with a string in Ruby | CC BY-SA 2.5 | null | 2008-09-02T20:37:53.660 | 2013-12-05T08:31:34.287 | 2010-10-01T19:50:28.223 | 4,322 | 4,322 | [
"ruby",
"datetime",
"time"
] |
40,586 | 1 | 40,593 | null | 2 | 4,318 | In a try/except block, how do I extract the Oracle error number?
| cx_Oracle: how do I get the ORA-xxxxx error number? | CC BY-SA 2.5 | 0 | 2008-09-02T20:40:29.597 | 2016-11-22T06:58:43.923 | null | null | 116 | [
"python",
"oracle",
"cx-oracle"
] |
40,582 | 2 | null | 40,485 | 1 | null | Two ideas:
(1) Many configurations are mostly empty space. Keep a linked list (not necessarily in order, that would take more time) of the live cells, and during an update, only update around the live cells (this is similar to your vague suggestion, OysterD :)
(2) Keep an extra array which stores the # of live cells... | null | CC BY-SA 2.5 | null | 2008-09-02T20:39:31.940 | 2008-09-02T20:39:31.940 | null | null | 3,561 | null |
40,589 | 2 | null | 40,568 | 1 | null | According to the [URL specification](http://www.w3.org/Addressing/URL/url-spec.txt), the square brackets are not valid URL characters.
Here's the relevant snippets:
> The "national" and "punctuation" characters do not appear in any
productions and therefore may not appear in URLs.
national { | }... | null | CC BY-SA 2.5 | null | 2008-09-02T20:41:14.137 | 2008-09-02T20:41:14.137 | null | null | 2,284 | null |
40,562 | 2 | null | 40,495 | 20 | null | [Redmine](http://www.redmine.org/) can do some of what you're asking for. Integration works in one direction, you must [reference issues in commit messages](http://www.redmine.org/projects/redmine/wiki/RedmineSettings#Referencing-issues-in-commit-messages), and then this data will be available in redmine.
The data ... | null | CC BY-SA 3.0 | null | 2008-09-02T20:33:57.350 | 2011-09-30T21:27:29.857 | 2011-09-30T21:27:29.857 | -1 | 4,321 | null |
40,593 | 2 | null | 40,586 | 13 | null | ```
try:
cursor.execute("select 1 / 0 from dual")
except cx_Oracle.DatabaseError, e:
error, = e
print "Code:", error.code
print "Message:", error.message
```
This results in the following output:
```
Code: 1476
Message: ORA-01476: divisor is equal to zero
```
| null | CC BY-SA 3.0 | null | 2008-09-02T20:41:33.540 | 2016-11-22T06:58:43.923 | 2016-11-22T06:58:43.923 | 116 | 116 | null |
40,595 | 2 | null | 40,568 | 5 | null | Any browser or web-enabled software that accepts URLs and is not throwing an exception when special characters are introduced is almost guaranteed to be encoding the special characters behind the scenes. Curly brackets, square brackets, spaces, etc all have special encoded ways of representing them so as not to produce... | null | CC BY-SA 2.5 | null | 2008-09-02T20:42:28.827 | 2008-09-02T20:42:28.827 | null | null | 3,556 | null |
40,552 | 2 | null | 39,758 | 0 | null | It's not good. More platforms leads to more testing, leads to more time fixing bugs, leads to less time having fun implementing new features, leads to anger, hate, suffering, etc.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:30:43.613 | 2008-09-02T20:30:43.613 | null | null | 2,227 | null |
40,596 | 2 | null | 40,511 | 0 | null | I also never heard of nested functions in C, but if gcc supports it, this is not going to work the way you expect. You are just simply copying the machine instructions of isNot, and that won't include the actual value of "original" at the time "not" is being called.
You should use a C++ class to implement a [function ... | null | CC BY-SA 2.5 | null | 2008-09-02T20:42:34.850 | 2008-09-02T21:33:39.843 | 2008-09-02T21:33:39.843 | 2,666 | 2,666 | null |
40,599 | 2 | null | 40,590 | 5 | null | Are you certain that `currentPage` is an integer? Try something like:
```
var currentPage = 5;
jQuery('li').eq(currentPage);
```
as a simple sanity check. If that works, you should try casting to `Integer`.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:43:23.163 | 2008-09-02T20:43:23.163 | null | null | 3,560 | null |
40,607 | 2 | null | 40,602 | 1 | null | Workflow (see WF in .net 3.0)
| null | CC BY-SA 2.5 | null | 2008-09-02T20:46:19.177 | 2008-09-02T20:46:19.177 | null | null | 3,509 | null |
40,602 | 1 | 40,747 | null | 18 | 5,702 | What kind of programming problems are state machines most suited for?
I have read about parsers being implemented using state machines, but would like to find out about problems that scream out to be implemented as a state machine.
| What kind of problems are state machines good for? | CC BY-SA 2.5 | 0 | 2008-09-02T20:44:35.577 | 2009-02-27T16:46:40.593 | null | null | 1,583 | [
"algorithm",
"state"
] |
40,604 | 2 | null | 40,602 | 2 | null | Stateful protocols such as TCP are often represented as state machines. However it's rare that you should want to implement anything as a state machine proper. Usually you will use a corruption of one, i.e. have it carrying out a repeated action while sitting in one state, logging data while it transitions, or exchangi... | null | CC BY-SA 2.5 | null | 2008-09-02T20:45:59.007 | 2008-09-02T20:45:59.007 | null | null | 4,315 | null |
40,590 | 1 | 40,800 | null | 5 | 2,244 | Both the jQuery and Prototpye JavaScript libraries refuse to allow me to use a variable to select an list item element by index number although they accept a hard coded number.
For example, in Prototype this works:
```
$$('li')[5].addClassName('active');
```
But this will not work no matter how I try to cast the v... | jQuery and Prototype Selector Madness | CC BY-SA 2.5 | null | 2008-09-02T20:41:21.717 | 2011-12-29T14:30:30.453 | 2011-12-29T14:30:30.453 | 938,089 | 4,320 | [
"jquery",
"prototypejs",
"css-selectors",
"addclass"
] |
40,538 | 2 | null | 40,535 | 2 | null | My current solution is with extension methods:
```
public static class UrlHelperExtensions
{
/// <summary>
/// Determines if the current view equals the specified action
/// </summary>
/// <typeparam name="TController">The type of the controller.</typeparam>
/// <param name="helper">Url Helper</par... | null | CC BY-SA 2.5 | null | 2008-09-02T20:28:02.233 | 2008-09-02T20:28:02.233 | null | null | 3,085 | null |
40,609 | 2 | null | 40,602 | 1 | null | They have many uses, parsers being a notable one. I have personally used simplified state machines to implement complex multi-step task dialogs in applications.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:46:47.943 | 2008-09-02T20:46:47.943 | null | null | 3,114 | null |
40,611 | 2 | null | 40,602 | 1 | null | A parser example. I recently wrote a parser that takes a binary stream from another program. The meaning of the current element parsed indicates the size/meaning of the next elements. There are a (small) finite number of elements possible. Hence a state machine.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:47:12.047 | 2008-09-02T20:47:12.047 | null | null | 1,244 | null |
40,583 | 2 | null | 40,568 | 5 | null | Pretty much the only characters not allowed in pathnames are # and ? as they signify the end of the path.
The uri rfc will have the definative answer:
[http://www.ietf.org/rfc/rfc1738.txt](http://www.ietf.org/rfc/rfc1738.txt)
> Unsafe:Characters can be unsafe for a number of reasons. The space
character is unsa... | null | CC BY-SA 2.5 | null | 2008-09-02T20:39:34.467 | 2008-09-02T20:39:34.467 | null | null | 4,319 | null |
40,612 | 2 | null | 36,014 | 2 | null | Hmm, I don't understand the problem. I downloaded and tried your example solution file.
An exception is thrown in TimeDefLexer.cs, line 852, which is subsequently handled by the catch block in Program.cs that just says .
If I uncomment the catch block above it, it will enter that block instead.
What seems to be the ... | null | CC BY-SA 2.5 | null | 2008-09-02T20:47:39.783 | 2008-09-02T20:47:39.783 | null | null | 267 | null |
40,608 | 1 | 40,613 | null | 7 | 2,637 | I've been using PHP for too long, but I'm new to JavaScript integration in some places.
I'm trying to find the fastest way to pass database information into a page where it can be modified and displayed dynamically in JavaScript.
Right now, I'm looking at loading a echo statements because it's fast and effective, ... | Loading JSON with PHP | CC BY-SA 3.0 | 0 | 2008-09-02T20:46:38.617 | 2017-01-09T13:13:42.807 | 2016-05-25T14:38:03.513 | 3,497,351 | 4,247 | [
"php",
"json"
] |
40,615 | 2 | null | 40,602 | 1 | null | They're great for modelling things that change status, and have logic that triggers on each transition.
I'd use finite state machines for tracking packages by mail, or to keep track of the different stata of a user during the registration process, for example.
As the number of possible status values goes up, the numb... | null | CC BY-SA 2.5 | null | 2008-09-02T20:48:30.157 | 2008-09-02T20:48:30.157 | null | null | 4,272 | null |
40,613 | 2 | null | 40,608 | 16 | null | Use the library. If you try to generate it manually, I predict with 99% certainty that the resulting text will be invalid in some way. Especially with more esoteric features like Unicode strings or exponential notation.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:48:02.963 | 2008-09-02T20:48:02.963 | null | null | 3,560 | null |
40,620 | 2 | null | 40,602 | 2 | null | AI in games is very often implemented using State Machines.
Helps create discrete logic that is much easier to build and test.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:50:44.580 | 2008-09-16T19:28:40.040 | 2008-09-16T19:28:40.040 | 3,786 | 3,786 | null |
40,618 | 2 | null | 40,602 | 0 | null | Things that comes to mind are:
> - -
Generalizing: When you have a string of inputs that when interacting with anyone of them, requires the knowledge of the previous inputs or in other words, when processing of any single input requires the knowledge of previous inputs. (that is, it needs to have "states")
Not much... | null | CC BY-SA 2.5 | null | 2008-09-02T20:49:59.060 | 2008-09-02T20:49:59.060 | null | null | 3,055 | null |
40,603 | 1 | 40,623 | null | 10 | 7,656 | I have built an MSI that I would like to deploy, and update frequently. Unfortunately, when you install the MSI, and then try to install a newer version of the same MSI, it fails with a message like "Another version of this product is already installed. Installation of this version cannot continue..." appears. The MSI ... | MSI Installer fails without removing a previous install | CC BY-SA 2.5 | 0 | 2008-09-02T20:44:44.393 | 2011-04-20T12:09:25.777 | null | null | 3,114 | [
"windows-installer",
"versioning"
] |
40,621 | 2 | null | 40,602 | 2 | null | Objects in games are often represented as state machines. An AI character might be:
- - - -
So you can see these might model some simple but effective states. Of course you could probably make a more complex continuous system.
Another example would be a process such as making a purchase on Google Checkout. Google g... | null | CC BY-SA 2.5 | null | 2008-09-02T20:50:50.977 | 2008-09-02T20:50:50.977 | null | null | 3,877 | null |
40,597 | 2 | null | 34,512 | 0 | null | A deadlock is a state of a system in which no single process/thread is capable of executing an action. As mentioned by others, a deadlock is typically the result of a situation where each process/thread wishes to acquire a lock to a resource that is already locked by another (or even the same) process/thread.
There ar... | null | CC BY-SA 2.5 | null | 2008-09-02T20:42:53.757 | 2008-09-02T20:42:53.757 | null | null | 4,285 | null |
40,622 | 1 | 41,729 | null | 14 | 4,820 | Is it realistic to try and learn and code a Flex 3 application without purchasing FlexBuilder? Since the SDK and BlazeDS are open source, it seems technically possible to develop without Flex Builder, but how realistic is it.
I would like to test out Flex but don't want to get into a situation where I am dependent on ... | Is Flex development without FlexBuilder realistic? | CC BY-SA 2.5 | 0 | 2008-09-02T20:51:52.097 | 2012-04-16T13:34:51.263 | null | null | 4,229 | [
"apache-flex",
"flexbuilder"
] |
40,617 | 2 | null | 40,525 | 2 | null | Are you forced to declare callMe inside of parentFunction? I assume so because otherwise you would just do
function parent() { }
function callMe() { }
To be clear, a function can't own another function unless you provide some scope for that function to live in.
So in JavaScript, you would do this by using the pro... | null | CC BY-SA 2.5 | null | 2008-09-02T20:49:29.013 | 2008-09-11T18:48:50.100 | 2008-09-11T18:48:50.100 | 245 | 245 | null |
40,619 | 2 | null | 40,456 | 1 | null | [My developer](https://stackoverflow.com/users/51836/clark) got back to me with this code, underscores converted to dashes because StackOverflow was mangling underscores -- no numbers table required. Our example is complicated a bit by a join to another table, but maybe the code example will help someone someday.
```
... | null | CC BY-SA 2.5 | null | 2008-09-02T20:50:00.510 | 2009-04-03T17:19:13.043 | 2017-05-23T10:32:50.377 | -1 | 2,477 | null |
40,623 | 2 | null | 40,603 | 9 | null | I have built numerous MSIs with VS 2005 Pro that do this correctly.
Are you sure that the 'Version' property of the has been incremented? This property is independent of the version of the assemblies in the application, and this is the error message you will see if the Version property of the MSI is the same as it wa... | null | CC BY-SA 2.5 | null | 2008-09-02T20:52:03.190 | 2008-09-02T20:52:03.190 | null | null | 3,776 | null |
40,616 | 2 | null | 40,423 | 4 | null | One of the important things about erlang is how the features are used to make robust systems.
The send/recieve model is no-sharing, and explicitly copying.
The processes themselves are lightweight threads.
If you did desire the robust properties of the erlang model, you would be best to use real processes and IPC rat... | null | CC BY-SA 2.5 | null | 2008-09-02T20:49:18.967 | 2008-09-02T20:49:18.967 | null | null | 4,319 | null |
40,629 | 2 | null | 40,622 | 9 | null | IntelliJ IDEA works as a Flex IDE, if you happen to also be a Java developer. It's free if you contribute to open source projects.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:53:40.720 | 2008-09-02T20:53:40.720 | null | null | 4,223 | null |
40,631 | 2 | null | 40,622 | 9 | null | Check out [FlashDevelop](http://www.flashdevelop.org) for Windows. I like it better than Flex Builder.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:54:33.073 | 2008-09-02T20:54:33.073 | null | null | 1,344 | null |
40,632 | 1 | 40,643 | null | 34 | 3,206 | What are they and what are they good for?
I do not have a CS degree and my background is VB6 -> ASP -> ASP.NET/C#. Can anyone explain it in a clear and concise manner?
| I just don't get continuations! | CC BY-SA 2.5 | 0 | 2008-09-02T20:55:13.353 | 2008-12-29T05:59:17.640 | 2008-09-02T21:33:57.550 | 658 | 1,583 | [
"functional-programming",
"continuations",
"callcc"
] |
40,628 | 2 | null | 40,602 | 2 | null | Regular expression matching, Parsing, Flow control in a complex system.
Regular expressions are a simple form of state machine, specifically finite automata. They have a natural represenation as such, although it is possible to implement them using mutually recursive functions.
State machines when implemented well, w... | null | CC BY-SA 2.5 | null | 2008-09-02T20:53:35.917 | 2008-09-02T20:53:35.917 | null | null | 4,319 | null |
40,625 | 2 | null | 24,470 | 53 | null | If you specifically want to use the SQL Server PIVOT function, then this should work, assuming your two original columns are called act and cmd. (Not that pretty to look at though.)
```
SELECT act AS 'Action', [View] as 'View', [Edit] as 'Edit'
FROM (
SELECT act, cmd FROM data
) AS src
PIVOT (
MAX(cmd) FOR cmd... | null | CC BY-SA 2.5 | null | 2008-09-02T20:52:47.977 | 2008-09-02T20:52:47.977 | null | null | 3,898 | null |
40,636 | 2 | null | 33,497 | 0 | null | [@Jan](https://stackoverflow.com/questions/33497/how-do-i-recover-from-an-unchecked-exception#39769) Checked versus unchecked is a central issue here. I question your supposition (#3) that the exception should be ignored in intervening frames. If I do that, I will end up with an implementation-specific dependency in my... | null | CC BY-SA 2.5 | null | 2008-09-02T20:56:00.823 | 2008-09-02T20:56:00.823 | 2017-05-23T10:27:49.720 | -1 | 3,474 | null |
40,637 | 1 | 40,785 | null | 4 | 6,172 | I'm building an excel template (*.xlt) for a user here, and one of the things I want to do is have it insert the current date when a new document is created (ie, when they double-click the file in windows explorer). How do I do this?
I should have added that I would prefer not to use any vba (macro). If that's the ... | Insert current date in Excel template at creation | CC BY-SA 2.5 | 0 | 2008-09-02T20:56:12.837 | 2012-06-02T17:03:41.683 | 2008-09-02T21:12:34.717 | 3,043 | 3,043 | [
"excel",
"templates"
] |
40,640 | 2 | null | 40,622 | 0 | null | Absolutely. I've been a Flex developer since Flex 2 and until recently I've used my regular editor, TextMate, for coding and Ant for building. TextMate has some good extensions for ActionScript and Flex coding, but I think you could get that for any decent editor.
What's been missing from my setup is a usable debugger... | null | CC BY-SA 2.5 | null | 2008-09-02T20:56:56.033 | 2008-09-02T20:56:56.033 | null | null | 1,109 | null |
40,638 | 2 | null | 40,602 | 1 | null | Just as a side note, you can implement state machines with proper tail calls like I explained in the [tail recursion](https://stackoverflow.com/questions/33923/tail-recursion#34540) question.
In that exemple each room in the game is considered one state.
Also, Hardware design with VHDL (and other logic synthesis lang... | null | CC BY-SA 2.5 | null | 2008-09-02T20:56:37.513 | 2008-09-02T20:56:37.513 | 2017-05-23T11:48:36.327 | -1 | 3,485 | null |
40,643 | 2 | null | 40,632 | 42 | null | Imagine if every single line in your program was a separate function. Each accepts, as a parameter, the next line/function to execute.
Using this model, you can "pause" execution at any line and continue it later. You can also do inventive things like temporarily hop up the execution stack to retrieve a value, or sav... | null | CC BY-SA 2.5 | null | 2008-09-02T20:57:53.410 | 2008-12-28T16:39:31.110 | 2008-12-28T16:39:31.110 | 44,084 | 3,560 | null |
40,642 | 2 | null | 40,244 | 1 | null | Named pipes.
Create a series of fifos, using mkfifo
i.e fifo0, fifo1
Then attach each process in term to the pipes you want:
processn < fifo(n-1) > fifon
| null | CC BY-SA 2.5 | null | 2008-09-02T20:57:24.533 | 2008-09-02T20:57:24.533 | null | null | 4,319 | null |
40,630 | 2 | null | 40,480 | 34 | null | To make a long story short, [Java](http://en.wikipedia.org/wiki/Java_%28programming_language%29) objects have some very peculiar properties.
In general, Java has primitive types (`int`, `bool`, `char`, `double`, etc) that are passed directly by value. Then Java has objects (everything that derives from `java.lang.Obje... | null | CC BY-SA 3.0 | null | 2008-09-02T20:53:59.393 | 2014-05-04T09:33:48.487 | 2014-05-04T09:33:48.487 | 4,100 | 4,100 | null |
40,646 | 2 | null | 40,602 | 0 | null | If you need a simple stochastic process, you might use a Markov chain, which can be represented as a state machine (given the current state, at the next step the chain will be in state X with a certain probability).
| null | CC BY-SA 2.5 | null | 2008-09-02T20:58:00.647 | 2008-09-02T20:58:00.647 | null | null | 4,069 | null |
40,647 | 2 | null | 8,472 | 1 | null | [Mollom](http://mollom.com) is another [askimet](http://akismet.com/development/) type service which may be of interest. From the guys who wrote drupal / run acquia.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:58:07.433 | 2008-09-02T20:58:07.433 | null | null | 2,621 | null |
40,650 | 2 | null | 30,529 | 1 | null | Now you have provided us with some more clues about the nature of your question, namely mentioning COM, I think I understand what you mean. COM can marshal only a subset of the types Delphi knows between a COM server and client. You can define enums in the TLB editor, but these are all of the type TOleEnum which basica... | null | CC BY-SA 2.5 | null | 2008-09-02T20:59:59.410 | 2008-09-02T20:59:59.410 | null | null | 1,242 | null |
40,627 | 2 | null | 40,590 | 2 | null | Make sure that the currentPage variable is correctly scoped in the code where it is being accessed. Could the variable be changed somewhere else in the code before you are accessing it? Tools like [Firebug](https://addons.mozilla.org/firefox/addon/1843) can help you to add a breakpoint at the point of execution and see... | null | CC BY-SA 2.5 | null | 2008-09-02T20:53:30.970 | 2008-09-02T20:53:30.970 | null | null | 3,274 | null |
40,654 | 2 | null | 40,602 | 1 | null | Any workflow application, especially with asynchronous activities. You have an item in the workflow in a certain state, and the state machine knows how to react to external events by placing the item in a different state, at which point some other activity occurs.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:01:21.480 | 2008-09-02T21:01:21.480 | null | null | 1,219 | null |
40,651 | 1 | null | null | 19 | 65,603 | I've inherited a large VB6 app at my current workplace. I'm kinda learning VB6 on the job and there are a number of problems I'm having. The major issue at the moment is I can't figure out how to check if a key exists in a Collection object. Can anyone help?
| Check if a record exists in a VB6 collection? | CC BY-SA 2.5 | 0 | 2008-09-02T21:00:27.007 | 2017-01-31T08:24:34.997 | null | null | 4,315 | [
"vb6",
"collections"
] |
40,648 | 2 | null | 40,622 | 1 | null | Short answer: Yes
I'm working on a team of developers and designers. We code our .MXML and .AS in [FlashDevelop 3](http://www.flashdevelop.org/community/) and our designer creates .FLA with skins and widgets that get [Import()]ed in ActionScript.
I wrote a little more about this subject here:
[Flash designer/coder c... | null | CC BY-SA 2.5 | null | 2008-09-02T20:58:23.080 | 2008-09-02T20:58:23.080 | 2017-05-23T12:01:17.740 | -1 | 2,148 | null |
40,659 | 2 | null | 40,651 | 7 | null | I've always done it with a function like this:
```
public function keyExists(myCollection as collection, sKey as string) as Boolean
on error goto handleerror:
dim val as variant
val = myCollection(sKey)
keyExists = true
exit sub
handleerror:
keyExists = false
end function
```
| null | CC BY-SA 2.5 | null | 2008-09-02T21:02:09.920 | 2008-09-02T21:02:09.920 | null | null | 305 | null |
40,645 | 2 | null | 40,602 | 10 | null | A good resource is this free [State Machine EBook](http://www.xcprod.com/titan/state_machine_ebook.html). My own quick answer is below.
When your logic must contain information about what happened the last time it was run, it must contain state.
So a state machine is simply any code that remembers (or acts on) infor... | null | CC BY-SA 2.5 | null | 2008-09-02T20:57:59.960 | 2009-02-27T16:46:40.610 | 2009-02-27T16:46:40.610 | 5,640 | 2,915 | null |
40,669 | 2 | null | 27,581 | 6 | null | One gotcha I have found is where two objects contain references to each other (one example being a parent/child relationship with a convenience method on the parent to get all children).
These sorts of things are fairly common when doing Hibernate mappings for example.
If you include both ends of the relationship in y... | null | CC BY-SA 2.5 | null | 2008-09-02T21:06:47.053 | 2008-09-02T21:06:47.053 | null | null | 151 | null |
40,665 | 1 | 40,684 | null | 10 | 20,911 | I'm maintaining some code that uses a *= operator in a query to a Sybase database and I can't find documentation on it. Does anyone know what *= does? I assume that it is some sort of a join.
```
select * from a, b where a.id *= b.id
```
I can't figure out how this is different from:
```
select * from a, b where ... | *= in Sybase SQL | CC BY-SA 2.5 | 0 | 2008-09-02T21:05:07.307 | 2008-10-23T16:38:05.873 | 2008-10-23T16:38:05.887 | 3,043 | 4,066 | [
"sql",
"tsql",
"join",
"sybase"
] |
40,663 | 1 | 40,678 | null | 31 | 12,520 | I'm trying to find a way to validate a large XML file against an XSD. I saw the question [...best way to validate an XML...](https://stackoverflow.com/questions/15732/whats-the-best-way-to-validate-an-xml-file-against-an-xsd-file) but the answers all pointed to using the Xerces library for validation. The only problem ... | Validating a HUGE XML file | CC BY-SA 2.5 | 0 | 2008-09-02T21:04:39.430 | 2013-09-05T02:46:55.050 | 2017-05-23T10:30:40.407 | -1 | 3,274 | [
"java",
"xml",
"validation",
"xsd"
] |
40,671 | 2 | null | 40,665 | 9 | null | It means outer join, a simple = means inner join.
```
*= is LEFT JOIN and =* is RIGHT JOIN.
```
(or vice versa, I keep forgetting since I'm not using it any more, and Google isn't helpful when searching for *=)
| null | CC BY-SA 2.5 | null | 2008-09-02T21:07:30.687 | 2008-09-02T21:07:30.687 | null | null | 267 | null |
40,657 | 2 | null | 39,395 | 6 | null | There are a couple of really, really old tricks I'm surprised to not see here.
atan(1) == PI/4, so an old chestnut when a trustworthy arc-tangent function is
present is 4*atan(1).
A very cute, fixed-ratio estimate that makes the old Western 22/7 look like dirt
is 355/113, which is good to several decimal places (at l... | null | CC BY-SA 2.5 | null | 2008-09-02T21:01:34.273 | 2008-09-02T21:01:34.273 | null | null | null | null |
40,666 | 2 | null | 40,028 | 2 | null | If I get this right, you want a vector that is normal to the screen plane, but in world coordinates?
In that case you want to `INVERT` the transformation from `World -> Screen and do Screen -> World` of `(0,0,-1)` or `(0,0,1)` depending on which axis the screen points down.
Since the ModelView matrix is just a rotati... | null | CC BY-SA 3.0 | null | 2008-09-02T21:05:56.027 | 2016-02-20T16:39:00.497 | 2016-02-20T16:39:00.497 | 2,004,685 | 3,877 | null |
40,677 | 2 | null | 8,472 | 2 | null | This will be per-sign-up and not per-post, right? Because that would just kill the site, even with jQuery automation.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:09:00.853 | 2008-09-02T21:09:00.853 | null | null | 3,043 | null |
40,674 | 2 | null | 40,637 | 2 | null | You can edit the default template for excel -
There is a file called `Book.xlt` in the `XLSTART` directory, normally located at `C:\Program Files\Microsoft Office\Office\XLStart\`
You should be able to add a macro called Workbook_Open
```
Private Sub Workbook_Open()
If ActiveWorkBook.Sheets(1).Range("A1") = "" ... | null | CC BY-SA 3.0 | null | 2008-09-02T21:07:51.170 | 2012-06-02T17:03:41.683 | 2012-06-02T17:03:41.683 | 1,140,579 | 4,319 | null |
40,680 | 1 | 41,149 | null | 175 | 217,206 | I need to be able to get at the full URL of the page I am on from a user control. Is it just a matter of concatenating a bunch of Request variables together? If so which ones? Or is there a more simpiler way?
| How do I get the full url of the page I am on in C# | CC BY-SA 2.5 | 0 | 2008-09-02T21:09:44.113 | 2021-04-28T07:01:36.220 | 2008-09-09T05:36:39.677 | 1,414 | 648 | [
"c#",
"asp.net",
"user-controls"
] |
40,678 | 2 | null | 40,663 | 30 | null | Instead of using a DOMParser, use a SAXParser. This reads from an input stream or reader so you can keep the XML on disk instead of loading it all into memory.
```
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setValidating(true);
factory.setNamespaceAware(true);
SAXParser parser = factory.newSA... | null | CC BY-SA 2.5 | null | 2008-09-02T21:09:16.440 | 2008-09-02T23:41:04.280 | 2008-09-02T23:41:04.280 | 4,223 | 4,223 | null |
40,683 | 2 | null | 40,680 | 8 | null | Request.RawUrl
| null | CC BY-SA 2.5 | null | 2008-09-02T21:11:23.877 | 2008-09-02T21:11:23.877 | null | null | 1,965 | null |
40,681 | 2 | null | 40,663 | 8 | null | Use [libxml](http://xmlsoft.org/), which performs validation has a streaming mode.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:10:10.790 | 2008-09-02T21:10:10.790 | null | null | 3,560 | null |
40,644 | 2 | null | 40,244 | 15 | null | A named pipe might do it:
```
$ mkfifo outside
$ <outside calc | square >outside &
$ echo "1" >outside ## Trigger the loop to start
```
| null | CC BY-SA 2.5 | null | 2008-09-02T20:57:53.503 | 2008-09-02T20:57:53.503 | null | null | 3,978 | null |
40,685 | 2 | null | 40,603 | 3 | null | You need to change the ProductCode between each version, if you don't do this you will get the behavior you are seeing. The ProductCode is seen in the project properties. Check out the [MSDN Online Help for ProductCode](http://msdn.microsoft.com/en-us/library/aafz9hx4.aspx) to understand better.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:11:49.147 | 2008-09-02T21:11:49.147 | null | null | 2,305 | null |
40,624 | 2 | null | 40,603 | 6 | null | Increment the version number on your project.
In VS, select the node for your setup app and hit F4 to view the properties. Find the version field, and increment it.
| null | CC BY-SA 2.5 | null | 2008-09-02T20:52:45.263 | 2008-09-02T20:52:45.263 | null | null | 245 | null |
40,682 | 2 | null | 40,335 | 4 | null | You can use WMI to figure this out. The [Win32_BootConfiguration](http://msdn.microsoft.com/en-us/library/aa394078.aspx) class will tell you both the logical drive and the physical device from which Windows boots. Specifically, the Caption property will tell you which you're booting from.
For example, in powershell... | null | CC BY-SA 2.5 | null | 2008-09-02T21:10:17.577 | 2008-09-02T21:10:17.577 | null | null | 2,069 | null |
40,687 | 2 | null | 14,029 | 2 | null | You could also make the ListView ownerdraw. You then have complete control over how the items look whether they are selected or not or whether the ListView itself is enabled or not. The DrawListViewItemEventArgs provides a way to ask the ListView to draw individual parts of the item so you only have to draw the bits yo... | null | CC BY-SA 2.5 | null | 2008-09-02T21:12:48.600 | 2008-09-02T21:12:48.600 | null | null | 441 | null |
40,686 | 2 | null | 8,472 | 2 | null | Use a simple text CAPTCHA and then ask the users to enter the answer backwards or only the first letter, or the last, or another random thing.
Another idea is to make a ASCII image, like this (from Portal game end sequence):
```
.,---.
,/XM#MMMX;,
-%##########M%,
... | null | CC BY-SA 2.5 | null | 2008-09-02T21:12:32.500 | 2010-04-19T16:17:34.700 | 2010-04-19T16:17:34.700 | 63,550 | 3,485 | null |
40,689 | 1 | 41,566 | null | 20 | 6,583 | After test driving Google Chrome for 30 minutes or so, I like it, even if it seems bare-bones at the moment. The obvious way to add a few things I can't live without would be through plugins. Does anyone have any links to resources on how to get started building a plugin/addon for Chrome? Thanks.
| Tips / Resources for building a Google Chrome plugin | CC BY-SA 2.5 | 0 | 2008-09-02T21:13:11.860 | 2012-08-09T23:25:27.740 | 2010-02-24T16:16:33.573 | 42,223 | 3,351 | [
"browser",
"plugins",
"google-chrome"
] |
40,684 | 2 | null | 40,665 | 15 | null | From [http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc34982_1500/html/mig_gde/mig_gde160.htm](http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc34982_1500/html/mig_gde/mig_gde160.htm):
Inner and outer tables
The terms outer table and inner table describe the placement of the tables in an... | null | CC BY-SA 2.5 | null | 2008-09-02T21:11:33.190 | 2008-09-02T21:11:33.190 | null | null | 4,066 | null |
40,676 | 2 | null | 33,559 | 23 | null | To answer your questions one by one.
Get v2.0 of the CTP. I have used 1.0 and 2.0 and have not found any stability issues with the later version and it has more [functionality](http://blogs.msdn.com/powershell/archive/2007/11/06/what-s-new-in-ctp-of-powershell-2-0.aspx).
The best way to get started is to learn basic... | null | CC BY-SA 2.5 | null | 2008-09-02T21:08:55.427 | 2010-07-08T20:57:30.053 | 2010-07-08T20:57:30.053 | 3,305 | 3,305 | null |
40,690 | 2 | null | 39,395 | 0 | null | @Thomas Kammeyer:
Note that Atan(1.0) is quite often hardcoded, so 4*Atan(1.0) is not really an 'algorithm' if you're calling a library Atan function (an quite a few already suggested indeed proceed by replacing Atan(x) by a series (or infinite product) for it, then evaluating it at x=1.
Also, (which can be easily h... | null | CC BY-SA 2.5 | null | 2008-09-02T21:13:53.400 | 2008-09-02T21:13:53.400 | null | null | 2,638 | null |
40,697 | 2 | null | 36,707 | 11 | null | Having a single exit point reduces [Cyclomatic Complexity](http://en.wikipedia.org/wiki/Cyclomatic_complexity) and therefore, , reduces the probability that you will introduce bugs into your code when you change it. Practice however, tends to suggest that a more pragmatic approach is needed. I therefore tend to aim t... | null | CC BY-SA 2.5 | null | 2008-09-02T21:17:52.957 | 2008-09-02T21:17:52.957 | null | null | 3,305 | null |
40,692 | 1 | 40,728 | null | 9 | 13,733 | Is it possible to create a REST web service using ASP.NET 2.0? The articles and blog entries I am finding all seem to indicate that ASP.NET 3.5 with WCF is required to create REST web services with ASP.NET.
If it is possible to create REST web services in ASP.NET 2.0 can you provide an example.
Thanks!
| Possible to create REST web service with ASP.NET 2.0 | CC BY-SA 2.5 | 0 | 2008-09-02T21:15:42.210 | 2012-06-28T17:36:04.510 | null | null | 3,498 | [
"web-services",
"rest"
] |
40,693 | 2 | null | 40,680 | 9 | null | if you need the full URL as everything from the http to the querystring you will need to concatenate the following variables
```
Request.ServerVariables("HTTPS") // to check if it's HTTP or HTTPS
Request.ServerVariables("SERVER_NAME")
Request.ServerVariables("SCRIPT_NAME")
Request.ServerVariables("QUERY_STRING")
```... | null | CC BY-SA 2.5 | null | 2008-09-02T21:16:36.030 | 2008-09-02T21:16:36.030 | null | null | 202 | null |
40,698 | 2 | null | 40,665 | 6 | null | Of course, you write it this way:
```
SELECT *
FROM a
LEFT JOIN b ON b.id=a.id
```
The a,b syntax is evil.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:17:54.453 | 2008-09-02T21:17:54.453 | null | null | 3,043 | null |
40,701 | 2 | null | 40,692 | 0 | null | I'm only just beginning to use them, but from what I've seen 2.0 pretty assumes SOAP.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:19:22.390 | 2008-09-02T21:19:22.390 | null | null | 3,043 | null |
40,695 | 2 | null | 33,779 | 1 | null | [This](http://myitforum.com/cs2/blogs/yli628/archive/2008/07/28/powershell-script-to-retrieve-scheduled-tasks-on-a-remote-machine-task-scheduler-api.aspx) is a good article (be sure to read the other linked article in it) that discusses looking at th scheduled tasks on remote machines. It is not exactly what you were a... | null | CC BY-SA 2.5 | null | 2008-09-02T21:16:53.893 | 2008-09-02T21:16:53.893 | null | null | 1,358 | null |
40,699 | 2 | null | 40,689 | 3 | null | Chrome does support the netscape plugin api, but that is for displaying certain kinds of content.
You seem to be after a extention api, really firefox is the only major browser to encourage and support third party extentions to browsing capability (that aren't simply new toolbars)
Nothing in the developer documentati... | null | CC BY-SA 2.5 | null | 2008-09-02T21:17:55.733 | 2008-09-02T21:17:55.733 | null | null | 4,319 | null |
40,702 | 2 | null | 40,665 | 5 | null | ANSI-82 syntax
```
select
*
from
a
, b
where
a.id *= b.id
```
ANSI-92
```
select
*
from
a
left outer join b
on a.id = b.id
```
| null | CC BY-SA 2.5 | null | 2008-09-02T21:19:37.740 | 2008-09-02T21:19:37.740 | null | null | 1,293 | null |
40,704 | 2 | null | 40,545 | -1 | null | I'm guessing you're talking about .rdl files from Reporting Services? (If not, my answer might be wrong)
They're basically just XML, so you could load each one of them in and do an XPath query to get the node that contains the datasource and update it.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:20:41.293 | 2008-09-02T21:20:41.293 | null | null | 4,329 | null |
40,700 | 2 | null | 40,665 | 1 | null | ```
select * from a, b where a.id = b.id
```
Requires that a row exist in where b.id = a.id in order to return an answer
```
select * from a, b where a.id *= b.id
```
Will fill the columns from b with nulls when there wasn't a row in b where b.id = a.id.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:18:47.557 | 2008-09-02T21:18:47.557 | null | null | 4,066 | null |
40,706 | 2 | null | 39,704 | 0 | null | Oh! Yup, I've been through that, but using the raw Windows API calls some time ago, while developing an ActiveX control that detected the insertion of any kind of media. I'll try to unearth the code from my backups and see if I can tell you how I solved it. I'll subscribe to the RSS just in case somebody gets there fir... | null | CC BY-SA 2.5 | null | 2008-09-02T21:21:38.593 | 2008-09-02T21:21:38.593 | null | null | 2,384 | null |
40,703 | 1 | 40,714 | null | 163 | 71,585 | It will be important for developers wanting to develop for the chrome browser to be able to review existing bugs (to avoid too much pulling-out of hair), and to add new ones (to improve the thing). Yet I can't seem to find the bug tracking for this project. It open source, right?
| Where can I find and submit bug reports on Google's Chrome browser? | CC BY-SA 2.5 | 0 | 2008-09-02T21:19:39.627 | 2020-04-08T22:59:24.113 | 2008-09-03T09:11:21.507 | 1,037 | 1,190 | [
"google-chrome",
"bug-tracking"
] |
40,711 | 2 | null | 40,703 | 11 | null | This is the home page for the Code: [http://code.google.com/chromium/](http://code.google.com/chromium/)
And here's more info: [http://dev.chromium.org/getting-involved](http://dev.chromium.org/getting-involved) including the bug list
| null | CC BY-SA 2.5 | null | 2008-09-02T21:22:57.030 | 2008-09-02T21:22:57.030 | null | null | 4,329 | null |
40,709 | 2 | null | 40,703 | 3 | null | The Google Code site for the Chrome project is available at:
[http://code.google.com/chromium/](http://code.google.com/chromium/)
Facilities available allow you to:
-
-
-
Plus there are links to the development blog and a whole bunch of other useful stuff.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:22:24.083 | 2008-09-02T21:22:24.083 | null | null | 4,330 | null |
40,715 | 2 | null | 40,705 | 8 | null | "env" simply executes the first thing it finds in the PATH env var. To switch to different python, prepend the directory for that python's executable to the path before invoking your script.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:25:40.520 | 2008-09-02T21:25:40.520 | null | null | null | null |
40,713 | 2 | null | 40,703 | 3 | null | See the [Issues tab](http://code.google.com/p/chromium/issues/list) on Chrome's Google Code page.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:23:38.933 | 2008-09-02T21:23:38.933 | null | null | 2,600 | null |
40,718 | 2 | null | 40,680 | 5 | null | Thanks guys, I used a combination of both your answers @Christian and @Jonathan for my specific need.
```
"http://" + Request.ServerVariables["SERVER_NAME"] + Request.RawUrl.ToString()
```
I don't need to worry about secure http, needed the servername variable and the RawUrl handles the path from the domain name an... | null | CC BY-SA 2.5 | null | 2008-09-02T21:27:38.813 | 2008-09-02T21:27:38.813 | null | null | 648 | null |
40,719 | 1 | 40,724 | null | 2 | 204 | Do I need to register new extension types with Apple before I release an application that would create them on OS X?
| Should you register new extensions with Apple? | CC BY-SA 2.5 | null | 2008-09-02T21:27:38.970 | 2018-08-05T03:03:13.073 | 2018-08-05T03:03:13.073 | 995,714 | 4,314 | [
"macos",
"apple-developer"
] |
40,722 | 2 | null | 40,545 | 1 | null | Linked sub-reports (at least in CR XI) share the main report's datasource - presumably your report is already configured so that's not an option for you?
| null | CC BY-SA 2.5 | null | 2008-09-02T21:28:15.160 | 2008-09-02T21:28:15.160 | null | null | 2,902 | null |
40,714 | 2 | null | 40,703 | 145 | null | Google is calling it [Chromium](http://code.google.com/chromium/) on Google Code
The [Chromium Bug Reporting Page](http://dev.chromium.org/for-testers/bug-reporting-guidelines) is there and has the link to submit bugs listed. (Google Account Required)
[Here's a direct link](https://accounts.google.com/ServiceLogin?se... | null | CC BY-SA 4.0 | null | 2008-09-02T21:23:45.937 | 2019-02-23T06:55:27.203 | 2019-02-23T06:55:27.203 | 1,741,346 | 1,477 | null |
40,724 | 2 | null | 40,719 | 4 | null | No, there's no need to register extensions.
| null | CC BY-SA 2.5 | null | 2008-09-02T21:28:22.820 | 2008-09-02T21:28:22.820 | null | null | 3,560 | null |