qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
127,001
<p>I need to compress portions of our application's network traffic for performance. I presume this means I need to stay away from some of the newer algorithms like bzip2, which I think I have heard is slower.</p>
[ { "answer_id": 127011, "author": "Steve g", "author_id": 12092, "author_profile": "https://Stackoverflow.com/users/12092", "pm_score": 5, "selected": true, "text": ".addRequestHeader(\"Accept-Encoding\",\"gzip,deflate\");\n" } ]
2008/09/24
[ "https://Stackoverflow.com/questions/127001", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18103/" ]
127,006
<p>Could anyone recommend to me a good online guide to PowerPoint VBA? Also, does anyone has advice on how to record a macro in PowerPoint? </p>
[ { "answer_id": 7265123, "author": "Bruno Leite", "author_id": 858857, "author_profile": "https://Stackoverflow.com/users/858857", "pm_score": 2, "selected": false, "text": "dim ppt as powerpoint.Presentation\n\nset ppt =activepresentation\n Private WithEvents ppt As PowerPoint.Applicatio...
2008/09/24
[ "https://Stackoverflow.com/questions/127006", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
127,009
<p>Suppose I want to implement in C++ a data-structure to store oriented graphs. Arcs will be stored in Nodes thanks to STL containers. I'd like users to be able to iterate over the arcs of a node, in an STL-like way.</p> <p>The issue I have is that I don't want to expose in the Node class (that will actually be an a...
[ { "answer_id": 127231, "author": "zvrba", "author_id": 2583, "author_profile": "https://Stackoverflow.com/users/2583", "pm_score": 3, "selected": false, "text": "class Arc;\nclass Node {\nprivate:\n std::vector<Arc*> incoming_;\npublic:\n typedef std::vector<Arc*>::iterator iterator;\n...
2008/09/24
[ "https://Stackoverflow.com/questions/127009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4177/" ]
127,027
<p>I use a byte to store some flag like <code>10101010</code>, and I would like to know how to verify that a specific bit is at <code>1</code> or <code>0</code>.</p>
[ { "answer_id": 127049, "author": "Tnilsson", "author_id": 4165, "author_profile": "https://Stackoverflow.com/users/4165", "pm_score": 1, "selected": false, "text": "byte THIRDBIT = 4; // 4 = 00000100 i.e third bit is set\n\nint isThirdBitSet(byte in) {\n return in & THIRDBIT; // Returns ...
2008/09/24
[ "https://Stackoverflow.com/questions/127027", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21386/" ]
127,029
<p>Our application takes significantly more time to launch after a reboot (cold start) than if it was already opened once (warm start). </p> <p>Most (if not all) the difference seems to come from loading DLLs, when the DLLs' are in cached memory pages they load much faster. We tried using <a href="http://mypchell.com/...
[ { "answer_id": 653865, "author": "Baiyan Huang", "author_id": 70198, "author_profile": "https://Stackoverflow.com/users/70198", "pm_score": 1, "selected": false, "text": "#pragma code_seg(\".startUp\")\n //...\n#pragma code_seg\n\n#pragma data_seg(\".startUp\")\n //...\n#pragma data_seg\...
2008/09/24
[ "https://Stackoverflow.com/questions/127029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3848/" ]
127,040
<p>In Internet Explorer I can use the clipboardData object to access the clipboard. How can I do that in FireFox, Safari and/or Chrome?</p>
[ { "answer_id": 127064, "author": "ine", "author_id": 4965, "author_profile": "https://Stackoverflow.com/users/4965", "pm_score": 6, "selected": false, "text": "function copyIntoClipboard(text) {\n\n var flashId = 'flashId-HKxmj5';\n\n /* Replace this with your clipboard.swf locatio...
2008/09/24
[ "https://Stackoverflow.com/questions/127040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11492/" ]
127,042
<p>I've found an <a href="http://chrison.net/UACElevationInManagedCodeStartingElevatedCOMComponents.aspx" rel="noreferrer">article</a> on how to elevate a COM object written in C++ by calling <code>CoCreateInstanceAsAdmin</code>. But what I have not been able to find or do, is a way to implement a component of my .NET...
[ { "answer_id": 311824, "author": "Ryan", "author_id": 20198, "author_profile": "https://Stackoverflow.com/users/20198", "pm_score": 3, "selected": false, "text": "[return: MarshalAs(UnmanagedType.Interface)]\nstatic internal object LaunchElevatedCOMObject(Guid Clsid, Guid InterfaceID)\n ...
2008/09/24
[ "https://Stackoverflow.com/questions/127042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4597/" ]
127,055
<p>Is there a way to determine how many capture groups there are in a given regular expression?</p> <p>I would like to be able to do the follwing:</p> <pre><code>def groups(regexp, s): """ Returns the first result of re.findall, or an empty default &gt;&gt;&gt; groups(r'(\d)(\d)(\d)', '123') ('1', '2', '...
[ { "answer_id": 127089, "author": "rslite", "author_id": 15682, "author_profile": "https://Stackoverflow.com/users/15682", "pm_score": 1, "selected": false, "text": "def num_of_groups(regexp):\n rg = re.compile(r'(?<!\\\\)\\(')\n return len(rg.findall(regexp))\n" }, { "answe...
2008/09/24
[ "https://Stackoverflow.com/questions/127055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7581/" ]
127,076
<p>In ASP.NET, if I databind a gridview with a array of objects lets say , how can I retrieve and use foo(index) when the user selects the row?</p> <p>i.e.</p> <pre><code>dim fooArr() as foo; gv1.datasource = fooArr; gv1.databind(); </code></pre> <p>On Row Select</p> <pre><code>Private Sub gv1_RowCommand(ByVal sen...
[ { "answer_id": 127114, "author": "Stephen Wrighton", "author_id": 7516, "author_profile": "https://Stackoverflow.com/users/7516", "pm_score": 0, "selected": false, "text": "dim x as object = foo(e.row.selectedIndex)\n" }, { "answer_id": 127123, "author": "kristian", "auth...
2008/09/24
[ "https://Stackoverflow.com/questions/127076", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11802/" ]
127,095
<p>I'm used to Atlas where the preferred (from what I know) method is to use XML comments such as:</p> <pre><code>/// &lt;summary&gt; /// Method to calculate distance between two points /// &lt;/summary&gt; /// /// &lt;param name=&quot;pointA&quot;&gt;First point&lt;/param&gt; /// &lt;param name=&quot;pointB&quot;&gt...
[ { "answer_id": 127106, "author": "Chris MacDonald", "author_id": 18146, "author_profile": "https://Stackoverflow.com/users/18146", "pm_score": 8, "selected": true, "text": "/**\n * Shape is an abstract base class. It is defined simply\n * to have something to inherit from for geometric \...
2008/09/24
[ "https://Stackoverflow.com/questions/127095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6350/" ]
127,116
<p>I was wondering if there was an easy way in SQL to convert an integer to its binary representation and then store it as a varchar.</p> <p>For example 5 would be converted to "101" and stored as a varchar.</p>
[ { "answer_id": 127371, "author": "Sean", "author_id": 5446, "author_profile": "https://Stackoverflow.com/users/5446", "pm_score": 5, "selected": true, "text": "declare @intvalue int\nset @intvalue=5\n\ndeclare @vsresult varchar(64)\ndeclare @inti int\nselect @inti = 64, @vsresult = ''\nw...
2008/09/24
[ "https://Stackoverflow.com/questions/127116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4779/" ]
127,124
<p>How do you resolve an NT style device path, e.g. <code>\Device\CdRom0</code>, to its logical drive letter, e.g. <code>G:\</code> ?</p> <p>Edit: A Volume Name isn't the same as a Device Path so unfortunately <code>GetVolumePathNamesForVolumeName()</code> won't work.</p>
[ { "answer_id": 132048, "author": "RichS", "author_id": 6247, "author_profile": "https://Stackoverflow.com/users/6247", "pm_score": 4, "selected": true, "text": "typedef basic_string<TCHAR> tstring;\ntypedef map<tstring, tstring> HardDiskCollection;\n\nvoid Initialise( HardDiskCollection ...
2008/09/24
[ "https://Stackoverflow.com/questions/127124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14260/" ]
127,137
<p>Does anyone know a good online resource for example of R code?</p> <p>The programs do not have to be written for illustrative purposes, I am really just looking for some places where a bunch of R code has been written to give me a sense of the syntax and capabilities of the language?</p> <p><strong>Edit:</strong> ...
[ { "answer_id": 574365, "author": "Chang Chung", "author_id": 69117, "author_profile": "https://Stackoverflow.com/users/69117", "pm_score": 3, "selected": false, "text": "r" } ]
2008/09/24
[ "https://Stackoverflow.com/questions/127137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/277/" ]
127,144
<p>i was wondering how you deal with permalinks on international sites. By permalink i mean some link which is unique and human readable. </p> <p>E.g. for english phrases its no problem e.g. <strong>/product/some-title/</strong></p> <p>but what do you do if the product title is in e.g chinese language?? how do you de...
[ { "answer_id": 127295, "author": "ConroyP", "author_id": 2287, "author_profile": "https://Stackoverflow.com/users/2287", "pm_score": 2, "selected": false, "text": "<DOMAIN>/<LANGUAGE>/DIR/<PRODUCT_TRANSLATED> http://www.example.com/en/products/cat/\nhttp://www.example.com/fr/products/cha...
2008/09/24
[ "https://Stackoverflow.com/questions/127144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21672/" ]
127,151
<p>This is an exercise for the CS guys to shine with the theory.</p> <p>Imagine you have 2 containers with elements. Folders, URLs, Files, Strings, it really doesn't matter.</p> <p>What is AN algorithm to calculate the added and the removed?</p> <p><strong>Notice</strong>: If there are many ways to solve this proble...
[ { "answer_id": 127207, "author": "Joe Skora", "author_id": 14057, "author_profile": "https://Stackoverflow.com/users/14057", "pm_score": 1, "selected": false, "text": "sort left-list and right-list\nadds = {}\ndeletes = {}\nget first right-item from right-list\nget first left-item from l...
2008/09/24
[ "https://Stackoverflow.com/questions/127151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8167/" ]
127,156
<p>How do I check if an index exists on a table field in MySQL?</p> <p>I've needed to Google this multiple times, so I'm sharing my Q/A.</p>
[ { "answer_id": 127157, "author": "Sean", "author_id": 5446, "author_profile": "https://Stackoverflow.com/users/5446", "pm_score": 8, "selected": true, "text": "SHOW INDEX SHOW INDEX FROM [tablename]\n" }, { "answer_id": 127164, "author": "J.J.", "author_id": 21204, "a...
2008/09/24
[ "https://Stackoverflow.com/questions/127156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5446/" ]
127,188
<p>Can you explain STA and MTA in your own words?</p> <p>Also, what are apartment threads and do they pertain only to COM? If so, why?</p>
[ { "answer_id": 127340, "author": "Mike Dimmick", "author_id": 6970, "author_profile": "https://Stackoverflow.com/users/6970", "pm_score": 8, "selected": false, "text": "ThreadingModel ThreadingModel Apartment Free Free Both [STAThread] Apartment" }, { "answer_id": 68271080, "...
2008/09/24
[ "https://Stackoverflow.com/questions/127188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19490/" ]
127,190
<p>I'm learning Haskell in the hope that it will help me get closer to functional programming. Previously, I've mostly used languages with C-like syntax, like C, Java, and D.</p> <p>I have a little question about the coding style of an <code>if</code>/<code>else</code> control block used by the <a href="http://en.wiki...
[ { "answer_id": 130220, "author": "mattiast", "author_id": 8272, "author_profile": "https://Stackoverflow.com/users/8272", "pm_score": 3, "selected": false, "text": "doGuessing num = do\n putStrLn \"Enter your guess:\"\n guess <- getLine\n case (read guess) of\n g | g < nu...
2008/09/24
[ "https://Stackoverflow.com/questions/127190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/242644/" ]
127,205
<p>I have a constructor like as follows:</p> <pre><code>public Agent(){ this.name = "John"; this.id = 9; this.setTopWorldAgent(this, "Top_World_Agent", true); } </code></pre> <p>I'm getting a null pointer exception here in the method call. It appears to be because I'm using 'this' as an argument in the ...
[ { "answer_id": 127219, "author": "sblundy", "author_id": 4893, "author_profile": "https://Stackoverflow.com/users/4893", "pm_score": 0, "selected": false, "text": "this this" }, { "answer_id": 127245, "author": "Hank Gay", "author_id": 4203, "author_profile": "https:/...
2008/09/24
[ "https://Stackoverflow.com/questions/127205", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
127,233
<p>This is in C#, I have a class that I am using from some else's DLL. It does not implement IEnumerable but has 2 methods that pass back a IEnumerator. Is there a way I can use a foreach loop on these. The class I am using is sealed.</p>
[ { "answer_id": 127254, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 5, "selected": true, "text": "foreach IEnumerable GetEnumerator MoveNext Current class EnumerableWrapper {\n private readonly TheObjectType obj;\...
2008/09/24
[ "https://Stackoverflow.com/questions/127233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3208/" ]
127,241
<p>We are developing a .NET 2.0 winform application. The application needs to access <a href="http://ws.lokad.com/" rel="nofollow noreferrer">Web Services</a>. Yet, we are encountering issues with users behind proxies.</p> <p>Popular windows backup applications (think <a href="http://mozy.com/" rel="nofollow noreferre...
[ { "answer_id": 127338, "author": "MusiGenesis", "author_id": 14606, "author_profile": "https://Stackoverflow.com/users/14606", "pm_score": 4, "selected": true, "text": "<configuration>\n <system.net>\n <defaultProxy>\n <proxy autoDetect=\"true\" />\n </defaultProxy>\n </syst...
2008/09/24
[ "https://Stackoverflow.com/questions/127241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18858/" ]
127,258
<p>Greetings!</p> <p>I'm working on wrapping my head around LINQ. If I had some XML such as this loaded into an XDocument object:</p> <pre><code>&lt;Root&gt; &lt;GroupA&gt; &lt;Item attrib1="aaa" attrib2="000" attrib3="true" /&gt; &lt;/GroupA&gt; &lt;GroupB&gt; &lt;Item attrib1="bbb" attri...
[ { "answer_id": 127301, "author": "Chris Wenham", "author_id": 5548, "author_profile": "https://Stackoverflow.com/users/5548", "pm_score": 2, "selected": false, "text": "var results = from group in l_theDoc.Root.Elements(groupName)\n select new\n {\n ...
2008/09/24
[ "https://Stackoverflow.com/questions/127258", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27870/" ]
127,283
<p>I'm having an annoying problem registering a javascript event from inside a user control within a formview in an Async panel. I go to my formview, and press a button to switch into insert mode. This doesn't do a full page postback. Within insert mode, my user control's page_load event should then register a javascr...
[ { "answer_id": 1482753, "author": "Christian", "author_id": 179649, "author_profile": "https://Stackoverflow.com/users/179649", "pm_score": 0, "selected": false, "text": "ScriptManager.RegisterClientScriptBlock(MyBase.Page, Me.[GetType](),\n (\"dialogJavascript\" + th...
2008/09/24
[ "https://Stackoverflow.com/questions/127283", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17885/" ]
127,290
<p>Is there a side effect in doing this:</p> <p>C code:</p> <pre><code>struct foo { int k; }; int ret_foo(const struct foo* f){ return f.k; } </code></pre> <p>C++ code:</p> <pre><code>class bar : public foo { int my_bar() { return ret_foo( (foo)this ); } }; </code></pre> <p>There's an...
[ { "answer_id": 127312, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 2, "selected": false, "text": "foo* x = new bar();\ndelete x;\n new" }, { "answer_id": 127358, "author": "Airsource Ltd", "author_id...
2008/09/24
[ "https://Stackoverflow.com/questions/127290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21648/" ]
127,316
<p>I first got an error usign the code below, explaining that "DataGridLinkButton' must be placed inside a form tag with runat=server."</p> <p>Now I've tried setting AllowSorting to false, as well as removing the sort expression from each column, with the same error. Then I tried creating a new, plain, DataGrid, with...
[ { "answer_id": 127334, "author": "Erikk Ross", "author_id": 18772, "author_profile": "https://Stackoverflow.com/users/18772", "pm_score": 2, "selected": true, "text": "public override void VerifyRenderingInServerForm(Control control)\n {\n }\n" } ]
2008/09/24
[ "https://Stackoverflow.com/questions/127316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8741/" ]
127,318
<p>I want to programmatically edit file content using windows command line (<a href="http://en.wikipedia.org/wiki/Windows_command_line" rel="noreferrer">cmd.exe</a>). In *nix there is <a href="http://en.wikipedia.org/wiki/Sed" rel="noreferrer">sed</a> for this tasks. Is there any useful native equivalent in windows?</p...
[ { "answer_id": 127567, "author": "b w", "author_id": 4126, "author_profile": "https://Stackoverflow.com/users/4126", "pm_score": 7, "selected": false, "text": "sed sed grep -z cscript //NoLogo sed.vbs s/(oldpat)/(newpat)/ < inpfile.txt > outfile.txt\n sed Dim pat, patparts, rxp, inp\npat...
2008/09/24
[ "https://Stackoverflow.com/questions/127318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2361/" ]
127,328
<p>I have a class that defines the names of various constants, e.g.</p> <pre><code>class Constants { public static final String ATTR_CURRENT_USER = "current.user"; } </code></pre> <p>I would like to use these constants within a JSP <strong>without</strong> using Scriptlet code such as:</p> <pre><code>&lt;%@ page...
[ { "answer_id": 127442, "author": "ncgz", "author_id": 12905, "author_profile": "https://Stackoverflow.com/users/12905", "pm_score": 2, "selected": false, "text": "servletContext.setAttribute(\"Constants\", com.example.Constants);\n <c:out value=\"${Constants.ATTR_CURRENT_USER}\"/>\n" }...
2008/09/24
[ "https://Stackoverflow.com/questions/127328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2648/" ]
127,336
<p>Outlook saves its client-side rule definitions in a binary blob in a hidden message in the Inbox folder of the default store for a profile. The hidden message is named <em>"Outlook Rules Organizer"</em> with a message class <code>IPM.RuleOrganizer</code>. The binary blob is saved in property 0x6802. The same binary ...
[ { "answer_id": 127442, "author": "ncgz", "author_id": 12905, "author_profile": "https://Stackoverflow.com/users/12905", "pm_score": 2, "selected": false, "text": "servletContext.setAttribute(\"Constants\", com.example.Constants);\n <c:out value=\"${Constants.ATTR_CURRENT_USER}\"/>\n" }...
2008/09/24
[ "https://Stackoverflow.com/questions/127336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21685/" ]
127,363
<p>I need to create S/MIME messages using C# (as specified in RFC 2633, "S/MIME Version 3 message specification", and RFC 3335). The only S/MIME library I can find is a commercial library (<a href="http://www.example-code.com/csharp/smime.asp" rel="noreferrer">http://www.example-code.com/csharp/smime.asp</a>), which is...
[ { "answer_id": 18392068, "author": "Bert Johnson", "author_id": 2709133, "author_profile": "https://Stackoverflow.com/users/2709133", "pm_score": 2, "selected": false, "text": "// Instantiate a new SMTP connection to Gmail using TLS/SSL protection.\nSmtpClient smtpClient = new SmtpClient...
2008/09/24
[ "https://Stackoverflow.com/questions/127363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21002/" ]
127,386
<p>In Visual Studio, we've all had "baadf00d", have seen seen "CC" and "CD" when inspecting variables in the debugger in C++ during run-time.</p> <p>From what I understand, "CC" is in DEBUG mode only to indicate when a memory has been new() or alloc() and unitilialized. While "CD" represents delete'd or free'd memory...
[ { "answer_id": 48255562, "author": "Glenn Slayden", "author_id": 147511, "author_profile": "https://Stackoverflow.com/users/147511", "pm_score": 3, "selected": false, "text": "0xCC 0xCD 0xCC INT 0xCD 0xCC INT 3 INT 3 INT 0xCD 0xCD 0x03 INT 3 0xCC 0xCDCDCDCD CD CD CD CC CD CC INT 3 INT 20...
2008/09/24
[ "https://Stackoverflow.com/questions/127386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7234/" ]
127,389
<p>Today I stumbled about a Problem which seems to be a bug in the Zend-Framework. Given the following route:</p> <pre><code>&lt;test&gt; &lt;route&gt;citytest/:city&lt;/route&gt; &lt;defaults&gt; &lt;controller&gt;result&lt;/controller&gt; &lt;action&gt;test&lt;/action&gt; &lt;/defaults&gt...
[ { "answer_id": 127818, "author": "troelskn", "author_id": 18180, "author_profile": "https://Stackoverflow.com/users/18180", "pm_score": 1, "selected": false, "text": "ü mysite.local/citytest/M%C3%BCnchen" }, { "answer_id": 144192, "author": "Stefan Gehrig", "author_id": 1...
2008/09/24
[ "https://Stackoverflow.com/questions/127389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18606/" ]
127,391
<p>I was asked a question in C last night and I did not know the answer since I have not used C much since college so I thought maybe I could find the answer here instead of just forgetting about it.</p> <p>If a person has a define such as:</p> <pre><code>#define count 1 </code></pre> <p>Can that person find the var...
[ { "answer_id": 127402, "author": "Remo.D", "author_id": 16827, "author_profile": "https://Stackoverflow.com/users/16827", "pm_score": 0, "selected": false, "text": "#define count 1\n if (x > count) ...\n if (x > 1) ...\n" }, { "answer_id": 127407, "author": "Cade Roux", "...
2008/09/24
[ "https://Stackoverflow.com/questions/127391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16354/" ]
127,395
<p>Is there a way when creating web services to specify the types to use? Specifically, I want to be able to use the same type on both the client and server to reduce duplication of code.</p> <p>Over simplified example:</p> <pre><code> public class Name { public string FirstName {get; set;} pub...
[ { "answer_id": 127910, "author": "MusiGenesis", "author_id": 14606, "author_profile": "https://Stackoverflow.com/users/14606", "pm_score": 0, "selected": false, "text": "public struct Whatever\n{\n public string A;\n public int B;\n}\n [WebMethod]\npublic Whatever GiveMeWhatever()\...
2008/09/24
[ "https://Stackoverflow.com/questions/127395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9539/" ]
127,411
<p>Is there a project that maintains annotations for patterns?</p> <p><p>For example, when I write a builder, I want to mark it with <code>@Builder</code>.</p> <p><p>Annotating in this way immediately provides a clear idea of what the code implements. Also, the Javadoc of the <code>@Builder</code> annotation can refe...
[ { "answer_id": 1543918, "author": "elhoim", "author_id": 171469, "author_profile": "https://Stackoverflow.com/users/171469", "pm_score": 2, "selected": false, "text": "Serializable" }, { "answer_id": 1843217, "author": "Martin Harris", "author_id": 224306, "author_pro...
2008/09/24
[ "https://Stackoverflow.com/questions/127411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13940/" ]
127,412
<p>Is there a indexing plugin for GDS that allows for source code search? I see some for specific types (Java, C++, ...) and one for "any text". These are nice, but I would like one that allows for many/configurable extensions (HTML, CSS, JS, VB, C#, Java, Python, ...). A huge bonus would be to allow for syntax high...
[ { "answer_id": 2416289, "author": "HaveAGuess", "author_id": 57344, "author_profile": "https://Stackoverflow.com/users/57344", "pm_score": 0, "selected": false, "text": "<YOUR SEARCH> filetype:java under:\"C:\\hft\\trunk\"\n" } ]
2008/09/24
[ "https://Stackoverflow.com/questions/127412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4231/" ]
127,413
<p>I have user control named DateTimeUC which has two textboxes on its markup:</p> <pre><code>&lt;asp:TextBox ID="dateTextBox" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:TextBox ID="timeTextBox" runat="server"&gt;&lt;/asp:TextBox&gt; </code></pre> <p>I am dynamically creating this control in another user control:...
[ { "answer_id": 127438, "author": "TcKs", "author_id": 20382, "author_profile": "https://Stackoverflow.com/users/20382", "pm_score": 4, "selected": true, "text": "LoadControl( \"your_user_control_app_relative_path.ascx\" )" }, { "answer_id": 127499, "author": "Briggie Smalls",...
2008/09/24
[ "https://Stackoverflow.com/questions/127413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31505/" ]
127,426
<p>I have defined an interface in C++, i.e. a class containing only pure virtual functions.</p> <p>I want to explicitly forbid users of the interface to delete the object through a pointer to the interface, so I declared a protected and non-virtual destructor for the interface, something like:</p> <pre><code>class IT...
[ { "answer_id": 127486, "author": "Adam Rosenfield", "author_id": 9530, "author_profile": "https://Stackoverflow.com/users/9530", "pm_score": 0, "selected": false, "text": "ITest delete" }, { "answer_id": 127557, "author": "bk1e", "author_id": 8090, "author_profile": "...
2008/09/24
[ "https://Stackoverflow.com/questions/127426", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15622/" ]
127,459
<p>I need to be able to change the users' password through a web page (in a controlled environment). So, for that, I'm using this code:</p> <pre><code>&lt;?php $output = shell_exec("sudo -u dummy passwd testUser testUserPassword"); $output2 = shell_exec("dummyPassword"); echo $output; echo $output2; echo "done"; ?&gt;...
[ { "answer_id": 127495, "author": "Jeremy", "author_id": 1114, "author_profile": "https://Stackoverflow.com/users/1114", "pm_score": 2, "selected": false, "text": "shell_exec dummyPassword" }, { "answer_id": 127574, "author": "Jeremy DeGroot", "author_id": 20820, "auth...
2008/09/24
[ "https://Stackoverflow.com/questions/127459", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2019426/" ]
127,461
<p>A coworker of mine has this problem, apparently after installing Re#, which seems totally irrelevant. But perhaps it isn't.</p> <p>Could not load file or assembly "SqlManagerUi, Version=9.0.242.0..." or one of its dependencies. The module was expected to contain an assembly manifest. (mscorlib).</p> <p>Why is this...
[ { "answer_id": 56600620, "author": "Fabricio Leite", "author_id": 6780871, "author_profile": "https://Stackoverflow.com/users/6780871", "pm_score": 3, "selected": false, "text": "C:\\Program Files (x86)\\Microsoft SQL Server Management Studio 18\\Common7\\IDE\\Ssms.exe.config <NgenBind_O...
2008/09/24
[ "https://Stackoverflow.com/questions/127461", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21692/" ]
127,477
<p>In WPF you can setup validation based on errors thrown in your Data Layer during Data Binding using the <code>ExceptionValidationRule</code> or <code>DataErrorValidationRule</code>.</p> <p>Suppose you had a bunch of controls set up this way and you had a Save button. When the user clicks the Save button, you need ...
[ { "answer_id": 128346, "author": "aogan", "author_id": 4795, "author_profile": "https://Stackoverflow.com/users/4795", "pm_score": 6, "selected": false, "text": "public static class Validator\n{\n\n public static bool IsValid(DependencyObject parent)\n {\n // Validate all th...
2008/09/24
[ "https://Stackoverflow.com/questions/127477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4407/" ]
127,492
<p>I have an EAR file that contains two WARs, war1.war and war2.war. My application.xml file looks like this:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:...
[ { "answer_id": 127548, "author": "Joseph Daigle", "author_id": 507, "author_profile": "https://Stackoverflow.com/users/507", "pm_score": 0, "selected": false, "text": "http://localhost:8080// http://localhost:8080/ <context-root>.</context-root>" }, { "answer_id": 127566, "au...
2008/09/24
[ "https://Stackoverflow.com/questions/127492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13455/" ]
127,498
<p>What guidelines can you give for rich HTML formatting in emails while maintaining good visual stability across many clients and web based email interfaces?</p> <p>An unrelated answer on a question on Stack Overflow suggested:</p> <p><a href="http://www.campaignmonitor.com/blog/archives/2008/05/2008_email_design_gu...
[ { "answer_id": 127576, "author": "Dan", "author_id": 17121, "author_profile": "https://Stackoverflow.com/users/17121", "pm_score": 6, "selected": false, "text": "style float <a href=\"http://domain.tld\">www.someotherdomain.tld</a>" }, { "answer_id": 127706, "author": "jj33",...
2008/09/24
[ "https://Stackoverflow.com/questions/127498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2105/" ]
127,514
<p>I am writing a program which has two panes (via <code>CSplitter</code>), however I am having problems figuring out out to resize the controls in each frame. For simplicity, can someone tell me how I would do it for a basic frame with a single <code>CEdit</code> control? </p> <p>I'm fairly sure it is to do with the ...
[ { "answer_id": 127520, "author": "Rob", "author_id": 9236, "author_profile": "https://Stackoverflow.com/users/9236", "pm_score": 4, "selected": true, "text": "void CMyPane::OnSize(UINT nType, int cx, int cy)\n{\n m_wndEdit.SetWindowPos(NULL, 0, 0, cx, cy, SWP_NOMOVE | SWP_NOACTIVATE |...
2008/09/24
[ "https://Stackoverflow.com/questions/127514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18664/" ]
127,530
<p>I'm adding a new field to a list and view. To add the field to the view, I'm using this code:</p> <pre><code>view.ViewFields.Add("My New Field"); </code></pre> <p>However this just tacks it on to the end of the view. How do I add the field to a particular column, or rearrange the field order? view.ViewFields is an...
[ { "answer_id": 127859, "author": "Alex Angas", "author_id": 6651, "author_profile": "https://Stackoverflow.com/users/6651", "pm_score": 3, "selected": true, "text": "string[] fieldNames = new string[] { \"Title\", \"My New Field\", \"Modified\", \"Created\" };\nSPViewFieldCollection view...
2008/09/24
[ "https://Stackoverflow.com/questions/127530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6651/" ]
127,534
<p>We have a couple of developers asking for <code>allow_url_fopen</code> to be enabled on our server. What's the norm these days and if <code>libcurl</code> is enabled is there really any good reason to allow?</p> <p>Environment is: Windows 2003, PHP 5.2.6, FastCGI</p>
[ { "answer_id": 127562, "author": "Daniel Papasian", "author_id": 7548, "author_profile": "https://Stackoverflow.com/users/7548", "pm_score": 5, "selected": true, "text": "allow_url_include allow_url_fopen allow_url_include allow_url_fopen" } ]
2008/09/24
[ "https://Stackoverflow.com/questions/127534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/419/" ]
127,556
<p>I have a listbox where the items contain checkboxes:</p> <pre><code>&lt;ListBox Style="{StaticResource CheckBoxListStyle}" Name="EditListBox"&gt; &lt;ListBox.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;CheckBox Click="Checkbox_Click" IsChecked="{Binding Path=IsChecked, Mode=TwoWay}" Content="{...
[ { "answer_id": 127589, "author": "Kent Boogaart", "author_id": 5380, "author_profile": "https://Stackoverflow.com/users/5380", "pm_score": 4, "selected": true, "text": "CheckBox <StackPanel Orientation=\"Horizontal\">\n <CheckBox IsChecked=\"{Binding IsChecked}\"/>\n <TextBlock Tex...
2008/09/24
[ "https://Stackoverflow.com/questions/127556", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2284/" ]
127,564
<p>I have come to realize that Windbg is a very powerful debugger for the Windows platform &amp; I learn something new about it once in a while. Can fellow Windbg users share some of their mad skills?</p> <p>ps: I am not looking for a nifty command, those can be found in the documentation. How about sharing tips on do...
[ { "answer_id": 127875, "author": "Kris Kumler", "author_id": 4281, "author_profile": "https://Stackoverflow.com/users/4281", "pm_score": 5, "selected": false, "text": ".cmdtree <file> <file>" }, { "answer_id": 159483, "author": "Community", "author_id": -1, "author_pr...
2008/09/24
[ "https://Stackoverflow.com/questions/127564", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15071/" ]
127,587
<p>I'm trying to use <a href="http://trac.videolan.org/jvlc/" rel="nofollow noreferrer">JVLC</a> but I can't seem to get it work. I've downloaded the jar, I installed <a href="http://www.videolan.org/vlc/" rel="nofollow noreferrer">VLC</a> and passed the -D argument to the JVM telling it where VLC is installed. I also ...
[ { "answer_id": 127875, "author": "Kris Kumler", "author_id": 4281, "author_profile": "https://Stackoverflow.com/users/4281", "pm_score": 5, "selected": false, "text": ".cmdtree <file> <file>" }, { "answer_id": 159483, "author": "Community", "author_id": -1, "author_pr...
2008/09/24
[ "https://Stackoverflow.com/questions/127587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20459/" ]
127,591
<p>How do I make <kbd>Caps Lock</kbd> work like <kbd>Esc</kbd> in Mac OS X?</p>
[ { "answer_id": 249923, "author": "eelco", "author_id": 8293, "author_profile": "https://Stackoverflow.com/users/8293", "pm_score": 5, "selected": false, "text": "map <Help> <Esc>\nmap! <Help> <Esc>\nmap <Insert> <Esc>\nmap! <Insert> <Esc>\n" }, { "answer_id": 8437594, "auth...
2008/09/24
[ "https://Stackoverflow.com/questions/127591", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7706/" ]
127,598
<p>So, I have Flex project that loads a Module using the ModuleManager - not the module loader. The problem that I'm having is that to load an external asset (like a video or image) the path to load that asset has to be relative to the Module swf...not relative to the swf that loaded the module.</p> <p>The question i...
[ { "answer_id": 132670, "author": "hasseg", "author_id": 4111, "author_profile": "https://Stackoverflow.com/users/4111", "pm_score": 3, "selected": true, "text": "mx.core.Application" }, { "answer_id": 2252676, "author": "Fréderic Cox", "author_id": 271921, "author_pro...
2008/09/24
[ "https://Stackoverflow.com/questions/127598", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3435/" ]
127,606
<p>I'm trying to generate customized xml files from a template xml file in python. </p> <p>Conceptually, I want to read in the template xml, remove some elements, change some text attributes, and write the new xml out to a file. I wanted it to work something like this:</p> <pre><code>conf_base = ConvertXmlToDict('co...
[ { "answer_id": 127678, "author": "Torsten Marek", "author_id": 9567, "author_profile": "https://Stackoverflow.com/users/9567", "pm_score": 4, "selected": false, "text": "import xml.etree.ElementTree as ET\ndoc = ET.parse(\"template.xml\")\nlvl1 = doc.findall(\"level1-name\")[0]\nlvl1.rem...
2008/09/24
[ "https://Stackoverflow.com/questions/127606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1489/" ]
127,610
<p>I have an SSIS package, which depending on a boolean variable, should either go to a Script Task or an Email task.(Note: the paths are coming <em>from</em> a Script Task)</p> <p>I recall in the old dts designer there was a way to do this via code. What is the proper way to accomplish this in SSIS?</p>
[ { "answer_id": 129159, "author": "Meff", "author_id": 9647, "author_profile": "https://Stackoverflow.com/users/9647", "pm_score": 2, "selected": false, "text": "@[User::SendEmail] == True\n" } ]
2008/09/24
[ "https://Stackoverflow.com/questions/127610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343291/" ]
127,625
<p>I'm currently working on a class that calculates the difference between two objects. I'm trying to decide what the best design for this class would be. I see two options:</p> <p>1) Single-use class instance. Takes the objects to diff in the constructor and calculates the diff for that.</p> <pre><code>public cla...
[ { "answer_id": 127670, "author": "Ben Collins", "author_id": 3279, "author_profile": "https://Stackoverflow.com/users/3279", "pm_score": 0, "selected": false, "text": "public class Diff\n{\n public Diff(String path1, String path2)\n {\n // get diff\n\n if (same)\n ...
2008/09/24
[ "https://Stackoverflow.com/questions/127625", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1409/" ]
127,626
<p>I'm trying to install <a href="http://www.maatkit.org/" rel="nofollow noreferrer">Maatkit</a> following <a href="http://maatkit.sourceforge.net/doc/maatkit.html#installation" rel="nofollow noreferrer">the maatkit instructions</a>. I can't get past having to install DBD::mysql. "Warning: prerequisite DBD::mysql 1 no...
[ { "answer_id": 127923, "author": "Corion", "author_id": 21731, "author_profile": "https://Stackoverflow.com/users/21731", "pm_score": 3, "selected": false, "text": "make site:perlmonks.org" }, { "answer_id": 344043, "author": "Community", "author_id": -1, "author_prof...
2008/09/24
[ "https://Stackoverflow.com/questions/127626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/556/" ]
127,638
<p>Is there a way to prevent someone from faking a mime type on a file upload and then running a php/exe/etc...</p> <p>I have to make the file upload directory writeable and executable so that the files can be stored, but this allows anyone to run a script after. One thing I can do is add random data to the file name...
[ { "answer_id": 127658, "author": "Paul Tomblin", "author_id": 3333, "author_profile": "https://Stackoverflow.com/users/3333", "pm_score": 3, "selected": true, "text": "remove_all_my_files.php http://xample.com/uploads/remove_all_my_files.php" }, { "answer_id": 127694, "author...
2008/09/24
[ "https://Stackoverflow.com/questions/127638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12529/" ]
127,645
<p>When an error occurs in a function, I'd like to know the sequence of events that lead up to it, especially when that function is called from a dozen different places. Is there any way to retrieve the call stack in VB6, or do I have to do it the hard way (e.g., log entries in every function and error handler, etc.)?...
[ { "answer_id": 206726, "author": "JeffK", "author_id": 5420, "author_profile": "https://Stackoverflow.com/users/5420", "pm_score": 4, "selected": false, "text": "Private Function DoSomething(ByVal Arg as String)\n\n On Error GoTo Handler\n\n Dim ThisVar as String\n Dim ThatVar a...
2008/09/24
[ "https://Stackoverflow.com/questions/127645", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4228/" ]
127,654
<p>I'm working on an existing report and I would like to test it with the database. The problem is that the catalog set during the initial report creation no longer exists. I just need to change the catalog parameter to a new database. The report is using a stored proc for its data. It looks like if try and remove ...
[ { "answer_id": 127674, "author": "Quintin Robinson", "author_id": 12707, "author_profile": "https://Stackoverflow.com/users/12707", "pm_score": 0, "selected": false, "text": "report.SetDatabaseLogon(UserID, Password, ServerName, DatabaseName);\n private void FixDatabase(ReportDocumen...
2008/09/24
[ "https://Stackoverflow.com/questions/127654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2862/" ]
127,669
<p>I have a computer A with two directory trees. The first directory contains the original mod dates that span back several years. The second directory is a copy of the first with a few additional files. There is a second computer be which contains a directory tree which is the same as the second directory on comput...
[ { "answer_id": 128307, "author": "Jeremy Bourque", "author_id": 2192597, "author_profile": "https://Stackoverflow.com/users/2192597", "pm_score": 1, "selected": false, "text": "touch #!/usr/bin/perl\n\nmy $STARTDIR=\"$HOME/test\";\n\nchdir $STARTDIR;\nmy @files = `find . -type f`;\nchomp...
2008/09/24
[ "https://Stackoverflow.com/questions/127669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9940/" ]
127,679
<p>How do I view the grants (access rights) for a given user in MySQL?</p>
[ { "answer_id": 127683, "author": "alanc10n", "author_id": 14059, "author_profile": "https://Stackoverflow.com/users/14059", "pm_score": 6, "selected": true, "text": "mysql> show grants for 'user'@'host'\n" }, { "answer_id": 129533, "author": "igelkott", "author_id": 20521...
2008/09/24
[ "https://Stackoverflow.com/questions/127679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14059/" ]
127,684
<p>I have a REST Java server implemented with Jersey running on Jetty. It seems that certain browsers (IE7) internally caches all requests made to the server. </p> <p>What I would like to do is to send a certain HTTP header in the response from the REST server indicating the browser that it shouldn't cache that respon...
[ { "answer_id": 127723, "author": "Steve g", "author_id": 12092, "author_profile": "https://Stackoverflow.com/users/12092", "pm_score": 2, "selected": false, "text": "response.setHeader(\"Pragma\", \"no-cache\");\nresponse.setHeader(\"Cache-Control\", \"no-cache\");\nresponse.setHeader(\"...
2008/09/24
[ "https://Stackoverflow.com/questions/127684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12791/" ]
127,704
<p>I want to write a function that takes an array of letters as an argument and a number of those letters to select. </p> <p>Say you provide an array of 8 letters and want to select 3 letters from that. Then you should get:</p> <pre><code>8! / ((8 - 3)! * 3!) = 56 </code></pre> <p>Arrays (or words) in return consist...
[ { "answer_id": 127856, "author": "nlucaroni", "author_id": 157, "author_profile": "https://Stackoverflow.com/users/157", "pm_score": 10, "selected": true, "text": "27 = C(6,4) + C(5,3) + C(2,2) + C(1,1) choose (* this will find the [x] combination of a [set] list when taking [k] elements...
2008/09/24
[ "https://Stackoverflow.com/questions/127704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9191/" ]
127,713
<p>Why does the following method hang?</p> <pre> public void pipe(Reader in, Writer out) { CharBuffer buf = CharBuffer.allocate(DEFAULT_BUFFER_SIZE); while( in.read(buf) >= 0 ) { out.append(buf.flip()); } } </pre>
[ { "answer_id": 127729, "author": "Chris Conway", "author_id": 1412, "author_profile": "https://Stackoverflow.com/users/1412", "pm_score": 2, "selected": true, "text": "buf.clear() read read" }, { "answer_id": 9628316, "author": "Fuwjax", "author_id": 315943, "author_p...
2008/09/24
[ "https://Stackoverflow.com/questions/127713", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1412/" ]
127,728
<p>I'm working with ASP.NET 3.5. I have a list box that users must add items to (I've written the code for this). My requirement is that at least one item must be added to the listbox or they cannot submit the form. I have several other validators on the page and they all write to a ValidationSummary control. I would l...
[ { "answer_id": 127983, "author": "stephenbayer", "author_id": 18893, "author_profile": "https://Stackoverflow.com/users/18893", "pm_score": 3, "selected": false, "text": "protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args) \n{\n args.IsValid...
2008/09/24
[ "https://Stackoverflow.com/questions/127728", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
127,736
<p>Greetings, currently I am refactoring one of my programs, and I found an interesting problem.</p> <p>I have Transitions in an automata. Transitions always have a start-state and an end-state. Some Transitions have a label, which encodes a certain Action that must be performed upon traversal. No label means no actio...
[ { "answer_id": 128005, "author": "Mark Roddy", "author_id": 9940, "author_profile": "https://Stackoverflow.com/users/9940", "pm_score": 0, "selected": false, "text": "return self.label is not None\n ConditionalTransition" }, { "answer_id": 219303, "author": "Florian Bösch", ...
2008/09/24
[ "https://Stackoverflow.com/questions/127736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17663/" ]
127,739
<pre><code> $a = '{ "tag": "&lt;b&gt;&lt;/b&gt;" }'; echo json_encode( json_decode($a) ); </code></pre> <p>This outputs:</p> <pre><code>{"tag":"&lt;b&gt;&lt;\/b&gt;"} </code></pre> <p>when you would think it would output exactly the input. For some reason json_encode adds an extra slash.</p>
[ { "answer_id": 127775, "author": "Peter Bailey", "author_id": 8815, "author_profile": "https://Stackoverflow.com/users/8815", "pm_score": 5, "selected": true, "text": "any-Unicode-character-\n except-\"-or-\\-or-\n control-character\n\\\"\n\\\\\n\\/ <---- see here?\n\\b\n\\f\n\\n\n...
2008/09/24
[ "https://Stackoverflow.com/questions/127739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19087/" ]
127,753
<p>Is there a more concise/standard idiom (e.g., a JDK method) for "piping" an input to an output in Java than the following?</p> <pre><code>public void pipe(Reader in, Writer out) { CharBuffer buf = CharBuffer.allocate(DEFAULT_BUFFER_SIZE); while (in.read(buf) &gt;= 0 ) { out.append(buf.flip()); ...
[ { "answer_id": 331854, "author": "Henning", "author_id": 7034, "author_profile": "https://Stackoverflow.com/users/7034", "pm_score": 4, "selected": true, "text": "IOUtils.copy(in, out) Stream Reader Writer" } ]
2008/09/24
[ "https://Stackoverflow.com/questions/127753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1412/" ]
127,761
<p>Have you managed to get Aptana Studio debugging to work? I tried following this, but I don't see <code>Windows -&gt; Preferences -&gt; Aptana -&gt; Editors -&gt; PHP -&gt; PHP Interpreters</code> in my menu (I have <code>PHP plugin</code> installed) and any attempt to set up the servers menu gives me "socket error" ...
[ { "answer_id": 131722, "author": "phatduckk", "author_id": 3896, "author_profile": "https://Stackoverflow.com/users/3896", "pm_score": 3, "selected": true, "text": "[Zend Modules] \nZend Debugger\n" } ]
2008/09/24
[ "https://Stackoverflow.com/questions/127761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/556/" ]
127,771
<p>My problem is:</p> <p>I have a perl script which uses lot of memory (expected behaviour because of caching). But, I noticed that the more I do caching, slower it gets and the process spends most of the time in sleep mode.</p> <p>I thought pre-allocating memory to the process might speed up the performance.</p> <p...
[ { "answer_id": 127978, "author": "douglashunter", "author_id": 13838, "author_profile": "https://Stackoverflow.com/users/13838", "pm_score": 0, "selected": false, "text": "my @array;\n$#array = 1_000_000; # pre-extend array to one million elements,\n # http://perldoc....
2008/09/24
[ "https://Stackoverflow.com/questions/127771", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4406/" ]
127,776
<p>Where can I find the specifications for the various C# languages?</p> <p><em>(EDIT: it appears people voted down because you could 'google' this, however, my original intent was to put an answer with information not found on google. I've accepted the answer with the best google results, as they are relevant to peop...
[ { "answer_id": 127789, "author": "user7116", "author_id": 7116, "author_profile": "https://Stackoverflow.com/users/7116", "pm_score": 4, "selected": false, "text": ".\\Microsoft Visual Studio 8\\VC#\\Specifications\\1033\n .\\Microsoft Visual Studio 9.0\\VC#\\Specifications\\1033\n .\\Mi...
2008/09/24
[ "https://Stackoverflow.com/questions/127776", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7116/" ]
127,794
<p>Part of the series of controls I am working on obviously involves me lumping some of them together in to composites. I am rapidly starting to learn that this takes consideration (this is all new to me!) :)</p> <p>I basically have a <code>StyledWindow</code> control, which is essentially a glorified <code>Panel</code...
[ { "answer_id": 128299, "author": "David Basarab", "author_id": 2469, "author_profile": "https://Stackoverflow.com/users/2469", "pm_score": 1, "selected": false, "text": "protected override void OnLoad(EventArgs e)\n{\n\n // Do something to get the script\n string script = GetScript...
2008/09/24
[ "https://Stackoverflow.com/questions/127794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/832/" ]
127,803
<p>I need to parse <a href="https://www.rfc-editor.org/rfc/rfc3339" rel="noreferrer">RFC 3339</a> strings like <code>&quot;2008-09-03T20:56:35.450686Z&quot;</code> into Python's <code>datetime</code> type.</p> <p>I have found <a href="https://docs.python.org/library/datetime.html#datetime.datetime.strptime" rel="norefe...
[ { "answer_id": 127825, "author": "tzot", "author_id": 6899, "author_profile": "https://Stackoverflow.com/users/6899", "pm_score": 5, "selected": false, "text": ">>> datetime.datetime.strptime(\"2008-08-12T12:20:30.656234Z\", \"%Y-%m-%dT%H:%M:%S.Z\")\nValueError: time data did not match f...
2008/09/24
[ "https://Stackoverflow.com/questions/127803", "https://Stackoverflow.com", "https://Stackoverflow.com/users/70293/" ]
127,817
<p>I'm having a little problem and I don't see why, it's easy to go around it, but still I want to understand. </p> <p>I have the following class :</p> <pre><code>public class AccountStatement : IAccountStatement { public IList&lt;IAccountStatementCharge&gt; StatementCharges { get; set; } public AccountStat...
[ { "answer_id": 127840, "author": "Brad Wilson", "author_id": 1554, "author_profile": "https://Stackoverflow.com/users/1554", "pm_score": 5, "selected": true, "text": "public AccountStatement()\n{\n new AccountStatement(new Period(new NullDate().DateTime,newNullDate().DateTime), 0);\n}...
2008/09/24
[ "https://Stackoverflow.com/questions/127817", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7419/" ]
127,842
<p>We are writing a search application that saves the search criteria to session state and executes the search inside of an asp.net updatepanel. Sometimes when we execute multiple searches successively the 2nd or 3rd search will sometimes return results from the first set of search criteria. </p> <p>Example: our fir...
[ { "answer_id": 127903, "author": "palehorse", "author_id": 312, "author_profile": "https://Stackoverflow.com/users/312", "pm_score": 2, "selected": false, "text": "[WebMethod( EnableSession=true )]\npublic static void DoSomething(){\n /// ....\n}\n" }, { "answer_id": 2916755, ...
2008/09/24
[ "https://Stackoverflow.com/questions/127842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19840/" ]
127,867
<p>I have great doubts about this forum, but I am willing to be pleasantly surprised ;) <strong>Kudos and great karma to those who get me back on track.</strong></p> <p>I am attempting to use the blitz implementation of JavaSpaces (<a href="http://www.dancres.org/blitz/blitz_js.html" rel="nofollow noreferrer">http://w...
[ { "answer_id": 128936, "author": "deltaVee", "author_id": 21707, "author_profile": "https://Stackoverflow.com/users/21707", "pm_score": 0, "selected": false, "text": "C:\\dev\\jini\\blitz>javap com.sun.jini.mahalo.TxnMgrProxy\nCompiled from \"TxnMgrProxy.java\"\nclass com.sun.jini.mahalo...
2008/09/24
[ "https://Stackoverflow.com/questions/127867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21707/" ]
127,886
<p>I'm confused with how views are organized, and it is important to understand this as ASP.NET MVC uses conventions to get everything working right.</p> <p>Under the views directory, there are subdirectories. Inside these subdirectories are views. I'm assuming that the subdirectories map to controllers, and the con...
[ { "answer_id": 128045, "author": "Craig Stuntz", "author_id": 7714, "author_profile": "https://Stackoverflow.com/users/7714", "pm_score": 4, "selected": true, "text": " public ActionResult NotAuthorized()\n {\n return View();\n }\n public ActionResult NotAuthorized()\...
2008/09/24
[ "https://Stackoverflow.com/questions/127886", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
127,890
<p>Is there a specfic <a href="http://en.wikipedia.org/wiki/Design_Patterns" rel="nofollow noreferrer">Gang Of Four Design Pattern</a> that you frequently use, yet hardly see used in other peoples designs? If possible, please describe a simple example where this pattern can be useful. It doesn't have to necessarily b...
[ { "answer_id": 274993, "author": "fizzer", "author_id": 18167, "author_profile": "https://Stackoverflow.com/users/18167", "pm_score": 3, "selected": false, "text": "SendTo() Message MessageRecipient #include <iostream>\n#include <ostream>\nusing namespace std;\n\n// Downside: note the cy...
2008/09/24
[ "https://Stackoverflow.com/questions/127890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16448/" ]
127,899
<p>i have a control that is organized like this</p> <p><img src="https://dl-web.getdropbox.com/get/jsstructure.GIF?w=faef1ed3" alt="alt text"></p> <p>and i want to have the javascript registered on the calling master pages, etc, so that anywhere this control folder is dropped and then registered, it will know how to ...
[ { "answer_id": 127935, "author": "TcKs", "author_id": 20382, "author_profile": "https://Stackoverflow.com/users/20382", "pm_score": 1, "selected": false, "text": "public static class PageHelper {\n public static void RegisterClientScriptIfNeeded( Page page, string key, string url ) {\...
2008/09/24
[ "https://Stackoverflow.com/questions/127899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1748529/" ]
127,912
<p>Writing some test scripts in IronPython, I want to verify whether a window is displayed or not. I have the pid of the main app's process, and want to get a list of window titles that are related to the pid. </p> <p>I was trying to avoid using win32api calls, such as FindWindowEx, since (to my knowledge) you canno...
[ { "answer_id": 11841411, "author": "Jonas Lundgren", "author_id": 1482659, "author_profile": "https://Stackoverflow.com/users/1482659", "pm_score": 2, "selected": false, "text": "import ctypes\nbuffer = ctypes.create_string_buffer(100)\nctypes.windll.kernel32.GetWindowsDirectoryA(buffer,...
2008/09/24
[ "https://Stackoverflow.com/questions/127912", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9267/" ]
127,932
<p>I get this error when I do an <code>svn update</code>:</p> <blockquote> <p>Working copy XXXXXXXX locked Please execute "Cleanup" command</p> </blockquote> <p>When I run cleanup, I get</p> <blockquote> <p>Cleanup failed to process the following paths: XXXXXXXX</p> </blockquote> <p>How do I get out of this...
[ { "answer_id": 1125468, "author": "Intu", "author_id": 138079, "author_profile": "https://Stackoverflow.com/users/138079", "pm_score": 8, "selected": false, "text": ".svn lock .svn find . -name 'lock' -exec rm -v {} \\;\n .svn" }, { "answer_id": 1344837, "author": "BradS", ...
2008/09/24
[ "https://Stackoverflow.com/questions/127932", "https://Stackoverflow.com", "https://Stackoverflow.com/users/230/" ]
127,936
<p>I have an application that has created a number of custom event log sources to help filter its output. How can I delete the custom sources from the machine WITHOUT writing any code as running a quick program using System.Diagnostics.EventLog.Delete is not possible.</p> <p>I've tried using RegEdit to remove the cust...
[ { "answer_id": 28902869, "author": "Kapé", "author_id": 465942, "author_profile": "https://Stackoverflow.com/users/465942", "pm_score": 5, "selected": false, "text": "Remove-EventLog -LogName \"Custom log name\"\n\nRemove-EventLog -Source \"Custom source name\"\n" }, { "answer_id...
2008/09/24
[ "https://Stackoverflow.com/questions/127936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15570/" ]
127,973
<p>I've been aware of Steve Yegge's advice to <a href="http://steve.yegge.googlepages.com/effective-emacs#item1" rel="nofollow noreferrer">swap Ctrl and Caps Lock</a> for a while now, although I don't use Emacs. I've just tried swapping them over as an experiment and I'm finding it difficult to adjust. There are severa...
[ { "answer_id": 35177791, "author": "Sam Hasler", "author_id": 2541, "author_profile": "https://Stackoverflow.com/users/2541", "pm_score": 3, "selected": true, "text": "#IfWinActive\n ^+Capslock::Capslock ; make CTRL+SHIFT+Caps-Lock the Caps Lock toggle\nreturn\n" }, { "answer_i...
2008/09/24
[ "https://Stackoverflow.com/questions/127973", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2541/" ]
127,974
<p>SQL is not my forte, but I'm working on it - thank you for the replies.</p> <p>I am working on a report that will return the completion percent of services for indiviudals in our contracts. There is a master table "Contracts," each individual Contract can have multiple services from the "services" table, each serv...
[ { "answer_id": 128017, "author": "Steven Murawski", "author_id": 1233, "author_profile": "https://Stackoverflow.com/users/1233", "pm_score": 1, "selected": false, "text": "SELECT \n Contract,\n Contract_ServiceId, \n (SUM(CompletionPercentage)/COUNT(CompletionPercentage)) * 100...
2008/09/24
[ "https://Stackoverflow.com/questions/127974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21717/" ]
128,008
<p>When I iterate over the values or keys are they going to correlate? Will the second key map to the second value?</p>
[ { "answer_id": 128025, "author": "Jorge Ferreira", "author_id": 6508, "author_profile": "https://Stackoverflow.com/users/6508", "pm_score": 0, "selected": false, "text": "Map<Integer, Integer> a = new HashMap<Integer, Integer>(2);\na.put(1, 2);\na.put(2, 3);\nfor (Map.Entry<Integer, Inte...
2008/09/24
[ "https://Stackoverflow.com/questions/128008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2443/" ]
128,011
<p>In a <code>CakePHP 1.2</code> app, I'm using </p> <pre><code>&lt;?php $session-&gt;flash();?&gt; </code></pre> <p>to output messages like "Record edited". It's working great.</p> <p>However, I want to add a link called "Dismiss" that will fade out the message. I know how to construct the link, but I don't know ho...
[ { "answer_id": 128033, "author": "Justin", "author_id": 43, "author_profile": "https://Stackoverflow.com/users/43", "pm_score": 2, "selected": true, "text": "layouts/message.ctp\n <?php echo $content_for_layout; ?>\n $this->Session->setFlash('Your record has been created! Wicked!','messa...
2008/09/24
[ "https://Stackoverflow.com/questions/128011", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43/" ]
128,012
<p>I want to create a UITableView with varying row heights, and I'm trying to accomplish this by creating UILabels inside the UITableViewCells.</p> <p>Here's my code so far:</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyI...
[ { "answer_id": 2358335, "author": "Olof", "author_id": 283153, "author_profile": "https://Stackoverflow.com/users/283153", "pm_score": 1, "selected": false, "text": "- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath\n{\n\n if(indexPath.row<...
2008/09/24
[ "https://Stackoverflow.com/questions/128012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2119/" ]
128,015
<p>Normal OSX applications eat the first mouse click when not focused to first focus the application. Then future clicks are processed by the application. iTunes play/pause button and Finder behave differently, the first click is acted on even when not focused. I am looking for a way to force an existing application...
[ { "answer_id": 28377340, "author": "johndpope", "author_id": 284895, "author_profile": "https://Stackoverflow.com/users/284895", "pm_score": 0, "selected": false, "text": "- (void)loadView {\n NSLog(@\"loadView\");\n\n\n self.view = [[NSView alloc] initWithFrame:\n ...
2008/09/24
[ "https://Stackoverflow.com/questions/128015", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21737/" ]
128,016
<p>I'm writing a custom file selection component. In my UI, first the user clicks a button, which pops a <code>JFileChooser</code>; when it is closed, the absolute path of the selected file is written to a <code>JTextField</code>.</p> <p>The problem is, absolute paths are usually long, which causes the text field to e...
[ { "answer_id": 128040, "author": "davetron5000", "author_id": 3029, "author_profile": "https://Stackoverflow.com/users/3029", "pm_score": 5, "selected": true, "text": "filedNameTextField = new JTextField(80); // 80 == columns\n JScrollPane setMaximumSize setPreferredWidth" }, { "...
2008/09/24
[ "https://Stackoverflow.com/questions/128016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15649/" ]
128,028
<p>We have a project that generates a code snippet that can be used on various other projects. The purpose of the code is to read two parameters from the query string and assign them to the "src" attribute of an iframe.</p> <p>For example, the page at the URL <a href="http://oursite/Page.aspx?a=1&amp;b=2" rel="nofollo...
[ { "answer_id": 128703, "author": "Mike Samuel", "author_id": 20394, "author_profile": "https://Stackoverflow.com/users/20394", "pm_score": 5, "selected": true, "text": "let searchParams/*: URLSearchParams*/ = new URL(\n myUrl,\n // Supply a base URL whose scheme allows\n // quer...
2008/09/24
[ "https://Stackoverflow.com/questions/128028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21732/" ]
128,035
<p>Note: while the use-case described is about using submodules within a project, the same applies to a normal <code>git clone</code> of a repository over HTTP.</p> <p>I have a project under Git control. I'd like to add a submodule:</p> <pre><code>git submodule add http://github.com/jscruggs/metric_fu.git vendor/plu...
[ { "answer_id": 128198, "author": "sethbc", "author_id": 21722, "author_profile": "https://Stackoverflow.com/users/21722", "pm_score": 6, "selected": false, "text": "GIT_CURL_VERBOSE=1\n" }, { "answer_id": 397642, "author": "James A. Rosen", "author_id": 1190, "author_...
2008/09/24
[ "https://Stackoverflow.com/questions/128035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1190/" ]
128,038
<p>I have a Java process that opens a file using a FileReader. How can I prevent another (Java) process from opening this file, or at least notify that second process that the file is already opened? Does this automatically make the second process get an exception if the file is open (which solves my problem) or do I h...
[ { "answer_id": 128119, "author": "KC Baltz", "author_id": 9910, "author_profile": "https://Stackoverflow.com/users/9910", "pm_score": 4, "selected": false, "text": "java.nio.channels.FileChannel.lock()" }, { "answer_id": 128168, "author": "Tom Hawtin - tackline", "author_...
2008/09/24
[ "https://Stackoverflow.com/questions/128038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11906/" ]
128,042
<p>In Java, I use a class in which some fields can be <code>null</code>. For example:</p> <pre><code>class Foo { String bar; //.... } </code></pre> <p>I want to write a BarComparator for this class,</p> <pre><code> private static class BarComparator implements Comparator&lt;Foo&gt; { p...
[ { "answer_id": 128084, "author": "cagcowboy", "author_id": 19629, "author_profile": "https://Stackoverflow.com/users/19629", "pm_score": 0, "selected": false, "text": "if(o1==null) return x;\nif(o2==null) return x;\nif(o1.getBar()==null) return x;\nif(o2.getBar()==null) return x;\n\n// N...
2008/09/24
[ "https://Stackoverflow.com/questions/128042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2797/" ]
128,043
<p>I have several log files of events (one event per line). The logs can possibly overlap. The logs are generated on separate client machines from possibly multiple time zones (but I assume I know the time zone). Each event has a timestamp that was normalized into a common time (by instantianting each log parsers calen...
[ { "answer_id": 128098, "author": "Nick Johnson", "author_id": 12030, "author_profile": "https://Stackoverflow.com/users/12030", "pm_score": 3, "selected": false, "text": "def merge_files(files, key_func):\n # Populate the current array with the first line from each file\n current =...
2008/09/24
[ "https://Stackoverflow.com/questions/128043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2204759/" ]
128,083
<p>I find my self having a repeater control which is being databound to an xml document. My client is now requesting that the Textbox's which are being repeater can be either a Textbox or a Checkbox.</p> <p>I cannot seem to find an easyway to essentially do the following:</p> <pre><code>if ((System.Xml.XmlNode)e.Item...
[ { "answer_id": 128101, "author": "Tom Ritter", "author_id": 8435, "author_profile": "https://Stackoverflow.com/users/8435", "pm_score": 3, "selected": true, "text": "Visible=<%= Eval(\"type\").tostring() == \"text\") %>\n" }, { "answer_id": 199914, "author": "vmarquez", "...
2008/09/24
[ "https://Stackoverflow.com/questions/128083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20032/" ]
128,103
<p>Given an <code>Item</code> that has been appended to a <code>Form</code>, whats the best way to find out what index that item is at on the Form?</p> <p><code>Form.append(Item)</code> will give me the index its initially added at, but if I later insert items before that the index will be out of sync.</p>
[ { "answer_id": 128355, "author": "roryf", "author_id": 270, "author_profile": "https://Stackoverflow.com/users/270", "pm_score": 2, "selected": true, "text": "private int getItemIndex(Item item, Form form) {\n for(int i = 0, size = form.size(); i < size; i++) {\n if(form.get(i)...
2008/09/24
[ "https://Stackoverflow.com/questions/128103", "https://Stackoverflow.com", "https://Stackoverflow.com/users/270/" ]
128,104
<p>What is a good implementation of a IsLeapYear function in VBA? </p> <p><b>Edit: </b>I ran the if-then and the DateSerial implementation with iterations wrapped in a timer, and the DateSerial was quicker on the average by 1-2 ms (5 runs of 300 iterations, with 1 average cell worksheet formula also working).</p>
[ { "answer_id": 128105, "author": "Lance Roberts", "author_id": 13295, "author_profile": "https://Stackoverflow.com/users/13295", "pm_score": 6, "selected": true, "text": "Public Function isLeapYear(Yr As Integer) As Boolean \n\n ' returns FALSE if not Leap Year, TRUE if Leap Year \n...
2008/09/24
[ "https://Stackoverflow.com/questions/128104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13295/" ]
128,162
<p>My program generates relatively simple PDF documents on request, but I'm having trouble with unicode characters, like kanji or odd math symbols. To write a normal string in PDF, you place it in brackets:</p> <pre><code>(something) </code></pre> <p>There is also the option to escape a character with octal codes:</p...
[ { "answer_id": 31831124, "author": "Algoman", "author_id": 507970, "author_profile": "https://Stackoverflow.com/users/507970", "pm_score": 2, "selected": false, "text": "std::map<std::string, std::vector<wchar_t> > Codepage;\nstd::map<std::string, std::map<wchar_t, int> > LookupTable;\n ...
2008/09/24
[ "https://Stackoverflow.com/questions/128162", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1000/" ]
128,190
<p>I need help logging errors from T-SQL in SQL Server 2000. We need to log errors that we trap, but are having trouble getting the same information we would have had sitting in front of SQL Server Management Studio.</p> <p>I can get a message without any argument substitution like this:</p> <pre><code>SELECT MSG.de...
[ { "answer_id": 128421, "author": "Dave Jackson", "author_id": 12328, "author_profile": "https://Stackoverflow.com/users/12328", "pm_score": 1, "selected": false, "text": "RAISERROR ( { msg_id | msg_str } { , severity , state } \n [ , argument [ ,...n ] ] ) \n [ WITH option [ ,...n ...
2008/09/24
[ "https://Stackoverflow.com/questions/128190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/945/" ]
128,217
<p>If I create an event using <code>CreateEvent</code> in Windows, how can I check if that event is signaled or not using the debugger in Visual Studio? <code>CreateEvent</code> returns back a handle, which doesn't give me access to much information. Before I call <code>WaitForSingleObject()</code>, I want to check t...
[ { "answer_id": 131417, "author": "computinglife", "author_id": 17224, "author_profile": "https://Stackoverflow.com/users/17224", "pm_score": 2, "selected": false, "text": "0:000> !handle 8 f \n" } ]
2008/09/24
[ "https://Stackoverflow.com/questions/128217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21745/" ]
128,232
<p>I am trying to do the following in <code>SQL*PLUS</code> in <code>ORACLE</code>.</p> <ul> <li>Create a variable</li> <li>Pass it as output variable to my method invocation</li> <li>Print the value from output variable</li> </ul> <p>I get</p> <blockquote> <p><em>undeclared variable</em></p> </blockquote> <p>err...
[ { "answer_id": 128280, "author": "Tony Andrews", "author_id": 18747, "author_profile": "https://Stackoverflow.com/users/18747", "pm_score": 2, "selected": false, "text": "SQL> create procedure myproc (p1 out number)\n 2 is\n 3 begin\n 4 p1 := 42;\n 5 end;\n 6 /\n\nProcedure ...
2008/09/24
[ "https://Stackoverflow.com/questions/128232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15425/" ]
128,239
<p>I'm using the Crystal Reports included with VisualStudio 2005. I would like to change the image that is displayed on the report at runtime ideally by building a path to the image file and then have that image displayed on the report.</p> <p>Has anyone been able to accomplish this with this version of Crystal Report...
[ { "answer_id": 582454, "author": "e-holder", "author_id": 22252, "author_profile": "https://Stackoverflow.com/users/22252", "pm_score": 2, "selected": false, "text": "byte[] private static byte[] m_Bitmap = null;\n\npublic byte[] Bitmap\n{\n get\n {\n FileStream fs = new FileStr...
2008/09/24
[ "https://Stackoverflow.com/questions/128239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16419/" ]