qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
170,061 | <pre><code> <DataTemplate x:Key="Genre_DataTemplate">
<RadioButton GroupName="One" Content="{Binding...
</DataTemplate>
</code></pre>
<p>Above code is the ItemTemplate of my ItemsControl, I want all the Radiobuttons instantiated should behave as if it is in a group, I know the reason because th... | [
{
"answer_id": 170643,
"author": "ligaz",
"author_id": 6409,
"author_profile": "https://Stackoverflow.com/users/6409",
"pm_score": 2,
"selected": false,
"text": "<Page xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xa... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8091/"
] |
170,064 | <p>SQL Server profiler is great for profiling SQL Server performance for web apps. However, when I'm testing my webapp I'd like a summary of database hits/duration <strong>per page</strong>.</p>
<p>Does anybody know of any utilities for giving you this kind of information?</p>
| [
{
"answer_id": 170643,
"author": "ligaz",
"author_id": 6409,
"author_profile": "https://Stackoverflow.com/users/6409",
"pm_score": 2,
"selected": false,
"text": "<Page xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xa... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25088/"
] |
170,070 | <p>What criteria should I use to decide whether I write VBA code like this:</p>
<pre><code>Set xmlDocument = New MSXML2.DOMDocument
</code></pre>
<p>or like this:</p>
<pre><code>Set xmlDocument = CreateObject("MSXML2.DOMDocument")
</code></pre>
<p>?</p>
| [
{
"answer_id": 170084,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 5,
"selected": true,
"text": "Dim xmlDocument as MSXML2.DOMDocument\nSet xmlDocument = CreateObject(\"MSXML2.DOMDocument\")\n Dim xmlDocument as MSXM... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4023/"
] |
170,078 | <p>How do I set a variable to the result of select query without using a stored procedure? </p>
<hr>
<p>I want to do something like:
OOdate DATETIME</p>
<pre><code>SET OOdate = Select OO.Date
FROM OLAP.OutageHours as OO
WHERE OO.OutageID = 1
</code></pre>
<p>Then I want to use OOdate in this query:</p>
<pre><code... | [
{
"answer_id": 170082,
"author": "Luk",
"author_id": 5789,
"author_profile": "https://Stackoverflow.com/users/5789",
"pm_score": 1,
"selected": false,
"text": "(SELECT xxx in (SELECT yyy...)"
},
{
"answer_id": 170085,
"author": "JPrescottSanders",
"author_id": 19444,
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21004/"
] |
170,097 | <p>I've gone to <a href="http://sourceforge.net/project/showfiles.php?group_id=2435" rel="noreferrer">http://sourceforge.net/project/showfiles.php?group_id=2435</a>, downloaded the Automated MinGW Installer for MinGW 5.1.4 and at the same time the GNU Source-Level Debugger Release Candidate: GDB 6.8-3. I've then instal... | [
{
"answer_id": 25628827,
"author": "John",
"author_id": 532795,
"author_profile": "https://Stackoverflow.com/users/532795",
"pm_score": 6,
"selected": false,
"text": "mingw-get.exe install gdb\n"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25093/"
] |
170,140 | <p>How do I add the Swedish interactive user, </p>
<pre><code>NT INSTANS\INTERAKTIV
</code></pre>
<p>or the English interactive user, </p>
<pre><code>NT AUTHORITY\INTERACTIVE
</code></pre>
<p>or any other localised user group with <strong>write</strong> permissions to a program folder's ACL?</p>
<p>Is this q... | [
{
"answer_id": 170206,
"author": "Mihai Limbășan",
"author_id": 14444,
"author_profile": "https://Stackoverflow.com/users/14444",
"pm_score": 2,
"selected": false,
"text": "S-1-5-4"
},
{
"answer_id": 170759,
"author": "Paul Lalonde",
"author_id": 5782,
"author_profile... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25092/"
] |
170,144 | <p>Newbie WiX question: How do I<br>
1. Copy a single-use shell script to temp along with the installer<br>
e.g. </p>
<pre><code> <Binary Id='permissions.cmd' src='permissions.cmd'/>
</code></pre>
<p>2. Find and run that script at the end of the install.<br>
e.g. </p>
<pre><code><CustomAction Id='SetFo... | [
{
"answer_id": 170417,
"author": "CheGueVerra",
"author_id": 17787,
"author_profile": "https://Stackoverflow.com/users/17787",
"pm_score": 3,
"selected": false,
"text": "<CustomAction Id=\"CallCmd\" Value=\"[SystemFolder]cmd.exe\" />\n<CustomAction Id=\"RunCmd\" ExeCommand=\"/c permissi... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25092/"
] |
170,152 | <p>I know that in the end it, can't be done.</p>
<p>But, what are the options to: </p>
<p> a) limit the options for persons to create multiple accounts,<br>
b) increase the chance of detecting multiple accounts / person </p>
<p>for a blog-like web service?<br>
(people can sign up for their own blog)</... | [
{
"answer_id": 170209,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://Stackoverflow.com/users/11438",
"pm_score": 6,
"selected": true,
"text": "<a href>"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170152",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22674/"
] |
170,168 | <p>I am looking for a template engine to use client side. I have been trying a few like jsRepeater and jQuery Templates. While they seem to work OK in FireFox they all seem to break down in IE7 when it comes down to rendering HTML tables.</p>
<p>I also took a look at MicrosoftAjaxTemplates.js (from <a href="http://www... | [
{
"answer_id": 1243366,
"author": "Tomasz Mazur",
"author_id": 152309,
"author_profile": "https://Stackoverflow.com/users/152309",
"pm_score": 4,
"selected": false,
"text": "data = {\n user: {\n login: \"tomek\",\n first_name: \"Thomas\",\n last_name: \"Mazur\",\n account: {... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19676/"
] |
170,180 | <p>I want to loop over the elements of an HTML form, and store the values of the <input> fields in an object. The following code doesn't work, though:</p>
<pre><code>function config() {
$("#frmMain").children().map(function() {
var child = $("this");
if (child.is(":checkbox"))
thi... | [
{
"answer_id": 170197,
"author": "imjoevasquez",
"author_id": 24630,
"author_profile": "https://Stackoverflow.com/users/24630",
"pm_score": 5,
"selected": false,
"text": "$('#formId').children().each(\n function(){\n //access to form element via $(this)\n }\n);\n"
},
{
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25097/"
] |
170,186 | <p>I was previously taught today how to set parameters in a SQL query in .NET in this answer (<a href="https://stackoverflow.com/questions/169359/improving-code-readability-for-sql-commands#169369">click</a>).</p>
<p>Using parameters with values are fine, but when I try to set a field in the database to null I'm unsuc... | [
{
"answer_id": 170193,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 2,
"selected": false,
"text": "DbNull.Value"
},
{
"answer_id": 170205,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": ... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20900/"
] |
170,192 | <p>What is the minimal conventional directory structure for a Java web app? What do I need to put in a <code>build.xml</code> file to get ant to build it and make a WAR file?</p>
<p>My goal is to deploy a Wicket app to Tomcat without using an IDE. I want to do it with only ant and my favourite text editor.</p>
| [
{
"answer_id": 170247,
"author": "Leigh Caldwell",
"author_id": 3267,
"author_profile": "https://Stackoverflow.com/users/3267",
"pm_score": 2,
"selected": false,
"text": "web/\nweb/WEB-INF/ (sometimes we use a conf/ dir at the top level but this is minimal)\nsrc/\nlib/\n"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
170,203 | <p>This discussion started <a href="https://stackoverflow.com/questions/155084/flash-rendering-optimisation-tips-and-tricks">over here</a> but I thought it would be nice to have a definitive answer...</p>
<p>So let's say you have MovieClip on the Stage (or a UIComponent for the Flex audience) - what do you have to do ... | [
{
"answer_id": 170629,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 1,
"selected": false,
"text": "UIComponent"
},
{
"answer_id": 177317,
"author": "mikechambers",
"author_id": 10232,
"author_profile": "h... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3435/"
] |
170,223 | <p>Creating hashes of hashes in Ruby allows for convenient two (or more) dimensional lookups. However, when inserting one must always check if the first index already exists in the hash. For example:</p>
<pre><code>h = Hash.new
h['x'] = Hash.new if not h.key?('x')
h['x']['y'] = value_to_insert
</code></pre>
<p>It wo... | [
{
"answer_id": 170240,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 7,
"selected": true,
"text": "Hash.new h = Hash.new { |h, k| h[k] = Hash.new }\n hash = Hash.new(&(p = lambda{|h, k| h[k] = Hash.new(&p)}))\n"
},
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3533/"
] |
170,267 | <p>I am trying to set myself up on a mac to learn Ruby on Rails, however I seem to be having some problems. If I try to run commands such as ./script/server, i get this: </p>
<blockquote>
<p>Rails requires RubyGems >= 0.9.4 (you have 0.9.2). Please <code>gem update --system</code> and try again.</p>
</blockquote>
<... | [
{
"answer_id": 45538928,
"author": "Cœur",
"author_id": 1033581,
"author_profile": "https://Stackoverflow.com/users/1033581",
"pm_score": 0,
"selected": false,
"text": "/usr/bin /usr/local/bin sudo gem update -n /usr/local/bin --system\n"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25106/"
] |
170,272 | <p>I have a class like the following:</p>
<pre><code>public class DropDownControl<T, Key, Value> : BaseControl
where Key: IComparable
{
private IEnumerable<T> mEnumerator;
private Func<T, Key> mGetKey;
private Func<T, Value> mGetValue;
private Func<Key, bool> mIsKeyInC... | [
{
"answer_id": 170279,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "var control = DropDownControl.Create(name, dictionary);\n public static class DropDownControl\n{\n public static Dr... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21566/"
] |
170,294 | <p>I'd like to be able to switch the sound output source in Mac OS X without any GUI interaction.</p>
<p>There are tools to do control the sound output, such as <a href="http://rogueamoeba.com/freebies/" rel="noreferrer">SoundSource</a> and an <a href="http://www.macosxhints.com/article.php?story=20050614171126634" re... | [
{
"answer_id": 170886,
"author": "Jens Ayton",
"author_id": 6443,
"author_profile": "https://Stackoverflow.com/users/6443",
"pm_score": 4,
"selected": true,
"text": "kAudioHardwarePropertyDefaultOutputDevice kAudioHardwarePropertyDefaultSystemOutputDevice AudioSystemObject AudioHardwa... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13850/"
] |
170,297 | <p>Converting my current code project to TDD, I've noticed something.</p>
<pre><code>class Foo {
public event EventHandler Test;
public void SomeFunction() {
//snip...
Test(this, new EventArgs());
}
}
</code></pre>
<p>There are two dangers I can see when testing this code and relying on a... | [
{
"answer_id": 170396,
"author": "Steve Jessop",
"author_id": 13005,
"author_profile": "https://Stackoverflow.com/users/13005",
"pm_score": 2,
"selected": false,
"text": "void bar(Foo f) {\n if (f.isGreen()) accountForGreenness();\n if (f.isBig()) accountForBigness();\n finishBa... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
170,328 | <p>I would like to execute a stored procedure within a stored procedure, e.g. </p>
<pre><code>EXEC SP1
BEGIN
EXEC SP2
END
</code></pre>
<p>But I only want <code>SP1</code> to finish after <code>SP2</code> has finished running so I need to find a way for <code>SP1</code> to wait for <code>SP2</code> to finish before... | [
{
"answer_id": 170333,
"author": "PeteT",
"author_id": 16989,
"author_profile": "https://Stackoverflow.com/users/16989",
"pm_score": 2,
"selected": false,
"text": "exec dbo.sp1\nexec dbo.sp2\n"
},
{
"answer_id": 170359,
"author": "mattruma",
"author_id": 1768,
"author... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21004/"
] |
170,337 | <p>I'm having trouble wrapping my head around this. Right now I have some models that looks kind of like this:</p>
<pre><code> def Review(models.Model)
...fields...
overall_score = models.FloatField(blank=True)
def Score(models.Model)
review = models.ForeignKey(Review)
question = models.TextField()
... | [
{
"answer_id": 171703,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 8,
"selected": true,
"text": "save pre_save pre_save pre_delete save delete"
},
{
"answer_id": 52272689,
"author": "valex",
"author_... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24630/"
] |
170,346 | <p>Has someone ever measured performance of Sequential Guid vs. Standard Guid when used as Primary Keys inside a database?</p>
<hr>
<p>I do not see the need for unique keys to be guessable or not, passing them from a web UI or in some other part seems a bad practice by itself and I do not see, if you have security co... | [
{
"answer_id": 170363,
"author": "massimogentilini",
"author_id": 11673,
"author_profile": "https://Stackoverflow.com/users/11673",
"pm_score": 8,
"selected": true,
"text": "[DllImport(\"rpcrt4.dll\", SetLastError = true)]\nstatic extern int UuidCreateSequential(out Guid guid);\n\npublic... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11673/"
] |
170,353 | <p>I seem to only be able to write to the Apache error log via stderr. Anyone know of a more structured logging architecture that I could use from my python web project, like commons?</p>
| [
{
"answer_id": 14752499,
"author": "Andrew",
"author_id": 383188,
"author_profile": "https://Stackoverflow.com/users/383188",
"pm_score": 2,
"selected": false,
"text": "def handler(req) :\n req.log_error('Hello apache')\n"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24039/"
] |
170,377 | <p>I'm working on a java web-application, trying to be xml-friendly and writing my jsp files using the jspx/xml syntax. It took me hours of dissecting examples and configuration files to find out that with tomcat 5.5 files using the new syntax should end in .jspx, or tomcat won't translate tag libraries and stuff.</p>
... | [
{
"answer_id": 176853,
"author": "Mads Hansen",
"author_id": 14419,
"author_profile": "https://Stackoverflow.com/users/14419",
"pm_score": 3,
"selected": true,
"text": "<jsp-property-group>\n <url-pattern>*.jsp</url-pattern>\n <is-xml>true</is-xml>\n</jsp-property-group>\n"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6069/"
] |
170,380 | <p>Sample code that shows how to create threads using MFC declares the thread function as both static and <code>__cdecl</code>. Why is the latter required? Boost threads don't bother with this convention, so is it just an anachronism?</p>
<p>For example (MFC):</p>
<pre><code>static __cdecl UINT MyFunc(LPVOID pParam... | [
{
"answer_id": 170399,
"author": "bk1e",
"author_id": 8090,
"author_profile": "https://Stackoverflow.com/users/8090",
"pm_score": 2,
"selected": false,
"text": "AfxBeginThread() CWinThread* AfxBeginThread(\n AFX_THREADPROC pfnThreadProc,\n LPVOID pParam,\n int nPriority = THREAD_PR... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
170,394 | <p>Where can I find a free, very quick, and reliable implementation of FFT in C#?</p>
<p>That can be used in a product? Or are there any restrictions?</p>
| [
{
"answer_id": 7817663,
"author": "Gerry Beauregard",
"author_id": 992608,
"author_profile": "https://Stackoverflow.com/users/992608",
"pm_score": 4,
"selected": false,
"text": "/**\n * Performs an in-place complex FFT.\n *\n * Released under the MIT License\n *\n * Copyright (c) 2010 Ge... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4044/"
] |
170,405 | <p>This might be a similar problem to my earlier two questions - see <a href="https://stackoverflow.com/questions/169934/any-scrubyt-command-that-clicks-a-link-returns-a-403-forbidden-error">here</a> and <a href="https://stackoverflow.com/questions/168868/how-to-get-next-page-link-with-scrubyt">here</a> but I'm trying ... | [
{
"answer_id": 171145,
"author": "user6325",
"author_id": 6325,
"author_profile": "https://Stackoverflow.com/users/6325",
"pm_score": 1,
"selected": false,
"text": " sudo gem install ruby-debug\n\nThis will give you access to a nice ruby debugger, start the debugger by altering your s... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1912/"
] |
170,415 | <p>Do you know what may cause memory leaks in JavaScript?
I am interested in browsers: IE 7, FireFox 3, Safari 3</p>
| [
{
"answer_id": 170447,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https://Stackoverflow.com/users/17516",
"pm_score": 5,
"selected": false,
"text": "function body_onload()\n{\n var elem = document.getElementById('someElementId');\n // do stuff with elem\n ... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24938/"
] |
170,426 | <p>On a question of just performance, how does Python 3 compare to Python 2.x?</p>
| [
{
"answer_id": 170521,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 3,
"selected": false,
"text": "except Exception1, Exception2"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1915/"
] |
170,440 | <p>I have found that SP2 doesn't execute from within SP1 when SP1 is executed.</p>
<p>Below is the structure of SP1:</p>
<pre><code>ALTER PROCEDURE SP1 AS BEGIN
Declare c1 cursor....
open c1 fetch next from c1 ...
while @@fetch_status = 0 Begin
...
Fetch Next from c1 end
close c1
deallocate c1
exec sp2
end
<... | [
{
"answer_id": 170449,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 2,
"selected": false,
"text": "PRINT"
},
{
"answer_id": 219645,
"author": "Grzegorz Gierlik",
"author_id": 1483,
"author_profile": "htt... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21004/"
] |
170,452 | <p><strong>I am using the term "Lexical Encoding" for my lack of a better one.</strong></p>
<p>A Word is arguably the fundamental unit of communication as opposed to a Letter. Unicode tries to assign a numeric value to each Letter of all known Alphabets. What is a Letter to one language, is a Glyph to another. Unic... | [
{
"answer_id": 192282,
"author": "Robert Elwell",
"author_id": 23102,
"author_profile": "https://Stackoverflow.com/users/23102",
"pm_score": 1,
"selected": false,
"text": "John: 1\nwent: 1\nto: 1\nthe: 2\nstore: 1\nhe: 1\nbought: 1\nbread: 2\n"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4857/"
] |
170,455 | <p>I have a stored procedure that returns multiple tables. How can I execute and read both tables?</p>
<p>I have something like this:</p>
<pre>
<code>
SqlConnection conn = new SqlConnection(CONNECTION_STRING);
SqlCommand cmd = new SqlCommand("sp_mult_tables",conn);
cmd.CommandType = CommandType.StoredProcedure);
IDa... | [
{
"answer_id": 170463,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 4,
"selected": true,
"text": "using (SqlConnection conn = new SqlConnection(connection))\n{\n SqlDataAdapter adapter = new SqlDataAdapter();\n adapte... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
170,458 | <p>In some asp tutorials, like <a href="https://web.archive.org/web/20211020111619/https://www.4guysfromrolla.com/webtech/050900-1.shtml" rel="nofollow noreferrer">this</a>, i observe the following pattern:</p>
<blockquote>
<p>Application.Lock</p>
<p>'do some things with the application object</p>
<p>Application.Unlock... | [
{
"answer_id": 170489,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https://Stackoverflow.com/users/17516",
"pm_score": 2,
"selected": false,
"text": "Application(\"myCounter\") = Application(\"myCounter\") + 1\n Application.Lock\n\nApplication(\"myCounter\") = Appli... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24461/"
] |
170,466 | <p>I need a programmatic way of creating a SQL Server ODBC Data Source. I can do this by directly accessing the Registry. It would be better if this could be done via an available (SQL Server/Windows) API to protect against changes in the registry keys or values with updated SQL Server drivers.</p>
<p><strong>Accepted... | [
{
"answer_id": 170490,
"author": "Matthew Murdoch",
"author_id": 4023,
"author_profile": "https://Stackoverflow.com/users/4023",
"pm_score": 0,
"selected": false,
"text": "HKLM\\SOFTWARE\\Microsoft\\ODBC\\ODBC.INI\\ODBC Data Sources\n HKCU\\Software\\ODBC\\ODBC.INI\\ODBC Data Sources\n D... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4023/"
] |
170,467 | <p>I want to experiment with GCC whole program optimizations. To do so I have to pass all C-files at once to the compiler frontend. However, I use makefiles to automate my build process, and I'm not an expert when it comes to makefile magic.</p>
<p>How should I modify the makefile if I want to compile (maybe even link... | [
{
"answer_id": 170472,
"author": "Alex B",
"author_id": 23643,
"author_profile": "https://Stackoverflow.com/users/23643",
"pm_score": 7,
"selected": true,
"text": "LIBS = -lkernel32 -luser32 -lgdi32 -lopengl32\nCFLAGS = -Wall\n\n# Should be equivalent to your list of C files, if you don... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15955/"
] |
170,479 | <p>The problem is you can't tell the user how many characters are allowed in the field because the escaped value has more characters than the unescaped one.</p>
<p>I see a few solutions, but none looks very good:</p>
<ul>
<li>One whitelist for each field <em>(too much work and doesn't quite solve the problem)</em></l... | [
{
"answer_id": 170511,
"author": "Robert K",
"author_id": 24950,
"author_profile": "https://Stackoverflow.com/users/24950",
"pm_score": 0,
"selected": false,
"text": "HTMLSpecialChars()"
},
{
"answer_id": 170512,
"author": "Dan",
"author_id": 17121,
"author_profile": ... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13211/"
] |
170,492 | <p>What's the best way to create a non-NULL constraint in MySQL such that fieldA and fieldB can't both be NULL. I don't care if either one is NULL by itself, just as long as the other field has a non-NULL value. And if they both have non-NULL values, then it's even better.</p>
| [
{
"answer_id": 170525,
"author": "Miquella",
"author_id": 16313,
"author_profile": "https://Stackoverflow.com/users/16313",
"pm_score": 2,
"selected": false,
"text": "ALTER TABLE tableName ADD CONSTRAINT constraintName CHECK ( (fieldA IS NOT NULL) OR (fieldB IS NOT NULL) );\n"
},
{
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12094/"
] |
170,500 | <p>I've been trying to encode a relational algebra in Scala (which to my knowlege has one of the most advanced type systems) and just don't seem to find a way to get where I want.</p>
<p>As I'm not that experienced with the academic field of programming language design I don't really know what feature to look for.</p>... | [
{
"answer_id": 170648,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 3,
"selected": false,
"text": "A with B A with B A B A less B A P T P {F} where F in T P {$_1} where $_1 anonymous SELECT * $_1"
},
{
"answe... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24243/"
] |
170,536 | <p>How can I reset the <code>@@FETCH_STATUS</code> variable or set it to 0 in a stored procedure?</p>
<p>Also, can you bind FETCH_STATUS to a particular cursor?</p>
| [
{
"answer_id": 3907063,
"author": "adopilot",
"author_id": 69433,
"author_profile": "https://Stackoverflow.com/users/69433",
"pm_score": 0,
"selected": false,
"text": "fetch next\nWhile @@fetch_Status = 0\nbegin\n\nif (my condition)\n break\nfetch next ;\n\nend \n"
},
{
"answer_i... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21004/"
] |
170,554 | <p>I want to save the objects I generated in a program. After restart the App should load automaticly all Objects in an Array. I want to write them in a file and parse them after restart. Are the other smarter possibilities than do it by hand?
Thank you</p>
| [
{
"answer_id": 170667,
"author": "oxbow_lakes",
"author_id": 16853,
"author_profile": "https://Stackoverflow.com/users/16853",
"pm_score": 3,
"selected": true,
"text": "PersistentMap Serializable Map"
},
{
"answer_id": 173125,
"author": "Kevin Wong",
"author_id": 4792,
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25128/"
] |
170,556 | <p>This is related to the accepted answer for <a href="https://stackoverflow.com/questions/168486/whats-your-1-way-to-be-careful-with-a-live-database">What’s your #1 way to be careful with a live database</a>?</p>
<p>Suppose you create a temp table for backup purpose and make your changes in the original. The changes ... | [
{
"answer_id": 170588,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 2,
"selected": true,
"text": "SELECT * FROM faultyTable \nEXCEPT \nSELECT * FROM backupTable\n"
},
{
"answer_id": 170602,
"author": "Sk... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9425/"
] |
170,578 | <p>On some Microsoft Access queries, I get the following message: Operation must use an updatable query. (Error 3073). I work around it by using temporary tables, but I'm wondering if there's a better way. All the tables involved have a primary key. Here's the code:</p>
<pre><code>UPDATE CLOG SET CLOG.NEXTDUE = (
... | [
{
"answer_id": 173501,
"author": "onedaywhen",
"author_id": 15354,
"author_profile": "https://Stackoverflow.com/users/15354",
"pm_score": 0,
"selected": false,
"text": "UPDATE UPDATE"
},
{
"answer_id": 8566753,
"author": "StoneJedi",
"author_id": 361870,
"author_profi... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4873/"
] |
170,584 | <p>I have read on Stack Overflow some people that have converting to C#2.0 to C#3, but is it really worth it?</p>
<p><strike>I have a project that is done at 75% before going in maintenance phase. I am asking to myself if it is worth it to switch to C#3.0?</strike></p>
<h3>Update:</h3>
<p>The project will have a web in... | [
{
"answer_id": 171001,
"author": "benjismith",
"author_id": 22979,
"author_profile": "https://Stackoverflow.com/users/22979",
"pm_score": 2,
"selected": false,
"text": "var myDictionary = new Dictionary<String, String> {\n { \"key-1\", \"value-1\" },\n { \"key-2\", \"value-2\" },\n ... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
170,600 | <p>I realize that since UNIX sockets are platform-specific, there has to be some non-Java code involved. Specifically, we're interested in using JDBC to connect to a MySQL instance which only has UNIX domain sockets enabled. </p>
<p>It doesn't look like this is supported, but from what I've read it should be at leas... | [
{
"answer_id": 855842,
"author": "GWLlosa",
"author_id": 18071,
"author_profile": "https://Stackoverflow.com/users/18071",
"pm_score": -1,
"selected": false,
"text": "import java.sql.Connection;\nimport java.sql.DriverManager;\nimport java.sql.ResultSet;\nimport java.sql.Statement;\n\nim... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21632/"
] |
170,601 | <p>I have a somewhat messily-formatted Objective-C code base. Is there a way to have Xcode reformat an entire project to conform to a coding standard (i.e., properly indent, spaces v. tabs, etc.)? Are there other tools that might accomplish this?</p>
| [
{
"answer_id": 170618,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 3,
"selected": false,
"text": "NAME\n indent - changes the appearance of a C program by inserting or deleting\n whitespace.\n\nSYNOPSIS... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1967/"
] |
170,606 | <p>Publishing and/or collaborative applications often involve the sharing of access to resources. In a portal a user may be granted access to certain content as a member of a group or because of explicit access. The complete set of content could include public content, group membership content, and private user content... | [
{
"answer_id": 170620,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 0,
"selected": false,
"text": "SELECT <fields> \nFROM Documents d \nINNER JOIN UserDocuments ud on ud.DocumentId = d.Id \nINNER JOIN Users u ON u.Id = ud.U... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
170,617 | <p>This might sound like a little bit of a crazy question, but how can I find out (hopefully via an API/registry key) the install time and date of Windows?</p>
<p>The best I can come up with so far is to look at various files in C:\Windows and try to guess... but that's not exactly a nice solution.</p>
| [
{
"answer_id": 170630,
"author": "Tommy",
"author_id": 20451,
"author_profile": "https://Stackoverflow.com/users/20451",
"pm_score": 8,
"selected": true,
"text": "regedit.exe HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\InstallDate\n"
},
{
"answer_id": 170... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1849/"
] |
170,624 | <p>Does anyone know how to resize images proportionally using JavaScript?</p>
<p>I have tried to modify the DOM by adding attributes <code>height</code> and <code>width</code> on the fly, but seems did not work on IE6.</p>
| [
{
"answer_id": 170632,
"author": "Neall",
"author_id": 619,
"author_profile": "https://Stackoverflow.com/users/619",
"pm_score": 3,
"selected": false,
"text": "myimg = document.getElementById('myimg');\nmyimg.style.height = \"50px\";\nmyimg.style.width = \"50px\";\n myimg = document.getE... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19463/"
] |
170,650 | <p>I would like to update a Windows Forms application to provide the following features:</p>
<ul>
<li>spell checking</li>
<li>limited formatting of text: bold, italics, bulleted lists</li>
</ul>
<p>Ideally the formatted text could be accessed in a plain text way for reporting through tools that don't support the form... | [
{
"answer_id": 173425,
"author": "rudigrobler",
"author_id": 5147,
"author_profile": "https://Stackoverflow.com/users/5147",
"pm_score": 2,
"selected": false,
"text": "<TextBox SpellCheck.IsEnabled=\"True\" />\n"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20625/"
] |
170,665 | <p>Back in VB6, I wrote a few functions that would let me code without having to care about the difference between null and '' for strings, null and 0 for numbers, etc. Nothing kills my productivity more when coding than having to add special case code for dealing with data that might cause some irrelevant error; 9999... | [
{
"answer_id": 170718,
"author": "Santiago Palladino",
"author_id": 12791,
"author_profile": "https://Stackoverflow.com/users/12791",
"pm_score": 3,
"selected": false,
"text": "public static string ValueOrDefault(this string str) \n{\n if (String.IsNullOrEmpty(str)) return MY_DEFAULT... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/232/"
] |
170,686 | <p>I am looking for a simple, clean, correct XML parser to use in my C++ project. Should I write my own?</p>
| [
{
"answer_id": 2822072,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "class Address\n{ \n std::string name;\n std::vector<LONG64> number;\n time_t date;\n};\n Address soap_read_Address soap_wr... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25142/"
] |
170,689 | <p>I've been trying to consider how Row Level Security could be implemented with the Entity Framework. The idea is to have a database agnostic means that would offer methods to restrict the rows coming from the ObjectContext.</p>
<p>Some of my inital ideas have involved modifying the partial classes created by the ED... | [
{
"answer_id": 35365393,
"author": "David Silva-Barrera",
"author_id": 5411172,
"author_profile": "https://Stackoverflow.com/users/5411172",
"pm_score": 0,
"selected": false,
"text": "Views WHERE Triggers Views select * from table"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15439/"
] |
170,697 | <p>I'm changing my site to show friendly URLs like this:</p>
<pre><code>www.example.com/folder/topic
</code></pre>
<p>Works fine!</p>
<p>But when I add a parameter to the URL:</p>
<pre><code>www.example.com/folder/topic?page=2
</code></pre>
<p><code>$_GET</code> stops working. It doesn't recognise the parameter at... | [
{
"answer_id": 170714,
"author": "Zebra North",
"author_id": 17440,
"author_profile": "https://Stackoverflow.com/users/17440",
"pm_score": 3,
"selected": false,
"text": "[QSA] RewriteRule from to [QSA]"
},
{
"answer_id": 170717,
"author": "ConroyP",
"author_id": 2287,
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
170,730 | <p>I've been working with sessions, MVC design and object oriented PHP. Where should I save or retrieve data from a session? I would like to retrieve it from within methods so I don't have to pass the data to the methods. Whats the best practice?</p>
| [
{
"answer_id": 170949,
"author": "leek",
"author_id": 3765,
"author_profile": "https://Stackoverflow.com/users/3765",
"pm_score": 2,
"selected": false,
"text": "$_SESSION['Zend_Auth']['user'] = \"myusername\";\n $authNamespace = new Zend_Session_Namespace('Zend_Auth');\n$authNamespace->u... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25143/"
] |
170,787 | <p>From <a href="http://support.microsoft.com/kb/317277" rel="nofollow noreferrer">http://support.microsoft.com/kb/317277</a>:
If Windows XP restarts because of a serious error, the Windows Error Reporting tool prompts you...</p>
<p>How can <em>my</em> app know that "Windows XP has restarted because of a serious error... | [
{
"answer_id": 170812,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": true,
"text": "net stats workstation | find /i \"since\"\n Get-EventLog -list | Where-Object {$_.logdisplayname -eq \"System\"}\n Set colEvents... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1047/"
] |
170,791 | <p>I'm creating a .net custom control and it should be able to load multiple text files. I have a public property named ListFiles with those properties set : </p>
<pre><code>
[Browsable(true), Category("Configuration"), Description("List of Files to Load")]
public string ListFiles
{
get { return m_oList; }
... | [
{
"answer_id": 2373374,
"author": "SerGiant",
"author_id": 285543,
"author_profile": "https://Stackoverflow.com/users/285543",
"pm_score": 4,
"selected": false,
"text": "[EditorAttribute(typeof(System.Windows.Forms.Design.FileNameEditor), typeof(System.Drawing.Design.UITypeEditor))]\n\np... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25152/"
] |
170,824 | <p>I want to use the Date::ABBR_MONTHS constant in my rails application. I see the Ruby stdlib documentation at <a href="http://www.ruby-doc.org/stdlib/" rel="nofollow noreferrer">http://www.ruby-doc.org/stdlib/</a> which does not seem to have this constant.
However, this constant is there at <a href="http://stdlib.ru... | [
{
"answer_id": 171135,
"author": "Ryan Bigg",
"author_id": 15245,
"author_profile": "https://Stackoverflow.com/users/15245",
"pm_score": 3,
"selected": true,
"text": "ABBR_MONTHS"
},
{
"answer_id": 171990,
"author": "webmat",
"author_id": 6349,
"author_profile": "http... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17494/"
] |
170,825 | <p>I need to serialize the System.Configuration.SettingsProperty and System.Configuration.SettingsPropertyValue class object through WCF.</p>
| [
{
"answer_id": 170932,
"author": "Bob Nadler",
"author_id": 2514,
"author_profile": "https://Stackoverflow.com/users/2514",
"pm_score": 2,
"selected": false,
"text": "SettingsProvider Settings [SettingsProvider(typeof(CustomSettingsProvider))]\ninternal sealed partial class Settings { \n... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16439/"
] |
170,850 | <p>The application I am currently working on generates a lot of SQL inline queries. All generated SQL is then handed off to a database execution class. I want to write a parsing service for the data execution class that will take a query like this:</p>
<pre><code>SELECT field1, field2, field3 FROM tablename WHERE foo=... | [
{
"answer_id": 170917,
"author": "Ilya Kochetov",
"author_id": 15329,
"author_profile": "https://Stackoverflow.com/users/15329",
"pm_score": 0,
"selected": false,
"text": "command.CommandText = \"SELECT * FROM table WHERE key_field='?'\"\ncommand.Parameters.Append command.CreateParameter... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/303/"
] |
170,854 | <p>I'm writing a game in Java, and I want the user to be able to provide input from both the command line and my GUI. Currently, I use this method to get input:<br></p>
<pre><code> static String getInput(){
System.out.println("Your move:");
Scanner sc = new Scanner(System.in);
return sc.next... | [
{
"answer_id": 170881,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 0,
"selected": false,
"text": "public interface IGameInteraction\n{\n public String askForMove( String prompt );\n public boolean askAreYouSure( ... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10601/"
] |
170,900 | <blockquote>
<p><strong>Edit</strong>: Now I need to solve this problem for real, I did a little more
investigation and came up with a
number of things to reduce duplicate
content. I posted detailed code
samples on my blog: <a href="http://blog.dantup.me.uk/2009/04/reducing-duplicate-content-with-aspnet.html" rel="nofo... | [
{
"answer_id": 170955,
"author": "Danny Tuppeny",
"author_id": 25124,
"author_profile": "https://Stackoverflow.com/users/25124",
"pm_score": 3,
"selected": false,
"text": "public class LowercaseConstraint : IRouteConstraint\n{\n public bool Match(HttpContextBase httpContext, Route rou... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25124/"
] |
170,907 | <p>I have seen a few mentions of this idiom (including <a href="https://stackoverflow.com/questions/9033/hidden-features-of-c#9282">on SO</a>):</p>
<pre><code>// Deliberately empty subscriber
public event EventHandler AskQuestion = delegate {};
</code></pre>
<p>The upside is clear - it avoids the need to check for nu... | [
{
"answer_id": 170979,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": false,
"text": "internal static class Foo\n{\n internal static readonly EventHandler EmptyEvent = delegate { };\n}\npublic class B... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1853/"
] |
170,909 | <p>In C/C++, how would I turn a blocking socket into a non blocking socket in both WinSocks and *nix; so that select() would work correctly. You can use the pre-processor for the platform specific code.</p>
| [
{
"answer_id": 170929,
"author": "hazzen",
"author_id": 5066,
"author_profile": "https://Stackoverflow.com/users/5066",
"pm_score": 4,
"selected": true,
"text": "fcntl(fd, F_SETFL, O_NONBLOCK);\n u_long on = 1;\nioctlsocket(fd, FIONBIO, &on);\n"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9418/"
] |
170,931 | <p>I have a list of things (I'll call it L), an index(N) and a new thing(NEW). If I want to replace the thing in L at N with NEW, what is the best way to do this? Should I get the sublist up to N and from N to the end of the list and then glue together a new list from the first part, NEW, and the last part using list? ... | [
{
"answer_id": 170948,
"author": "hazzen",
"author_id": 5066,
"author_profile": "https://Stackoverflow.com/users/5066",
"pm_score": 3,
"selected": false,
"text": "(define (replace-nth list n elem)\n (cond\n ((null? list) ())\n ((eq? n 0) (cons elem (cdr list)))\n (#t (cons (car... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/85/"
] |
170,937 | <p>I am thinking about making a website with some fairly intense JavaScript/canvas usage and I have been looking at <a href="http://ejohn.org/blog/processingjs/" rel="nofollow noreferrer">Processing.js</a> and it seems to me that it would make manipulating the canvas significantly easier. Does anyone know any reasons ... | [
{
"answer_id": 171333,
"author": "Leo",
"author_id": 20689,
"author_profile": "https://Stackoverflow.com/users/20689",
"pm_score": 3,
"selected": true,
"text": "function line (x1, y1, x2, y2) {\n context.beginPath();\n context.moveTo(x1, y1);\n context.lineTo(x2, y2);\n context.close... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12448/"
] |
170,938 | <p>For PHP, what is the default time after which an HTTP request is deemed to have timed out? </p>
<p>I'm using the PECL HTTP extension to make HTTP requests. I can set a timeout limit when making a request, however I'd like to know what the default is if nothing is explicitly specified.</p>
<p>I've hunted through th... | [
{
"answer_id": 14536661,
"author": "user222758",
"author_id": 222758,
"author_profile": "https://Stackoverflow.com/users/222758",
"pm_score": 2,
"selected": false,
"text": "CURLOPT_TIMEOUT_MS CURLOPT_TIMEOUT CURLOPT_CONNECTTIMEOUT_MS CURLOPT_CONNECTTIMEOUT CURLOPT_DNS_CACHE_TIMEOUT"
}
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5343/"
] |
170,950 | <p>Let's say I have a database, and an RSS feed. I have to find out what is the new data from an RSS feed, that isn't already in the database. How would you go about approaching this problem?</p>
| [
{
"answer_id": 170974,
"author": "Robert Rossney",
"author_id": 19403,
"author_profile": "https://Stackoverflow.com/users/19403",
"pm_score": 2,
"selected": false,
"text": "guid link guid link pubDate"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/170950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
170,956 | <p>I want my Ruby program to do different things on a Mac than on Windows. How can I find out on which system my program is running?</p>
| [
{
"answer_id": 170967,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 4,
"selected": false,
"text": "irb(main):002:0> require 'rbconfig'\n=> true\nirb(main):003:0> Config::CONFIG[\"arch\"]\n=> \"i686-linux\"\n irb(mai... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
170,961 | <p>I tried committing files with CRLF-ending lines, but it failed.</p>
<p>I spent a whole work day on my Windows computer trying different strategies and was almost drawn to stop trying to use Git and instead try <a href="http://en.wikipedia.org/wiki/Mercurial" rel="noreferrer">Mercurial</a>.</p>
<p>How to properly han... | [
{
"answer_id": 171447,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": false,
"text": "core.autocrlf true core.safecrlf core.safecrlf"
},
{
"answer_id": 1112313,
"author": "Cory",
"author_id":... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25167/"
] |
170,962 | <p>I notice sometimes with my parent/child objects or many-to-many relationships, I need to call either <code>SaveOrUpdate</code> or <code>Merge</code>. Usually, when I need to call <code>SaveOrUpdate</code>, the exception I get on calling <code>Merge</code> has to do with transient objects not being saved first.</p>
... | [
{
"answer_id": 171019,
"author": "Ryan Duffield",
"author_id": 2696,
"author_profile": "https://Stackoverflow.com/users/2696",
"pm_score": 3,
"selected": false,
"text": "merge() saveOrUpdate()"
},
{
"answer_id": 5551190,
"author": "Ricardo Peres",
"author_id": 239594,
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6350/"
] |
170,964 | <p>In my free time I started writing a small multiplayer game with a database backend. I was looking to separate player login information from other in game information (inventory, stats, and status) and a friend brought up this might not be the best idea.</p>
<p>Would it be better to lump everything together in one t... | [
{
"answer_id": 173101,
"author": "terson",
"author_id": 22974,
"author_profile": "https://Stackoverflow.com/users/22974",
"pm_score": 2,
"selected": false,
"text": "CREATE TABLE players(\n id INTEGER NOT NULL,\n username VARCHAR2(32) NOT NULL,\n password VARCHAR2(32) NOT N... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10357/"
] |
170,986 | <p>What is the best method for adding options to a <code><select></code> from a JavaScript object using jQuery?</p>
<p>I'm looking for something that I don't need a plugin to do, but I would also be interested in the plugins that are out there.</p>
<p>This is what I did:</p>
<pre><code>selectValues = { "1": "t... | [
{
"answer_id": 171007,
"author": "matdumsa",
"author_id": 1775,
"author_profile": "https://Stackoverflow.com/users/1775",
"pm_score": 12,
"selected": true,
"text": "$.each(selectValues, function(key, value) { \n $('#mySelect')\n .append($(\"<option></option>\")\n ... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
170,997 | <p>What is the best method for removing a table row with jQuery?</p>
| [
{
"answer_id": 170998,
"author": "Darryl Hein",
"author_id": 5441,
"author_profile": "https://Stackoverflow.com/users/5441",
"pm_score": 3,
"selected": false,
"text": "$('#myTableRow').remove();\n"
},
{
"answer_id": 171006,
"author": "imjoevasquez",
"author_id": 24630,
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/170997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
171,000 | <p>I want to recreate the the update panel postback without using an update panel to do the postback. What is the generic method for doing this?</p>
<p>For example, on Stackoverflow, when you vote up or down on a question it does a postback to update the database and I would bet they didn't use an update panel.</p>
... | [
{
"answer_id": 171418,
"author": "Dave Ward",
"author_id": 60,
"author_profile": "https://Stackoverflow.com/users/60",
"pm_score": 5,
"selected": true,
"text": "{\"Success\":true,\"NewScore\":1,\"Message\":\"\",\"LastVoteTypeId\":2}\n var voteResult = function(jClicked, postId, data) {\n... | 2008/10/04 | [
"https://Stackoverflow.com/questions/171000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7644/"
] |
171,020 | <p>I am setting up support for users to sign in with client certificates. Unfortunately IIS refuses to acknowledge any certificate not chained to an installed CA (<a href="http://support.microsoft.com/kb/257587" rel="nofollow noreferrer" title="Description of the Server Authentication Process During the SSL Handshake">... | [
{
"answer_id": 171040,
"author": "Purfideas",
"author_id": 4615,
"author_profile": "https://Stackoverflow.com/users/4615",
"pm_score": 0,
"selected": false,
"text": "certmgr certmgr --add -c -m Trust <CA_cert_DER_fmt>\n"
},
{
"answer_id": 248199,
"author": "Chris Ballance",
... | 2008/10/04 | [
"https://Stackoverflow.com/questions/171020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20138/"
] |
171,027 | <p>I'm using jQuery to add an additional row to a table as the last row.</p>
<p>I have done it this way:</p>
<pre><code>$('#myTable').append('<tr><td>my data</td><td>more data</td></tr>');
</code></pre>
<p>Are there limitations to what you can add to a table like this (such as inputs... | [
{
"answer_id": 171049,
"author": "Luke Bennett",
"author_id": 17602,
"author_profile": "https://Stackoverflow.com/users/17602",
"pm_score": 12,
"selected": true,
"text": "tbody <table id=\"myTable\">\n <tbody>\n <tr>...</tr>\n <tr>...</tr>\n </tbody>\n</table>\n <table id=\"myTab... | 2008/10/04 | [
"https://Stackoverflow.com/questions/171027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
171,044 | <p>I currently use my local web server to allow costumers to preview some applications and also to allow downloads of "nightly builds" of my open source library.</p>
<p>Problem is I changed my ISP and now my port 80 is blocked. </p>
<p>Altough I know I could easily change the port on the Apache server, I'd like to av... | [
{
"answer_id": 171185,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://Stackoverflow.com/users/11438",
"pm_score": 2,
"selected": true,
"text": "RewriteRule ^(.*)$ http://mylocalserver.com:8080$1 [R]\n mylocalserver.com:8080 myaddress.com mylocalserver.com:8080"
}... | 2008/10/04 | [
"https://Stackoverflow.com/questions/171044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14540/"
] |
171,074 | <p>I'm trying to lightbox a page containing a SWF via the nifty AJAX feature in Facebox (for jQuery). The trouble is that the paths now work relative to the main index page, not the directory that houses the flash page. Here's a directory breakdown:</p>
<p>./<br />
- index.html (loads projects/projectName/... | [
{
"answer_id": 171353,
"author": "RET",
"author_id": 14750,
"author_profile": "https://Stackoverflow.com/users/14750",
"pm_score": 0,
"selected": false,
"text": "index.html projectName .facebox()"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/171074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
171,112 | <p>There are several web applications which allow you to send photos from your mobile phone and post them to web site/application. How do these work and what sort of technologies would one use to implement such a feature? Is it an MMS server or does one need to get into socket programming? For example, some applicati... | [
{
"answer_id": 171122,
"author": "roryf",
"author_id": 270,
"author_profile": "https://Stackoverflow.com/users/270",
"pm_score": 4,
"selected": true,
"text": "<input type=\"file\" />"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/171112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24059/"
] |
171,115 | <p>I'm looking for a standard way to connect to databases in PHP. We've all been there - first start with some rudimentary code to connect/query/iterate/insert/disconnect, then the code grew as the program grew, and it ended up with a mess that's hardly reusable.</p>
<p>I know there are many PEAR, PECL, and other PHP ... | [
{
"answer_id": 171157,
"author": "Darryl Hein",
"author_id": 5441,
"author_profile": "https://Stackoverflow.com/users/5441",
"pm_score": 1,
"selected": false,
"text": "GetAll() GetAllKeyed() GetOne() INSERT UPDATE SELECT DELETE INSERT DELETE"
}
] | 2008/10/04 | [
"https://Stackoverflow.com/questions/171115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18406/"
] |
171,130 | <p>So is there a way to initialize and start a command line Spring app without writing a main method. It seems like all such main methods have the same form</p>
<pre><code>public static void main(final String[] args) throws Exception {
ApplicationContext ctx = new ClassPathXmlApplicationContext("context.xml", Boot... | [
{
"answer_id": 171198,
"author": "SaM",
"author_id": 883,
"author_profile": "https://Stackoverflow.com/users/883",
"pm_score": 3,
"selected": false,
"text": "java -jar myjar.jar context.xml <project>\n <modelVersion>4.0.0</modelVersion>\n <groupId>com.stackoverflow</groupId>\n <artifa... | 2008/10/04 | [
"https://Stackoverflow.com/questions/171130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4893/"
] |
171,173 | <p>I'm trying to perform a bitwise NOT in SQL Server. I'd like to do something like this:</p>
<pre><code>update foo
set Sync = NOT @IsNew
</code></pre>
<p>Note: I started writing this and found out the answer to my own question before I finished. I still wanted to share with the community, since this piece of documen... | [
{
"answer_id": 171193,
"author": "Jason Kresowaty",
"author_id": 14280,
"author_profile": "https://Stackoverflow.com/users/14280",
"pm_score": 8,
"selected": true,
"text": "update foo\nset Sync = ~@IsNew\n"
},
{
"answer_id": 18085572,
"author": "Oliver",
"author_id": 2882... | 2008/10/04 | [
"https://Stackoverflow.com/questions/171173",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/73794/"
] |
171,196 | <p>I've implemented a basic search for a research project. I'm trying to make the search more efficient by building a <a href="http://en.wikipedia.org/wiki/Suffix_tree" rel="noreferrer">suffix tree</a>. I'm interested in a C# implementation of the <a href="http://en.wikipedia.org/wiki/Ukkonen%27s_algorithm" rel="norefe... | [
{
"answer_id": 18787996,
"author": "cdiggins",
"author_id": 184528,
"author_profile": "https://Stackoverflow.com/users/184528",
"pm_score": 2,
"selected": false,
"text": "O(N Log N) using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing NUn... | 2008/10/04 | [
"https://Stackoverflow.com/questions/171196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23164/"
] |
171,205 | <p>I've always been able to allocate 1400 megabytes for Java SE running on 32-bit Windows XP (Java 1.4, 1.5 and 1.6).</p>
<pre><code>java -Xmx1400m ...
</code></pre>
<p>Today I tried the same option on a new Windows XP machine using Java 1.5_16 and 1.6.0_07 and got the error:</p>
<pre><code>Error occurred during ini... | [
{
"answer_id": 30807786,
"author": "Michael",
"author_id": 575766,
"author_profile": "https://Stackoverflow.com/users/575766",
"pm_score": 1,
"selected": false,
"text": " java -XX:+PrintFlagsFinal\n"
}
] | 2008/10/05 | [
"https://Stackoverflow.com/questions/171205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
171,213 | <p>I need to make sure that user can run only one instance of my program at a time.<br>
Which means, that I have to check programatically, whether the same program is already running, and quit in such case.</p>
<p>The first thing that came to my mind was to create a file somewhere, when the program starts. Then, each ... | [
{
"answer_id": 171220,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 6,
"selected": true,
"text": " #define APPLICATION_INSTANCE_MUTEX_NAME \"{BA49C45E-B29A-4359-A07C-51B65B5571AD}\"\n\n //Make sure at most one ... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2239/"
] |
171,230 | <p>I need to get access to the iTunes tags in an RSS feed using PHP. I've used simplepie before for podcast feeds, but I'm not sure how to get the iTunes tags using it. Is there a way to use simplepie to do it or is there a better way?</p>
<hr>
<p>Okay I tried Simple XML.</p>
<p>All this (the code below) seems to wo... | [
{
"answer_id": 171378,
"author": "ceejayoz",
"author_id": 1902010,
"author_profile": "https://Stackoverflow.com/users/1902010",
"pm_score": 2,
"selected": false,
"text": "get_item_tags()"
},
{
"answer_id": 382932,
"author": "Doug Kaye",
"author_id": 17307,
"author_pro... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/457918/"
] |
171,251 | <p>I need to be able to merge two (very simple) JavaScript objects at runtime. For example I'd like to:</p>
<pre><code>var obj1 = { food: 'pizza', car: 'ford' }
var obj2 = { animal: 'dog' }
obj1.merge(obj2);
//obj1 now has three properties: food, car, and animal
</code></pre>
<p>Is there a built in way to do this? ... | [
{
"answer_id": 171256,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 13,
"selected": true,
"text": "let merged = {...obj1, ...obj2};\n merged obj1 obj2 obj2 obj1 /** There's no limit to the number of objects you can me... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4541/"
] |
171,267 | <p>Has anyone ever heard of a UNIX shell written in a reasonable language, like Python?</p>
| [
{
"answer_id": 171294,
"author": "skymt",
"author_id": 18370,
"author_profile": "https://Stackoverflow.com/users/18370",
"pm_score": 6,
"selected": true,
"text": "(run/strings (find \".\" -name *.c -print))"
},
{
"answer_id": 171304,
"author": "S.Lott",
"author_id": 10661... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14739/"
] |
171,279 | <p>How to I get the Fixnum returned by the following:</p>
<pre><code>"abc"[2]
</code></pre>
<p>Back into a character?</p>
| [
{
"answer_id": 171282,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 5,
"selected": true,
"text": "n.chr\n"
},
{
"answer_id": 171410,
"author": "Grant Hutchins",
"author_id": 6304,
"author_profile": "h... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117/"
] |
171,285 | <p>Is there a way for me to add logging so that entering and exiting methods gets logged along with parameters automatically somehow for tracing purposes? How would I do so?</p>
<p>I am using Log4Net.</p>
| [
{
"answer_id": 171339,
"author": "Jared",
"author_id": 7388,
"author_profile": "https://Stackoverflow.com/users/7388",
"pm_score": 3,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nusing System.Diagnostics;\n\nnames... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15771/"
] |
171,289 | <p>I'm writing a php script where I call </p>
<pre><code>$lines = file('base_list.txt');
</code></pre>
<p>to break a file up into an array. The file has over 100,000 lines in it, which should be 100,000 elements in the array, but when I run </p>
<pre><code>print_r($lines);
exit;
</code></pre>
<p>the array only cont... | [
{
"answer_id": 171310,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 2,
"selected": false,
"text": "print_r memory_limit = 8M\n .htaccess php_value memory_limit 16M\n"
},
{
"answer_id": 171422,
"author": "Jay",
... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/538/"
] |
171,292 | <p>I just fell in love with NHibernate and the fluent interface. The latter enables very nice mappings with refactoring support (no more need for xml files).</p>
<p>But nobody is perfect, so I am missing the many-to-any mapping in fluent. Does anybody know if it is already there? If so, a simple line of code would be ... | [
{
"answer_id": 171310,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 2,
"selected": false,
"text": "print_r memory_limit = 8M\n .htaccess php_value memory_limit 16M\n"
},
{
"answer_id": 171422,
"author": "Jay",
... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25206/"
] |
171,301 | <pre><code>int x = n / 3; // <-- make this faster
// for instance
int a = n * 3; // <-- normal integer multiplication
int b = (n << 1) + n; // <-- potentially faster multiplication
</code></pre>
| [
{
"answer_id": 171320,
"author": "KPexEA",
"author_id": 13676,
"author_profile": "https://Stackoverflow.com/users/13676",
"pm_score": 7,
"selected": true,
"text": "int a;\nint b;\n\na = some value;\nb = a / 3;\n"
},
{
"answer_id": 436535,
"author": "Mecki",
"author_id": 1... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1200558/"
] |
171,318 | <p>I'm generating a ton of XML that is to be passed to an API as a post variable when a user click on a form button. I also want to be able to show the user the XML before hand.</p>
<p>The code is sorta like the following in structure:</p>
<pre><code><?php
$lots of = "php";
?>
<xml>
<morexml&g... | [
{
"answer_id": 171325,
"author": "maxsilver",
"author_id": 1477,
"author_profile": "https://Stackoverflow.com/users/1477",
"pm_score": 4,
"selected": false,
"text": "ob_start(); \n// make your XML file\n\n$out1 = ob_get_contents();\n//$out1 now contains your XML\n"
},
{
"answer_i... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/319/"
] |
171,326 | <p>I have a bad habit of using the cursor keys of my keyboard to navigate source code. It's something I've done for 15 years and this of course means that my navigating speed is limited by the speed of the keyboard. On both Vista and OS X (I dual boot a MacBook), I have my key repeat rate turned all the way up. But in ... | [
{
"answer_id": 171389,
"author": "Georgi",
"author_id": 13209,
"author_profile": "https://Stackoverflow.com/users/13209",
"pm_score": 2,
"selected": false,
"text": "ctrl-right: Go to the end of the previous/the next word (stated before)\nctrl-left: Go to the beginning of the previous/th... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
171,332 | <p>I'm trying to Unit Test a class that has many internal functions. These obviously need testing too, but my Tests project is seperate, mainly because it covers many small, related projects. What I have so far is:</p>
<pre><code>FieldInfo[] _fields =
typeof(ButtonedForm.TitleButton).GetFields(
BindingFla... | [
{
"answer_id": 171337,
"author": "Eric Schoonover",
"author_id": 3957,
"author_profile": "https://Stackoverflow.com/users/3957",
"pm_score": 6,
"selected": true,
"text": "InternalsVisibleTo"
},
{
"answer_id": 171338,
"author": "Ash",
"author_id": 5023,
"author_profile... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15537/"
] |
171,343 | <p>I'm writing a quick Rails app and was wondering how I can validate the success an exec'd command. The two commands I'm running are and SVN update, and a cp from one directory to another.</p>
| [
{
"answer_id": 171359,
"author": "Unixmonkey",
"author_id": 23915,
"author_profile": "https://Stackoverflow.com/users/23915",
"pm_score": -1,
"selected": false,
"text": "svn_start_version = IO.popen(\"svn info\").readlines[4]\n`svn update`\nsvn_end_version = IO.popen(\"svn info\").readli... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15846/"
] |
171,345 | <p>We're trying to analyse flow around circular cylinder and we have a set of Cp values that we got from wind tunnel experiment. Initially, we started off with a sample frequency of 20 Hz and tried to find the frequency of vortex shedding using FFT in matlab. We got a frequency of around 7 Hz. Next, we did the same exp... | [
{
"answer_id": 171758,
"author": "Will Robertson",
"author_id": 4161,
"author_profile": "https://Stackoverflow.com/users/4161",
"pm_score": 2,
"selected": false,
"text": "Fs = 100;\nTmax = 10;\ntime = 0:1/Fs:Tmax; \nomega = 2*pi*10; % 10 Hz\nsignal = 10*sin(omega*time) + rand(1,Tmax*Fs+1... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
171,352 | <p>Is there an easy method to store a person's user settings in a sql 2000 database. Ideally all settings in one field so I don't keep having to edit the table every time I add a setting. I am thinking along the lines of serialize a settings class if anyone has an example.</p>
<p>The reason I don't want to use the bui... | [
{
"answer_id": 171467,
"author": "Jeffrey L Whitledge",
"author_id": 10174,
"author_profile": "https://Stackoverflow.com/users/10174",
"pm_score": 0,
"selected": false,
"text": "create table user_settings\n(\n user_id nvarchar(256) not null,\n keyword nvarchar(64) not null,\n constr... | 2008/10/05 | [
"https://Stackoverflow.com/questions/171352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
171,366 | <p>I am VERY new to ASP.NET. I come from a VB6 / ASP (classic) / SQL Server 2000 background. I am reading a lot about Visual Studio 2008 (have installed it and am poking around). I have read about "reflection" and would like someone to explain, as best as you can to an older developer of the technologies I've writte... | [
{
"answer_id": 171385,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 3,
"selected": true,
"text": "myobject.GetType().GetProperty(\"MyProperty\").SetValue(myobject, \"wicked!\", null)\n"
}
] | 2008/10/05 | [
"https://Stackoverflow.com/questions/171366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
171,399 | <p>For intense number-crunching i'm considering using fixed point instead of floating point. Of course it'll matter how many bytes the fixed point type is in size, on what CPU it'll be running on, if i can use (for Intel) the MMX or SSE or whatever new things come up...</p>
<p>I'm wondering if these days when floatin... | [
{
"answer_id": 10783655,
"author": "Jav_Rock",
"author_id": 744859,
"author_profile": "https://Stackoverflow.com/users/744859",
"pm_score": 1,
"selected": false,
"text": "ARM"
}
] | 2008/10/05 | [
"https://Stackoverflow.com/questions/171399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10468/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.