qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
194,077 | <p>I've just recently setup a custom replication for my subscriber database, as described in <a href="https://stackoverflow.com/questions/161890/how-do-you-track-the-time-of-replicated-rows-for-subscribers-in-sql-server-2005">another post here</a>. Basically, when the publisher pushes a new record to the subscribers, t... | [
{
"answer_id": 649814,
"author": "alextansc",
"author_id": 19582,
"author_profile": "https://Stackoverflow.com/users/19582",
"pm_score": 2,
"selected": true,
"text": "sp_addsubscription @publication = 'TEST', ..., @loopback_detection = 'false'\n"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19582/"
] |
194,089 | <p>Say I've got a string which contains a number. I want to check if this number is an integer.</p>
<h3>Examples</h3>
<pre><code>IsInteger("sss") => false
IsInteger("123") => true
IsInterger("123.45") =>false
</code></pre>
| [
{
"answer_id": 194091,
"author": "mattlant",
"author_id": 14642,
"author_profile": "https://Stackoverflow.com/users/14642",
"pm_score": 4,
"selected": false,
"text": " int val;\nif(int.TryParse(inputString, out val))\n{\n //dosomething\n}\n"
},
{
"answer_id": 194097,
"auth... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,101 | <p>I'd like to track changes in inputs in a form via javascript. My intent is (but not limited) to</p>
<ul>
<li>enable "save" button only when something has changed</li>
<li>alert if the user wants to close the page and something is not saved</li>
</ul>
<p>Ideas?</p>
| [
{
"answer_id": 194110,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 6,
"selected": true,
"text": "onchange $(\"#myForm\")\n .on(\"input\", function() {\n // do whatever you need to do when something's changed.\n ... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19224/"
] |
194,102 | <p>We have a web service that is deployed on 2 separate machines in different locations. Is it possible to monitor the url that a person used to call our webservice using java code? We have a 3DNS url set up and we want all clients to use this url as oppossed hitting the boxes directly with the correct port numbers in ... | [
{
"answer_id": 1861830,
"author": "monksy",
"author_id": 80701,
"author_profile": "https://Stackoverflow.com/users/80701",
"pm_score": 3,
"selected": true,
"text": "@Resource\nWebServiceContext wsContext;\n"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11612/"
] |
194,104 | <p>I am writing a script that powers on a system via network. And then i need to run a few commands on the other host. How do I know whether the system has powered on?</p>
<p>My programming language is Perl and the target host is RHEL5.</p>
<p>Is there any kernel interrupt or network boot information that indicates ... | [
{
"answer_id": 194139,
"author": "moritz",
"author_id": 14132,
"author_profile": "https://Stackoverflow.com/users/14132",
"pm_score": 3,
"selected": false,
"text": "@reboot man 5 crontab"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2577336/"
] |
194,121 | <p>At the team with which I work, we have an old codebase using PHP's ibase_* functions all over the code to communicate with database. We created a wrapper to it that would do something else beside just calling the original function and I did a mass search-replace in the entire code to make sure that wrapper is used i... | [
{
"answer_id": 194129,
"author": "unexist",
"author_id": 18179,
"author_profile": "https://Stackoverflow.com/users/18179",
"pm_score": 3,
"selected": false,
"text": "<?php\nclass Foo\n{ \n public function __construct()\n {\n trigger_error('Use Bar instead', E_USER_NOTICE);... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14690/"
] |
194,133 | <p>I'm working on a Win32 control. There could be hundreds of "items" on this control. Those are not windows, but internal objects (eg: rectangles). Depending on the mouse position I want to change the mouse cursor. That is fine, I can use WM_SETCURSOR.</p>
<p>At the same time based on mouse move I want to display a s... | [
{
"answer_id": 5579715,
"author": "T800",
"author_id": 696612,
"author_profile": "https://Stackoverflow.com/users/696612",
"pm_score": 2,
"selected": false,
"text": "GetMessagePos() MapWindowPoints()"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,150 | <p>How to check reliably if a SoundChannel is still playing a sound? </p>
<p>For example,</p>
<pre><code>[Embed(source="song.mp3")]
var Song: Class;
var s: Song = new Song();
var ch: SoundChannel = s.play();
// how to check if ch is playing?
</code></pre>
| [
{
"answer_id": 194653,
"author": "James Fassett",
"author_id": 27081,
"author_profile": "https://Stackoverflow.com/users/27081",
"pm_score": 5,
"selected": true,
"text": "\npackage\n{\n import flash.events.Event;\n import flash.media.Sound;\n import flash.media.SoundChannel;\n\n... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11238/"
] |
194,157 | <p>I'm using:</p>
<pre><code>FileInfo(
System.Environment.GetFolderPath(
System.Environment.SpecialFolder.ProgramFiles)
+ @"\MyInstalledApp"
</code></pre>
<p>In order to determine if a program is detected on a users machine (it's not ideal, but the program I'm looking for is a right old kludge of a M... | [
{
"answer_id": 194163,
"author": "tomasr",
"author_id": 10292,
"author_profile": "https://Stackoverflow.com/users/10292",
"pm_score": 3,
"selected": false,
"text": "String x86folder = Environment.GetEnvironmentVariable(\"ProgramFiles(x86)\");\n"
},
{
"answer_id": 194191,
"aut... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1293123/"
] |
194,165 | <p>I'm using the standard <code>ConsoleHandler</code> from <code>java.util.logging</code> and by default the console output is directed to the error stream (i.e. <code>System.err</code>).</p>
<p>How do I change the console output to the output stream (i.e. <code>System.out</code>)?</p>
| [
{
"answer_id": 194202,
"author": "Uri",
"author_id": 23072,
"author_profile": "https://Stackoverflow.com/users/23072",
"pm_score": 2,
"selected": false,
"text": "Handler fh = new FileHandler(FILENAME);\nLogger.getLogger(LOGGER_NAME).addHandler(fh);\n"
},
{
"answer_id": 194851,
... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23120/"
] |
194,168 | <p>I asked before about pixel-pushing, and have now managed to get far enough to get noise to show up on the screen. Here's how I init:</p>
<pre><code>CGDataProviderRef provider;
bitmap = malloc(320*480*4);
provider = CGDataProviderCreateWithData(NULL, bitmap, 320*480*4, NULL);
CGColorSpaceRef colorSpaceRef;
colorSpac... | [
{
"answer_id": 194216,
"author": "freespace",
"author_id": 8297,
"author_profile": "https://Stackoverflow.com/users/8297",
"pm_score": 1,
"selected": false,
"text": "320*480*4"
},
{
"answer_id": 1948932,
"author": "rpetrich",
"author_id": 4007,
"author_profile": "http... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8005/"
] |
194,192 | <p>I need to know when the user finishes editing a cell in an NSTableView. The table contains all of the user's calendars (obtained from the CalCalendarStore), so in order for the user's changes to be saved I need to inform the CalCalendarStore of the changes. However, I can't find anything that gets called after the u... | [
{
"answer_id": 12132442,
"author": "Milly",
"author_id": 1608447,
"author_profile": "https://Stackoverflow.com/users/1608447",
"pm_score": 4,
"selected": false,
"text": "NSTableView NSNotificationCenter NSControl delegate NSTableView - (void)controlTextDidEndEditing:(NSNotification *)obj... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3857/"
] |
194,194 | <p>I have a large collection of data in an excel file (and csv files). The data needs to be placed into a database (mysql). However, before it goes into the database it needs to be processed..for example if columns 1 is less than column 3 add 4 to column 2. There are quite a few rules that must be followed before the i... | [
{
"answer_id": 194205,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 0,
"selected": false,
"text": "public class ALine {\n private int col1;\n private int col2;\n private int coln;\n // ...\n\n public ALine(stri... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17337/"
] |
194,208 | <p>I'm using the following code within the JCProperty class to retrieve data from a DAL: </p>
<pre><code>Dim x As JCProperty
x = JCPropertyDB.GetProperty(PropertyID)
If Not x Is Nothing Then
Me.PropertyID = x.PropertyID
Me.AddressLine1 = x.AddressLine1
Me.AddressLi... | [
{
"answer_id": 194270,
"author": "Ron Savage",
"author_id": 12476,
"author_profile": "https://Stackoverflow.com/users/12476",
"pm_score": 2,
"selected": true,
"text": "class JCProperty : inherits JCPropertyDB\n {\n\n New()\n {\n MyBase.New()\n\n GetProperty(PropertyID)... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20048/"
] |
194,241 | <p>In Visual Studio if I define a class to implement an interface e.g.</p>
<pre><code>class MyObject : ISerializable {}
</code></pre>
<p>I am able to right click on ISerializable, select "<em>Implement Interface</em>" from the context menu and see the appropriate methods appear in my class definition.</p>
<pre><code... | [
{
"answer_id": 3952028,
"author": "bithavoc",
"author_id": 146032,
"author_profile": "https://Stackoverflow.com/users/146032",
"pm_score": 1,
"selected": false,
"text": "@protocol PosterousWebsitesDelegate <NSObject>\n- (void)PosterousWebsitesLoadSuccess:(PosterousWebsites*)websites;\n@e... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1403/"
] |
194,247 | <p>I have a 2 dimensional array, like so:</p>
<pre><code>char[,] str = new char[2,50];
</code></pre>
<p>Now, after I've stored contents in both str[0] and str[1], how do I store it in a </p>
<pre><code>string[] s = new string[2];
</code></pre>
<p>?</p>
<p>I tried </p>
<pre><code>s[0] = str[0].ToString();
</code><... | [
{
"answer_id": 194252,
"author": "Drew Noakes",
"author_id": 24874,
"author_profile": "https://Stackoverflow.com/users/24874",
"pm_score": 2,
"selected": false,
"text": "char[,] str = new char[2,50];\n\n// populate str somehow\n\n// chose which of the strings we want (the 'row' index)\ni... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8127/"
] |
194,261 | <p>I just played with Java file system API, and came down with the following function, used to copy binary files. The original source came from the Web, but I added try/catch/finally clauses to be sure that, should something wrong happen, the Buffer Streams would be closed (and thus, my OS ressources freed) before quit... | [
{
"answer_id": 194288,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 5,
"selected": true,
"text": "/** transcodes text file from one encoding to another */\npublic static void transcode(File source, Charset srcEncoding,\n ... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14089/"
] |
194,278 | <p>In a <a href="https://stackoverflow.com/questions/194272">related question</a>, my team is about to (hopefully) start using LINQ, and I'd like to take advantage of anonymous types. What is the best way to mix VB.NET's Option Strict (which we've been using through the life of the project) and the new Option Infer dir... | [
{
"answer_id": 54266943,
"author": "jmoreno",
"author_id": 234954,
"author_profile": "https://Stackoverflow.com/users/234954",
"pm_score": 0,
"selected": false,
"text": "txtBox.Text = If(str=\"\", Nothing, CDate(str))\n txtBox.Text = CStr(If(str=\"\", Nothing, CType(CDate(str), Object)))... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6897/"
] |
194,304 | <p>I'm trying to think of clever, clear, and simple ways to write code that describes the sequence of integers in a given range. </p>
<p>Here's an example:</p>
<pre><code>IEnumerable<int> EnumerateIntegerRange(int from, int to)
{
for (int i = from; i <= to; i++)
{
yield return i;
}
}
</c... | [
{
"answer_id": 195920,
"author": "Jay Bazuzi",
"author_id": 5314,
"author_profile": "https://Stackoverflow.com/users/5314",
"pm_score": 0,
"selected": false,
"text": "class Range<T> where T: IComparable<T>\n{\n public T From { get; set; }\n public T To { get; set; }\n\n public R... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5314/"
] |
194,328 | <p>I know we can use tools like JProfiler etc.
Is there any tutorial on how to configure it to display the memory usage just by remote monitoring?</p>
<p>Any idea?</p>
| [
{
"answer_id": 194351,
"author": "MatthieuGD",
"author_id": 3109,
"author_profile": "https://Stackoverflow.com/users/3109",
"pm_score": 3,
"selected": false,
"text": "JAVA_HOME/bin/jstatd -J-Djava.security.policy=jstatd.all.policy\n grant codebase \"file:${java.home}/../lib/tools.jar... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25368/"
] |
194,331 | <p>I have a domain class containing a couple of fields. I can access them from my .gsps. I want to add a method to the domain class, which I can call from the .gsps (this method is a kind of virtual field; it's data is not coming directly from the database).</p>
<p>How do I add the method and how can I then call it fr... | [
{
"answer_id": 194348,
"author": "Hates_",
"author_id": 3410,
"author_profile": "https://Stackoverflow.com/users/3410",
"pm_score": 5,
"selected": true,
"text": "def someMethod() {\n return \"Hello.\"\n}\n ${myObject.someMethod()}\n"
},
{
"answer_id": 18535117,
"author": "Ra... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3506/"
] |
194,339 | <p>I have several python projects that share common modules. Until now, I've been ... ahem ... keeping multiple copies of the common code and synchronizing by hand. But I'd clearly prefer to do something else.</p>
<p>It looks to me now, as if zc.Buildout maybe what I need. I guess that what I should be doing is puttin... | [
{
"answer_id": 194472,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 2,
"selected": false,
"text": "sys.path lib/site-packages .pth PYTHONPATH setup.py svn up python setup.py install PYTHONPATH projects/lib1 projects/lib2 P... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8482/"
] |
194,346 | <p>I have an HTML page (say welcome.html) which contains an iframe to a page I have no control over (say app.html). The user performs some actions using the app within the iframe and clicks submit. Once they do this, they are taken to a new page (say thanks.jsp), which loads within the iframe. Is there a way in whic... | [
{
"answer_id": 194363,
"author": "Quentin",
"author_id": 19068,
"author_profile": "https://Stackoverflow.com/users/19068",
"pm_score": 4,
"selected": true,
"text": "thanks.jsp <script type=\"text/javascript\">\n if (self != top) { top.location.replace(location); }\n</script>\n <base ta... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/78/"
] |
194,349 | <p>Where do you store <em>user-specific</em> and <em>machine-specific</em> <strong>runtime</strong> configuration data for J2SE application?</p>
<p>(For example, <em>C:\Users\USERNAME\AppData\Roaming</em> on Windows and /home/username</em> on Unix)</p>
<p>How do you get these locations in the filesystem in platfo... | [
{
"answer_id": 194371,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 3,
"selected": false,
"text": "Preferences userPrefs = Preferences.getUserNodeForPackage(MyClass.class); // Gets user preferences node for MyClass\nPre... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1764/"
] |
194,358 | <p>I have an unmanaged C dll I call from a C# class library that encrypts a string value into an encrypted string that contains non-ascii characters. I need to take the data and write its binary values to a file, but C# treats text as <code>string</code> rather than a <code>byte[]</code>. </p>
<p>The encrypted value ... | [
{
"answer_id": 194425,
"author": "Stephen Edmonds",
"author_id": 17349,
"author_profile": "https://Stackoverflow.com/users/17349",
"pm_score": 2,
"selected": false,
"text": "ASCIIEncoding ascii = new ASCIIEncoding();\nByte[] encodedBytes = ascii.GetBytes(unicodeString);\n"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,382 | <p>What is the difference between applying the visitor design pattern to your code and the following approach:</p>
<pre><code>interface Dointerface {
public void perform(Object o);
}
public class T {
private Dointerface d;
private String s;
public String getS() {
return s;
}
publ... | [
{
"answer_id": 194452,
"author": "Benno Richters",
"author_id": 3565,
"author_profile": "https://Stackoverflow.com/users/3565",
"pm_score": 3,
"selected": true,
"text": "perfom setInterface perfom accept setInterface"
},
{
"answer_id": 217105,
"author": "Martin Brown",
"a... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11234/"
] |
194,384 | <p>(sorry for my English)
For example, in my DAL,I have an AuthorDB object, that has a Name
and a BookDB object, that has a Title and an IdAuthor. </p>
<p>Now, if I want to show all the books with their corresponding author's name, I have to get a collection of all the Books, and for each of them, with the IdAuthor a... | [
{
"answer_id": 194588,
"author": "Thomas Eyde",
"author_id": 3282,
"author_profile": "https://Stackoverflow.com/users/3282",
"pm_score": 0,
"selected": false,
"text": "public IEnumerable<Book> AllBooks()\n{\n return from book in db.Books\n join author in db.Authors on book... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,388 | <p>The existing application is in C#. During startup the application calls a virtual method to make changes to the database (for example a new revision may need to calculate a new field or something). An open OleDb connection is passed into the method. </p>
<p>I need to change a field width. The ALTER TABLE statement ... | [
{
"answer_id": 195048,
"author": "Andy",
"author_id": 27096,
"author_profile": "https://Stackoverflow.com/users/27096",
"pm_score": 1,
"selected": false,
"text": "var command = new OleDbCommand(\"SELECT FIELD FROM TABLE\", connection); \nvar reader = command.ExecuteReader(CommandBehavior... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27096/"
] |
194,395 | <p>Given a heapdump or a running VM, how do I discover what the contents of the permanent generation is ? I know about 'jmap -permstat' but that's not available on Windows.</p>
| [
{
"answer_id": 8600342,
"author": "David Tinker",
"author_id": 159434,
"author_profile": "https://Stackoverflow.com/users/159434",
"pm_score": 1,
"selected": false,
"text": " MemoryUsage usage = ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage();\n long nonHeapFree = usage... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22850/"
] |
194,397 | <p>I want to make a JavaScript application that's not open source, and thus I wish to learn how to can obfuscate my JS code? Is this possible?</p>
| [
{
"answer_id": 194399,
"author": "keparo",
"author_id": 19468,
"author_profile": "https://Stackoverflow.com/users/19468",
"pm_score": 10,
"selected": true,
"text": "UPDATE: This question was originally asked on 2008, and The mentioned technologies are deprecated. you can use:"
},
{
... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
194,418 | <p>I'm looking for some help and it goes like this:
I'm a fairly green software developer, and focus mainly on the web (python/PHP) but am pretty well experienced with Java applications and as an electrical engineering student, looking forward to dive into some c/c++. I've pretty much grown up on Windows machine, but h... | [
{
"answer_id": 194636,
"author": "SCdF",
"author_id": 1666,
"author_profile": "https://Stackoverflow.com/users/1666",
"pm_score": 2,
"selected": false,
"text": ".gnome"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11110/"
] |
194,428 | <p>How can i release the memory that I used for a variable (e.g. a long string) in C?</p>
| [
{
"answer_id": 194432,
"author": "Michael Carman",
"author_id": 8233,
"author_profile": "https://Stackoverflow.com/users/8233",
"pm_score": 5,
"selected": true,
"text": "malloc free"
},
{
"answer_id": 194444,
"author": "Svet",
"author_id": 8934,
"author_profile": "htt... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25017/"
] |
194,430 | <p>I'm experimenting with internationalization by making a Hello World program that uses properties files + ResourceBundle to get different strings.</p>
<p>Specifically, I have a file "messages_en_US.properties" that stores "hello.world=Hello World!", which works fine of course.</p>
<p>I then have a file "messages_ja... | [
{
"answer_id": 194794,
"author": "Alan Moore",
"author_id": 20938,
"author_profile": "https://Stackoverflow.com/users/20938",
"pm_score": 2,
"selected": false,
"text": "String realProp = new String(prop.getBytes(\"ISO-8859-1\"), \"UTF-8\");\n"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13792/"
] |
194,443 | <p>I want to post an xml document to an <strong>asp</strong> page from an <strong>asp.net</strong> page. If I use WebRequest with content/type text/xml the document never gets to the asp page. How can I do this ?</p>
| [
{
"answer_id": 197728,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<data id='10'>value</data>"
},
{
"answer_id": 315438,
"author": "Sunny Milenov",
"author_id": 8220,
"autho... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,445 | <p>the question I am having is: when running my app with a launch code other than sysAppLaunchCmdNormalLaunch, I can not use code outside the default code segment - but could I use a shared library that is multi-segmented, thus circumventing this problem?</p>
<p>A bit of background information: I am evaluating the pos... | [
{
"answer_id": 912886,
"author": "PhrkOnLsh",
"author_id": 112613,
"author_profile": "https://Stackoverflow.com/users/112613",
"pm_score": 1,
"selected": false,
"text": "__STANDALONE_CODE_RESOURCE__ //segment 1000\n\nUInt32 foobar( char* hi )\n{\n return 12;\n}\n\n// functions.c\ntyped... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27101/"
] |
194,450 | <p>I'm looking for an easiest way how to implement the "suggest" feature for a text entry field in a Rails application. The idea is to complete names stored in a database column, giving the user a drop-down menu of possible matches as he types.</p>
<p>Thanks for any suggestions!</p>
| [
{
"answer_id": 199771,
"author": "JasonOng",
"author_id": 6048,
"author_profile": "https://Stackoverflow.com/users/6048",
"pm_score": 1,
"selected": false,
"text": "# your_view.rhtml\n\n<%= text_field 'contact', 'name', :id => 'suggest' %>\n<div id='dropdown' style='display:none; z-index... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,464 | <p>Everyone (at least everyone who uses a compiled language) has faced compilation errors but how many times do you get to actually crash the compiler? </p>
<p>I've had my fair share of <strong>"internal compiler errors"</strong> but most went away just by re-compiling. Do you have a (minimal) piece of code that crash... | [
{
"answer_id": 194599,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "switch(on_some_variable)\n{\n}\n"
},
{
"answer_id": 194630,
"author": "ejgottl",
"author_id": 9808,
"autho... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3848/"
] |
194,465 | <p>What's the C++ way of parsing a string (given as char *) into an int? Robust and clear error handling is a plus (instead of <a href="http://en.cppreference.com/w/cpp/string/byte/atoi" rel="noreferrer">returning zero</a>).</p>
| [
{
"answer_id": 194478,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 3,
"selected": false,
"text": "int str2int (const string &str) {\n stringstream ss(str);\n int num;\n ss >> num;\n return num;\n}\n"
},
... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3827/"
] |
194,468 | <p>I'm trying to write a faster user switching app for Windows. Win+L and selecting users is very cumbersome. If I start Task Manager as administrator, it shows active users and I can select one and "Connect" (if I enter their password).</p>
<p>How do I get the list of all users (or all active users)? </p>
<p>I'm usi... | [
{
"answer_id": 732654,
"author": "Dan Ports",
"author_id": 88885,
"author_profile": "https://Stackoverflow.com/users/88885",
"pm_score": 2,
"selected": false,
"text": "using Cassia;\n\nforeach (ITerminalServicesSession session in new TerminalServicesManager().GetSessions())\n{\n if (!... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21352/"
] |
194,484 | <p>I collect a few corner cases and <a href="http://www.yoda.arachsys.com/csharp/teasers.html" rel="nofollow noreferrer">brain teasers</a> and would always like to hear more. The page only really covers C# language bits and bobs, but I also find core .NET things interesting too. For example, here's one which isn't on t... | [
{
"answer_id": 194671,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 10,
"selected": true,
"text": " static void Foo<T>() where T : new()\n {\n T t = new T();\n Console.WriteLine(t.ToString()); // ... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22656/"
] |
194,485 | <p>I'm building few command-line utilities in Xcode (plain C, no Cocoa). I want all of them to use my customized version of libpng, and I want to save space by sharing one copy of the library among all executables (I don't mind re-distributing <code>.dylib</code> with them).</p>
<p>Do I need to do some magic to get li... | [
{
"answer_id": 195030,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 4,
"selected": true,
"text": "DYLD_FALLBACK_LIBRARY_PATH dyld(1)"
},
{
"answer_id": 515966,
"author": "denis",
"author_id": 86643,
"... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27009/"
] |
194,492 | <p>In visual C++, I can do things like this:</p>
<pre><code>template <class T>
class A{
protected:
T i;
};
template <class T>
class B : public A<T>{
T geti() {return i;}
};
</code></pre>
<p>If I try to compile this in g++, I get an error. I have to do this:</p>
<pre><code>template <cla... | [
{
"answer_id": 194640,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 4,
"selected": true,
"text": " template <typename T> struct B {\n int m;\n int n;\n int f ();\n int g ();\n };\n int n;... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
194,496 | <p>In a language where both are available, would you prefer to see an instance constructor or a static method that returns an instance?</p>
<p>For example, if you're creating a <code>String</code> from a <code>char[]</code>:</p>
<ol>
<li><p><code>String.FromCharacters(chars);</code></p></li>
<li><p><code>new String(c... | [
{
"answer_id": 194540,
"author": "Robert Rossney",
"author_id": 19403,
"author_profile": "https://Stackoverflow.com/users/19403",
"pm_score": 5,
"selected": false,
"text": "public class Foo\n{\n private Foo() { }\n\n private static List<Foo> FooList = new List<Foo>();\n public stat... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23427/"
] |
194,520 | <p>Is there an easy way to create standalone .exe files from Lua scripts? Basically this would involve linking the Lua interpreter and the scripts.</p>
<p>I believe it is possible (PLT Scheme allows the creation of standalone executables in the same way), but how, exactly?</p>
| [
{
"answer_id": 194605,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "copy interpreter.exe+script.lua script.exe\n"
},
{
"answer_id": 1150047,
"author": "Community",
"author_id": -... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21048/"
] |
194,528 | <p>I have a ASP.Net page using ADO to query MS access database and as a learning exercise i would like to incorporate LINQ. I have one simple table called Quotes.</p>
<p>The fields are: QuoteID, QuoteDescription, QuoteAuthor, QuoteDate. I would like to run simple queries like, "Give me all quotes after 1995". </p>
... | [
{
"answer_id": 194651,
"author": "Ryan Lundy",
"author_id": 5486,
"author_profile": "https://Stackoverflow.com/users/5486",
"pm_score": 5,
"selected": true,
"text": "var year = 1995; // you can pass the year into a method so you can filter on any year\nvar results = from row in dsQuotes... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
194,534 | <p>I have been looking at various dependency injection frameworks for .NET as I feel the project I am working on would greatly benefit from it. While I think I have a good grasp of the <em>capabilities</em> of these frameworks, I am still a little unclear on how best to introduce them into a large system. Most demos (u... | [
{
"answer_id": 198911,
"author": "Maurice",
"author_id": 19676,
"author_profile": "https://Stackoverflow.com/users/19676",
"pm_score": 4,
"selected": true,
"text": "IUnityContainer container = new UnityContainer();\ncontainer.RegisterInstance<IUnityContainer>(container);\n"
},
{
... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7532/"
] |
194,565 | <p>I have to implement the VinPower application. They offer a Java version, a C dll and an ActiveX dll, if anyone has an idea on where I could begin, I'd appreciate it.</p>
| [
{
"answer_id": 194911,
"author": "Peter Boughton",
"author_id": 9360,
"author_profile": "https://Stackoverflow.com/users/9360",
"pm_score": 2,
"selected": true,
"text": "<cfset vp = createObject(\"java\",\"com.pki.vp4j.VinPower\") />\n\n<cfset rc = vp.decodeVIN(\"JTEDP21A650046919\") />\... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26121/"
] |
194,574 | <p>I was trying to insert new data into an existing XML file, but it's not working. Here's my xml file:</p>
<pre><code><list>
<activity>swimming</activity>
<activity>running</activity>
<list>
</code></pre>
<p>Now, my idea was making two files: an index page, where it displa... | [
{
"answer_id": 194637,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 4,
"selected": true,
"text": "<form name='input' action'insert.php' method='post'> // should be:\n<form name=\"input\" action=\"insert.php\" method=\"post\">\... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27090/"
] |
194,579 | <p>I've got a php page which handles requets for file downloads. I need to be able to detect when a file has been downloaded successfully. How can this be done? Perhaps there's some means of detecting this client-side then sending a confirmation down to the server.</p>
<p>Thanks.</p>
<p>Edit:
By handle, I mean that t... | [
{
"answer_id": 194618,
"author": "Treb",
"author_id": 22114,
"author_profile": "https://Stackoverflow.com/users/22114",
"pm_score": 5,
"selected": true,
"text": "readfile($file);"
},
{
"answer_id": 196246,
"author": "Willem",
"author_id": 15447,
"author_profile": "htt... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19467/"
] |
194,584 | <p>Other than standard OO concepts, what are some other strategies that allow for producing good, clean PHP code when a framework is not being used?</p>
| [
{
"answer_id": 195378,
"author": "Javier",
"author_id": 11649,
"author_profile": "https://Stackoverflow.com/users/11649",
"pm_score": 6,
"selected": true,
"text": "?> <?php"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
194,616 | <p>I have an application installed on my computer. How do I find out if it was compiled in DEBUG mode or not?</p>
<p>I've tried to use <a href="http://en.wikipedia.org/wiki/.NET_Reflector" rel="noreferrer">.NET Reflector</a>, but it does not show anything specific. Here is what I see:</p>
<pre><code>// Assembly APPLI... | [
{
"answer_id": 194625,
"author": "ZombieSheep",
"author_id": 377,
"author_profile": "https://Stackoverflow.com/users/377",
"pm_score": 5,
"selected": false,
"text": "private void testfile(string file)\n{\n if(isAssemblyDebugBuild(file))\n {\n MessageBox.Show(String.Format(\"... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,621 | <p>I know there are a few different <a href="http://en.wikipedia.org/wiki/Traveling_salesman_problem" rel="nofollow noreferrer">Traveling Salesman</a> projects out there and I've played with <a href="http://www.akira.ruc.dk/~keld/research/LKH/" rel="nofollow noreferrer">LKH</a> a bit, but I was wondering if anyone had ... | [
{
"answer_id": 197110,
"author": "dsm",
"author_id": 7780,
"author_profile": "https://Stackoverflow.com/users/7780",
"pm_score": 2,
"selected": false,
"text": "(defvar *grid-width* 100000)\n(defvar *grid-heigth* 100000)\n(defvar *max-number-of-points* 1000)\n(defvar *search-area-width* (... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13676/"
] |
194,628 | <p>IOKit and the DiskArbitration framework can tell me a lot of things about mounted volumes on a mac, but they don't seem to be able to differentiate between HFS+ and HFS Standard volumes. </p>
<p>The IOKit/DA keys <code>Content</code>, <code>DAVolumeKind</code> and <code>DAMediaContent</code> are always Apple_HFS an... | [
{
"answer_id": 194722,
"author": "Brian Webster",
"author_id": 23324,
"author_profile": "https://Stackoverflow.com/users/23324",
"pm_score": 4,
"selected": true,
"text": "getattrlist() ATTR_VOL_SIGNATURE signature getattrlist getattrlist"
},
{
"answer_id": 550570,
"author": "... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22147/"
] |
194,634 | <p>I have read several places that the difference between <code>c_str()</code> and <code>data()</code> (in STL and other implementations) is that <code>c_str()</code> is always null terminated while <code>data()</code> is not.
As far as I have seen in actual implementations, they either do the same or <code>data()</cod... | [
{
"answer_id": 194638,
"author": "Scott Langham",
"author_id": 11898,
"author_profile": "https://Stackoverflow.com/users/11898",
"pm_score": 7,
"selected": false,
"text": "c_str() data() c_str() data() data() c_str() data"
},
{
"answer_id": 194654,
"author": "Brian R. Bondy",... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,650 | <p>Simply put, is there a way to create a 2D javascript array using similar syntax to this?</p>
<pre><code>var newArray = [
[0, 1, 2],
[3, 4, 5],
[6, 7, 8]
]
</code></pre>
| [
{
"answer_id": 194660,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<script>\nvar newArray = [\n [0, 1, 2],\n [3, 4, 5],\n [6, 7, 8]\n]\nalert(newArray[0][2]);\n</script>\n"
},
{
... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
194,652 | <p>Is there any regular expression library written in T-SQL (no CLR, no extended <code>SP</code>, pure T-SQL) for SQL Server, and that should work with shared hosting?</p>
<p>Edit:</p>
<ul>
<li>Thanks, I know about <code>PATINDEX</code>, <code>LIKE</code>, <code>xp_</code> <code>sps</code> and CLR solutions</li>
<li>... | [
{
"answer_id": 198986,
"author": "Eric Z Beard",
"author_id": 1219,
"author_profile": "https://Stackoverflow.com/users/1219",
"pm_score": 6,
"selected": false,
"text": "Wildcard Meaning \n% Any string of zero or more characters.\n\n_ Any single character.\n\n[ ] Any single character wi... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2622295/"
] |
194,663 | <p>I'm new to Flex SDK and trying to implement a simple project using <a href="http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/" rel="nofollow noreferrer">Doug Mccune's CoverFlow</a> widget. Most of the documentation out there on how to do thi... | [
{
"answer_id": 194682,
"author": "James Fassett",
"author_id": 27081,
"author_profile": "https://Stackoverflow.com/users/27081",
"pm_score": 4,
"selected": true,
"text": "mxmlc -help list library-path c:\\flex_sdk_3\\bin\\mxmlc.exe -library-path+=lib coverflow.mxml\n"
},
{
"answe... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9974/"
] |
194,666 | <p>Is there a way to suppress warnings in Xcode?</p>
<p>For example I am calling an undocumented method and since the method is not in the header I get a warning on compile. I know I can add it to my header to stop the warning, but I am wondering if there is a way other than adding it to the header (so I can keep the ... | [
{
"answer_id": 196781,
"author": "robottobor",
"author_id": 10184,
"author_profile": "https://Stackoverflow.com/users/10184",
"pm_score": 7,
"selected": false,
"text": "#pragma GCC diagnostic ignored \"-Wwarning-flag\"\n"
},
{
"answer_id": 1480048,
"author": "Mark Pauley",
... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26728/"
] |
194,698 | <p>I was asked to build a java system that will have the ability to load new code (expansions) while running.
How do I re-load a jar file while my code is running? or how do I load a new jar?</p>
<p>Obviously, since constant up-time is important, I'd like to add the ability to re-load existing classes while at it (if... | [
{
"answer_id": 194708,
"author": "Amir Arad",
"author_id": 11813,
"author_profile": "https://Stackoverflow.com/users/11813",
"pm_score": 2,
"selected": false,
"text": "File file = getJarFileToLoadFrom(); \nString lcStr = getNameOfClassToLoad(); \nURL jarfile = new URL(\"jar\", \"\",\... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11813/"
] |
194,725 | <p>I am a heavy command line user and use the <code>find</code> command extensively in my build system scripts. However on Mac OS X when I am not concentrating I often get output like this:</p>
<pre><code>$ find -name \*.plist
find: illegal option -- n
find: illegal option -- a
find: illegal option -- m
find: illegal ... | [
{
"answer_id": 194732,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 2,
"selected": false,
"text": "find ./ -name \"*.plist\"\n #!/bin/sh\n# remapping find!\nCMD=`echo $1 | cut -c 1`\nif [ $CMD = '-' ]\nthen\n# pwd search\n /u... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6444/"
] |
194,733 | <p>If I have a method such as:</p>
<pre><code>private function testMethod(param:string):void
{
// Get the object that called this function
}
</code></pre>
<p>Inside the testMethod, can I work out what object called us? e.g.</p>
<pre><code>class A
{
doSomething()
{
var b:B = new B();
b.fooBar();
}
}
... | [
{
"answer_id": 194745,
"author": "James Fassett",
"author_id": 27081,
"author_profile": "https://Stackoverflow.com/users/27081",
"pm_score": 4,
"selected": true,
"text": "arguments caller \nvar stackTrace:String;\n\ntry { throw new Error(); }\ncatch (e:Error) { stackTrace = e.getStackTra... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/986/"
] |
194,742 | <p>What is the best way to determine whether there is an available Internet connection for a WinForms app. (Programatically of course) I want to disable/hide certain functions if the user is not connected to the Internet.</p>
| [
{
"answer_id": 194747,
"author": "QAZ",
"author_id": 14260,
"author_profile": "https://Stackoverflow.com/users/14260",
"pm_score": 3,
"selected": false,
"text": "bool IsInternetConnected( void )\n{\n DWORD dwConnectionFlags = 0;\n\n if( !InternetGetConnectedState( &dwConnectionFlag... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5019/"
] |
194,754 | <p>Is there any good tool or tool-chain that allows UML images in the .svg format to be created from a textual source file?
The reason for this question is that I want to automate the generation of these images to avoid having to manually create and update this set of images.</p>
| [
{
"answer_id": 17568112,
"author": "Pranav 웃",
"author_id": 993915,
"author_profile": "https://Stackoverflow.com/users/993915",
"pm_score": 2,
"selected": false,
"text": "underscore.js Raphaël"
},
{
"answer_id": 21622594,
"author": "Jonathan Hartley",
"author_id": 10176,
... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27134/"
] |
194,759 | <p>I've got a client that, during testing, is giving me conflicting information. I don't think they are lying but more confused. So, I would like to setup some simple auditing in my ASP.Net application. Specifically, right when any page is called, I want to immediately insert the Querystring and/or form POST data in... | [
{
"answer_id": 194910,
"author": "Eduardo Campañó",
"author_id": 12091,
"author_profile": "https://Stackoverflow.com/users/12091",
"pm_score": 2,
"selected": false,
"text": "public class CustomModule : IHttpModule \n{\n public void Init(HttpApplication context)\n {\n context... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/232/"
] |
194,765 | <p>At the moment a default entry looks something like this:</p>
<pre><code>Oct 12, 2008 9:45:18 AM myClassInfoHere
INFO: MyLogMessageHere
</code></pre>
<p>How do I get it to do this?</p>
<pre><code>Oct 12, 2008 9:45:18 AM myClassInfoHere - INFO: MyLogMessageHere
</code></pre>
<p>Clarification I'm using java.util.lo... | [
{
"answer_id": 195147,
"author": "Obediah Stane",
"author_id": 23120,
"author_profile": "https://Stackoverflow.com/users/23120",
"pm_score": 3,
"selected": false,
"text": " public String format(LogRecord record) {\n return new java.util.Date() + \" \" + record.getLevel() + \" \... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23120/"
] |
194,803 | <p>I'm currently developing a website and my client wants the text of various articles to overflow into two columns. Kind of like in a newspaper? So it would look like:</p>
<pre class="lang-none prettyprint-override"><code>Today in Wales, someone actually Nobody was harmed in
did something interesting. ... | [
{
"answer_id": 194818,
"author": "Matthew Scharley",
"author_id": 15537,
"author_profile": "https://Stackoverflow.com/users/15537",
"pm_score": 3,
"selected": false,
"text": "$content = \"Today in Wales, someone actually did something...\";\n// Find the literal halfway point, should be c... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194803",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12765/"
] |
194,821 | <p>What is the most efficient way to go through and update every single node in a drupal site, to, for instance mechanically add tags? Drupal 6 has a shiny new batch API, but what to do in Drupal 5?</p>
<p>I started writing a script that keeps a pointer and then goes around all nodes on a cron, loads them and then sav... | [
{
"answer_id": 194838,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 0,
"selected": false,
"text": "term_node term_node\n- nid\n- vid\n- tid\n term_data term_data\n- tid\n- name\n"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/556/"
] |
194,828 | <p>Is it possible to initialize an array of pointers to structs?
Something like:</p>
<pre><code>struct country_t *countries[] = {
{"United States of America", "America"},
{"England", "Europe"},
{"Ethiopia", "Africa"}
}
</code></pre>
<p>I want to do that in order to get the entities in no... | [
{
"answer_id": 194840,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 5,
"selected": false,
"text": "static struct country_t us = { \"United States of America\", \"America\" };\nstatic struct country_t uk = { \"Eng... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,842 | <p>Is it possible to make such buttons (<a href="http://img225.imageshack.us/img225/6452/buttonslw9.jpg" rel="nofollow noreferrer">http://img225.imageshack.us/img225/6452/buttonslw9.jpg</a>) using CSS? It should be Menu, and PHP would just feed the text to html/css and css should take care of the design. </p>
<p>Maybe... | [
{
"answer_id": 194880,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 2,
"selected": true,
"text": "text-shadow -webkit-text-stroke -webkit-gradient background-image"
}
] | 2008/10/11 | [
"https://Stackoverflow.com/questions/194842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21209/"
] |
194,846 | <p>Basically, I'm trying to create an object of unique objects, a set. I had the brilliant idea of just using a JavaScript object with objects for the property names. Such as,</p>
<pre><code>set[obj] = true;
</code></pre>
<p>This works, up to a point. It works great with string and numbers, but with other objects, th... | [
{
"answer_id": 194906,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 6,
"selected": true,
"text": "var ObjectReference = [];\nObjectReference.push(obj);\n\nset['ObjectReference.' + ObjectReference.indexOf(obj)] = tr... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16492/"
] |
194,852 | <p>Consider a database table holding names, with three rows:</p>
<pre><code>Peter
Paul
Mary
</code></pre>
<p>Is there an easy way to turn this into a single string of <code>Peter, Paul, Mary</code>?</p>
| [
{
"answer_id": 194875,
"author": "Darryl Hein",
"author_id": 5441,
"author_profile": "https://Stackoverflow.com/users/5441",
"pm_score": 7,
"selected": false,
"text": "SELECT 1 AS a, GROUP_CONCAT(name ORDER BY name ASC SEPARATOR ', ') AS people \nFROM users \nWHERE id IN (1,2,3) \nGROUP ... | 2008/10/11 | [
"https://Stackoverflow.com/questions/194852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27109/"
] |
194,863 | <p>I'm looking for some succinct, modern C# code to generate a random date between Jan 1 1995 and the current date.</p>
<p>I'm thinking some solution that utilizes Enumerable.Range somehow may make this more succinct.</p>
| [
{
"answer_id": 194870,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 9,
"selected": true,
"text": "private Random gen = new Random();\nDateTime RandomDay()\n{\n DateTime start = new DateTime(1995, 1, 1);\n int ra... | 2008/10/12 | [
"https://Stackoverflow.com/questions/194863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/536/"
] |
194,869 | <p>I am working on a project that does a large amount of hashing, signing, and both asymmetric and symmetric encryption. Since these steps have a significant effect on our performance and available load, I was wondering if there is a hardware based solution to offloading the work. </p>
<p>I have done some surfing to f... | [
{
"answer_id": 194870,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 9,
"selected": true,
"text": "private Random gen = new Random();\nDateTime RandomDay()\n{\n DateTime start = new DateTime(1995, 1, 1);\n int ra... | 2008/10/12 | [
"https://Stackoverflow.com/questions/194869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/71994/"
] |
194,890 | <p>I have a large project that I want to start using visual studio 2005 to edit. I want to tell it "Here are all the files I want you to track, now get on with it" and have them displayed as a directory tree, for example:</p>
<pre><code>Folder 1
- File A
- File B
- File C
Folder 2
- Folder 3
- File X
- File ... | [
{
"answer_id": 3599629,
"author": "crayor",
"author_id": 434800,
"author_profile": "https://Stackoverflow.com/users/434800",
"pm_score": 0,
"selected": false,
"text": "Datei >> Neu >> Projekt aus vorhandenem Code New... Show All Files Select Folders"
}
] | 2008/10/12 | [
"https://Stackoverflow.com/questions/194890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13500/"
] |
194,914 | <p>What's the best way of adding spaces between strings</p>
<pre><code>myString = string.Concat("a"," ","b")
</code></pre>
<p>or</p>
<pre><code>myString = string.Concat("a",Chr(9),"b")
</code></pre>
<p>I am using stringbuilder to build an XML file and looking for something efficient.</p>
<p>Thanks</p>
<p>Edit ~ L... | [
{
"answer_id": 194918,
"author": "defeated",
"author_id": 16997,
"author_profile": "https://Stackoverflow.com/users/16997",
"pm_score": 3,
"selected": false,
"text": "string sentence = String.Join(\" \", new string[] { \"The\", \"quick\", \"brown\", \"fox\" });\n"
},
{
"answer_id... | 2008/10/12 | [
"https://Stackoverflow.com/questions/194914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23667/"
] |
194,930 | <p>I got one big question.</p>
<p>I got a linq query to put it simply looks like this:</p>
<pre><code>from xx in table
where xx.uid.ToString().Contains(string[])
select xx
</code></pre>
<p>The values of the <code>string[]</code> array would be numbers like (1,45,20,10,etc...)</p>
<p>the Default for <code>.Contains<... | [
{
"answer_id": 194939,
"author": "spoulson",
"author_id": 3347,
"author_profile": "https://Stackoverflow.com/users/3347",
"pm_score": 2,
"selected": false,
"text": "from xx in table\nwhere stringarray.Contains(xx.uid.ToString())\nselect xx\n"
},
{
"answer_id": 194970,
"author... | 2008/10/12 | [
"https://Stackoverflow.com/questions/194930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7644/"
] |
194,944 | <p>I am creating a lightweight editor in C# and would like to know the best method for converting a string into a nicely formatted XML string. I would hope that there's a public method in the C# library like "public bool FormatAsXml(string text, out string formattedXmlText)", but it couldn't be that easy, could it?</p... | [
{
"answer_id": 194951,
"author": "rp.",
"author_id": 2536,
"author_profile": "https://Stackoverflow.com/users/2536",
"pm_score": 0,
"selected": false,
"text": "XmlDocument xml = new XmlDocument();\n\nxml.LoadXml( YourString );\n"
},
{
"answer_id": 194956,
"author": "defeated"... | 2008/10/12 | [
"https://Stackoverflow.com/questions/194944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27109/"
] |
194,976 | <p>I thought the web page designer screen in 2005 was mediocre until I used the one in 2008 which I think is bad. There is an interesting white paper here:</p>
<p><a href="http://www.west-wind.com/weblog/posts/484172.aspx" rel="nofollow noreferrer">http://www.west-wind.com/weblog/posts/484172.aspx</a></p>
<p>I've g... | [
{
"answer_id": 194951,
"author": "rp.",
"author_id": 2536,
"author_profile": "https://Stackoverflow.com/users/2536",
"pm_score": 0,
"selected": false,
"text": "XmlDocument xml = new XmlDocument();\n\nxml.LoadXml( YourString );\n"
},
{
"answer_id": 194956,
"author": "defeated"... | 2008/10/12 | [
"https://Stackoverflow.com/questions/194976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
194,999 | <p>On an ASP.NET website, are static classes unique to each web request, or are they instantiated whenever needed and GCed whenever the GC decides to disposed of them?</p>
<p>The reason I ask is because I've written some static classes before in C# and the behavior is different than I would have expected. I would have... | [
{
"answer_id": 195290,
"author": "driis",
"author_id": 13627,
"author_profile": "https://Stackoverflow.com/users/13627",
"pm_score": 8,
"selected": true,
"text": "HttpContext.Current.Items HttpContext.Current.Items"
},
{
"answer_id": 195297,
"author": "Sklivvz",
"author_i... | 2008/10/12 | [
"https://Stackoverflow.com/questions/194999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
195,008 | <p>What is code coverage and how do YOU measure it?</p>
<p>I was asked this question regarding our automating testing code coverage. It seems to be that, outside of automated tools, it is more art than science. Are there any real-world examples of how to use code coverage?</p>
| [
{
"answer_id": 195044,
"author": "azamsharp",
"author_id": 3797,
"author_profile": "https://Stackoverflow.com/users/3797",
"pm_score": 8,
"selected": false,
"text": "if(customer.IsOldCustomer()) \n{\n}\nelse \n{\n}\n"
},
{
"answer_id": 195392,
"author": "moritz",
"author_... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
195,010 | <p>I have an array of 1000 or so entries, with examples below:</p>
<pre><code>wickedweather
liquidweather
driveourtrucks
gocompact
slimprojector
</code></pre>
<p>I would like to be able to split these into their respective words, as:</p>
<pre><code>wicked weather
liquid weather
drive our trucks
go compact
slim proje... | [
{
"answer_id": 195024,
"author": "SquareCog",
"author_id": 15962,
"author_profile": "https://Stackoverflow.com/users/15962",
"pm_score": 6,
"selected": true,
"text": "#!/usr/bin/env perl\n\nuse strict;\nuse warnings;\n\nsub find_matches($);\nsub find_matches_rec($\\@\\@);\nsub find_word_... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14728/"
] |
195,020 | <p>I've just started using Java's enums in my own projects (I have to use JDK 1.4 at work) and I am confused as to the best practice of using JavaDoc for an enum.</p>
<p>I have found that this method works, but the resultant code is a little unrefined:</p>
<pre><code>/**
* Doc for enum
*/
public enum Something {
/**
... | [
{
"answer_id": 195105,
"author": "Dov Wasserman",
"author_id": 26010,
"author_profile": "https://Stackoverflow.com/users/26010",
"pm_score": 4,
"selected": false,
"text": "Something values are used to indicate which mode of operation a client wishes... FIRST_THING indicates that the oper... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8026/"
] |
195,036 | <p>I've been researching PHP frameworks as of late for some personal projects, and it looks like most of them use a front controller to mimic a response. The controller gets the params from the request, and re-routes by sending the appropriate headers depending on the logic. This is the "response". Is this the best way... | [
{
"answer_id": 195047,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 3,
"selected": true,
"text": "switch($_GET['page']) {\n case \"one\";\n print \"page one!\";\n break;\n default:\n print \"default page\";\n ... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
195,058 | <p>Below is my $.ajax call, how do I put a selects (multiple) selected values in the data section?</p>
<pre><code>$.ajax({
type: "post",
url: "http://myServer" ,
dataType: "text",
data: {
'service' : 'myService',
'program' : 'myProgram',
'start' : start,
'end' : end ,
... | [
{
"answer_id": 195064,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 4,
"selected": true,
"text": "data: {\n ...\n 'select' : ['value1', 'value2', 'value3'],\n ...\n},\n 'select' : $('#myselectbox').serializeArray(),\n... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
195,061 | <p>I have some assembly that references NUnit and creates a single test class with a single test method. I am able to get the file system path to this assembly (e.g. "C:...\test.dll"). I would like to programmatically use NUnit to run against this assembly.</p>
<p>So far I have:</p>
<pre><code>var runner = new Simple... | [
{
"answer_id": 195066,
"author": "Ash",
"author_id": 5023,
"author_profile": "https://Stackoverflow.com/users/5023",
"pm_score": 2,
"selected": false,
"text": "Assembly a = System.Reflection.Assembly.LoadFrom(pathToFileOnDisk);\n"
},
{
"answer_id": 450076,
"author": "Ricibald... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12958/"
] |
195,070 | <p>I would like the fastest and most accurate function <code>boolean isReachable(String host, int port)</code> that passes the following JUnit tests under the conditions below. Timeout values are specified by the JUnit test itself, and may be considered "unreachable."</p>
<p><strong>Please note:</strong> All answers m... | [
{
"answer_id": 195071,
"author": "grammar31",
"author_id": 12815,
"author_profile": "https://Stackoverflow.com/users/12815",
"pm_score": 0,
"selected": false,
"text": "TimedSocket testLocalHost() testLAN() testNoDNS() testHaveDNS()"
}
] | 2008/10/12 | [
"https://Stackoverflow.com/questions/195070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12815/"
] |
195,072 | <p>I'm experiencing what I believe is a circular dependency issue with my PHP application. Please let me know if this is incorrect. Here is the situation:</p>
<p>Two classes, LogManager and DBSession.</p>
<p>DBSession is used to interact with the database, and LogManager is used to log to files. Both are widely used ... | [
{
"answer_id": 195083,
"author": "Federico A. Ramponi",
"author_id": 18770,
"author_profile": "https://Stackoverflow.com/users/18770",
"pm_score": 4,
"selected": true,
"text": "$logManager = new LogManager();\n$dbSession = new DbSession($logManager);\n$logManager->add(new FileLog($filena... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21263/"
] |
195,078 | <p>I need to hide (make private) the <code>-init</code> method of my class in Objective-C.</p>
<p>How can I do that?</p>
| [
{
"answer_id": 195107,
"author": "Matt Dillard",
"author_id": 863,
"author_profile": "https://Stackoverflow.com/users/863",
"pm_score": 2,
"selected": false,
"text": "init @interface MyClass (PrivateMethods)\n- (NSString*) init;\n@end\n\n@implementation MyClass\n\n- (NSString*) init\n{\n... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3740/"
] |
195,109 | <p>Is it possible to programaticly run compiled Python (comiled via py2exe) as administrator in Vista?</p>
<p>Some more clarification:<br />
I have written a program that modifies the windows hosts file (c:\Windows\system32\drivers\etc\hosts) in Vista the program will not run and will fail with an exception unless you... | [
{
"answer_id": 196208,
"author": "John Fouhy",
"author_id": 15154,
"author_profile": "https://Stackoverflow.com/users/15154",
"pm_score": 2,
"selected": false,
"text": "# in setup.py\n# manifest copied from http://blogs.msdn.com/shawnfa/archive/2006/04/06/568563.aspx\nmanifest = '''\n<as... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
195,114 | <p>I'm trying to do a custom button to my form (which has FormBorderStyle = none) using Visual Studio 2005. I have my 3 states button images in an ImageList linked to the button.</p>
<pre><code>this.btnClose.AutoSize = false;
this.btnClose.BackColor = System.Drawing.Color.Transparent;
this.btnClose.BackgroundImageLayo... | [
{
"answer_id": 196202,
"author": "Tute",
"author_id": 4386,
"author_profile": "https://Stackoverflow.com/users/4386",
"pm_score": 2,
"selected": false,
"text": "// \n// imageListButtons\n// \nthis.imageListButtons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObjec... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4386/"
] |
195,116 | <p>Does anyone know of a faster decimal implementation in python?</p>
<p>As the example below demonstrates, the standard library's decimal module is ~100 times slower than <code>float</code>.</p>
<pre class="lang-py prettyprint-override"><code>from timeit import Timer
def run(val, the_class):
test = the_class(1... | [
{
"answer_id": 8192918,
"author": "Andrew G",
"author_id": 995672,
"author_profile": "https://Stackoverflow.com/users/995672",
"pm_score": 5,
"selected": false,
"text": "from cdecimal import Decimal\n decimal decimal cdecimal decimal"
},
{
"answer_id": 24408798,
"author": "Jo... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/52490/"
] |
195,149 | <p>I'm wondering if it's possible to sandbox JavaScript running in the browser to prevent access to features that are normally available to JavaScript code running in an HTML page.</p>
<p>For example, let's say I want to provide a JavaScript API for end users to let them define event handlers to be run when "inter... | [
{
"answer_id": 195153,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": -1,
"selected": false,
"text": "undefined (function (alert) {\n\nalert (\"uh oh!\"); // User code\n\n}) ();\n"
},
{
"answer_id": 195156,
... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1654/"
] |
195,150 | <p>How can I raise an event from a SWF file loaded into a Flex application (using SWFLoader)?</p>
<p>I want to be able to detect</p>
<pre><code>a) when a button is pressed
b) when the animation ends
</code></pre>
| [
{
"answer_id": 195160,
"author": "Christophe Herreman",
"author_id": 17255,
"author_profile": "https://Stackoverflow.com/users/17255",
"pm_score": 2,
"selected": false,
"text": "mySWFLoader.content.addEventListener(\"myEvent\", myEventHandler);\n"
},
{
"answer_id": 195249,
"a... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24727/"
] |
195,151 | <p>I have a ListView in WPF that is databound to a basic table that I pull from the database. The code for the ListView is as follows:</p>
<pre><code><ListView Canvas.Left="402" Canvas.Top="480" Height="78" ItemsSource="{Binding}" Name="lsvViewEditCardPrint" Width="419">
<ListView.View>
<GridVi... | [
{
"answer_id": 198015,
"author": "Bob King",
"author_id": 6897,
"author_profile": "https://Stackoverflow.com/users/6897",
"pm_score": 1,
"selected": false,
"text": "Public ReadOnly Property NameCst() as String\n Get\n Return Names.LookupName(Me.IdCst)\n End Get\nEnd Property... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/71/"
] |
195,173 | <p>When you run something similar to:</p>
<pre><code>UPDATE table SET datetime = NOW();
</code></pre>
<p>on a table with 1 000 000 000 records and the query takes 10 seconds to run, will all the rows have the exact same time (minutes and seconds) or will they have different times? In other words, will the time be whe... | [
{
"answer_id": 11587803,
"author": "My Name Goes Here",
"author_id": 1541909,
"author_profile": "https://Stackoverflow.com/users/1541909",
"pm_score": 0,
"selected": false,
"text": "update TABLE set mydatetime = datetime('now');\n"
},
{
"answer_id": 38186380,
"author": "MRRaj... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
195,175 | <p>I am new to this community, but I am working on a site that requires implementation of a user/password/register check upon entry, which would check against a database, or write to the database, in the case of registration. I have experience with XHTML and CSS, and just discovered RoR. I honestly have very little ins... | [
{
"answer_id": 195178,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 0,
"selected": false,
"text": "acts_as_authenticated"
}
] | 2008/10/12 | [
"https://Stackoverflow.com/questions/195175",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27171/"
] |
195,177 | <p>I have a Zimbra installation and I need to programmaticaly update contacts in it. It seems that its REST interface is only working to add new contacts, but I need to update existing ones. Is there a way, tool or something, open-source, to do that ?</p>
| [
{
"answer_id": 195708,
"author": "edomaur",
"author_id": 14262,
"author_profile": "https://Stackoverflow.com/users/14262",
"pm_score": 3,
"selected": true,
"text": "box$ zmmailbox help contact\n\n autoComplete(ac) [opts] {query}\n -v/--verbose verbose outp... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14262/"
] |
195,207 | <p>Very simply put:</p>
<p>I have a class that consists mostly of static public members, so I can group similar functions together that still have to be called from other classes/functions.</p>
<p>Anyway, I have defined two static unsigned char variables in my class public scope, when I try to modify these values in ... | [
{
"answer_id": 195209,
"author": "Colin Jensen",
"author_id": 9884,
"author_profile": "https://Stackoverflow.com/users/9884",
"pm_score": 8,
"selected": true,
"text": "inline unsigned char test::X;\nunsigned char test::Y;\n unsigned char test::X = 4;\n"
},
{
"answer_id": 195233,
... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
195,208 | <p>I'm attempting to use File.Move to move a file from one UNC location to another. This blows up if the UNC path for the destination happens to be the local machine (error: Access to the path is denied). Example <code>File.Move(@"\\someServer\path\file.txt", @"\\blah2\somewhere\file.txt")</code>. This assumes there... | [
{
"answer_id": 195232,
"author": "Juanma",
"author_id": 3730,
"author_profile": "https://Stackoverflow.com/users/3730",
"pm_score": 2,
"selected": false,
"text": "@\"\\\\blah2\\somewhere\\file.txt\""
}
] | 2008/10/12 | [
"https://Stackoverflow.com/questions/195208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16439/"
] |
195,240 | <p>I have the following template</p>
<pre><code><h2>one</h2>
<xsl:apply-templates select="one"/>
<h2>two</h2>
<xsl:apply-templates select="two"/>
<h2>three</h2>
<xsl:apply-templates select="three"/>
</code></pre>
<p>I would like to only display the headers (one,tw... | [
{
"answer_id": 195248,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "<xsl:if test=\"one\">\n <h2>one</h2>\n <xsl:apply-templates select=\"one\"/>\n</xsl:if>\n<!-- etc -->\n <xsl:templat... | 2008/10/12 | [
"https://Stackoverflow.com/questions/195240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.