qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
187,453
<p>Would it suppose any difference regarding overhead to write an import loading all the types within one package (<code>import java.*</code>); than just a specific type (i.e. <code>import java.lang.ClassLoader</code>)? Would the second one be a more advisable way to use than the other one?</p>
[ { "answer_id": 187487, "author": "Chris Cudmore", "author_id": 18907, "author_profile": "https://Stackoverflow.com/users/18907", "pm_score": 7, "selected": false, "text": "java.lang.reflect.Array\njava.sql.Array\n java.lang.reflect.* java.sql.*" }, { "answer_id": 187789, "aut...
2008/10/09
[ "https://Stackoverflow.com/questions/187453", "https://Stackoverflow.com", "https://Stackoverflow.com/users/94303/" ]
187,455
<p>How can I count the number of elements in an array, because contrary to logic array.count(string) does not count all the elements in the array, it just searches for the number of occurrences of string.</p>
[ { "answer_id": 187463, "author": "Trent", "author_id": 9083, "author_profile": "https://Stackoverflow.com/users/9083", "pm_score": 9, "selected": true, "text": "len(myArray)\n myArray = [1, 2, 3]\nlen(myArray)\n 3\n" }, { "answer_id": 187493, "author": "Kevin Little", "au...
2008/10/09
[ "https://Stackoverflow.com/questions/187455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/115/" ]
187,465
<p>Any ideas how i can best drive a USB POS printer from c#. POS printers are usually serial, TCP/IP or USB based. I know how to accomplish serial and TCP/IP but have no idea about communications through USB in C#. I know that there is a layer available from Microsoft called POS.NET, but I want to try and avoid using t...
[ { "answer_id": 187504, "author": "Mark Cidade", "author_id": 1659, "author_profile": "https://Stackoverflow.com/users/1659", "pm_score": 2, "selected": false, "text": " [ DllImport( \"hid.dll\", SetLastError=true ) ]\n public static extern Boolean \n HidD_FlushQueue( SafeFileHan...
2008/10/09
[ "https://Stackoverflow.com/questions/187465", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20339/" ]
187,482
<p>I'd like to use the newer <code>&lt;button&gt;</code> tag in an ASP.NET website which, among other things, allows CSS-styled text and embedding a graphic inside the button. The asp:Button control renders as <code>&lt;input type="button"&gt;</code>, is there any way to make a preexisting control render to <code>&lt;b...
[ { "answer_id": 573990, "author": "Dan Herbert", "author_id": 392, "author_profile": "https://Stackoverflow.com/users/392", "pm_score": 5, "selected": false, "text": "Button TagName TagKey Button Button [ParseChildren(false)]\n[PersistChildren(true)]\npublic class ModernButton : Button\n{...
2008/10/09
[ "https://Stackoverflow.com/questions/187482", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1249/" ]
187,495
<p>In my program, how can I read the properties set in AssemblyInfo.cs:</p> <pre><code>[assembly: AssemblyTitle("My Product")] [assembly: AssemblyDescription("...")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Radeldudel inc.")] [assembly: AssemblyProduct("My Product")] [assembly: AssemblyCopyrig...
[ { "answer_id": 187529, "author": "Jeff Yates", "author_id": 23234, "author_profile": "https://Stackoverflow.com/users/23234", "pm_score": 7, "selected": true, "text": "typeof(MyTypeInAssembly).Assembly\n object[] attributes = assembly.GetCustomAttributes(typeof(AssemblyProductAttribute),...
2008/10/09
[ "https://Stackoverflow.com/questions/187495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7021/" ]
187,505
<p>I have few different applications among which I'd like to share a C# enum. I can't quite figure out how to share an enum declaration between a regular application and a WCF service. </p> <p>Here's the situation. I have 2 lightweight C# destop apps and a WCF webservice that all need to share enum values. </p> <p>Cl...
[ { "answer_id": 189029, "author": "Keith G", "author_id": 5208, "author_profile": "https://Stackoverflow.com/users/5208", "pm_score": 5, "selected": false, "text": "using Common; \n\n[ServiceContract]\n[ServiceKnownType(typeof(MyEnum))]\npublic interface IMyService\n{\n [OperationCont...
2008/10/09
[ "https://Stackoverflow.com/questions/187505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5208/" ]
187,506
<p>I'm involved with updating an Access solution. It has a good amount of VBA, a number of queries, a small amount of tables, and a few forms for data entry &amp; report generation. It's an ideal candidate for Access.</p> <p>I want to make changes to the table design, the VBA, the queries, and the forms. How can I ...
[ { "answer_id": 211210, "author": "Oliver", "author_id": 28828, "author_profile": "https://Stackoverflow.com/users/28828", "pm_score": 9, "selected": true, "text": "OpenAccessProject() OpenCurrentDatabase() ' Usage:\n' CScript decompose.vbs <input file> <path>\n\n' Converts all modules, ...
2008/10/09
[ "https://Stackoverflow.com/questions/187506", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1753/" ]
187,515
<p>I have two arrays. One contains <code>id=&gt;count</code> and the other contains <code>id=&gt;name</code>. I'm trying to produce a single array that is <code>name=&gt;count</code>. Any suggestions on a straightforward way to do this?</p> <p>I have looked at the <a href="http://us2.php.net/manual/en/ref.array.php" r...
[ { "answer_id": 187533, "author": "KernelM", "author_id": 22328, "author_profile": "https://Stackoverflow.com/users/22328", "pm_score": 3, "selected": true, "text": "foreach($countA as $id => $count)\n{\n $newArray[$nameA[$id]] = $count;\n}\n" }, { "answer_id": 187534, "aut...
2008/10/09
[ "https://Stackoverflow.com/questions/187515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/572/" ]
187,526
<p>I'd like to be able to run my aliases from my .bashrc in the "Run Application" dialog that comes up when you hit Alt+F2 in Ubuntu/Gnome.</p> <p>Does anyone know how to do this?</p>
[ { "answer_id": 198830, "author": "Anders Eurenius", "author_id": 1421, "author_profile": "https://Stackoverflow.com/users/1421", "pm_score": 3, "selected": true, "text": ".bashrc xterm -e 'bash -c \"unzip -l %f; sleep 5\"' rm -rf ~/.local/share/applications/ xterm-usercreated.desktop [De...
2008/10/09
[ "https://Stackoverflow.com/questions/187526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26510/" ]
187,531
<p>I have a package that I just made and I have an "old-mode" that basically makes it work like it worked before: importing everything into the current namespace. One of the nice things about having this as a package is that we no longer have to do that. Anyway, what I would like to do is have it so that whenever any...
[ { "answer_id": 187541, "author": "moritz", "author_id": 14132, "author_profile": "https://Stackoverflow.com/users/14132", "pm_score": 4, "selected": false, "text": "sub import package Foo use Foo package Foo;\nuse Exporter;\n\nsub import {\n warn \"called with paramters '@_'\";\n\n ...
2008/10/09
[ "https://Stackoverflow.com/questions/187531", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12448/" ]
187,537
<p>Is there a case insensitive version of the <a href="http://docs.jquery.com/Selectors/contains" rel="noreferrer">:contains</a> jQuery selector or should I do the work manually by looping over all elements and comparing their .text() to my string?</p>
[ { "answer_id": 187557, "author": "Pat", "author_id": 238, "author_profile": "https://Stackoverflow.com/users/238", "pm_score": 8, "selected": true, "text": "jQuery.extend(\n jQuery.expr[':'], { \n Contains : \"jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0\" \n})...
2008/10/09
[ "https://Stackoverflow.com/questions/187537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/238/" ]
187,550
<p>I have a lot of Java source code that requires custom pre-processing. I'd like rid of it but that's not feasible right now so I'm stuck with it. Given that I have an unfortunate problem that shouldn't have existed in the first place, how do I solve it using maven? </p> <p>(For the full story, I'm replacing a python...
[ { "answer_id": 189299, "author": "Travis B. Hartwell", "author_id": 10873, "author_profile": "https://Stackoverflow.com/users/10873", "pm_score": 4, "selected": true, "text": " <build>\n <plugins>\n <plugin>\n <groupId>org.apache.maven.plugins</groupId>\n <artifactId>maven...
2008/10/09
[ "https://Stackoverflow.com/questions/187550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/974/" ]
187,552
<p>What's the best way of capturing an mp3 stream coming off of http and saving it to disk with python?</p> <p>Thus far I've tried</p> <pre><code>target = open(target_path, "w") conn = urllib.urlopen(stream_url) while True: target.write(conn.read(buf_size)) </code></pre> <p>This gives me data but its garbled or ...
[ { "answer_id": 187563, "author": "Adam Rosenfield", "author_id": 9530, "author_profile": "https://Stackoverflow.com/users/9530", "pm_score": 5, "selected": true, "text": "target target = open(target_path, \"wb\")\n" }, { "answer_id": 3193428, "author": "Boiler", "author_i...
2008/10/09
[ "https://Stackoverflow.com/questions/187552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2906/" ]
187,555
<p>I have a flash program that loads movie clips dynamically and sometimes they want to use more than the space that I give them. Ideally I'd like to force them to only show content in borders I give them. The reason I want this is that my program has a user interface that sometimes gets covered up by this behavior. I'...
[ { "answer_id": 188666, "author": "defmeta", "author_id": 10875, "author_profile": "https://Stackoverflow.com/users/10875", "pm_score": 0, "selected": false, "text": "private function onClipLoaded(clipRef:MovieClip) {\n if (clipRef.width > myViewArea.width) {\n var scaleRatio:Nu...
2008/10/09
[ "https://Stackoverflow.com/questions/187555", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12261/" ]
187,560
<p>I am migrating a site from SharePoint 2 to 3 (in fact, from SharePoint Portal Server 2003 to Microsoft Office SharePoint Server 2007). There are a handful of 3rd party web parts and since this is a migration, not an in-place upgrade, I need to install these web parts on the new farm.</p> <p>How do I do this, given...
[ { "answer_id": 188684, "author": "Ryan", "author_id": 20198, "author_profile": "https://Stackoverflow.com/users/20198", "pm_score": 3, "selected": true, "text": "STSADM -o addwppack -filename <filename.CAB>\n" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/187560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3142/" ]
187,567
<p>I used Visual Studio's Application Wizard to create a skeleton MFC program with a multi-document interface. When I start this program, it automatically creates a child frame, which I don't want it to do - I need the main frame's client area to be empty until the user chooses to open a file.</p> <p>The debugger tel...
[ { "answer_id": 187931, "author": "jeffm", "author_id": 1544, "author_profile": "https://Stackoverflow.com/users/1544", "pm_score": 3, "selected": true, "text": "if (!ProcessShellCommand(cmdInfo))\n if (cmdInfo.m_nShellCommand != CCommandLineInfo::FileNew && !ProcessShellCommand(cmdInfo))...
2008/10/09
[ "https://Stackoverflow.com/questions/187567", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11575/" ]
187,576
<p>I am developing a little app that retrieves an XML file, located on a remote server (<code>http://example.com/myfile.xml</code>) This file is relatively big, and it contains a big list of geolocations with other information that I need to use for my app. So I read this file remotely once and insert it into a little ...
[ { "answer_id": 187909, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": true, "text": ".proto .proto .proto" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/187576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12067/" ]
187,583
<p>I have one std::list&lt;> container and these threads:</p> <ul> <li><p>One writer thread which adds elements indefinitely.</p></li> <li><p>One reader/writer thread which reads and removes elements while available.</p></li> <li><p>Several reader threads which access the SIZE of the container (by using the size() met...
[ { "answer_id": 242721, "author": "Tal", "author_id": 11287, "author_profile": "https://Stackoverflow.com/users/11287", "pm_score": 1, "selected": false, "text": "volatile unsigned int ContainerSize = 0;\n" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/187583", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11441/" ]
187,587
<p>I'm looking for the equivalent of the Unix 'tail' command that will allow me to watch the output of a log file while it is being written to.</p>
[ { "answer_id": 187826, "author": "Philibert Perusse", "author_id": 7984, "author_profile": "https://Stackoverflow.com/users/7984", "pm_score": 4, "selected": false, "text": "---------- T.TXT: 15\n tail.bat REM tail.bat\nREM\nREM Usage: tail.bat <file> <number-of-lines> \nREM\nREM Example...
2008/10/09
[ "https://Stackoverflow.com/questions/187587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/445016/" ]
187,588
<p>We have a shrink wrap type Windows server application where we need to create a self signed certificate on the server to be used by some WCF web services. From our searches on the web, it appears that the makecert utility in the PlatformSDK from Microsoft cannot be distributed with our application, so we're looking...
[ { "answer_id": 2273239, "author": "Naveen", "author_id": 220854, "author_profile": "https://Stackoverflow.com/users/220854", "pm_score": 4, "selected": true, "text": "Windows SDK Files\n\nSubject to the license terms for the software, the following files may be distributed unmodified:\n\...
2008/10/09
[ "https://Stackoverflow.com/questions/187588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3429/" ]
187,619
<p>I have headers in <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> tags. Is there a way that I can use JavaScript to generate a table of contents for the contents that serves as anchor tags as well?</p> <p>I would like the output to be something like:</p> <pre><code>&lt;ol&gt; &lt;li&gt;Header 1&lt;/li&...
[ { "answer_id": 187649, "author": "Ates Goral", "author_id": 23501, "author_profile": "https://Stackoverflow.com/users/23501", "pm_score": 1, "selected": false, "text": "getElementsByTagName() <h1> <h6> <h*> <ul> <ol> <a>" }, { "answer_id": 187946, "author": "Ates Goral", ...
2008/10/09
[ "https://Stackoverflow.com/questions/187619", "https://Stackoverflow.com", "https://Stackoverflow.com/users/572/" ]
187,621
<p>I am aware of how to setup autocompletion of python objects in the python interpreter (on unix). </p> <ul> <li>Google shows many hits for explanations on how to do this.</li> <li>Unfortunately, there are so many references to that it is difficult to find what I need to do, which is slightly different.</li> </ul> ...
[ { "answer_id": 187660, "author": "ephemient", "author_id": 20713, "author_profile": "https://Stackoverflow.com/users/20713", "pm_score": 7, "selected": true, "text": "readline import readline\n\ndef completer(text, state):\n options = [i for i in commands if i.startswith(text)]\n i...
2008/10/09
[ "https://Stackoverflow.com/questions/187621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3045/" ]
187,627
<p>I'm trying to use a static library created by me in Visual C++ 2005 (unmanaged C++). I declare one function "int myF(int a);" into a .h file, I implement it in a .cpp file, I compile it - the .lib file is produced.</p> <p>I create a new project (a separate solution) in VC++ 2005 (also native C++), I add the paths f...
[ { "answer_id": 187680, "author": "Rodney Schuler", "author_id": 6188, "author_profile": "https://Stackoverflow.com/users/6188", "pm_score": 2, "selected": false, "text": "#pragma comment(lib, \"MyStatic.lib\")\n" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/187627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26519/" ]
187,629
<p>I'm looking at maybe moving from an older AMD64 to a new Intel dual-core which is 32 bit. Installation isn't a problem but can I transfer all the installed apps? I haven't been able to find anything so far on Google except where the migration is to a similar platform and file-system. I won't change the filesystem bu...
[ { "answer_id": 187747, "author": "Mark Roddy", "author_id": 9940, "author_profile": "https://Stackoverflow.com/users/9940", "pm_score": 2, "selected": false, "text": "dpkg -l|awk '/^ii\\s*(.*)\\s*/ {print $2}'|packages.txt\n #!/bin/sh\nfor p in $(cat packages.txt); do apt-get install $p;...
2008/10/09
[ "https://Stackoverflow.com/questions/187629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5549/" ]
187,633
<p>First of all, I'd like to say that this site is great!</p> <p>My question is, what are the reasons for the following 2 error messages?</p> <p>1) In VB.NET (I know this is a C# forum but my next question is from C# experience), property evaluation failed (I do this when putting a watch on an exception variable).</p...
[ { "answer_id": 187667, "author": "John Rudy", "author_id": 14048, "author_profile": "https://Stackoverflow.com/users/14048", "pm_score": 2, "selected": false, "text": "HttpContext context = new HttpContext;\n HttpContext context = HttpContext.Current;\n" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/187633", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
187,640
<p>Is it good practice to have a class constructor that uses default parameters, or should I use separate overloaded constructors? For example:</p> <pre><code>// Use this... class foo { private: std::string name_; unsigned int age_; public: foo(const std::string&amp; name = "", const unsigned int age = ...
[ { "answer_id": 187693, "author": "Sam Stokes", "author_id": 20131, "author_profile": "https://Stackoverflow.com/users/20131", "pm_score": 6, "selected": false, "text": "class Vehicle {\npublic:\n Vehicle(int wheels, std::string name = \"Mini\");\n};\n\nVehicle x = 5; // this compiles j...
2008/10/09
[ "https://Stackoverflow.com/questions/187640", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9236/" ]
187,644
<p>Is there a tool that creates a diff of a file structure, perhaps based on an MD5 manifest. My goal is to send a package across the wire that contains new/updated files and a list of files to remove. It needs to copy over new/updated files and remove files that have been deleted on the source file structure?</p>
[ { "answer_id": 189378, "author": "Robᵩ", "author_id": 8747, "author_profile": "https://Stackoverflow.com/users/8747", "pm_score": 2, "selected": false, "text": "rsync -az --del /path/to/master dup-site:/path/to/duplicate\n" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/187644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24279/" ]
187,669
<p>I have a linker command file that assigns the top address of the stack into a variable </p> <pre><code>_stack = . + 0x80000; </code></pre> <p>I want to use this address in a 'c' program - I want to copy the stack to another location and then update the stack pointer to point to the new location before doing a de...
[ { "answer_id": 187727, "author": "Mark Ransom", "author_id": 5987, "author_profile": "https://Stackoverflow.com/users/5987", "pm_score": 4, "selected": true, "text": "extern u32 _stack;\nU32 * stackPtr;\nstackPtr = &_stack;\n" }, { "answer_id": 194229, "author": "Tall Jeff", ...
2008/10/09
[ "https://Stackoverflow.com/questions/187669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23402/" ]
187,676
<p>I know this is a bit of a newbie question, but are there equivalents to C#'s string operations in Java?</p> <p>Specifically, I'm talking about <code>String.Format</code> and <code>String.Join</code>.</p>
[ { "answer_id": 187720, "author": "Allain Lalonde", "author_id": 2443, "author_profile": "https://Stackoverflow.com/users/2443", "pm_score": 6, "selected": false, "text": " static String join(Collection<?> s, String delimiter) {\n StringBuilder builder = new StringBuilder();\n Ite...
2008/10/09
[ "https://Stackoverflow.com/questions/187676", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20400/" ]
187,695
<p>I've just seen this in the MS Visual Studio docs and the part in bold doesn't make sense to me. Is it wrong or am I not understanding it properly? If you run this, b appears to hold "hello" (as I would expect) and not "h".</p> <p>Strings are <em>immutable</em>--the contents of a string object cannot be changed afte...
[ { "answer_id": 187709, "author": "user7116", "author_id": 7116, "author_profile": "https://Stackoverflow.com/users/7116", "pm_score": 3, "selected": false, "text": "string b = \"h\";\nb = b + \"ello\";\n string b = \"h\"; // b := 0x00001000 [\"h\"]\nstring tmp1 = \"ello\"; /...
2008/10/09
[ "https://Stackoverflow.com/questions/187695", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
187,713
<p>In C++, what's the generic way to convert any floating point value (float) to <a href="http://en.wikipedia.org/wiki/Fixed-point_arithmetic" rel="noreferrer"><strong>fixed point</strong></a> (int, 16:16 or 24:8)?</p> <p><strong>EDIT:</strong> For clarification, fixed-point values have two parts to them: an integer p...
[ { "answer_id": 187808, "author": "Kevin", "author_id": 6386, "author_profile": "https://Stackoverflow.com/users/6386", "pm_score": 6, "selected": true, "text": "// A signed fixed-point 16:16 class\nclass FixedPoint_16_16\n{\n short intPart;\n unsigned short fracPart;\n\npu...
2008/10/09
[ "https://Stackoverflow.com/questions/187713", "https://Stackoverflow.com", "https://Stackoverflow.com/users/209/" ]
187,736
<p>I'm writing a command line tool to help my web app. It needs a password to connect to the service. I'd like the script to show a password prompt so I don't have to pass it as a command line argument. </p> <p>That's easy enough, but I'd like it to not echo the password to the screen as it's typed. How can I do this ...
[ { "answer_id": 187821, "author": "Gabriel Gilini", "author_id": 25853, "author_profile": "https://Stackoverflow.com/users/25853", "pm_score": 2, "selected": false, "text": "@echo off\ncls\nSET /P uname=Enter Username:\necho hP1X500P[PZBBBfh#b##fXf-V@`$fPf]f3/f1/5++u5>in.com\nset /p passw...
2008/10/09
[ "https://Stackoverflow.com/questions/187736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2506/" ]
187,742
<p>I have this:</p> <pre><code>public string Log { get { return log; } protected set { if (log != value) { MarkModified(PropertyNames.Log, log); log = value; } } } </...
[ { "answer_id": 187769, "author": "Darren Kopp", "author_id": 77, "author_profile": "https://Stackoverflow.com/users/77", "pm_score": 2, "selected": false, "text": "PropertyInfo property = type.GetProperty(\"MyProperty\", BindingFlags.Public | BindingFlags.SetProperty | BindingFlags.Insta...
2008/10/09
[ "https://Stackoverflow.com/questions/187742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/549/" ]
187,761
<p>POSIX allows mutexes to be recursive. That means the same thread can lock the same mutex twice and won't deadlock. Of course it also needs to unlock it twice, otherwise no other thread can obtain the mutex. Not all systems supporting pthreads also support recursive mutexes, but if they want to be <a href="http://www...
[ { "answer_id": 62178568, "author": "Igor G", "author_id": 11102572, "author_profile": "https://Stackoverflow.com/users/11102572", "pm_score": 1, "selected": false, "text": "pthread_mutex_unlock pthread_mutex_t g_mutex;\n\nvoid foo()\n{\n pthread_mutex_lock(&g_mutex);\n // Do s...
2008/10/09
[ "https://Stackoverflow.com/questions/187761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15809/" ]
187,768
<p>I've created a copy utility in c# (.NET 2.0 Framework) that copies files, directories and recursive sub directories etc. The program has a GUI that shows the current file being copied, the current file number (sequence), the total number of files to be copied and the percentage completed for the copy operations. The...
[ { "answer_id": 190853, "author": "cfeduke", "author_id": 5645, "author_profile": "https://Stackoverflow.com/users/5645", "pm_score": 3, "selected": false, "text": "Microsoft.VisualBasic.FileIO.FileSystem.CopyFile(\n srcPath, \n dstPath, \n Microsoft.VisualBasic.FileIO.UIOption.A...
2008/10/09
[ "https://Stackoverflow.com/questions/187768", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9732/" ]
187,770
<p>I have a database called foo and a database called bar. I have a table in foo called tblFoobar that I want to move (data and all) to database bar from database foo. What is the SQL statement to do this?</p>
[ { "answer_id": 187785, "author": "Amy B", "author_id": 8155, "author_profile": "https://Stackoverflow.com/users/8155", "pm_score": 9, "selected": true, "text": "INSERT INTO bar..tblFoobar( *fieldlist* )\nSELECT *fieldlist* FROM foo..tblFoobar\n" }, { "answer_id": 187833, "aut...
2008/10/09
[ "https://Stackoverflow.com/questions/187770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7952/" ]
187,774
<p>I have XML that looks like</p> <pre><code>&lt;answers&gt; &lt;answer&gt; &lt;question-number&gt;1&lt;/question-number&gt; &lt;value&gt;3&lt;/value&gt; &lt;mean xsi:nil="1" /&gt; &lt;/answer&gt; &lt;answer&gt; &lt;question-number&gt;2&lt;/question-number&gt; &lt;value&gt;2&lt;...
[ { "answer_id": 187843, "author": "Robert Gould", "author_id": 15124, "author_profile": "https://Stackoverflow.com/users/15124", "pm_score": 0, "selected": false, "text": "<xs:if test=\"/answers/answer/mean\">You have a mean</xs:if>\n <xs:if test=\"(count(/answers/answer/mean)==1)\">You h...
2008/10/09
[ "https://Stackoverflow.com/questions/187774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237/" ]
187,777
<p>How can I get the BSSID / MAC (Media Access Control) address of the wireless access point my system is connected to using C#?</p> <p>Note that I'm interested in the BSSID of the WAP. This is different from the MAC address of the networking portion of the WAP.</p>
[ { "answer_id": 187867, "author": "Iain", "author_id": 5993, "author_profile": "https://Stackoverflow.com/users/5993", "pm_score": 6, "selected": true, "text": "netsh wlan show networks mode=Bssid | findstr \"BSSID\"\n arp -a | findstr 192.168.1.254\n var wlanClient = new WlanClient();\nf...
2008/10/09
[ "https://Stackoverflow.com/questions/187777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5993/" ]
187,779
<p>Is it possible to update IIS on Windows XP from 5.1 to 6?</p> <p>If so how?</p> <p>Thanks.</p>
[ { "answer_id": 187802, "author": "Grant Wagner", "author_id": 9254, "author_profile": "https://Stackoverflow.com/users/9254", "pm_score": 6, "selected": true, "text": "XP = IIS 5.1\n2003 = IIS 6\n2008 = IIS 7\n" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/187779", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12148/" ]
187,795
<p>For simplicity lets say I have two flex mxml pages. </p> <p>form.mxml<br> button.mxml</p> <p>If the form.mxml page had the following code, it should work fine:</p> <pre><code>&lt;custom:SelectView dSource="{_thedata}" id="form" visible="false"&gt; &lt;/custom:SelectView&gt; &lt;mx:LinkButton label="Show" id="lbS...
[ { "answer_id": 187889, "author": "Matt Dillard", "author_id": 863, "author_profile": "https://Stackoverflow.com/users/863", "pm_score": 0, "selected": false, "text": "button.mxml <mx:Script>\n<![CDATA[\n [Bindable] public var myForm:MyFormClass;\n]]>\n</mx:Script>\n\n<mx:LinkButton la...
2008/10/09
[ "https://Stackoverflow.com/questions/187795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24563/" ]
187,797
<p>Say I've got a class like this:</p> <pre><code>class Test { int x; SomeClass s; } </code></pre> <p>And I instantiate it like this:</p> <pre><code>Test* t = new Test; </code></pre> <p>Is x on the stack, or the heap? What about s?</p>
[ { "answer_id": 187806, "author": "Avdi", "author_id": 20487, "author_profile": "https://Stackoverflow.com/users/20487", "pm_score": 3, "selected": false, "text": "new t" }, { "answer_id": 187811, "author": "moonshadow", "author_id": 11834, "author_profile": "https://S...
2008/10/09
[ "https://Stackoverflow.com/questions/187797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12828/" ]
187,799
<p>Let me start by saying I'm a huge fan of the elegance of this pattern -- I have a group of basic entities that I have implemented builders for (specifically for testing). However I have found (and this may be the caveat) that as my program evolved I kept having to go back and re-work the builders. In the end, it r...
[ { "answer_id": 222686, "author": "craigb", "author_id": 18590, "author_profile": "https://Stackoverflow.com/users/18590", "pm_score": 4, "selected": true, "text": "User fred = CreateUser(\"fred\").WithReputation(900)\n .WithScholarBadge()\n ...
2008/10/09
[ "https://Stackoverflow.com/questions/187799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25807/" ]
187,804
<p>I would like a "system" that monitors a process and would kill said process if:</p> <ul> <li>the process exceeds some memory requirements</li> <li>the process does not respond to a message from the "system" in some period of time</li> </ul> <p>I assume this "system" could be something as simple as a monitoring pro...
[ { "answer_id": 187824, "author": "Avdi", "author_id": 20487, "author_profile": "https://Stackoverflow.com/users/20487", "pm_score": 4, "selected": true, "text": "ulimit" }, { "answer_id": 12206999, "author": "Jon Jensen", "author_id": 1637217, "author_profile": "https...
2008/10/09
[ "https://Stackoverflow.com/questions/187804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21317/" ]
187,827
<p>So for this one project, we have a bunch of queries that are executed on a regular basis (every minute or so. I used the "Analyze Query in Database Engine " to check on them. </p> <p>They are pretty simple: select * from tablex where processed='0'</p> <p>There is an index on processed, and each query should return...
[ { "answer_id": 188179, "author": "Josef", "author_id": 5581, "author_profile": "https://Stackoverflow.com/users/5581", "pm_score": 6, "selected": true, "text": "SELECT * FROM tablename WHERE col1=value col1 col1 AUTO UPDATE STATISTICS" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/187827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23238/" ]
187,836
<p>Sometimes while debugging, I need to restart a service on a remote machine. Currently, I'm doing this via Remote Desktop. How can it be done from the command line on my local machine?</p>
[ { "answer_id": 187854, "author": "Vinko Vrsalovic", "author_id": 5190, "author_profile": "https://Stackoverflow.com/users/5190", "pm_score": 9, "selected": true, "text": "sc \\\\machine stop <service>\n" }, { "answer_id": 187918, "author": "Andrew Moore", "author_id": 262...
2008/10/09
[ "https://Stackoverflow.com/questions/187836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/549/" ]
187,849
<p>I am experiencing some weird behavior with localized messages reported from my background worker process in my windows forms application.</p> <p>The application is a setup application with windows forms. The application launches a background worker to perform and IIS reset and then install MSIs.</p> <p>The first t...
[ { "answer_id": 8898322, "author": "Maik Preuss", "author_id": 1154412, "author_profile": "https://Stackoverflow.com/users/1154412", "pm_score": 2, "selected": false, "text": " private delegate CultureInfo GetUICultureCallback();\n\n private CultureInfo GetUICulture()\n ...
2008/10/09
[ "https://Stackoverflow.com/questions/187849", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26540/" ]
187,851
<p>How can I open a synchronous dialog in Flex? I need to call a function from an External Interface (JavaScript) that will open a simple dialog in the Flex application and returns an value according to the button the user has clicked (OK/Cancel).</p> <p>So it should by a synchronous call to a dialog, i.e. the call wa...
[ { "answer_id": 187955, "author": "David Arno", "author_id": 7122, "author_profile": "https://Stackoverflow.com/users/7122", "pm_score": 2, "selected": false, "text": "function onApplicationUnload():void\n{\n showDialog(resultMethod);\n}\n\nfunction resultMethod(result:Boolean):void\n{...
2008/10/09
[ "https://Stackoverflow.com/questions/187851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7524/" ]
187,855
<p>I keep hearing about the DRY Principle and how it is so important in ASP.NET MVC, but when I do research on Google I don't seem to quite understand exactly how it applies to MVC.</p> <p>From what I've read its not really the copy &amp; paste code smell, which I thought it was, but it is more than that.</p> <p>Can ...
[ { "answer_id": 195769, "author": "Matt Hinze", "author_id": 2676, "author_profile": "https://Stackoverflow.com/users/2676", "pm_score": 3, "selected": true, "text": "FormsAuthentication.Logout()" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/187855", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4481/" ]
187,857
<p>We have a TIBCO EMS solution that uses built-in server failover in a 2-4 server environment. If the TIBCO admins fail-over services from one EMS server to another, connections are supposed to be transfered to the new server automatically at the EMS service level. For our C# applications using the EMS service, this...
[ { "answer_id": 234966, "author": "ScottCher", "author_id": 24179, "author_profile": "https://Stackoverflow.com/users/24179", "pm_score": 3, "selected": false, "text": "private void initEMS()\n{\n Tibems.SetExceptionOnFTSwitch(true);\n _ConnectionFactory = new TIBCO.EMS.TopicConnect...
2008/10/09
[ "https://Stackoverflow.com/questions/187857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24179/" ]
187,886
<p>I need to grant select permission for all tables owned by a specific user to another user. Can I do this with a single command along the lines of:</p> <pre><code>Grant Select on OwningUser.* to ReceivingUser </code></pre> <p>Or do I have to generate the sql for each table with something along the lines of:</p> <...
[ { "answer_id": 189496, "author": "DCookie", "author_id": 8670, "author_profile": "https://Stackoverflow.com/users/8670", "pm_score": 7, "selected": true, "text": "BEGIN\n FOR R IN (SELECT owner, table_name FROM all_tables WHERE owner='TheOwner') LOOP\n EXECUTE IMMEDIATE 'grant sel...
2008/10/09
[ "https://Stackoverflow.com/questions/187886", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9940/" ]
187,890
<p>I have an ASP.NET page which pulls a set of images from a database table, and using an enumerator, goes through all of them and displays then.</p> <p>This all happens in the codebehind (VB.NET), where the code adds the placeholder and some controls inside tables (tables inside the placeholder).</p> <p>I've added a...
[ { "answer_id": 187898, "author": "alexmac", "author_id": 23066, "author_profile": "https://Stackoverflow.com/users/23066", "pm_score": 4, "selected": false, "text": "cmdMyButton.attributes.add(\"onclick\", \"alert('hello');\")" }, { "answer_id": 187905, "author": "WebDude", ...
2008/10/09
[ "https://Stackoverflow.com/questions/187890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
187,893
<p>This is what I'd like to do, but it doesn't seem possible: (edit: changed single to double quotes)</p> <pre><code>function get_archives($limit, $offset) { $query = $this-&gt;db-&gt;query(" SELECT archivalie.id, archivalie.signature, type_of_source.description AS type_...
[ { "answer_id": 190539, "author": "meleyal", "author_id": 4196, "author_profile": "https://Stackoverflow.com/users/4196", "pm_score": 1, "selected": false, "text": "$query = $this->db->query(\"\n SELECT archivalie.id, \n archivalie.signature, \n type_of_source.de...
2008/10/09
[ "https://Stackoverflow.com/questions/187893", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4196/" ]
187,894
<p>From C#, I want to do the equivalent of the following:</p> <pre><code>arp -a |findstr 192.168.1.254 </code></pre> <p>Alternatively, the answer could call the <a href="http://msdn.microsoft.com/en-us/library/aa366358.aspx" rel="noreferrer">SendARP</a> function and get the results.</p> <p>This will allow my applica...
[ { "answer_id": 187929, "author": "jop", "author_id": 11830, "author_profile": "https://Stackoverflow.com/users/11830", "pm_score": 6, "selected": true, "text": "[DllImport(\"iphlpapi.dll\", ExactSpelling=true)]\npublic static extern int SendARP( int destIp, int srcIP, byte[] macAddr, ref...
2008/10/09
[ "https://Stackoverflow.com/questions/187894", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5993/" ]
187,913
<p>What I'd like to avoid: </p> <pre><code>ManagementClass m = new ManagementClass("Win32_LogicalDisk"); ManagementObjectCollection managementObjects = m.GetInstances(); List&lt;ManagementObject&gt; managementList = new List&lt;ManagementObject&gt;(); foreach(ManagementObject m in managementObjects){ managemen...
[ { "answer_id": 187922, "author": "steffenj", "author_id": 15328, "author_profile": "https://Stackoverflow.com/users/15328", "pm_score": 1, "selected": false, "text": "List<ManagementObject> managementList = new List<ManagementObject>(managementObjects.ToArray());\n List<ManagementObject>...
2008/10/09
[ "https://Stackoverflow.com/questions/187913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/64/" ]
187,915
<p>How do I detect if a process is already running under the Windows Task Manager? I'd like to get the memory and cpu usage as well. </p>
[ { "answer_id": 187930, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 1, "selected": false, "text": "\"SELECT * FROM Win32_Process WHERE Name = '<your process name here>'\"\n" }, { "answer_id": 187977, "author":...
2008/10/09
[ "https://Stackoverflow.com/questions/187915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1316/" ]
187,920
<p>I'm logged into a SQL Server 2005 database as a non-sa user, 'bhk', that is a member of the 'public' server role only. The following code tries to execute within a stored procedure called by user 'bhk'. This line of code...</p> <pre><code>TRUNCATE TABLE #Table1 DBCC CHECKIDENT('#Table1', RESEED, @SequenceNumber) WI...
[ { "answer_id": 194185, "author": "splattne", "author_id": 6461, "author_profile": "https://Stackoverflow.com/users/6461", "pm_score": 2, "selected": false, "text": "CREATE TABLE #NotMyTable (TestID int identity) SELECT user_name(uid) FROM sysobjects WHERE name LIKE '#NotMyTable%'" }, ...
2008/10/09
[ "https://Stackoverflow.com/questions/187920", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14360/" ]
187,974
<p>I have a simple Word to Pdf converter as an MSBuild Task. The task takes Word files (ITaskItems) as input and Pdf files (ITaskItems) as output. The script uses a Target transform for conversion:</p> <pre><code>&lt;Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersio...
[ { "answer_id": 188060, "author": "lesscode", "author_id": 18482, "author_profile": "https://Stackoverflow.com/users/18482", "pm_score": 3, "selected": true, "text": " <Target Name=\"Convert\"\n Inputs=\"@(WordDocuments)\"\n Outputs=\"@(WordDocuments->'%(RelativeDir)%(F...
2008/10/09
[ "https://Stackoverflow.com/questions/187974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18482/" ]
187,981
<p>I have the following regular expression : I figured out most of the part which is as follows :</p> <pre> ValidationExpression="^[\u0020\u0027\u002C\u002D\u0030-\u0039\u0041-\u005A\u005F\u0061-\u007A\u00C0-\u00FF°&#46;/]{1,256}$" u0020 : SPACE u0027 : APOSTROPHE u002C : COMMA u002D : HYPHEN / MINUS u0030-\u0039\ : ...
[ { "answer_id": 49766641, "author": "Roland Illig", "author_id": 225757, "author_profile": "https://Stackoverflow.com/users/225757", "pm_score": 0, "selected": false, "text": "\\u0020\n\\u0027\n\\u002C\n\\u002D\n\\u0030-\\u0039\n\\u0041-\\u005A\n\\u005F\n\\u0061-\\u007A\n\\u00C0-\\u00FF\n...
2008/10/09
[ "https://Stackoverflow.com/questions/187981", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24958/" ]
187,983
<p>I have a requirement to hide a process in Task Manager. It is for Intranet scenario. So, everything is legitimate. :) </p> <p>Please feel free to share any code you have (preferably in C#) or any other techniques or any issues in going with this route.</p> <p><strong>Update1</strong>: Most of the users have admin ...
[ { "answer_id": 188092, "author": "Chris Smith", "author_id": 9073, "author_profile": "https://Stackoverflow.com/users/9073", "pm_score": 4, "selected": false, "text": "DACL_SECURITY_INFORMATION SECURITY_DESCRIPTOR sd;\nACL dacl;\nSID_IDENTIFIER_AUTHORITY ntauth = SECURITY_NT_AUTHORITY;\n...
2008/10/09
[ "https://Stackoverflow.com/questions/187983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4337/" ]
187,990
<p>I'm not a C++ developer, but I've always been interested in compilers, and I'm interested in tinkering with some of the GCC stuff (particularly LLVM).</p> <p>On Windows, GCC requires a POSIX-emulation layer (cygwin or MinGW) to run correctly.</p> <p>Why is that?</p> <p>I use lots of other software, written in C++...
[ { "answer_id": 354767, "author": "Brad Gilbert", "author_id": 1337, "author_profile": "https://Stackoverflow.com/users/1337", "pm_score": 5, "selected": false, "text": "cygwin1.dll fork() mmap() ioctl()" }, { "answer_id": 764852, "author": "Artyom", "author_id": 66522, ...
2008/10/09
[ "https://Stackoverflow.com/questions/187990", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22979/" ]
187,998
<p>Is there any way in SQL Server to get the results starting at a given offset? For example, in another type of SQL database, it's possible to do:</p> <pre><code>SELECT * FROM MyTable OFFSET 50 LIMIT 25 </code></pre> <p>to get results 51-75. This construct does not appear to exist in SQL Server. </p> <p>How can I ...
[ { "answer_id": 188031, "author": "Unsliced", "author_id": 2902, "author_profile": "https://Stackoverflow.com/users/2902", "pm_score": 2, "selected": false, "text": "select top 25 *\nfrom ( \n select top 75 *\n from table \n order by field asc\n) a \norder by field desc \n" }, { ...
2008/10/09
[ "https://Stackoverflow.com/questions/187998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/420/" ]
187,999
<p>One small function of a large program examines assemblies in a folder and replaces out-of-date assemblies with the latest versions. To accomplish this, it needs to read the version numbers of the existing assembly files without actually loading those assemblies into the executing process.</p>
[ { "answer_id": 188036, "author": "jop", "author_id": 11830, "author_profile": "https://Stackoverflow.com/users/11830", "pm_score": 3, "selected": false, "text": "AssemblyName.GetAssemblyName(\"assembly.dll\");" }, { "answer_id": 188038, "author": "Joel B Fant", "author_id...
2008/10/09
[ "https://Stackoverflow.com/questions/187999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26553/" ]
188,001
<p>I am attempting to rewrite my <a href="http://ForestPad.com" rel="nofollow noreferrer">ForestPad</a> application utilizing WPF for the presentation layer. In WinForms, I am populating each node programmatically but I would like to take advantage of the databinding capabilities of WPF, if possible.</p> <p>In genera...
[ { "answer_id": 188084, "author": "Joel B Fant", "author_id": 22211, "author_profile": "https://Stackoverflow.com/users/22211", "pm_score": 4, "selected": true, "text": "<node type=\"forest\">\n <node type=\"tree\">\n ...\n HierarchicalDataTemplate DataTemplate leaf <Window.Reso...
2008/10/09
[ "https://Stackoverflow.com/questions/188001", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12919/" ]
188,007
<p>I'm using my code-behind page to create a save button programmatically:</p> <pre><code> Button btnSave = new Button(); btnSave.ID = "btnSave"; btnSave.Text = "Save"; </code></pre> <p>However I think this must create an html button or perhaps needs something else as I cannot seem to set the OnClick attri...
[ { "answer_id": 188021, "author": "Mitchel Sellers", "author_id": 13279, "author_profile": "https://Stackoverflow.com/users/13279", "pm_score": 3, "selected": false, "text": "//Add the handler to your button, passing the name of the handling method \nbtnSave.Click += new System.EventHa...
2008/10/09
[ "https://Stackoverflow.com/questions/188007", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26126/" ]
188,030
<p>I want to program graphical 2D games more complex than the basic 2D stuff I already know. I don't want to do 3D programming. Just more complex 2D stuff. I dropped high school before I could learn a lot of stuff so I walked away with enough algebra knowledge to balance my checkbook and do some light 2D Cartesian prog...
[ { "answer_id": 15651914, "author": "superlogical", "author_id": 52360, "author_profile": "https://Stackoverflow.com/users/52360", "pm_score": 1, "selected": false, "text": "1. VECTORS\n2. FORCES\n3. OSCILLATION\n4. PARTICLE SYSTEMS\n5. PHYSICS LIBRARIES\n6. AUTONOMOUS AGENTS\n7. CELLULAR...
2008/10/09
[ "https://Stackoverflow.com/questions/188030", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26557/" ]
188,057
<p>Quick question. What do you think, I have a few sites that use a 3 level drop-down menu that will be broken if IE8 released with its current CSS standards in IE8 beta2. So do I take the time to redo those drop downs now? I realize that the way they rendered CSS changed completely between beta 1 and 2, but 2 was/is ...
[ { "answer_id": 188066, "author": "Gabriel Isenberg", "author_id": 1473493, "author_profile": "https://Stackoverflow.com/users/1473493", "pm_score": 4, "selected": true, "text": "<head>\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\"/>\n ...\n</head>\n" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/188057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19226/" ]
188,098
<p>I have a problem when an unhandeld exception occurs while debugging a WinForm VB.NET project.</p> <p>The problem is that my application terminates and I have to start the application again, instead of retrying the action as was the case in VS2003</p> <p>The unhandeld exception is implemented in the new My.MyApplic...
[ { "answer_id": 190244, "author": "Philip Fourie", "author_id": 11123, "author_profile": "https://Stackoverflow.com/users/11123", "pm_score": 1, "selected": false, "text": "using System;\nusing System.Windows.Forms;\nnamespace TestCSharpUnhandledException\n{\n public partial class Form...
2008/10/09
[ "https://Stackoverflow.com/questions/188098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11123/" ]
188,114
<p>I'm trying to write a log file from an ASP.NET application under IIS7, but keep getting the following exception:</p> <blockquote> <p>UnauthorizedAccessException "Access to the path 'C:\Users\Brady\Exports' is denied."</p> </blockquote> <p>I have given write access to the iis_iusrs, iis_wpg, and aspnet users, b...
[ { "answer_id": 188125, "author": "Mitchel Sellers", "author_id": 13279, "author_profile": "https://Stackoverflow.com/users/13279", "pm_score": 3, "selected": true, "text": "ASPNET - Win XP and Win 2000\nNETWORK SERVICE - Win Vista and 2003\n" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/188114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8741/" ]
188,118
<p>I've tried this, but it doesn't work:</p> <pre><code>col * format a20000 </code></pre> <p>Do I really have to list every column specifically? That is a huge pain in the arse.</p>
[ { "answer_id": 188135, "author": "someguy", "author_id": 8913, "author_profile": "https://Stackoverflow.com/users/8913", "pm_score": 5, "selected": false, "text": "set wrap off\nset linesize 3000 -- (or to a sufficiently large value to hold your results page)\n show all\n" }, { "...
2008/10/09
[ "https://Stackoverflow.com/questions/188118", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8913/" ]
188,120
<p>So .NET 3.0/3.5 provides us with lots of new ways to query, sort, and manipulate data, thanks to all the neat functions supplied with LINQ. Sometimes, I need to compare user-defined types that don't have a built-in comparison operator. In many cases, the comparison is really simple -- something like foo1.key ?= fo...
[ { "answer_id": 188130, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 7, "selected": true, "text": "using System;\nusing System.Collections.Generic;\n\n/// <summary>\n/// Non-generic class to produce instances of the gene...
2008/10/09
[ "https://Stackoverflow.com/questions/188120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26286/" ]
188,124
<p>I am writing a website with Visual Studio 2008 and ASP.NET 3.5. I have a masterpage set up to simplify the layout and to keep the content pages for content rather than content and layout.</p> <p>The navigation is list, css'd so it looks like a bar. In order to highlight the page on the bar, the list item needs to ...
[ { "answer_id": 188173, "author": "John Sheehan", "author_id": 1786, "author_profile": "https://Stackoverflow.com/users/1786", "pm_score": 4, "selected": true, "text": "public string PageSection { get; set; }\n <%@ MasterType VirtualPath=\"~/foo.master\" %>\n Master.PageSection = \"home\"...
2008/10/09
[ "https://Stackoverflow.com/questions/188124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25515/" ]
188,138
<p>I've seen a number of references to gzipping a javascript to save download time. <em>But</em> I also see a number of warnings that certain browsers do not support this.</p> <p>I have two different methods at my disposal:</p> <ol> <li>use <code>mod_deflate</code> to make Apache compress JS/CSS files in a given dir...
[ { "answer_id": 188216, "author": "Owen", "author_id": 4853, "author_profile": "https://Stackoverflow.com/users/4853", "pm_score": 5, "selected": true, "text": "<IfModule mod_deflate.c>\n # stuff\n</IfModule>\n if (strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') ) {\n ob_start('ob_gzha...
2008/10/09
[ "https://Stackoverflow.com/questions/188138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24950/" ]
188,141
<p>I'm using C# on Framework 3.5. I'm looking to quickly sort a Generic <code>List&lt;T&gt;</code>. For the sake of this example, let's say I have a List of a <code>Person</code> type with a property of lastname. How would I sort this List using a lambda expression?</p> <pre><code>List&lt;Person&gt; people = Popula...
[ { "answer_id": 188149, "author": "Danimal", "author_id": 2757, "author_profile": "https://Stackoverflow.com/users/2757", "pm_score": 5, "selected": false, "text": "people.OrderBy(person => person.lastname).ToList();\n" }, { "answer_id": 188154, "author": "Jon Skeet", "aut...
2008/10/09
[ "https://Stackoverflow.com/questions/188141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7215/" ]
188,147
<p>Trying to setup the exception_logger plugin on a production server. Everything worked fine on the dev machine. Trying to rake db:migrate on the prod server and i get this error:</p> <pre><code>rake aborted! no such file to load -- pagination </code></pre> <p>What am i missing?</p>
[ { "answer_id": 188228, "author": "Christoph Schiessl", "author_id": 20467, "author_profile": "https://Stackoverflow.com/users/20467", "pm_score": 1, "selected": false, "text": "rake db:migrate --trace" }, { "answer_id": 188268, "author": "Jason Miesionczek", "author_id": ...
2008/10/09
[ "https://Stackoverflow.com/questions/188147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18811/" ]
188,160
<p>How have you decided to handle data/control validation in your silverlight applications? </p>
[ { "answer_id": 198728, "author": "Yuval Peled", "author_id": 20257, "author_profile": "https://Stackoverflow.com/users/20257", "pm_score": 2, "selected": false, "text": "// page.xaml.cs\n\nprivate bool clean = true;\n\n\nprivate void LayoutRoot_BindingValidationError( \n object sender,...
2008/10/09
[ "https://Stackoverflow.com/questions/188160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5618/" ]
188,162
<p>Just wondering what little scripts/programs people here have written that helps one with his or her everyday life (aka not work related).</p> <p>Anything goes, groundbreaking or not. For me right now, it's a small python script to calculate running pace given distance and time elapsed.</p>
[ { "answer_id": 188183, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 8, "selected": true, "text": "o 0 o 0 0" }, { "answer_id": 188185, "author": "warren", "author_id": 4418, "author_profile": "https://Stac...
2008/10/09
[ "https://Stackoverflow.com/questions/188162", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25664/" ]
188,166
<p>I am using Team Foundation Server (TFS) for Visual Studio 2005.</p> <p>Whenever i wish to compare two file's versions TFS displays a window with the differences.</p> <p><strong>The problem is that it is always split vertically.</strong></p> <p>In fact, almost every time, <strong>i would prefer to have it split ho...
[ { "answer_id": 36343799, "author": "palswim", "author_id": 393280, "author_profile": "https://Stackoverflow.com/users/393280", "pm_score": 0, "selected": false, "text": ".* Compare Merge WinMergeU.exe /x /e /u /wl /wr /dl %6 /dr %7 %1 %2" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/188166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20335/" ]
188,184
<p>Here I have:</p> <pre><code>Public Structure MyStruct Public Name as String Public Content as String End Structure Dim oStruct as MyStruct = New MyStruct() oStruct.Name = ... oStruct.Content = ... Dim alList as ArrayList = new ArrayList() alList.Add(oStruct) </code></pre> <p>I'd like to convert the ArrayLi...
[ { "answer_id": 188196, "author": "Bill the Lizard", "author_id": 1288, "author_profile": "https://Stackoverflow.com/users/1288", "pm_score": 2, "selected": false, "text": "ToArray MyStruct[] structs = (MyStruct[]) alList.ToArray(typeof(MyStruct));\n" }, { "answer_id": 188197, ...
2008/10/09
[ "https://Stackoverflow.com/questions/188184", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1508/" ]
188,188
<p>We recently upgraded an application that that contained web services using the WSE 2.0 to .NET 3.5. When we converted the project in Visual Studio 2008, It did not mention anything about the removing and/or modifying the WSE 2.0 namespaces. Here is the basic architecture of the web services in the .NET 1.1 project...
[ { "answer_id": 202052, "author": "Michael Kniskern", "author_id": 26327, "author_profile": "https://Stackoverflow.com/users/26327", "pm_score": 0, "selected": false, "text": "<system.web>\n <webServices>\n <soapExtensionTypes>\n <add type=\"Microsoft.Web.Services2.We...
2008/10/09
[ "https://Stackoverflow.com/questions/188188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26327/" ]
188,208
<p>There seem to be two bash idioms for redirecting STDOUT and STDERR to a file:</p> <pre><code>fooscript &amp;&gt; foo </code></pre> <p>... and ...</p> <pre><code>fooscript &gt; foo 2&gt;&amp;1 </code></pre> <p>What's the difference? It seems to me that the first one is just a shortcut for the second one, but my ...
[ { "answer_id": 188217, "author": "J.J.", "author_id": 21204, "author_profile": "https://Stackoverflow.com/users/21204", "pm_score": 1, "selected": false, "text": "&> foo # Will take all and redirect all output to foo.\n\n2>&1 # will redirect stderr to stdout.\n" }, { "answer_id":...
2008/10/09
[ "https://Stackoverflow.com/questions/188208", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16034/" ]
188,209
<p>I have a page something.aspx, with associated codebehind something.aspx.cs. In that codebehind, I want to know the filesystem location of something.aspx. Is there any convenient way to get it?</p> <p>Update: I got several excellent answers, which unfortunately didn't work because of something else crazy I'm doing...
[ { "answer_id": 188219, "author": "David Thibault", "author_id": 5903, "author_profile": "https://Stackoverflow.com/users/5903", "pm_score": 3, "selected": false, "text": "// File path\nstring absoluteSystemPath = Server.MapPath(\"~/relative/path.aspx\");\n// Directory path\nstring dir = ...
2008/10/09
[ "https://Stackoverflow.com/questions/188209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6310/" ]
188,225
<p>I use Visual C++ 2008 in Visual Studio 2008. I frequently use the following command to diff an open file against its most recent checked-in version:</p> <pre><code>File | Source Control | Compare... </code></pre> <p>I can also do the same thing by clicking on an icon in the Source Control toolbar.</p> <p>I'm not...
[ { "answer_id": 188528, "author": "jwfearn", "author_id": 10559, "author_profile": "https://Stackoverflow.com/users/10559", "pm_score": 1, "selected": false, "text": "Tools | Options | Environment | Keyboard File.Compare" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/188225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10559/" ]
188,242
<p>I just downloaded and installed the latest Adventure Works database from <a href="http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx?ReleaseId=16040" rel="nofollow noreferrer">http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx?ReleaseId=16040</a> to do some more playing around...
[ { "answer_id": 8906546, "author": "Pavan Bhardwaj", "author_id": 1155634, "author_profile": "https://Stackoverflow.com/users/1155634", "pm_score": 2, "selected": false, "text": "Geometry Geography CAST(geography_column AS VARBINARY(MAX)) Server Explorer Database Explorer" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/188242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5578/" ]
188,248
<p>Does anyone have any info on creating/drawing a customised ListView object?</p> <p>Currently Im working on a project that requires a customised look and feel within the application. I am using a standard (Windows.Forms) ListView which is not in the same style as the rest of the GUI. We are NOT using a toolbox for c...
[ { "answer_id": 188824, "author": "Mitchel Sellers", "author_id": 13279, "author_profile": "https://Stackoverflow.com/users/13279", "pm_score": 2, "selected": true, "text": "NM_CUSTOMDRAW" }, { "answer_id": 189131, "author": "Nick", "author_id": 1490, "author_profile":...
2008/10/09
[ "https://Stackoverflow.com/questions/188248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1816/" ]
188,250
<p>I believe there is a discussion on this very topic somewhere on the net but I lost the url and I am unable to find it via googling.</p> <p>What I might try right now would be:</p> <pre><code>ISessionFactoryHolder factoryHolder = ActiveRecordMediator&lt;EntityClass&gt;.GetSessionFactoryHolder(); ISession session = ...
[ { "answer_id": 325642, "author": "Mauricio Scheffer", "author_id": 21239, "author_profile": "https://Stackoverflow.com/users/21239", "pm_score": 1, "selected": false, "text": "ActiveRecordMediator.GetSessionFactoryHolder()\n .GetSessionFactory(typeof(ActiveRecordBase))\n .Connectio...
2008/10/09
[ "https://Stackoverflow.com/questions/188250", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15396/" ]
188,281
<p>In Delphi 2009 I'm finding that any time I use TThread.CurrentThread in an application, I'll get an error message like the following when the application closes:</p> <pre><code>Exception EAccessViolation in module ntdll.dll at 0003DBBA. Access violation at address 7799DBBA in module 'ntdll.dll'. Write of address 0...
[ { "answer_id": 188448, "author": "Francesca", "author_id": 9842, "author_profile": "https://Stackoverflow.com/users/9842", "pm_score": 5, "selected": true, "text": "DoneThreadSynchronization ThreadLock FreeExternalThreads CurrentThread EnterCriticalSection(ThreadLock) TThread.RemoveQueue...
2008/10/09
[ "https://Stackoverflow.com/questions/188281", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11961/" ]
188,299
<p>I have the following struct in C++:</p> <pre><code>#define MAXCHARS 15 typedef struct { char data[MAXCHARS]; int prob[MAXCHARS]; } LPRData; </code></pre> <p>And a function that I'm p/invoking into to get an array of 3 of these structures:</p> <pre><code>void GetData(LPRData *data); </code></pre> <p>In ...
[ { "answer_id": 188396, "author": "JaredPar", "author_id": 23283, "author_profile": "https://Stackoverflow.com/users/23283", "pm_score": 4, "selected": false, "text": "static extern void GetData([Out] out IntPtr ptr);\n\nLPRData[] GetData()\n{\n IntPtr value;\n LPRData[] array = new...
2008/10/09
[ "https://Stackoverflow.com/questions/188299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/194/" ]
188,306
<p>Right now, my SVN repository is on my laptop's HDD (although I use a code hosting service for more "critical" personal projects) and I just copy the directory over on a weekly basis (which will eventually be scripted or perhaps I'll make an app for the hell of it). Am I at risk for corrupting my SVN repository? So f...
[ { "answer_id": 188319, "author": "Benjamin W. Smith", "author_id": 1068060, "author_profile": "https://Stackoverflow.com/users/1068060", "pm_score": 5, "selected": true, "text": "--clean-logs svnadmin" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/188306", "https://Stackoverflow.com", "https://Stackoverflow.com/users/572/" ]
188,311
<p>In a nutshell, the hashCode contract, according to Java's object.hashCode():</p> <ol> <li>The hash code shouldn't change unless something affecting equals() changes</li> <li>equals() implies hash codes are ==</li> </ol> <p>Let's assume interest primarily in immutable data objects - their information never changes ...
[ { "answer_id": 188345, "author": "Eli Courtwright", "author_id": 1694, "author_profile": "https://Stackoverflow.com/users/1694", "pm_score": 4, "selected": false, "text": "Set MySet s1 = new MySet( new String[]{\"Hello\", \"World\"} );\nMySet s2 = new MySet( new String[]{\"World\", \"Hel...
2008/10/09
[ "https://Stackoverflow.com/questions/188311", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18160/" ]
188,327
<p>My question is on the ASP.NET GridView control. I am using a CommandField in the Columns tag as seen below.</p> <pre><code>&lt;asp:CommandField ShowEditButton="True" HeaderStyle-Width="40px" UpdateText="Save" ButtonType="Link" HeaderStyle-Wrap="true" ItemStyle-Wrap="true" ItemStyle-Width="40px"/&gt; </code></pre> ...
[ { "answer_id": 188662, "author": "denny", "author_id": 27, "author_profile": "https://Stackoverflow.com/users/27", "pm_score": 3, "selected": true, "text": "<asp:GridView id=\"gvGrid\" runat=\"server\" OnRowCommand=\"gvGrid_Command\">\n <Columns>\n <asp:TemplateField>\n <ItemTemplate>...
2008/10/09
[ "https://Stackoverflow.com/questions/188327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26573/" ]
188,349
<p>I need to knock out a quick animation in C#/Windows Forms for a Halloween display. Just some 2D shapes moving about on a solid background. Since this is just a quick one-off project I <strong><em>really</em></strong> don't want to install and learn an entire new set of tools for this. (DirectX dev kits, Silverlig...
[ { "answer_id": 188377, "author": "Nick", "author_id": 1490, "author_profile": "https://Stackoverflow.com/users/1490", "pm_score": 5, "selected": true, "text": "Invalidate(true)" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/188349", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8173/" ]
188,351
<p>I am using a DataGridView control in a Windows Forms application. When a user holds down control to select multiple items, it works fine. Now when the user releases control and clicks (and holds down the left mouse button) to start a drag operation, the selection changes. How can I stop the selection from clearing w...
[ { "answer_id": 11800199, "author": "charles young", "author_id": 604608, "author_profile": "https://Stackoverflow.com/users/604608", "pm_score": 0, "selected": false, "text": " private SC.ArrayList selectedCells()\n {\n SC.ArrayList cellsList = new SC.ArrayList();\n Int32 s...
2008/10/09
[ "https://Stackoverflow.com/questions/188351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4770/" ]
188,364
<p>I've created a language pack for a site before, but I'm not sure if what I'm doing is the best method.</p> <p>Basically, all I have is a file with variables defining string constants. Usually a set of arrays where an array usually refers to a particular elements of the site.</p> <p>Then the site code just include...
[ { "answer_id": 188401, "author": "Greg", "author_id": 24181, "author_profile": "https://Stackoverflow.com/users/24181", "pm_score": 0, "selected": false, "text": "define('SOME_STRING', 'Some string'); translate('My String') translate('I can count to [number]', 10);" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/188364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26577/" ]
188,366
<p>I am trying to run a query that will give time averages but when I do... some duplicate records are in the calculation. how can I remove duplicates?</p> <p>ex.</p> <p>Column 1 / 07-5794 / 07-5794 / 07-5766 / 07-8423 / 07-4259</p> <p>Column 2 / 00:59:59 / 00:48:22 / 00:42:48/ 00:51:47 ...
[ { "answer_id": 188380, "author": "Dave DuPlantis", "author_id": 8174, "author_profile": "https://Stackoverflow.com/users/8174", "pm_score": 1, "selected": false, "text": "select avg(min_time) as avg_time from\n (select incnum, min(col2) as min_time from inc group by incnum)\n" }, ...
2008/10/09
[ "https://Stackoverflow.com/questions/188366", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
188,373
<p>I'd like to re-brand (and send error emails) for all of the SSRS default error pages (picture below) when you access reports via /ReportServer/. I'm already handling the ASP OnError event and <em>some</em> of the default SSRS errors appear to catch their own exceptions and then render this page cancel the response ...
[ { "answer_id": 188380, "author": "Dave DuPlantis", "author_id": 8174, "author_profile": "https://Stackoverflow.com/users/8174", "pm_score": 1, "selected": false, "text": "select avg(min_time) as avg_time from\n (select incnum, min(col2) as min_time from inc group by incnum)\n" }, ...
2008/10/09
[ "https://Stackoverflow.com/questions/188373", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15050/" ]
188,388
<p>I would like to have both Eclipse and Netbeans (with JUnit) installed on one system, so I can be somewhat familiar with both.</p> <p>Besides GUI development (see "<a href="https://stackoverflow.com/questions/174308/using-both-eclipse-and-netbeans">Using both Eclipse and Netbeans</a>"), are there any other issues wi...
[ { "answer_id": 188818, "author": "Daniel Spiewak", "author_id": 9815, "author_profile": "https://Stackoverflow.com/users/9815", "pm_score": 2, "selected": false, "text": "project.xml" } ]
2008/10/09
[ "https://Stackoverflow.com/questions/188388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16312/" ]
188,389
<p>I try to define a schema for XML documents I receive.</p> <p>The documents look like:</p> <pre><code>&lt;root&gt; &lt;items&gt; &lt;group name="G-1"&gt; &lt;item name="I-1"/&gt; &lt;item name="I-2"/&gt; &lt;item name="I-3"/&gt; &lt;item name="I-4"/&gt; ...
[ { "answer_id": 188430, "author": "Peter Meyer", "author_id": 1875, "author_profile": "https://Stackoverflow.com/users/1875", "pm_score": 3, "selected": true, "text": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<xs:schema attributeFormDefault=\"unqualified\" elementFormDefault=\"qualifie...
2008/10/09
[ "https://Stackoverflow.com/questions/188389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23772/" ]
188,414
<p>I have used the XML Parser before, and even though it worked OK, I wasn't happy with it in general, it felt like I was using workarounds for things that should be basic functionality.</p> <p>I recently saw SimpleXML but I haven't tried it yet. Is it any simpler? What advantages and disadvantages do both have? Any o...
[ { "answer_id": 188445, "author": "Robert K", "author_id": 24950, "author_profile": "https://Stackoverflow.com/users/24950", "pm_score": 8, "selected": true, "text": "$root->myElement" }, { "answer_id": 4942773, "author": "NexusRex", "author_id": 445500, "author_profil...
2008/10/09
[ "https://Stackoverflow.com/questions/188414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25910/" ]
188,422
<p>How can I transform a website to be able to handle multi language (example : english, french, spanish)?</p> <p>I do not like the resource file because I feel limited and it's pretty long to build the list. Do you have any suggestion?</p> <h2>Update</h2> <p>For the moment the best way we found is to use an XML file a...
[ { "answer_id": 188475, "author": "Herb Caudill", "author_id": 239663, "author_profile": "https://Stackoverflow.com/users/239663", "pm_score": 3, "selected": false, "text": " <asp:linkbutton runat='server' text='<%$ LanguageStrings:ClickMe%>' />\n <r:languagelabel runat=\"server\" name=\...
2008/10/09
[ "https://Stackoverflow.com/questions/188422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13913/" ]
188,425
<p>I have been trying to work my way through Project Euler, and have noticed a handful of problems ask for you to determine a prime number as part of it.</p> <ol> <li><p>I know I can just divide x by 2, 3, 4, 5, ..., square root of X and if I get to the square root, I can (safely) assume that the number is prime. Unfo...
[ { "answer_id": 188470, "author": "Lance Roberts", "author_id": 13295, "author_profile": "https://Stackoverflow.com/users/13295", "pm_score": -1, "selected": false, "text": "Input: Integer n > 1 \n\n\nif (n is has the form ab with b > 1) then output COMPOSITE \n\nr := 2 \nwhile (r < n)...
2008/10/09
[ "https://Stackoverflow.com/questions/188425", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2156/" ]