question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24,470 | 40,434 | SQL Server: Examples of PIVOTing String data | Trying to find some simple SQL Server PIVOT examples. Most of the examples that I have found involve counting or summing up numbers. I just want to pivot some string data. For example, I have a query returning the following. Action1 VIEW Action1 EDIT Action2 VIEW Action3 VIEW Action3 EDIT I would like to use PIVOT (if ... | Remember that the MAX aggregate function will work on text as well as numbers. This query will only require the table to be scanned once. SELECT Action, MAX( CASE data WHEN 'View' THEN data ELSE '' END ) ViewCol, MAX( CASE data WHEN 'Edit' THEN data ELSE '' END ) EditCol FROM t GROUP BY Action | SQL Server: Examples of PIVOTing String data Trying to find some simple SQL Server PIVOT examples. Most of the examples that I have found involve counting or summing up numbers. I just want to pivot some string data. For example, I have a query returning the following. Action1 VIEW Action1 EDIT Action2 VIEW Action3 VIE... | TITLE:
SQL Server: Examples of PIVOTing String data
QUESTION:
Trying to find some simple SQL Server PIVOT examples. Most of the examples that I have found involve counting or summing up numbers. I just want to pivot some string data. For example, I have a query returning the following. Action1 VIEW Action1 EDIT Action... | [
"sql-server",
"t-sql",
"pivot"
] | 131 | 166 | 196,531 | 7 | 0 | 2008-08-23T18:36:33.953000 | 2008-09-02T19:55:19.270000 |
24,481 | 24,501 | What is the "best" way to store international addresses in a database? | What is the " best " way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. Also explain why you chose the type and length of each field. Note: You decide what fields you think are necessary. | Plain freeform text. Validating all the world's post/zip codes is too hard; a fixed list of countries is too politically sensitive; mandatory state/region/other administrative subdivision is just plain inappropriate (all too often I'm asked which county I live in--when I don't, because Greater London is not a county at... | What is the "best" way to store international addresses in a database? What is the " best " way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. Also explain why you chose the type and length of each fie... | TITLE:
What is the "best" way to store international addresses in a database?
QUESTION:
What is the " best " way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. Also explain why you chose the type and ... | [
"database",
"internationalization",
"globalization",
"street-address"
] | 39 | 25 | 14,201 | 6 | 0 | 2008-08-23T18:45:47.863000 | 2008-08-23T19:04:38.800000 |
24,496 | 24,498 | What Alternatives Are There to Model-View-Controller? | While going through university and from following the development of SO, I've heard a lot about the Model-View-Controller architectural design pattern. I inadvertently used the MVC pattern even before I knew what it was, and still use it in my everyday job. From what I've seen, it's probably the most popular pattern us... | Passive View - http://martinfowler.com/eaaDev/PassiveScreen.html Supervising Controller - http://martinfowler.com/eaaDev/SupervisingPresenter.html Model-View-Presenter - http://martinfowler.com/eaaDev/ModelViewPresenter.html My personal favorite is the Passive View. More testable than others I've seen including MVC. | What Alternatives Are There to Model-View-Controller? While going through university and from following the development of SO, I've heard a lot about the Model-View-Controller architectural design pattern. I inadvertently used the MVC pattern even before I knew what it was, and still use it in my everyday job. From wha... | TITLE:
What Alternatives Are There to Model-View-Controller?
QUESTION:
While going through university and from following the development of SO, I've heard a lot about the Model-View-Controller architectural design pattern. I inadvertently used the MVC pattern even before I knew what it was, and still use it in my ever... | [
"model-view-controller",
"mvp",
"passive-view",
"architectural-patterns"
] | 34 | 27 | 8,029 | 10 | 0 | 2008-08-23T19:01:06.890000 | 2008-08-23T19:03:06.900000 |
24,506 | 24,523 | What is the purpose of the AppManifest.xaml file in Silverlight applications? | In opening up the.xap file that is generated as output from a Silverlight application I've been tinkering with lately, I noticed a file called AppManifest.xaml. I've also noticed an option in the property pages for the Silverlight project that appears to allow you to optionally not output AppManifest.xaml for the proje... | Maybe this blog post will help: http://blogs.msdn.com/katriend/archive/2008/03/16/silverlight-2-structure-of-the-new-xap-file-silverlight-packaged-application.aspx. It discusses the.xap file and its parts including the AppManifest. To save people a link click, in short, it defines the application for deployment, its en... | What is the purpose of the AppManifest.xaml file in Silverlight applications? In opening up the.xap file that is generated as output from a Silverlight application I've been tinkering with lately, I noticed a file called AppManifest.xaml. I've also noticed an option in the property pages for the Silverlight project tha... | TITLE:
What is the purpose of the AppManifest.xaml file in Silverlight applications?
QUESTION:
In opening up the.xap file that is generated as output from a Silverlight application I've been tinkering with lately, I noticed a file called AppManifest.xaml. I've also noticed an option in the property pages for the Silve... | [
"silverlight"
] | 6 | 6 | 5,934 | 1 | 0 | 2008-08-23T19:06:17.063000 | 2008-08-23T19:25:14.990000 |
24,515 | 24,615 | "bad words" filter | Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a "good" bad words list to feed my db with... any hint / direction? Looking around with google I found this one, and it's a start, but nothing more. Yes, I know that this kind of filters are easily escaped... bu... | I didn't see any language specified but you can use this for PHP it will generate a RegEx for each instered work so that even intentional mis-spellings (i.e. @ss, i3itch ) will also be caught. "; $i++; } echo ' '; }?> RegEx Generator Word: List Words | "bad words" filter Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a "good" bad words list to feed my db with... any hint / direction? Looking around with google I found this one, and it's a start, but nothing more. Yes, I know that this kind of filters are e... | TITLE:
"bad words" filter
QUESTION:
Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a "good" bad words list to feed my db with... any hint / direction? Looking around with google I found this one, and it's a start, but nothing more. Yes, I know that this kin... | [
"list",
"dictionary",
"profanity"
] | 54 | 39 | 104,638 | 9 | 0 | 2008-08-23T19:17:34.353000 | 2008-08-23T21:27:01.017000 |
24,516 | 24,589 | Resolving reduce/reduce conflict in yacc/ocamlyacc | I'm trying to parse a grammar in ocamlyacc (pretty much the same as regular yacc) which supports function application with no operators (like in Ocaml or Haskell), and the normal assortment of binary and unary operators. I'm getting a reduce/reduce conflict with the '-' operator, which can be used both for subtraction ... | Unfortunately, the only answer I can come up with means increasing the complexity of the grammar. split expr into simple_expr and expr_with_prefix allow only simple_expr or (expr_with_prefix) in an APPLY The first step turns your reduce/reduce conflict into a shift/reduce conflict, but the parentheses resolve that. You... | Resolving reduce/reduce conflict in yacc/ocamlyacc I'm trying to parse a grammar in ocamlyacc (pretty much the same as regular yacc) which supports function application with no operators (like in Ocaml or Haskell), and the normal assortment of binary and unary operators. I'm getting a reduce/reduce conflict with the '-... | TITLE:
Resolving reduce/reduce conflict in yacc/ocamlyacc
QUESTION:
I'm trying to parse a grammar in ocamlyacc (pretty much the same as regular yacc) which supports function application with no operators (like in Ocaml or Haskell), and the normal assortment of binary and unary operators. I'm getting a reduce/reduce co... | [
"parsing",
"ocaml",
"grammar",
"yacc"
] | 11 | 9 | 9,022 | 2 | 0 | 2008-08-23T19:18:48.050000 | 2008-08-23T20:49:00.047000 |
24,528 | 24,531 | What are your experiences running SVN on Windows? | I'm curious to hear the experiences of those who are currently running their SVN server on Windows. Jeff Atwood has a post on how to setup SVN as a Windows service. It's a great first step, but it doesn't touch on other topics, such as: What to use for a web-based repository browser? WebSVN can work on Windows, but it ... | Use VisualSVN Server. It integrates with Windows authentication and it handles all the apache setup. It's as painless as SVN can be on Windows. | What are your experiences running SVN on Windows? I'm curious to hear the experiences of those who are currently running their SVN server on Windows. Jeff Atwood has a post on how to setup SVN as a Windows service. It's a great first step, but it doesn't touch on other topics, such as: What to use for a web-based repos... | TITLE:
What are your experiences running SVN on Windows?
QUESTION:
I'm curious to hear the experiences of those who are currently running their SVN server on Windows. Jeff Atwood has a post on how to setup SVN as a Windows service. It's a great first step, but it doesn't touch on other topics, such as: What to use for... | [
"windows",
"svn"
] | 11 | 17 | 1,916 | 12 | 0 | 2008-08-23T19:30:47.660000 | 2008-08-23T19:33:58.497000 |
24,541 | 24,548 | Create a database from another database? | Is there an automatic way in SQL Server 2005 to create a database from several tables in another database? I need to work on a project and I only need a few tables to run it locally, and I don't want to make a backup of a 50 gig DB. UPDATE I tried the Tasks -> Export Data in Management studio, and while it created a ne... | You can use the Database Publishing Wizard for this. It will let you select a set of tables with or without the data and export it into a.sql script file that you can then run against your other db to recreate the tables and/or the data. | Create a database from another database? Is there an automatic way in SQL Server 2005 to create a database from several tables in another database? I need to work on a project and I only need a few tables to run it locally, and I don't want to make a backup of a 50 gig DB. UPDATE I tried the Tasks -> Export Data in Man... | TITLE:
Create a database from another database?
QUESTION:
Is there an automatic way in SQL Server 2005 to create a database from several tables in another database? I need to work on a project and I only need a few tables to run it locally, and I don't want to make a backup of a 50 gig DB. UPDATE I tried the Tasks -> ... | [
"sql-server-2005",
"t-sql"
] | 5 | 4 | 6,910 | 5 | 0 | 2008-08-23T19:51:31.433000 | 2008-08-23T19:55:31.143000 |
24,542 | 24,560 | Using bitwise operators for Booleans in C++ | Is there any reason not to use the bitwise operators &, |, and ^ for "bool" values in C++? I sometimes run into situations where I want exactly one of two conditions to be true (XOR), so I just throw the ^ operator into a conditional expression. I also sometimes want all parts of a condition to be evaluated whether the... | || and && are boolean operators and the built-in ones are guaranteed to return either true or false. Nothing else. |, & and ^ are bitwise operators. When the domain of numbers you operate on is just 1 and 0, then they are exactly the same, but in cases where your booleans are not strictly 1 and 0 – as is the case with ... | Using bitwise operators for Booleans in C++ Is there any reason not to use the bitwise operators &, |, and ^ for "bool" values in C++? I sometimes run into situations where I want exactly one of two conditions to be true (XOR), so I just throw the ^ operator into a conditional expression. I also sometimes want all part... | TITLE:
Using bitwise operators for Booleans in C++
QUESTION:
Is there any reason not to use the bitwise operators &, |, and ^ for "bool" values in C++? I sometimes run into situations where I want exactly one of two conditions to be true (XOR), so I just throw the ^ operator into a conditional expression. I also somet... | [
"c++",
"boolean",
"bitwise-operators"
] | 108 | 71 | 88,071 | 9 | 0 | 2008-08-23T19:52:39.933000 | 2008-08-23T20:06:20.430000 |
24,546 | 24,574 | Why can't I fetch wikipedia pages with LWP::Simple? | I'm trying to fetch Wikipedia pages using LWP::Simple, but they're not coming back. This code: #!/usr/bin/perl use strict; use LWP::Simple;
print get("http://en.wikipedia.org/wiki/Stack_overflow"); doesn't print anything. But if I use some other webpage, say http://www.google.com, it works fine. Is there some other na... | Apparently Wikipedia blocks LWP::Simple requests: http://www.perlmonks.org/?node_id=695886 The following works instead: #!/usr/bin/perl use strict; use LWP::UserAgent;
my $url = "http://en.wikipedia.org/wiki/Stack_overflow";
my $ua = LWP::UserAgent->new(); my $res = $ua->get($url);
print $res->content; | Why can't I fetch wikipedia pages with LWP::Simple? I'm trying to fetch Wikipedia pages using LWP::Simple, but they're not coming back. This code: #!/usr/bin/perl use strict; use LWP::Simple;
print get("http://en.wikipedia.org/wiki/Stack_overflow"); doesn't print anything. But if I use some other webpage, say http://w... | TITLE:
Why can't I fetch wikipedia pages with LWP::Simple?
QUESTION:
I'm trying to fetch Wikipedia pages using LWP::Simple, but they're not coming back. This code: #!/usr/bin/perl use strict; use LWP::Simple;
print get("http://en.wikipedia.org/wiki/Stack_overflow"); doesn't print anything. But if I use some other web... | [
"perl",
"wikipedia",
"lwp"
] | 11 | 18 | 3,671 | 5 | 0 | 2008-08-23T19:54:09.650000 | 2008-08-23T20:33:00.787000 |
24,551 | 24,558 | Initialize class fields in constructor or at declaration? | I've been programming in C# and Java recently and I am curious where the best place is to initialize my class fields. Should I do it at declaration?: public class Dice { private int topFace = 1; private Random myRand = new Random();
public void Roll() { //...... } } or in a constructor?: public class Dice { private in... | My rules: Don't initialize with the default values in declaration ( null, false, 0, 0.0 …). Prefer initialization in declaration if you don't have a constructor parameter that changes the value of the field. If the value of the field changes because of a constructor parameter put the initialization in the constructors.... | Initialize class fields in constructor or at declaration? I've been programming in C# and Java recently and I am curious where the best place is to initialize my class fields. Should I do it at declaration?: public class Dice { private int topFace = 1; private Random myRand = new Random();
public void Roll() { //........ | TITLE:
Initialize class fields in constructor or at declaration?
QUESTION:
I've been programming in C# and Java recently and I am curious where the best place is to initialize my class fields. Should I do it at declaration?: public class Dice { private int topFace = 1; private Random myRand = new Random();
public voi... | [
"java"
] | 470 | 347 | 168,085 | 16 | 0 | 2008-08-23T19:59:42.083000 | 2008-08-23T20:04:09.530000 |
24,556 | 24,592 | Attaching entities to data contexts | In LINQ to SQL, is it possible to check to see if an entity is already part of the data context before trying to attach it? A little context if it helps... I have this code in my global.asax as a helper method. Normally, between requests, this isn't a problem. But right after signing in, this is getting called more tha... | I believe there are two methods to do this. DataContext.TableName.Contains(Item) or we use the id field. If the item is inserted in the Database, then it will be assigned a row. if(Item.id == 0) DataContext.Insert(Item) else DataContext.Update(Item) | Attaching entities to data contexts In LINQ to SQL, is it possible to check to see if an entity is already part of the data context before trying to attach it? A little context if it helps... I have this code in my global.asax as a helper method. Normally, between requests, this isn't a problem. But right after signing... | TITLE:
Attaching entities to data contexts
QUESTION:
In LINQ to SQL, is it possible to check to see if an entity is already part of the data context before trying to attach it? A little context if it helps... I have this code in my global.asax as a helper method. Normally, between requests, this isn't a problem. But r... | [
"c#",
"linq-to-sql"
] | 0 | 0 | 216 | 2 | 0 | 2008-08-23T20:03:52.120000 | 2008-08-23T20:54:12.047000 |
24,579 | 24,607 | WYSIWYG editor gem for Rails? | Is there a good ruby gem for a WYSIWYG editor that will easily work with a rails app? | Though it's certainly not a direct answer, in the past I've found I prefer to use RedCloth (or a Markdown parser if you don't enjoy Textile) and use a simple textarea with an AJAXy preview. Generally speaking, WYSIWYG editors have a long history of creating redundant tags and similar, leading to potentially broken piec... | WYSIWYG editor gem for Rails? Is there a good ruby gem for a WYSIWYG editor that will easily work with a rails app? | TITLE:
WYSIWYG editor gem for Rails?
QUESTION:
Is there a good ruby gem for a WYSIWYG editor that will easily work with a rails app?
ANSWER:
Though it's certainly not a direct answer, in the past I've found I prefer to use RedCloth (or a Markdown parser if you don't enjoy Textile) and use a simple textarea with an AJ... | [
"ruby-on-rails",
"ruby",
"rubygems"
] | 18 | 24 | 17,077 | 12 | 0 | 2008-08-23T20:39:23.067000 | 2008-08-23T21:11:42.677000 |
24,580 | 34,063 | How do you automate a Visual Studio build? | How do you turn a Visual Studio build that you'd perform in the IDE into a script that you can run from the command line? | With VS2008 you can do this: devenv solution.sln /build configuration | How do you automate a Visual Studio build? How do you turn a Visual Studio build that you'd perform in the IDE into a script that you can run from the command line? | TITLE:
How do you automate a Visual Studio build?
QUESTION:
How do you turn a Visual Studio build that you'd perform in the IDE into a script that you can run from the command line?
ANSWER:
With VS2008 you can do this: devenv solution.sln /build configuration | [
"visual-studio",
"build-automation"
] | 52 | 32 | 57,778 | 11 | 0 | 2008-08-23T20:42:25.943000 | 2008-08-29T06:38:23.303000 |
24,595 | 24,613 | Code Classic ASP in Linux | What should i use to code Classic ASP under Linux. I have really tried to use Emacs and Vim but I don't have the time to learn them. What i'm looking for is: Syntax highlighting Code Browser (Ctags) Preferably som sort of code insight Something like Ultra Edit or E-texteditor. | I'm not sure what you're asking here, but if you are simply looking for a text-editor, my recommendations would be: Console-based: jed (simple, with a DOS Edit-like menubar, supports syntax-highlighing) nano / pico (even simpler) X-based: Kate (KDE, syntax-highlighing) Mousepad (like notepad) SciTE (syntax-highlighing)... | Code Classic ASP in Linux What should i use to code Classic ASP under Linux. I have really tried to use Emacs and Vim but I don't have the time to learn them. What i'm looking for is: Syntax highlighting Code Browser (Ctags) Preferably som sort of code insight Something like Ultra Edit or E-texteditor. | TITLE:
Code Classic ASP in Linux
QUESTION:
What should i use to code Classic ASP under Linux. I have really tried to use Emacs and Vim but I don't have the time to learn them. What i'm looking for is: Syntax highlighting Code Browser (Ctags) Preferably som sort of code insight Something like Ultra Edit or E-texteditor... | [
"linux",
"asp-classic",
"editor"
] | 1 | 4 | 1,383 | 2 | 0 | 2008-08-23T20:56:56.423000 | 2008-08-23T21:23:58.200000 |
24,596 | 24,707 | What are the pros and cons of the assorted Java web frameworks? | I am considering creating my own website using Java and am trying to decide what framework to use. However, doing a quick search for Java frameworks returns more than 50 to choose from! My website is just going to be for my own enjoyment of building it in the beginning, but if it becomes popular, it would be good for i... | I've used Tapestry 3, Wicket, Echo, and JSF fairly extensively. I'd really recommend you look those over and pick the one that appears the easiest for you, and to most closely fit the way you prefer to work. Of them, the most comfortable for me to work with was Wicket, due to the lightweight nature of component buildin... | What are the pros and cons of the assorted Java web frameworks? I am considering creating my own website using Java and am trying to decide what framework to use. However, doing a quick search for Java frameworks returns more than 50 to choose from! My website is just going to be for my own enjoyment of building it in ... | TITLE:
What are the pros and cons of the assorted Java web frameworks?
QUESTION:
I am considering creating my own website using Java and am trying to decide what framework to use. However, doing a quick search for Java frameworks returns more than 50 to choose from! My website is just going to be for my own enjoyment ... | [
"java",
"web-frameworks",
"rich-internet-application"
] | 85 | 59 | 19,418 | 24 | 0 | 2008-08-23T20:58:25.437000 | 2008-08-23T23:39:36.317000 |
24,610 | 24,658 | Vi editing for Visual Studio | I'm used to the Vi(m) editor and am using MS Visual Studio 2005 at work. I couldn't find a free Vi add-in (there's only one for the 2003 version). I googled a bit, saw that there was a 'Google summer of code' project this year to write such an add-in, and am eagerly awaiting the result. I've also heard of ViEmu (not fr... | ViEmu works great with Visual Studio. I used Vi(m) strictly in Linux, but I was turned on to bringing the Vi(m) editing process into the Windows world by JP Boodhoo. JP praises about it also. | Vi editing for Visual Studio I'm used to the Vi(m) editor and am using MS Visual Studio 2005 at work. I couldn't find a free Vi add-in (there's only one for the 2003 version). I googled a bit, saw that there was a 'Google summer of code' project this year to write such an add-in, and am eagerly awaiting the result. I'v... | TITLE:
Vi editing for Visual Studio
QUESTION:
I'm used to the Vi(m) editor and am using MS Visual Studio 2005 at work. I couldn't find a free Vi add-in (there's only one for the 2003 version). I googled a bit, saw that there was a 'Google summer of code' project this year to write such an add-in, and am eagerly awaiti... | [
"visual-studio",
"vim",
"ide",
"editor"
] | 12 | 6 | 1,651 | 2 | 0 | 2008-08-23T21:19:34.640000 | 2008-08-23T22:08:49.607000 |
24,622 | 24,631 | Setting PHP Include Path on a per site basis? | I can set the PHP include path in the php.ini: include_path = /path/to/site/includes/ But then other websites are affected so that is no good. I can set the PHP include in the start of every file: $path = '/path/to/site/includes/'; set_include_path(get_include_path(). PATH_SEPARATOR. $path); But that seems like bad pra... | If you're using apache as a webserver you can override (if you allow it) settings using.htaccess files. See the PHP manual for details. Basically you put a file called.htaccess in your website root, which contains some PHP ini values. Provided you configured Apache to allow overrides, this site will use all values in y... | Setting PHP Include Path on a per site basis? I can set the PHP include path in the php.ini: include_path = /path/to/site/includes/ But then other websites are affected so that is no good. I can set the PHP include in the start of every file: $path = '/path/to/site/includes/'; set_include_path(get_include_path(). PATH_... | TITLE:
Setting PHP Include Path on a per site basis?
QUESTION:
I can set the PHP include path in the php.ini: include_path = /path/to/site/includes/ But then other websites are affected so that is no good. I can set the PHP include in the start of every file: $path = '/path/to/site/includes/'; set_include_path(get_inc... | [
"php",
"include"
] | 19 | 17 | 24,805 | 7 | 0 | 2008-08-23T21:39:54.793000 | 2008-08-23T21:43:16.687000 |
24,626 | 24,748 | Abstraction VS Information Hiding VS Encapsulation | Can you tell me what is the difference between abstraction and information hiding in software development? I am confused. Abstraction hides detail implementation and information hiding abstracts whole details of something. Update: I found a good answer for these three concepts. See the separate answer below for several... | Go to the source! Grady Booch says (in Object Oriented Analysis and Design, page 49, second edition): Abstraction and encapsulation are complementary concepts: abstraction focuses on the observable behavior of an object... encapsulation focuses upon the implementation that gives rise to this behavior... encapsulation i... | Abstraction VS Information Hiding VS Encapsulation Can you tell me what is the difference between abstraction and information hiding in software development? I am confused. Abstraction hides detail implementation and information hiding abstracts whole details of something. Update: I found a good answer for these three ... | TITLE:
Abstraction VS Information Hiding VS Encapsulation
QUESTION:
Can you tell me what is the difference between abstraction and information hiding in software development? I am confused. Abstraction hides detail implementation and information hiding abstracts whole details of something. Update: I found a good answe... | [
"encapsulation",
"abstraction",
"glossary",
"ooad",
"information-hiding"
] | 186 | 163 | 161,978 | 22 | 0 | 2008-08-23T21:41:49.670000 | 2008-08-24T00:57:31.370000 |
24,644 | 24,671 | Hooking my program with windows explorer's rename event | Is there any way, in any language, to hook my program when a user renames a file? For example: A user renames a file and presses enter (or clicks away) to confirm the rename action. BEFORE the file is actually renamed, my program "listens" to this event and pops up a message saying "Are you sure you want to rename C:\t... | You can probably solve this by using the FileSystemWatcher class in.NET framework. From the class remarks: You can watch for renaming, deletion, or creation of files or directories. For example, to watch for renaming of text files, set the Filter property to "*.txt" and call the WaitForChanged method with a Renamed spe... | Hooking my program with windows explorer's rename event Is there any way, in any language, to hook my program when a user renames a file? For example: A user renames a file and presses enter (or clicks away) to confirm the rename action. BEFORE the file is actually renamed, my program "listens" to this event and pops u... | TITLE:
Hooking my program with windows explorer's rename event
QUESTION:
Is there any way, in any language, to hook my program when a user renames a file? For example: A user renames a file and presses enter (or clicks away) to confirm the rename action. BEFORE the file is actually renamed, my program "listens" to thi... | [
"c#",
".net",
"file",
"io"
] | 7 | 5 | 2,006 | 3 | 0 | 2008-08-23T21:56:47.810000 | 2008-08-23T22:31:11.813000 |
24,648 | 24,682 | What's the best way to get to know linux or BSD kernel internals? | I'd like to gain better knowledge of operating system internals. Process management, memory management, and stuff like that. I was thinking of learning by getting to know either linux or BSD kernel. Which one kernel is better for learning purposes? What's the best place to start? Can you recommend any good books? | In college, I had an operating systems class where we used a book by Tanenbaum. In the class, we implemented a device driver in the Minix operating system. It was a lot of fun, and we learned a lot. One thing to note though, if you pick Minix, it is designed for learning. It is a microkernel, while Linux and BSD are a ... | What's the best way to get to know linux or BSD kernel internals? I'd like to gain better knowledge of operating system internals. Process management, memory management, and stuff like that. I was thinking of learning by getting to know either linux or BSD kernel. Which one kernel is better for learning purposes? What'... | TITLE:
What's the best way to get to know linux or BSD kernel internals?
QUESTION:
I'd like to gain better knowledge of operating system internals. Process management, memory management, and stuff like that. I was thinking of learning by getting to know either linux or BSD kernel. Which one kernel is better for learni... | [
"linux",
"operating-system",
"kernel",
"bsd",
"osdev"
] | 22 | 12 | 6,108 | 12 | 0 | 2008-08-23T21:58:53.500000 | 2008-08-23T22:51:16.073000 |
24,675 | 24,689 | Tactics for using PHP in a high-load site | Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques. I'm developing a tool in PHP that could attain quite a lot of users, if it works out right. Howe... | No two sites are alike. You really need to get a tool like jmeter and benchmark to see where your problem points will be. You can spend a lot of time guessing and improving, but you won't see real results until you measure and compare your changes. For example, for many years, the MySQL query cache was the solution to ... | Tactics for using PHP in a high-load site Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques. I'm developing a tool in PHP that could attain quite a... | TITLE:
Tactics for using PHP in a high-load site
QUESTION:
Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques. I'm developing a tool in PHP that co... | [
"php",
"performance",
"high-load"
] | 253 | 94 | 27,487 | 24 | 0 | 2008-08-23T22:37:49.707000 | 2008-08-23T23:03:03.703000 |
24,678 | 25,124 | JavaScript editor within Eclipse | I'm looking for the best JavaScript editor available as an Eclipse plugin. I've been using Spket which is good. But, is there more better one? | Disclaimer, I work at Aptana. I would point out there are some nice features for JS that you might not get so easily elsewhere. One is plugin-level integration of JS libraries that provide CodeAssist, samples, snippets and easy inclusion of the libraries files into your project; we provide the plugins for many of the m... | JavaScript editor within Eclipse I'm looking for the best JavaScript editor available as an Eclipse plugin. I've been using Spket which is good. But, is there more better one? | TITLE:
JavaScript editor within Eclipse
QUESTION:
I'm looking for the best JavaScript editor available as an Eclipse plugin. I've been using Spket which is good. But, is there more better one?
ANSWER:
Disclaimer, I work at Aptana. I would point out there are some nice features for JS that you might not get so easily ... | [
"javascript",
"eclipse",
"plugins",
"editor"
] | 133 | 14 | 104,281 | 8 | 0 | 2008-08-23T22:42:50.757000 | 2008-08-24T15:52:48.160000 |
24,680 | 24,704 | Using Subversion with Visual Basic 6 | My team is moving from Visual SourceSafe to Subversion soon, while developing/supporting a legacy project in Visual Basic 6.0, so I have a couple of questions: What's the best tool for Subversion IDE integration in Visual Studio 6? (or is it not worth the trouble...) Are there any best practices for using Subversion wi... | I would agree that Tortoise SVN in Windows Explorer would be the best way to use SVN with VB6. The biggest change you will find migrating to SVN is the idea of "Check out" and "Check in" aren't exactly the same as "Update" and "Commit"... thus, any IDE integration with VB6 is limited because VB6 supports MSSCCI, a chec... | Using Subversion with Visual Basic 6 My team is moving from Visual SourceSafe to Subversion soon, while developing/supporting a legacy project in Visual Basic 6.0, so I have a couple of questions: What's the best tool for Subversion IDE integration in Visual Studio 6? (or is it not worth the trouble...) Are there any b... | TITLE:
Using Subversion with Visual Basic 6
QUESTION:
My team is moving from Visual SourceSafe to Subversion soon, while developing/supporting a legacy project in Visual Basic 6.0, so I have a couple of questions: What's the best tool for Subversion IDE integration in Visual Studio 6? (or is it not worth the trouble..... | [
"svn",
"vb6"
] | 20 | 16 | 16,393 | 7 | 0 | 2008-08-23T22:46:06.100000 | 2008-08-23T23:33:46.610000 |
24,715 | 24,754 | SQL many-to-many matching | I'm implementing a tagging system for a website. There are multiple tags per object and multiple objects per tag. This is accomplished by maintaining a table with two values per record, one for the ids of the object and the tag. I'm looking to write a query to find the objects that match a given set of tags. Suppose I ... | Given: object table (primary key id) objecttags table (foreign keys objectId, tagid) tags table (primary key id) SELECT distinct o.* from object o join objecttags ot on o.Id = ot.objectid join tags t on ot.tagid = t.id where t.Name = 'fruit' or t.name = 'food'; This seems backwards, since you want and, but the issue is... | SQL many-to-many matching I'm implementing a tagging system for a website. There are multiple tags per object and multiple objects per tag. This is accomplished by maintaining a table with two values per record, one for the ids of the object and the tag. I'm looking to write a query to find the objects that match a giv... | TITLE:
SQL many-to-many matching
QUESTION:
I'm implementing a tagging system for a website. There are multiple tags per object and multiple objects per tag. This is accomplished by maintaining a table with two values per record, one for the ids of the object and the tag. I'm looking to write a query to find the object... | [
"sql",
"many-to-many",
"tagging"
] | 3 | 4 | 5,043 | 6 | 0 | 2008-08-24T00:09:34.760000 | 2008-08-24T01:02:22.747000 |
24,723 | 535,022 | Best regex to catch XSS (Cross-site Scripting) attack (in Java)? | Jeff actually posted about this in Sanitize HTML. But his example is in C# and I'm actually more interested in a Java version. Does anyone have a better version for Java? Is his example good enough to just convert directly from C# to Java? [Update] I have put a bounty on this question because SO wasn't as popular when ... | Don't do this with regular expressions. Remember, you're not protecting just against valid HTML; you're protecting against the DOM that web browsers create. Browsers can be tricked into producing valid DOM from invalid HTML quite easily. For example, see this list of obfuscated XSS attacks. Are you prepared to tailor a... | Best regex to catch XSS (Cross-site Scripting) attack (in Java)? Jeff actually posted about this in Sanitize HTML. But his example is in C# and I'm actually more interested in a Java version. Does anyone have a better version for Java? Is his example good enough to just convert directly from C# to Java? [Update] I have... | TITLE:
Best regex to catch XSS (Cross-site Scripting) attack (in Java)?
QUESTION:
Jeff actually posted about this in Sanitize HTML. But his example is in C# and I'm actually more interested in a Java version. Does anyone have a better version for Java? Is his example good enough to just convert directly from C# to Jav... | [
"java",
"html",
"regex",
"xss"
] | 34 | 81 | 101,367 | 10 | 0 | 2008-08-24T00:21:10.413000 | 2009-02-11T00:59:10.610000 |
24,730 | 24,744 | What is this 'Multiple-step OLE DB' error? | I'm doing a little bit of work on a horrid piece of software built by Bangalores best. It's written in mostly classic ASP/VbScript, but "ported" to ASP.NET, though most of the code is classic ASP style in the ASPX pages:( I'm getting this message when it tries to connect to my local database: Multiple-step OLE DB opera... | I ran into this a long time ago with working in ASP. I found this knowledge base article and it helped me out. I hope it solves your problem. http://support.microsoft.com/kb/269495 If this doesn't work and everything checks out, then it is probably your connection string. I would try these steps next: Remove: DRIVER={S... | What is this 'Multiple-step OLE DB' error? I'm doing a little bit of work on a horrid piece of software built by Bangalores best. It's written in mostly classic ASP/VbScript, but "ported" to ASP.NET, though most of the code is classic ASP style in the ASPX pages:( I'm getting this message when it tries to connect to my... | TITLE:
What is this 'Multiple-step OLE DB' error?
QUESTION:
I'm doing a little bit of work on a horrid piece of software built by Bangalores best. It's written in mostly classic ASP/VbScript, but "ported" to ASP.NET, though most of the code is classic ASP style in the ASPX pages:( I'm getting this message when it trie... | [
"asp-classic",
"oledb",
"ado"
] | 3 | 4 | 13,127 | 3 | 0 | 2008-08-24T00:35:22.390000 | 2008-08-24T00:49:21.233000 |
24,731 | 24,743 | Displaying version of underlying software in footer of web app? | I am thinking about providing a version of say, the database schema and the dlls for business logic in the footer of my web application. Is this advised? Are there any pitfalls, or pointers of how to do this best? Usability concerns? I already have a version scheme, for both schema and dlls, used in my CI solution. | I quite like what is done e.g. here. If you look towards the bottom of the page, there's a piece of text "powered by eve community". If you click that text you get a small chunk of technical information. To me, this is a nice tradeoff between having the (useful) information readily available (for bug reports, etc.) and... | Displaying version of underlying software in footer of web app? I am thinking about providing a version of say, the database schema and the dlls for business logic in the footer of my web application. Is this advised? Are there any pitfalls, or pointers of how to do this best? Usability concerns? I already have a versi... | TITLE:
Displaying version of underlying software in footer of web app?
QUESTION:
I am thinking about providing a version of say, the database schema and the dlls for business logic in the footer of my web application. Is this advised? Are there any pitfalls, or pointers of how to do this best? Usability concerns? I al... | [
"web-applications",
"assemblies",
"versioning"
] | 5 | 6 | 2,175 | 3 | 0 | 2008-08-24T00:38:00.653000 | 2008-08-24T00:48:37.913000 |
24,734 | 24,755 | SelectNodes not working on stackoverflow feed | I'm trying to add support for stackoverflow feeds in my rss reader but SelectNodes and SelectSingleNode have no effect. This is probably something to do with ATOM and xml namespaces that I just don't understand yet. I have gotten it to work by removing all attributes from the feed tag, but that's a hack and I would lik... | Don't confuse the namespace names in the XML file with the namespace names for your namespace manager. They're both shortcuts, and they don't necessarily have to match. So you can register " http://www.w3.org/2005/Atom " as "atom", and then do a SelectNodes for "atom:entry". | SelectNodes not working on stackoverflow feed I'm trying to add support for stackoverflow feeds in my rss reader but SelectNodes and SelectSingleNode have no effect. This is probably something to do with ATOM and xml namespaces that I just don't understand yet. I have gotten it to work by removing all attributes from t... | TITLE:
SelectNodes not working on stackoverflow feed
QUESTION:
I'm trying to add support for stackoverflow feeds in my rss reader but SelectNodes and SelectSingleNode have no effect. This is probably something to do with ATOM and xml namespaces that I just don't understand yet. I have gotten it to work by removing all... | [
"c#",
".net",
"rss",
"atom-feed"
] | 16 | 9 | 8,518 | 4 | 0 | 2008-08-24T00:40:48.773000 | 2008-08-24T01:03:03.587000 |
24,772 | 24,783 | How do I write a Firefox Addon? | What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere? | We tried to make https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions answer all those questions. The first three links in the documentation section are about getting started (that includes something like Adam's link, before it became stale). The newsgroup and the irc channel in the Community section ... | How do I write a Firefox Addon? What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere? | TITLE:
How do I write a Firefox Addon?
QUESTION:
What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere?
ANSWER:
We tried to make https://developer.mozilla.org/en-US/docs/Mozil... | [
"firefox",
"firefox-addon",
"add-on"
] | 145 | 98 | 88,639 | 6 | 0 | 2008-08-24T01:26:34.467000 | 2008-08-24T01:42:07.893000 |
24,797 | 25,073 | Effectively Converting dates between UTC and Local (ie. PST) time in SQL 2005 | What is the best way to convert a UTC datetime into local datetime. It isn't as simple as a getutcdate() and getdate() difference because the difference changes depending on what the date is. CLR integration isn't an option for me either. The solution that I had come up with for this problem a few months back was to ha... | Create two tables and then join to them to convert stored GMT dates to local time: TimeZones e.g. --------- ---- TimeZoneId 19 Name Eastern (GMT -5) Offset -5 Create the daylight savings table and populate it with as much information as you can (local laws change all the time so there's no way to predict what the data ... | Effectively Converting dates between UTC and Local (ie. PST) time in SQL 2005 What is the best way to convert a UTC datetime into local datetime. It isn't as simple as a getutcdate() and getdate() difference because the difference changes depending on what the date is. CLR integration isn't an option for me either. The... | TITLE:
Effectively Converting dates between UTC and Local (ie. PST) time in SQL 2005
QUESTION:
What is the best way to convert a UTC datetime into local datetime. It isn't as simple as a getutcdate() and getdate() difference because the difference changes depending on what the date is. CLR integration isn't an option ... | [
"sql-server"
] | 30 | 29 | 81,514 | 13 | 0 | 2008-08-24T02:08:15.553000 | 2008-08-24T14:17:17.423000 |
24,812 | 24,927 | Recommendations needed for good AI references | I've been asked to help out on an XNA project with the AI. I'm not totally new to the concepts (pathfinding, flocking, etc.) but this would be the first "real" code. I'd be very thankful for any resources (links or books); I want to make sure I do this right. | These links might be useful to check out, for a beginning (even if most are mostly game-oriented): http://www.a-i.com http://www.kynogon.com http://openai.sourceforge.net http://www.botspot.com http://aigamedev.com http://www.aiwisdom.com http://igda.org/ai/ http://gamedev.net and http://www.gameai.com, who has already... | Recommendations needed for good AI references I've been asked to help out on an XNA project with the AI. I'm not totally new to the concepts (pathfinding, flocking, etc.) but this would be the first "real" code. I'd be very thankful for any resources (links or books); I want to make sure I do this right. | TITLE:
Recommendations needed for good AI references
QUESTION:
I've been asked to help out on an XNA project with the AI. I'm not totally new to the concepts (pathfinding, flocking, etc.) but this would be the first "real" code. I'd be very thankful for any resources (links or books); I want to make sure I do this rig... | [
"xna",
"artificial-intelligence"
] | 23 | 6 | 1,982 | 13 | 0 | 2008-08-24T02:40:19.097000 | 2008-08-24T08:36:14.590000 |
24,813 | 24,825 | Automating MSI Build Process | Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? I know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers. | Short of the method you mentioned above (devenv), there is no way to do this with the current version of MSBuild. The method the Visual Studio team uses to run their MSI builds is with Windows Installer XML. You can learn more about using WiX to deploy setup packages here. Please note WiX doesn't support vdproj files s... | Automating MSI Build Process Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? I know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers. | TITLE:
Automating MSI Build Process
QUESTION:
Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? I know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers.
ANSWER:
Shor... | [
"build-process",
"build-automation"
] | 11 | 8 | 2,884 | 2 | 0 | 2008-08-24T02:42:07.797000 | 2008-08-24T03:11:46.400000 |
24,816 | 25,207 | Escaping HTML strings with jQuery | Does anyone know of an easy way to escape HTML from strings in jQuery? I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (preventing JavaScript/HTML injection attacks). I'm sure it's possible to extend jQuery to do this, but I don't know enough about the framework at... | Since you're using jQuery, you can just set the element's text property: // before: // text var someHtmlString = " ";
// set a DIV's text: $("div.someClass").text(someHtmlString); // after: // <script>alert('hi!');</script> // get the text in a string: var escaped = $(" ").text(someHtmlString).html(); // value: // <sc... | Escaping HTML strings with jQuery Does anyone know of an easy way to escape HTML from strings in jQuery? I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (preventing JavaScript/HTML injection attacks). I'm sure it's possible to extend jQuery to do this, but I don't ... | TITLE:
Escaping HTML strings with jQuery
QUESTION:
Does anyone know of an easy way to escape HTML from strings in jQuery? I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (preventing JavaScript/HTML injection attacks). I'm sure it's possible to extend jQuery to do ... | [
"javascript",
"jquery",
"string",
"escaping"
] | 657 | 486 | 771,985 | 27 | 0 | 2008-08-24T02:52:42.280000 | 2008-08-24T17:22:15.480000 |
24,823 | 25,016 | Implementing a custom Windows Workflow activity that executes an asynchronous operation | I'm having some conceptual trouble on figuring out how to best implement this... I want to create a custom Activity class for Windows Workflow. The activity has to call out to a third party library method that itself runs another process asynchronously and may take anywhere from seconds to many hours to complete. This ... | Kirk Allen Evans wrote an interesting blog about this with some pretty good code examples. | Implementing a custom Windows Workflow activity that executes an asynchronous operation I'm having some conceptual trouble on figuring out how to best implement this... I want to create a custom Activity class for Windows Workflow. The activity has to call out to a third party library method that itself runs another pr... | TITLE:
Implementing a custom Windows Workflow activity that executes an asynchronous operation
QUESTION:
I'm having some conceptual trouble on figuring out how to best implement this... I want to create a custom Activity class for Windows Workflow. The activity has to call out to a third party library method that itse... | [
"asynchronous",
"workflow",
"workflow-foundation",
"workflow-activity"
] | 0 | 1 | 1,073 | 1 | 0 | 2008-08-24T03:05:47.303000 | 2008-08-24T12:51:43.617000 |
24,829 | 24,876 | How does .net managed memory handle value types inside objects? | public class MyClass { public int Age; public int ID; }
public void MyMethod() { MyClass m = new MyClass(); int newID; } To my understanding, the following is true: The reference m lives on the stack and goes out of scope when MyMethod() exits. The value type newID lives on the stack and goes out of scope when MyMetho... | Value-type values for a class have to live together with the object instance in the managed heap. The thread's stack for a method only lives for the duration of a method; how can the value persist if it only exists within that stack? A class' object size in the managed heap is the sum of its value-type fields, referenc... | How does .net managed memory handle value types inside objects? public class MyClass { public int Age; public int ID; }
public void MyMethod() { MyClass m = new MyClass(); int newID; } To my understanding, the following is true: The reference m lives on the stack and goes out of scope when MyMethod() exits. The value ... | TITLE:
How does .net managed memory handle value types inside objects?
QUESTION:
public class MyClass { public int Age; public int ID; }
public void MyMethod() { MyClass m = new MyClass(); int newID; } To my understanding, the following is true: The reference m lives on the stack and goes out of scope when MyMethod()... | [
".net",
"memory"
] | 5 | 9 | 3,039 | 6 | 0 | 2008-08-24T03:37:47.490000 | 2008-08-24T06:11:55.997000 |
24,849 | 24,852 | Execute script after specific delay using JavaScript | Is there any JavaScript method similar to the jQuery delay() or wait() (to delay the execution of a script for a specific amount of time)? | There is the following: setTimeout(function, milliseconds); function which can be passed the time after which the function will be executed. See: Window setTimeout() Method. | Execute script after specific delay using JavaScript Is there any JavaScript method similar to the jQuery delay() or wait() (to delay the execution of a script for a specific amount of time)? | TITLE:
Execute script after specific delay using JavaScript
QUESTION:
Is there any JavaScript method similar to the jQuery delay() or wait() (to delay the execution of a script for a specific amount of time)?
ANSWER:
There is the following: setTimeout(function, milliseconds); function which can be passed the time aft... | [
"javascript",
"settimeout"
] | 204 | 196 | 486,631 | 15 | 0 | 2008-08-24T05:10:57.347000 | 2008-08-24T05:18:18.467000 |
24,853 | 24,858 | What is the difference between ++i and i++? | In C, what is the difference between using ++i and i++, and which should be used in the incrementation block of a for loop? | ++i will increment the value of i, and then return the incremented value. i = 1; j = ++i; (i is 2, j is 2) i++ will increment the value of i, but return the original value that i held before being incremented. i = 1; j = i++; (i is 2, j is 1) For a for loop, either works. ++i seems more common, perhaps because that is ... | What is the difference between ++i and i++? In C, what is the difference between using ++i and i++, and which should be used in the incrementation block of a for loop? | TITLE:
What is the difference between ++i and i++?
QUESTION:
In C, what is the difference between using ++i and i++, and which should be used in the incrementation block of a for loop?
ANSWER:
++i will increment the value of i, and then return the incremented value. i = 1; j = ++i; (i is 2, j is 2) i++ will increment... | [
"c",
"for-loop",
"post-increment",
"pre-increment"
] | 1,167 | 1,430 | 1,698,453 | 21 | 0 | 2008-08-24T05:19:19.713000 | 2008-08-24T05:23:18.487000 |
24,866 | 24,902 | Is it essential that I use libraries to manipulate XML? | I am using Java back end for creating an XML string which is passed to the browser. Currently I am using simple string manipulation to produce this XML. Is it essential that I use some XML library in Java to produce the XML string? I find the libraries very difficult to use compared to what I need. | It's not essential, but advisable. However, if string manipulation works for you, then go for it! There are plenty of cases where small or simple XML text can be safely built by hand. Just be aware that creating XML text is harder than it looks. Here's some criteria I would consider: First: how much control do you have... | Is it essential that I use libraries to manipulate XML? I am using Java back end for creating an XML string which is passed to the browser. Currently I am using simple string manipulation to produce this XML. Is it essential that I use some XML library in Java to produce the XML string? I find the libraries very diffic... | TITLE:
Is it essential that I use libraries to manipulate XML?
QUESTION:
I am using Java back end for creating an XML string which is passed to the browser. Currently I am using simple string manipulation to produce this XML. Is it essential that I use some XML library in Java to produce the XML string? I find the lib... | [
"java",
"xml"
] | 11 | 12 | 797 | 11 | 0 | 2008-08-24T05:48:22.090000 | 2008-08-24T07:17:49.817000 |
24,881 | 24,882 | How do I fix "for loop initial declaration used outside C99 mode" GCC error? | I'm trying to solve the 3n+1 problem and I have a for loop that looks like this: for(int i = low; i <= high; ++i) { res = runalg(i); if (res > highestres) { highestres = res; }
} Unfortunately I'm getting this error when I try to compile with GCC: 3np1.c:15: error: 'for' loop initial declaration used outside C99 mode ... | I'd try to declare i outside of the loop! Good luck on solving 3n+1:-) Here's an example: #include int main() {
int i;
/* for loop execution */ for (i = 10; i < 20; i++) { printf("i: %d\n", i); }
return 0; } Read more on for loops in C here. | How do I fix "for loop initial declaration used outside C99 mode" GCC error? I'm trying to solve the 3n+1 problem and I have a for loop that looks like this: for(int i = low; i <= high; ++i) { res = runalg(i); if (res > highestres) { highestres = res; }
} Unfortunately I'm getting this error when I try to compile with... | TITLE:
How do I fix "for loop initial declaration used outside C99 mode" GCC error?
QUESTION:
I'm trying to solve the 3n+1 problem and I have a for loop that looks like this: for(int i = low; i <= high; ++i) { res = runalg(i); if (res > highestres) { highestres = res; }
} Unfortunately I'm getting this error when I t... | [
"c",
"gcc",
"for-loop"
] | 126 | 160 | 387,479 | 11 | 0 | 2008-08-24T06:30:09.760000 | 2008-08-24T06:31:16.480000 |
24,886 | 24,887 | Is there a performance difference between i++ and ++i in C? | Is there a performance difference between i++ and ++i if the resulting value is not used? | Executive summary: No. i++ could potentially be slower than ++i, since the old value of i might need to be saved for later use, but in practice all modern compilers will optimize this away. We can demonstrate this by looking at the code for this function, both with ++i and i++. $ cat i++.c extern void g(int i); void f(... | Is there a performance difference between i++ and ++i in C? Is there a performance difference between i++ and ++i if the resulting value is not used? | TITLE:
Is there a performance difference between i++ and ++i in C?
QUESTION:
Is there a performance difference between i++ and ++i if the resulting value is not used?
ANSWER:
Executive summary: No. i++ could potentially be slower than ++i, since the old value of i might need to be saved for later use, but in practice... | [
"c",
"performance",
"oop",
"post-increment",
"pre-increment"
] | 532 | 461 | 139,508 | 14 | 0 | 2008-08-24T06:48:23.243000 | 2008-08-24T06:48:58.827000 |
24,891 | 24,922 | C Memory Management | I've always heard that in C you have to really watch how you manage memory. And I'm still beginning to learn C, but thus far, I have not had to do any memory managing related activities at all.. I always imagined having to release variables and do all sorts of ugly things. But this doesn't seem to be the case. Can some... | There are two places where variables can be put in memory. When you create a variable like this: int a; char c; char d[16]; The variables are created in the " stack ". Stack variables are automatically freed when they go out of scope (that is, when the code can't reach them anymore). You might hear them called "automat... | C Memory Management I've always heard that in C you have to really watch how you manage memory. And I'm still beginning to learn C, but thus far, I have not had to do any memory managing related activities at all.. I always imagined having to release variables and do all sorts of ugly things. But this doesn't seem to b... | TITLE:
C Memory Management
QUESTION:
I've always heard that in C you have to really watch how you manage memory. And I'm still beginning to learn C, but thus far, I have not had to do any memory managing related activities at all.. I always imagined having to release variables and do all sorts of ugly things. But this... | [
"c",
"memory"
] | 103 | 247 | 54,372 | 12 | 0 | 2008-08-24T06:50:56.497000 | 2008-08-24T08:21:22.927000 |
24,901 | 24,904 | Is there a performance difference between i++ and ++i in C++? | We have the question is there a performance difference between i++ and ++i in C? What's the answer for C++? | [Executive Summary: Use ++i if you don't have a specific reason to use i++.] For C++, the answer is a bit more complicated. If i is a simple type (not an instance of a C++ class), then the answer given for C ("No there is no performance difference") holds, since the compiler is generating the code. However, if i is an ... | Is there a performance difference between i++ and ++i in C++? We have the question is there a performance difference between i++ and ++i in C? What's the answer for C++? | TITLE:
Is there a performance difference between i++ and ++i in C++?
QUESTION:
We have the question is there a performance difference between i++ and ++i in C? What's the answer for C++?
ANSWER:
[Executive Summary: Use ++i if you don't have a specific reason to use i++.] For C++, the answer is a bit more complicated.... | [
"c++",
"performance",
"oop",
"post-increment",
"pre-increment"
] | 420 | 503 | 109,809 | 20 | 0 | 2008-08-24T07:14:22.243000 | 2008-08-24T07:23:13.033000 |
24,915 | 217,975 | BizTalk DB2 adapter connection error | My colleagues are attempting to connect BizTalk 2006 R2 via DB2/MVS adapter to a database hosted on z/OS mainframe. When testing the connecting settings, they are getting the following error Could not connect to data source 'New Data Source': The network connection was terminated because the host failed to send any dat... | Why, it certainly took Microsoft long enough to explicitly confirm this: proxy connections via DB2Connect is not supported by BizTalk DB2 Adapter Since our customer's policy is to only access DB2 databases via DB2Connect, the adapter is out of the question. MORE BACKGROUND INFO The reason why the DB2 Adapter only works... | BizTalk DB2 adapter connection error My colleagues are attempting to connect BizTalk 2006 R2 via DB2/MVS adapter to a database hosted on z/OS mainframe. When testing the connecting settings, they are getting the following error Could not connect to data source 'New Data Source': The network connection was terminated be... | TITLE:
BizTalk DB2 adapter connection error
QUESTION:
My colleagues are attempting to connect BizTalk 2006 R2 via DB2/MVS adapter to a database hosted on z/OS mainframe. When testing the connecting settings, they are getting the following error Could not connect to data source 'New Data Source': The network connection... | [
"db2",
"biztalk",
"mainframe",
"zos",
"biztalk2006r2"
] | 2 | 3 | 2,166 | 3 | 0 | 2008-08-24T07:53:13.353000 | 2008-10-20T10:09:48.293000 |
24,931 | 24,949 | How to capture Python interpreter's and/or CMD.EXE's output from a Python script? | Is it possible to capture Python interpreter's output from a Python script? Is it possible to capture Windows CMD's output from a Python script? If so, which librar(y|ies) should I look into? | If you are talking about the python interpreter or CMD.exe that is the 'parent' of your script then no, it isn't possible. In every POSIX-like system (now you're running Windows, it seems, and that might have some quirk I don't know about, YMMV) each process has three streams, standard input, standard output and standa... | How to capture Python interpreter's and/or CMD.EXE's output from a Python script? Is it possible to capture Python interpreter's output from a Python script? Is it possible to capture Windows CMD's output from a Python script? If so, which librar(y|ies) should I look into? | TITLE:
How to capture Python interpreter's and/or CMD.EXE's output from a Python script?
QUESTION:
Is it possible to capture Python interpreter's output from a Python script? Is it possible to capture Windows CMD's output from a Python script? If so, which librar(y|ies) should I look into?
ANSWER:
If you are talking ... | [
"python",
"windows",
"cmd"
] | 10 | 10 | 11,022 | 6 | 0 | 2008-08-24T08:46:57.293000 | 2008-08-24T09:39:08.247000 |
24,954 | 24,974 | Windows: List and Launch applications associated with an extension | How to determine the applications associated with a particular extension (e.g..JPG) and then determine where the executable to that application is located so that it can be launched via a call to say System.Diagnostics.Process.Start(...). I already know how to read and write to the registry. It is the layout of the reg... | Sample code: using System; using Microsoft.Win32;
namespace GetAssociatedApp { class Program { static void Main(string[] args) { const string extPathTemplate = @"HKEY_CLASSES_ROOT\{0}"; const string cmdPathTemplate = @"HKEY_CLASSES_ROOT\{0}\shell\open\command";
// 1. Find out document type name for.jpeg files const s... | Windows: List and Launch applications associated with an extension How to determine the applications associated with a particular extension (e.g..JPG) and then determine where the executable to that application is located so that it can be launched via a call to say System.Diagnostics.Process.Start(...). I already know... | TITLE:
Windows: List and Launch applications associated with an extension
QUESTION:
How to determine the applications associated with a particular extension (e.g..JPG) and then determine where the executable to that application is located so that it can be launched via a call to say System.Diagnostics.Process.Start(..... | [
".net",
"windows",
"registry"
] | 14 | 7 | 10,666 | 5 | 0 | 2008-08-24T10:05:38.930000 | 2008-08-24T11:01:18.470000 |
24,959 | 24,982 | Debugging asp.net with firefox and visual studio.net - very slow compared to IE | Debugging asp.net websites/web projects in visual studio.net 2005 with Firefox is loads slower than using IE. I've read something somewhere that there is a way of fixing this but i can't for the life of me find it again. Does anyone know what i'm on about and can point me in the right direction please? Cheers John edit... | bingo. found the article i read before. i just changed my network.dns.ipv4OnlyDomains property in about:config to localhost. restarted firefox and now firefox performs the same as IE when debugging asp.net with visual studio (2005). hope this helps anyone else that has the same problem. | Debugging asp.net with firefox and visual studio.net - very slow compared to IE Debugging asp.net websites/web projects in visual studio.net 2005 with Firefox is loads slower than using IE. I've read something somewhere that there is a way of fixing this but i can't for the life of me find it again. Does anyone know wh... | TITLE:
Debugging asp.net with firefox and visual studio.net - very slow compared to IE
QUESTION:
Debugging asp.net websites/web projects in visual studio.net 2005 with Firefox is loads slower than using IE. I've read something somewhere that there is a way of fixing this but i can't for the life of me find it again. D... | [
"debugging",
"firefox",
"visual-studio-2005"
] | 18 | 30 | 10,194 | 4 | 0 | 2008-08-24T10:28:10.373000 | 2008-08-24T11:32:03.233000 |
24,963 | 25,663 | How to learn MDX | I am currently learning OLAP & MDX after many years of relational database development. Any tips on getting started in MDX? What are the best books and resources to learn MDX? | A classic, albeit a bit dated, book is Fast Track to MDX. It's a great overview and a quick read, though it doesn't cover the new MDX features of SQL Server 2005. The Spofford book MDX Solutions is more up date and a little deeper, but a bit harder to get through. I also highly recommend the blogs of Mosha Pasumansky, ... | How to learn MDX I am currently learning OLAP & MDX after many years of relational database development. Any tips on getting started in MDX? What are the best books and resources to learn MDX? | TITLE:
How to learn MDX
QUESTION:
I am currently learning OLAP & MDX after many years of relational database development. Any tips on getting started in MDX? What are the best books and resources to learn MDX?
ANSWER:
A classic, albeit a bit dated, book is Fast Track to MDX. It's a great overview and a quick read, th... | [
"ssas",
"olap",
"mdx"
] | 31 | 19 | 25,785 | 10 | 0 | 2008-08-24T10:38:17.323000 | 2008-08-25T04:42:46.437000 |
24,965 | 25,203 | Beginning TDD - Challenges? Solutions? Recommendations? | OK, I know there have already been questions about getting started with TDD.. However, I guess I kind of know the general concensus is to just do it, However, I seem to have the following problems getting my head into the game: When working with collections, do will still test for obvious add/remove/inserts successful,... | First, it is alright and normal to feel frustrated when you first start trying to use TDD in your coding style. Just don't get discouraged and quit, you will need to give it some time. It is a major paradigm shift in how we think about solving a problem in code. I like to think of it like when we switched from procedur... | Beginning TDD - Challenges? Solutions? Recommendations? OK, I know there have already been questions about getting started with TDD.. However, I guess I kind of know the general concensus is to just do it, However, I seem to have the following problems getting my head into the game: When working with collections, do wi... | TITLE:
Beginning TDD - Challenges? Solutions? Recommendations?
QUESTION:
OK, I know there have already been questions about getting started with TDD.. However, I guess I kind of know the general concensus is to just do it, However, I seem to have the following problems getting my head into the game: When working with ... | [
"unit-testing",
"language-agnostic",
"tdd"
] | 43 | 50 | 21,251 | 11 | 0 | 2008-08-24T10:43:17.500000 | 2008-08-24T17:19:30.090000 |
24,986 | 24,987 | How do I profile a Maven Application in Netbeans? | I've got a project using Maven 2 as the build tool. Now I am using Netbeans 6 as my IDE and really want to be able to use the profiler. Is there any way I can get this to work? | I thought this might be more complicated. It wasn't. To use the Netbeans profiler with your Maven 2 project you simply need to add a single pair of parameters when running your java app. Call up the project's Properties dialogue, select the "Run" tab and add something like the following to the jvm args: -agentpath:"C:\... | How do I profile a Maven Application in Netbeans? I've got a project using Maven 2 as the build tool. Now I am using Netbeans 6 as my IDE and really want to be able to use the profiler. Is there any way I can get this to work? | TITLE:
How do I profile a Maven Application in Netbeans?
QUESTION:
I've got a project using Maven 2 as the build tool. Now I am using Netbeans 6 as my IDE and really want to be able to use the profiler. Is there any way I can get this to work?
ANSWER:
I thought this might be more complicated. It wasn't. To use the Ne... | [
"maven-2",
"netbeans",
"profiling",
"profiler"
] | 1 | 1 | 2,831 | 1 | 0 | 2008-08-24T11:50:08.057000 | 2008-08-24T11:51:09.613000 |
24,991 | 25,877 | Why can't I explicitly pass the type argument to a generic Java method? | I have defined a Java function: static List createEmptyList() { return new ArrayList (); } One way to call it is like so: List myList = createEmptyList(); // Compiles Why can't I call it by explicitly passing the generic type argument?: Object myObject = createEmtpyList (); // Doesn't compile. Why? I get the error Ille... | When the java compiler cannot infer the parameter type by itself for a static method, you can always pass it using the full qualified method name: Class. < Type > method(); Object list = Collections. emptyList(); | Why can't I explicitly pass the type argument to a generic Java method? I have defined a Java function: static List createEmptyList() { return new ArrayList (); } One way to call it is like so: List myList = createEmptyList(); // Compiles Why can't I call it by explicitly passing the generic type argument?: Object myOb... | TITLE:
Why can't I explicitly pass the type argument to a generic Java method?
QUESTION:
I have defined a Java function: static List createEmptyList() { return new ArrayList (); } One way to call it is like so: List myList = createEmptyList(); // Compiles Why can't I call it by explicitly passing the generic type argu... | [
"java",
"generics",
"syntax"
] | 32 | 49 | 29,906 | 4 | 0 | 2008-08-24T12:03:28.367000 | 2008-08-25T11:28:51.017000 |
24,993 | 25,075 | InvalidOperationException while creating wcf web service instance | I have a WCF Web Service which is referenced from a class library. After the project is run, when creating the service client object from inside a class library, I receive an InvalidOperationException with message: Could not find default endpoint element that references contract 'MyServiceReference.IMyService' in the S... | Here is my app.config file of the class library: You should put this configuration settings to main app's config file..NET application (which is calling your class library) uses data from it's own config file not from your library config file. | InvalidOperationException while creating wcf web service instance I have a WCF Web Service which is referenced from a class library. After the project is run, when creating the service client object from inside a class library, I receive an InvalidOperationException with message: Could not find default endpoint element... | TITLE:
InvalidOperationException while creating wcf web service instance
QUESTION:
I have a WCF Web Service which is referenced from a class library. After the project is run, when creating the service client object from inside a class library, I receive an InvalidOperationException with message: Could not find defaul... | [
".net",
"wcf",
"web-services"
] | 6 | 4 | 10,742 | 4 | 0 | 2008-08-24T12:11:01.360000 | 2008-08-24T14:21:06.540000 |
25,007 | 25,024 | Conditional formatting -- percentage to color conversion | What's the easiest way to convert a percentage to a color ranging from Green (100%) to Red (0%), with Yellow for 50%? I'm using plain 32bit RGB - so each component is an integer between 0 and 255. I'm doing this in C#, but I guess for a problem like this the language doesn't really matter that much. Based on Marius and... | I made this function in JavaScript. It returns the color is a css string. It takes the percentage as a variable, with a range from 0 to 100. The algorithm could be made in any language: function setColor(p){ var red = p<50? 255: Math.round(256 - (p-50)*5.12); var green = p>50? 255: Math.round((p)*5.12); return "rgb(" +... | Conditional formatting -- percentage to color conversion What's the easiest way to convert a percentage to a color ranging from Green (100%) to Red (0%), with Yellow for 50%? I'm using plain 32bit RGB - so each component is an integer between 0 and 255. I'm doing this in C#, but I guess for a problem like this the lang... | TITLE:
Conditional formatting -- percentage to color conversion
QUESTION:
What's the easiest way to convert a percentage to a color ranging from Green (100%) to Red (0%), with Yellow for 50%? I'm using plain 32bit RGB - so each component is an integer between 0 and 255. I'm doing this in C#, but I guess for a problem ... | [
"c#",
"colors",
"rgb"
] | 21 | 14 | 15,291 | 9 | 0 | 2008-08-24T12:33:58.967000 | 2008-08-24T13:14:41.957000 |
25,033 | 25,043 | I Am Not Getting the Result I Expect Using readLine() in Java | I am using the code snippet below, however it's not working quite as I understand it should. public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line; try { line = br.readLine(); while(line!= null) { System.out.println(line); line = br.readLine(); }... | From my understanding of this, readLine should return null the first time no input is entered other than a line termination, like '\r'. That is not correct. readLine will return null if the end of the stream is reached. That is, for example, if you are reading a file, and the file ends, or if you're reading from a sock... | I Am Not Getting the Result I Expect Using readLine() in Java I am using the code snippet below, however it's not working quite as I understand it should. public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line; try { line = br.readLine(); while(li... | TITLE:
I Am Not Getting the Result I Expect Using readLine() in Java
QUESTION:
I am using the code snippet below, however it's not working quite as I understand it should. public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line; try { line = br.re... | [
"java",
"java-io"
] | 5 | 10 | 4,938 | 3 | 0 | 2008-08-24T13:29:20.330000 | 2008-08-24T13:41:06.963000 |
25,041 | 25,053 | span tag height in Firefox | Using CSS, I'm trying to specify the height of a span tag in Firefox, but it's just not accepting it (IE does). Firefox accepts the height if I use a div, but the problem with using a div is the annoying line break after it, which I can't have in this particular instance. I tried setting the CSS style attribute of: dis... | FirstDiv SecondDiv As long as the container for whatever is holding div's 1 and 2 is wide enough for them to fit, this should be fine. | span tag height in Firefox Using CSS, I'm trying to specify the height of a span tag in Firefox, but it's just not accepting it (IE does). Firefox accepts the height if I use a div, but the problem with using a div is the annoying line break after it, which I can't have in this particular instance. I tried setting the ... | TITLE:
span tag height in Firefox
QUESTION:
Using CSS, I'm trying to specify the height of a span tag in Firefox, but it's just not accepting it (IE does). Firefox accepts the height if I use a div, but the problem with using a div is the annoying line break after it, which I can't have in this particular instance. I ... | [
"html",
"css",
"firefox",
"cross-browser"
] | 17 | 17 | 32,360 | 9 | 0 | 2008-08-24T13:40:00.773000 | 2008-08-24T13:47:05.343000 |
25,046 | 25,435 | Lisp Executable | I've just started learning Lisp and I can't figure out how to compile and link lisp code to an executable. I'm using clisp and clisp -c produces two files:.fas.lib What do I do next to get an executable? | I was actually trying to do this today, and I found typing this into the CLisp REPL worked: (EXT:SAVEINITMEM "executable.exe":QUIET t:INIT-FUNCTION 'main:EXECUTABLE t:NORC t) where main is the name of the function you want to call when the program launches,:QUIET t suppresses the startup banner, and:EXECUTABLE t makes ... | Lisp Executable I've just started learning Lisp and I can't figure out how to compile and link lisp code to an executable. I'm using clisp and clisp -c produces two files:.fas.lib What do I do next to get an executable? | TITLE:
Lisp Executable
QUESTION:
I've just started learning Lisp and I can't figure out how to compile and link lisp code to an executable. I'm using clisp and clisp -c produces two files:.fas.lib What do I do next to get an executable?
ANSWER:
I was actually trying to do this today, and I found typing this into the ... | [
"build",
"lisp",
"common-lisp",
"clisp"
] | 60 | 48 | 24,926 | 6 | 0 | 2008-08-24T13:42:35.320000 | 2008-08-24T23:10:00.980000 |
25,063 | 25,069 | How to mentor a junior programmer | Does anyone have any suggestions on how to mentor a junior programmer? If you have mentored someone did you follow any process or was it quite informal? If you've been mentored in the past what kind of things did you find most helpful? | Try to set aside between 30-60 minutes a day to review their code together. If you can't do this, then try to get together to review their code whenever they make a code commit, unless it was very basic. Have them explain why they chose the approach they took in lieu of others. A process like this helps to establish a ... | How to mentor a junior programmer Does anyone have any suggestions on how to mentor a junior programmer? If you have mentored someone did you follow any process or was it quite informal? If you've been mentored in the past what kind of things did you find most helpful? | TITLE:
How to mentor a junior programmer
QUESTION:
Does anyone have any suggestions on how to mentor a junior programmer? If you have mentored someone did you follow any process or was it quite informal? If you've been mentored in the past what kind of things did you find most helpful?
ANSWER:
Try to set aside betwee... | [
"language-agnostic"
] | 47 | 48 | 5,880 | 12 | 0 | 2008-08-24T14:05:31.537000 | 2008-08-24T14:14:25.510000 |
25,128 | 25,139 | How to create images in PHP | Is it possible to create images with PHP (as opposed to simply linking to them via HTML) and if so, where should I go first to learn about such a thing? | I prefer the GD library - check out the Examples, and this example: Outputs: (source: php.net ) See imagecreatetruecolor. | How to create images in PHP Is it possible to create images with PHP (as opposed to simply linking to them via HTML) and if so, where should I go first to learn about such a thing? | TITLE:
How to create images in PHP
QUESTION:
Is it possible to create images with PHP (as opposed to simply linking to them via HTML) and if so, where should I go first to learn about such a thing?
ANSWER:
I prefer the GD library - check out the Examples, and this example: Outputs: (source: php.net ) See imagecreatet... | [
"php",
"image"
] | 6 | 12 | 743 | 7 | 0 | 2008-08-24T16:01:46.907000 | 2008-08-24T16:11:39.580000 |
25,132 | 25,173 | Are named entities in HTML still necessary in the age of Unicode aware browsers? | I did a lot of PHP programming in the last years and one thing that keeps annoying me is the weak support for Unicode and multibyte strings (to be sure, natively there is none). For example, "htmlentities" seems to be a much used function in the PHP world and I found it to be absolutely annoying when you've put an effo... | Named entities in "real" XHTML (i.e. with application/xhtml+xml, rather than the more frequently-used text/html compatibility mode) are discouraged. Aside from the five defined in XML itself ( <, >, &, ", ' ), they'd all have to be defined in the DTD of the particular DocType you're using. That means your browser has t... | Are named entities in HTML still necessary in the age of Unicode aware browsers? I did a lot of PHP programming in the last years and one thing that keeps annoying me is the weak support for Unicode and multibyte strings (to be sure, natively there is none). For example, "htmlentities" seems to be a much used function ... | TITLE:
Are named entities in HTML still necessary in the age of Unicode aware browsers?
QUESTION:
I did a lot of PHP programming in the last years and one thing that keeps annoying me is the weak support for Unicode and multibyte strings (to be sure, natively there is none). For example, "htmlentities" seems to be a m... | [
"php",
"html",
"unicode",
"internationalization"
] | 17 | 7 | 951 | 3 | 0 | 2008-08-24T16:04:39.443000 | 2008-08-24T16:44:04.450000 |
25,137 | 25,255 | What is your experience with software model checking? | What types of applications have you used model checking for? What model checking tool did you use? How would you summarize your experience w/ the technique, specifically in evaluating its effectiveness in delivering higher quality software? In the course of my studies, I had a chance to use Spin, and it aroused my curi... | I just finished a class on model checking and the big tools we used were Spin and SMV. We ended up using them to check properties on common synchronization problems, and I found SMV just a little bit easier to use. Although these tools were fun to use, I think they really shine when you combine them with something that... | What is your experience with software model checking? What types of applications have you used model checking for? What model checking tool did you use? How would you summarize your experience w/ the technique, specifically in evaluating its effectiveness in delivering higher quality software? In the course of my studi... | TITLE:
What is your experience with software model checking?
QUESTION:
What types of applications have you used model checking for? What model checking tool did you use? How would you summarize your experience w/ the technique, specifically in evaluating its effectiveness in delivering higher quality software? In the ... | [
"algorithm",
"correctness",
"formal-methods",
"formal-verification",
"model-checking"
] | 6 | 3 | 1,883 | 5 | 0 | 2008-08-24T16:08:46.983000 | 2008-08-24T18:17:20.777000 |
25,142 | 25,150 | Stored Procedure and Timeout | I'm running a long process stored procedure. I'm wondering if in case of a timeout or any case of disconnection with the database after initiating the call to the stored procedure. Is it still working and implementing the changes on the server? | Anyway if the client is not there to commit at the end of the job the changes should be rolled back by the server. In other words, if you have a stored procedure making changes to the database and there is a possibility that the connection might disconnect in the middle, be sure to enclose all changes within a transact... | Stored Procedure and Timeout I'm running a long process stored procedure. I'm wondering if in case of a timeout or any case of disconnection with the database after initiating the call to the stored procedure. Is it still working and implementing the changes on the server? | TITLE:
Stored Procedure and Timeout
QUESTION:
I'm running a long process stored procedure. I'm wondering if in case of a timeout or any case of disconnection with the database after initiating the call to the stored procedure. Is it still working and implementing the changes on the server? ... | [
"database",
"stored-procedures",
"timeout"
] | 0 | 2 | 874 | 3 | 0 | 2008-08-24T16:16:21.647000 | 2008-08-24T16:23:04.780000 |
25,147 | 25,166 | How can I merge PHP arrays? | I have two arrays of animals (for example). $array = array( array( 'id' => 1, 'name' => 'Cat', ), array( 'id' => 2, 'name' => 'Mouse', ) );
$array2 = array( array( 'id' => 2, 'age' => 321, ), array( 'id' => 1, 'age' => 123, ) ); How can I merge the two arrays into one by the ID? | This does what Erik suggested (id no. as array key) and merges vlaues in $array2 to $results. $results = array();
foreach($array as $subarray) { $results[$subarray['id']] = array('name' => $subarray['name']); }
foreach($array2 as $subarray) { if(array_key_exists($subarray['id'], $results)) { // Loop through $subarray... | How can I merge PHP arrays? I have two arrays of animals (for example). $array = array( array( 'id' => 1, 'name' => 'Cat', ), array( 'id' => 2, 'name' => 'Mouse', ) );
$array2 = array( array( 'id' => 2, 'age' => 321, ), array( 'id' => 1, 'age' => 123, ) ); How can I merge the two arrays into one by the ID? | TITLE:
How can I merge PHP arrays?
QUESTION:
I have two arrays of animals (for example). $array = array( array( 'id' => 1, 'name' => 'Cat', ), array( 'id' => 2, 'name' => 'Mouse', ) );
$array2 = array( array( 'id' => 2, 'age' => 321, ), array( 'id' => 1, 'age' => 123, ) ); How can I merge the two arrays into one by t... | [
"php",
"arrays"
] | 12 | 3 | 8,641 | 10 | 0 | 2008-08-24T16:21:17.763000 | 2008-08-24T16:38:01.733000 |
25,158 | 25,512 | Building C# .NET windows application with multiple views | I'm rewriting an old application and use this as a good opportunity to try out C# and.NET development (I usually do a lot of plug-in stuff in C). The application is basically a timer collecting data. It has a start view with a button to start the measurement. During the measurement the app has five different views depe... | Creating a bunch of overlaid panels is a design-time nightmare. I would suggest using a tab control with each "view" on a separate tab, and then picking the correct tab at runtime. You can avoid showing the tab headers by putting something like this in your form's Load event: tabControl1.Top = tabControl1.Top - tabCont... | Building C# .NET windows application with multiple views I'm rewriting an old application and use this as a good opportunity to try out C# and.NET development (I usually do a lot of plug-in stuff in C). The application is basically a timer collecting data. It has a start view with a button to start the measurement. Dur... | TITLE:
Building C# .NET windows application with multiple views
QUESTION:
I'm rewriting an old application and use this as a good opportunity to try out C# and.NET development (I usually do a lot of plug-in stuff in C). The application is basically a timer collecting data. It has a start view with a button to start th... | [
"c#",
".net",
"windows"
] | 11 | 8 | 20,716 | 5 | 0 | 2008-08-24T16:31:25.713000 | 2008-08-25T00:43:07.200000 |
25,161 | 25,262 | Tooltips on an image | I have an image and on it are logos (it's a map), I want to have a little box popup with information about that logo's location when the user moves their mouse over said logo. Can I do this without using a javascript framework and if so, are there any small libraries/scripts that will let me do such a thing? | Yes, you can do this without Javascript. Use an HTML image map, with title attributes, like this: The Stack Overflow logo refers to the image map, which defines a rectangle for each of the two words using an area tag. Each area tag's title element specifies the text that browsers generally show as a tooltip. The shape ... | Tooltips on an image I have an image and on it are logos (it's a map), I want to have a little box popup with information about that logo's location when the user moves their mouse over said logo. Can I do this without using a javascript framework and if so, are there any small libraries/scripts that will let me do suc... | TITLE:
Tooltips on an image
QUESTION:
I have an image and on it are logos (it's a map), I want to have a little box popup with information about that logo's location when the user moves their mouse over said logo. Can I do this without using a javascript framework and if so, are there any small libraries/scripts that ... | [
"javascript",
"html"
] | 9 | 9 | 6,116 | 7 | 0 | 2008-08-24T16:32:34.257000 | 2008-08-24T18:24:07.343000 |
25,174 | 26,200 | How to prevent session timeout in Symfony 1.0? | I've used the PHP MVC framework Symfony to build an on-demand web app. It has an annoying bug - the session expires after about 15-30 minutes of inactivity. There is a config directive to prevent session expiration but it does not work. Even workarounds such as this one did not help me. I intend not to migrate to Symfo... | I looked into it, and my coworker agrees that a heartbeat page call should work, you just have to make sure that the action invoked does reset the session timer (things like ajax field completion don't do this on their own). | How to prevent session timeout in Symfony 1.0? I've used the PHP MVC framework Symfony to build an on-demand web app. It has an annoying bug - the session expires after about 15-30 minutes of inactivity. There is a config directive to prevent session expiration but it does not work. Even workarounds such as this one di... | TITLE:
How to prevent session timeout in Symfony 1.0?
QUESTION:
I've used the PHP MVC framework Symfony to build an on-demand web app. It has an annoying bug - the session expires after about 15-30 minutes of inactivity. There is a config directive to prevent session expiration but it does not work. Even workarounds s... | [
"php",
"symfony1"
] | 4 | 2 | 2,195 | 4 | 0 | 2008-08-24T16:45:06.757000 | 2008-08-25T15:12:33.710000 |
25,182 | 25,293 | What's optimal? UNION vs WHERE IN (str1, str2, str3) | I'm writing a program that sends an email out at a client's specific local time. I have a.NET method that takes a timezone & time and destination timezone and returns the time in that timezone. So my method is to select every distinct timezone in the database, check if it is the correct time using the method, then sele... | Hey! These queries are not equivalent. Results will be same only if assuming that one email belongs only to the one time zone. Of course it does however SQL engine doesn't know that and tries to remove duplicities. So the first query should be faster. Always use UNION ALL, unless you know why you want to use UNION. If ... | What's optimal? UNION vs WHERE IN (str1, str2, str3) I'm writing a program that sends an email out at a client's specific local time. I have a.NET method that takes a timezone & time and destination timezone and returns the time in that timezone. So my method is to select every distinct timezone in the database, check ... | TITLE:
What's optimal? UNION vs WHERE IN (str1, str2, str3)
QUESTION:
I'm writing a program that sends an email out at a client's specific local time. I have a.NET method that takes a timezone & time and destination timezone and returns the time in that timezone. So my method is to select every distinct timezone in th... | [
"sql",
"optimization"
] | 8 | 3 | 6,954 | 7 | 0 | 2008-08-24T16:53:34.223000 | 2008-08-24T19:25:50.520000 |
25,192 | 1,067,648 | Java SWIFT Library | I'm looking for a Java library for SWIFT messages. I want to parse SWIFT messages into an object model validate SWIFT messages (including SWIFT network validation rules) build / change SWIFT messages by using an object model Theoretically, I need to support all SWIFT message types. But at the moment I need MT103+, MT19... | SWIFT is releasing a "Standards Developer Kit" which includes an "MT/XML Schema Library". From the doc: "The MT/XML Schema Library is a complete set of XML schema definitions for MT messages, and software which shows how to convert messages from an MT format to an MT XML representation and back. This approach allows XM... | Java SWIFT Library I'm looking for a Java library for SWIFT messages. I want to parse SWIFT messages into an object model validate SWIFT messages (including SWIFT network validation rules) build / change SWIFT messages by using an object model Theoretically, I need to support all SWIFT message types. But at the moment ... | TITLE:
Java SWIFT Library
QUESTION:
I'm looking for a Java library for SWIFT messages. I want to parse SWIFT messages into an object model validate SWIFT messages (including SWIFT network validation rules) build / change SWIFT messages by using an object model Theoretically, I need to support all SWIFT message types. ... | [
"java",
"swift-mt"
] | 33 | 21 | 52,202 | 9 | 0 | 2008-08-24T17:05:40.997000 | 2009-07-01T06:59:19.537000 |
25,200 | 33,726 | C#.NET Winforms: Is it possible to override Label.Autosize? | I don't like the AutoSize property of the Label control. I have a custom Label that draws a fancy rounded border among other things. I'm placing a AutoSize = false in my constructor, however, when I place it in design mode, the property always is True. I have overridden other properties with success but this one is hap... | I've seen similar behaviour when setting certain properties of controls in the constructor of the form itself. They seem to revert back to their design-time defaults. I notice you're already overriding the OnLoad method. Have you tried setting AutoSize = false there? Or are you mainly concerned with providing a default... | C#.NET Winforms: Is it possible to override Label.Autosize? I don't like the AutoSize property of the Label control. I have a custom Label that draws a fancy rounded border among other things. I'm placing a AutoSize = false in my constructor, however, when I place it in design mode, the property always is True. I have ... | TITLE:
C#.NET Winforms: Is it possible to override Label.Autosize?
QUESTION:
I don't like the AutoSize property of the Label control. I have a custom Label that draws a fancy rounded border among other things. I'm placing a AutoSize = false in my constructor, however, when I place it in design mode, the property alway... | [
"c#",
"winforms"
] | 7 | 3 | 7,161 | 5 | 0 | 2008-08-24T17:17:51.763000 | 2008-08-29T00:53:56.283000 |
25,224 | 25,248 | joining latest of various usermetadata tags to user rows | I have a postgres database with a user table (userid, firstname, lastname) and a usermetadata table (userid, code, content, created datetime). I store various information about each user in the usermetadata table by code and keep a full history. so for example, a user (userid 15) has the following metadata: 15, 'QHS', ... | I suppose you're not willing to modify your schema, so I'm afraid my answe might not be of much help, but here goes... One possible solution would be to have the time field empty until it was replaced by a newer value, when you insert the 'deprecation date' instead. Another way is to expand the table with an 'active' c... | joining latest of various usermetadata tags to user rows I have a postgres database with a user table (userid, firstname, lastname) and a usermetadata table (userid, code, content, created datetime). I store various information about each user in the usermetadata table by code and keep a full history. so for example, a... | TITLE:
joining latest of various usermetadata tags to user rows
QUESTION:
I have a postgres database with a user table (userid, firstname, lastname) and a usermetadata table (userid, code, content, created datetime). I store various information about each user in the usermetadata table by code and keep a full history.... | [
"database",
"postgresql"
] | 2 | 1 | 370 | 3 | 0 | 2008-08-24T17:48:12.983000 | 2008-08-24T18:11:02.603000 |
25,225 | 25,231 | Combining values from different files into one CSV file | I have a couple of files containing a value in each line. EDIT: I figured out the answer to this question while in the midst of writing the post and didn't realize I had posted it by mistake in its incomplete state. I was trying to do: paste -d ',' file1 file2 file 3 file 4 > file5.csv and was getting a weird output. I... | file 1: 1 2 3 file2: 2 4 6 paste --delimiters=\; file1 file2 Will yield: 1;2 3;4 5;6 | Combining values from different files into one CSV file I have a couple of files containing a value in each line. EDIT: I figured out the answer to this question while in the midst of writing the post and didn't realize I had posted it by mistake in its incomplete state. I was trying to do: paste -d ',' file1 file2 fil... | TITLE:
Combining values from different files into one CSV file
QUESTION:
I have a couple of files containing a value in each line. EDIT: I figured out the answer to this question while in the midst of writing the post and didn't realize I had posted it by mistake in its incomplete state. I was trying to do: paste -d '... | [
"regex",
"linux",
"unix",
"shell"
] | 2 | 2 | 1,111 | 5 | 0 | 2008-08-24T17:49:02.390000 | 2008-08-24T17:54:52.437000 |
25,252 | 340,769 | Remote Debugging PHP Command Line Scripts with Zend? | I'm using Zend Studio to do remote debugging of my php scripts on a dev server. It works great for web code, but can I make it work with command line scripts? I have several helper apps to make my application run. It would be really useful to fire up the remote debugger through command line instead of a web browser so ... | I was able to get remote CLI debugging working in Eclipse, using xdebug, though I've not tried it with the zend debugger. I would assume this should work the same with ZSfE, if that's the "Zend Studio" you're using. | Remote Debugging PHP Command Line Scripts with Zend? I'm using Zend Studio to do remote debugging of my php scripts on a dev server. It works great for web code, but can I make it work with command line scripts? I have several helper apps to make my application run. It would be really useful to fire up the remote debug... | TITLE:
Remote Debugging PHP Command Line Scripts with Zend?
QUESTION:
I'm using Zend Studio to do remote debugging of my php scripts on a dev server. It works great for web code, but can I make it work with command line scripts? I have several helper apps to make my application run. It would be really useful to fire u... | [
"php",
"debugging",
"xdebug",
"zend-studio"
] | 1 | 4 | 3,398 | 5 | 0 | 2008-08-24T18:14:54.887000 | 2008-12-04T14:32:47.310000 |
25,259 | 25,486 | How does Stack Overflow generate its SEO-friendly URLs? | What is a good complete regular expression or some other process that would take the title: How do you change a title to be part of the URL like Stack Overflow? and turn it into how-do-you-change-a-title-to-be-part-of-the-url-like-stack-overflow that is used in the SEO-friendly URLs on Stack Overflow? The development e... | Here's how we do it. Note that there are probably more edge conditions than you realize at first glance. This is the second version, unrolled for 5x more performance (and yes, I benchmarked it). I figured I'd optimize it because this function can be called hundreds of times per page. /// /// Produces optional, URL-frie... | How does Stack Overflow generate its SEO-friendly URLs? What is a good complete regular expression or some other process that would take the title: How do you change a title to be part of the URL like Stack Overflow? and turn it into how-do-you-change-a-title-to-be-part-of-the-url-like-stack-overflow that is used in th... | TITLE:
How does Stack Overflow generate its SEO-friendly URLs?
QUESTION:
What is a good complete regular expression or some other process that would take the title: How do you change a title to be part of the URL like Stack Overflow? and turn it into how-do-you-change-a-title-to-be-part-of-the-url-like-stack-overflow ... | [
"regex",
"language-agnostic",
"seo",
"friendly-url",
"slug"
] | 268 | 322 | 45,765 | 21 | 0 | 2008-08-24T18:21:11.237000 | 2008-08-25T00:11:43.763000 |
25,261 | 25,281 | Set and Oldset in sigprocmask() | I haven't completely understood, how to use sigprocmask(). Particularly, how the set and oldset and its syntax work and how to use them. int sigprocmask(int how, const sigset_t *set, sigset_t *oldset); Please explain with an example, to block, say SIGUSR1 for a few seconds and then unblock and handle it. ... | The idea is that you provide a mask in set, effectively a list of signals. The how argument says what you should do with the mask in set. You can either use SIG_BLOCK to block the signals in the set list, or SIG_UNBLOCK to unblock them. Neither of these changes the signals that aren't set in the list. SIG_SETMASK block... | Set and Oldset in sigprocmask() I haven't completely understood, how to use sigprocmask(). Particularly, how the set and oldset and its syntax work and how to use them. int sigprocmask(int how, const sigset_t *set, sigset_t *oldset); Please explain with an example, to block, say SIGUSR1 for a few seconds and then unblo... | TITLE:
Set and Oldset in sigprocmask()
QUESTION:
I haven't completely understood, how to use sigprocmask(). Particularly, how the set and oldset and its syntax work and how to use them. int sigprocmask(int how, const sigset_t *set, sigset_t *oldset); Please explain with an example, to block, say SIGUSR1 for a few seco... | [
"c",
"posix",
"signals",
"sigprocmask"
] | 31 | 77 | 34,733 | 1 | 0 | 2008-08-24T18:23:21.527000 | 2008-08-24T18:57:50.587000 |
25,268 | 1,067,011 | What are the best practices when using SWIG with C#? | Has anybody out there used the SWIG library with C#? If you have, what pitfalls did you find and what is the best way to use the library? I am thinking about using it as a wrapper for a program that was written in C and I want to wrap the header files where I can use them in my.NET application. Edit: Some clarification... | I think the mistake the earlier posters did was read the docs and not look at the examples. A few hours ago I needed to interface some C++ classes to C#. I looked in my Swig dir (I already had it for other work), found the directory Examples/csharp/class, browsed the code, loaded the solution, grokked it, copied it, pu... | What are the best practices when using SWIG with C#? Has anybody out there used the SWIG library with C#? If you have, what pitfalls did you find and what is the best way to use the library? I am thinking about using it as a wrapper for a program that was written in C and I want to wrap the header files where I can use... | TITLE:
What are the best practices when using SWIG with C#?
QUESTION:
Has anybody out there used the SWIG library with C#? If you have, what pitfalls did you find and what is the best way to use the library? I am thinking about using it as a wrapper for a program that was written in C and I want to wrap the header fil... | [
"c#",
"c",
"swig"
] | 22 | 11 | 9,579 | 3 | 0 | 2008-08-24T18:31:54.580000 | 2009-07-01T02:21:09.190000 |
25,277 | 25,456 | Can you perform an AND search of keywords using FREETEXT() on SQL Server 2005? | There is a request to make the SO search default to an AND style functionality over the current OR when multiple terms are used. The official response was: not as simple as it sounds; we use SQL Server 2005's FREETEXT() function, and I can't find a way to specify AND vs. OR -- can you? So, is there a way? There are a n... | OK, this change is in -- we now use CONTAINS() with implicit AND instead of FREETEXT() and its implicit OR. | Can you perform an AND search of keywords using FREETEXT() on SQL Server 2005? There is a request to make the SO search default to an AND style functionality over the current OR when multiple terms are used. The official response was: not as simple as it sounds; we use SQL Server 2005's FREETEXT() function, and I can't... | TITLE:
Can you perform an AND search of keywords using FREETEXT() on SQL Server 2005?
QUESTION:
There is a request to make the SO search default to an AND style functionality over the current OR when multiple terms are used. The official response was: not as simple as it sounds; we use SQL Server 2005's FREETEXT() fun... | [
"sql-server-2005",
"search",
"full-text-search",
"freetext"
] | 3 | 1 | 1,290 | 3 | 0 | 2008-08-24T18:47:16.197000 | 2008-08-24T23:40:09.253000 |
25,297 | 25,300 | Reserved Keyword in Enumeration in C# | I would like to use as and is as members of an enumeration. I know that this is possible in VB.NET to write it like this: Public Enum Test [as] = 1 [is] = 2 End Enum How do I write the equivalent statement in C#? The following code does not compile: public enum Test { as = 1, is = 2 } | Prefixing reserved words in C# is done with @. public enum Test { @as = 1, @is = 2 } | Reserved Keyword in Enumeration in C# I would like to use as and is as members of an enumeration. I know that this is possible in VB.NET to write it like this: Public Enum Test [as] = 1 [is] = 2 End Enum How do I write the equivalent statement in C#? The following code does not compile: public enum Test { as = 1, is = ... | TITLE:
Reserved Keyword in Enumeration in C#
QUESTION:
I would like to use as and is as members of an enumeration. I know that this is possible in VB.NET to write it like this: Public Enum Test [as] = 1 [is] = 2 End Enum How do I write the equivalent statement in C#? The following code does not compile: public enum Te... | [
"c#",
"vb.net",
".net-2.0"
] | 21 | 37 | 3,994 | 3 | 0 | 2008-08-24T19:37:24.237000 | 2008-08-24T19:39:17.447000 |
25,323 | 28,710 | WCF - Domain Objects and IExtensibleDataObject | Typical scenario. We use old-school XML Web Services internally for communicating between a server farm and several distributed and local clients. No third parties involved, only our applications used by ourselves and our customers. We're currently pondering moving from XML WS to a WCF/object-based model and have been ... | In my experience DTOs are most useful for: Strictly defining what will be sent over the wire and having a type specifically devoted to that definition. Isolating the rest of your application, client and server, from future changes. Interoperability with non-.Net systems. DTOs certainly aren't a requirement, but they ma... | WCF - Domain Objects and IExtensibleDataObject Typical scenario. We use old-school XML Web Services internally for communicating between a server farm and several distributed and local clients. No third parties involved, only our applications used by ourselves and our customers. We're currently pondering moving from XM... | TITLE:
WCF - Domain Objects and IExtensibleDataObject
QUESTION:
Typical scenario. We use old-school XML Web Services internally for communicating between a server farm and several distributed and local clients. No third parties involved, only our applications used by ourselves and our customers. We're currently ponder... | [
"wcf",
"serialization",
"soap",
"domain-driven-design",
"soa"
] | 10 | 6 | 2,865 | 2 | 0 | 2008-08-24T20:34:10.293000 | 2008-08-26T17:48:12.530000 |
25,343 | 25,346 | Is there any way to automate windows forms testing? | I am familiar with nunit for unit testing of the business layer however I am looking now to automate the test of the win forms gui layer. I have seen watin and the watin recorder for automating tests on web application by accessing the controls and automating them. However I am struggling to find a watin equivalent for... | Check out http://www.codeplex.com/white and http://nunitforms.sourceforge.net/. We've used the White project with success. Same Answer to a previous question Edit The White project has moved, and is now located on GitHub as part of TestStack. | Is there any way to automate windows forms testing? I am familiar with nunit for unit testing of the business layer however I am looking now to automate the test of the win forms gui layer. I have seen watin and the watin recorder for automating tests on web application by accessing the controls and automating them. Ho... | TITLE:
Is there any way to automate windows forms testing?
QUESTION:
I am familiar with nunit for unit testing of the business layer however I am looking now to automate the test of the win forms gui layer. I have seen watin and the watin recorder for automating tests on web application by accessing the controls and a... | [
"c#",
".net",
"vb.net",
"winforms",
"automated-tests"
] | 57 | 30 | 41,589 | 9 | 0 | 2008-08-24T21:10:33.373000 | 2008-08-24T21:15:25.483000 |
25,349 | 25,354 | What would be the fastest way to remove Newlines from a String in C#? | I have a string that has some Environment.Newline in it. I'd like to strip those from the string and instead, replace the Newline with something like a comma. What would be, in your opinion, the best way to do this using C#.NET 2.0? | Why not: string s = "foobar\ngork"; string v = s.Replace(Environment.NewLine,","); System.Console.WriteLine(v); | What would be the fastest way to remove Newlines from a String in C#? I have a string that has some Environment.Newline in it. I'd like to strip those from the string and instead, replace the Newline with something like a comma. What would be, in your opinion, the best way to do this using C#.NET 2.0? | TITLE:
What would be the fastest way to remove Newlines from a String in C#?
QUESTION:
I have a string that has some Environment.Newline in it. I'd like to strip those from the string and instead, replace the Newline with something like a comma. What would be, in your opinion, the best way to do this using C#.NET 2.0?... | [
"c#",
".net",
"string",
"replace"
] | 12 | 20 | 9,559 | 5 | 0 | 2008-08-24T21:23:23.310000 | 2008-08-24T21:29:06.277000 |
25,355 | 25,371 | Custom Attribute Binding in Silverlight | I've got two Silverlight Controls in my project, both have properties TeamId. I would like to bind these together in XAML in the control hosting both user controls similar to: In the first control, I'm implementing System.ComponentModel.INotifyPropertyChanged and raising the PropertyChanged event upon the TeamId proper... | That is the correct approach in WPF, but not in Silverlight. You cannot bind to elements using xaml in Silverlight. This is the offending line: TeamId="{Binding ElementName=oUserTeams, Path=TeamId}" Specificly ElementName If you can, place the data object into Resources and declare it there, then you can do this: | Custom Attribute Binding in Silverlight I've got two Silverlight Controls in my project, both have properties TeamId. I would like to bind these together in XAML in the control hosting both user controls similar to: In the first control, I'm implementing System.ComponentModel.INotifyPropertyChanged and raising the Prop... | TITLE:
Custom Attribute Binding in Silverlight
QUESTION:
I've got two Silverlight Controls in my project, both have properties TeamId. I would like to bind these together in XAML in the control hosting both user controls similar to: In the first control, I'm implementing System.ComponentModel.INotifyPropertyChanged an... | [
"silverlight"
] | 3 | 4 | 3,045 | 1 | 0 | 2008-08-24T21:31:33.510000 | 2008-08-24T21:45:48.170000 |
25,356 | 87,558 | Flash designer/coder collaboration best practices | I've done several flash projects working as the ActionScripter with a designer doing all the pretty things and animation. When starting out I found quite a lot of information about ActionScript coding and flash design. Most of the information available seems to focus on one or the other. I didn't find any information a... | I've been doing Flash for 9 years and I still find this a difficult thing to get right. There is a balance of power between designers and developers, which will inevitably tip one way or the other. If you work for a developer led studio, then you are lucky, as the designers will be instructed to make a design that fits... | Flash designer/coder collaboration best practices I've done several flash projects working as the ActionScripter with a designer doing all the pretty things and animation. When starting out I found quite a lot of information about ActionScript coding and flash design. Most of the information available seems to focus on... | TITLE:
Flash designer/coder collaboration best practices
QUESTION:
I've done several flash projects working as the ActionScripter with a designer doing all the pretty things and animation. When starting out I found quite a lot of information about ActionScript coding and flash design. Most of the information available... | [
"flash",
"actionscript"
] | 8 | 4 | 1,197 | 4 | 0 | 2008-08-24T21:32:21.353000 | 2008-09-17T20:52:59.207000 |
25,367 | 25,466 | What is the best calendar pop-up to populate a web form? | I want to be able to make an HTTP call updating some select boxes after a date is selected. I would like to be in control of updating the textbox so I know when there has been a "true" change (in the event the same date was selected). Ideally, I would call a function to pop-up the calendar and be able to evaluate the d... | JQuery's datepicker is an extremely flexible tool. With the ability to attach handlers prior to opening or after date selection, themes, range selection and a variety of other incredibly useful options, I've found that it meets all my needs. The fact that I sit next to one of its maintainers here at work is also fairly... | What is the best calendar pop-up to populate a web form? I want to be able to make an HTTP call updating some select boxes after a date is selected. I would like to be in control of updating the textbox so I know when there has been a "true" change (in the event the same date was selected). Ideally, I would call a func... | TITLE:
What is the best calendar pop-up to populate a web form?
QUESTION:
I want to be able to make an HTTP call updating some select boxes after a date is selected. I would like to be in control of updating the textbox so I know when there has been a "true" change (in the event the same date was selected). Ideally, I... | [
"javascript",
"calendar"
] | 8 | 9 | 9,249 | 7 | 0 | 2008-08-24T21:42:41.673000 | 2008-08-24T23:49:00.700000 |
25,375 | 51,944 | How can I represent a very large integer in .NET? | Does.NET come with a class capable of representing extremely large integers, such as 100 factorial? If not, what are some good third party libraries to accomplish this? | .NET 4 has a BigInteger class Represents an arbitrarily large signed integer. The BigInteger type is an immutable type that represents an arbitrarily large integer whose value in theory has no upper or lower bounds. This type differs from the other integral types in the.NET Framework, which have a range indicated by th... | How can I represent a very large integer in .NET? Does.NET come with a class capable of representing extremely large integers, such as 100 factorial? If not, what are some good third party libraries to accomplish this? | TITLE:
How can I represent a very large integer in .NET?
QUESTION:
Does.NET come with a class capable of representing extremely large integers, such as 100 factorial? If not, what are some good third party libraries to accomplish this?
ANSWER:
.NET 4 has a BigInteger class Represents an arbitrarily large signed integ... | [
".net",
"bignum"
] | 27 | 18 | 8,996 | 5 | 0 | 2008-08-24T21:51:57.593000 | 2008-09-09T13:56:30.553000 |
25,376 | 25,412 | What is appliance and how to use lambda expressions? | I've read that Lambda Expressions are an incredibly powerful addition to C#, yet I find myself mystified by them. How can they improve my life or make my code better? Can anyone point to a good resource for learning such expressions? They seem cool as hell, but how do they relate to my day-to-day life as an asp.net dev... | : are lambda expressions useful for anything other than querying Lamba expressions are nothing much other than a convenient way of writing a function 'in-line'. So they're useful any place you wanted a bit of code which can be called as though it's a separate function but which is actually written inside its caller. (I... | What is appliance and how to use lambda expressions? I've read that Lambda Expressions are an incredibly powerful addition to C#, yet I find myself mystified by them. How can they improve my life or make my code better? Can anyone point to a good resource for learning such expressions? They seem cool as hell, but how d... | TITLE:
What is appliance and how to use lambda expressions?
QUESTION:
I've read that Lambda Expressions are an incredibly powerful addition to C#, yet I find myself mystified by them. How can they improve my life or make my code better? Can anyone point to a good resource for learning such expressions? They seem cool ... | [
"c#",
"lambda"
] | 24 | 12 | 4,111 | 3 | 0 | 2008-08-24T21:53:16.953000 | 2008-08-24T22:45:01.210000 |
25,379 | 1,262,071 | Family Website CMS | I am looking for a CMS that would be incredibly user-friendly and would have the following features: really simple message board (no login required) family tree story telling area photo section news section Is there anything out there like this that is really easily configurable? I've already messed around with Mambo a... | I've been using http://www.myfamily.com/ and it fits all my needs. It includes: Pictures (with option to order prints) Discussion Family Trees (free from ancestry.com) Videos Files Events | Family Website CMS I am looking for a CMS that would be incredibly user-friendly and would have the following features: really simple message board (no login required) family tree story telling area photo section news section Is there anything out there like this that is really easily configurable? I've already messed ... | TITLE:
Family Website CMS
QUESTION:
I am looking for a CMS that would be incredibly user-friendly and would have the following features: really simple message board (no login required) family tree story telling area photo section news section Is there anything out there like this that is really easily configurable? I'... | [
"plugins",
"content-management-system"
] | 6 | 1 | 3,000 | 7 | 0 | 2008-08-24T21:56:17.227000 | 2009-08-11T18:14:13.813000 |
25,449 | 25,492 | How to create a pluginable Java program? | I want to create a Java program that can be extended with plugins. How can I do that and where should I look for? I have a set of interfaces that the plugin must implement, and it should be in a jar. The program should watch for new jars in a relative (to the program) folder and registered them somehow. Although I do l... | I've done this for software I've written in the past, it's very handy. I did it by first creating an Interface that all my 'plugin' classes needed to implement. I then used the Java ClassLoader to load those classes and create instances of them. One way you can go about it is this: File dir = new File("put path to clas... | How to create a pluginable Java program? I want to create a Java program that can be extended with plugins. How can I do that and where should I look for? I have a set of interfaces that the plugin must implement, and it should be in a jar. The program should watch for new jars in a relative (to the program) folder and... | TITLE:
How to create a pluginable Java program?
QUESTION:
I want to create a Java program that can be extended with plugins. How can I do that and where should I look for? I have a set of interfaces that the plugin must implement, and it should be in a jar. The program should watch for new jars in a relative (to the p... | [
"java",
"plugins",
"plugin-architecture"
] | 42 | 50 | 35,280 | 6 | 0 | 2008-08-24T23:28:38.987000 | 2008-08-25T00:21:40.637000 |
25,450 | 25,467 | Abstraction away from CSS | Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in an effort to make dealing with that particular kettle of fish easier. Is there anything you folks have used that has a similar concept applied to CSS? Something that does a bunch of cross-browser magic for you, supports like variabl... | You can always use a template engine to add variables and calculated fields to your CSS files. | Abstraction away from CSS Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in an effort to make dealing with that particular kettle of fish easier. Is there anything you folks have used that has a similar concept applied to CSS? Something that does a bunch of cross-browser magic for ... | TITLE:
Abstraction away from CSS
QUESTION:
Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in an effort to make dealing with that particular kettle of fish easier. Is there anything you folks have used that has a similar concept applied to CSS? Something that does a bunch of cross-... | [
"css",
"abstraction"
] | 14 | 9 | 1,870 | 18 | 0 | 2008-08-24T23:33:25.917000 | 2008-08-24T23:49:58.373000 |
25,455 | 25,573 | What is the most efficient way to populate a time (or time range)? | While plenty of solutions exist for entering dates (such as calendars, drop-down menus, etc.), it doesn't seem like there are too many "standard" ways to ask for a time (or time range). I've personally tried drop-down menus for the hour, minute, and second fields (and sometimes an "AM/PM" field, as well). I've also tri... | I find Google Calendar's approach to be the best. Use a text box, but use JavaScript to make it sort of a drop-down for picking your time. A good demo can be found for a jQuery implementation here I haven't implemented this on my site yet so I'm not 100% sure, but I think you also need code from this jQuery plugin here... | What is the most efficient way to populate a time (or time range)? While plenty of solutions exist for entering dates (such as calendars, drop-down menus, etc.), it doesn't seem like there are too many "standard" ways to ask for a time (or time range). I've personally tried drop-down menus for the hour, minute, and sec... | TITLE:
What is the most efficient way to populate a time (or time range)?
QUESTION:
While plenty of solutions exist for entering dates (such as calendars, drop-down menus, etc.), it doesn't seem like there are too many "standard" ways to ask for a time (or time range). I've personally tried drop-down menus for the hou... | [
"time"
] | 2 | 0 | 433 | 3 | 0 | 2008-08-24T23:39:46.400000 | 2008-08-25T02:12:56.343000 |
25,458 | 25,465 | How costly is .NET reflection? | I constantly hear how bad reflection is to use. While I generally avoid reflection and rarely find situations where it is impossible to solve my problem without it, I was wondering... For those who have used reflection in applications, have you measured performance hits and, is it really so bad? | It is. But that depends on what you're trying to do. I use reflection to dynamically load assemblies (plugins) and its performance "penalty" is not a problem, since the operation is something I do during startup of the application. However, if you're reflecting inside a series of nested loops with reflection calls on e... | How costly is .NET reflection? I constantly hear how bad reflection is to use. While I generally avoid reflection and rarely find situations where it is impossible to solve my problem without it, I was wondering... For those who have used reflection in applications, have you measured performance hits and, is it really ... | TITLE:
How costly is .NET reflection?
QUESTION:
I constantly hear how bad reflection is to use. While I generally avoid reflection and rarely find situations where it is impossible to solve my problem without it, I was wondering... For those who have used reflection in applications, have you measured performance hits ... | [
"c#",
".net",
"performance",
"reflection"
] | 232 | 146 | 76,964 | 13 | 0 | 2008-08-24T23:40:16.647000 | 2008-08-24T23:48:33.947000 |
25,460 | 25,506 | Asynchronous Stored Procedure Calls | Is it possible to call a stored procedure from another stored procedure asynchronously? Edit: Specifically I'm working with a DB2 database. | Executive summary: Yes, if your database has a message queue service. You can push a message onto a queue and the queue processor will consume it asynchronously. Oracle: queues Sql Server: service broker DB2: event broker For "pure" stored procedure languages (PL/Sql or T-Sql) the answer is no, since it works against t... | Asynchronous Stored Procedure Calls Is it possible to call a stored procedure from another stored procedure asynchronously? Edit: Specifically I'm working with a DB2 database. | TITLE:
Asynchronous Stored Procedure Calls
QUESTION:
Is it possible to call a stored procedure from another stored procedure asynchronously? Edit: Specifically I'm working with a DB2 database.
ANSWER:
Executive summary: Yes, if your database has a message queue service. You can push ... | [
"sql",
"stored-procedures",
"db2"
] | 5 | 5 | 8,614 | 3 | 0 | 2008-08-24T23:43:00.370000 | 2008-08-25T00:34:44.053000 |
25,461 | 29,300 | interfacing with stdbool.h C++ | In a project I am interfacing between C++ and a C library that uses stdbool.h defined as such. #ifndef _STDBOOL_H #define _STDBOOL_H
/* C99 Boolean types for compilers without C99 support */ /* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */ #if!defined(__cplusplus)
#if!defined(__GNUC__) /* _... | I found the answer to my own question by finding a more compatible implementation of stdbool.h that is compliant with the C99 standard. #ifndef _STDBOOL_H #define _STDBOOL_H
#include /* C99 Boolean types for compilers without C99 support */ /* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */ #i... | interfacing with stdbool.h C++ In a project I am interfacing between C++ and a C library that uses stdbool.h defined as such. #ifndef _STDBOOL_H #define _STDBOOL_H
/* C99 Boolean types for compilers without C99 support */ /* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */ #if!defined(__cpluspl... | TITLE:
interfacing with stdbool.h C++
QUESTION:
In a project I am interfacing between C++ and a C library that uses stdbool.h defined as such. #ifndef _STDBOOL_H #define _STDBOOL_H
/* C99 Boolean types for compilers without C99 support */ /* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */ #if... | [
"c++",
"c",
"boolean",
"standards"
] | 14 | 11 | 10,386 | 3 | 0 | 2008-08-24T23:44:53.330000 | 2008-08-27T01:14:06.767000 |
25,475 | 25,479 | How do I put unicode characters in my Antlr grammar? | I'm trying to build a grammar with the following: NUMERIC: INTEGER | FLOAT | INFINITY | PI... INFINITY: '∞' PI: 'π' But Antlr refuses to load the grammar. | Use the Java expression representing the Unicode character: 'π' = '\u03C0' '∞' = '\u221E' That will work up to '\uFFFF'; Java doesn't support five-digit Unicode. | How do I put unicode characters in my Antlr grammar? I'm trying to build a grammar with the following: NUMERIC: INTEGER | FLOAT | INFINITY | PI... INFINITY: '∞' PI: 'π' But Antlr refuses to load the grammar. | TITLE:
How do I put unicode characters in my Antlr grammar?
QUESTION:
I'm trying to build a grammar with the following: NUMERIC: INTEGER | FLOAT | INFINITY | PI... INFINITY: '∞' PI: 'π' But Antlr refuses to load the grammar.
ANSWER:
Use the Java expression representing the Unicode character: 'π' = '\u03C0' '∞' = '\u2... | [
"unicode",
"internationalization",
"antlr",
"parsing"
] | 4 | 3 | 1,847 | 1 | 0 | 2008-08-25T00:03:13.457000 | 2008-08-25T00:04:48.570000 |
25,481 | 25,484 | Where do I get the Antlr Ant task? | I'm trying to call an Antlr task in my Ant build.xml as follows:... But Ant can't find the task definition. I've put all of the following in that dir.lib.build: antlr-3.1.jar antlr-2.7.7.jar antlr-runtime-3.1.jar stringtemplate-3.2.jar But none of those seems to have the task definition. (I've also tried putting those ... | The current Antlr-task jar is available at http://www.antlr.org/share/1169924912745/antlr3-task.zip It can be found on the antlr.org website under the "File Sharing" heading. | Where do I get the Antlr Ant task? I'm trying to call an Antlr task in my Ant build.xml as follows:... But Ant can't find the task definition. I've put all of the following in that dir.lib.build: antlr-3.1.jar antlr-2.7.7.jar antlr-runtime-3.1.jar stringtemplate-3.2.jar But none of those seems to have the task definiti... | TITLE:
Where do I get the Antlr Ant task?
QUESTION:
I'm trying to call an Antlr task in my Ant build.xml as follows:... But Ant can't find the task definition. I've put all of the following in that dir.lib.build: antlr-3.1.jar antlr-2.7.7.jar antlr-runtime-3.1.jar stringtemplate-3.2.jar But none of those seems to have... | [
"ant",
"antlr",
"parsing"
] | 4 | 4 | 4,954 | 6 | 0 | 2008-08-25T00:07:43.087000 | 2008-08-25T00:11:09.850000 |
25,519 | 25,529 | Filtering out anchor tags in a string | I need to filter out anchor tags in a string. For instance, Check out this site: stackoverflow I need to be able to filter out the anchor tag to this: Check out this site: http://www.stackoverflow.com That format may not be constant, either. There could be other attributes to the anchor tag. Also, there could be more t... | Here's a simple regular expression that should work. Imports System.Text.RegularExpressions
'....
Dim reg As New Regex(".+? ") Dim input As String = "This is a link: Stackoverflow " input = reg.Replace(input, "$1", RegexOptions.IgnoreCase) | Filtering out anchor tags in a string I need to filter out anchor tags in a string. For instance, Check out this site: stackoverflow I need to be able to filter out the anchor tag to this: Check out this site: http://www.stackoverflow.com That format may not be constant, either. There could be other attributes to the a... | TITLE:
Filtering out anchor tags in a string
QUESTION:
I need to filter out anchor tags in a string. For instance, Check out this site: stackoverflow I need to be able to filter out the anchor tag to this: Check out this site: http://www.stackoverflow.com That format may not be constant, either. There could be other a... | [
"asp.net",
"html",
"vb.net"
] | 7 | 8 | 1,238 | 1 | 0 | 2008-08-25T01:00:50.370000 | 2008-08-25T01:11:56.960000 |
25,530 | 25,543 | Best Method to run a Java Application as a *nix Daemon or Windows Service? | I am looking for the best method to run a Java Application as a *NIX daemon or a Windows Service. I've looked in to the Java Service Wrapper, the Apache Commons project 'jsvc', and the Apache Commons project 'procrun'. So far, the Java Service Wrapper looks like it's the best option... but, I'm wondering if there are a... | I've had great success with Java Service Wrapper myself. I haven't looked at the others, but the major strengths of ServiceWrapper are: Great x-platform support - I've used it on Windows and Linux, and found it easy on both Solid Documentation - The docs are clear and to the point, with great examples Deep per-platform... | Best Method to run a Java Application as a *nix Daemon or Windows Service? I am looking for the best method to run a Java Application as a *NIX daemon or a Windows Service. I've looked in to the Java Service Wrapper, the Apache Commons project 'jsvc', and the Apache Commons project 'procrun'. So far, the Java Service W... | TITLE:
Best Method to run a Java Application as a *nix Daemon or Windows Service?
QUESTION:
I am looking for the best method to run a Java Application as a *NIX daemon or a Windows Service. I've looked in to the Java Service Wrapper, the Apache Commons project 'jsvc', and the Apache Commons project 'procrun'. So far, ... | [
"java",
"unix",
"windows-services",
"daemon"
] | 20 | 18 | 4,975 | 3 | 0 | 2008-08-25T01:11:59.080000 | 2008-08-25T01:38:11.030000 |
25,532 | 25,540 | ASP.NET Master Pages equivalent in Java | What would be the Master Pages equivalent in the Java web development world? I've heard of Tiles, Tapestry and Velocity but don't know anything about them. Are they as easy to use as Master Pages? I want something as easy as set up one template and subsequent pages derive from the template and override content regions,... | First, the equivalent of ASP.Net in Java is going to be a web framework, such as the ones you mention (Tiles, Tapestry and Velocity). Master pages give the ability to define pages in terms of content slotted into a master template. Master pages are a feature of ASP.Net (the.Net web framework), so you are looking for a ... | ASP.NET Master Pages equivalent in Java What would be the Master Pages equivalent in the Java web development world? I've heard of Tiles, Tapestry and Velocity but don't know anything about them. Are they as easy to use as Master Pages? I want something as easy as set up one template and subsequent pages derive from th... | TITLE:
ASP.NET Master Pages equivalent in Java
QUESTION:
What would be the Master Pages equivalent in the Java web development world? I've heard of Tiles, Tapestry and Velocity but don't know anything about them. Are they as easy to use as Master Pages? I want something as easy as set up one template and subsequent pa... | [
"java",
"model-view-controller",
"master-pages"
] | 6 | 4 | 10,216 | 3 | 0 | 2008-08-25T01:13:04.337000 | 2008-08-25T01:34:37.123000 |
25,546 | 55,252 | Securely sync folders over a public network | I need to keep the files & folders on two Windows-based, non-domain machines synchronized across a public network. I was thinking rsync over SSH - but I was wondering if there is a simpler solution? Any possibility of using the sync framework over SFTP/SCP/SSH? Or I'm open to better ideas? | Figured I'd post what I finally went with - WinSCP - http://winscp.net Connects via GUI to an SFTP server + supports Local/Remote/Both synchronization + scriptable with command-line/batch interface. | Securely sync folders over a public network I need to keep the files & folders on two Windows-based, non-domain machines synchronized across a public network. I was thinking rsync over SSH - but I was wondering if there is a simpler solution? Any possibility of using the sync framework over SFTP/SCP/SSH? Or I'm open to... | TITLE:
Securely sync folders over a public network
QUESTION:
I need to keep the files & folders on two Windows-based, non-domain machines synchronized across a public network. I was thinking rsync over SSH - but I was wondering if there is a simpler solution? Any possibility of using the sync framework over SFTP/SCP/S... | [
"synchronization",
"security",
"rsync"
] | 5 | 2 | 3,920 | 11 | 0 | 2008-08-25T01:46:05.737000 | 2008-09-10T20:32:38.643000 |
25,550 | 25,631 | What's the best way to import/read data from pdf files? | We get a large amount of data from our clients in pdf files in varying formats [layout-wise], these files are typically report output, and are typically properly annotated [they don't usually need OCR], but not formatted well enough that simply copying several hundred pages of text out of acrobat is not going to work. ... | We use Xpdf in one of our applications. Its a c++ library which is primarily used for pdf rendering, although it does have a text extractor which could be useful for this project. | What's the best way to import/read data from pdf files? We get a large amount of data from our clients in pdf files in varying formats [layout-wise], these files are typically report output, and are typically properly annotated [they don't usually need OCR], but not formatted well enough that simply copying several hun... | TITLE:
What's the best way to import/read data from pdf files?
QUESTION:
We get a large amount of data from our clients in pdf files in varying formats [layout-wise], these files are typically report output, and are typically properly annotated [they don't usually need OCR], but not formatted well enough that simply c... | [
"pdf",
"import"
] | 4 | 3 | 11,477 | 4 | 0 | 2008-08-25T01:49:22.250000 | 2008-08-25T03:48:40.640000 |
25,552 | 25,596 | Get OS-level system information | I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows. Has anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used in the underlying OS? What about just what the Ja... | You can get some limited memory information from the Runtime class. It really isn't exactly what you are looking for, but I thought I would provide it for the sake of completeness. Here is a small example. Edit: You can also get disk usage information from the java.io.File class. The disk space usage stuff requires Jav... | Get OS-level system information I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows. Has anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used in the underlying... | TITLE:
Get OS-level system information
QUESTION:
I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows. Has anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used... | [
"java",
"memory",
"resources",
"system"
] | 244 | 210 | 260,837 | 17 | 0 | 2008-08-25T01:49:55.433000 | 2008-08-25T02:53:21.287000 |
25,561 | 25,622 | Capturing a repeated group | I am attempting to parse a string like the following using a.NET regular expression: H3Y5NC8E-TGA5B6SB-2NVAQ4E0 and return the following using Split: H3Y5NC8E TGA5B6SB 2NVAQ4E0 I validate each character against a specific character set (note that the letters 'I', 'O', 'U' & 'W' are absent), so using string.Split is not... | I have discovered the answer I was after. Here is my working code: static void Main(string[] args) { string pattern = @"^\s*((? [ABCDEFGHJKLMNPQRSTVXYZ0123456789]{8})-?){3}\s*$"; string input = "H3Y5NC8E-TGA5B6SB-2NVAQ4E0"; Regex re = new Regex(pattern); Match m = re.Match(input);
if (m.Success) foreach (Capture c in ... | Capturing a repeated group I am attempting to parse a string like the following using a.NET regular expression: H3Y5NC8E-TGA5B6SB-2NVAQ4E0 and return the following using Split: H3Y5NC8E TGA5B6SB 2NVAQ4E0 I validate each character against a specific character set (note that the letters 'I', 'O', 'U' & 'W' are absent), s... | TITLE:
Capturing a repeated group
QUESTION:
I am attempting to parse a string like the following using a.NET regular expression: H3Y5NC8E-TGA5B6SB-2NVAQ4E0 and return the following using Split: H3Y5NC8E TGA5B6SB 2NVAQ4E0 I validate each character against a specific character set (note that the letters 'I', 'O', 'U' & ... | [
"regex",
".net-2.0"
] | 3 | 4 | 7,130 | 9 | 0 | 2008-08-25T01:59:45.020000 | 2008-08-25T03:33:47.303000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.