qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
153,507
<p>How do I calculate the position of an accelerating body (e.g. a car) after a certain time (e.g. 1 second)?</p> <p>For a moving body that it not accelerating, it is a linear relationship, so I presume for an accelerating body it involves a square somewhere.</p> <p>Any ideas? </p>
[ { "answer_id": 153517, "author": "Chris Johnson", "author_id": 23732, "author_profile": "https://Stackoverflow.com/users/23732", "pm_score": 6, "selected": true, "text": "s = s + u * dt;\nu = u + a * dt;\n" }, { "answer_id": 153551, "author": "freespace", "author_id": 829...
2008/09/30
[ "https://Stackoverflow.com/questions/153507", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11911/" ]
153,527
<p>I have a page that contains a form. This page is served with content type text/html;charset=utf-8. I need to submit this form to server using ISO-8859-1 character encoding. Is this possible with Internet Explorer?</p> <p>Setting accept-charset attribute to form element, like this, works for Firefox, Opera etc. but ...
[ { "answer_id": 153578, "author": "pdc", "author_id": 8925, "author_profile": "https://Stackoverflow.com/users/8925", "pm_score": -1, "selected": false, "text": "accept-charset form" }, { "answer_id": 1213849, "author": "Community", "author_id": -1, "author_profile": "...
2008/09/30
[ "https://Stackoverflow.com/questions/153527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431/" ]
153,573
<p>Take the following C# class:</p> <pre><code>c1 { event EventHandler someEvent; } </code></pre> <p>If there are a lot of subscriptions to <code>c1</code>'s <code>someEvent</code> event and I want to clear them all, what is the best way to achieve this? <strong>Also consider that subscriptions to this event could b...
[ { "answer_id": 153577, "author": "programmer", "author_id": 5289, "author_profile": "https://Stackoverflow.com/users/5289", "pm_score": 5, "selected": false, "text": "public class c1\n{\n event EventHandler someEvent;\n public ResetSubscriptions() => someEvent = null; \n}\n" }...
2008/09/30
[ "https://Stackoverflow.com/questions/153573", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5289/" ]
153,581
<p>Is it possible to assign a global hotkey to a specific feature in an Adobe AIR app, i.e. the app feature responds to the hotkey whether the app is active or not (it must be running of course, but only in the system tray).</p>
[ { "answer_id": 155786, "author": "davr", "author_id": 14569, "author_profile": "https://Stackoverflow.com/users/14569", "pm_score": 3, "selected": true, "text": "c:\\programs\\thvo42\\coolapp.exe --hotkey q" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/153581", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13041/" ]
153,584
<p>How do I iterate over a timespan after days, hours, weeks or months?</p> <p>Something like:</p> <pre><code>for date in foo(from_date, to_date, delta=HOURS): print date </code></pre> <p>Where foo is a function, returning an iterator. I've been looking at the calendar module, but that only works for one specifi...
[ { "answer_id": 153667, "author": "DzinX", "author_id": 18745, "author_profile": "https://Stackoverflow.com/users/18745", "pm_score": 6, "selected": false, "text": "from datetime import date, datetime, timedelta\n\ndef datespan(startDate, endDate, delta=timedelta(days=1)):\n currentDat...
2008/09/30
[ "https://Stackoverflow.com/questions/153584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/473/" ]
153,585
<p>In MS Transact SQL, let's say I have a table (Orders) like this:</p> <pre><code> Order Date Order Total Customer # 09/30/2008 8.00 1 09/15/2008 6.00 1 09/01/2008 9.50 1 09/01/2008 1.45 2 09/16/2008 4.50 2 09/17/2008...
[ { "answer_id": 153601, "author": "albertein", "author_id": 23020, "author_profile": "https://Stackoverflow.com/users/23020", "pm_score": 4, "selected": true, "text": "select avg(total), customer \nfrom orders o1 \nwhere orderdate in \n ( select top 2 date \n from orders o2 \n wher...
2008/09/30
[ "https://Stackoverflow.com/questions/153585", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8173/" ]
153,592
<p>I'm using .NET to make an application with a drawing surface, similar to Visio. The UI connects two objects on the screen with Graphics.DrawLine. This simple implementation works fine, but as the surface gets more complex, I need a more robust way to represent the objects. One of these robust requirements is determi...
[ { "answer_id": 153780, "author": "Chris Johnson", "author_id": 23732, "author_profile": "https://Stackoverflow.com/users/23732", "pm_score": 4, "selected": true, "text": "a = (v2.v2 v1.(x2-x1) - v1.v2 v2.(x2-x1)) / ((v1.v1)(v2.v2) - (v1.v2)^2)\nb = (v1.v2 v1.(x2-x1) - v1.v1 v2.(x2-x1)) /...
2008/09/30
[ "https://Stackoverflow.com/questions/153592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7565/" ]
153,596
<p>What would be the most efficient way of recording to a log (.txt) from a console program on C# and .NET 2.2? My program loops multiple times always outputting different data based on what the user wants, so I'm searching for the most efficient way to achieve this.</p> <p>I know I can always reopen a stream and then...
[ { "answer_id": 153672, "author": "Wolfwyrd", "author_id": 15570, "author_profile": "https://Stackoverflow.com/users/15570", "pm_score": 3, "selected": true, "text": "private Tracing trace = new Tracing(\"My.Namespace.Class\");\n MyClass()\n{\n trace.Verbose(\"Entered MyClass\");\n ...
2008/09/30
[ "https://Stackoverflow.com/questions/153596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22582/" ]
153,598
<p>I have a simple query:</p> <pre><code>SELECT u_name AS user_name FROM users WHERE user_name = "john"; </code></pre> <p>I get <code>Unknown Column 'user_name' in where clause</code>. Can I not refer to <code>'user_name'</code> in other parts of the statement even after <code>select 'u_name as user_name'</code>?</p...
[ { "answer_id": 153614, "author": "Steven A. Lowe", "author_id": 9345, "author_profile": "https://Stackoverflow.com/users/9345", "pm_score": 3, "selected": false, "text": "SELECT u_name AS user_name FROM users WHERE u_name = 'john';\n" }, { "answer_id": 153626, "author": "Davi...
2008/09/30
[ "https://Stackoverflow.com/questions/153598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
153,617
<p>How can I write a scheduler application in C# .NET?</p>
[ { "answer_id": 153688, "author": "Chris Wenham", "author_id": 5548, "author_profile": "https://Stackoverflow.com/users/5548", "pm_score": 0, "selected": false, "text": "// Set event to occur on October 1st, 2008 at 12:30pm.\nDateTime eventStarts = new DateTime(2008,10,1,12,30,00);\nTimer...
2008/09/30
[ "https://Stackoverflow.com/questions/153617", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
153,630
<p>Unfortunately, I need to do this. I'm using ELMAH for my error log. Before I route to my error.aspx view, I have to grab the default ELMAH error log so I can log the exception. You used to be able to use </p> <pre><code>Elmah.ErrorLog.Default </code></pre> <p>However, this is now marked as obsolete. The compil...
[ { "answer_id": 153683, "author": "SHODAN", "author_id": 2622, "author_profile": "https://Stackoverflow.com/users/2622", "pm_score": 8, "selected": true, "text": "System.Web.HttpContext.Current" }, { "answer_id": 1469734, "author": "rodrigo caballero", "author_id": 178234,...
2008/09/30
[ "https://Stackoverflow.com/questions/153630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
153,633
<p>Is there an elegant way to have performant, natural sorting in a MySQL database?</p> <p>For example if I have this data set:</p> <ul> <li>Final Fantasy</li> <li>Final Fantasy 4</li> <li>Final Fantasy 10</li> <li>Final Fantasy 12</li> <li>Final Fantasy 12: Chains of Promathia</li> <li>Final Fantasy Adventure</li> <...
[ { "answer_id": 153660, "author": "ConroyP", "author_id": 2287, "author_profile": "https://Stackoverflow.com/users/2287", "pm_score": 4, "selected": false, "text": "ORDER BY SELECT * FROM table ORDER BY CAST(mid(name, 6, LENGTH(c) -5) AS unsigned) \n" }, { "answer_id": 153699, ...
2008/09/30
[ "https://Stackoverflow.com/questions/153633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/999/" ]
153,639
<p>Greetings!</p> <p>I have a WebService that contains a WebMethod that does some work and returns a boolean value. The work that it does may or may not take some time, so I'd like to call it asynchronously.</p> <pre><code>[WebService(Namespace = "http://tempuri.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.Ba...
[ { "answer_id": 153854, "author": "craigmoliver", "author_id": 12252, "author_profile": "https://Stackoverflow.com/users/12252", "pm_score": 0, "selected": false, "text": "<asp:UpdatePanel ID=\"up\" runat=\"server\" UpdateMode=\"Conditional\">\n <ContentTemplate>\n <asp:Literal ID=\...
2008/09/30
[ "https://Stackoverflow.com/questions/153639", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27870/" ]
153,644
<p>Since arrays and hashes can only contain scalars in Perl, why do you have to use the $ to tell the interpreter that the value is a scalar when accessing array or hash elements? In other words, assuming you have an array <code>@myarray</code> and a hash <code>%myhash</code>, why do you need to do:</p> <pre><code>$x ...
[ { "answer_id": 153668, "author": "Paul Dixon", "author_id": 6521, "author_profile": "https://Stackoverflow.com/users/6521", "pm_score": 3, "selected": false, "text": "$x = myarray[1];\n $x = m[1];\n" }, { "answer_id": 153692, "author": "zigdon", "author_id": 4913, "au...
2008/09/30
[ "https://Stackoverflow.com/questions/153644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/742/" ]
153,666
<p>I'm having a problem with some mail merge code that is supposed to produce letters within our application. I'm aware that this code is a bit rough at the moment, but we're in the "Get something working" phase before we tidy it up.</p> <p>Now the way this is supposed to work, and the way it works when we do it manua...
[ { "answer_id": 153793, "author": "micahwittman", "author_id": 11181, "author_profile": "https://Stackoverflow.com/users/11181", "pm_score": 0, "selected": false, "text": "wrdDoc.MailMerge.OpenDataSource(templateName)\n data = \"C:\\My Data.xls\"\nwrdDoc.MailMerge.OpenDataSource(data)\n" ...
2008/09/30
[ "https://Stackoverflow.com/questions/153666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11496/" ]
153,685
<p>So I've got an application whose window behavior I would like to behave more like Photoshop CS. In Photoshop CS, the document windows always stay behind the tool windows, but are still top level windows. For MDI child windows, since the document window is actually a child, you can't move it outside of the main windo...
[ { "answer_id": 8124168, "author": "Eugene Belyakov", "author_id": 851473, "author_profile": "https://Stackoverflow.com/users/851473", "pm_score": 2, "selected": false, "text": "public class BaseForm : Form\n{\n public virtual int TopMostLevel\n {\n get { return 0; }\n }\n...
2008/09/30
[ "https://Stackoverflow.com/questions/153685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23812/" ]
153,689
<p>I'm designing an application which deals with two sets of data - Users and Areas. The data is read from files produced by a third party. I have a User class and an Area class, and the data is read into a Users array and an Areas array (or other appropriate memory structure, depending on the technology we go with)....
[ { "answer_id": 153708, "author": "Steven A. Lowe", "author_id": 9345, "author_profile": "https://Stackoverflow.com/users/9345", "pm_score": 3, "selected": false, "text": "User <<--->> Area\n User: Id, name, etc.\nArea: Id, name, etc.\nUserArea: UserId, AreaId\n" }, { "answer_id":...
2008/09/30
[ "https://Stackoverflow.com/questions/153689", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8354/" ]
153,706
<p>It seems to me that phpMyAdmin imports tables by default with collation latin1_swedish_ci, how i change this?</p>
[ { "answer_id": 153765, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 4, "selected": false, "text": "$dbname = 'my_databaseName';\nmysql_connect('127.0.0.1', 'root', '');\nmysql_query(\"ALTER DATABASE `$dbname` DEFAULT CHAR...
2008/09/30
[ "https://Stackoverflow.com/questions/153706", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2138/" ]
153,707
<p>Suppose I have the following declaration:</p> <pre><code>class Over1 { protected: class Under1 { }; }; </code></pre> <p>I know that I could do the following:</p> <pre><code>class Over2 : public Over1 { protected: class Under2 : public Under1 { }; }; </code></pre> <...
[ { "answer_id": 153830, "author": "Richard Corden", "author_id": 11698, "author_profile": "https://Stackoverflow.com/users/11698", "pm_score": 2, "selected": true, "text": "class Over1\n{\nprotected:\n class Under1\n {\n };\n\n template <typename T>\n class UnderImplementor;\n};\n\ns...
2008/09/30
[ "https://Stackoverflow.com/questions/153707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23829/" ]
153,716
<p>Is there any way to verify in Java code that an e-mail address is valid. By valid, I don't just mean that it's in the correct format (someone@domain.subdomain), but that's it's a real active e-mail address.</p> <p>I'm almost certain that there's no 100% reliable way to do this, because such a technique would be the...
[ { "answer_id": 153751, "author": "MBCook", "author_id": 18189, "author_profile": "https://Stackoverflow.com/users/18189", "pm_score": 6, "selected": false, "text": "private static final Pattern rfc2822 = Pattern.compile(\n \"^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^...
2008/09/30
[ "https://Stackoverflow.com/questions/153716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2648/" ]
153,724
<p>What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.</p> <p>I also would like only significant digits to be ...
[ { "answer_id": 153753, "author": "asterite", "author_id": 20459, "author_profile": "https://Stackoverflow.com/users/20459", "pm_score": 9, "selected": false, "text": "value double (double)Math.round(value * 100000d) / 100000d\n" }, { "answer_id": 153764, "author": "Chris Cudm...
2008/09/30
[ "https://Stackoverflow.com/questions/153724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12149/" ]
153,731
<p>I am looking for validation framework and while I am already using NHibernate I am thinking of using NHibernate.validator from contrib project however I also look at MS Validation Block which seem to be robust but i am not yet get into detail of each one yet so I wonder has anyone had step into these two frameworks ...
[ { "answer_id": 787580, "author": "mookid8000", "author_id": 6560, "author_profile": "https://Stackoverflow.com/users/6560", "pm_score": 4, "selected": true, "text": "var engine = new ValidatorEngine();\nInvalidValue[] errors = engine.Validate(someModelObjectWithAttributes);\n\nforeach(va...
2008/09/30
[ "https://Stackoverflow.com/questions/153731", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15396/" ]
153,748
<p>I've tried this:</p> <pre><code>string newScript = textBox1.Text; HtmlElement head = browserCtrl.Document.GetElementsByTagName("head")[0]; HtmlElement scriptEl = browserCtrl.Document.CreateElement("script"); lblStatus.Text = scriptEl.GetType().ToString(); scriptEl.SetAttribute("type", "text/javascript"); head.Appen...
[ { "answer_id": 154330, "author": "ZeroBugBounce", "author_id": 11314, "author_profile": "https://Stackoverflow.com/users/11314", "pm_score": 3, "selected": false, "text": "IHTMLElement iScriptEl = (IHTMLElement)scriptEl.DomElement;\n iScriptEl.insertAdjacentText(\"afterBegin\", \"functio...
2008/09/30
[ "https://Stackoverflow.com/questions/153748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1432/" ]
153,759
<p>How do I use the jQuery Datepicker with a textbox input:</p> <pre><code>$("#my_txtbox").datepicker({ // options }); </code></pre> <p>that doesn't allow the user to input random text in the textbox. I want the Datepicker to pop up when the textbox gains focus or the user clicks on it, but I want the textbox to ig...
[ { "answer_id": 153804, "author": "Adam Bellaire", "author_id": 21632, "author_profile": "https://Stackoverflow.com/users/21632", "pm_score": 9, "selected": true, "text": "<input type='text' id='foo' readonly='true'>\n" }, { "answer_id": 153817, "author": "Eduardo Molteni", ...
2008/09/30
[ "https://Stackoverflow.com/questions/153759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2024/" ]
153,762
<p>Our graphics person uses Adobe Illustrator and we'd like to use her images inside our WPF application as paths. Is there a way to do this?</p>
[ { "answer_id": 26541828, "author": "DuckMaestro", "author_id": 29152, "author_profile": "https://Stackoverflow.com/users/29152", "pm_score": 2, "selected": false, "text": "<DrawingGroup> x:Name=\"...\" <Image>\n <Image.Source>\n <DrawingImage>\n <DrawingImage.Drawing>\n <...
2008/09/30
[ "https://Stackoverflow.com/questions/153762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3047/" ]
153,769
<p>As in subject... is there a way of looking at an empty table schema without inserting any rows and issuing a SELECT?</p>
[ { "answer_id": 153779, "author": "Plasmer", "author_id": 397314, "author_profile": "https://Stackoverflow.com/users/397314", "pm_score": 4, "selected": true, "text": "db2 describe table user1.department Table: USER1.DEPARTMENT\n\nColumn Type Type\nname sc...
2008/09/30
[ "https://Stackoverflow.com/questions/153769", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8437/" ]
153,775
<p>i have a library with some entities that share the same interface. clients and service share this assembly. now i wonder if there is a way to have this Interface-type as Parameter in my service contracts so that i can use the same method for all classes implementing the interface.</p> <p>the entities themselve are ...
[ { "answer_id": 214451, "author": "lesscode", "author_id": 18482, "author_profile": "https://Stackoverflow.com/users/18482", "pm_score": 0, "selected": false, "text": "namespace SharedInterfaces {\n public interface ICompositeType {\n bool BoolValue { get; set; }\n string...
2008/09/30
[ "https://Stackoverflow.com/questions/153775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20227/" ]
153,776
<p>I am inside of...</p> <pre><code>public class bgchange : IMapServerDropDownBoxAction { void IServerAction.ServerAction(ToolbarItemInfo info) { Some code... </code></pre> <p>and after "some code" I want to trigger</p> <pre><code>[WebMethod] public static void DoSome() { } </code></pre> <p>Which trig...
[ { "answer_id": 153873, "author": "Scott Nichols", "author_id": 4299, "author_profile": "https://Stackoverflow.com/users/4299", "pm_score": 3, "selected": true, "text": "<asp:ScriptManager ID=\"scriptManager1\" \n runat=\"server\" EnablePageMethods=\"true\" />\n Page.ClientScript.Regis...
2008/09/30
[ "https://Stackoverflow.com/questions/153776", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5234/" ]
153,782
<p>I am using a codebehind page in ASP.NET to perform a SQL query. The query is loaded into a string, the connection is established (To Oracle), and we get it started by having the connection perform .ExecuteReader into a OleDBDataReader (We'll call it DataRead). I'll try to hammer out an example below. (Consider Dr...
[ { "answer_id": 153788, "author": "John Sheehan", "author_id": 1786, "author_profile": "https://Stackoverflow.com/users/1786", "pm_score": 1, "selected": false, "text": "Dim item as New ListItem()\nitem.Value = \"foo\"\nitem.Text = \"bar\"\n\nDrop.Items.Add(item)\n" }, { "answer_i...
2008/09/30
[ "https://Stackoverflow.com/questions/153782", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12545/" ]
153,795
<p>I'm getting some objects from an external library and I need to store those objects in a database. Is there a way to create the tables and relationships starting from the objects, or I have to dig into them and create migrations and models by hand?</p> <p>Thanks! Roberto</p>
[ { "answer_id": 155764, "author": "Orion Edwards", "author_id": 234, "author_profile": "https://Stackoverflow.com/users/234", "pm_score": 2, "selected": false, "text": "class Animal\n attr_accessor :name, :number_of_legs\nend\na = SomeThirdPartyLibrary.get_animal\n table_name = a.class...
2008/09/30
[ "https://Stackoverflow.com/questions/153795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22083/" ]
153,796
<p>I'm trying to loop through all the controls on a sharepoint page, for the purposes of testing i just want to output the control ID</p> <p>this is the code i'm using</p> <p>Public Shared Sub SubstituteValues3(ByVal CurrentPage As Page, ByRef s As StringBuilder)</p> <pre><code> 'Page() '- MasterPage '- H...
[ { "answer_id": 160539, "author": "Cruiser", "author_id": 16971, "author_profile": "https://Stackoverflow.com/users/16971", "pm_score": 1, "selected": false, "text": " For Each ctlForm As Control In Page.Master.Controls\n\n If TypeOf ctlForm Is HtmlForm Then\n ...
2008/09/30
[ "https://Stackoverflow.com/questions/153796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
153,801
<p>I've got a script that takes a user uploaded RTF document and merges in some person data into the letter (name, address, etc), and does this for multiple people. I merge the letter contents, then combine that with the next merge letter contents, for all people records.</p> <p>Affectively I'm combining a single RTF ...
[ { "answer_id": 155094, "author": "Randy", "author_id": 9361, "author_profile": "https://Stackoverflow.com/users/9361", "pm_score": 3, "selected": true, "text": "$output = preg_replace(\"/}\\s?\\n\\\\\\\\page.*?\\\\\\\\par\\s?\\n/ms\", \"\\\\page\\n\", $input);\n" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/153801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43/" ]
153,812
<p>In SVN, <code>trunk</code> is the recommended place for the main development and I use this convention for all of my projects. However, this means that <strong>trunk is sometimes unstable, or even broken</strong>. This happens for instance when</p> <ul> <li>I commit something by mistake</li> <li>When the trunk simp...
[ { "answer_id": 154324, "author": "JesperE", "author_id": 13051, "author_profile": "https://Stackoverflow.com/users/13051", "pm_score": 2, "selected": false, "text": "# Create new branch and switch to it\nfunction svn_bswitch()\n{\n branch=$1; shift\n msg=\"$1\"; shift\n\n URL=$(svn...
2008/09/30
[ "https://Stackoverflow.com/questions/153812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21728/" ]
153,815
<p>I am coming from the SQL server world where we had uniqueidentifier. Is there an equivalent in oracle? This column will be frequently queried so performance is the key.</p> <p>I am generating the GUID in .Net and will be passing it to Oracle. For a couple reasons it cannot be generated by oracle so I cannot use seq...
[ { "answer_id": 153849, "author": "Turnkey", "author_id": 13144, "author_profile": "https://Stackoverflow.com/users/13144", "pm_score": 7, "selected": true, "text": "CREATE table test (testguid RAW(16) default SYS_GUID() ) \n" }, { "answer_id": 153851, "author": "hamishmcn", ...
2008/09/30
[ "https://Stackoverflow.com/questions/153815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1514/" ]
153,825
<p>I've got the following query to determine how many votes a story has received:</p> <pre><code>SELECT s_id, s_title, s_time, (s_time-now()) AS s_timediff, ( (SELECT COUNT(*) FROM s_ups WHERE stories.q_id=s_ups.s_id) - (SELECT COUNT(*) FROM s_downs WHERE stories.s_id=s_downs.s_id) ) AS votes FROM stories </code>...
[ { "answer_id": 154094, "author": "J.J.", "author_id": 21204, "author_profile": "https://Stackoverflow.com/users/21204", "pm_score": 2, "selected": false, "text": "DELIMINATOR //\n\nCREATE FUNCTION y_element(x INT) \n RETURNS INT\n\nBEGIN\n DECLARE y INT;\n\nIF x > 0 SET y = 1;\nELSE...
2008/09/30
[ "https://Stackoverflow.com/questions/153825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
153,846
<p>We have a WCF service deployed on a Windows 2003 server that is exhibiting some problems. The configuration is using <code>wsHttpBinding</code> and we are specifying the IP address. The services is being hosted by a Windows Service.</p> <p>When we start the service up, most of the time it grabs the wrong IP addre...
[ { "answer_id": 155083, "author": "palehorse", "author_id": 312, "author_profile": "https://Stackoverflow.com/users/312", "pm_score": 0, "selected": false, "text": "Description:\nUnable to bind to the underlying transport for xx.xx.xx.4:80. The IP Listen-Only list may contain a reference ...
2008/09/30
[ "https://Stackoverflow.com/questions/153846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/312/" ]
153,861
<p>What do the brackets do in a sql statement?</p> <p>For example, in the statement: </p> <pre>insert into table1 ([columnname1], columnname2) values (val1, val2)</pre> <p>Also, what does it do if the table name is in brackets?</p>
[ { "answer_id": 153870, "author": "Jorge Ferreira", "author_id": 6508, "author_profile": "https://Stackoverflow.com/users/6508", "pm_score": 3, "selected": false, "text": "CREATE TABLE test\n(\n [select] varchar(15)\n)\n\nINSERT INTO test VALUES('abc')\n\nSELECT [select] FROM test\n" }...
2008/09/30
[ "https://Stackoverflow.com/questions/153861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673/" ]
153,863
<p>I have a large 'Manager' class which I think is doing too much but I am unsure on how to divide it into more logical units. </p> <p>Generally speaking the class basically consists of the following methods:</p> <pre> class FooBarManager { GetFooEntities(); AddFooEntity(..); UpdateFooEntity(..); SubmitFooEnt...
[ { "answer_id": 153917, "author": "scable", "author_id": 8942, "author_profile": "https://Stackoverflow.com/users/8942", "pm_score": 0, "selected": false, "text": " / FooManager\nManager (derive from Manager)\n \\ BarManager\n" }, { "answer_id": 153926...
2008/09/30
[ "https://Stackoverflow.com/questions/153863", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15771/" ]
153,874
<h3>See: <a href="https://stackoverflow.com/questions/5727/understanding-pointers">Understanding Pointers</a></h3> <hr /> <p>In many C flavoured languages, and some older languages like Fortran, one can use <strong>Pointers</strong>.</p> <p>As someone who has only really programmed in basic, javascript, and actionscrip...
[ { "answer_id": 153880, "author": "Douglas Mayle", "author_id": 8458, "author_profile": "https://Stackoverflow.com/users/8458", "pm_score": 3, "selected": false, "text": "// x is an integer variable\nint x = 5;\n// xpointer is a variable that references (points to) integer variables\nint ...
2008/09/30
[ "https://Stackoverflow.com/questions/153874", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10875/" ]
153,877
<p>I have read the documentation on this and I think I understand. An <a href="http://msdn.microsoft.com/en-us/library/system.threading.autoresetevent.aspx" rel="noreferrer"><code>AutoResetEvent</code></a> resets when the code passes through <code>event.WaitOne()</code>, but a <a href="http://msdn.microsoft.com/en-us/l...
[ { "answer_id": 154005, "author": "Dan Goldstein", "author_id": 23427, "author_profile": "https://Stackoverflow.com/users/23427", "pm_score": 11, "selected": true, "text": "ManualResetEvent AutoResetEvent" }, { "answer_id": 154442, "author": "Michael Damatov", "author_id":...
2008/09/30
[ "https://Stackoverflow.com/questions/153877", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1455/" ]
153,879
<p>As part of a build setup on a windows machine I need to add a registry entry and I'd like to do it from a simple batch file.</p> <p>The entry is for a third party app so the format is fixed.</p> <p>The entry takes the form of a REG_SZ string but needs to contain newlines ie. 0xOA characters as separators.</p> <p>...
[ { "answer_id": 153952, "author": "tloach", "author_id": 14092, "author_profile": "https://Stackoverflow.com/users/14092", "pm_score": 3, "selected": true, "text": "set WSHShell = CreateObject(\"WScript.Shell\") \nWSHShell.RegWrite \"HKEY_LOCAL_MACHINE\\SOMEKEY\", \"value\", \"type\"\n" ...
2008/09/30
[ "https://Stackoverflow.com/questions/153879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5427/" ]
153,890
<p>I'm trying to find a good way to print leading <code>0</code>, such as <code>01001</code> for a <a href="https://en.wikipedia.org/wiki/ZIP_Code" rel="noreferrer">ZIP Code</a>. While the number would be stored as <code>1001</code>, what is a good way to do it?</p> <p>I thought of using either <code>case</code> statem...
[ { "answer_id": 153895, "author": "EvilTeach", "author_id": 7734, "author_profile": "https://Stackoverflow.com/users/7734", "pm_score": 10, "selected": true, "text": "printf(\"%05d\", zipCode);\n 0 5 \"%02d\" 06 6 \"%03d\" 007 017" }, { "answer_id": 153898, "author": "Trent", ...
2008/09/30
[ "https://Stackoverflow.com/questions/153890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9628/" ]
153,909
<p>I call my JavaScript function. Why do I <em>sometimes</em> get the error 'myFunction is not defined' when it <em>is</em> defined?</p> <p>For example. I'll occasionally get 'copyArray is not defined' even in this example:</p> <pre><code>function copyArray( pa ) { var la = []; for (var i=0; i &lt; pa.length;...
[ { "answer_id": 153951, "author": "Douglas Mayle", "author_id": 8458, "author_profile": "https://Stackoverflow.com/users/8458", "pm_score": 0, "selected": false, "text": "(function() {\n function copyArray(pa) {\n // Details\n }\n\n Function.prototype.bind = function ( po ...
2008/09/30
[ "https://Stackoverflow.com/questions/153909", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4525/" ]
153,912
<p>I'm looking for a good way to visualize ASP.NET session state data stored in SQL server, preferably without creating a throwaway .aspx page. Is there a good way to get a list of the keys (and serialized data, if possible) directly from SQL server?</p> <p>Ideally, I'd like to run some T-SQL commands directly against...
[ { "answer_id": 153951, "author": "Douglas Mayle", "author_id": 8458, "author_profile": "https://Stackoverflow.com/users/8458", "pm_score": 0, "selected": false, "text": "(function() {\n function copyArray(pa) {\n // Details\n }\n\n Function.prototype.bind = function ( po ...
2008/09/30
[ "https://Stackoverflow.com/questions/153912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23632/" ]
153,920
<p>Code I am trying to run:</p> <pre><code>$query = "DESCRIBE TABLE TABLENAME"; $result = odbc_exec($h, $query); </code></pre> <p>The result:</p> <blockquote> <p>PHP Warning: odbc_exec(): SQL error: [unixODBC][IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0104 - Token TABLENAME was not valid. Valid tokens: INTO...
[ { "answer_id": 173865, "author": "pmg", "author_id": 25324, "author_profile": "https://Stackoverflow.com/users/25324", "pm_score": 0, "selected": false, "text": "select * from <TABLE> where 0 = 1\n" }, { "answer_id": 184474, "author": "Ian McLaird", "author_id": 18796, ...
2008/09/30
[ "https://Stackoverflow.com/questions/153920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8437/" ]
153,928
<p>We currently are using both Visual Source Safe and Team Foundation Server at work (VSS for old projects, TFS for current or new projects).</p> <p>We have always used Labels in source control for each build. In VSS if you chose to see a file history you could include labels. In TFS I cannot find an option to inclu...
[ { "answer_id": 6822899, "author": "Mike Sage", "author_id": 862414, "author_profile": "https://Stackoverflow.com/users/862414", "pm_score": 1, "selected": false, "text": "select DisplayName, cs.CreationDate, Comment, 'CheckIn' \nfrom TfsVersionControl.dbo.tbl_Identity i, TfsVersionContro...
2008/09/30
[ "https://Stackoverflow.com/questions/153928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5882/" ]
153,934
<p>I'm trying to modify the class of an element if an ajax call based on that element is successful</p> <pre><code>&lt;script type='text/javascript'&gt; $("#a.toggle").click(function(e){ $.ajax({ url: '/changeItem.php', dataType: 'json', type: 'POST', success: function(data,text){ ...
[ { "answer_id": 153948, "author": "Dan Goldstein", "author_id": 23427, "author_profile": "https://Stackoverflow.com/users/23427", "pm_score": 5, "selected": true, "text": "$(\"#a.toggle\").click(function(e)\n{\n var target = $(this);\n $.ajax({\n url: '/changeItem.php',\n da...
2008/09/30
[ "https://Stackoverflow.com/questions/153934", "https://Stackoverflow.com", "https://Stackoverflow.com/users/144/" ]
153,942
<p>After developing a WPF application without Source Control, I decided to add the solution to TFS.</p> <p>After doing so whenever I opened the main window.xaml file in Design View Visual Studio would disappear and the following event would be logged in the Application Event log:</p> <blockquote> <p>.NET Runtime ve...
[ { "answer_id": 463719, "author": "Zhaph - Ben Duguid", "author_id": 33051, "author_profile": "https://Stackoverflow.com/users/33051", "pm_score": 3, "selected": false, "text": "<dependentAssembly>\n <assemblyIdentity name=\"office\" publicKeyToken=\"71e9bce111e9429c\" culture=\"neutral\...
2008/09/30
[ "https://Stackoverflow.com/questions/153942", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13368/" ]
153,944
<p>Is SQL case sensitive? I've used <a href="https://en.wikipedia.org/wiki/MySQL" rel="nofollow noreferrer">MySQL</a> and <a href="https://en.wikipedia.org/wiki/Microsoft_SQL_Server" rel="nofollow noreferrer">SQL Server</a> which both seem to be case insensitive. Is this always the case? Does the standard define cas...
[ { "answer_id": 153964, "author": "Dana", "author_id": 7856, "author_profile": "https://Stackoverflow.com/users/7856", "pm_score": 2, "selected": false, "text": "select cOL1, col2 FrOM taBLeName WheRE ...\n" }, { "answer_id": 153965, "author": "cmcculloh", "author_id": 58,...
2008/09/30
[ "https://Stackoverflow.com/questions/153944", "https://Stackoverflow.com", "https://Stackoverflow.com/users/415/" ]
153,953
<p>I’m trying to debug a memory leak problem. I’m using <a href="http://www.gnu.org/software/libc/manual/html_node/Tracing-malloc.html#Tracing-malloc" rel="noreferrer">mtrace()</a> to get a malloc/free/realloc trace. I’ve ran my prog and have now a huge log file. So far so good. But I have problems interpreting the fil...
[ { "answer_id": 154419, "author": "Sufian", "author_id": 9241, "author_profile": "https://Stackoverflow.com/users/9241", "pm_score": 3, "selected": false, "text": "$ gcc -g -o test test.c\n$ MALLOC_TRACE=mtrace.out ./test\n$ mtrace test mtrace.out\n\nMemory not freed:\n-----------------\n...
2008/09/30
[ "https://Stackoverflow.com/questions/153953", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17428/" ]
153,974
<p>I'm wondering how (un)common it is to encapsulate an algorithm into a class? More concretely, instead of having a number of separate functions that forward common parameters between each other:</p> <pre><code>void f(int common1, int param1, int *out1); void g(int common1, int common2, int param1, int *out2) { f(c...
[ { "answer_id": 154001, "author": "David Segonds", "author_id": 13673, "author_profile": "https://Stackoverflow.com/users/13673", "pm_score": 1, "selected": false, "text": "class MyFunctor {\n public:\n MyFunctor( /* List of Parameters */ );\n bool execute();\n private:\...
2008/09/30
[ "https://Stackoverflow.com/questions/153974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2583/" ]
153,983
<p>For some reason the Windows command prompt is "special" in that you have to go to a properties dialog to resize it horizontally rather than just dragging the corner of the window like every other app. Unsurprisingly this feature made it into P-P-P-Powershell as well -- is there any way around this via command prompt...
[ { "answer_id": 188086, "author": "avgbody", "author_id": 8737, "author_profile": "https://Stackoverflow.com/users/8737", "pm_score": 4, "selected": false, "text": "##\n## Author : Roman Kuzmin\n## Synopsis : Resize console window/buffer using arrow keys\n##\n\nfunction Size($w, $h)\n{\...
2008/09/30
[ "https://Stackoverflow.com/questions/153983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/327/" ]
153,988
<p>I need to copy some records from our SQLServer 2005 test server to our live server. It's a flat lookup table, so no foreign keys or other referential integrity to worry about.</p> <p>I could key-in the records again on the live server, but this is tiresome. I could export the test server records and table data in...
[ { "answer_id": 154071, "author": "Kwirk", "author_id": 21879, "author_profile": "https://Stackoverflow.com/users/21879", "pm_score": 7, "selected": true, "text": "Execute sp_addlinkedserver PRODUCTION_SERVER_NAME\n INSERT INTO [PRODUCTION_SERVER_NAME].DATABASE_NAME.dbo.TABLE_NAME (Name...
2008/09/30
[ "https://Stackoverflow.com/questions/153988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7703/" ]
153,989
<p>I have a little logging app (written in wxPython) that receives data from a bit of kit we're developing, and I want to display the text in a scrolling window. As it stands I'm using a wx.TextCtrl for the text display, but I'm having some issues with the scrolling behaviour.</p> <p>Basically, I'd like it so that if ...
[ { "answer_id": 154225, "author": "DzinX", "author_id": 18745, "author_profile": "https://Stackoverflow.com/users/18745", "pm_score": 2, "selected": true, "text": "GetScrollPos(0) GetScrollRange(0) EVT_TEXT wx.TextCtrl >>> import wx\n>>> wx.version()\n'2.8.9.1 (msw-unicode)'\n" }, { ...
2008/09/30
[ "https://Stackoverflow.com/questions/153989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15369/" ]
153,994
<p>I want to have a class which implements an interface, which specifies the specific subclass as a parameter.</p> <pre><code>public abstract Task implements TaskStatus&lt;Task&gt; { TaskStatus&lt;T&gt; listener; protected complete() { // ugly, unsafe cast callback.complete((T) this); } } public in...
[ { "answer_id": 154340, "author": "Bruno De Fraine", "author_id": 6918, "author_profile": "https://Stackoverflow.com/users/6918", "pm_score": 3, "selected": true, "text": "Task Task<T> class Task<T extends Task<T>> { ... }\n class MyTask extends Task<MyTask> { ... }\nclass YourTask extend...
2008/09/30
[ "https://Stackoverflow.com/questions/153994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/758/" ]
154,004
<p>I have a link that I dynamically create which looks something like the following:</p> <pre><code>&lt;a onclick="Edit('value from a text column here')" href="javascript:void(null);"&gt;Edit&lt;/a&gt; </code></pre> <p>with the Edit function then taking the passed in value and putting it into a Yahoo Rich Text Editor...
[ { "answer_id": 154018, "author": "Chris Johnson", "author_id": 23732, "author_profile": "https://Stackoverflow.com/users/23732", "pm_score": 5, "selected": true, "text": "&quot;" }, { "answer_id": 155095, "author": "paercebal", "author_id": 14089, "author_profile": "h...
2008/09/30
[ "https://Stackoverflow.com/questions/154004", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22777/" ]
154,013
<p>My Django app has a Person table, which contains the following text in a field named <code>details</code>:</p> <p><code>&lt;script&gt;alert('Hello');&lt;/script&gt;</code></p> <p>When I call <code>PersonForm.details</code> in my template, the page renders the script accordingly (a.k.a., an alert with the word "Hel...
[ { "answer_id": 154027, "author": "Jon Cage", "author_id": 15369, "author_profile": "https://Stackoverflow.com/users/15369", "pm_score": 4, "selected": true, "text": "{{ value|safe }}\n {{ value|escape }}\n escapejs\n\nNew in Django 1.0.\n\nEscapes characters for use in JavaScript strings...
2008/09/30
[ "https://Stackoverflow.com/questions/154013", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10040/" ]
154,031
<pre><code>Pattern pattern = Pattern.compile("^[a-z]+$"); String string = "abc-def"; assertTrue( pattern.matcher(string).matches() ); // obviously fails </code></pre> <p>Is it possible to have the character class match a "-" ?</p>
[ { "answer_id": 154037, "author": "albertein", "author_id": 23020, "author_profile": "https://Stackoverflow.com/users/23020", "pm_score": 3, "selected": false, "text": "[a-z\\\\-]\n" }, { "answer_id": 154040, "author": "Tomalak", "author_id": 18771, "author_profile": "...
2008/09/30
[ "https://Stackoverflow.com/questions/154031", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11858/" ]
154,042
<p>I'm using spring 2.5 and annotations to configure my spring-mvc web context. Unfortunately, I am unable to get the following to work. I'm not sure if this is a bug (seems like it) or if there is a basic misunderstanding on how the annotations and interface implementation subclassing works.</p> <p>For example,</p>...
[ { "answer_id": 2358726, "author": "Michal Bachman", "author_id": 220912, "author_profile": "https://Stackoverflow.com/users/220912", "pm_score": 4, "selected": false, "text": "<bean class=\"org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping\"/>\n<bean class=\"...
2008/09/30
[ "https://Stackoverflow.com/questions/154042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9955/" ]
154,059
<p>Is there a <code>string.Empty</code> in JavaScript, or is it just a case of checking for <code>&quot;&quot;</code>?</p>
[ { "answer_id": 154068, "author": "bdukes", "author_id": 2688, "author_profile": "https://Stackoverflow.com/users/2688", "pm_score": 13, "selected": true, "text": "if (strValue) {\n // strValue was non-empty string, true, 42, Infinity, [], ...\n}\n if (!strValue) {\n // strValue was...
2008/09/30
[ "https://Stackoverflow.com/questions/154059", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5619/" ]
154,075
<p>I have a Virtual Machine in Virtual PC 2007.</p> <p>To start it from the desktop, I have the following command in a batch file:</p> <pre><code>"c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc "MY-PC" -launch </code></pre> <p>But that leaves a dos prompt on the host machine until the virtual machine shut...
[ { "answer_id": 154083, "author": "albertein", "author_id": 23020, "author_profile": "https://Stackoverflow.com/users/23020", "pm_score": -1, "selected": false, "text": "start \"c:\\program files\\Microsoft Virtual PC\\Virtual PC.exe\" \"-pc MY-PC -launch\"\n" }, { "answer_id": 15...
2008/09/30
[ "https://Stackoverflow.com/questions/154075", "https://Stackoverflow.com", "https://Stackoverflow.com/users/672/" ]
154,078
<p>When I open a file in eclipse it shows with the improper line spacing showing an extra line break between every line. When I open the file with notepad or wordpad it doesn't show these extra line breaks that only eclipse shows. How do I get eclipse to read these files like notepad and wordpad without those line brea...
[ { "answer_id": 154125, "author": "Nate", "author_id": 12779, "author_profile": "https://Stackoverflow.com/users/12779", "pm_score": 3, "selected": false, "text": "File -> Convert Line Delimiters To..." } ]
2008/09/30
[ "https://Stackoverflow.com/questions/154078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5831/" ]
154,079
<p>I have a number of RGBA pixels, each of them has an alpha component.</p> <p>So I have a list of pixels: (<em>p0 p1 p2 p3 p4 ... pn</em>) where p_0_ is the front pixel and p_n_ is the farthest (at the back).</p> <p>The last (or any) pixel is not necessary opaque, so the resulting blended pixel can be somehow transp...
[ { "answer_id": 154108, "author": "Chris Johnson", "author_id": 23732, "author_profile": "https://Stackoverflow.com/users/23732", "pm_score": 2, "selected": false, "text": "lightr=lightg=lightb=0 lightleft=1 lightr += lightleft*r*(1-a)\nlightg += lightleft*g*(1-a)\nlightb += lightleft*b*(...
2008/09/30
[ "https://Stackoverflow.com/questions/154079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20514/" ]
154,089
<p>Anyone know how to programmatically mute the Windows XP Volume using C#?</p>
[ { "answer_id": 154128, "author": "Jorge Ferreira", "author_id": 6508, "author_profile": "https://Stackoverflow.com/users/6508", "pm_score": 4, "selected": false, "text": "private const int APPCOMMAND_VOLUME_MUTE = 0x80000;\nprivate const int WM_APPCOMMAND = 0x319;\n\n[DllImport(\"user32....
2008/09/30
[ "https://Stackoverflow.com/questions/154089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1316/" ]
154,097
<p>I've switched computers a few times recently, and somewhere along the way I lost my .emacs. I'm trying to build it up again, but while I'm at it, I thought I'd pick up other good configurations that other people use.</p> <p>So, if you use Emacs, what's in <i>your</i> .emacs?</p> <p>Mine is pretty barren right now...
[ { "answer_id": 154105, "author": "David Nehme", "author_id": 14167, "author_profile": "https://Stackoverflow.com/users/14167", "pm_score": 1, "selected": false, "text": "(put 'erase-buffer 'disabled nil)\n(put 'downcase-region 'disabled nil)\n(set-variable 'visible-bell t)\n(set-variable...
2008/09/30
[ "https://Stackoverflow.com/questions/154097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3508/" ]
154,109
<p>When using the ObsoleteAtribute in .Net it gives you compiler warnings telling you that the object/method/property is obsolete and somthing else should be used. I'm currently working on a project that requires a lot of refactoring an ex-employees code. I want to write a custom attribute that I can use to mark method...
[ { "answer_id": 154120, "author": "Douglas Mayle", "author_id": 8458, "author_profile": "https://Stackoverflow.com/users/8458", "pm_score": 6, "selected": false, "text": "#warning \"Do not use ABC, which is deprecated. Use XYZ instead.\"\n #pragma message ( \"text\" )\n" }, { "ans...
2008/09/30
[ "https://Stackoverflow.com/questions/154109", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17744/" ]
154,112
<p>Without running this code, identify which <code>Foo</code> method will be called:</p> <pre><code>class A { public void Foo( int n ) { Console.WriteLine( "A::Foo" ); } } class B : A { /* note that A::Foo and B::Foo are not related at all */ public void Foo( double n ) { Console.WriteLi...
[ { "answer_id": 155771, "author": "Mike Rosenblum", "author_id": 10429, "author_profile": "https://Stackoverflow.com/users/10429", "pm_score": 3, "selected": false, "text": "Public Class Form1\n Private Sub Button1_Click(ByVal sender As System.Object, _\n B...
2008/09/30
[ "https://Stackoverflow.com/questions/154112", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1965/" ]
154,119
<p>This was an interview question. Given Visual Studio 2008 and an icon saved as a .PNG file, they required the image as an embedded resource and to be used as the icon within the title bar of a form.</p> <p>I'm looking for what would have been the model answer to this question, Both (working!) code and any Visual Stu...
[ { "answer_id": 156118, "author": "Silver Dragon", "author_id": 9440, "author_profile": "https://Stackoverflow.com/users/9440", "pm_score": 7, "selected": true, "text": " public Form1()\n {\n InitializeComponent();\n Bitmap bmp = WindowsFormsApplication10.Prop...
2008/09/30
[ "https://Stackoverflow.com/questions/154119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22284/" ]
154,132
<p>What are the most common browser compatibility issues across the major desktop browsers?</p> <p>No dups please. Up-vote problems you've run into. I'm hoping for the list to self-sort. "IE sux" is not a pitfall, but a call for down-vote.</p> <p>[Edit] Yes, I know it's a poll - I'm not posting answers in this to gat...
[ { "answer_id": 155639, "author": "Adam Franco", "author_id": 15872, "author_profile": "https://Stackoverflow.com/users/15872", "pm_score": 2, "selected": false, "text": "function getOffsetTop (element) {\n var offset = 0;\n\n if (element.offsetTop)\n offset = offset + elemen...
2008/09/30
[ "https://Stackoverflow.com/questions/154132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4489/" ]
154,136
<p>In many C/C++ macros I'm seeing the code of the macro wrapped in what seems like a meaningless <code>do while</code> loop. Here are examples.</p> <pre><code>#define FOO(X) do { f(X); g(X); } while (0) #define FOO(X) if (1) { f(X); g(X); } else </code></pre> <p>I can't see what the <code>do while</code> is doing. ...
[ { "answer_id": 154138, "author": "jfm3", "author_id": 11138, "author_profile": "https://Stackoverflow.com/users/11138", "pm_score": 11, "selected": true, "text": "do ... while if ... else #define BAR(X) f(x); g(x)\n BAR(X); if ... else if (corge)\n BAR(corge);\nelse\n gralt();\n if (co...
2008/09/30
[ "https://Stackoverflow.com/questions/154136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11138/" ]
154,159
<p>Looking for good techniques to justify "great than normal" machine for developers. The company I work for buys the same underpowered $500 dollar systems for everyone, and looking for ways to prove ROI or arguments to use. Sorry, I didn't say this in the initial question, the stack is VS 2008, SQL 2005/2008. As du...
[ { "answer_id": 154229, "author": "JosephStyons", "author_id": 672, "author_profile": "https://Stackoverflow.com/users/672", "pm_score": 2, "selected": false, "text": "AnnualSavings := DeveloperCostPerHour * (AnnualWaitHours(OldPC) - AnnualWaitHours(NewPC));\n\nif AnnualSavings > (Machine...
2008/09/30
[ "https://Stackoverflow.com/questions/154159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
154,163
<p>I need to detect whether my application is running within a virtualized OS instance or not.</p> <p>I've found <A HREF="http://www.codeproject.com/KB/system/VmDetect.aspx" rel="noreferrer">an article</A> with some useful information on the topic. The same article appears in multiple places, I'm unsure of the origina...
[ { "answer_id": 154222, "author": "sven", "author_id": 46, "author_profile": "https://Stackoverflow.com/users/46", "pm_score": 7, "selected": true, "text": " int swallow_redpill () {\n unsigned char m[2+4], rpill[] = \"\\x0f\\x01\\x0d\\x00\\x00\\x00\\x00\\xc3\";\n *((unsigned*)&rpill[...
2008/09/30
[ "https://Stackoverflow.com/questions/154163", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4761/" ]
154,179
<p>I'm refactoring some code currently implemented in stored procedures to use LinqToSql (for use in training). Is it possible to use SQL functions in a linqToSql Query?</p>
[ { "answer_id": 16965126, "author": "jpierson", "author_id": 83658, "author_profile": "https://Stackoverflow.com/users/83658", "pm_score": 0, "selected": false, "text": " [Function(Name=\"SoundEx\", IsComposable = true)]\n public string SoundsLike(string input)\n {\n throw...
2008/09/30
[ "https://Stackoverflow.com/questions/154179", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2757/" ]
154,185
<p>I have heard this concept used frequently, but I don't have a really good grasp of what it is.</p>
[ { "answer_id": 154214, "author": "Firas Assaad", "author_id": 23153, "author_profile": "https://Stackoverflow.com/users/23153", "pm_score": 3, "selected": false, "text": "srcplayer = Player.new\n# marshal (store it as string)\nstr = Marshal.dump(srcplayer)\n#unmarshal (get it back)\ndest...
2008/09/30
[ "https://Stackoverflow.com/questions/154185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3208/" ]
154,204
<p>Is there any way to change the default tab size in a .NET RichTextBox? It currently seems to be set to the equivalent of 8 spaces which is kinda large for my taste.</p> <p>Edit: To clarify, I want to set the global default of "\t" displays as 4 spaces for the control. From what I can understand, the SelectionTabs...
[ { "answer_id": 154255, "author": "Scott Nichols", "author_id": 4299, "author_profile": "https://Stackoverflow.com/users/4299", "pm_score": 6, "selected": true, "text": "private void Form1_Load(object sender, EventArgs e)\n{\n richTextBox1.SelectionTabs = new int[] { 100, 200, 300, 400...
2008/09/30
[ "https://Stackoverflow.com/questions/154204", "https://Stackoverflow.com", "https://Stackoverflow.com/users/194/" ]
154,206
<p>I am trying to use a DynamicResource in Storyboard contained within a ControlTemplate.</p> <p>But, when I try to do this, I get a 'Cannot freeze this Storyboard timeline tree for use across threads' error.</p> <p>What is going on here?</p>
[ { "answer_id": 71658836, "author": "SWSBB", "author_id": 11776148, "author_profile": "https://Stackoverflow.com/users/11776148", "pm_score": 0, "selected": false, "text": "DynamicResource ControlTemplate StoryBoard Opacity Visibility ControlTemplate DynamicResources Visibility Opacity St...
2008/09/30
[ "https://Stackoverflow.com/questions/154206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22294/" ]
154,245
<p>Ok, this is a bit of a cheeky question. I want to build a simple text editor (using my own text mode screen handling). I just want a good example of data structures that can be used to represent the text buffer, and some simple examples of char/text insertion/deletion. I can handle all the rest of the code myself (f...
[ { "answer_id": 154349, "author": "Kluge", "author_id": 8752, "author_profile": "https://Stackoverflow.com/users/8752", "pm_score": 2, "selected": false, "text": "while (editing) {\n GetCharacter();\n ProcessCharacter();\n UpdateDisplay();\n}\n" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/154245", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3685/" ]
154,248
<p>I tried:</p> <pre><code>DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(f); Node mapNode = getMapNode(doc); System.out.print("\r\n elementName "+ mapNode.getNodeName());//This works fine. Element e = (Element) mapNode; //Thi...
[ { "answer_id": 154297, "author": "Garth Gilmour", "author_id": 2635682, "author_profile": "https://Stackoverflow.com/users/2635682", "pm_score": 0, "selected": false, "text": "System.out.println(doc.getFirstChild().getClass().getName());\n doc.getDocumentElement().getChildNodes();\n Node...
2008/09/30
[ "https://Stackoverflow.com/questions/154248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5653/" ]
154,256
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/105372/c-how-to-enumerate-an-enum">C#: How to enumerate an enum?</a> </p> </blockquote> <p>The subject says all. I want to use that to add the values of an enum in a combobox.</p> <p>Thanks</p> <p>vIceBerg</p...
[ { "answer_id": 154263, "author": "albertein", "author_id": 23020, "author_profile": "https://Stackoverflow.com/users/23020", "pm_score": 6, "selected": true, "text": "string[] names = Enum.GetNames (typeof(MyEnum));\n" }, { "answer_id": 154266, "author": "JosephStyons", "...
2008/09/30
[ "https://Stackoverflow.com/questions/154256", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17766/" ]
154,261
<p>I frequently run into problems of this form and haven't found a good solution yet:</p> <p>Assume we have two database tables representing an e-commerce system.</p> <pre><code>userData (userId, name, ...) orderData (orderId, userId, orderType, createDate, ...) </code></pre> <p>For all users in the system, select t...
[ { "answer_id": 154272, "author": "Patrick Desjardins", "author_id": 13913, "author_profile": "https://Stackoverflow.com/users/13913", "pm_score": 0, "selected": false, "text": "SELECT * FROM\n\"orderData\", \"userData\"\nWHERE\n\"userData\".\"userId\" =\"orderData\".\"userId\"\nAND \"or...
2008/09/30
[ "https://Stackoverflow.com/questions/154261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9304/" ]
154,262
<p>It's very easy to mark an image file to become an embedded resource however how does one access the image thereafter. Please can I have some example code?</p>
[ { "answer_id": 154276, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 4, "selected": false, "text": "YourProjectsBaseNamespace.Properties.Resources.YourImageResourceName\n" }, { "answer_id": 154278, "author": "Gulza...
2008/09/30
[ "https://Stackoverflow.com/questions/154262", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22284/" ]
154,270
<p>It's been a while since I've programmed a GUI program, so this may end up being super simple, but I can't find the solution anywhere online. </p> <p>Basically my problem is that when I maximize my program, all the things inside of the window (buttons, textboxes, etc.) stay in the same position in the window, which...
[ { "answer_id": 154359, "author": "Brian Ensink", "author_id": 1254, "author_profile": "https://Stackoverflow.com/users/1254", "pm_score": 0, "selected": false, "text": "FlowLayoutPanel TableLayoutPanel" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/154270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23875/" ]
154,295
<p>In the latest MVC preview, I'm using this route for a legacy URL:</p> <pre><code>routes.MapRoute( "Legacy-Firefox", // Route name "Firefox-Extension/", // URL with parameters new { controller = "Home", action = "Firefox", id = "" } // Parameter defaults ); </code></pre> <p>The problem is that both of these URL's w...
[ { "answer_id": 955620, "author": "Murad X", "author_id": 68294, "author_profile": "https://Stackoverflow.com/users/68294", "pm_score": 2, "selected": false, "text": "public static string RouteLinkEx(this HtmlHelper helper,string text,string routeName,RouteValueDictionary rvd,object htmlA...
2008/09/30
[ "https://Stackoverflow.com/questions/154295", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23837/" ]
154,299
<p>I am debugging a VB6 executable. The executable loads dlls and files from it's current directory, when running. When run in debugger, the current directory seems to be VB6's dir. </p> <p>How do I set working directory for VB6?</p>
[ { "answer_id": 154327, "author": "Gulzar Nazim", "author_id": 4337, "author_profile": "https://Stackoverflow.com/users/4337", "pm_score": 2, "selected": false, "text": "'Declaration\nPrivate Declare Function SetCurrentDirectory Lib \"kernel32\" _\nAlias \"SetCurrentDirectoryA\" (ByVal lp...
2008/09/30
[ "https://Stackoverflow.com/questions/154299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/814/" ]
154,305
<p>Given the following canvas:</p> <pre><code>&lt;Canvas&gt; &lt;Canvas.LayoutTransform&gt; &lt;ScaleTransform ScaleX="1" ScaleY="1" CenterX=".5" CenterY=".5" /&gt; &lt;/Canvas.LayoutTransform&gt; &lt;Button x:Name="scaleButton" Content="Scale Me" Canvas.Top="10" Canvas.Left="10" /&gt; &lt;Butt...
[ { "answer_id": 154500, "author": "Joel B Fant", "author_id": 22211, "author_profile": "https://Stackoverflow.com/users/22211", "pm_score": 2, "selected": false, "text": "Canvas Canvas <Canvas>\n <Canvas>\n <Canvas.LayoutTransform>\n <ScaleTransform ScaleX=\"1\" Scale...
2008/09/30
[ "https://Stackoverflow.com/questions/154305", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4580/" ]
154,307
<p>I just saw this behaviour and I'm a bit surprised by it...</p> <p>If I add 3 or 4 elements to a Dictionary, and then do a "For Each" to get all the keys, they appear in the same order I added them.</p> <p>The reason this surprises me is that a Dictionary is supposed to be a HashTable internally, so I expected thin...
[ { "answer_id": 976871, "author": "Dolphin", "author_id": 110672, "author_profile": "https://Stackoverflow.com/users/110672", "pm_score": 6, "selected": true, "text": "add 1\nadd 2\nadd 3\nadd 4\nremove 2\nadd 5\n" } ]
2008/09/30
[ "https://Stackoverflow.com/questions/154307", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3314/" ]
154,309
<p>One of our programs is sometimes getting an <code>OutOfMemory</code> error on one user's machine, but of course not when I'm testing it. I just ran it with JProfiler (on a 10 day evaluation license because I've never used it before), and filtering on our code prefix, the biggest chunk both in total size and number ...
[ { "answer_id": 154454, "author": "18Rabbit", "author_id": 12662, "author_profile": "https://Stackoverflow.com/users/12662", "pm_score": 3, "selected": false, "text": "Map<String, Object> map = new HashMap<String, Object>(); // 1 Object\nString name = \"test\"; // 2 Objects\nO...
2008/09/30
[ "https://Stackoverflow.com/questions/154309", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3333/" ]
154,314
<p>I've found a couple of references (<a href="http://www.javapractices.com/topic/TopicAction.do?Id=23" rel="noreferrer">for example</a>) that suggest using <code>final</code> as much as possible and I'm wondering how important that is. This is mainly in the the context of method parameters and local variables, not fin...
[ { "answer_id": 154510, "author": "Alex Miller", "author_id": 7671, "author_profile": "https://Stackoverflow.com/users/7671", "pm_score": 9, "selected": true, "text": "if else" }, { "answer_id": 155881, "author": "Sam Stokes", "author_id": 20131, "author_profile": "htt...
2008/09/30
[ "https://Stackoverflow.com/questions/154314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23669/" ]
154,332
<p>I'm using <strong>mysqldump</strong> to replicate a database between accounts on a particular machine. Everything works just great, except when we get to our defined views. Because the dump includes a line like the following ...</p> <pre><code>/*!50013 DEFINER=`user_a`@`localhost` SQL SECURITY DEFINER */ </code><...
[ { "answer_id": 313854, "author": "user40237", "author_id": 40237, "author_profile": "https://Stackoverflow.com/users/40237", "pm_score": 6, "selected": true, "text": "mysqldump -uuser1 -ppassword1 database1 > backup.sql\n\nsed '/^\\/\\*\\!50013 DEFINER/d' backup.sql > backup_without_5001...
2008/09/30
[ "https://Stackoverflow.com/questions/154332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21632/" ]
154,365
<p>I need to find occurrences of ~ 25 000 words within a text. What is the most suitable algorithm/library for this purpose?</p> <p>target language is C++</p>
[ { "answer_id": 154381, "author": "Justin R.", "author_id": 4593, "author_profile": "https://Stackoverflow.com/users/4593", "pm_score": 4, "selected": false, "text": "int capacity = 2000000; // the number of items you expect to add to the filter\nFilter<string> filter = new Filter<string>...
2008/09/30
[ "https://Stackoverflow.com/questions/154365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127878/" ]
154,372
<p>How do I get a list of all the tables defined for the database when using active record?</p>
[ { "answer_id": 155524, "author": "Jay Stramel", "author_id": 3547, "author_profile": "https://Stackoverflow.com/users/3547", "pm_score": 2, "selected": false, "text": "Dir[\"app/models/*.rb\"].each do |file_path|\n require file_path # Make sure that the model has been loaded.\n\n basen...
2008/09/30
[ "https://Stackoverflow.com/questions/154372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3547/" ]
154,387
<p>I'm trying to get something very subtle to work, it looks pretty awful right now. I'm trying to paint the background of a TGroupBox which I have overloaded the paint function of so that the corners are show through to their parent object. I've got a bunch of nested group boxes that look very decent without XPThemes...
[ { "answer_id": 154470, "author": "JosephStyons", "author_id": 672, "author_profile": "https://Stackoverflow.com/users/672", "pm_score": 2, "selected": true, "text": " object GroupBox1: TGroupBox\n Left = 64\n Top = 56\n Width = 481\n Height = 361\n Margins.Left = 10\n ...
2008/09/30
[ "https://Stackoverflow.com/questions/154387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1765/" ]
154,411
<p>I am having trouble getting Team Build to execute my MbUnit unit tests. I have tried to edit TFSBuild.proj and added the following parts:</p> <pre><code>&lt;Project ...&gt; &lt;UsingTask TaskName="MbUnit.MSBuild.Tasks.MbUnit" AssemblyFile="path_to_MbUnit.MSBuild.Tasks.dll" /&gt; ... ... &lt;ItemGroup&gt; ...
[ { "answer_id": 154807, "author": "Martin Woodward", "author_id": 6438, "author_profile": "https://Stackoverflow.com/users/6438", "pm_score": 0, "selected": false, "text": " <PropertyGroup>\n <TestDependsOn>\n $(TestDependsOn);\n CallMbUnitTests;\n </TestDependsOn>\n </P...
2008/09/30
[ "https://Stackoverflow.com/questions/154411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4582/" ]
154,427
<p>What's the object type returned by Datepicker? Supposing I have the following:</p> <pre><code>$("#txtbox").datepicker({ onClose: function(date){ //something } }); </code></pre> <p>What is <code>date</code>? I'm interested in reading the date object from another Datepicker for comparison, someth...
[ { "answer_id": 157441, "author": "ConroyP", "author_id": 2287, "author_profile": "https://Stackoverflow.com/users/2287", "pm_score": 3, "selected": false, "text": "Date datePicker var myDate=new Date();\nmyDate.setFullYear(2010,0,14);\nvar today = new Date();\n\nif (myDate>today)\n{\n ...
2008/09/30
[ "https://Stackoverflow.com/questions/154427", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2024/" ]
154,430
<p>I need to store encrypted data (few small strings) between application runs. I do not want the user to provide a passphrase every time (s)he launches the application. I.e. after all it goes down to storing securely the encryption key(s).</p> <p>I was looking into RSACryptoServiceProvider and using PersistentKeyInCs...
[ { "answer_id": 154687, "author": "Michael Petrotta", "author_id": 23897, "author_profile": "https://Stackoverflow.com/users/23897", "pm_score": 6, "selected": true, "text": "byte[] plaintextBytes = GetDataToProtect();\nbyte[] encodedBytes = ProtectedData.Protect(plaintextBytes, null, Dat...
2008/09/30
[ "https://Stackoverflow.com/questions/154430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8220/" ]
154,434
<p>How do you get spreadsheet data in Excel to recalculate itself from within VBA, without the kluge of just changing a cell value?</p>
[ { "answer_id": 154439, "author": "Lance Roberts", "author_id": 13295, "author_profile": "https://Stackoverflow.com/users/13295", "pm_score": 7, "selected": true, "text": "ActiveSheet.EnableCalculation = False \nActiveSheet.EnableCalculation = True \n .Calculate() .CalculateFull()" },...
2008/09/30
[ "https://Stackoverflow.com/questions/154434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13295/" ]
154,441
<p>I need to test some HTTP interaction with a client I'd rather not modify. What I need to test is the behavior of the server when the client's requests include a certain, static header.</p> <p>I'm thinking the easiest way to run this test is to set up an HTTP proxy that inserts the header on every request. What woul...
[ { "answer_id": 154641, "author": "Peter Hilton", "author_id": 2670, "author_profile": "https://Stackoverflow.com/users/2670", "pm_score": 7, "selected": true, "text": "NameVirtualHost *\n<VirtualHost *>\n <Proxy http://127.0.0.1:8080/*>\n Allow from all\n </Proxy>\n <LocationM...
2008/09/30
[ "https://Stackoverflow.com/questions/154441", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3518/" ]
154,443
<p>Can I run the python interpreter without generating the compiled .pyc files?</p>
[ { "answer_id": 154617, "author": "Constantin", "author_id": 20310, "author_profile": "https://Stackoverflow.com/users/20310", "pm_score": 9, "selected": true, "text": "sys.dont_write_bytecode python -B prog.py .pyc __pycache__ PYTHONDONTWRITEBYTECODE=1" }, { "answer_id": 154640, ...
2008/09/30
[ "https://Stackoverflow.com/questions/154443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1476/" ]
154,446
<p>I am trying to save data to a database on a button push, but the variables seem to be private by the nature of where they are defined. I have tried to move where they are defined, but this seems to produce other errors.</p> <p>Given a fix, why was it fixed that way?</p> <p>The code follows.</p> <pre><code>namespa...
[ { "answer_id": 154458, "author": "Franci Penov", "author_id": 17028, "author_profile": "https://Stackoverflow.com/users/17028", "pm_score": 0, "selected": false, "text": "namespace enable\n{ \n public partial class Form1 : Form\n {\n public Form1()\n {\n ...
2008/09/30
[ "https://Stackoverflow.com/questions/154446", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19802/" ]
154,463
<p>I'm using SharpZipLib version 0.85.5 to unzip files. My code has been working nicely for a couple of months until I found a ZIP file that it doesn't like.</p> <pre><code>ICSharpCode.SharpZipLib.Zip.ZipException: End of extra data at ICSharpCode.SharpZipLib.Zip.ZipExtraData.ReadCheck(Int32 length) in C:\C#\...
[ { "answer_id": 155204, "author": "Vivek", "author_id": 7418, "author_profile": "https://Stackoverflow.com/users/7418", "pm_score": 0, "selected": false, "text": "public static void UnzipFile(string sourcePath, string targetDirectory)\n{\n try\n {\n FastZip fastZip = new Fast...
2008/09/30
[ "https://Stackoverflow.com/questions/154463", "https://Stackoverflow.com", "https://Stackoverflow.com/users/357/" ]