qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
242,565
<p>I have MainViewController calling WebViewController (From UICatalog sample application) In WebViewController I make some function setValue(){...} to set some value passed as parameter to the variable (NSString *value) from WebViewController.h but when I try from MainViewController something like WebViewController ta...
[ { "answer_id": 242638, "author": "Kendall Helmstetter Gelner", "author_id": 6330, "author_profile": "https://Stackoverflow.com/users/6330", "pm_score": 1, "selected": false, "text": "targetViewController.value = whatever;\n [targetViewController setValue:whatever];\n" }, { "answe...
2008/10/28
[ "https://Stackoverflow.com/questions/242565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16066/" ]
242,568
<p>By default, .NET application's configuration file is named after "exe file name".config. I'm wondering whether it is possible to have one application's configuration specified dynamically.</p> <p>For example, the built application is "foo.exe". At runtime, the config file is "foo.exe.config". Is it possible to have...
[ { "answer_id": 242612, "author": "Ray Lu", "author_id": 11413, "author_profile": "https://Stackoverflow.com/users/11413", "pm_score": 2, "selected": false, "text": "static void DisplayMappedExeConfigurationFileSections()\n{\n // Get the application configuration file path.\n string...
2008/10/28
[ "https://Stackoverflow.com/questions/242568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26349/" ]
242,570
<p>I need to copy the content of a window (BitBlt) which is hidden, to another window. The problem is that once I hide the source window, the device context I got isn't painted anymore.</p>
[ { "answer_id": 242809, "author": "Anthony Williams", "author_id": 5597, "author_profile": "https://Stackoverflow.com/users/5597", "pm_score": 1, "selected": false, "text": "WM_PRINT" }, { "answer_id": 242837, "author": "elifiner", "author_id": 15109, "author_profile":...
2008/10/28
[ "https://Stackoverflow.com/questions/242570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
242,577
<p>I've tried reading a JPG file using the <code>StreamReader</code> class' <code>ReadToEnd()</code> method which returns a string.</p> <p>For some reason though, when I write this string out to a file, it doesn't open.</p> <p>Is something lost when reading data into a string?</p>
[ { "answer_id": 242583, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 3, "selected": false, "text": "byte[] Stream Image StreamReader TextReader TextReader Stream" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/242577", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17211/" ]
242,579
<p>I have a long URL with tons of parameters that I want to open in the default browser from Java on a Windows system using</p> <pre><code>Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "+url) </code></pre> <p>For short URLs like "<a href="http://www.google.com" rel="nofollow noreferrer">http://www.g...
[ { "answer_id": 244342, "author": "John Gardner", "author_id": 13687, "author_profile": "https://Stackoverflow.com/users/13687", "pm_score": 0, "selected": false, "text": "MAX_PATH" }, { "answer_id": 248384, "author": "James Van Huis", "author_id": 31828, "author_profi...
2008/10/28
[ "https://Stackoverflow.com/questions/242579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6583/" ]
242,600
<p>This is probably a simple question but how can I best use an AJAX loader in ASP.NET to provide a loading dialog whilst the page is being built?</p> <p>I currently have an UpdatePanel with an associated UpdateProgressPanel which contains the loading message and gif in a ProgressTemplate. </p> <p>Currently I have a ...
[ { "answer_id": 2891484, "author": "Shripad Krishna", "author_id": 277537, "author_profile": "https://Stackoverflow.com/users/277537", "pm_score": 0, "selected": false, "text": "div div width div" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/242600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11802/" ]
242,602
<p>Is it possible to make a POST request from Ruby with open-uri?</p>
[ { "answer_id": 242637, "author": "Martin Kenny", "author_id": 6111, "author_profile": "https://Stackoverflow.com/users/6111", "pm_score": 6, "selected": true, "text": "open-uri GET net/http rest-open-uri POST gem install rest-open-uri" }, { "answer_id": 8495402, "author": "Ve...
2008/10/28
[ "https://Stackoverflow.com/questions/242602", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8338/" ]
242,608
<p>Is it possible to disable the browsers vertical and horizontal scrollbars using jQuery or javascript?</p>
[ { "answer_id": 242615, "author": "Ray Lu", "author_id": 11413, "author_profile": "https://Stackoverflow.com/users/11413", "pm_score": 6, "selected": false, "text": "<body style=\"overflow: hidden\">\n" }, { "answer_id": 242684, "author": "Alexander Prokofyev", "author_id"...
2008/10/28
[ "https://Stackoverflow.com/questions/242608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17447/" ]
242,609
<p>As everyone knows, sometimes developers have to document stuff. Or capture some stuff for filing bug reports. </p> <p>My question is in MS Windows.</p> <p>I'm trying to capture the context menu (the popup menu that appears after right-clicking an item) of several areas of an application. Pressing <kbd>Alt</kbd> to...
[ { "answer_id": 26074872, "author": "Smile4ever", "author_id": 1798408, "author_profile": "https://Stackoverflow.com/users/1798408", "pm_score": 0, "selected": false, "text": "scrot -d 5 'contextmenuincluded.png' -e 'mv $f ~'\n sudo apt-get install scrot\n sudo pacman -S scrot\n" }, {...
2008/10/28
[ "https://Stackoverflow.com/questions/242609", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26374/" ]
242,614
<p>A classic ASP.NET app - AppSrv + MS SQL DB. Both servers are heavy-lifters 8 cores, 20 GB of RAM. When load testing, the throughput goes somewhere to 400 VirtualUsers (according to LoadRunner) with CPU being approximately 30% utilized an DB server primarily idling - response times go dramatically up, to the point of...
[ { "answer_id": 242631, "author": "Ray Lu", "author_id": 11413, "author_profile": "https://Stackoverflow.com/users/11413", "pm_score": 1, "selected": true, "text": "An Application Pool -> Performance -> \nWeb Garden -> Max Number of worker processes\n" }, { "answer_id": 243460, ...
2008/10/28
[ "https://Stackoverflow.com/questions/242614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29573/" ]
242,617
<p>Posting a stack overflow question on stackoverflow.com, how amusing :-)</p> <p>I'm running some recursive Ruby code and I get the: <code>"Stack level too deep (SystemStackError)"</code></p> <p>(I'm quite sure the code works, that I'm not in an infinite recursive death spiral, but that is not the point anyway)</p> ...
[ { "answer_id": 244348, "author": "Honza", "author_id": 8621, "author_profile": "https://Stackoverflow.com/users/8621", "pm_score": 4, "selected": false, "text": "def recursive(params)\n if some_conditions(params)\n recursive(update_params(params))\n end\nend\n\nrecursive(starting_p...
2008/10/28
[ "https://Stackoverflow.com/questions/242617", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28625/" ]
242,621
<p>I'm having trouble running a complex query against our company LDAP server. I'm using the following Perl script:</p> <pre><code>use Data::Dumper; use Net::LDAP; die "Can't connect to LDAP-Server: $@\n" unless $ldap = Net::LDAP-&gt;new( 'xLDAPx' ); foreach my $filter ( 'ou=Personal', 'ou=BAR', 'ou=Personal,o...
[ { "answer_id": 242779, "author": "Leon Timmermans", "author_id": 4727, "author_profile": "https://Stackoverflow.com/users/4727", "pm_score": 4, "selected": true, "text": "(&(ou=Personal)(ou=FOO)(o=FOO)(dc=foo)(dc=com)) (|(ou=Personal)(ou=FOO))" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/242621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18606/" ]
242,627
<pre><code>today1 = new Date(); today2 = Date.parse("2008-28-10"); </code></pre> <p>To compare the time (millisecond) values of these I have to do the following, because today2 is just a number.</p> <pre><code>if (today1.getTime() == today2) </code></pre> <p>Why is this?</p>
[ { "answer_id": 242632, "author": "Yuval Adam", "author_id": 24545, "author_profile": "https://Stackoverflow.com/users/24545", "pm_score": 2, "selected": false, "text": "var newDate = new Date();\nnewDate.setFullYear(2008,9,28);\n" }, { "answer_id": 242679, "author": "Tomalak"...
2008/10/28
[ "https://Stackoverflow.com/questions/242627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8741/" ]
242,629
<p>Whilst investigating a memory leak I discovered that it was caused by calling NewRow() on a Table inside a loop many times. However the DataRow created was never added to the Table Rows collection and the Table Rows Count never got above zero.</p> <p>My question is why does this use up more memory every time NewRow...
[ { "answer_id": 51299108, "author": "Ден Денис", "author_id": 5945461, "author_profile": "https://Stackoverflow.com/users/5945461", "pm_score": 0, "selected": false, "text": " var table = new DataTable();\n while (true)\n {\n var newRow = table.NewRow();\n table.Row...
2008/10/28
[ "https://Stackoverflow.com/questions/242629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1127460/" ]
242,640
<p>I wanna see if there is an approach to pack a few plugins together as a meta plugin that install everything together automatically, works like a project template.</p> <p>Why not a script? Because I want to put it in github so I don't have to worry about it when I am not with my own PC :) but of coz a script based s...
[ { "answer_id": 243330, "author": "Ricardo Acras", "author_id": 19224, "author_profile": "https://Stackoverflow.com/users/19224", "pm_score": 1, "selected": false, "text": "plugins = %w{\n http://url_to_plugin_1\n http://url_to_plugin_2\n http://url_to_plugin_3\n http://url_to_plugin_...
2008/10/28
[ "https://Stackoverflow.com/questions/242640", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16371/" ]
242,646
<p>How can I use vimdiff to view the differences described in a diff file?</p>
[ { "answer_id": 242680, "author": "Ken", "author_id": 20074, "author_profile": "https://Stackoverflow.com/users/20074", "pm_score": 2, "selected": false, "text": "vimdiff original_file patched_file\n" }, { "answer_id": 244766, "author": "ephemient", "author_id": 20713, ...
2008/10/28
[ "https://Stackoverflow.com/questions/242646", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14437/" ]
242,647
<p>I have one aspx page with some controls. Also i have one DIV which is dynamically populated from AJAX call. This AJAX call return couple of controls, for example HtmlInputText1 and HtmlInputText2.</p> <p>When page is submitted, I can get values from this controls through Request.Form. If possible access to the att...
[ { "answer_id": 242692, "author": "Ray Lu", "author_id": 11413, "author_profile": "https://Stackoverflow.com/users/11413", "pm_score": 2, "selected": true, "text": "<script language=\"javascript\" type=\"text/javascript\">\nfunction changeValue() {\n var txtControlClient = document.get...
2008/10/28
[ "https://Stackoverflow.com/questions/242647", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17465/" ]
242,648
<p>The size of the generated hash and the speed of the algorithm are not important. I'm really only interested in it being the most secure option. I don't want to use any third party libraries either.</p> <p>The version of the .NET framework I'm using if 3.5 if that makes any difference.</p>
[ { "answer_id": 11828962, "author": "Keith", "author_id": 905, "author_profile": "https://Stackoverflow.com/users/905", "pm_score": 4, "selected": false, "text": "SHA512 SHA512 SHA1 Rfc2898DeriveBytes System.Web.Crypto.HashPassword Rfc2898DeriveBytes Rfc2898DeriveBytes" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/242648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6369/" ]
242,665
<p>I'm trying to set up a basic test of HMAC-SHA-256 hashing but I'm having problems with the engine setup. Ideally I would like to set up only the HMAC-SHA-algorithm but so far I haven't even gotten the general case where load all the algorithms to work. Currently I'm getting segfaults on the row where I try to set th...
[ { "answer_id": 242687, "author": "Martin Kenny", "author_id": 6111, "author_profile": "https://Stackoverflow.com/users/6111", "pm_score": 0, "selected": false, "text": "e ENGINE *ENGINE_new(void) ENGINE ENGINE ENGINE_new HMAC_CTX_* HMAC_CTX_init ctx ctx HMAC_CTX ctx;\nHMAC_CTX_init(&ctx)...
2008/10/28
[ "https://Stackoverflow.com/questions/242665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30059/" ]
242,695
<p>I have seen C# code that uses the <code>@</code> to tell the compiler the string has newlines in it and that it should be all in one line. Is there something like that for C/C++?</p> <p>Like if I want to put something like:</p> <p>73167176531330624919225119674426574742355349194934 969835203127745063262395783180169...
[ { "answer_id": 242702, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 4, "selected": false, "text": "\"73167176531330624919225119674426574742355349194934\"\n\"96983520312774506326239578318016984801869478851843\" \n\"85861...
2008/10/28
[ "https://Stackoverflow.com/questions/242695", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8715/" ]
242,697
<p>For a load test of my application (under Linux), I'm looking for a tool that outputs data on stdout at a specific rate (like 100 bytes/s), so that I can pipe the output to netcat which sends it to my application. Some option for dd would be ideal, but I didn't find anything so far. It doesn't really matter what kind...
[ { "answer_id": 242703, "author": "unwind", "author_id": 28169, "author_profile": "https://Stackoverflow.com/users/28169", "pm_score": 2, "selected": false, "text": "sleep echo" }, { "answer_id": 242799, "author": "C. K. Young", "author_id": 13, "author_profile": "http...
2008/10/28
[ "https://Stackoverflow.com/questions/242697", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2148773/" ]
242,698
<p>I am trying to write a replacement regular expression to surround all words in quotes except the words AND, OR and NOT. </p> <p>I have tried the following for the match part of the expression:</p> <pre><code>(?i)(?&lt;word&gt;[a-z0-9]+)(?&lt;!and|not|or) </code></pre> <p>and </p> <pre><code>(?i)(?&lt;word&gt;[a-...
[ { "answer_id": 242716, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 5, "selected": true, "text": "(?<!\\b(?:and| or|not))\\b(?!(?:and|or|not)\\b)\n 'except' 'the' 'words' AND, OR and NOT.\n" }, { "answer_id": 2427...
2008/10/28
[ "https://Stackoverflow.com/questions/242698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33/" ]
242,701
<p>Which SQL statement is faster?</p> <pre><code>SELECT TOP 2 c1.Price, c2.Price, ..... c49.Price, c50.Price FROM Table1 AS c1, Table2 AS c2, ..... Table49 AS c49, Table50 AS c50 WHERE c1.Date = c2.Date AND c2.Date = c3.Date ..... c49.Date = c50.Date ORDER BY c1.ID DESC OR SELECT TOP 2 c1.Price, c2.Price, .....
[ { "answer_id": 242732, "author": "Ruben", "author_id": 26919, "author_profile": "https://Stackoverflow.com/users/26919", "pm_score": 0, "selected": false, "text": "select * \n from A a \n join B b on b.x = a.y \n where b.z = 'ok';\n select * \n from A a \n jo...
2008/10/28
[ "https://Stackoverflow.com/questions/242701", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32012/" ]
242,711
<p>I think this must be simple but I can't get it right...</p> <p>I have an MxM triangular matrix, the coefficients of which are stored in a vector, row by row. For example:</p> <pre><code>M = [ m00 m01 m02 m03 ] [ m11 m12 m13 ] [ m22 m23 ] [ m33 ] </code></pre> <p>is st...
[ { "answer_id": 242919, "author": "João Augusto", "author_id": 6909, "author_profile": "https://Stackoverflow.com/users/6909", "pm_score": 0, "selected": false, "text": "unsigned int row_index(int i, int m)\n{\n int iCurrentRow = 0;\n int iTotalItems = 0;\n for(int j = m; j > 0; ...
2008/10/28
[ "https://Stackoverflow.com/questions/242711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19863/" ]
242,718
<p>How do you split a string?</p> <p>Lets say i have a string "dog, cat, mouse,bird"</p> <p>My actual goal is to insert each of those animals into a listBox, so they would become items in a list box.</p> <p>but i think i get the idea on how to insert those items if i know how to split the string. or does anyone know...
[ { "answer_id": 242724, "author": "dove", "author_id": 30913, "author_profile": "https://Stackoverflow.com/users/30913", "pm_score": 4, "selected": true, "text": " string[] tokens = text.Split(',');\n\n for (int i = 0; i < tokens.Length; i++)\n {\n yourListBox.Add(new Li...
2008/10/28
[ "https://Stackoverflow.com/questions/242718", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23491/" ]
242,728
<p>I've been involved in developing coding standards which were quite elaborate. My own experience is that it was hard to enforce if you don't have proper processes to maintain it and strategies to uphold it.</p> <p>Now I'm working in, and leading, an environment even less probable to have processes and follow-up stra...
[ { "answer_id": 242815, "author": "Frederik Slijkerman", "author_id": 12416, "author_profile": "https://Stackoverflow.com/users/12416", "pm_score": 1, "selected": false, "text": "if (bla) {\n for (int i = 0; i < n; ++i)\n foo();\n}\n" }, { "answer_id": 242821, "author": "F...
2008/10/28
[ "https://Stackoverflow.com/questions/242728", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7891/" ]
242,744
<p>Recently developers highlighted that it is bit hard for them to keep track of which document has been updated. And they thus suggested that using SVN to keep track of document changes will be better as they will be able to know if document if being updated when doing checking out of the project. </p> <p>But i also ...
[ { "answer_id": 242757, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 3, "selected": false, "text": "svn:needs-lock" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/242744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25368/" ]
242,745
<p>When I add the textBox.TextChanged to watch list I get a message saying <pre>The event 'System.Windows.Forms.Control.TextChanged' can only appear on the left hand side of += or -=</pre></p> <p>Is there any way to check what event's are called on text change?</p>
[ { "answer_id": 242757, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 3, "selected": false, "text": "svn:needs-lock" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/242745", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1534/" ]
242,749
<p>My account is in the securityadmin role and I cannot grant myself sysadmin permission. I wish to gain access to a database so I can add my account to a particular role within it. <br /> As I don't yet have access to the database I can't use the UI.</p> <p>Does anyone know if this is possible and what SQL commands w...
[ { "answer_id": 242778, "author": "splattne", "author_id": 6461, "author_profile": "https://Stackoverflow.com/users/6461", "pm_score": 0, "selected": false, "text": "EXEC sp_addsrvrolemember 'BUILTIN\\Administrators', 'sysadmin'\n" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/242749", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6651/" ]
242,752
<p>I'm looking to force my application to shut down, and return an Exit code. Had a look on MSDN and I can see that in WPF the Application has a Shutdown method which takes an error code as a parameter, but there doesn't appear to be one for System.Windows.Forms.Application.</p> <p>I can see Application.Exit() but no...
[ { "answer_id": 242762, "author": "Ray Lu", "author_id": 11413, "author_profile": "https://Stackoverflow.com/users/11413", "pm_score": 2, "selected": false, "text": "System.Environment.ExitCode = 1\nApplication.Exit()\n" }, { "answer_id": 242783, "author": "Hallgrim", "aut...
2008/10/28
[ "https://Stackoverflow.com/questions/242752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7140/" ]
242,756
<p>There is div named "dvUsers". there is an anchor tag "lnkUsers".</p> <p>When one clicks on anchortag, the div must open like a popup div just below it.</p> <p>Also the divs relative position should be maintained at window resize and all. How to do that using javascript/jquery?</p>
[ { "answer_id": 242788, "author": "Ray Lu", "author_id": 11413, "author_profile": "https://Stackoverflow.com/users/11413", "pm_score": 0, "selected": false, "text": "$(document).ready(function(){ $(\"#lnkUsers\").click(function(){ $(\"#dvUser\").show(\"slow\"); });\n" }, { "answer...
2008/10/28
[ "https://Stackoverflow.com/questions/242756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17447/" ]
242,766
<p>Recently I've been seeing a lot of this:</p> <pre><code>&lt;a href='http://widget-site-example.com/example.html'&gt; &lt;img src='http://widget-site-example.com/ross.jpg' alt='Ross&amp;#39;s Widget' /&gt; &lt;/a&gt; </code></pre> <p>Is it valid to use single quotes in HTML? As I've highlighted above it's also ...
[ { "answer_id": 242784, "author": "Ady", "author_id": 31395, "author_profile": "https://Stackoverflow.com/users/31395", "pm_score": 6, "selected": false, "text": "String.Format(\"<a href='{0}'>{1}</a>\", Url, Desc)\n" }, { "answer_id": 242790, "author": "Dean Rather", "aut...
2008/10/28
[ "https://Stackoverflow.com/questions/242766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2025/" ]
242,771
<p>How can I create an Oracle stored procedure which accepts a variable number of parameter values used to feed a IN clause?</p> <p>This is what I am trying to achieve. I do not know how to declare in PLSQL for passing a variable list of primary keys of the rows I want to update.</p> <pre><code>FUNCTION EXECUTE_UPDA...
[ { "answer_id": 242776, "author": "RB.", "author_id": 15393, "author_profile": "https://Stackoverflow.com/users/15393", "pm_score": -1, "selected": false, "text": "CREATE Function dbo.CsvToInt ( @Array varchar(1000)) \nreturns @IntTable table \n (IntValue nvarchar(100))\nAS\nbegin\n\n ...
2008/10/28
[ "https://Stackoverflow.com/questions/242771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5970/" ]
242,772
<p>Is it possible to change the destination port of a UDP packet using iptables?</p> <p>I'm trying to get an SNMP agent to send out traps on 1620 instead of 162. Unfortunately so far I've only managed to change the source port:</p> <blockquote> <p>iptables -t nat -A POSTROUTING -p udp --dport 162 -j SNAT --to :16...
[ { "answer_id": 243116, "author": "PiedPiper", "author_id": 19315, "author_profile": "https://Stackoverflow.com/users/19315", "pm_score": 3, "selected": false, "text": "iptables -t nat -A OUTPUT -p udp --dport 162 -j DNAT --to-destination <dest-ip>:1620\n" }, { "answer_id": 286566...
2008/10/28
[ "https://Stackoverflow.com/questions/242772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1466/" ]
242,792
<p>I need to write a regular expression that finds javascript files that match </p> <pre><code>&lt;anypath&gt;&lt;slash&gt;js&lt;slash&gt;&lt;anything&gt;.js </code></pre> <p>For example, it should work for both :</p> <ul> <li>c:\mysite\js\common.js (Windows)</li> <li>/var/www/mysite/js/common.js (UNIX)</li> </ul> ...
[ { "answer_id": 242803, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 5, "selected": true, "text": "Pattern.quote(File.separator) \"\\\\\" + File.separator\n" }, { "answer_id": 242806, "author": "heijp06", "...
2008/10/28
[ "https://Stackoverflow.com/questions/242792", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12388/" ]
242,812
<p>I've created a series of radio button controls in C#. <code>(radCompany, radProperty etc.)</code><br> I've set their group name to be the same (282_Type) so they function as a list of radio buttons. </p> <p>How do I retrieve the name <code>(like: ct100$m$dfgadjkfasdghasdkjfg$282_Type)</code> in c# so I can use thi...
[ { "answer_id": 242835, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": false, "text": "var x = $('[name=radioGroup]:checked').val();\n undefined UniqueGroupName UniqueGroupName ClientID" }, { "ans...
2008/10/28
[ "https://Stackoverflow.com/questions/242812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13911/" ]
242,813
<p><code>console.log(&quot;double&quot;);</code> vs. <code>console.log('single');</code></p> <p>I see more and more JavaScript libraries out there using single quotes when handling strings. What are the reasons to use one over the other?</p> <p>I thought they're pretty much interchangeable.</p>
[ { "answer_id": 242833, "author": "Ady", "author_id": 31395, "author_profile": "https://Stackoverflow.com/users/31395", "pm_score": 11, "selected": true, "text": "alert('Say \"Hello\"');\nalert(\"Say 'Hello'\");\n alert(\"It's \\\"game\\\" time.\");\nalert('It\\'s \"game\" time.');\n aler...
2008/10/28
[ "https://Stackoverflow.com/questions/242813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28150/" ]
242,822
<p>Why would someone use <code>WHERE 1=1 AND &lt;conditions&gt;</code> in a SQL clause (Either SQL obtained through concatenated strings, either view definition)</p> <p>I've seen somewhere that this would be used to protect against SQL Injection, but it seems very weird.</p> <p>If there is injection <code>WHERE 1 = 1...
[ { "answer_id": 242831, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 10, "selected": true, "text": "and <condition>\n 1=1 and 1=1" }, { "answer_id": 242867, "author": "Eduardo Molteni", "author_id": 2385, ...
2008/10/28
[ "https://Stackoverflow.com/questions/242822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23795/" ]
242,841
<p>Do you think there is a big difference in for...in and for loops? What kind of "for" do you prefer to use and why?</p> <p>Let's say we have an array of associative arrays:</p> <pre><code>var myArray = [{'key': 'value'}, {'key': 'value1'}]; </code></pre> <p>So we can iterate:</p> <pre><code>for (var i = 0; i &lt;...
[ { "answer_id": 242888, "author": "AnthonyWJones", "author_id": 17516, "author_profile": "https://Stackoverflow.com/users/17516", "pm_score": 10, "selected": true, "text": "for (var i = 0; i < a.length; i++)\n //do stuff with a[i]\n for (var key in o)\n //do stuff with o[key]\n" }, ...
2008/10/28
[ "https://Stackoverflow.com/questions/242841", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17375/" ]
242,908
<p>Due to the nature of the live server I deploy to, my mail settings are using deliveryMethod="PickupDirectoryFromIis". I'm using log4net to send logs via email and I need find a way of getting it to do the same thing.</p> <p>I can see from the docs that there is an SmtpPickupDirAppender, which has a pickupDir settin...
[ { "answer_id": 242964, "author": "Leandro López", "author_id": 22695, "author_profile": "https://Stackoverflow.com/users/22695", "pm_score": 0, "selected": false, "text": "SmtpClient.DeliveryMethod PickupDirectoryFromIis" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/242908", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12277/" ]
242,913
<p>We can see in a directory files ordered by Name in Windows Explorer.</p> <p>If I try the same thing in the Windows command prompt it orders by name differently - <em>correctly</em>:</p> <pre><code>dir *.jpg /ON /B cubierta.jpg pag00.jpg pag06.jpg pag08.jpg pag09.jpg pag100.jpg pag101.jpg pag102.jpg pag103.jpg pag...
[ { "answer_id": 243575, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": -1, "selected": false, "text": "sort ls -1 | /<cygwin>bin/sort -g dir /b | \\cygwin\\bin\\sort -g" }, { "answer_id": 352087, "author": "ian_scho"...
2008/10/28
[ "https://Stackoverflow.com/questions/242913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15530/" ]
242,914
<p>Is it possible in plain JPA or JPA+Hibernate extensions to declare a composite key, where an element of the composite key is a sequence?</p> <p>This is my composite class:</p> <pre><code>@Embeddable public class IntegrationEJBPk implements Serializable { //... @ManyToOne(cascade = {}, fetch = FetchType....
[ { "answer_id": 244051, "author": "sakana", "author_id": 28921, "author_profile": "https://Stackoverflow.com/users/28921", "pm_score": 1, "selected": false, "text": "@TableGenerator(name = \"canonicalKeys\", allocationSize = 1, initialValue = 1)\n@GeneratedValue(strategy = GenerationType....
2008/10/28
[ "https://Stackoverflow.com/questions/242914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22992/" ]
242,926
<p>I know there are already a few questions regarding recommendations for C++ unit test frameworks, but all the answers did not help as they just recommend one of the frameworks but do not provide any information about a (feature) comparison.</p> <p>I think the most interesting frameworks are CppUnit, Boost and the ne...
[ { "answer_id": 3565689, "author": "Wernight", "author_id": 167897, "author_profile": "https://Stackoverflow.com/users/167897", "pm_score": 7, "selected": false, "text": "#include <gtest/gtest.h>\n\nTEST(MyTestSuitName, MyTestCaseName) {\n int actual = 1;\n EXPECT_GT(actual, 0);\n ...
2008/10/28
[ "https://Stackoverflow.com/questions/242926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32030/" ]
242,975
<p>I have a problem, and was hoping I could rely on some of the experience here for advice and a push in the right direction. I have an MS Access file made by propietary software. I only want to take half the columns from this table, and import into new(not yet setup)mysql database.</p> <p>I have no idea how to do thi...
[ { "answer_id": 243069, "author": "Luis Melgratti", "author_id": 17032, "author_profile": "https://Stackoverflow.com/users/17032", "pm_score": 4, "selected": true, "text": "#!/bin/bash\n\nMDBFILE=\"Data.mdb\"\n\nOPTIONS=\"-H -D %y-%m-%d\"\nmdb-export $OPTIONS $MDBFILE TableName_1 > outp...
2008/10/28
[ "https://Stackoverflow.com/questions/242975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1246613/" ]
242,992
<p>Does the HTML "select" element have an on select event? what exactly is the name of the event?</p>
[ { "answer_id": 242993, "author": "Jonny Buchanan", "author_id": 6760, "author_profile": "https://Stackoverflow.com/users/6760", "pm_score": 7, "selected": true, "text": "onchange" }, { "answer_id": 242999, "author": "Ryan McCue", "author_id": 2575, "author_profile": "...
2008/10/28
[ "https://Stackoverflow.com/questions/242992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13370/" ]
243,021
<p>I have a VS2005 windows service where I have the need to use 'useUnsafeHeaderParsing' as per documentation from MSDN.</p> <p>As this is a library used within my windows service, I do not have a web.config to add httpwebrequest element and set useUnsafeHeaderParsing to true.</p> <p>How would I go about achieving th...
[ { "answer_id": 3191915, "author": "Aaronontheweb", "author_id": 377476, "author_profile": "https://Stackoverflow.com/users/377476", "pm_score": 3, "selected": false, "text": "private static bool SetUseUnsafeHeaderParsing(bool b)\n {\n Assembly a = Assembly.GetAssembly(typeof(Sy...
2008/10/28
[ "https://Stackoverflow.com/questions/243021", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,022
<p>I'm building an application that needs to run through an XML feed but I'm having a little trouble with getting certain elements.</p> <p>I'm using the <a href="http://twitter.com/statuses/public_timeline.rss" rel="nofollow noreferrer">Twitter feed</a> and want to run through all the <code>&lt;item&gt;</code> element...
[ { "answer_id": 3191915, "author": "Aaronontheweb", "author_id": 377476, "author_profile": "https://Stackoverflow.com/users/377476", "pm_score": 3, "selected": false, "text": "private static bool SetUseUnsafeHeaderParsing(bool b)\n {\n Assembly a = Assembly.GetAssembly(typeof(Sy...
2008/10/28
[ "https://Stackoverflow.com/questions/243022", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2025/" ]
243,027
<p>I've got this ASP.NET drop down control that displays other textbox controls when the value is not UK (this is to help find UK addresses using postcodes). When UK is reselected I will like to hide the other controls. I've enabled view state and AutoPostBack to true. I have an <code>onSelectedIndexChanged</code> even...
[ { "answer_id": 243047, "author": "Aaron Powell", "author_id": 11388, "author_profile": "https://Stackoverflow.com/users/11388", "pm_score": 0, "selected": false, "text": "this.dropDownList.SelectedIndexChanged += new EventHandler(dropDownList_SelectedIndexChanged);\n !IsPostback CauseVal...
2008/10/28
[ "https://Stackoverflow.com/questions/243027", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,035
<p>I have two tables, one stores the products and quantity we have bought, the other stores the sells. The current stock is therefore the sum of all the quantity columns in the bought table minus the number of rows in the sells table. How can this be expressed in MySQL. Remember that there are many different products.<...
[ { "answer_id": 243063, "author": "SquareCog", "author_id": 15962, "author_profile": "https://Stackoverflow.com/users/15962", "pm_score": 4, "selected": true, "text": "\nSELECT inv_t.product_id, inventory_total-nvl(sales_total,0)\nFROM \n (SELECT product_id, sum(quantity) as inventory_to...
2008/10/28
[ "https://Stackoverflow.com/questions/243035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1585/" ]
243,037
<p>This problem has several of us stumped in the office. We are all new to deploying ASP.NET apps to a web farm, and I am fresh out of ideas.</p> <p>We have a web farm, and the application is copied on to all of them. However, we are having a problem..</p> <p>An exception is being thrown when trying to get settings f...
[ { "answer_id": 243048, "author": "splattne", "author_id": 6461, "author_profile": "https://Stackoverflow.com/users/6461", "pm_score": 3, "selected": false, "text": "<httpModules>\n <remove name=\"ErrorLog\"/>\n</httpModules>\n <httpModules>\n <add name=\"ErrorLog\" type=\"GotDotNe...
2008/10/28
[ "https://Stackoverflow.com/questions/243037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/832/" ]
243,045
<p>What does Java do with long variables while performing addition?</p> <p>Wrong version 1:</p> <pre><code>Vector speeds = ... //whatever, speeds.size() returns 2 long estimated = 1l; long time = speeds.size() + estimated; // time = 21; string concatenation?? </code></pre> <p>Wrong version 2:</p> <pre><code>Vector ...
[ { "answer_id": 243054, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": true, "text": "import java.util.*;\n\npublic class Test\n{\n public static void main(String[] args)\n {\n Vector speeds = n...
2008/10/28
[ "https://Stackoverflow.com/questions/243045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32043/" ]
243,057
<p>I'm using a Response.Redirect to redirect users to another server to download a file, and the other server is checking the header to ensure it came from the correct server... however it seems Response.Redirect strips the headers from the Response.</p> <p>Does anybody know how i can add the headers back? I've tried...
[ { "answer_id": 243260, "author": "Martin Brown", "author_id": 20553, "author_profile": "https://Stackoverflow.com/users/20553", "pm_score": 1, "selected": false, "text": "Response.Redirect(\"url?Referer=\" + Server.UrlEncode(Request.UrlReferrer));\n" }, { "answer_id": 247518, ...
2008/10/28
[ "https://Stackoverflow.com/questions/243057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21969/" ]
243,060
<p>Emacs does not recognize my correct Python path. I think it is a general problem with Emacs not recognizing my environment variables. I have GNU Emacs 22.1.1 (i386-apple-darwin8.9.1, Carbon Version 1.6.0) of 2007-06-17 installed.</p> <p>I have set <code>PYTHONPATH</code> in my <code>~/.bashrc</code>. Maybe I should...
[ { "answer_id": 243239, "author": "Chris Conway", "author_id": 1412, "author_profile": "https://Stackoverflow.com/users/1412", "pm_score": 6, "selected": true, "text": ".bashrc setenv .emacs (setenv \"PYTHONPATH\" \"PATH_STRING_HERE\")\n PYTHONPATH ~/.MacOSX/environment.plist" }, { ...
2008/10/28
[ "https://Stackoverflow.com/questions/243060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2007483/" ]
243,068
<p>How can I create EPS files in C#? Are there any opensource libraries available or do I have to resort to <a href="http://www.adobe.com/devnet/postscript/pdfs/5002.EPSF_Spec.pdf" rel="noreferrer">the spec</a> and do it by hand?</p>
[ { "answer_id": 243239, "author": "Chris Conway", "author_id": 1412, "author_profile": "https://Stackoverflow.com/users/1412", "pm_score": 6, "selected": true, "text": ".bashrc setenv .emacs (setenv \"PYTHONPATH\" \"PATH_STRING_HERE\")\n PYTHONPATH ~/.MacOSX/environment.plist" }, { ...
2008/10/28
[ "https://Stackoverflow.com/questions/243068", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25571/" ]
243,072
<p>When a user logs in to my site I want a css styled button to appear (this could be anything really, i.e. some special news text item etc), how can you do this via masterpages in asp.net? Or is there some other way you do this?</p>
[ { "answer_id": 243084, "author": "Eoin Campbell", "author_id": 30155, "author_profile": "https://Stackoverflow.com/users/30155", "pm_score": 3, "selected": true, "text": " <asp:LoginView>\n <AnonymousTemplate>\n Nothing Displayed\n </AnonymousTemplate>\n ...
2008/10/28
[ "https://Stackoverflow.com/questions/243072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5175/" ]
243,074
<p>I'm wondering what are the recommended ways to handle situations where, in memory managed code, object didn't belong to any particular owner, i.e. objects released themselves. One such example could be a subclass of NSWindowController, which configures, displays and manages input and output of a single window. The c...
[ { "answer_id": 244237, "author": "Jens Ayton", "author_id": 6443, "author_profile": "https://Stackoverflow.com/users/6443", "pm_score": 3, "selected": false, "text": "CFRetain(foo) CFRelease(foo) [[NSGarbageCollector defaultCollector] disableCollectorForPointer:foo] [[NSGarbageCollector ...
2008/10/28
[ "https://Stackoverflow.com/questions/243074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32045/" ]
243,082
<p>Let's say I have a <strong>Base</strong> class and several <strong>Derived</strong> classes. Is there any way to cast an object to one of the derived classes without the need to write something like this :</p> <pre><code> string typename = typeid(*object).name(); if(typename == "Derived1") { Derived1 *d1 = stati...
[ { "answer_id": 243111, "author": "fizzer", "author_id": 18167, "author_profile": "https://Stackoverflow.com/users/18167", "pm_score": 1, "selected": false, "text": "dynamic_cast Dynamic_cast" }, { "answer_id": 243115, "author": "fhe", "author_id": 4445, "author_profil...
2008/10/28
[ "https://Stackoverflow.com/questions/243082", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31610/" ]
243,083
<p>What is a strongly typed dataset? (.net)</p>
[ { "answer_id": 243096, "author": "rslite", "author_id": 15682, "author_profile": "https://Stackoverflow.com/users/15682", "pm_score": 4, "selected": false, "text": "EmployeeDataset ds = ...\nEmployeeRow row = ds.Employees.Rows[0];\nrow.Name = \"Joe\";\n DataSet ds = ...\nDataRow row = ds...
2008/10/28
[ "https://Stackoverflow.com/questions/243083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,097
<p>I have a unit test where I have statically defined a quite large byte array (over 8000 bytes) as the byte data of a file I don't want to read every time I run my unit test.</p> <pre><code>private static final byte[] FILE_DATA = new byte[] { 12,-2,123,................ } </code></pre> <p>This compiles fine within Ec...
[ { "answer_id": 244100, "author": "Cem Catikkas", "author_id": 3087, "author_profile": "https://Stackoverflow.com/users/3087", "pm_score": 0, "selected": false, "text": "@BeforeClass" }, { "answer_id": 22637216, "author": "Josh", "author_id": 82505, "author_profile": "...
2008/10/28
[ "https://Stackoverflow.com/questions/243097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6583/" ]
243,120
<p>Is it possible to get a list of control events that are going to fire before they happen, say inside the <code>Page_Load</code> handler?</p> <p>For example if a button was clicked can I figure this out before the <code>button_click</code> event handler is called?</p>
[ { "answer_id": 243181, "author": "tpower", "author_id": 18107, "author_profile": "https://Stackoverflow.com/users/18107", "pm_score": 0, "selected": false, "text": "Page.Request.Form[\"__EVENTTARGET\"]\n" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/243120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18107/" ]
243,124
<p>Here is the problem: we have lots of Javascripts and lots of CSS files, which we'd rather be serving minified. Minification is easy: set up the YUI Compressor, run an Ant task, and it spits out minified files, which we save beside the originals.</p> <p>So we end up with the following directory structure somewhere i...
[ { "answer_id": 243135, "author": "Hank Gay", "author_id": 4203, "author_profile": "https://Stackoverflow.com/users/4203", "pm_score": 0, "selected": false, "text": "ant productionDeploy ant integrationDeploy" }, { "answer_id": 243154, "author": "Ignacio Vazquez-Abrams", "...
2008/10/28
[ "https://Stackoverflow.com/questions/243124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6573/" ]
243,132
<p>I have a key that appears to be an empty string, however using <code>unset($array[""]);</code> does not remove the key/value pair. I don't see another function that does what I want, so I'm guessing it's more complicated that just calling a function.</p> <p>The line for the element on a print_r is <code>[] =&gt; 1<...
[ { "answer_id": 243141, "author": "Allain Lalonde", "author_id": 2443, "author_profile": "https://Stackoverflow.com/users/2443", "pm_score": 1, "selected": false, "text": "foreach ($array as $index => $value) {\n echo $index;\n echo ' is ';\n echo gettype($index);\n echo \"\\n...
2008/10/28
[ "https://Stackoverflow.com/questions/243132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/572/" ]
243,152
<p>The thing is I've been using the <a href="http://msdn.microsoft.com/en-us/library/c5kehkcz.aspx" rel="noreferrer">lock statement</a> to protect a critical part of my code, but now, I realize I could allow concurrent execution of that critical code is some conditions are met.<br> Is there a way to condition the lock?...
[ { "answer_id": 243168, "author": "Amy B", "author_id": 8155, "author_profile": "https://Stackoverflow.com/users/8155", "pm_score": 4, "selected": true, "text": "Action doThatThing = someMethod;\n\nif (condition)\n{\n lock(thatThing)\n {\n doThatThing();\n }\n}\nelse\n{\n doThatTh...
2008/10/28
[ "https://Stackoverflow.com/questions/243152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23893/" ]
243,170
<p>I'll try to explain my scenario as best i can;</p> <p>At each application <em>tick</em> I query the current state of the keyboard and mouse and wrap them in individual classes and data structures. For the keyboard it's an array of my <em>Keys</em> enum (one item for each of the keys that are currently pressed) and ...
[ { "answer_id": 243549, "author": "Jimmy", "author_id": 4435, "author_profile": "https://Stackoverflow.com/users/4435", "pm_score": 1, "selected": false, "text": "KeyboardState state = Keyboard.GetState();\n" }, { "answer_id": 244129, "author": "Nicholas Mancuso", "author_...
2008/10/28
[ "https://Stackoverflow.com/questions/243170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17540/" ]
243,173
<p>I'm having an issue with a USB project using <code>LIB-USB</code>. The USB device is based on a PIC18F4550 and has a single control endpoint. The PC front-end is written in MSVC and uses Lib-Usb 1.12.</p> <p>On the PC end, the program begins by setting the configuration, claiming the interface, then sending (and re...
[ { "answer_id": 243748, "author": "Ilya", "author_id": 6807, "author_profile": "https://Stackoverflow.com/users/6807", "pm_score": 1, "selected": false, "text": "vendor_class_request(): request failed: status: 0xc0000001, urb-status: 0xc000000c usb.h:#define USBD_STATUS_BUFFER_OVERRUN ...
2008/10/28
[ "https://Stackoverflow.com/questions/243173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,193
<p>I have a set of tables that are used to track bills. These tables are loaded from an SSIS process that runs weekly.</p> <p>I am in the process of creating a second set of tables to track adjustments to the bills that are made via the web. Some of our clients hand key their bills and all of those entries need to be ...
[ { "answer_id": 252233, "author": "Jeremiah Peschka", "author_id": 11780, "author_profile": "https://Stackoverflow.com/users/11780", "pm_score": 1, "selected": true, "text": "-- Create pvt and pvtWeb as test tables\nCREATE TABLE [dbo].[pvt](\n [VendorID] [int] NULL,\n [Emp1] [int] NUL...
2008/10/28
[ "https://Stackoverflow.com/questions/243193", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11780/" ]
243,200
<p>I'm looking to improve my PHP coding and am wondering what PHP-specific techniques other programmers use to improve productivity or workaround PHP limitations.</p> <p>Some examples:</p> <ol> <li><p>Class naming convention to handle namespaces: <code>Part1_Part2_ClassName</code> maps to file <code>Part1/Part2/Class...
[ { "answer_id": 243254, "author": "changelog", "author_id": 5646, "author_profile": "https://Stackoverflow.com/users/5646", "pm_score": 3, "selected": false, "text": "ini_set('display_errors', '1');\nerror_reporting(E_ALL); require_once if(isset($array[$key])) if($array[$key]) for $listIn...
2008/10/28
[ "https://Stackoverflow.com/questions/243200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4890/" ]
243,215
<p>Did someone ever used a BIRT report in a desktop application. I'm comming from the .NET environment and there you can use Crystal Reports to show reports in desktop apps. Is this possible with BIRT too, without having to set up a server environment?</p> <p>Can you give me some advice how to reach this goal?</p> <p...
[ { "answer_id": 243222, "author": "paul", "author_id": 11249, "author_profile": "https://Stackoverflow.com/users/11249", "pm_score": 2, "selected": false, "text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<classpath>\n <classpathentry kind=\"src\" path=\"src\"/>\n <classpathentry...
2008/10/28
[ "https://Stackoverflow.com/questions/243215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,217
<p>I keep it in single line, if it's short. Lately I've been using this style for longer or nested ternary operator expressions. A contrived example:</p> <pre><code>$value = ( $a == $b ) ? 'true value # 1' : ( $a == $c ) ? 'true value # 2' : 'false value'; </cod...
[ { "answer_id": 243229, "author": "biozinc", "author_id": 30698, "author_profile": "https://Stackoverflow.com/users/30698", "pm_score": 5, "selected": false, "text": "if else if else\n" }, { "answer_id": 243240, "author": "John Rudy", "author_id": 14048, "author_profil...
2008/10/28
[ "https://Stackoverflow.com/questions/243217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1897/" ]
243,218
<p>I think in this case there is no need to declare a public constructor since the class is not accessible outside the package anyway. But is there some hidden impact when the class has only package private constructor?</p>
[ { "answer_id": 243276, "author": "Denis R.", "author_id": 32015, "author_profile": "https://Stackoverflow.com/users/32015", "pm_score": 2, "selected": false, "text": "public" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/243218", "https://Stackoverflow.com", "https://Stackoverflow.com/users/446104/" ]
243,232
<p>Inside my page, I have the following:</p> <pre><code>&lt;aspe:UpdatePanel runat="server" ID="updatePanel"&gt; &lt;ContentTemplate&gt; &lt;local:KeywordSelector runat="server" ID="ksKeywords" /&gt; &lt;/ContentTemplate&gt; &lt;/aspe:UpdatePanel&gt; </code></pre> <p>The <code>KeywordSelector</code> c...
[ { "answer_id": 243493, "author": "Omer van Kloeten", "author_id": 4979, "author_profile": "https://Stackoverflow.com/users/4979", "pm_score": 6, "selected": true, "text": "<add tagPrefix=\"local\" tagName=\"KeywordSelector\" src=\"~/KeywordSelector.ascx\" /> <add tagPrefix=\"local\" nam...
2008/10/28
[ "https://Stackoverflow.com/questions/243232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4979/" ]
243,237
<p>I am using a ASP/.Net webpage and i want to upload a pdf file into a SQL Database as a binary I am uping the build in upload control, can you please suggest a way of doing this. I also need to no how to read the pdf back and display it in a web browser. I will be using linq to upload and query my sql database.</p...
[ { "answer_id": 243250, "author": "Omer van Kloeten", "author_id": 4979, "author_profile": "https://Stackoverflow.com/users/4979", "pm_score": 2, "selected": false, "text": "VARBINARY(MAX) Binary byte[]" }, { "answer_id": 243431, "author": "Leandro López", "author_id": 226...
2008/10/28
[ "https://Stackoverflow.com/questions/243237", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,242
<p>I had the following piece of code (simplified for this question):</p> <pre><code>struct StyleInfo { int width; int height; }; typedef int (StyleInfo::*StyleInfoMember); void AddStyleInfoMembers(std::vector&lt;StyleInfoMember&gt;&amp; members) { members.push_back(&amp;StyleInfo::width); members.pus...
[ { "answer_id": 243396, "author": "Steve Jessop", "author_id": 13005, "author_profile": "https://Stackoverflow.com/users/13005", "pm_score": 1, "selected": false, "text": "typedef Rectangle (StyleInfo::*StyleInfoMember);\ntypedef int (Rectangle::*RectangleMember);\n" }, { "answer_...
2008/10/28
[ "https://Stackoverflow.com/questions/243242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/455874/" ]
243,252
<p>We're doing a lot of large, but straightforward forms for a fairly big project (about 600 users using it throughout the day - that's big for me at least ;-) ).</p> <p>The forms have a lot of question/answer type sections, so it's natural for some people to type a sentence, while others type a novel. <strong>How be...
[ { "answer_id": 243287, "author": "dl__", "author_id": 28565, "author_profile": "https://Stackoverflow.com/users/28565", "pm_score": 1, "selected": false, "text": "Type - Maximum Length -Storage\nTINYBLOB, TINYTEXT 255 Length+1 bytes\nBLOB, TEXT ...
2008/10/28
[ "https://Stackoverflow.com/questions/243252", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25538/" ]
243,266
<p>Core Animation allows for custom animations by implementing the actionForKey method in your CALayer based class:</p> <pre><code>- (id&lt;CAAction&gt;)actionForKey:(NSString *)key { // Custom animations return [super actionForKey:key]; } </code></pre> <p>I can then create an animation and return it for the ...
[ { "answer_id": 245089, "author": "Colin Barrett", "author_id": 23106, "author_profile": "https://Stackoverflow.com/users/23106", "pm_score": 0, "selected": false, "text": "key @\"onOrderOut\"" }, { "answer_id": 1285044, "author": "tjw", "author_id": 11029, "author_pro...
2008/10/28
[ "https://Stackoverflow.com/questions/243266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9454/" ]
243,267
<p>I'm looking for an efficient way of searching through a dataset to see if an item exists. I have an arraylist of ~6000 items and I need to determine which of those doesn't exist in the dataset by comparing each item within the arraylist with data in a particular column of the dataset.</p> <p>I attempted to loop th...
[ { "answer_id": 243309, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https://Stackoverflow.com/users/3043", "pm_score": 2, "selected": false, "text": "Dim LDAPUsers As List(Of String) = clsLDAP.selectAllStudents\n\nFor Each DomainUsername As String in LDAPUsers\n D...
2008/10/28
[ "https://Stackoverflow.com/questions/243267", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32059/" ]
243,269
<p>Windows Mobile pops up a "busy wheel" - a rotating colour disk - when things are happening . I can't find in the documentation how this is done - can someone point me in the right direction?</p> <p>We have a situation where we need to prompt the user to say we're doing stuff for a while, but we don't know how long...
[ { "answer_id": 243282, "author": "SmacL", "author_id": 22564, "author_profile": "https://Stackoverflow.com/users/22564", "pm_score": 2, "selected": false, "text": "void DoSomethingSlow()\n{\n CWaitCursor cw;\n.\n.\n.\n.\n}\n" }, { "answer_id": 243304, "author": "ctacke", ...
2008/10/28
[ "https://Stackoverflow.com/questions/243269", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21755/" ]
243,274
<p>I was wondering how to unit test abstract classes, and classes that extend abstract classes.</p> <p>Should I test the abstract class by extending it, stubbing out the abstract methods, and then test all the concrete methods? Then only test the methods I override, and test the abstract methods in the unit tests for ...
[ { "answer_id": 243451, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "public abstract class MyBase{\n /*...*/\n public abstract void VoidMethod(object param1);\n public abstract object MethodWi...
2008/10/28
[ "https://Stackoverflow.com/questions/243274", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3050/" ]
243,277
<p>My SQL is rusty -- I have a simple requirement to calculate the sum of the greater of two column values:</p> <pre><code>CREATE TABLE [dbo].[Test] ( column1 int NOT NULL, column2 int NOT NULL ); insert into Test (column1, column2) values (2,3) insert into Test (column1, column2) values (6,3) insert into Te...
[ { "answer_id": 243292, "author": "StingyJack", "author_id": 16391, "author_profile": "https://Stackoverflow.com/users/16391", "pm_score": 1, "selected": false, "text": "SELECT\n 'LargerValue' = CASE \n WHEN SUM(c1) >= SUM(c2) THEN SUM(c1)\n ELSE SUM(c...
2008/10/28
[ "https://Stackoverflow.com/questions/243277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18482/" ]
243,293
<p>A while back I asked about instantiating a HttpContext object. Now that I have learnt what I didn't know, what confuses me is that you cannot say HttpContext ctx = new HttpContext(); because the object does not have a constructor.</p> <p>But doesn't every class need a constructor? In C#, if you don't provide one, t...
[ { "answer_id": 243317, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 1, "selected": false, "text": "Class A{\npublic static readonly A Instance = new A();\n\nprivate A()\n{\n}\n\n}\n" }, { "answer_id": 243321, "aut...
2008/10/28
[ "https://Stackoverflow.com/questions/243293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30004/" ]
243,298
<p>I'm launching a Weblogic application inside Eclipse via the BEA Weblogic Server v9.2 runtime environment. If this were running straight from the command-line, I'd do a ctrl-BREAK to force a thread dump. Is there a way to do it in Eclipse?</p>
[ { "answer_id": 243698, "author": "PhiLho", "author_id": 15459, "author_profile": "https://Stackoverflow.com/users/15459", "pm_score": 6, "selected": true, "text": "jstack 7088" }, { "answer_id": 9745282, "author": "Alper Akture", "author_id": 1138137, "author_profile"...
2008/10/28
[ "https://Stackoverflow.com/questions/243298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18995/" ]
243,322
<p>State should include at least the following:</p> <ul> <li>All settings set via SetStreamResource()</li> <li>Indices</li> </ul> <p>I have a class whose Draw() function will call SetStreamResource, set Indices and eventually call DrawIndexedPrimitive(). I would like to restore the device state before Draw() returns....
[ { "answer_id": 253742, "author": "Agnel Kurian", "author_id": 45603, "author_profile": "https://Stackoverflow.com/users/45603", "pm_score": 1, "selected": false, "text": "Microsoft::DirectX::Direct3D::Device::BeginStateBlock\nMicrosoft::DirectX::Direct3D::Device::EndStateBlock\n" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/243322", "https://Stackoverflow.com", "https://Stackoverflow.com/users/45603/" ]
243,344
<p>In my Page_Load event of codebehind file, I am loading data in to a datatable.In my .aspx page I am having some inline coding,I want to display some data from this datatable.But when i am running the program,It is showing an error like "Error 64 Use of unassigned local variable 'dtblChild' " dtblChild is my DataTa...
[ { "answer_id": 243382, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https://Stackoverflow.com/users/3043", "pm_score": 0, "selected": false, "text": "<% %>" }, { "answer_id": 243416, "author": "Community", "author_id": -1, "author_profile": "https:...
2008/10/28
[ "https://Stackoverflow.com/questions/243344", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,347
<p>I launch my program in C#, which then calls some unmanaged C++. </p> <p>When I break on a line in the unmanaged C++, the 'New Data Breakpoint' menu item is grayed out.</p> <p>Is there anyway around this?</p>
[ { "answer_id": 34708528, "author": "Mojtaba Rezaeian", "author_id": 2721611, "author_profile": "https://Stackoverflow.com/users/2721611", "pm_score": 2, "selected": false, "text": "If (Condition)\n System.Diagnostics.Debugger.Break()\n" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/243347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14841/" ]
243,351
<p>Is it ever OK to use <code>Environment.TickCount</code>to calculate time spans?</p> <pre><code>int start = Environment.TickCount; // Do stuff int duration = Environment.TickCount - start; Console.WriteLine("That took " + duration " ms"); </code></pre> <p>Because <code>TickCount</code> is signed and will rollover a...
[ { "answer_id": 243357, "author": "Grzenio", "author_id": 5363, "author_profile": "https://Stackoverflow.com/users/5363", "pm_score": 7, "selected": true, "text": " Stopwatch stopWatch = Stopwatch.StartNew();\n Thread.Sleep(10000);\n stopWatch.Stop();\n // Get the elapsed time...
2008/10/28
[ "https://Stackoverflow.com/questions/243351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27414/" ]
243,355
<p>Is there a way to quickly list which sites are on which IP address in IIS 7? </p> <p>If I remember correctly you could sort a view of domains by IP in IIS 6 which was a big help to me in seeing which IPs I had available.</p>
[ { "answer_id": 243370, "author": "Kieron", "author_id": 5791, "author_profile": "https://Stackoverflow.com/users/5791", "pm_score": 2, "selected": false, "text": "MachineName = \"localhost\"\nIIsObjectPath = \"IIS://\" & MachineName & \"/w3svc\"\n\nWScript.Echo \"Checking : \" & IISObjec...
2008/10/28
[ "https://Stackoverflow.com/questions/243355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34548/" ]
243,363
<p>Can someone explain the structure of a Pid in Erlang?</p> <p>Pids looks like this: <code>&lt;A.B.C&gt;</code>, e.g. <code>&lt;0.30.0&gt;</code> , but I would like to know what is the meaning of these three &quot;bits&quot;: <code>A</code>, <code>B</code> and <code>C</code>.</p> <p><code>A</code> seems to be always <...
[ { "answer_id": 243668, "author": "Jon Gretar", "author_id": 5601, "author_profile": "https://Stackoverflow.com/users/5601", "pm_score": 4, "selected": false, "text": "<nodeid,serial,creation> list_to_pid/1 PidString = \"<0.39.0>\",\nlist_to_pid(PidString) ! message.\n list_to_pid( make_p...
2008/10/28
[ "https://Stackoverflow.com/questions/243363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15539/" ]
243,365
<p>I was just reading this <a href="https://stackoverflow.com/questions/243082/c-casting-programmatically-can-it-be-done">thread</a> and it occurred to me that there is one seemingly-valid use of that pattern the OP is asking about. I know I've used it before to implement dynamic creation of objects. As far as I know...
[ { "answer_id": 243405, "author": "SpoonMeiser", "author_id": 1577190, "author_profile": "https://Stackoverflow.com/users/1577190", "pm_score": 2, "selected": false, "text": "Base* Base::get_object(std::string type)\n{\n if (type == \"derived1\") return new Derived1;\n if (type == \...
2008/10/28
[ "https://Stackoverflow.com/questions/243365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10861/" ]
243,368
<p>How do I programmatically reset the Excel <code>Find and Replace</code> dialog box parameters to defaults ("Find what", "Replace with", "Within", "Search", "Look in", "Match case", "Match entire cell contents")?</p> <p>I am using <code>Application.FindFormat.Clear</code> and <code>Application.ReplaceFormat.Clear</c...
[ { "answer_id": 2061040, "author": "DaveParillo", "author_id": 167483, "author_profile": "https://Stackoverflow.com/users/167483", "pm_score": 3, "selected": false, "text": "Sub ResetFind()\n Dim r As Range\n\n On Error Resume Next 'just in case there is no active cell\n Set r =...
2008/10/28
[ "https://Stackoverflow.com/questions/243368", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,375
<p>I have written a CGI script that creates an image dynamically using GET data. To include this image in my webpage, I am using the following code:</p> <pre><code>&lt;img src="image.py?text=xxxxxxxxxxxxxx"&gt; </code></pre> <p>The problem is that I expect in the future the "text" field will get very long and the URL...
[ { "answer_id": 243521, "author": "fuentesjr", "author_id": 10708, "author_profile": "https://Stackoverflow.com/users/10708", "pm_score": 1, "selected": false, "text": "<img src=\"render_img.py?row_id=0122\">" }, { "answer_id": 243860, "author": "Community", "author_id": -...
2008/10/28
[ "https://Stackoverflow.com/questions/243375", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27478/" ]
243,383
<p>I was reading about parsers and parser generators and found this statement in wikipedia's LR parsing -page:</p> <blockquote> <p>Many programming languages can be parsed using some variation of an LR parser. One notable exception is C++.</p> </blockquote> <p>Why is it so? What particular property of C++ causes it...
[ { "answer_id": 243447, "author": "Rob Walker", "author_id": 3631, "author_profile": "https://Stackoverflow.com/users/3631", "pm_score": 8, "selected": true, "text": "int(x), y, *const z;\n int x;\nint y;\nint *const z;\n int(x), y, new int;\n (int(x)), (y), (new int));\n" }, { "a...
2008/10/28
[ "https://Stackoverflow.com/questions/243383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21711/" ]
243,385
<p>I'm pretty new to the Spring Framework, I've been playing around with it and putting a few samples apps together for the purposes of evaluating Spring MVC for use in an upcoming company project. So far I really like what I see in Spring MVC, seems very easy to use and encourages you to write classes that are very un...
[ { "answer_id": 2347229, "author": "srinivas reddy", "author_id": 282661, "author_profile": "https://Stackoverflow.com/users/282661", "pm_score": 4, "selected": false, "text": "ApplicationContext BeanFactory BeanFactory ApplicationContext BeanFactory ApplicationContext extends BeanFactory...
2008/10/28
[ "https://Stackoverflow.com/questions/243385", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4249/" ]
243,388
<p>I <del>understand (I think) the basic idea behind RESTful-ness. Use HTTP methods semantically - GET gets, PUT puts, DELETE deletes, etc... Right?</del> thought I understood the idea behind REST, but I think I'm confusing that with the details of an HTTP implementation. What is the driving idea behind rest, why is ...
[ { "answer_id": 1081615, "author": "pbreitenbach", "author_id": 42048, "author_profile": "https://Stackoverflow.com/users/42048", "pm_score": 7, "selected": true, "text": "POST /user\nfname=John&lname=Doe&age=25\n 201 Created\nLocation: /user/123\n GET /user/123\n 200 OK\n<user><fname>Joh...
2008/10/28
[ "https://Stackoverflow.com/questions/243388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/96/" ]
243,408
<p>This is the error, it's basically a security warning</p> <p><a href="http://img357.imageshack.us/img357/7992/visualstudiowarninggr4.jpg" rel="nofollow noreferrer">Warning message http://img357.imageshack.us/img357/7992/visualstudiowarninggr4.jpg</a></p> <p>(And here's the text grabbed off the dialog box) Security ...
[ { "answer_id": 10699178, "author": "Slappy", "author_id": 765955, "author_profile": "https://Stackoverflow.com/users/765955", "pm_score": 2, "selected": false, "text": "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\<VS_VERSION>\\MSBuild\\SafeImports]\n\"<YOUR_NAME>\"=\"<PATH\\T...
2008/10/28
[ "https://Stackoverflow.com/questions/243408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,409
<p>I need to set the fetch mode on my hibernate mappings to be eager in some cases, and lazy in others. I have my default (set through the hbm file) as lazy="true". How do I override this setting in code? MyClass has a set defined of type MyClass2 for which I want to set the FetchMode to EAGER.</p> <p>Currently, I hav...
[ { "answer_id": 243488, "author": "Mat Mannion", "author_id": 6282, "author_profile": "https://Stackoverflow.com/users/6282", "pm_score": 4, "selected": true, "text": "Criteria crit = session.createCriteria(MyClass.class);\ncrit.add(Restrictions.eq(\"id\", myClassId));\ncrit.setFetchMode(...
2008/10/28
[ "https://Stackoverflow.com/questions/243409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23249/" ]
243,417
<p>How do you pass "this" to the constructor for ObjectDataProvider in XAML.</p> <p>Lets say my presenter class is:</p> <pre><code>public class ApplicationPresenter(IView view){} </code></pre> <p>and that my UserControl implements IView.</p> <p>What do I pass to the ConstructorParameters in the code below so that t...
[ { "answer_id": 243429, "author": "Joachim Kerschbaumer", "author_id": 20227, "author_profile": "https://Stackoverflow.com/users/20227", "pm_score": 0, "selected": false, "text": "x:Name=\"myUserCotrol\"\n ... ConstructorParameters=\"{Binding ElementName=myUserControl}\" ...\n" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/243417", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30046/" ]
243,459
<p>How would I expose an <em>Objective-C</em> method within JavaScript when using the <em>iPhone SDK</em> when using the <code>UIWebView</code>?</p> <p>Any help would be appreciated!</p>
[ { "answer_id": 243505, "author": "Ben Gottlieb", "author_id": 6694, "author_profile": "https://Stackoverflow.com/users/6694", "pm_score": 6, "selected": true, "text": "-webView:shouldStartLoadWithRequest:navigationType:" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/243459", "https://Stackoverflow.com", "https://Stackoverflow.com/users/46304/" ]
243,464
<p>I was mapping a relation using something like the following </p> <pre><code>&lt;map name="Foo" cascade="all-delete-orphan" lazy="false"&gt; &lt;key column="FooId"/&gt; &lt;index column="FooType" type="Domain.Enum.FooType, Domain"/&gt; &lt;element column ="FooStatus" type="Domain.Enum.FooStatus, Domain"/&gt; &...
[ { "answer_id": 247036, "author": "Nikelman", "author_id": 32388, "author_profile": "https://Stackoverflow.com/users/32388", "pm_score": 0, "selected": false, "text": "namespace Domain \n{\npublic virtual IDictionary<FooType, FooStatus> MyFoo { set; get; }\n}\n" } ]
2008/10/28
[ "https://Stackoverflow.com/questions/243464", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
243,469
<p>I have a .Net app that will allow the users to attach files to a SQL Server 2005 database. I want to limit the filesize to 10MB, so from what I can tell, I have to declare the datatype varbinary(max), since the max size I can actually specify is 8000 bytes. But the ~2GB filesize varbinary(max) allows seems like ov...
[ { "answer_id": 243495, "author": "mohammedn", "author_id": 29268, "author_profile": "https://Stackoverflow.com/users/29268", "pm_score": 0, "selected": false, "text": "</configuration>\n </system.web>\n <httpRuntime maxRequestLength=\"60000\"/>\n </system.web>\n</configuration>\...
2008/10/28
[ "https://Stackoverflow.com/questions/243469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30415/" ]
243,489
<p>I am doing an Financial Winforms application and am having some trouble with the controls.</p> <p>My customer needs to insert decimal values all over the place (Prices, Discounts etc) and I'd like to avoid some of the repeating validation.</p> <p>So I immediately tried the MaskedTextBox that would fit my needs (wi...
[ { "answer_id": 243536, "author": "Abel Gaxiola", "author_id": 31191, "author_profile": "https://Stackoverflow.com/users/31191", "pm_score": 4, "selected": true, "text": " protected override void OnKeyPress(KeyPressEventArgs e)\n {\n if (!char.IsNumber(e.KeyChar) & (Keys)e.Ke...
2008/10/28
[ "https://Stackoverflow.com/questions/243489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21699/" ]