qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
76,464 | <p>I'd like to create a module in DNN that, similar to the Announcements control, offers a template that the portal admin can modify for formatting. I have a control that currently uses a Repeater control with templates. Is there a way to override the contents of the repeater ItemTemplate, HeaderTemplate, and FooterT... | [
{
"answer_id": 5629954,
"author": "swajak",
"author_id": 100258,
"author_profile": "https://Stackoverflow.com/users/100258",
"pm_score": 1,
"selected": false,
"text": "GroupBox box = new GroupBox();\n[...]\nbox.Paint += delegate(object o, PaintEventArgs p)\n{\n p.Graphics.Clear(someCo... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13100/"
] |
76,472 | <p>Is there a way in Ruby to find the version of a file, specifically a .dll file?</p>
| [
{
"answer_id": 77447,
"author": "AShelly",
"author_id": 10396,
"author_profile": "https://Stackoverflow.com/users/10396",
"pm_score": 4,
"selected": false,
"text": "require \"Win32API\"\nFILENAME = \"c:/ruby/bin/ruby.exe\" #your filename here\ns=\"\"\nvsize=Win32API.new('version.dll', 'G... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,482 | <p>I have a file saved as UCS-2 Little Endian I want to change the encoding so I ran the following code:</p>
<pre><code>cat tmp.log -encoding UTF8 > new.log
</code></pre>
<p>The resulting file is still in UCS-2 Little Endian. Is this because the pipeline is always in that format? Is there an easy way to pipe this... | [
{
"answer_id": 76734,
"author": "driis",
"author_id": 13627,
"author_profile": "https://Stackoverflow.com/users/13627",
"pm_score": 5,
"selected": false,
"text": "get-content tmp.log -encoding Unicode | set-content new.log -encoding UTF8\n"
},
{
"answer_id": 76808,
"author": ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2582/"
] |
76,488 | <p>Can't find anything relevant about Entity Framework/MySQL on Google so I'm hoping someone knows about it.</p>
| [
{
"answer_id": 16254132,
"author": "oware",
"author_id": 1322781,
"author_profile": "https://Stackoverflow.com/users/1322781",
"pm_score": 1,
"selected": false,
"text": "create table person(\n Id tinyint unsigned primary key auto_increment,\n Name varchar(30)\n);\n Person p;\np = n... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13594/"
] |
76,522 | <p>We make infrastructure services (data retrieval and storage) and small smart client applications (fancy reporting mostly) for a commercial bank. Our team is large, 40 odd contractual employees that are C# .NET programmers. We support 50 odd applications and systems that we have developed. </p>
<p>A few members of t... | [
{
"answer_id": 531146,
"author": "helifreak",
"author_id": 52565,
"author_profile": "https://Stackoverflow.com/users/52565",
"pm_score": 2,
"selected": false,
"text": "Paint() Paint() ControlTemplates"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/76522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,549 | <p>An array of ints in java is stored as a block of 32-bit values in memory. How is an array of Integer objects stored? i.e.</p>
<pre><code>int[] vs. Integer[]
</code></pre>
<p>I'd imagine that each element in the Integer array is a reference to an Integer object, and that the Integer object has object storage overhe... | [
{
"answer_id": 76720,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "Integer foo = new Integer();\nfoo = null; \n int int bar = Integer.MAX_VALUE;\nbar++;\n foo = Integer.MAX_VALUE;\nfoo++;\n"
}... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/974/"
] |
76,564 | <p>All I want is to be able to change the color of a bullet in a list to a light gray. It defaults to black, and I can't figure out how to change it.</p>
<p>I know I could just use an image; I'd rather not do that if I can help it.</p>
| [
{
"answer_id": 76603,
"author": "Jonathan Arkell",
"author_id": 11052,
"author_profile": "https://Stackoverflow.com/users/11052",
"pm_score": 3,
"selected": false,
"text": "<ul>\n <li style=\"color: #888;\"><span style=\"color: #000\">test</span></li>\n</ul>\n"
},
{
"answer_id":... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7072/"
] |
76,571 | <p>In JavaScript, using the Prototype library, the following functional construction is possible:</p>
<pre><code>var words = ["aqueous", "strength", "hated", "sesquicentennial", "area"];
words.pluck('length');
//-> [7, 8, 5, 16, 4]
</code></pre>
<p>Note that this example code is equivalent to</p>
<pre><code>words... | [
{
"answer_id": 79511,
"author": "Gavin",
"author_id": 2377,
"author_profile": "https://Stackoverflow.com/users/2377",
"pm_score": 1,
"selected": false,
"text": "pluck object.method() object[method] String.Length #r \"FSharp.PowerPack.dll\" \nopen Microsoft.FSharp.Compatibility\nwords |> ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6264/"
] |
76,581 | <p>There's an MSDN article <a href="http://msdn.microsoft.com/en-us/library/aa919730.aspx" rel="nofollow noreferrer">here</a>, but I'm not getting very far:</p>
<pre><code>p = 139;
g = 5;
CRYPT_DATA_BLOB pblob;
pblob.cbData = sizeof( ULONG );
pblob.pbData = ( LPBYTE ) &p;
CRYPT_DATA_BLOB gblob;
gblob.cbData = si... | [
{
"answer_id": 78156,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profile": "https://Stackoverflow.com/users/6970",
"pm_score": 1,
"selected": false,
"text": "KP_P KP_G KP_Q KP_PUB_PARAMS DATA_BLOB DHPUBKEY_VER3 KP_PUB_PARAMS"
},
{
"answer_id": 78537,
"author": "Mike... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,591 | <p>I'm trying to load test data into a test DB during a maven build for integration testing. persistence.xml is being copied to <code>target/test-classes/META-INF/</code> correctly, but I get this exception when the test is run.</p>
<blockquote>
<p>javax.persistence.PersistenceException:
No Persistence provider fo... | [
{
"answer_id": 232105,
"author": "stevemac",
"author_id": 20150,
"author_profile": "https://Stackoverflow.com/users/20150",
"pm_score": 2,
"selected": false,
"text": "<provider>oracle.toplink.essentials.PersistenceProvider</provider>"
},
{
"answer_id": 1380292,
"author": "Com... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4893/"
] |
76,601 | <p>I've got a client that sees the "Page can not be displayed" (nothing else) whenever they perform a certain action in their website. I don't get the error, ever. I've tried IE, FF, Chrome, and I do not see the error. The client sees the error on IE.</p>
<p>The error occurs when they press a form submit button tha... | [
{
"answer_id": 76671,
"author": "Loren Segal",
"author_id": 6436,
"author_profile": "https://Stackoverflow.com/users/6436",
"pm_score": 0,
"selected": false,
"text": "C:\\windows\\hosts C:\\windows\\system32\\hosts"
},
{
"answer_id": 49221946,
"author": "Webb Lu",
"author... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13666/"
] |
76,624 | <p>Is there a way to have a 64 bit enum in C++? Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit causes the compiler to error.</p>
<p>For some reason I thought the following might work:</p>
<pre><code>enum MY_ENUM : unsigned __int64
{
... | [
{
"answer_id": 76661,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 0,
"selected": false,
"text": "enum MY_ENUM\n{\n CHAR_VALUE = 'c',\n};\n enum MY_ENUM\n{\n LARGE_VALUE = 0x1000000000000000,\n};\n"
},
{
"answer... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
76,637 | <p>I have an linux app that uses cups for printing, but I've noticed that if I print and then quit my app right away my printout never appears. So I assume that my app has to wait for it to actually come out of the printer before quitting, so does anyone know how to tell when it's finished printing??</p>
<p>I'm using ... | [
{
"answer_id": 190892,
"author": "hendry",
"author_id": 4534,
"author_profile": "https://Stackoverflow.com/users/4534",
"pm_score": 1,
"selected": false,
"text": "lpr lpq"
},
{
"answer_id": 3022250,
"author": "Kurt Pfeifle",
"author_id": 359307,
"author_profile": "htt... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13676/"
] |
76,650 | <p>This has me puzzled. This code worked on another server, but it's failing on Perl v5.8.8 with <a href="http://search.cpan.org/dist/Date-Manip" rel="nofollow noreferrer">Date::Manip</a> loaded from CPAN today.</p>
<pre><code>Warning:
Use of uninitialized value in numeric lt (<) at /home/downside/lib/Date/Manip.pm... | [
{
"answer_id": 167314,
"author": "schwerwolf",
"author_id": 7045,
"author_profile": "https://Stackoverflow.com/users/7045",
"pm_score": 2,
"selected": false,
"text": "Date::Manip::Date_Init(\"ConvTZ=IGNORE\");\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/76650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,651 | <p>Where may one find references on implementing an algorithm for calculating a "dirty rectangle" for minimizing frame buffer updates? A display model that permits arbitrary edits and computes the minimal set of "bit blit" operations required to update the display.</p>
| [
{
"answer_id": 78222,
"author": "Martin W",
"author_id": 14199,
"author_profile": "https://Stackoverflow.com/users/14199",
"pm_score": 2,
"selected": false,
"text": "#!/usr/bin/env python\nimport pygame\n\nclass DirtyRectSprite(pygame.sprite.Sprite):\n \"\"\"Sprite with image and rect... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,680 | <p>I want to maintain a list of global messages that will be displayed to all users of a web app. I want each user to be able to mark these messages as read individually. I've created 2 tables; <code>messages (id, body)</code> and <code>messages_read (user_id, message_id)</code>.</p>
<p>Can you provide an sql statemen... | [
{
"answer_id": 76702,
"author": "cynicalman",
"author_id": 410,
"author_profile": "https://Stackoverflow.com/users/410",
"pm_score": 3,
"selected": false,
"text": "SELECT id FROM messages m WHERE m.id NOT IN(\n SELECT message_id FROM messages_read WHERE user_id = ?)\n"
},
{
"a... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13636/"
] |
76,700 | <p>I'm looking for a little shell script that will take anything piped into it, and dump it to a file.. for email debugging purposes. Any ideas?</p>
| [
{
"answer_id": 76721,
"author": "Stephen Deken",
"author_id": 7154,
"author_profile": "https://Stackoverflow.com/users/7154",
"pm_score": 6,
"selected": true,
"text": "man tee\n"
},
{
"answer_id": 76731,
"author": "Commodore Jaeger",
"author_id": 4659,
"author_profile... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12624/"
] |
76,724 | <p>I need to return a list of record id's from a table that may/may not have multiple entries with that record id on the same date. The same date criteria is key - if a record has three entries on 09/10/2008, then I need all three returned. If the record only has one entry on 09/12/2008, then I don't need it.</p>
| [
{
"answer_id": 76783,
"author": "Leigh Caldwell",
"author_id": 3267,
"author_profile": "https://Stackoverflow.com/users/3267",
"pm_score": 3,
"selected": false,
"text": "SELECT id, datefield, count(*) FROM tablename GROUP BY datefield\n HAVING count(*) > 1\n"
},
{
"answer_id": 7... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,760 | <p>fellow anthropoids and lily pads and paddlewheels!</p>
<p>I'm developing a Windows desktop app in C#/.NET/WPF, using VS 2008. The app is required to install and run on Vista and XP machines. I'm working on a Setup/Windows Installer Project to install the app.</p>
<p>My app requires read/modify/write access to a SQ... | [
{
"answer_id": 374293,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "[CommonAppDataFolder]\\[Manufacturer]\\[ProductName]"
},
{
"answer_id": 741763,
"author": "cdonner",
"author_i... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13726/"
] |
76,781 | <p>I need to create a custom membership user and provider for an ASP.NET mvc app and I'm looking to use TDD. I have created a User class which inherits from the MembershipUser class, but when I try to test it I get an error that I can't figure out. How do I give it a valid provider name? Do I just need to add it to ... | [
{
"answer_id": 243844,
"author": "ddc0660",
"author_id": 16027,
"author_profile": "https://Stackoverflow.com/users/16027",
"pm_score": 4,
"selected": true,
"text": " <connectionStrings>\n <remove name=\"LocalSqlServer\"/>\n <add name=\"LocalSqlServer\" connectionString=\"<connec... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9938/"
] |
76,793 | <p>I'm working on a set of classes that will be used to serialize to XML. The XML is not controlled by me and is organized rather well. Unfortunately, there are several sets of nested nodes, the purpose of some of them is just to hold a collection of their children. Based on my current knowledge of XML Serialization... | [
{
"answer_id": 76826,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Stackoverflow.com/users/832",
"pm_score": 4,
"selected": true,
"text": "[XmlArray(\"users\"),\nXmlArrayItem(\"user\")]\npublic List<User> Users\n{\n get { return _users; }\n}\n"
},
{
"an... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13611/"
] |
76,796 | <p>What are some general tips to make sure I don't leak memory in C++ programs? How do I figure out who should free memory that has been dynamically allocated?</p>
| [
{
"answer_id": 76820,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 5,
"selected": false,
"text": "int main()\n{ \n Object* obj = new Object();\n //...\n delete obj;\n}\n int main()\n{\n boost::shared_ptr<Object>... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,809 | <p>Is anyone out there* using <a href="http://web2py.com/" rel="noreferrer">web2py</a>?</p>
<p>Specifically:</p>
<ul>
<li>In production?</li>
<li>With what database?</li>
<li><p>With Google Application Engine?</p>
<ul>
<li>by "out there" I mean at stackoverflow.</li>
</ul></li>
</ul>
| [
{
"answer_id": 178937,
"author": "Andre Bossard",
"author_id": 21027,
"author_profile": "https://Stackoverflow.com/users/21027",
"pm_score": 4,
"selected": false,
"text": "dba.users.name.requires=IS_NOT_EMPTY()\ndba.users.email.requires=[IS_EMAIL(), IS_NOT_IN_DB(dba,'users.email')]\ndba.... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/479/"
] |
76,812 | <p>What factors determine which approach is more appropriate?</p>
| [
{
"answer_id": 76869,
"author": "Aeon",
"author_id": 13289,
"author_profile": "https://Stackoverflow.com/users/13289",
"pm_score": 2,
"selected": false,
"text": "GetTotalPriceofThings();\n Cart.getTotal();\n"
},
{
"answer_id": 76904,
"author": "Chris Comeaux",
"author_id"... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
76,855 | <p>Each of our production web servers maintains its own cache for separate web sites (ASP.NET Web Applications). Currently to clear a cache we log into the server and "touch" the web.config file. </p>
<p>Does anyone have an example of a safe/secure way to <strong>remotely</strong> reset the cache for a specific web a... | [
{
"answer_id": 77860,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 2,
"selected": false,
"text": "Context.Application.Lock()\nContext.Session.Abandon()\nContext.Application.RemoveAll()\nContext.Application.UnLock()\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/76855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12842/"
] |
76,870 | <p>I want to load a different properties file based upon one variable.</p>
<p>Basically, if doing a dev build use this properties file, if doing a test build use this other properties file, and if doing a production build use yet a third properties file.</p>
| [
{
"answer_id": 78583,
"author": "Tim",
"author_id": 10363,
"author_profile": "https://Stackoverflow.com/users/10363",
"pm_score": 3,
"selected": false,
"text": "include if include <include buildfile=\"devPropertyFile.build\" if=\"${buildEnvironment == 'DEV'}\"/>\n<include buildfile=\"tes... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9052/"
] |
76,882 | <p>I have written a lot of code in Python, and I am very used to the syntax, object structure, and so forth of Python because of it.</p>
<p>What is the best online guide or resource site to provide me with the basics, as well as a comparison or lookup guide with equivalent functions/features in VBA versus Python.</p>
... | [
{
"answer_id": 185390,
"author": "molasses",
"author_id": 11293,
"author_profile": "https://Stackoverflow.com/users/11293",
"pm_score": 1,
"selected": false,
"text": "' An array with 3 elements\n'' The number inside the brackets represents the upper bound index\n'' ie. the last index you... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,925 | <p>DOING THE POST IS NOT THE PROBLEM! Formatting the message so that I get a response is the problem.</p>
<p>Ideally I'd be able to construct a message and use WinHTTP to perform a post to a WCF service (hosted in IIS) and get a response, but so far I've been unable to construct something that works properly.</p>
<p... | [
{
"answer_id": 77115,
"author": "Spike",
"author_id": 13111,
"author_profile": "https://Stackoverflow.com/users/13111",
"pm_score": 0,
"selected": false,
"text": "Sub ExportToHTTPPOST()\nDim sURL, sExtraParams\nConst ForReading = 1, ForWriting = 2, ForAppending = 3\n\nSet rs = CreateObje... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10004/"
] |
76,930 | <p><strong>Scenario:</strong> Several people go on holiday together, armed with digital cameras, and snap away. Some people remembered to adjust their camera clocks to local time, some left them at their home time, some left them at local time of the country they were born in, and some left their cameras on factory ti... | [
{
"answer_id": 77123,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "exiftool \"-DateTimeOriginal+=5:10:2 10:48:0\" DIR\n\nexiftool -AllDates-=1 DIR\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/76930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5975/"
] |
76,939 | <p>Is it possible to install the x86 Remote Debugger as a Service on a 64bit machine? I need to attach a debugger to managed code in a Session 0 process. The process runs 32bit but the debugger service that gets installed is 64bit and wont attach to the 32bit process. </p>
<p>I tried creating the Service using the ... | [
{
"answer_id": 77920,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 2,
"selected": false,
"text": "sc create \"Remote Debugger\" binpath= \"C:\\use\\short\\filename\\in\\the\\path\\x86\\msvsmon.exe /service msvsmon90\... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3291/"
] |
76,963 | <p>I am a MFC programmer who is new to C# and am looking for a simple control that will allow number entry and range validation.</p>
| [
{
"answer_id": 77853,
"author": "Ricardo Amores",
"author_id": 10136,
"author_profile": "https://Stackoverflow.com/users/10136",
"pm_score": 1,
"selected": false,
"text": "private string ComputeRegexPattern()\n{\n StringBuilder builder = new StringBuilder();\n if (this._forcePositive... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,967 | <p>I know that that is not a question... erm anyway HERE is the question.</p>
<p>I have inherited a database that has 1(one) table in that looks much like this. Its aim is to record what species are found in the various (200 odd) countries.</p>
<pre><code>ID
Species
Afghanistan
Albania
Algeria
American Samoa
Andorra... | [
{
"answer_id": 77054,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "https://Stackoverflow.com/users/8435",
"pm_score": 1,
"selected": false,
"text": "select \n 'SELECT Species.ID, Country.CountryID FROM Country, Species WHERE (((Species.' + \n c.name + \n ')=1)) AND (((C... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5552/"
] |
76,976 | <p>Is it possible to get the progress of an XMLHttpRequest (bytes uploaded, bytes downloaded)? </p>
<p>This would be useful to show a progress bar when the user is uploading a large file. The standard API doesn't seem to support it, but maybe there's some non-standard extension in any of the browsers out there? It see... | [
{
"answer_id": 3360576,
"author": "Markus Peröbner",
"author_id": 404522,
"author_profile": "https://Stackoverflow.com/users/404522",
"pm_score": 3,
"selected": false,
"text": "var progressBar = document.getElementById(\"p\"),\n client = new XMLHttpRequest()\nclient.open(\"GET\", \"ma... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
76,988 | <p>I have seen another program provide traceroute functionality within it but without needing root (superuser) privileges? I've always assumed that raw sockets need to be root, but is there some other way? (I think somebody mentioned "supertrace" or "tracepath"?) Thanks!</p>
| [
{
"answer_id": 77205,
"author": "James Antill",
"author_id": 10314,
"author_profile": "https://Stackoverflow.com/users/10314",
"pm_score": -1,
"selected": false,
"text": "\nint opt_on = 1;\nint opt_off = 0;\n\nfd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)\nsetsockopt(fd, SOL_IP, IP_MTU_... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13817/"
] |
76,993 | <p>How can I set the protected <code>DoubleBuffered</code> property of the controls on a form that are suffering from flicker?</p>
| [
{
"answer_id": 77023,
"author": "Arno",
"author_id": 13685,
"author_profile": "https://Stackoverflow.com/users/13685",
"pm_score": 4,
"selected": false,
"text": "public void EnableDoubleBuffering()\n{\n this.SetStyle(ControlStyles.DoubleBuffer | \n ControlStyles.UserPaint | \n ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/76993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
77,005 | <p>I am working on Linux with the GCC compiler. When my C++ program crashes I would like it to automatically generate a stacktrace.</p>
<p>My program is being run by many different users and it also runs on Linux, Windows and Macintosh (all versions are compiled using <code>gcc</code>).</p>
<p>I would like my program... | [
{
"answer_id": 76867,
"author": "mana",
"author_id": 12016,
"author_profile": "https://Stackoverflow.com/users/12016",
"pm_score": 3,
"selected": false,
"text": "ulimit -c unlimited\n"
},
{
"answer_id": 76937,
"author": "Brian Mitchell",
"author_id": 13716,
"author_pr... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13676/"
] |
77,086 | <p>Which is faster, python webpages or php webpages?</p>
<p>Does anyone know how the speed of pylons(or any of the other frameworks) compares to a similar website made with php? </p>
<p>I know that serving a python base webpage via cgi is slower than php because of its long start up every time.</p>
<p>I enjoy usin... | [
{
"answer_id": 77174,
"author": "indentation",
"author_id": 7706,
"author_profile": "https://Stackoverflow.com/users/7706",
"pm_score": 2,
"selected": false,
"text": "\"hello world\""
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/77086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13778/"
] |
77,126 | <p>What are some suggestions for easy to use C++ compilers for a beginner? Free or open-source ones would be preferred.</p>
| [
{
"answer_id": 77307,
"author": "magpulse",
"author_id": 13581,
"author_profile": "https://Stackoverflow.com/users/13581",
"pm_score": 2,
"selected": false,
"text": "g++ -o myprogram myprogram.cc\nls -l myprogram\n"
},
{
"answer_id": 77519,
"author": "Cyber Oliveira",
"au... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13846/"
] |
77,127 | <p>I have exceptions created for every condition that my application does not expect. <code>UserNameNotValidException</code>, <code>PasswordNotCorrectException</code> etc.</p>
<p>However I was told I should not create exceptions for those conditions. In my UML those ARE exceptions to the main flow, so why should it n... | [
{
"answer_id": 77164,
"author": "blowdart",
"author_id": 2525,
"author_profile": "https://Stackoverflow.com/users/2525",
"pm_score": 8,
"selected": false,
"text": "UserHasDiedAtKeyboard"
},
{
"answer_id": 77179,
"author": "Jon",
"author_id": 12261,
"author_profile": "... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/279750/"
] |
77,128 | <p>We have various php projects developed on windows (xampp) that need to be deployed to a mix of linux/windows servers. </p>
<p>We've used <a href="http://www.capify.org/" rel="nofollow noreferrer">capistrano</a> in the past to deploy from windows to the linux servers, but recent changes in architecture and windows s... | [
{
"answer_id": 77440,
"author": "Bruce",
"author_id": 9698,
"author_profile": "https://Stackoverflow.com/users/9698",
"pm_score": 3,
"selected": true,
"text": "rsync svn svn rsync"
},
{
"answer_id": 82311,
"author": "rami",
"author_id": 9629,
"author_profile": "https:... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9114/"
] |
77,133 | <p>I want to debug a windows C++ application I've written to see why it isn't responding to WM_QUERYENDSESSION how I expect it to. Clearly it's a little tricky to do this by just shutting the system down. Is there any utility or code which I can use to send a fake WM_QUERYENDSESSION to my application windows myself?</p... | [
{
"answer_id": 77496,
"author": "Bob Moore",
"author_id": 9368,
"author_profile": "https://Stackoverflow.com/users/9368",
"pm_score": 1,
"selected": false,
"text": "void CQes_testDlg::OnBtnTest() \n{ \n // enumerate all the top-level windows. \n m_ctrl_ListMsgs.ResetContent(); \n... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1849/"
] |
77,171 | <p>After reading Evan's and Nilsson's books I am still not sure how to manage Data access in a domain driven project. Should the CRUD methods be part of the repositories, i.e. OrderRepository.GetOrdersByCustomer(customer) or should they be part of the entities: Customer.GetOrders(). The latter approach seems more OO, b... | [
{
"answer_id": 77275,
"author": "Chris Bilson",
"author_id": 12934,
"author_profile": "https://Stackoverflow.com/users/12934",
"pm_score": 5,
"selected": true,
"text": "CustomerRepo.GetThoseWhoHaventPaidTheirBill()\n\n// or\n\nGetCustomer(new HaventPaidBillSpecification())\n\n// is bette... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133/"
] |
77,172 | <p>Do you guys keep track of stored procedures and database schema in your source control system of choice?</p>
<p>When you make a change (add a table, update an stored proc, how do you get the changes into source control? </p>
<p>We use SQL Server at work, and I've begun using darcs for versioning, but I'd be curio... | [
{
"answer_id": 77500,
"author": "Robert Paulson",
"author_id": 14033,
"author_profile": "https://Stackoverflow.com/users/14033",
"pm_score": 6,
"selected": true,
"text": "-- change #1234\nALTER TABLE asdf ADD COLUMN MyNewID INT\nGO\n\n-- change #5678\nALTER TABLE asdf DROP COLUMN SomeOth... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7856/"
] |
77,213 | <p>I have a large number of Enums that implement this interface:</p>
<pre><code>/**
* Interface for an enumeration, each element of which can be uniquely identified by its code
*/
public interface CodableEnum {
/**
* Get the element with a particular code
* @param code
* @return
*/
publi... | [
{
"answer_id": 78306,
"author": "dave",
"author_id": 14355,
"author_profile": "https://Stackoverflow.com/users/14355",
"pm_score": 5,
"selected": true,
"text": "CodeableEnumHelper public class CodeableEnumHelper {\n public static CodeableEnum getByCode(String code, CodeableEnum[] valu... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
77,226 | <p>What is the easiest way to capitalize the first letter in each word of a string?</p>
| [
{
"answer_id": 77237,
"author": "zigdon",
"author_id": 4913,
"author_profile": "https://Stackoverflow.com/users/4913",
"pm_score": 4,
"selected": false,
"text": "$line = join \" \", map {ucfirst} split \" \", $line;\n"
},
{
"answer_id": 77249,
"author": "piCookie",
"autho... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13912/"
] |
77,258 | <p>I am trying to solve the current problem using GPU capabilities: "given a point cloud P and an oriented plane described by a point and a normal (Pp, Np) return the points in the cloud which lye at a distance equal or less than EPSILON from the plane".</p>
<p>Talking with a colleague of mine I converged toward the f... | [
{
"answer_id": 81165,
"author": "Sarien",
"author_id": 1994377,
"author_profile": "https://Stackoverflow.com/users/1994377",
"pm_score": 1,
"selected": false,
"text": "n_u = n/norm(n) //this is a normal vector of unit length\nd = scalarprod(n,x) //this is the distance of the ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
77,266 | <p>Can I persuade <code>operator>></code> in C++ to read both a <code>hex</code> value AND and a <code>decimal</code> value? The following program demonstrates how reading hex goes wrong. I'd like the same <code>istringstream</code> to be able to read both <code>hex</code> and <code>decimal</code>.</p>
<pre><co... | [
{
"answer_id": 77359,
"author": "nsanders",
"author_id": 1244,
"author_profile": "https://Stackoverflow.com/users/1244",
"pm_score": 4,
"selected": false,
"text": "is >> std::hex >> result;\n"
},
{
"answer_id": 77360,
"author": "user10392",
"author_id": 10392,
"author... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1359466/"
] |
77,278 | <p>People also often ask "How can I compile Perl?" while what they really want is to create an executable that can run on machines even if they don't have Perl installed.</p>
<p>There are several solutions, I know of:</p>
<ol>
<li><a href="http://www.indigostar.com/perl2exe.htm" rel="noreferrer">perl2exe</a> of Indig... | [
{
"answer_id": 77325,
"author": "Bruce",
"author_id": 9698,
"author_profile": "https://Stackoverflow.com/users/9698",
"pm_score": -1,
"selected": false,
"text": "perlcc perl2exe"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/77278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11827/"
] |
77,287 | <p>I have a <code>modal dialog</code> form which has some "help links" within it which should open other non-modal panels or dialogs on top of it (while keeping the main dialog otherwise modal). </p>
<p>However, these always end up behind the mask. <code>YUI</code> seems to be recognizing the highest <code>z-index</... | [
{
"answer_id": 162315,
"author": "Bialecki",
"author_id": 2484,
"author_profile": "https://Stackoverflow.com/users/2484",
"pm_score": 3,
"selected": true,
"text": "YAHOO.widget.Overlay.prototype.bringToTop = function() { };\n this.bringToTop = function() { };\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/77287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8131/"
] |
77,293 | <p>I would like to keep the overhead at a minimum. Right now I have:</p>
<pre><code>// Launch a Message Box with advice to the user
DialogResult result = MessageBox::Show("This may take awhile, do you wish to continue?", "Warning", MessageBoxButtons::YesNo, MessageBoxIcon::Exclamation);
// The test will only be launc... | [
{
"answer_id": 77457,
"author": "Corin Blaikie",
"author_id": 1736,
"author_profile": "https://Stackoverflow.com/users/1736",
"pm_score": 3,
"selected": true,
"text": "MessageBoxButtons::YesNo MessageBoxButtons::OKCancel"
},
{
"answer_id": 86358,
"author": "Andrew Dunaway",
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9058/"
] |
77,342 | <p>The use of XSLT (XML Stylesheet Language Transform) has never seen the same popularity of many of the other languages that came out during the internet boom. While it is in use, and in some cases by large successful companies (i.e. Blizzard Entertainment), it has never seemed to reach mainstream. Why do you think ... | [
{
"answer_id": 77378,
"author": "Mo.",
"author_id": 1870,
"author_profile": "https://Stackoverflow.com/users/1870",
"pm_score": 2,
"selected": false,
"text": "<Really> \n <No>\n <fun/>\n </No>\n</Really> \n"
},
{
"answer_id": 77505,
"author": "Ray Hayes",... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13930/"
] |
77,382 | <p>I have a class with a public array of bytes. Lets say its</p>
<pre><code>Public myBuff as byte()
</code></pre>
<p>Events within the class get chunks of data in byte array. How do i tell the event code to stick the get chunk on the end? Lets say</p>
<pre><code>Private Sub GetChunk
Dim chunk as byte
'... get st... | [
{
"answer_id": 77449,
"author": "David J. Sokol",
"author_id": 1390,
"author_profile": "https://Stackoverflow.com/users/1390",
"pm_score": 0,
"selected": false,
"text": "ArrayList Add ToArray() ReDim Preserve array(newSize)"
},
{
"answer_id": 78059,
"author": "Community",
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
77,387 | <p>In the Java collections framework, the Collection interface declares the following method:</p>
<blockquote>
<p><a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html#toArray(T%5B%5D)" rel="noreferrer"><code><T> T[] toArray(T[] a)</code></a></p>
<p>Returns an array containing all of the elemen... | [
{
"answer_id": 77426,
"author": "Arno",
"author_id": 13685,
"author_profile": "https://Stackoverflow.com/users/13685",
"pm_score": 2,
"selected": false,
"text": "Array.newInstance(Class componentType, int length)\n"
},
{
"answer_id": 77429,
"author": "SCdF",
"author_id": ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13979/"
] |
77,428 | <p>So if you have a RIA version (Silverlight or Flash) and a standard HTML version (or AJAX even), should you have the same URL for both, or is it ok to have a different one for the RIA app and just redirect accordingly?</p>
<p>So, for instance, if you have a site (<a href="http://example.com" rel="nofollow noreferrer... | [
{
"answer_id": 78378,
"author": "Ian Dickinson",
"author_id": 6716,
"author_profile": "https://Stackoverflow.com/users/6716",
"pm_score": 3,
"selected": true,
"text": "http://your.si.te/foobar http://your.si.te/foobar?view=plain"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/77428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10893/"
] |
77,434 | <p>Suppose I have a vector that is nested in a dataframe one or two levels. Is there a quick and dirty way to access the last value, without using the <code>length()</code> function? Something ala PERL's <code>$#</code> special var?</p>
<p>So I would like something like:</p>
<pre><code>dat$vec1$vec2[$#]
</code></pr... | [
{
"answer_id": 83162,
"author": "Gregg Lind",
"author_id": 15842,
"author_profile": "https://Stackoverflow.com/users/15842",
"pm_score": 7,
"selected": false,
"text": "x[length(x)] \n last <- function(x) { return( x[length(x)] ) }\n"
},
{
"answer_id": 83222,
"author": "linde... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14008/"
] |
77,436 | <p>I have an ant build that makes directories, calls javac and all the regular stuff. The issue I am having is that when I try to do a clean (delete all the stuff that was generated) the delete task reports that is was unable to delete some files. When I try to delete them manually it works just fine. The files are app... | [
{
"answer_id": 53188224,
"author": "momo",
"author_id": 5118529,
"author_profile": "https://Stackoverflow.com/users/5118529",
"pm_score": 0,
"selected": false,
"text": "<rename src=\"file.name\" dest=\"file.name.old\"/>\n<delete file=\"file.name.old\" />\n"
},
{
"answer_id": 6943... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8621/"
] |
77,485 | <p>What do folks here see as the relative strengths and weaknesses of Git, Mercurial, and Bazaar?</p>
<p>In considering each of them with one another and against version control systems like SVN and Perforce, what issues should be considered?</p>
<p>In planning a migration from SVN to one of these distributed version... | [
{
"answer_id": 81563,
"author": "Hank Gay",
"author_id": 4203,
"author_profile": "https://Stackoverflow.com/users/4203",
"pm_score": 1,
"selected": false,
"text": "git svn"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/77485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13750/"
] |
77,503 | <p>I am trying to compare two large datasets from a SQL query. Right now the SQL query is done externally and the results from each dataset is saved into its own csv file. My little C# console application loads up the two text/csv files and compares them for differences and saves the differences to a text file.</p>
<p... | [
{
"answer_id": 77617,
"author": "David J. Sokol",
"author_id": 1390,
"author_profile": "https://Stackoverflow.com/users/1390",
"pm_score": 2,
"selected": false,
"text": "StreamReader one = new StreamReader(\"C:\\file1.csv\");\nStreamReader two = new StreamReader(\"C:\\file2.csv\");\nStri... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8664/"
] |
77,528 | <p>I'm currently running Vista and I would like to manually complete the same operations as my Windows Service. Since the Windows Service is running under the Local System Account, I would like to emulate this same behavior. Basically, I would like to run CMD.EXE under the Local System Account.</p>
<p>I found informat... | [
{
"answer_id": 77615,
"author": "Bryant",
"author_id": 10893,
"author_profile": "https://Stackoverflow.com/users/10893",
"pm_score": 3,
"selected": false,
"text": "sc create testsvc binpath= \"cmd /K start\" type= own type= interact"
},
{
"answer_id": 78691,
"author": "Ben Gr... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4115/"
] |
77,534 | <p>When running wsdl.exe on a WSDL I created, I get this error:</p>
<blockquote>
<p>Error: Unable to import binding 'SomeBinding' from namespace 'SomeNS'.</p>
<ul>
<li>Unable to import operation 'someOperation'.</li>
<li>These members may not be derived.</li>
</ul>
</blockquote>
<p>I'm using the document-literal style,... | [
{
"answer_id": 4269920,
"author": "mo.",
"author_id": 178454,
"author_profile": "https://Stackoverflow.com/users/178454",
"pm_score": 3,
"selected": false,
"text": "<wsdl:message name=\"AnfrageRisikoAnfrageL\">\n <wsdl:part name=\"parameters\" element=\"his1_0:typeIn\"/>\n</wsdl:messa... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5726/"
] |
77,535 | <p>Has anyone found a way to get gcc to build/install on SCO6? With 2.95 and 4.3 I get to the point where it needs to use (2.95) or find (4.3) the assembler and that's where it fails.</p>
<p>If anyone has figured this out I would appreciate the info!</p>
<p>Thanks</p>
| [
{
"answer_id": 4269920,
"author": "mo.",
"author_id": 178454,
"author_profile": "https://Stackoverflow.com/users/178454",
"pm_score": 3,
"selected": false,
"text": "<wsdl:message name=\"AnfrageRisikoAnfrageL\">\n <wsdl:part name=\"parameters\" element=\"his1_0:typeIn\"/>\n</wsdl:messa... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14046/"
] |
77,552 | <p>Why is it bad to name a variable <code>id</code> in Python?</p>
| [
{
"answer_id": 77606,
"author": "brian buck",
"author_id": 5926,
"author_profile": "https://Stackoverflow.com/users/5926",
"pm_score": 2,
"selected": false,
"text": "id id some_id ID >>> id(1)\n9787760\n>>> x = 1\n>>> id(x)\n9787760\n"
},
{
"answer_id": 77612,
"author": "Kevi... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5926/"
] |
77,558 | <p>I want to write a raw byte/byte stream to a position in a file.
This is what I have currently:</p>
<pre><code>$fpr = fopen($out, 'r+');
fseek($fpr, 1); //seek to second byte
fwrite($fpr, 0x63);
fclose($fpr);
</code></pre>
<p>This currently writes the actually string value of "99" starting at byte offset 1. IE, i... | [
{
"answer_id": 77585,
"author": "nsayer",
"author_id": 13757,
"author_profile": "https://Stackoverflow.com/users/13757",
"pm_score": 4,
"selected": true,
"text": "fwrite() chr(0x63) 0x63"
},
{
"answer_id": 77597,
"author": "Don Neufeld",
"author_id": 13097,
"author_pr... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10333/"
] |
77,582 | <p>I am looking for a tool for regression testing a suite of equipment we are building.</p>
<p>The current concept is that you create an input file (text/csv) to the tool specifying inputs to the system under test. The tool then captures the outputs from the system and records the inputs and outputs to an output file.... | [
{
"answer_id": 77684,
"author": "apenwarr",
"author_id": 42219,
"author_profile": "https://Stackoverflow.com/users/42219",
"pm_score": 0,
"selected": false,
"text": "x = read_input_file(ifilename);\ny1 = read_expected_data(ofilename);\nsend_input_file_to_server();\ny2 = read_output_from_... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13923/"
] |
77,632 | <p>I thought I'd offer this softball to whomever would like to hit it out of the park. What are generics, what are the advantages of generics, why, where, how should I use them? Please keep it fairly basic. Thanks.</p>
| [
{
"answer_id": 77691,
"author": "Tom Kidd",
"author_id": 2577,
"author_profile": "https://Stackoverflow.com/users/2577",
"pm_score": 3,
"selected": false,
"text": "Dictionary<int, string> dictionary = new Dictionary<int, string>();\n"
},
{
"answer_id": 77716,
"author": "Kevin... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13578/"
] |
77,639 | <p>When is it right for a constructor to throw an exception? (Or in the case of Objective C: when is it right for an init'er to return nil?)</p>
<p>It seems to me that a constructor should fail -- and thus refuse to create an object -- if the object isn't complete. I.e., the constructor should have a contract with its... | [
{
"answer_id": 77797,
"author": "Jacob Krall",
"author_id": 3140,
"author_profile": "https://Stackoverflow.com/users/3140",
"pm_score": 6,
"selected": false,
"text": "Int32.Parse()"
},
{
"answer_id": 5006212,
"author": "stevex",
"author_id": 8831,
"author_profile": "h... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14050/"
] |
77,659 | <p>I have a .NET <strong>2.0</strong> WebBrowser control used to navigate some pages with no user interaction (don't ask...long story). Because of the user-less nature of this application, I have set the WebBrowser control's ScriptErrorsSuppressed property to true, which the documentation included with VS 2005 states ... | [
{
"answer_id": 101632,
"author": "David Mohundro",
"author_id": 4570,
"author_profile": "https://Stackoverflow.com/users/4570",
"pm_score": 4,
"selected": true,
"text": "window.alert = function () { }\n"
},
{
"answer_id": 110048,
"author": "Jim Crafton",
"author_id": 9864... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13791/"
] |
77,664 | <p>We're currently running a server on Compatibility mode 8 and I want to update it. </p>
<ul>
<li>What are the implications of just going in and changing it? </li>
<li>What is likely to break? </li>
<li>Is there anything that checks the data will survive before I perform it? </li>
<li>Can I rollback to mode 8 without... | [
{
"answer_id": 83146,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "char()"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/77664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5055/"
] |
77,694 | <p>I've defined a view with the CCK and View 2 modules. I would like to quickly define a template specific to this view. Is there any tutorial or information on this? What are the files I need to modify?</p>
<hr>
<p><strong>Here are my findings: (Edited)</strong></p>
<p>In fact, there are two ways to theme a view: t... | [
{
"answer_id": 78158,
"author": "Pierre-Jean Coudert",
"author_id": 8450,
"author_profile": "https://Stackoverflow.com/users/8450",
"pm_score": 7,
"selected": true,
"text": "Row style: Node Row style: Fields"
},
{
"answer_id": 1248513,
"author": "userp2m3h",
"author_id": ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8450/"
] |
77,695 | <p>What do I need to set up and maintain a local CPAN mirror? What scripts and best practices should I be aware of?</p>
| [
{
"answer_id": 77840,
"author": "xdg",
"author_id": 11800,
"author_profile": "https://Stackoverflow.com/users/11800",
"pm_score": 5,
"selected": false,
"text": "file:///path/to/my/cpan/mirror\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/77695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9532/"
] |
77,718 | <p>Coming from C++ to Java, the obvious unanswered question is why didn't Java include operator overloading?</p>
<p>Isn't <code>Complex a, b, c; a = b + c;</code> much simpler than <code>Complex a, b, c; a = b.add(c);</code>?</p>
<p>Is there a known reason for this, valid arguments for <em>not</em> allowing operator ... | [
{
"answer_id": 77798,
"author": "Sebastian Redl",
"author_id": 8922,
"author_profile": "https://Stackoverflow.com/users/8922",
"pm_score": 4,
"selected": false,
"text": "Object.Equals Object.ReferenceEquals"
},
{
"answer_id": 77811,
"author": "David Schlosnagle",
"author_... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
77,744 | <p>I have a command line program, which outputs logging to the screen.</p>
<p>I want error lines to show up in red. Is there some special character codes I can output to switch the text color to red, then switch it back to white?</p>
<p>I'm using ruby but I imagine this would be the same in any other language.</p>
<... | [
{
"answer_id": 77803,
"author": "betelgeuce",
"author_id": 366182,
"author_profile": "https://Stackoverflow.com/users/366182",
"pm_score": 0,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace Console_Test\n{\... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/234/"
] |
77,813 | <p>Does anyone have any pointers on how to read the Windows EventLog without using JNI? Or if you <em>have to</em> use JNI, are there any good open-source libraries for doing so?</p>
| [
{
"answer_id": 3832161,
"author": "dB.",
"author_id": 123094,
"author_profile": "https://Stackoverflow.com/users/123094",
"pm_score": 2,
"selected": false,
"text": "EventLogIterator iter = new EventLogIterator(\"Application\"); \nwhile(iter.hasNext()) { \n EventLogRecord recor... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1693/"
] |
77,826 | <p>One thing I've started doing more often recently is <strong>retrieving some data</strong> at the beginning of a task <strong>and storing it in a $_SESSION['myDataForTheTask']</strong>. </p>
<p>Now it seems very convenient to do so but I don't know anything about performance, security risks or similar, using this ap... | [
{
"answer_id": 77906,
"author": "Ryan Smith",
"author_id": 10420,
"author_profile": "https://Stackoverflow.com/users/10420",
"pm_score": 3,
"selected": false,
"text": "SELECT participationcode, modulearray, wavenum FROM mng_wave WHERE wave_id=\".$_GET['wave_id'];\n mysql_real_escape_stri... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11995/"
] |
77,835 | <p>I am trying to run a SeleniumTestCase with phpunit but I cannot get it to run with the phpunit.bat script. </p>
<p>My goal is to use phpunit with Selenium RC in CruiseControl & phpUnderControl. This is what the test looks like:</p>
<pre><code>require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
class WebTe... | [
{
"answer_id": 2146178,
"author": "CruiZen",
"author_id": 232647,
"author_profile": "https://Stackoverflow.com/users/232647",
"pm_score": 1,
"selected": false,
"text": "<?php .. ?> <? .. ?> <?php\nrequire_once 'PHPUnit/Framework.php';\n\nclass StackTest extends PHPUnit_Framework_TestCase... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12645/"
] |
77,836 | <p>Given two vectors <strong>A</strong> and <strong>B</strong> which form the line segment <strong>L</strong> = A-B.
Furthermore given a view frustum <strong>F</strong> which is defined by its left, right, bottom, top, near and far planes.</p>
<p>How do I clip <strong>L</strong> against <strong>F</strong>? </p>
<p>Th... | [
{
"answer_id": 34960552,
"author": "ideasman42",
"author_id": 432509,
"author_profile": "https://Stackoverflow.com/users/432509",
"pm_score": 1,
"selected": false,
"text": "min > max def clip_segment_v3_plane_n(p1, p2, planes):\n \"\"\"\n - p1, p2: pair of 3d vectors defining a lin... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14157/"
] |
77,873 | <p>Are there PHP libraries which can be used to fill PDF forms and then save (flatten) them to PDF files?</p>
| [
{
"answer_id": 78300,
"author": "bmb",
"author_id": 5298,
"author_profile": "https://Stackoverflow.com/users/5298",
"pm_score": 7,
"selected": true,
"text": "pdftk fill_form output flatten ...\n<< /T(f1-1) /V(text of field) >>\n<< /T(f1-2) /V(text of another field) >>\n...\n"
},
{
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14166/"
] |
77,887 | <p>As someone who is just starting to learn the intricacies of computer debugging, for the life of me, I can't understand how to read the Stack Text of a dump in Windbg. I've no idea of where to start on how to interpret them or how to go about it. Can anyone offer direction to this poor soul?</p>
<p>ie (the only dump... | [
{
"answer_id": 78111,
"author": "sachaa",
"author_id": 1152057,
"author_profile": "https://Stackoverflow.com/users/1152057",
"pm_score": 5,
"selected": true,
"text": "SRV*c:\\symbols*http://msdl.microsoft.com/download/symbols\n kpn 200\n 01 MODULE!CLASS.FUNCTIONNAME1(...)\n02 MODULE!CLAS... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14173/"
] |
77,890 | <p>I am writing some code to see if there is a hole in the firewall exception list for <strong>WinXP</strong> and <strong>Vista</strong> for a specific port used by our client software. </p>
<p>I can see that I can use the <code>NetFwMgr.LocalPolicy.CurrentProfile.GloballyOpenPorts</code> to get a list of the current ... | [
{
"answer_id": 78144,
"author": "Jim McKeeth",
"author_id": 255,
"author_profile": "https://Stackoverflow.com/users/255",
"pm_score": 0,
"selected": false,
"text": "Result := False;\nport_enum := mxFirewallManager.LocalPolicy.CurrentProfile.GloballyOpenPorts._NewEnum;\nwhile port_enum.Mo... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12425/"
] |
77,900 | <p>Has anyone ever written a function that can convert all of the controls on an aspx page into a read only version? For example, if UserDetails.aspx is used to edit and save a users information, if someone with inappropriate permissions enter the page, I would like to render it as read-only. So, most controls would ... | [
{
"answer_id": 77938,
"author": "Quintin Robinson",
"author_id": 12707,
"author_profile": "https://Stackoverflow.com/users/12707",
"pm_score": 2,
"selected": false,
"text": "lblWhatever.Text = txtWhatever.Text = whateverOriginatingSource;\nlblSomethingElse.Text = txtSomethingElse.Text = ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8678/"
] |
77,914 | <p>I have an Apache 2 installation on Debian with mod_ssl installed. The server private key is protected by a passphase that needs to be entered on start-up. The error and access logs are subject to logrotate on a weekly basis. I find that Apache crashes with a passphrase-related error shortly after logrotate runs.<... | [
{
"answer_id": 77987,
"author": "Andrew Cholakian",
"author_id": 11105,
"author_profile": "https://Stackoverflow.com/users/11105",
"pm_score": 2,
"selected": false,
"text": "CustomLog \"| /usr/sbin/cronolog /pathtologs/%Y_%m/sitename.com-%Y%m%d.log\" combined\n"
},
{
"answer_id":... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13956/"
] |
77,934 | <p>I have written code to read a windows bitmap and would now like to display it with ltk. How can I construct an appropriate object? Is there such functionality in ltk? If not how can I do it directly interfacing to tk?</p>
| [
{
"answer_id": 78937,
"author": "Bryan Oakley",
"author_id": 7432,
"author_profile": "https://Stackoverflow.com/users/7432",
"pm_score": 2,
"selected": false,
"text": "package require Img\nset image [image create photo -file /path/to/image.bmp]\nlabel .l -image $image\npack .l\n"
},
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1994377/"
] |
77,936 | <p>As part of a project at work I have to calculate the centroid of a set of points in 3D space. Right now I'm doing it in a way that seems simple but naive -- by taking the average of each set of points, as in:</p>
<pre><code>centroid = average(x), average(y), average(z)
</code></pre>
<p>where <code>x</code>, <code>... | [
{
"answer_id": 85787,
"author": "Gregg Lind",
"author_id": 15842,
"author_profile": "https://Stackoverflow.com/users/15842",
"pm_score": 2,
"selected": false,
"text": "N # number of points\nsums = dict(x=0,y=0,z=0) # sums of the locations for each point\n"
},
{
"answer_id": 377... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/676/"
] |
77,954 | <p>How do you get Perl to stop and give a stack trace when you reference an undef value, rather than merely warning? It seems that <code>use strict;</code> isn't sufficient for this purpose.</p>
| [
{
"answer_id": 77969,
"author": "Neil",
"author_id": 14193,
"author_profile": "https://Stackoverflow.com/users/14193",
"pm_score": 2,
"selected": false,
"text": "use Carp ();\n local $SIG{__WARN__} = \\&Carp::confess;\nlocal $SIG{__WARN__} = \\&Carp::cluck;\n confess cluck"
},
{
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14193/"
] |
77,982 | <p>How can I dismiss dialog in Cocoa application when user presses Esc or Enter key? I have OK button, is it possible to make it default button?</p>
| [
{
"answer_id": 78110,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 4,
"selected": true,
"text": "NSAlert NSRunAlertPanel NSBeginAlertSheet"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/77982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14131/"
] |
77,990 | <p>How do some programs edit whats being displayed on the terminal (to pick a random example, the program 'sl')? I'm thinking of the Linux terminal here, it may happen in other OS's too, I don't know. I've always thought once some text was displayed, it stayed there. How do you change it without redrawing the entire s... | [
{
"answer_id": 78039,
"author": "mana",
"author_id": 12016,
"author_profile": "https://Stackoverflow.com/users/12016",
"pm_score": 3,
"selected": false,
"text": "#!/bin/bash\ni=1\nwhile [ true ]\n do\n echo -e -n \"\\r $i\"\n i=$((i+1))\n done\n"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/77990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14210/"
] |
77,996 | <p>Is it possible to create custom events in C++? For example, say I have the variable X, and the variable Y. Whenever X changes, I would like to execute a function that sets Y equal to 3X. Is there a way to create such a trigger/event? (triggers are common in some databases)</p>
| [
{
"answer_id": 78135,
"author": "Adam Wright",
"author_id": 1200,
"author_profile": "https://Stackoverflow.com/users/1200",
"pm_score": 3,
"selected": false,
"text": "template <typename T>\nclass Observable\n{\n T underlying;\n\npublic:\n Observable<T>& operator=(const T &rhs) {\n un... | 2008/09/16 | [
"https://Stackoverflow.com/questions/77996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13790/"
] |
78,018 | <p>In our development environment each developer has their own dev server. Often times they do not actually develop on that server but develop from their local machine, deploy to their dev server, and then attach with the remote debugger to do debugging.</p>
<p>My question is; how can I use MSBuild to execute a diffe... | [
{
"answer_id": 102482,
"author": "Jay Bazuzi",
"author_id": 5314,
"author_profile": "https://Stackoverflow.com/users/5314",
"pm_score": 0,
"selected": false,
"text": "$(USERNAME)"
}
] | 2008/09/16 | [
"https://Stackoverflow.com/questions/78018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3957/"
] |
78,048 | <p>What's the best way to detect an application crash in XP (produces the same pair of 'error' windows each time - each with same window title) and then restart it?</p>
<p>I'm especially interested to hear of solutions that use minimal system resources as the system in question is quite old. </p>
<p>I had thought of ... | [
{
"answer_id": 783527,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "from ctypes import windll, c_int, Structure\nimport subprocess\n\nWaitForDebugEvent = windll.kernel32.WaitForDebugEvent \nC... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13967/"
] |
78,053 | <p>I've been trying to retrieve the locations of all the page breaks on a given Excel 2003 worksheet over COM. Here's an example of the kind of thing I'm trying to do:</p>
<pre><code>Excel::HPageBreaksPtr pHPageBreaks = pSheet->GetHPageBreaks();
long count = pHPageBreaks->Count;
for (long i=0; i < count; ++i... | [
{
"answer_id": 78866,
"author": "Joel Spolsky",
"author_id": 4,
"author_profile": "https://Stackoverflow.com/users/4",
"pm_score": 3,
"selected": true,
"text": "Range(\"A1\").Select\nnumRows = Range(\"A1\").End(xlDown).Row\n\nWhile ActiveWindow.ScrollRow < numRows\n ActiveWindow.Large... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14238/"
] |
78,064 | <p>I've read this <a href="https://stackoverflow.com/questions/40122/exceptions-in-web-services">thread</a> for WCF has inbuilt Custom Fault codes and stuff.</p>
<p>But what is the best practice for <em>ASP.Net</em> web services? Do I throw exceptions and let the client handle the exception or send an Error code (succ... | [
{
"answer_id": 91536,
"author": "Paul van Brenk",
"author_id": 1837197,
"author_profile": "https://Stackoverflow.com/users/1837197",
"pm_score": 3,
"selected": true,
"text": "Private Sub WebServiceExceptionHandler(ByVal ex As Exception)\n Dim ueh As New AspUnhandledExceptionHandler\n ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1747/"
] |
78,069 | <p>Anyone know of any good MSBuild tasks that will execute a PowerShell script and pass it different parameters?</p>
<p>I was able to find <a href="http://bartdesmet.net/blogs/bart/archive/2008/02/16/invoking-powershell-scripts-from-msbuild.aspx" rel="nofollow noreferrer">B# .NET Blog: Invoking PowerShell scripts from... | [
{
"answer_id": 3465029,
"author": "Ruben Bartelink",
"author_id": 11635,
"author_profile": "https://Stackoverflow.com/users/11635",
"pm_score": 3,
"selected": false,
"text": "PowerShellTaskFactory"
},
{
"answer_id": 12817556,
"author": "Ruben Bartelink",
"author_id": 1163... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3957/"
] |
78,077 | <p>What is the best/fastest way to sort Alphanumeric fields? </p>
| [
{
"answer_id": 78118,
"author": "Ciaran",
"author_id": 5048,
"author_profile": "https://Stackoverflow.com/users/5048",
"pm_score": 1,
"selected": false,
"text": "$fruits = array(\"lemon\", \"orange\", \"banana\", \"apple\");\nsort($fruits);\n\nforeach ($fruits as $key => $val)\n{\n ec... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14239/"
] |
78,091 | <p>In the middle of a Perl script, there is a system command I want to execute. I have a string that contains the data that needs to be fed into stdin (the command only accepts input from stdin), and I need to capture the output written to stdout. I've looked at the various methods of executing system commands in Perl,... | [
{
"answer_id": 78154,
"author": "X-Istence",
"author_id": 13986,
"author_profile": "https://Stackoverflow.com/users/13986",
"pm_score": 1,
"selected": false,
"text": "open2()\n"
},
{
"answer_id": 78201,
"author": "benzado",
"author_id": 10947,
"author_profile": "https... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
78,125 | <p>The following code snippet (correctly) gives a warning in C and an error in C++ (using gcc & g++ respectively, tested with versions 3.4.5 and 4.2.1; MSVC does not seem to care):</p>
<pre><code>char **a;
const char** b = a;
</code></pre>
<p>I can understand and accept this.<br>
The C++ solution to this problem ... | [
{
"answer_id": 78202,
"author": "Kevin",
"author_id": 6386,
"author_profile": "https://Stackoverflow.com/users/6386",
"pm_score": 7,
"selected": true,
"text": "char** const char*const*"
},
{
"answer_id": 78218,
"author": "Aaron",
"author_id": 14153,
"author_profile": ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14266/"
] |
78,127 | <p>Apple's CoreGraphics library defines two functions for describing an arc.</p>
<ul>
<li>CGPathAddArc adds an arc based on a center point, radius, and pair of angles.</li>
<li>CGPathAddArcToPoint adds an arc based on a radius and a pair of tangent lines.</li>
</ul>
<p>The details are explained in <a href="http://dev... | [
{
"answer_id": 19065433,
"author": "James Snook",
"author_id": 2599552,
"author_profile": "https://Stackoverflow.com/users/2599552",
"pm_score": 6,
"selected": false,
"text": "CGContextAddArc startAngle endAngle radius x y CGContextAddArcToPoint x1 x2 y1 y2 radius (x1, y1) (x1, y1) (x2, ... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10947/"
] |
78,141 | <h2>Edit - New Question</h2>
<p>Ok lets rephrase the question more generically. </p>
<p>Using reflection, is there a way to dynamically call at runtime a base class method that you may be overriding. You cannot use the 'base' keyword at compile time because you cannot be sure it exists. At runtime I want to list my a... | [
{
"answer_id": 78315,
"author": "Mike Dimmick",
"author_id": 6970,
"author_profile": "https://Stackoverflow.com/users/6970",
"pm_score": 3,
"selected": false,
"text": "components components components"
},
{
"answer_id": 78322,
"author": "Sunny Milenov",
"author_id": 8220,... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7984/"
] |
78,157 | <p>I'm working on an embedded Linux project that interfaces an ARM9 to a hardware video encoder chip, and writes the video out to SD card or USB stick. The software architecture involves a kernel driver that reads data into a pool of buffers, and a userland app that writes the data to a file on the mounted removable de... | [
{
"answer_id": 78284,
"author": "Drew Frezell",
"author_id": 10954,
"author_profile": "https://Stackoverflow.com/users/10954",
"pm_score": 3,
"selected": false,
"text": "fopen, fread, fwrite open, read, write O_SYNC copy_to_user"
},
{
"answer_id": 84160,
"author": "shodanex",... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14200/"
] |
78,161 | <p>In a C++ app, I have an hWnd pointing to a window running in a third party process. This window contains controls which extend the COM TreeView control. I am interested in obtaining the CheckState of this control.<br>
I use the hWnd to get an HTREEITEM using TreeView_GetRoot(hwnd) from commctrl.h</p>
<p>hwnd points... | [
{
"answer_id": 79794,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 3,
"selected": true,
"text": "#define TreeView_SetItemState(hwndTV, hti, data, _mask) \\\n{ TVITEM _ms_TVi;\\\n _ms_TVi.mask = TVIF_STATE; \\\n _ms_TV... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/165305/"
] |
78,172 | <p>In the C programming language and Pthreads as the threading library; do variables/structures that are shared between threads need to be declared as volatile? Assuming that they might be protected by a lock or not (barriers perhaps).</p>
<p>Does the pthread POSIX standard have any say about this, is this compiler-de... | [
{
"answer_id": 559133,
"author": "cmcginty",
"author_id": 64313,
"author_profile": "https://Stackoverflow.com/users/64313",
"pm_score": 2,
"selected": false,
"text": "Volatile volatile volatile"
},
{
"answer_id": 8120128,
"author": "IOException",
"author_id": 230803,
... | 2008/09/16 | [
"https://Stackoverflow.com/questions/78172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11688/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.