qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
345,025 | <p>I have an XML document looking similar to this:</p>
<pre><code><items>
<item cat="1" owner="14">bla</item>
<item cat="1" owner="9">bla</item>
<item cat="1" owner="14">bla</item>
<item cat="2" owner="12">bla</item>
<item cat="2" owner="12">bla</item... | [
{
"answer_id": 345109,
"author": "Jennifer",
"author_id": 22360,
"author_profile": "https://Stackoverflow.com/users/22360",
"pm_score": 5,
"selected": true,
"text": "var distinctOwners = (from item in itemsElement.Element(\"item\") \n where itemElements.Attribute(\"cat\") == 1 \nselect i... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16440/"
] |
345,041 | <p>say p.products_price equals 1</p>
<p>why does:</p>
<blockquote>
<pre><code>UPDATE products p
SET p.products_price = (1 + p.products_price)
WHERE p.products_id = 8
</code></pre>
</blockquote>
<p>make p.products_price equals 3?</p>
<p>It is adding 1 to the price and then doing it all over again? I am trying to do ... | [
{
"answer_id": 345208,
"author": "Matthew Rapati",
"author_id": 15000,
"author_profile": "https://Stackoverflow.com/users/15000",
"pm_score": 3,
"selected": false,
"text": "UPDATE products \nSET products_price = (1 + products_price) \nWHERE products_id = 8\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15000/"
] |
345,042 | <p>I would like to shorten very long descriptions to the available table column width. I have the column width information in pixels. Now I would like to convert this measure to the number of characters, so I can shorten the text to the specified number.</p>
<p>I doesn't have to be 100% correct, a near assumption will... | [
{
"answer_id": 345099,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 2,
"selected": false,
"text": "<div id='test' style='width:200px;height:100px;overflow:hidden'>\n<p>Lorem ipsum dolor sit amet, consec... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6482/"
] |
345,045 | <p>I have a C++ DLL including bitmap resources created by Visual Studio.</p>
<p>Though I can load the DLL in VB6 using LoadLibrary, I cannot load the image resources either by using LoadImage or by using LoadBitmap. When I try to get the error using GetLastError(), it doesnot return any errors.</p>
<p>I have tried us... | [
{
"answer_id": 345123,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "Private Declare Function LoadLibrary Lib \"kernel32\" Alias \"LoadLibraryA\" (ByVal lpLibFileName As String) As Long\n\nPrivat... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
345,047 | <p>A weird bug was occurring in production which I was asked to look into.<br/> The issue was tracked down to a couple of variables being declared within a For loop and not being initialized on each iteration. An assumption had been made that due to the scope of their declaration they would be "reset" on each... | [
{
"answer_id": 345173,
"author": "Grant Wagner",
"author_id": 9254,
"author_profile": "https://Stackoverflow.com/users/9254",
"pm_score": 2,
"selected": false,
"text": "Loop 0: testDecimal=0 - testString=0\nLoop 1: testDecimal= - testString=\nLoop 2: testDecimal=6.25 - testString=2\nLoop... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12875/"
] |
345,068 | <p>I would like to have a single DatagramSocket to listen for both unicast and broadcast messages. Is this possible?</p>
| [
{
"answer_id": 346241,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 4,
"selected": true,
"text": "INADDR_ANY"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/420/"
] |
345,091 | <p>I'm reviewing some code for a friend and say that he was using a return statement inside of a try-finally block. Does the code in the Finally section still fire even though the rest of the try block doesn't?</p>
<p>Example:</p>
<pre><code>public bool someMethod()
{
try
{
return true;
throw new Excepti... | [
{
"answer_id": 345103,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 8,
"selected": false,
"text": "OutOfMemoryException"
},
{
"answer_id": 345270,
"author": "Jon B",
"author_id": 27414,
"author_profile": "... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28540/"
] |
345,111 | <p>I want to put my dependent files in the app directory.</p>
<p>I seem to remember that you can force VB6 to use the files in the local directory only.</p>
<p>Any hints?</p>
| [
{
"answer_id": 346077,
"author": "Joel Spolsky",
"author_id": 4,
"author_profile": "https://Stackoverflow.com/users/4",
"pm_score": 3,
"selected": false,
"text": "A.EXE"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4906/"
] |
345,147 | <p>i'm trying to send fake keyboard input to an application that's running in a Remote Desktop session. i'm using:</p>
<pre><code>Byte key = Ord("A");
keybd_event(key, 0, 0, 0); // key goes down
keybd_event(key, 0, KEYEVENTF_KEYUP, 0); // key goes up
</code></pre>
<p>Now this code does send the character "a" to any ... | [
{
"answer_id": 345302,
"author": "Ian Boyd",
"author_id": 12597,
"author_profile": "https://Stackoverflow.com/users/12597",
"pm_score": 4,
"selected": true,
"text": "Byte key = Ord(\"A\");\n\nkeybd_event(key, 0x1E, 0, 0); // key goes down\nkeybd_event(key, 0x9E, KEYEVENTF_KEYUP, 0); // k... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
345,157 | <p>I redirect the user to the login page when user click log out however I don't think it clears any application or session because all the data persisted when the user logs back in.</p>
<p>Currently the login page has a login control and the code behind on the page is only wired up the login Authenticate.</p>
<p>Can... | [
{
"answer_id": 345164,
"author": "Ryan Cook",
"author_id": 43029,
"author_profile": "https://Stackoverflow.com/users/43029",
"pm_score": 7,
"selected": true,
"text": "Session.Abandon()\n"
},
{
"answer_id": 345175,
"author": "AnthonyWJones",
"author_id": 17516,
"author... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
345,174 | <p>I need to be able to determine when <code>ContainsFocus</code> changes on a <code>Control</code> (specifically a windows form). Overriding <code>OnGotFocus</code> is not the answer. When I bring the form to the foreground, <code>ContainsFocus</code> is true and <code>Focused</code> is false. So is there an <code>OnG... | [
{
"answer_id": 345177,
"author": "Mike Hall",
"author_id": 18202,
"author_profile": "https://Stackoverflow.com/users/18202",
"pm_score": 1,
"selected": false,
"text": "private Timer m_checkContainsFocusTimer = new Timer();\nprivate bool m_containsFocus = true;\n\nm_checkContainsFocusTime... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18202/"
] |
345,178 | <p>I can do this:</p>
<pre><code>Dim fso As New FileSystemObject
</code></pre>
<p>or I can do this:</p>
<pre><code>Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject")
</code></pre>
<p>How do I know what string to use for CreateObject? For example, how would I know to use the "Scripting." part of ... | [
{
"answer_id": 345184,
"author": "huseyint",
"author_id": 39,
"author_profile": "https://Stackoverflow.com/users/39",
"pm_score": 6,
"selected": true,
"text": "HKEY_CLASSES_ROOT\\Scripting.FileSystemObject\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16415/"
] |
345,179 | <p>I am writing a deployment script using MSBuild. I want to clean my web directories prior to copying all the new files in. My current "Clean" target looks like this:</p>
<pre><code> <Target Name="Clean">
<Exec Command="del %(DeploymentSet.LocalWebRoot)\* /Q /F /S" IgnoreExitCode="true" />
</Targ... | [
{
"answer_id": 345202,
"author": "Patrick Cuff",
"author_id": 7903,
"author_profile": "https://Stackoverflow.com/users/7903",
"pm_score": 2,
"selected": true,
"text": "rmdir /s /q"
},
{
"answer_id": 10119970,
"author": "grenade",
"author_id": 68115,
"author_profile": ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345179",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/303/"
] |
345,180 | <p>I wrote a DLL in .NET and I want to access it in VBScript. I don't want to add it to the assembly directory. </p>
<p>Is there a way to point too the DLL and create an instance of it?</p>
| [
{
"answer_id": 345248,
"author": "huseyint",
"author_id": 39,
"author_profile": "https://Stackoverflow.com/users/39",
"pm_score": 4,
"selected": true,
"text": "/codebase"
},
{
"answer_id": 524082,
"author": "Dscoduc",
"author_id": 51949,
"author_profile": "https://Sta... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1231/"
] |
345,185 | <p>Check out this test:</p>
<pre><code>[TestFixture]
public class Quick_test
{
[Test]
public void Test()
{
Assert.AreEqual(0, GetByYield().Count());
Assert.AreEqual(0, GetByEnumerable().Count());
}
private IEnumerable<string> GetByYield()
{
yield break;
}
private IEnum... | [
{
"answer_id": 345200,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 1,
"selected": false,
"text": "T[] e = {};\nreturn e;\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2595/"
] |
345,187 | <p>How do I map numbers, linearly, between a and b to go between c and d.</p>
<p>That is, I want numbers between 2 and 6 to map to numbers between 10 and 20... but I need the generalized case.</p>
<p>My brain is fried.</p>
| [
{
"answer_id": 345203,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": false,
"text": "R = (20 - 10) / (6 - 2)\ny = (x - 2) * R + 10\n"
},
{
"answer_id": 345204,
"author": "PeterAllenWebb",
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43005/"
] |
345,194 | <p>In jQuery, is there a function/plugin which I can use to match a given regular expression in a string?</p>
<p>For example, in an email input box, I get an email address, and want to see if it is in the correct format. What jQuery function should I use to see if my validating regular expression matches the input?</p... | [
{
"answer_id": 345259,
"author": "hugoware",
"author_id": 17091,
"author_profile": "https://Stackoverflow.com/users/17091",
"pm_score": 5,
"selected": false,
"text": "var phrase = \"This is a phrase\";\nphrase = phrase.replace(/is/i, \"is not\");\nalert(phrase);\n"
},
{
"answer_i... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12649/"
] |
345,198 | <p>I want to set the backgroun color for a GridViewColumn that is databound inside of a listview in WPF. I'm not sure how to ask this question being fairly new to WPF, otherwise I wouldn't have bothered all of you.</p>
<p>I want to change the background color of the whole row, based on a bool flag in my databound obje... | [
{
"answer_id": 345260,
"author": "Bryan Anderson",
"author_id": 21186,
"author_profile": "https://Stackoverflow.com/users/21186",
"pm_score": 2,
"selected": false,
"text": "<DataTemplate.Triggers>\n <Trigger Property=\"IsInternalNote\" Value=\"True\">\n <Setter Property=\"Backg... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32772/"
] |
345,199 | <p>I need to watch when certain processes are started or stopped on a Windows machine. I'm currently tapped into the WMI system and querying it every 5 seconds, but this causes a CPU spike every 5 seconds because WMI is WMI. Is there a better way of doing this? I could just make a list of running processes and attach a... | [
{
"answer_id": 345836,
"author": "denis phillips",
"author_id": 748,
"author_profile": "https://Stackoverflow.com/users/748",
"pm_score": 2,
"selected": true,
"text": " static void Main(string[] args)\n {\n // Getting all instances of notepad\n // (this is only done o... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
345,225 | <p>I have a (varchar) field Foo which can only be specified if (bit) Bar is <em>not</em> true. I would like the textbox in which Foo is displayed to be <em>disabled</em> when Bar is true -- essentially, <code>FooBox.Enabled = !isBar</code>. I'm trying to do something like</p>
<pre><code>FooBox.DataBindings.Add(new B... | [
{
"answer_id": 345245,
"author": "gcores",
"author_id": 40256,
"author_profile": "https://Stackoverflow.com/users/40256",
"pm_score": -1,
"selected": false,
"text": "FooBox.DataBindings.Add(\"Enabled\", source, \"isBar\");\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26286/"
] |
345,227 | <p>I have been using LINQ to SQL for a while, and there is one thing that has always bothered me. Whenever I modify the schema of a table, in order to refresh it in the designer, I have to delete it and then add it back. That's fine, but this means I have to actually <em>find</em> the table in the designer. I have ab... | [
{
"answer_id": 345362,
"author": "Daniel Schaffer",
"author_id": 2596,
"author_profile": "https://Stackoverflow.com/users/2596",
"pm_score": -1,
"selected": false,
"text": "[Table(\"dbo.my_table\")]\npublic class MyTable\n{\n[Column(\"id\", AutoSync = AutoSync.OnInsert, IsDbGenerated = t... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1436/"
] |
345,281 | <p>Is there a command-line argument that would force firefox.exe to launch a new process for a particular URL regardless of whether another instance of firefox is already running?</p>
| [
{
"answer_id": 345300,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 1,
"selected": false,
"text": "firefox -new-window"
},
{
"answer_id": 345320,
"author": "VonC",
"author_id": 6309,
"author_profile": "ht... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10026/"
] |
345,315 | <p>A listbox is passed, the data placed in an array, the array is sort and then the data is placed back in the listbox. The part that does work is putting the data back in the listbox. Its like the listbox is being passed by value instead of by ref.</p>
<p>Here's the sub that does the sort and the line of code that c... | [
{
"answer_id": 456437,
"author": "barrowc",
"author_id": 2127508,
"author_profile": "https://Stackoverflow.com/users/2127508",
"pm_score": 1,
"selected": false,
"text": "Private Sub UserForm_Initialize()\n\nListBox1.AddItem \"john\"\nListBox1.AddItem \"paul\"\nListBox1.AddItem \"george\"... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
345,318 | <p>What is the best design decision for a 'top-level' class to attach to an event to a class that may be '5+ layers down in the callstack?</p>
<p>For example, perhaps the MainForm has spawned an object, and that object has spawned a callstack of several other object calls. The most obvious way would be to chain the e... | [
{
"answer_id": 346511,
"author": "Nicholas Piasecki",
"author_id": 32187,
"author_profile": "https://Stackoverflow.com/users/32187",
"pm_score": 0,
"selected": false,
"text": "[EventPublication(\"StatusChanged\")]"
},
{
"answer_id": 346686,
"author": "Juliet",
"author_id"... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43823/"
] |
345,323 | <p>I've been using cmd.Parameters.AddWithValue, and not specifying a DBType (int, varchar,...) to run queries. After looking at SQL Profiler, it seems that queries run with this method run a lot slower than when you specify the data type. </p>
<p>To give you an idea of how much slower it is, here's an example. The ... | [
{
"answer_id": 345408,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 0,
"selected": false,
"text": "SELECT OrderId FROM Orders WHERE OrderId = 1001"
},
{
"answer_id": 1002108,
"author": "Will Shaver",
"... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1862/"
] |
345,324 | <p>I have an application that has multiple states, with each state responding to input differently.</p>
<p>The initial implementation was done with a big switch statement, which I refactored using the state pattern (at least, I think it's the state pattern. I'm kind of new to using design patterns, so I tend to get t... | [
{
"answer_id": 345654,
"author": "jyoung",
"author_id": 14841,
"author_profile": "https://Stackoverflow.com/users/14841",
"pm_score": 0,
"selected": false,
"text": "class StateMachine {\npublic:\n void handleInput() { //there is now only one dispatcher\n if( world.doingInput1()... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27088/"
] |
345,329 | <p>I have just started playing with the ASP.Net MVC framework, and today I created a simple UserControl that uses some CSS. Since the CSS was declared in a separate file and included in the View that called the UserControl, and not in the UserControl itself, Visual Studio could not find any of the CSS classes used in t... | [
{
"answer_id": 345405,
"author": "Timothy Khouri",
"author_id": 11917,
"author_profile": "https://Stackoverflow.com/users/11917",
"pm_score": 0,
"selected": false,
"text": "<%= MyHelperClass.Marquee(\"This text will scroll!!!\", \"important-text\") %>\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345329",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/276/"
] |
345,343 | <p>What is the simplest way to count # of visits by a user in an ASP.NET web app?</p>
<p>Our app services anonymous users, registered users and an intermediate user, called a "prospect". Prospects are users that request information but do not create an account.</p>
<p>We leave an ID cookie for every type of user, an... | [
{
"answer_id": 345390,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 0,
"selected": false,
"text": "SELECT COUNT(1) FROM TblUsers WHERE UserType = 'Prospect' AND DateRange Between....\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32700/"
] |
345,352 | <p>I want to build a LineChart component where the color of the line is indicative on how high the value is. I should be able to do this buy just using a gradient stroke (see below) but for some reason the gradient only goes from left to right and the "angle" property is being ignored. How could i do this?</p>
<pre><c... | [
{
"answer_id": 460600,
"author": "James Hay",
"author_id": 47339,
"author_profile": "https://Stackoverflow.com/users/47339",
"pm_score": 1,
"selected": false,
"text": "override protected function updateDisplayList(unscaledWidth:Number,\n u... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
345,354 | <p>I have a control that is created like so:</p>
<pre><code>public partial class MYControl : MyControlBase
{
public string InnerText {
get { return textBox1.Text; }
set { textBox1.Text = value; }
}
public MYControl()
{
InitializeComponent();
}
}
partial class MYControl
{
... | [
{
"answer_id": 345457,
"author": "Esteban Brenes",
"author_id": 14177,
"author_profile": "https://Stackoverflow.com/users/14177",
"pm_score": 0,
"selected": false,
"text": "protected System.Windows.Forms.TextBox textbox1; \nprotected System.Windows.Forms.ListBox listbox1;\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26166/"
] |
345,356 | <p>Python 2.6 was basically a stepping stone to make converting to Python 3 easier. A lot of the features destined for Python 3 were implemented in 2.6 if they didn't break backward compatibility with syntax and the class libs.</p>
<p>Why weren't set literals (<code>{1, 2, 3}</code>), set comprehensions (<code>{v for... | [
{
"answer_id": 345502,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 3,
"selected": false,
"text": "from __future__ import …"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/156/"
] |
345,385 | <p>does anyone know if there is a simple way to bind a textblock to a List.
What I've done so far is create a listview and bind it to the List and then I have a template within the listview that uses a single textblock.</p>
<p>what I'd really like to do is just bind the List to a textblock and have it display all the ... | [
{
"answer_id": 345515,
"author": "Jobi Joy",
"author_id": 8091,
"author_profile": "https://Stackoverflow.com/users/8091",
"pm_score": 6,
"selected": true,
"text": "<TextBlock Text=\"{Binding Path=Logs,Converter={StaticResource ListToStringConverter}}\"/>\n"
},
{
"answer_id": 8062... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29849/"
] |
345,396 | <p>I tried doing this but this only display the radiobutton without text beside it..</p>
<pre><code><% foreach (string s in Html.RadioButtonList("rbl")) {%>
<% =s %>
<% } %>
</code></pre>
| [
{
"answer_id": 410296,
"author": "ccook",
"author_id": 51275,
"author_profile": "https://Stackoverflow.com/users/51275",
"pm_score": 3,
"selected": false,
"text": "<% foreach (Model model in Models))\n {\n%><%= String.Format(\"<input type=\\\"radio\\\" value=\\\"{0}\\\" name=\\\"{1}\\\... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43838/"
] |
345,401 | <p>I've got a couple django models that look like this:</p>
<pre><code>from django.contrib.sites.models import Site
class Photo(models.Model):
title = models.CharField(max_length=100)
site = models.ForeignKey(Site)
file = models.ImageField(upload_to=get_site_profile_path)
def __unicode__(self):
... | [
{
"answer_id": 345419,
"author": "Tom",
"author_id": 3715,
"author_profile": "https://Stackoverflow.com/users/3715",
"pm_score": -1,
"selected": false,
"text": "form.fields[\"photos\"].queryset = request.user.photo_set.all()\n"
},
{
"answer_id": 345529,
"author": "muhuk",
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3912/"
] |
345,406 | <p>I am trying to convert this test code to C# and having a problem with the Trim command. Has anyone done anything similiar like this in C# going to use this with a text box for searching the aspx page. </p>
<pre><code>Dim q = From b In db.Blogs _
Where b.BlogContents.Contains(txtSearch.Text.Trim()) ... | [
{
"answer_id": 345503,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "string s = txtSearch.Text.Trim();\nvar q = from b in db.Blogs\n where b.BlogContents.Contains(s) || b.BlogTitle... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37126/"
] |
345,411 | <p>I'm using Fedex's web services and getting an annoying error right up front before I can actually get anywhere.</p>
<p>There was an error in serializing body of message addressValidationRequest1: 'Unable to generate a temporary class (result=1).
error CS0030: Cannot convert type 'FedEx.InterOp.AddressValidationServ... | [
{
"answer_id": 429712,
"author": "Simon_Weaver",
"author_id": 16940,
"author_profile": "https://Stackoverflow.com/users/16940",
"pm_score": 6,
"selected": true,
"text": "private ParsedElement[][] parsedStreetLineField;\nto\nprivate ParsedElement[] parsedStreetLineField;\nand\npublic Pars... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
345,413 | <p>I am working on a plugin system that loads .dll's contained in a specified folder. I am then using reflection to load the assemblies, iterate through the types they contain and identify any that implement my <code>IPlugin</code> interface. </p>
<p>I am checking this with code similar to the following: </p>
<pre><c... | [
{
"answer_id": 345464,
"author": "Jb Evain",
"author_id": 36702,
"author_profile": "https://Stackoverflow.com/users/36702",
"pm_score": 6,
"selected": true,
"text": "typeof (IPlugin).Module.FullyQualifiedName\n"
},
{
"answer_id": 7907026,
"author": "Mark Jones",
"author_i... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20489/"
] |
345,414 | <p>Let's say that I'm considering designing a WCF service whose primary purpose is to provide broad services that can be used by three disparate applications: a public-facing Web site, an internal Windows Forms application, and a wireless mobile device. The purpose of the service is twofold: (1) to consolidate code rel... | [
{
"answer_id": 351560,
"author": "Nicholas Piasecki",
"author_id": 32187,
"author_profile": "https://Stackoverflow.com/users/32187",
"pm_score": 5,
"selected": true,
"text": "makecert"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32187/"
] |
345,427 | <p>How do I inner join multiple columns from the same tables via Linq? </p>
<p>For example:
I already have this...</p>
<pre><code>join c in db.table2 on table2.ID equals table1.ID
</code></pre>
<p>I need to add this...</p>
<pre><code>join d in db.table2 on table2.Country equals table1.Country
</code></pre>
| [
{
"answer_id": 345459,
"author": "TGnat",
"author_id": 25121,
"author_profile": "https://Stackoverflow.com/users/25121",
"pm_score": 1,
"selected": false,
"text": " dim qry = FROM t1 in table1 _\n JOIN t2 in table2 on t2.ID equals t1.ID _\n AND t2.Country equals t1.Co... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43841/"
] |
345,428 | <p>I want to use libgadu (library of instant messaging protocol) under Visual Studio 2008.
I have downloaded libgadu <a href="http://toxygen.net/libgadu/files/libgadu-1.8.2.tar.gz" rel="nofollow noreferrer">http://toxygen.net/libgadu/files/libgadu-1.8.2.tar.gz</a> and under cygwin I've compiled it - ./configure , make ... | [
{
"answer_id": 345437,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 3,
"selected": true,
"text": "libgadu"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345428",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43842/"
] |
345,432 | <p>I have a simple app loading a site optimized for the iPhone in a <code>UIWebView</code>.</p>
<p>Problem is, caching does not seem to work:</p>
<pre><code>[webView loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString: url]
cachePolicy: NSURLRequestUseProtocolCachePo... | [
{
"answer_id": 386352,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "UIWebViewDelegate"
},
{
"answer_id": 1195847,
"author": "Denis",
"author_id": 146593,
"author_profile": "h... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43843/"
] |
345,454 | <p>How can I programmatically generate keypress events from Javascript code running in Safari? It looks like WebKit is using the DOM level 3 model for creating keyboard events from Javascript, and the DOM level 3 keyboard event model does not support the keypress event. Is there another way that I can use?</p>
<p>I'... | [
{
"answer_id": 345460,
"author": "Matt",
"author_id": 32881,
"author_profile": "https://Stackoverflow.com/users/32881",
"pm_score": -1,
"selected": false,
"text": "<script language=\"text/javascript\" src=\"jquery.js\"></script>\n<script language=\"text/javascript\">\n$(function() {\n ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42484/"
] |
345,489 | <p>I read somewhere that one should never use error conditions as normal program flow. Makes excellent sense to me... But</p>
<p>C# application sitting on top of a MySQL db. I need to parse a string value into two parts, an ID, and a value. (The original data come from a Devonian database), then validate the value aga... | [
{
"answer_id": 345493,
"author": "Rob Prouse",
"author_id": 30827,
"author_profile": "https://Stackoverflow.com/users/30827",
"pm_score": 3,
"selected": true,
"text": "object productName = productAdapter.GetProductName(product_id);\nif ( productName != null )\n{\n s_product = productN... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16851/"
] |
345,498 | <p>Because of a space-issue I have to make 'single-character-links' for crud actions:</p>
<p>In characters I would symbolise:<br>
'delete' with character <strong>x</strong><br>
'add' with <strong>+</strong><br>
…<br>
How would you symbolise 'change' ?</p>
| [
{
"answer_id": 345514,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "*"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
345,505 | <p>How can you <a href="http://en.wikipedia.org/wiki/Diff" rel="noreferrer">diff</a> two pipelines without using temporary files in Bash? Say you have two command pipelines:</p>
<pre><code>foo | bar
baz | quux
</code></pre>
<p>And you want to find the <code>diff</code> in their outputs. One solution would obviously... | [
{
"answer_id": 345526,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 8,
"selected": true,
"text": " foo | bar > file1.txt && baz | quux > file2.txt && diff file1.txt file2.txt\n"
},
{
"answer_id": 345536,
"author": ... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9530/"
] |
345,506 | <p>suppose I have an enum</p>
<pre><code>[Flags]
public enum E {
zero = 0,
one = 1
}
</code></pre>
<p>then I can write</p>
<pre><code>E e;
object o = 1;
e = (E) o;
</code></pre>
<p>and it will work.</p>
<p>BUT if I try to do that at runtime, like</p>
<pre><code>(o as IConvertible).ToType(typeof(E), null)... | [
{
"answer_id": 345509,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "null"
},
{
"answer_id": 345607,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "h... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43848/"
] |
345,513 | <p>Can someone give some hints of how to delete the last n lines from a file in Perl? I have a very large file of around 400 MB, and I want to delete some 125,000 last lines from it.</p>
| [
{
"answer_id": 345521,
"author": "Svante",
"author_id": 31615,
"author_profile": "https://Stackoverflow.com/users/31615",
"pm_score": 5,
"selected": true,
"text": "head"
},
{
"answer_id": 345533,
"author": "brian d foy",
"author_id": 2766176,
"author_profile": "https:... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33411/"
] |
345,518 | <p>I have a file that has one entry per line. Each line has the following format:</p>
<pre><code> "group:permissions:users"
</code></pre>
<p>Permissions and users could have more than one value separated by comas like this:</p>
<pre><code> "grp1:create,delete:yo,el,ella"
</code></pre>
<p>I want is to return the f... | [
{
"answer_id": 345528,
"author": "Jay",
"author_id": 20840,
"author_profile": "https://Stackoverflow.com/users/20840",
"pm_score": 5,
"selected": true,
"text": "[user@host]$ echo \"grp1:create,delete:yo,el,ella\" | awk -F ':' '{print $3}'\nyo,el,ella\n"
},
{
"answer_id": 349976,
... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16316/"
] |
345,540 | <p>I can't seem to be able to disable a select box when the select tag is not nested inside a form tag. Some things I tried are (using Firefox 3):
(via Jquery)</p>
<pre><code>$("#mySelect").attr("disabled", true);
$("#mySelect").attr("disabled", "disabled");
</code></pre>
<p>(also)</p>
<pre><code>document.getElemen... | [
{
"answer_id": 345554,
"author": "Tom",
"author_id": 20,
"author_profile": "https://Stackoverflow.com/users/20",
"pm_score": 3,
"selected": true,
"text": "body"
},
{
"answer_id": 348145,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackov... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4352/"
] |
345,546 | <p>In Windows for ASP, you can get it perfmon, but...</p>
<p>How to get <strong>"requests per second"</strong> for Apache in Linux?</p>
| [
{
"answer_id": 1891155,
"author": "Adam Franco",
"author_id": 15872,
"author_profile": "https://Stackoverflow.com/users/15872",
"pm_score": 5,
"selected": false,
"text": "wc -l"
},
{
"answer_id": 7469823,
"author": "xztraz",
"author_id": 952521,
"author_profile": "htt... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1100/"
] |
345,547 | <p>I want to use a Simulink mdl to generate C files in an automated fashion. I am currently trying to use an m-script and a dos command shell, but I am having issues with a "do you want to save" dialog hanging the m-script. By experimentation I know that the mdl is being modified when the "set_param" line is run (i.e... | [
{
"answer_id": 350867,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": " close_system(gcs, false);\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34605/"
] |
345,549 | <p>What algorithms are good for interactive/realtime graph-drawing for live data and direct-manipulation?</p>
<p>Failing that - what libraries do you use to draw graphs? </p>
<p>Suggestions; </p>
<ul>
<li><a href="http://prefuse.org/" rel="nofollow noreferrer">Prefuse</a> information-visualization toolkit</li>
<li>a... | [
{
"answer_id": 345658,
"author": "yogman",
"author_id": 24349,
"author_profile": "https://Stackoverflow.com/users/24349",
"pm_score": 2,
"selected": false,
"text": "http://en.wikipedia.org/wiki/DOT_language\n"
}
] | 2008/12/05 | [
"https://Stackoverflow.com/questions/345549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17398/"
] |
345,559 | <p>When starting a new project that required the use of membership providers I found that I could not connect to a remote database that contained the membership database.</p>
<p>I ran aspnet_regsql and was able to create the membership database on the remote server but when I go to ASPNET Configuration (cassini develo... | [
{
"answer_id": 345570,
"author": "jdiaz",
"author_id": 831,
"author_profile": "https://Stackoverflow.com/users/831",
"pm_score": 5,
"selected": true,
"text": " <connectionStrings>\n <add name=\"aspnet_membership\" connectionString=\"<your_connection_string>\"/>\n </connectionS... | 2008/12/05 | [
"https://Stackoverflow.com/questions/345559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/831/"
] |
345,562 | <p>I wish to put some text on a page and hide some data in that text. Does anybody know of any methods / patterns that have been used in the past to solve this problem?</p>
<p>Example: I have the following text:
"The cat sat on the dog and was happy."</p>
<p>I also have the number 123. I want to hide this number in t... | [
{
"answer_id": 345584,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 4,
"selected": false,
"text": "You belong to the beautiful group of people being elite.\n"
},
{
"answer_id": 349152,
"author": "Mecki",
... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
345,610 | <p>Our logging class, when initialised, truncates the log file to 500,000 bytes. From then on, log statements are appended to the file.</p>
<p>We do this to keep disk usage low, we're a commodity end-user product.</p>
<p>Obviously keeping the first 500,000 bytes is not useful, so we keep the last 500,000 bytes.</p>
... | [
{
"answer_id": 345622,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 0,
"selected": false,
"text": " fstream myfile;\n myfile.open(\"test.txt\",ios::app);\n"
},
{
"answer_id": 345635,
"author": "Max Lybbert"... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6444/"
] |
345,617 | <p>I am running Ubuntu8.041. Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured </p>
<p>Can't get file uploading to work at all. Have tested locally on the Ubuntu box... and from my Vista Box. Ubuntu is running inside VMWare on the Vista box.</p>
<p>Here is uploadTestBrowse.php</p>
<pre><code... | [
{
"answer_id": 345622,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 0,
"selected": false,
"text": " fstream myfile;\n myfile.open(\"test.txt\",ios::app);\n"
},
{
"answer_id": 345635,
"author": "Max Lybbert"... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26086/"
] |
345,626 | <p>I have been assigned a project to develop a set of classes that act as an interface to a storage system. A requirement is that the class support a get method with the following signature:</p>
<pre><code>public CustomObject get(String key, Date ifModifiedSince)
</code></pre>
<p>Basically the method is supposed to ... | [
{
"answer_id": 345631,
"author": "Lawrence Dol",
"author_id": 8946,
"author_profile": "https://Stackoverflow.com/users/8946",
"pm_score": 2,
"selected": false,
"text": "static public final CustomObject UNCHANGED=new CustomObject();\n"
},
{
"answer_id": 345633,
"author": "tvan... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28408/"
] |
345,632 | <p>I have redirected some valuable information into a text file. How can I execute each line of that text file in a loop?</p>
<p>What im thinking is to double space my text file, then to use a loop to execute each line invidually. I'm hoping that when i double space the text file every string of commands will have th... | [
{
"answer_id": 345727,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 0,
"selected": false,
"text": "sh commands.txt\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/345632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40120/"
] |
345,637 | <p>So I have an SQL dump file that needs to be loaded using mysql_query(). Unfortunately, it's not possible to execute multiple queries with it.</p>
<p>-> It cannot be assumed that the <strong>mysql command-line client</strong> (mysql --help) is installed -- for loading the SQL file directly</p>
<p>-> It cannot be as... | [
{
"answer_id": 345712,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 5,
"selected": true,
"text": "mysql_query()"
},
{
"answer_id": 345732,
"author": "Matt",
"author_id": 32881,
"author_profile": "h... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32881/"
] |
345,680 | <p>I have a ticker which items are updated using polling. I have written a simple jQuery plugin for the ticker which is invoked like so:</p>
<pre><code>$("#cont ul").ticker();
</code></pre>
<p>Which turns a ul into a ticker, scrolling through the li. To add new items I have to add lis to the ul, which works fine. How... | [
{
"answer_id": 345778,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 2,
"selected": true,
"text": "$.fn.addTickerItem = function(contents) {\n this.append(\n $(\"<li></li>\").html(contents);\n );\n return this;... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/214/"
] |
345,683 | <p>I am working a project that does not have a trunk / branches / tags directory structure - ie. everything is in the root of the svn repo.</p>
<p>I would like to create a trunk directory and in the root directory, and move everything in the root directory into the new trunk directory.</p>
<p>What is the best way to ... | [
{
"answer_id": 345697,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": true,
"text": "svn switch"
},
{
"answer_id": 13688913,
"author": "zhihong",
"author_id": 877513,
"author_profile": "h... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31092/"
] |
345,704 | <p>You guys were very helpful yesterday. I am still a bit confused here though. </p>
<p>I want to make it so that the numbers on the rightmost column are rounded off to the nearest dollar:</p>
<p><a href="http://www.nextadvisor.com/voip_services/voip_calculator.php?monthlybill=50&Submit=Submit" rel="nofollow no... | [
{
"answer_id": 351974,
"author": "Joe",
"author_id": 41880,
"author_profile": "https://Stackoverflow.com/users/41880",
"pm_score": 0,
"selected": false,
"text": "money_format()"
},
{
"answer_id": 467347,
"author": "pg.",
"author_id": 43035,
"author_profile": "https://... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43035/"
] |
345,705 | <p>Here's one that has me perplexed. I'm trying to implement a basic Hibernate DAO structure, but am having a problem.</p>
<p>Here's the essential code:</p>
<pre><code>int startingCount = sfdao.count();
sfdao.create( sf );
SecurityFiling sf2 = sfdao.read( sf.getId() );
sfdao.delete( sf );
int endingCount = sfdao.coun... | [
{
"answer_id": 346338,
"author": "digitalsanctum",
"author_id": 22436,
"author_profile": "https://Stackoverflow.com/users/22436",
"pm_score": 4,
"selected": false,
"text": "HibernateTemplate.initialize(object name)"
},
{
"answer_id": 3489837,
"author": "Rolando Quezada",
... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17304/"
] |
345,707 | <p>I am working on a rails application (I have some experience with rails). But, this time I am using RESTful to build it. I am wondering how do I validate my models in a RESTful fashion? What I mean by that is when a user enters data into a form, but the model validations prevent the model from being created what i... | [
{
"answer_id": 346076,
"author": "Tim Knight",
"author_id": 43043,
"author_profile": "https://Stackoverflow.com/users/43043",
"pm_score": 3,
"selected": true,
"text": "def create\n @customer = Customer.new(params[:customer])\n if @customer.save\n flash[:notice] = 'Customer was succe... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5004/"
] |
345,745 | <p>I just came across this idiom in some open-source Python, and I choked on my drink.</p>
<p>Rather than:</p>
<pre><code>if isUp:
return "Up"
else:
return "Down"
</code></pre>
<p>or even:</p>
<pre><code>return "Up" if isUp else "Down"
</code></pre>
<p>the code read:</p>
<pre><code>return isUp and "Up" or... | [
{
"answer_id": 345764,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": -1,
"selected": false,
"text": "val if cond else alt\n"
},
{
"answer_id": 345773,
"author": "Martin v. Löwis",
"author_id": 33006,
"... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8014/"
] |
345,746 | <p>This is related to a <a href="https://stackoverflow.com/questions/343517/how-do-i-work-with-multiple-git-branches-of-a-python-module">previous question</a> of mine.</p>
<p>I understand how to store and read configuration files. There are choices such as <a href="http://www.python.org/doc/2.5.2/lib/module-ConfigParse... | [
{
"answer_id": 345799,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 0,
"selected": false,
"text": "sys.path"
},
{
"answer_id": 346330,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stack... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37984/"
] |
345,753 | <p>I'm using TopLink as my ORM and MySQL as the DB.</p>
<p>I traded my auto-increment primary keys for GUIDs for one of my tables (alright, not quite: I'm actually using a random 64 bit integer, but that's good enough for my needs).</p>
<p>Anyway, now queries, which don't even use the key, are taking much longer.</p>... | [
{
"answer_id": 345801,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 0,
"selected": false,
"text": "create index Table_creationDate on Table(creationDate);\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/345753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498/"
] |
345,760 | <p>We were having a debate if enums should have uninitialized values. For example. We have </p>
<pre><code>public enum TimeOfDayType
{
Morning
Afternoon
Evening
}
</code></pre>
<p>or </p>
<pre><code>public enum TimeOfDayType
{
None
Morning
Afternoon
Evening
}
</code></pre>
<p>I think that t... | [
{
"answer_id": 345786,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 5,
"selected": true,
"text": "enum Color { Red, Blue }\n"
},
{
"answer_id": 345877,
"author": "JaredPar",
"author_id": 23283,
"auth... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
345,766 | <p>Has anyone managed to do this? I tried making a managed wrapper class for IPropertyStore but am getting AccessViolationExceptions on the methods (i.e. IPropertyStore::GetValue) that take a pointer to PROPVARIANT (rendered as a MarshalAs(UnmanagedType.Struct) out parameter in my managed version) Probably my underst... | [
{
"answer_id": 345786,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 5,
"selected": true,
"text": "enum Color { Red, Blue }\n"
},
{
"answer_id": 345877,
"author": "JaredPar",
"author_id": 23283,
"auth... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19393/"
] |
345,788 | <p>I want my client code to look somewhat like this:</p>
<pre><code> val config:Config = new MyConfig("c:/etc/myConfig.txt")
println(config.param1)
println(config.param2)
println(config.param3)
</code></pre>
<p>Which means that:</p>
<ul>
<li>The Config interface defines the config fields</li>
... | [
{
"answer_id": 345869,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 0,
"selected": false,
"text": "trait Config {\n def param1:String\n def param2:String\n def param3:Int\n}\n\nclass MyConfig(fileName:String) extends Con... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17138/"
] |
345,794 | <p>Below is the command I tried executing, without success:</p>
<pre><code>exec('ln -s ' . PLUGIN_DIR . '/.htaccess ' . ABSPATH . '/.htaccess');
</code></pre>
<p>When you add a die() at the end, it catches that there's an error:</p>
<pre><code>exec('ln -s ' . PLUGIN_DIR . '/.htaccess ' . ABSPATH . '/.htaccess') or d... | [
{
"answer_id": 345802,
"author": "Eran Galperin",
"author_id": 10585,
"author_profile": "https://Stackoverflow.com/users/10585",
"pm_score": 5,
"selected": true,
"text": "exec('ln -s ' . PLUGIN_DIR . '/.htaccess ' . ABSPATH . '/.htaccess',$output);\nvar_dump($output);\n"
},
{
"an... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32881/"
] |
345,795 | <p>I recently started Erlang, and I notice I constantly get "Warning: variable X is unused" while compiling. For example, take the following function, which finds the maximum element in a list:</p>
<pre><code> max([Head|Tail]) ->
max(Head,Tail).
max(Element,[Head | Tail]) when Element < Head ->... | [
{
"answer_id": 345803,
"author": "Dustin",
"author_id": 39975,
"author_profile": "https://Stackoverflow.com/users/39975",
"pm_score": 4,
"selected": true,
"text": "max(Element,[_Head | Tail]) ->\n max(Element, Tail);\n"
},
{
"answer_id": 345804,
"author": "Nicholas Mancuso"... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43791/"
] |
345,823 | <p>My question pertains to multi-threading in Java. I'm translating an app I wrote in Visual Basic 2008 into Java. There is a class in VB called <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker_members.aspx" rel="nofollow noreferrer">BackgroundWorker</a>, which allows the coder to... | [
{
"answer_id": 345851,
"author": "coobird",
"author_id": 17172,
"author_profile": "https://Stackoverflow.com/users/17172",
"pm_score": 0,
"selected": false,
"text": "PropertyChangeListener"
},
{
"answer_id": 345882,
"author": "OscarRyz",
"author_id": 20654,
"author_pr... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43874/"
] |
345,832 | <p>What's the best way to "see what is happening" in an algorithm/data structure? If it's something like a binary search I just imagine a bunch of boxes in a row, and throwing half of them out each time. Is there something more powerful that will let us grok something as abstract as an algorithm/data structure?</p>
<p... | [
{
"answer_id": 345850,
"author": "Ryan Fox",
"author_id": 55,
"author_profile": "https://Stackoverflow.com/users/55",
"pm_score": 0,
"selected": false,
"text": "digraph G {\n A->B;\n B->C;\n C->D;\n D->B;\n}\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/345832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/750/"
] |
345,838 | <p>With the help of the Stack Overflow community I've written a pretty basic-but fun physics simulator.</p>
<p><img src="https://i.stack.imgur.com/EeqSP.png" alt="alt text" /></p>
<p>You click and drag the mouse to launch a ball. It will bounce around and eventually stop on the "floor".</p>
<p>My next big fe... | [
{
"answer_id": 345863,
"author": "Jay Conrod",
"author_id": 1891,
"author_profile": "https://Stackoverflow.com/users/1891",
"pm_score": 8,
"selected": true,
"text": "void Simulation::collide(Storage::Iterator a, Storage::Iterator b)\n{\n // Check whether there actually was a collision... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2635/"
] |
345,865 | <p>I'm adding a record like this:</p>
<pre><code> Dim pathString As String = HttpContext.Current.Request.MapPath("Banking.mdb")
Dim odbconBanking As New OleDbConnection _
("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" + pathString)
Dim sql As String
sql = "INSERT I... | [
{
"answer_id": 345870,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 2,
"selected": false,
"text": "\"SELECT @@IDENTITY\""
},
{
"answer_id": 345871,
"author": "Kibbee",
"author_id": 1862,
"au... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32495/"
] |
345,874 | <p>Using Awk I want to match the <em>entire</em> record using a regular expression. By default the regular expression matching is for parts of a record.</p>
<p>The ideal solution would:</p>
<ul>
<li>Be general for all fields, regardless of the field separator used.</li>
<li>Not treat the entire input as a single fiel... | [
{
"answer_id": 345900,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 3,
"selected": true,
"text": "/^[01]*_[01]*$/ { print $0 }\n"
},
{
"answer_id": 345904,
"author": "jfs",
"author_id": 4279,
"autho... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
345,883 | <p>Since String implements <code>IEnumerable<char></code>, I was expecting to see the Enumerable extension methods in Intellisense, for example, when typing the period in</p>
<pre><code>String s = "asdf";
s.
</code></pre>
<p>I was expecting to see <code>.Select<char>(...)</code>, <code>.ToList<char>... | [
{
"answer_id": 345889,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 5,
"selected": true,
"text": "IEnumerable<T>"
},
{
"answer_id": 355131,
"author": "Tarik",
"author_id": 44852,
"author_profile": "ht... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22539/"
] |
345,920 | <p>I need to invoke a VBA macro within an Excel workbook from a python script. Someone else has provided the Excel workbook with the macro. The macro grabs updated values from an external database, and performs some fairly complex massaging of the data. I need the results from this massaging, and I don't really want... | [
{
"answer_id": 345995,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 2,
"selected": true,
"text": "\nSub test(ByVal i As Integer)\nMsgBox \"hello world \" & i\nEnd Sub\n"
},
{
"answer_id": 346421,
"author":... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40514/"
] |
345,939 | <p>I want to open a file dialog box in user control. I used <code>using System.Windows.Forms</code>, but still I can't access SaveFileDialog class. Can anybody tell me how to do this? Thanks.</p>
| [
{
"answer_id": 345951,
"author": "oglester",
"author_id": 2017,
"author_profile": "https://Stackoverflow.com/users/2017",
"pm_score": 0,
"selected": false,
"text": "<input type=file> \n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/345939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43886/"
] |
345,970 | <p>How can a program capture <del>generates</del> events from a dynamically created button control in asp.net?</p>
| [
{
"answer_id": 345974,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 2,
"selected": false,
"text": "Button myButton = new Button();\nmyButton.Click += new ClickEventHandler...etc\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/345970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42791/"
] |
345,987 | <p>I'm building a site which will have a 'Login/Register' link on every page. Whenever someone clicks this link, I want a JavaScript/div based signup form to float on top of the content with a link to 'close' it if they want.</p>
<p>I also want the capability of the div showing up near the position of their mouse, i.e... | [
{
"answer_id": 346185,
"author": "Lucas Jones",
"author_id": 41981,
"author_profile": "https://Stackoverflow.com/users/41981",
"pm_score": 1,
"selected": false,
"text": "<div id=\"loginBox\"><!-- insert content here--></div><br />\n<style type=\"text/css\"><br />\n #loginBox { <br/>\n ... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
345,991 | <p>Okay, what is it, and why does it occur on Win2003 server, but not on WinXP.</p>
<p>It doesn't seem to affect my application at all, but I get this error message when I close the application. And it's annoying (as errors messages should be).</p>
<p>I am using pyOpenGl and wxPython to do the graphics stuff. Unfor... | [
{
"answer_id": 346501,
"author": "Kozyarchuk",
"author_id": 52490,
"author_profile": "https://Stackoverflow.com/users/52490",
"pm_score": 9,
"selected": true,
"text": "import logging\nlogging.basicConfig()\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/345991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30862/"
] |
345,997 | <p>I accidentally committed too many files to an SVN repository and changed some things I didn't mean to. (Sigh.) In order to revert them to their prior state, the best I could come up with was </p>
<pre><code>svn rm l3toks.dtx
svn copy -r 854 svn+ssh://<repository URL>/l3toks.dtx ./l3toks.dtx
</code></pre>
<p>... | [
{
"answer_id": 346120,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 9,
"selected": true,
"text": "svn merge -r 854:853 l3toks.dtx\n"
},
{
"answer_id": 4272145,
"author": "sdaau",
"author_id": 277826,
"aut... | 2008/12/06 | [
"https://Stackoverflow.com/questions/345997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4161/"
] |
346,012 | <p>I was browsing the SGI STL documentation and ran into <a href="http://www.sgi.com/tech/stl/project1st.html" rel="nofollow noreferrer"><code>project1st<Arg1, Arg2></code></a>. I understand its definition, but I am having a hard time imagining a practical usage.</p>
<p>Have you ever used project1st or can you i... | [
{
"answer_id": 346032,
"author": "Head Geek",
"author_id": 12193,
"author_profile": "https://Stackoverflow.com/users/12193",
"pm_score": 0,
"selected": false,
"text": "identity"
},
{
"answer_id": 349080,
"author": "MSalters",
"author_id": 15416,
"author_profile": "htt... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
346,015 | <p>I have a problem with an object I have created that looks something like this:</p>
<pre><code>var myObject = {
AddChildRowEvents: function(row, p2) {
if(document.attachEvent) {
row.attachEvent('onclick', function(){this.DoSomething();});
} else {
row.addEventListener('cl... | [
{
"answer_id": 346044,
"author": "Mike Kantor",
"author_id": 14607,
"author_profile": "https://Stackoverflow.com/users/14607",
"pm_score": 5,
"selected": false,
"text": "AddChildRowEvents: function(row, p2) {\n var theObj = this;\n if(document.attachEvent) {\n row.attachEve... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,021 | <p>Suppose I have this code:</p>
<pre><code>var myArray = new Object();
myArray["firstname"] = "Bob";
myArray["lastname"] = "Smith";
myArray["age"] = 25;
</code></pre>
<p>Now if I wanted to remove "lastname"?....is there some equivalent of
<code>myArray["... | [
{
"answer_id": 346022,
"author": "Dennis C",
"author_id": 40214,
"author_profile": "https://Stackoverflow.com/users/40214",
"pm_score": 11,
"selected": true,
"text": "delete"
},
{
"answer_id": 346053,
"author": "Jason Bunting",
"author_id": 1790,
"author_profile": "ht... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
346,045 | <p>I'm trying to figure out how to fix the selection box size under JCrop. The documentation mentions how to set an initial selection area but not how to make it fixed size. Does anybody knows how could I make it fixed. Thanks in advance.</p>
<p><a href="http://deepliquid.com/content/Jcrop_Manual.html" rel="noreferrer... | [
{
"answer_id": 346302,
"author": "muhuk",
"author_id": 42188,
"author_profile": "https://Stackoverflow.com/users/42188",
"pm_score": 3,
"selected": false,
"text": "$(function(){\n $('#jcrop_target').Jcrop({\n onChange: function(){ $(this).setSelect([x, y, x2, y2]); }\n });\n... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43092/"
] |
346,047 | <p>Title says everything.</p>
<p>I've enabled NSZombieEnabled for project.</p>
<p>cheers</p>
| [
{
"answer_id": 16042891,
"author": "biloshkurskyi.ss",
"author_id": 1278744,
"author_profile": "https://Stackoverflow.com/users/1278744",
"pm_score": 0,
"selected": false,
"text": "contentUrl = [NSURL URLWithString:step.Videolink];\n"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/451867/"
] |
346,048 | <p>I have this code:</p>
<pre><code> Dim pathString As String = HttpContext.Current.Request.MapPath("Banking.mdb")
Dim odbconBanking As New OleDbConnection _
("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" + pathString)
Dim sql As String
sql = "UPDATE tblAccounts ba... | [
{
"answer_id": 346055,
"author": "Joan Pham",
"author_id": 43867,
"author_profile": "https://Stackoverflow.com/users/43867",
"pm_score": 2,
"selected": true,
"text": "sql = \"UPDATE tblAccounts SET balance = \" & CDbl(balance + value) & \" WHERE(accountID = \" & accountID & \")\"\n"
},... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32495/"
] |
346,057 | <p>I have a Delphi 7 app using <code>ADO/MSDASQL.1</code> provider and I wonder if it is possible to "log" the SQL queries sent to the DB in a easy way? Just like the SQL profiler in SQL Server?</p>
| [
{
"answer_id": 346221,
"author": "Cesar Romero",
"author_id": 36875,
"author_profile": "https://Stackoverflow.com/users/36875",
"pm_score": 3,
"selected": false,
"text": "procedure TForm23.ADOConnection1WillExecute(Connection: TADOConnection; var\n CommandText: WideString; var CursorTyp... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38165/"
] |
346,058 | <p>What are the C++ coding and file organization guidelines you suggest for people who have to deal with lots of interdependent classes spread over several source and header files?</p>
<p>I have this situation in my project and solving class definition related errors crossing over several header files has become quite... | [
{
"answer_id": 346098,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 7,
"selected": true,
"text": "foo.cxx"
},
{
"answer_id": 346191,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "htt... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1630/"
] |
346,092 | <p>I have a staging Rails site up that's running on MySQL 5.0.32-Debian.</p>
<p>On this particular site, all of my tables are using <code>utf8 / utf8_general_ci</code> encoding.</p>
<p>Inside that database, I have some data that looks like so:</p>
<pre><code>mysql> select * from currency_types limit 1,10;
+------... | [
{
"answer_id": 346109,
"author": "Subimage",
"author_id": 10596,
"author_profile": "https://Stackoverflow.com/users/10596",
"pm_score": 6,
"selected": true,
"text": "mysqldump -u root -p --opt --default-character-set=latin1 --skip-set-charset DBNAME > DBNAME.sql\n\nmysql -u root -p --de... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10596/"
] |
346,107 | <p>how to create a shortcut for a exe from a batch file.</p>
<p>i tried </p>
<pre><code>call link.bat "c:\program Files\App1\program1.exe" "C:\Documents and Settings\%USERNAME%\Desktop" "C:\Documents and Settings\%USERNAME%\Start Menu\Programs" "Program1 shortcut"
</code></pre>
<p>but it did not worked.</p>
<p>link... | [
{
"answer_id": 346118,
"author": "Martin",
"author_id": 770,
"author_profile": "https://Stackoverflow.com/users/770",
"pm_score": 1,
"selected": false,
"text": "xxmklink spath opath \n\nwhere \n\n spath path of the shortcut (.lnk added as needed)\n opath path of the object repr... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32670/"
] |
346,111 | <p>I'm using C# with <a href="http://en.wikipedia.org/wiki/.NET_Framework" rel="noreferrer">.NET</a> 3.5. Is it possible to serialize a block of code, transmit it somewhere, deserialize it, and then execute it?</p>
<p>An example usage of this would be:</p>
<pre><code>Action<object> pauxPublish = delegate(object... | [
{
"answer_id": 346126,
"author": "Tarks",
"author_id": 398,
"author_profile": "https://Stackoverflow.com/users/398",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.CodeDom.Compiler;\nusing System.Collections.Generic;\nusing System.Collections.Specialized;\nusing S... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38438/"
] |
346,112 | <p>What is the fastest way to fill ComboBox in C#?</p>
<ol>
<li>With <code>Add()</code></li>
<li>Bind the ComboBox to Dataset</li>
</ol>
<p>Or there is a faster way ?</p>
<p>Thanks.</p>
| [
{
"answer_id": 346335,
"author": "John Rudy",
"author_id": 14048,
"author_profile": "https://Stackoverflow.com/users/14048",
"pm_score": 0,
"selected": false,
"text": "Add()"
}
] | 2008/12/06 | [
"https://Stackoverflow.com/questions/346112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43907/"
] |
346,116 | <p>As the subject says I want to insert an image into the 2nd column of grid
defined with 2 columndefintions.</p>
<p>Programmatically that is???</p>
<p>I cannot see how to select the column using grid.Children.insert(1, img)
does not work.</p>
<p>Malcolm</p>
| [
{
"answer_id": 346166,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 3,
"selected": false,
"text": "Grid.SetColumn(img, 1);\n"
},
{
"answer_id": 346168,
"author": "sflanker",
"author_id": 43912,
"auth... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40568/"
] |
346,127 | <p>Here is a VB.NET code snippet</p>
<pre><code>Public Class OOPDemo
Private _strtString as String
Public Function Func(obj as OOPDemo) as boolean
obj._strString = "I can set value to private member using a object"
End Function
End Class
</code></pre>
<p>I thought we cannot access the private me... | [
{
"answer_id": 346166,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 3,
"selected": false,
"text": "Grid.SetColumn(img, 1);\n"
},
{
"answer_id": 346168,
"author": "sflanker",
"author_id": 43912,
"auth... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38997/"
] |
346,132 | <p>I have unevenly distributed data (wrt <code>date</code>) for a few years (2003-2008). I want to query data for a given set of start and end date, grouping the data by any of the supported intervals (day, week, month, quarter, year) in <a href="https://www.postgresql.org/docs/8.3/functions-datetime.html#FUNCTIONS-DAT... | [
{
"answer_id": 346195,
"author": "Martin v. Löwis",
"author_id": 33006,
"author_profile": "https://Stackoverflow.com/users/33006",
"pm_score": 5,
"selected": true,
"text": "select distinct date_trunc('month', (current_date - offs)) as date \nfrom generate_series(0,365,28) as offs;\n ... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33612/"
] |
346,138 | <p>I tried to combined tables which is <strong>fus_shift and root table</strong> into a new table which is <strong>final table</strong> but it outputs like "<strong>ERROR at line 2:
ORA-01789: query block has incorrect number of result columns</strong>". I tried also joining table as my alternative but it also outputs ... | [
{
"answer_id": 346145,
"author": "MOZILLA",
"author_id": 38997,
"author_profile": "https://Stackoverflow.com/users/38997",
"pm_score": 2,
"selected": false,
"text": "select \n table1.record_num,\n table1.test_num,\n table1.t_date,\n table1.t_time,\n tab... | 2008/12/06 | [
"https://Stackoverflow.com/questions/346138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28607/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.