qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
294,355 | <p>Does anyone know of a good YAML Parser for PHP? If so, what are the pros and cons of this library?</p>
| [
{
"answer_id": 854262,
"author": "drowe",
"author_id": 105563,
"author_profile": "https://Stackoverflow.com/users/105563",
"pm_score": 6,
"selected": false,
"text": "require_once \"spyc.php\";\n$data = Spyc::YAMLLoad($myfile);\n $yaml_str = Spyc::YAMLDump($myarray);\n"
},
{
"answ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2327/"
] |
294,382 | <p>Is there any reason to prefer a <code>CharBuffer</code> to a <code>char[]</code> in the following:</p>
<pre><code>CharBuffer buf = CharBuffer.allocate(DEFAULT_BUFFER_SIZE);
while( in.read(buf) >= 0 ) {
out.append( buf.flip() );
buf.clear();
}
</code></pre>
<p>vs.</p>
<pre><code>char[] buf = new char[DEFAUL... | [
{
"answer_id": 294469,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 5,
"selected": true,
"text": "CharBuffer CharBuffer ByteBuffer"
},
{
"answer_id": 295190,
"author": "Ron Tuffin",
"author_id": 939,
"a... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1412/"
] |
294,443 | <p>I'm looking for a consistent way to structure my use of formatting strings throughout a large web application, and I'm looking for recommendations or best practices on which way to go.</p>
<p>Up until now I've had a static class that does some common formatting e.g.</p>
<p>Formatting.FormatCurrency</p>
<p>Formatt... | [
{
"answer_id": 294448,
"author": "GeekyMonkey",
"author_id": 29900,
"author_profile": "https://Stackoverflow.com/users/29900",
"pm_score": 5,
"selected": true,
"text": "public static class MyWebAppExtensions\n{\n public static string FormatCurrency(this decimal d)\n {\n retu... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5777/"
] |
294,444 | <p>I have long tables generated by datagrid control that go beyond the page width. I would like to convert that into separate table for each row or definition list where each field name is followed by field value.</p>
<p>How would I do that. </p>
| [
{
"answer_id": 294575,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "$(document).ready(\n function() {\n\n var headers = $('tr:first').children();\n\n $('tr:not(:first)').e... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35513/"
] |
294,465 | <p>DBD, and Oracle Masters:</p>
<p>I have a Perl web application that is behaving oddly. I am using it to read some stuff from an Oracle DB and report. I have version 11.1.0.6.0 of Oracle's Instant Client installed. I'm running on WinXP and have the PATH environment variable set to the instant client location. I ha... | [
{
"answer_id": 294476,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 2,
"selected": false,
"text": "open"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/294465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
294,468 | <p>I am developing a system as an aid to musicians performing transcription. The aim is to perform automatic music transcription (it does not have to be perfect, as the user will correct glitches / mistakes later) on a single instrument monophonic recording. Does anyone here have experience in automatic music transcrip... | [
{
"answer_id": 294724,
"author": "MusiGenesis",
"author_id": 14606,
"author_profile": "https://Stackoverflow.com/users/14606",
"pm_score": 7,
"selected": true,
"text": "short threshold = 10000;\nfor (int i = 0; i < samples.Length; i++)\n{\n if ((short)Math.Abs(samples[i]) > threshold)... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11650/"
] |
294,470 | <p>I need to set my process to run under 'nobody', I've found os.setuid(), but how do I find <code>uid</code> if I have <code>login</code>?</p>
<p>I've found out that uids are in /etc/passwd, but maybe there is a more pythonic way than scanning /etc/passwd. Anybody?</p>
| [
{
"answer_id": 294480,
"author": "TFKyle",
"author_id": 19208,
"author_profile": "https://Stackoverflow.com/users/19208",
"pm_score": 5,
"selected": true,
"text": "import pwd\npw = pwd.getpwnam(\"nobody\")\nuid = pw.pw_uid\n"
},
{
"answer_id": 294535,
"author": "CesarB",
... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37141/"
] |
294,485 | <p>When I run my asp.net app I get the error</p>
<blockquote>
<p>The type ‘System.Web.UI.ScriptManager’ is ambiguous:</p>
</blockquote>
<p>I am having the same problem this person is having <a href="http://forums.asp.net/t/1313257.aspx" rel="nofollow noreferrer">http://forums.asp.net/t/1313257.aspx</a> , when I cha... | [
{
"answer_id": 8276727,
"author": "Tom",
"author_id": 1066632,
"author_profile": "https://Stackoverflow.com/users/1066632",
"pm_score": 1,
"selected": false,
"text": " <!-- <add assembly=\"System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23667/"
] |
294,495 | <p>I'm trying to make semantic urls for search pages, but if someone use a search finished in dot, the .net engine return a 404. </p>
<p>The request don't even get to the routing engine, so i think its something related to security or something like that. </p>
<p>For example, the stackoverflow routes also don't work... | [
{
"answer_id": 2541677,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": 1,
"selected": false,
"text": "^(.*[^.])(\\.+)$ {R:1}"
},
{
"answer_id": 3542522,
"author": "bkaid",
"author_id": 265570,
"autho... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27369/"
] |
294,502 | <p>I'm trying to convert Matt Berseth's '<a href="http://mattberseth.com/blog/2007/10/yui_style_yesno_confirm_dialog.html" rel="nofollow noreferrer">YUI Style Yes/No Confirm Dialog</a>' so I can use it with the jQuery blockUI plugin.</p>
<p>I have to admit I'm no CSS guru but I thought this would pretty easy even for ... | [
{
"answer_id": 294534,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 4,
"selected": true,
"text": "#confirmDialogue #confirmDialogue {\n position: fixed; // absolutely position this element on the page\n height: 200px;... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419/"
] |
294,504 | <p>I am searching for an open-source implementation of an <a href="http://elinux.org/UPnP" rel="nofollow noreferrer">UPnP</a> client in Python, and more specifically of its <a href="http://en.wikipedia.org/wiki/Internet_Gateway_Device_Protocol" rel="nofollow noreferrer">Internet Gateway Device</a> (IGD) part.</p>
<p>F... | [
{
"answer_id": 298052,
"author": "oparisy",
"author_id": 38096,
"author_profile": "https://Stackoverflow.com/users/38096",
"pm_score": 4,
"selected": true,
"text": "testupnpigd.py"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/294504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38096/"
] |
294,517 | <p>I'm writing a script that pulls XML data from wowarmory.com, using PHP 5 and cURL:</p>
<pre><code>$url = "http://www.wowarmory.com";
$userAgent = 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12';
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
curl_... | [
{
"answer_id": 294555,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https://Stackoverflow.com/users/28258",
"pm_score": 2,
"selected": false,
"text": "curl wget tcptraceroute tcptraceroute"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/294517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
294,520 | <p>I'm generating C++ code, and it seems like it's going to get very messy, even my simple generating classes already have tons of special cases. Here is the code as it stands now: <a href="http://github.com/alex/alex-s-language/tree/local%2Fcpp-generation/alexs_lang/cpp" rel="nofollow noreferrer">http://github.com/al... | [
{
"answer_id": 294542,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "indent"
},
{
"answer_id": 294550,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37181/"
] |
294,543 | <p>I have a main table that I must get data from. I have a left outer join where the fields will match 40% of the time. And then I have another join where I need to match the data from table A with.</p>
<p>This is the SQL in pseudo code. This query won't work.</p>
<p>-- This is the part I want to do but doesn't wor... | [
{
"answer_id": 294588,
"author": "Mark",
"author_id": 26310,
"author_profile": "https://Stackoverflow.com/users/26310",
"pm_score": 5,
"selected": true,
"text": "FROM \n TABLE_A A LEFT OUTER JOIN TABLE_B HIST ON\n HIST.COL1 = A.COL1\n LEFT OUTER JOIN TABLE_D H ON \n H.COL3 = ... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10522/"
] |
294,545 | <p>I have a winforms projects and we use the command pattern. We are trying to clean up our directory structure and make it consistent.</p>
<p>We are trying to decide if we should have a root commands folder or not. What do you think is better for a directory structure?</p>
<p>Project<br>
--Commands<br>
----AddComma... | [
{
"answer_id": 294561,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 0,
"selected": false,
"text": "Project\n-Commands\n--Calculation\n----AddCommand\n----SubtractCommand\n--Database\n----InsertCommand\n----DeleteCommand\n"... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
294,553 | <p>I was just wondering if there is any difference between the two different new object initializers or is it just syntactic sugar. </p>
<p>So is:</p>
<pre><code>Dim _StreamReader as New Streamreader(mystream)
</code></pre>
<p>and different to:</p>
<pre><code>Dim _StreamReader as Streamreader = new streamreader(m... | [
{
"answer_id": 294568,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 5,
"selected": true,
"text": "As New As New Nothing"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/294553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
294,558 | <p>I have an enumeration: <code>ENUM( 'alpha', 'beta', 'gamma', 'delta', 'omega' )</code></p>
<p>If I sort my table by this column I get them in the correct order defined above.</p>
<p>However, I can't find a way to select a subset of these, e.g. everything before delta. Using <code>WHERE status < 'delta'</code> o... | [
{
"answer_id": 294603,
"author": "Kendrick Erickson",
"author_id": 37882,
"author_profile": "https://Stackoverflow.com/users/37882",
"pm_score": 2,
"selected": false,
"text": "FIELD(column, \"string1\", \"string2\", ...) ENUM SELECT * FROM `table` WHERE FIELD(`enum_column`, \"alpha\", \"... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37947/"
] |
294,582 | <p>I'm currently considering the use of Reflection classes (ReflectionClass and ReflectionMethod mainly) in my own MVC web framework, because I need to automatically instanciate controller classes and invoke their methods without any required configuration ("convention over configuration" approach).</p>
<p>I'm concern... | [
{
"answer_id": 409299,
"author": "codeassembly",
"author_id": 47537,
"author_profile": "https://Stackoverflow.com/users/47537",
"pm_score": 2,
"selected": false,
"text": "<?php\nrequire_once('sanitize.inc');\n\n/**\n * MVC Controller\n *\n * This Class implements MVC Controller part\n *... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38072/"
] |
294,585 | <p>Sorry for the newb question. I'm still learning programming. So I'm using C++, and I need to do something like this:</p>
<pre><code>int n;
do {
n = get_data();
if(n != -1)
send(n);
} while(n != -1);
</code></pre>
<p>This is just a sketch. Anyway it doesn't feel real elegant. I have to have my t... | [
{
"answer_id": 294589,
"author": "Charlie",
"author_id": 18529,
"author_profile": "https://Stackoverflow.com/users/18529",
"pm_score": 4,
"selected": false,
"text": "int n;\nwhile(1) {\n n = get_data();\n if(n == -1)\n break;\n send(n);\n}\n"
},
{
"answer_id": 294... | 2008/11/16 | [
"https://Stackoverflow.com/questions/294585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
294,607 | <p>I'm using django and when users go to www.website.com/ I want to point them to the index view.</p>
<p>Right now I'm doing this:</p>
<pre><code>(r'^$', 'ideas.idea.views.index'),
</code></pre>
<p>However, it's not working. I'm assuming my regular expression is wrong. Can anyone help me out? I've looked at python r... | [
{
"answer_id": 294612,
"author": "Harley Holcombe",
"author_id": 1057,
"author_profile": "https://Stackoverflow.com/users/1057",
"pm_score": 3,
"selected": true,
"text": "urls.py"
},
{
"answer_id": 294656,
"author": "Community",
"author_id": -1,
"author_profile": "htt... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294607",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23695/"
] |
294,609 | <p>I'm interested in measuring and improving (where necessary) my team's SQL-92 skills. Can anyone recommend an appropriate on-line course and/or examination?</p>
<p>Ideally it would be vendor-neutral, but it could also be MSSQL/Oracle specific, as long as the proprietary bits were flagged as such.</p>
| [
{
"answer_id": 294612,
"author": "Harley Holcombe",
"author_id": 1057,
"author_profile": "https://Stackoverflow.com/users/1057",
"pm_score": 3,
"selected": true,
"text": "urls.py"
},
{
"answer_id": 294656,
"author": "Community",
"author_id": -1,
"author_profile": "htt... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10433/"
] |
294,611 | <p>What is the best way to block certain input keys from being used in a TextBox with out blocking special keystrokes such as <kbd>Ctrl</kbd>-<kbd>V</kbd>/<kbd>Ctrl</kbd>-<kbd>C</kbd>?</p>
<p>For example, only allowing the user to enter a subset of characters or numerics such as A or B or C and nothing else.</p>
| [
{
"answer_id": 294624,
"author": "Nathan Koop",
"author_id": 18821,
"author_profile": "https://Stackoverflow.com/users/18821",
"pm_score": 0,
"selected": false,
"text": " private void txtInput_TextChanged(object sender, EventArgs e)\n {\n if (txtInput.Text.ToUpper() == \"A\"... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4490/"
] |
294,616 | <p>I am trying to resolve Euler Problem 18 -> <a href="http://projecteuler.net/index.php?section=problems&id=18" rel="nofollow noreferrer">http://projecteuler.net/index.php?section=problems&id=18</a></p>
<p>I am trying to do this with c++ (I am relearning it and euler problems make for good learning/searching ... | [
{
"answer_id": 294641,
"author": "Alastair",
"author_id": 31038,
"author_profile": "https://Stackoverflow.com/users/31038",
"pm_score": 3,
"selected": true,
"text": "countNums"
},
{
"answer_id": 294687,
"author": "baash05",
"author_id": 31325,
"author_profile": "https... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8715/"
] |
294,622 | <p>I'm getting an exception which says "Access Denied" when the users permissions are sufficient, how do I catch an exception and check for "Access Denied" so that I can show the user a friendlier "Sorry Access Denied" message?</p>
<p>Thanks
Beginner :-)</p>
| [
{
"answer_id": 294630,
"author": "Ed S.",
"author_id": 1053,
"author_profile": "https://Stackoverflow.com/users/1053",
"pm_score": 3,
"selected": false,
"text": "try\n{\n //error occurs\n}\ncatch (Exception ex)\n{\n MessageBox.show(ex.Message);\n}\n Try\n{\n //error occurs\n}\nc... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
294,659 | <p>I made a couple of changes to my working application and started getting the following error at this line of code.</p>
<pre><code>Dim Deserializer As New Serialization.XmlSerializer(GetType(Groups))
</code></pre>
<p>And here is the error.</p>
<pre><code> BindingFailure was detected
Message: The assembly wi... | [
{
"answer_id": 295239,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 0,
"selected": false,
"text": "Groups Assembly.LoadFrom() Assembly.Load() Assembly.LoadFrom() AppDomain.AssemblyResolve"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/294659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6514/"
] |
294,660 | <p>What's a good algorithm to solve this problem?</p>
<p>I have three groups of people - group A, group B, and group C. There are the same number of people in each group. They each have a list of people in the other groups that they're willing to work with. I want to group all these people together in groups of 3 (one... | [
{
"answer_id": 294970,
"author": "RexE",
"author_id": 38146,
"author_profile": "https://Stackoverflow.com/users/38146",
"pm_score": 3,
"selected": false,
"text": "M1 = |A| x |B| M1(a,b) = 1 M2 = |A| x |C| M2(a,c) = 1 M2 = |B| x |C| M3(b,c) = 1 X = |A| x |B| x |C| X(a,b,c) = 1 Sum[(all a,... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
294,661 | <p>I have a MySQL table that will only have one row. What should my statement be for the first time I insert to this row, and for subsequent updates? I tried an insert where the primary key equals 1, but this doesn't account for the first time around when no row exists yet.</p>
| [
{
"answer_id": 294671,
"author": "SoapBox",
"author_id": 36384,
"author_profile": "https://Stackoverflow.com/users/36384",
"pm_score": 4,
"selected": true,
"text": "INSERT INTO table(col1,col2,col3) VALUES(val1,val2,val3) ON DUPLICATE KEY UPDATE col1 = val1, col2 = val2, col3 = val3;\n"
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
294,664 | <p>I also want to save the font size in my <code>.emacs</code> file.</p>
| [
{
"answer_id": 294685,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": false,
"text": "default ;; my colour theme is whateveryouwant :)\n(require 'color-theme)\n(color-theme-initialize)\n(color-... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8661/"
] |
294,680 | <p>The application de-serializes a stream into dynamically allocated objects and then keeps base type pointers in a linked list (i.e. abstract factory). It's too slow. Profiling says all the time is spent in <code>operator new</code>.</p>
<p>Notes: The application already uses a custom memory allocator that does poo... | [
{
"answer_id": 294735,
"author": "Steve Jessop",
"author_id": 13005,
"author_profile": "https://Stackoverflow.com/users/13005",
"pm_score": 0,
"selected": false,
"text": "char *alloc(POOL *pool, size_t size) {\n // if size is a parameter, and may be a non-multiple the max alignment \n... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16161/"
] |
294,688 | <p>I have a specific scenario in mind, but I will ask this generally:</p>
<p><strong>Is there a way to make my mobile phone trigger an action on my computer?</strong> I am thinking that with a smart phone it must be possible to link the phone and the personal computer with bluetooth, and have some sort of small progra... | [
{
"answer_id": 565788,
"author": "funkybro",
"author_id": 64505,
"author_profile": "https://Stackoverflow.com/users/64505",
"pm_score": 3,
"selected": false,
"text": "+CLCC: 1,1,4,0,0,\"07xxxxxxxxx\",129\n"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/294688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29397/"
] |
294,699 | <p>I am using the following servlet-mapping in my <code>web.xml</code> file:</p>
<pre><code><servlet>
<servlet-name>PostController</servlet-name>
<servlet-class>com.webcodei.controller.PostController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>... | [
{
"answer_id": 294708,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 2,
"selected": false,
"text": "/actions/* *.action *.do"
},
{
"answer_id": 294725,
"author": "Peter Bratton",
"author_id": 37856,
"auth... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37190/"
] |
294,700 | <p>How does the data go from the MVC to the browser and back again? Does it use Microsoft's own technology like ASMX or WCF or something completely different? </p>
<p>This sounds like MVC is using a ASMX Web Service they are using but I can't seem to find any documentation which gives the real answer. </p>
| [
{
"answer_id": 294792,
"author": "CVertex",
"author_id": 209,
"author_profile": "https://Stackoverflow.com/users/209",
"pm_score": 1,
"selected": false,
"text": "ActionResult MyAction() {\n return Json(new { success=false, for_lunch=\"mmm, chicken\"});\n}\n"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/294700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
294,705 | <p>I have two tables: articles and articletags</p>
<pre><code>articles: id, author, date_time, article_text
articletags: id, tag
(article.id == articletags.id in a many-to-many relationship)
</code></pre>
<p>I am after the last time that something was published under each tag. To put it another way, for every tag, l... | [
{
"answer_id": 294713,
"author": "SoapBox",
"author_id": 36384,
"author_profile": "https://Stackoverflow.com/users/36384",
"pm_score": 0,
"selected": false,
"text": "SELECT date_time, tag \nFROM articles, articletags\nWHERE articles.id = articletags.id\nORDER BY date_time DESC\nGROUP BY ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3431280/"
] |
294,712 | <p>I have a few model classes with basic one-to-many relationships. For example, a book has many recipes, and each recipe has many ingredients:</p>
<pre><code>class Book(models.Model):
name = models.CharField(max_length=64)
class Recipe(models.Model):
book = models.ForeignKey(Book)
name = models.CharFiel... | [
{
"answer_id": 294717,
"author": "Harley Holcombe",
"author_id": 1057,
"author_profile": "https://Stackoverflow.com/users/1057",
"pm_score": 1,
"selected": false,
"text": "mybook = Book.objects.get(name=\"Jason's Cookbook\")\nfor recipe in mybook.recipe_set.all():\n print recipe.name\... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5142/"
] |
294,738 | <p>When I debug my ASP.NET web site code using the Microsoft debug symbol's for .NET .. I keep getting this silly 'result' for most of the variables when I'm debugging .NET framework code (which of course is provided by the Microsoft Symbol Server, which I told VS2008 to grab the info, from)</p>
<pre><code>Cannot obta... | [
{
"answer_id": 1518810,
"author": "Cameron MacFarland",
"author_id": 3820,
"author_profile": "https://Stackoverflow.com/users/3820",
"pm_score": 5,
"selected": true,
"text": "set COMPLUS_ZapDisable=1\ncd /d \"%ProgramFiles%\\Microsoft Visual Studio 9.0\\Common7\\ide\\\"\nstart devenv.exe... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
294,741 | <p>I have read some PL SQL programming books, and they recommend me to group procedures, functions, cursors, and so on in a package. Packages provide modularity and information hiding, which is the OO design. However, I'm just familiar with stand alone procedures. Would anyone kindly provide some examples in code and h... | [
{
"answer_id": 295974,
"author": "Jim Hudson",
"author_id": 8051,
"author_profile": "https://Stackoverflow.com/users/8051",
"pm_score": 1,
"selected": false,
"text": "create or replace procedure foo (i_something in varchar2) as\nbegin\n -- do some stuff;\nend foo;\n create or replace p... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1602746/"
] |
294,748 | <p>I've got a TDbGrid in my project, and I'm trying to have an event go off every time I change the selected row. Any change in row already updates all the data-aware controls linked to the same DataSource, but there are other changes to be made too, that I need an event handler for.</p>
<p>I thought OnColEnter would... | [
{
"answer_id": 295727,
"author": "skamradt",
"author_id": 9217,
"author_profile": "https://Stackoverflow.com/users/9217",
"pm_score": 2,
"selected": false,
"text": "procedure TForm1.DataSource1DataChange(Sender: TObject; Field: TField);\nbegin\n if fbLoading then exit;\n // rest of you... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32914/"
] |
294,766 | <p>I've explored python for several years, but now I'm slowly learning how to work with c. Using the <a href="http://www.python.org/doc/2.5.2/ext/intro.html" rel="nofollow noreferrer">python documentation</a>, I learned how to extend my python programs with some c, since this seemed like the logical way to start playi... | [
{
"answer_id": 294785,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 3,
"selected": false,
"text": "setup.py"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/294766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36312/"
] |
294,771 | <p>Please excuse my lack of knowledge... I know there is a lot of documentation on the internet related to this but I still don't understand.</p>
<p>My situation is this:</p>
<p>I have an XML file that I need import and eventually replace daily with.</p>
<pre><code> <item>
<model>AA311-Pink<... | [
{
"answer_id": 8916800,
"author": "Mário Rodrigues",
"author_id": 581256,
"author_profile": "https://Stackoverflow.com/users/581256",
"pm_score": 1,
"selected": false,
"text": "mysql> LOAD XML LOCAL INFILE 'items.xml'\n -> INTO TABLE item\n -> ROWS IDENTIFIED BY '<item>';\n"
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
294,773 | <p>First of all, I'm kinda new to the barcode formats and what I do know, I've learned from Wikipedia.</p>
<p>We have some barcodes generated by an existing app that uses the Barcode.4NET library. The barcode is in Code 128A format. The code to generate them is pretty simple, looking something like this:</p>
<pre><co... | [
{
"answer_id": 294790,
"author": "balexandre",
"author_id": 28004,
"author_profile": "https://Stackoverflow.com/users/28004",
"pm_score": 2,
"selected": false,
"text": "*045746201627080857*\n code128.StartStopText = true;\n Code128ABarcode c128A = new Code128ABarcode(\"*04574620162708085... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14894/"
] |
294,775 | <p>When working with window handles, is it <em>good</em> enough to use the plain <strong>IntPtr</strong> or should I subclass <strong>SafeHandle</strong>?</p>
<p>Are there any significant pros/cons?</p>
<p>Thanks.</p>
| [
{
"answer_id": 294866,
"author": "P Daddy",
"author_id": 36388,
"author_profile": "https://Stackoverflow.com/users/36388",
"pm_score": 2,
"selected": true,
"text": "SafeHandle SafeHandle Control Control Handle SafeHandle IsInvalid ReleaseHandle Control.Handle HandleRef"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/294775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15409/"
] |
294,779 | <p>I have a big list of global variables that each have their own setup function. My goal is to go through this list, call each item's setup function, and generate some stats on the data loaded in the matching variable. However, what I'm trying now isn't working and I need help to make my program call the setup functio... | [
{
"answer_id": 6791761,
"author": "Intrinsic",
"author_id": 260256,
"author_profile": "https://Stackoverflow.com/users/260256",
"pm_score": 0,
"selected": false,
"text": "(funcall (read-from-string (concatenate 'string \"setup_\" (symbol-name(first '(abc\\d)))))) \n"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/294779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38132/"
] |
294,795 | <p>Wwhen I click the button on the popup to insert data to database, it does nothing, WHYYYYY?</p>
<pre><code><cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BehaviorID="popup" TargetControlID="cmdTrigger"
PopupControlID="pnlPopup" BackgroundCssClass="modalBackground"
OkCont... | [
{
"answer_id": 877703,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "CausesValidation=\"false\""
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/294795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23667/"
] |
294,802 | <p>What methods to use a database from Clojure are there?</p>
<p>I know from Clojure you can do anything you can with Java, but that means that I may end up using something overly complicated (like Hibernate) which clashes with Clojure simplicity. Any recommendations or comments?</p>
| [
{
"answer_id": 8007765,
"author": "mikera",
"author_id": 214010,
"author_profile": "https://Stackoverflow.com/users/214010",
"pm_score": 4,
"selected": false,
"text": "(select users\n (aggregate (count :*) :cnt)\n (where (or (> :visits 20)\n (< :last_login a-year-ago))))\n"... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6068/"
] |
294,822 | <p>I have a ComboBox bound to an ObservableCollection of decimals. What is the correct way to apply our currency converter to the items?</p>
<p>Edit:</p>
<p>a) I have an existing currency converter that I must use
b) .NET 3.0</p>
<p>Do I need to template the items?</p>
| [
{
"answer_id": 294830,
"author": "Jobi Joy",
"author_id": 8091,
"author_profile": "https://Stackoverflow.com/users/8091",
"pm_score": 0,
"selected": false,
"text": "<TextBox Text=\"{Binding Path=Value, StringFormat=Amount: {0:C}}\"/>\n"
},
{
"answer_id": 294838,
"author": "Ma... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28074/"
] |
294,852 | <p>I find myself attached to a project to integerate an interpreter into an existing application. The language to be interpreted is a derivative of Lisp, with application-specific builtins. Individual 'programs' will be run batch-style in the application.</p>
<p>I'm surprised that over the years I've written a couple ... | [
{
"answer_id": 296157,
"author": "plinth",
"author_id": 20481,
"author_profile": "https://Stackoverflow.com/users/20481",
"pm_score": 3,
"selected": false,
"text": "ConsBoxFactory &GetConsBoxFactory() { return mConsFactory; }\nAtomFactory &GetAtomFactory() { return mAtomFactory; }\nEnvir... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3778/"
] |
294,865 | <p>How do you convert a number to a string showing dollars and cents?</p>
<pre><code>eg:
123.45 => '$123.45'
123.456 => '$123.46'
123 => '$123.00'
.13 => '$0.13'
.1 => '$0.10'
0 => '$0.00'
</code></pre>
| [
{
"answer_id": 294868,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 3,
"selected": false,
"text": "printf(\"$%01.2f\", $money);\n"
},
{
"answer_id": 294871,
"author": "Paige Ruten",
"author_id": 813,
"auth... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
294,875 | <p>What are some of the ways you have implemented models in the Zend Framework?</p>
<p>I have seen the basic <code>class User extends Zend_Db_Table_Abstract</code> and then putting calls to that in your controllers: </p>
<p><code>$foo = new User;</code></p>
<p><code>$foo->fetchAll()</code></p>
<p>but what about ... | [
{
"answer_id": 294896,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 1,
"selected": false,
"text": "Zend_Db_Table $select = $table->select();\n$select->from($table,\n array('COUNT(reported_by) as `c... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11252/"
] |
294,885 | <p>I have a table like this:</p>
<pre><code><table>
<tfoot>
<tr><td>footer</td></tr>
</tfoot>
<tbody>
<tr><td>Body 1</td></tr>
<tr><td>Body 1</td></tr>
<tr><td>Body 1&... | [
{
"answer_id": 294886,
"author": "Dave Jensen",
"author_id": 35341,
"author_profile": "https://Stackoverflow.com/users/35341",
"pm_score": 7,
"selected": true,
"text": "<style>\ntable {\n border-collapse: collapse;\n}\n\ntable tbody {\n border-top: 15px solid white;\n}\n</style>\n\n<ta... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
294,890 | <p>This might be too opinionated a question, but looking for help!</p>
<p>I have been trying to refine my ASP.NET MVC program structure. I just started using it at preview 5 and it is my first foray into business application development -- so everyting is new!</p>
<p>At the controller level, I have a service object ... | [
{
"answer_id": 296084,
"author": "anonymous",
"author_id": 36602,
"author_profile": "https://Stackoverflow.com/users/36602",
"pm_score": 1,
"selected": false,
"text": "public static void SavePerson(Person person)\n{\n // make sure it meets some format requirement\n // in this case ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36602/"
] |
294,905 | <p>Why does a System.Boolean take 4 bytes? It just stores one state, either <em>true</em> or <em>false</em>, which could be stored in less space than 4 bytes.</p>
| [
{
"answer_id": 294911,
"author": "arul",
"author_id": 15409,
"author_profile": "https://Stackoverflow.com/users/15409",
"pm_score": 2,
"selected": false,
"text": "Console.WriteLine( sizeof( System.Boolean ).ToString() );\n"
},
{
"answer_id": 294942,
"author": "P Daddy",
"... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19917/"
] |
294,917 | <p>I'm trying to create a newsletter standard for our org and having problems with Outlook rendering the text too large.</p>
<p>Here is the css section of the page</p>
<pre><code>body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 75%;
background: url(http://www.bla... | [
{
"answer_id": 575878,
"author": "Esteban Küber",
"author_id": 34813,
"author_profile": "https://Stackoverflow.com/users/34813",
"pm_score": 3,
"selected": true,
"text": "main *{font-size: 12pt;} body style"
},
{
"answer_id": 1679306,
"author": "Dave Stewart",
"author_id"... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38149/"
] |
294,922 | <p>I have a winforms app and i want to keep track of every time a user clicks certain buttons, etc as well as other actions. What is the best way for me to keep track of this information and then put it together so i can run metrics on most used features, etc.</p>
<p>This is a winforms app and I have users around the... | [
{
"answer_id": 294943,
"author": "arul",
"author_id": 15409,
"author_profile": "https://Stackoverflow.com/users/15409",
"pm_score": 0,
"selected": false,
"text": " // execute this method once all forms have been created\n public static void HookButtons()\n {\n foreach( F... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
294,927 | <p>Do you have to pass delete the same pointer that was returned by new, or can you pass it a pointer to one of the classes base types? For example:</p>
<pre><code>class Base
{
public:
virtual ~Base();
...
};
class IFoo
{
public:
virtual ~IFoo() {}
virtual void DoSomething() = 0;
};
class Bar : publ... | [
{
"answer_id": 294932,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 7,
"selected": true,
"text": "Base IFoo operator delete"
},
{
"answer_id": 295048,
"author": "Michael Burr",
"author_id": 12711,
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5987/"
] |
294,933 | <p>I have a couple of tables in a SQL 2008 server that I need to generate unique ID's for. I have looked at the "identity" column but the ID's really need to be unique and shared between all the tables. </p>
<p>So if I have say (5) five tables of the flavour "asset infrastructure" and I want to run with a unique ID ... | [
{
"answer_id": 294982,
"author": "Ian Varley",
"author_id": 37539,
"author_profile": "https://Stackoverflow.com/users/37539",
"pm_score": 2,
"selected": false,
"text": "CREATE PROCEDURE InsertAsset_Table1 (\n BEGIN TRANSACTION\n -- SELECT MIN INTEGER NOT ALREADY USED IN ANY OF THE FIVE... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
294,949 | <p>I need to create an empty .mdb file, so that I can then run ADO commands on it (<em>not</em> ADO.NET). Is there a way to create an empty mdb using ADO?</p>
| [
{
"answer_id": 294959,
"author": "Corey Trager",
"author_id": 9328,
"author_profile": "https://Stackoverflow.com/users/9328",
"pm_score": 3,
"selected": true,
"text": " string sADOProvider = \"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\";\n\n ADOX.CatalogClass cat = new ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14902/"
] |
294,969 | <p>I am working on an application that will be used as an extensible framework for other applications.</p>
<p>One of the fundamental classes is called Node, and Nodes have Content. The SQL tables look like this:</p>
<p>TABLE Node ( NodeId int, .... etc )</p>
<p>TABLE NodeContentRelationship ( NodeId int, ContentType... | [
{
"answer_id": 294994,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 3,
"selected": true,
"text": "NoteContentRelationship.ContentId Content AnimalContent CarContent"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/294969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21966/"
] |
294,976 | <p>As prescribed by Yahoo!, gzip'ng files would make your websites load faster. The problem? I don't know how :p</p>
| [
{
"answer_id": 295053,
"author": "amitkaz",
"author_id": 38100,
"author_profile": "https://Stackoverflow.com/users/38100",
"pm_score": 2,
"selected": false,
"text": "LoadModule deflate_module modules/mod_deflate.so\n AddOutputFilterByType DEFLATE text/css text/html application/x-javascri... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37532/"
] |
294,989 | <p>Can somebody tell me how to use the <em><code>printWhenExpression</code></em> of JasperReports?</p>
| [
{
"answer_id": 294999,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": false,
"text": "$F{mesure} != \"PH\"\n($F{userfd4}).equals(\"1\") ? true : false \n cannot cast from boolean to Boolean ( $F{mesure}.startsWith... | 2008/11/17 | [
"https://Stackoverflow.com/questions/294989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
295,013 | <p>In the application that I am working on, the logging facility makes use of <code>sprintf</code> to format the text that gets written to file. So, something like:</p>
<pre><code>char buffer[512];
sprintf(buffer, ... );
</code></pre>
<p>This sometimes causes problems when the message that gets sent in becomes too bi... | [
{
"answer_id": 295018,
"author": "Artelius",
"author_id": 31945,
"author_profile": "https://Stackoverflow.com/users/31945",
"pm_score": 2,
"selected": false,
"text": "fprintf() malloc()"
},
{
"answer_id": 295023,
"author": "philant",
"author_id": 18804,
"author_profil... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295013",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4368/"
] |
295,016 | <p>When using <code>call_user_func_array()</code> I want to pass a parameter by reference. How would I do this. For example</p>
<pre><code>function toBeCalled( &$parameter ) {
//...Do Something...
}
$changingVar = 'passThis';
$parameters = array( $changingVar );
call_user_func_array( 'toBeCalled', $paramete... | [
{
"answer_id": 295020,
"author": "Steven Oxley",
"author_id": 3831,
"author_profile": "https://Stackoverflow.com/users/3831",
"pm_score": 7,
"selected": true,
"text": "call_user_func_array() function toBeCalled( &$parameter ) {\n //...Do Something...\n}\n\n$changingVar = 'passThis';\n... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3831/"
] |
295,027 | <p>I am working on refactoring some old code and have found few structs containing zero length arrays (below). Warnings depressed by pragma, of course, but I've failed to create by "new" structures containing such structures (error 2233). Array 'byData' used as pointer, but why not to use pointer instead? or array of l... | [
{
"answer_id": 296143,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 6,
"selected": true,
"text": "struct someData* mallocSomeData(int size)\n{\n struct someData* result = (struct someData*)malloc(sizeof(struct som... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7003/"
] |
295,028 | <p>I have a very tricky situation (for my standards) in hand. I have a script that needs to read a script variable name from <a href="https://docs.python.org/2/library/configparser.html" rel="nofollow noreferrer">ConfigParser</a>. For example, I need to read</p>
<pre><code>self.post.id
</code></pre>
<p>from a .cfg fi... | [
{
"answer_id": 295038,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 4,
"selected": true,
"text": "[head]\nvar: self.post.id\n import ConfigParser\n\nclass Test:\n def __init__(self):\n self.post = TestPost(5)\n def getP... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2220518/"
] |
295,035 | <p>I have a sharepoint event handler which I want to activate for a single list, not all the lists in the site. How do I go about this?</p>
| [
{
"answer_id": 295090,
"author": "ashwnacharya",
"author_id": 1909,
"author_profile": "https://Stackoverflow.com/users/1909",
"pm_score": 3,
"selected": true,
"text": "string siteUrl = Console.ReadLine();\nSPSite site = new SPSite(siteUrl);\nSPWeb web = site.OpenWeb();\nstring listName =... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1909/"
] |
295,042 | <p>Is there an issue with databinding in WPF when you bind to the current source (Path=".") and using a converter? The two way binding doesn't seem to work in this situation.</p>
<p>I know I could change the path, but I want to be able to pass the "Name" value to the converter.</p>
<p>I can't get the following exampl... | [
{
"answer_id": 295090,
"author": "ashwnacharya",
"author_id": 1909,
"author_profile": "https://Stackoverflow.com/users/1909",
"pm_score": 3,
"selected": true,
"text": "string siteUrl = Console.ReadLine();\nSPSite site = new SPSite(siteUrl);\nSPWeb web = site.OpenWeb();\nstring listName =... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3820/"
] |
295,052 | <p>Ok I need to determine the system's OS from a Lua script, but Lua as such has no API for this, so I use os.getenv() and query enviromental variables. On Windows checking the enviromental variable "OS" gives me the name of the system's OS, but is there some variable that exists on both Windows and most flavors of Uni... | [
{
"answer_id": 14425862,
"author": "mnicky",
"author_id": 626431,
"author_profile": "https://Stackoverflow.com/users/626431",
"pm_score": 5,
"selected": false,
"text": "package.config:sub(1,1) '\\\\' '/'"
},
{
"answer_id": 30960054,
"author": "Matías Hermosilla",
"author_... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
295,055 | <p>I'm learning xForms, but apparently not well enough because I can't figure out why <a href="http://www.logomachist.info/temp/fix_me.xhtml.xml" rel="nofollow noreferrer">this code</a> doesn't work. </p>
<p>It parses in FF2 w/ the xForms extension but does not render the form controls. IE7 and X-Smiles give me differ... | [
{
"answer_id": 874224,
"author": "Phil Booth",
"author_id": 47348,
"author_profile": "https://Stackoverflow.com/users/47348",
"pm_score": 3,
"selected": true,
"text": "model model model select1 repeat model instance bind model model model instance bind model model instance model model re... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22885/"
] |
295,058 | <p>How do I convert a string to the variable name in <a href="http://en.wikipedia.org/wiki/Python_%28programming_language%29" rel="noreferrer">Python</a>?</p>
<p>For example, if the program contains a object named <code>self.post</code> that contains a variable named, I want to do something like:</p>
<pre><code>somef... | [
{
"answer_id": 295064,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 6,
"selected": true,
"text": "eval() print eval('self.post.id') # Prints the value of self.post.id\n"
},
{
"answer_id": 295113,
"author": "Geo",
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2220518/"
] |
295,059 | <p>Is it possible to get the value from the first page to the second page, BUT without <code>FORM</code>?</p>
<p>Shall we use</p>
<pre><code>window.parent.document.getElementById("").value..
</code></pre>
<p>But this is working in <code>popup</code> window, but I need this for between two pages which redirect... | [
{
"answer_id": 295541,
"author": "Tom",
"author_id": 26155,
"author_profile": "https://Stackoverflow.com/users/26155",
"pm_score": 0,
"selected": false,
"text": "site.com/index.php?info=value value <input type=\"text\" id=\"the_value\" />\n<a href=\"#\" onclick=\"return updateURL()\" id=... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38172/"
] |
295,067 | <p>I am a COM object written in ATL that is used from a C++ application, and I want to pass an array of BYTEs between the two. My experience of COM/IDL so far is limited to passing simple types (BSTRs, LONGs, etc.).</p>
<p>Is there a relatively easy way to have the COM object pass an array to the caller? For example... | [
{
"answer_id": 295070,
"author": "jpoh",
"author_id": 4368,
"author_profile": "https://Stackoverflow.com/users/4368",
"pm_score": 0,
"selected": false,
"text": "[id(1), helpstring(\"LogCache\")] HRESULT LogCache([out,retval] VARIANT* logCache);\n safearray_t<bstr_t> m_logCache;\n ..... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
295,071 | <p>When we write in a Javascript expression : </p>
<pre><code>expression < <%=variableJsp%>
</code></pre>
<p>the double "<" seems to be a problem and the JSP is not interpreted ?</p>
<p>Is it a fault of the other servers that should not accept this type of expression ? Or WebSphere that bugs ?</p>
| [
{
"answer_id": 295074,
"author": "krosenvold",
"author_id": 23691,
"author_profile": "https://Stackoverflow.com/users/23691",
"pm_score": 0,
"selected": false,
"text": "expression < <%=variableJsp%>\n"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/295071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19281/"
] |
295,085 | <p>Is there a way to specify the font size for a class to be, say, 70% of the inherited font size?</p>
<p>I have a general "button" class that sets up my buttons with the appropriate borders, background, etc. I use it in multiple places, including one where the font size is fairly small and another where the font size... | [
{
"answer_id": 295087,
"author": "Jason Anderson",
"author_id": 5142,
"author_profile": "https://Stackoverflow.com/users/5142",
"pm_score": 2,
"selected": false,
"text": "font-size: 0.7em;\n"
},
{
"answer_id": 295093,
"author": "Will Kemp",
"author_id": 38177,
"author... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13055/"
] |
295,091 | <p>The ListChanged event for an IBindingList fires a type ListChangedType.ItemDeleted when items are deleted, perhaps by a user deleting a row in a datagrid control bound to the list. The problem is that the NewIndex into the list is invalid in this event, it's been deleted, and the item that was deleted is not availab... | [
{
"answer_id": 295468,
"author": "Sunlight",
"author_id": 33650,
"author_profile": "https://Stackoverflow.com/users/33650",
"pm_score": 2,
"selected": false,
"text": "NewIndex ItemDeleting"
},
{
"answer_id": 2127342,
"author": "Adam Valpied",
"author_id": 257246,
"aut... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28343/"
] |
295,094 | <p>is there any known pattern/algorithm on how to perform sorting or filtering a list of records (from database) in the correct way? My current attempt involves usage of a form that provides some filtering and sorting options, and then append these criteria and sorting algorithm to my existing SQL. However, I find it c... | [
{
"answer_id": 295115,
"author": "Stein G. Strindhaug",
"author_id": 26115,
"author_profile": "https://Stackoverflow.com/users/26115",
"pm_score": 0,
"selected": false,
"text": "select from event where conditions AND event.privilegue <= user.privilegue\n"
},
{
"answer_id": 295129... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5742/"
] |
295,095 | <p>I have a textbox whose value I want to set based on the inner text of an anchor tag. In other words, when someone clicks on this anchor:</p>
<pre><code><a href="javascript:void();" class="clickable">Blah</a>
</code></pre>
<p>I want my textbox to populate with the text "Blah". Here is the code I am cu... | [
{
"answer_id": 295099,
"author": "Falco Foxburr",
"author_id": 37266,
"author_profile": "https://Stackoverflow.com/users/37266",
"pm_score": 7,
"selected": true,
"text": "<a href=\"#\" class=\"clickable\">Blah</a>\n<input id=\"textbox\">\n<script type=\"text/javascript\">\n $(document... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
295,100 | <p>I am having a similar issue to <a href="https://stackoverflow.com/questions/28387/sql-server-2k5-memory-consumption">this person</a>. The primary difference being the application is NOT meant for a developer environment, and therefore I need to know how to optimize the space used by Sql Server (possibly per machine... | [
{
"answer_id": 295367,
"author": "Matthew Schinckel",
"author_id": 188,
"author_profile": "https://Stackoverflow.com/users/188",
"pm_score": 0,
"selected": false,
"text": "[object alloc]; \n [[object alloc] init];\n"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/295100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8207/"
] |
295,101 | <p>I have a movie which is made up of a series of SWF files that read XML. Is there any way to burn it to a CD/DVD or at least convert it to a 'burnable' format such as AVI, MPEG, or ISO? Currently in order to burn it I have to so some funky screen capture stuff and recorded it to a DVD that way.</p>
| [
{
"answer_id": 3975666,
"author": "fish2000",
"author_id": 298171,
"author_profile": "https://Stackoverflow.com/users/298171",
"pm_score": 0,
"selected": false,
"text": "package ost.panda.map.core {\n\n/// ...\n\npublic dynamic class Signatories extends EventDispatcher {\n\n [Embed(so... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
295,104 | <p>In C#, what makes a field different from a property, and when should a field be used instead of a property?</p>
| [
{
"answer_id": 295109,
"author": "Cory",
"author_id": 8207,
"author_profile": "https://Stackoverflow.com/users/8207",
"pm_score": 11,
"selected": true,
"text": "public class MyClass\n{\n // this is a field. It is private to your class and stores the actual data.\n private string _... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
295,110 | <p>I'm looking to use: </p>
<pre><code>#define
</code></pre>
<p>and</p>
<pre><code>#if
</code></pre>
<p>to allow me to simulate potentially absent hardware during unit tests. What are the rules for using the <code>#define</code> statements? </p>
<p>i.e. what is its default scope? can I change the scope of the dire... | [
{
"answer_id": 295162,
"author": "Ali Ersöz",
"author_id": 4215,
"author_profile": "https://Stackoverflow.com/users/4215",
"pm_score": 1,
"selected": false,
"text": "#define something\n... some code ...\n #if something\n ... some conditional code ...\n#else\n ... otherwise ...\n#endif\... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816/"
] |
295,112 | <p>How would I get the last item (or any specific item for that matter) in a simplexml object? Assume you don't know how many nodes there will be.</p>
<p>ex.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/xsl.xml"?>
<obj
href="http://xml.foo.com/"
di... | [
{
"answer_id": 295127,
"author": "Stein G. Strindhaug",
"author_id": 26115,
"author_profile": "https://Stackoverflow.com/users/26115",
"pm_score": 0,
"selected": false,
"text": "last()"
},
{
"answer_id": 295177,
"author": "DreamWerx",
"author_id": 15487,
"author_profi... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11252/"
] |
295,114 | <p>Ok, I'm getting my version control processes in order for my web team.</p>
<p>I know ideally each user would have a full working copy of their code on their local machine.</p>
<p>Unfortunately for a lot of our web apps they have additional server specific DB or other system integration requirements that cannot be ... | [
{
"answer_id": 55263128,
"author": "Cornelius Sicker",
"author_id": 2471067,
"author_profile": "https://Stackoverflow.com/users/2471067",
"pm_score": 0,
"selected": false,
"text": "TortoiseSVN"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/295114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22837/"
] |
295,120 | <p>I have a method in an interface that I want to deprecate with portable C++.
When I Googled for this all I got was a Microsoft specific solution; <a href="https://learn.microsoft.com/en-us/cpp/preprocessor/deprecated-c-cpp?view=vs-2017" rel="noreferrer"><code>#pragma deprecated</code></a> and <a href="https://learn.m... | [
{
"answer_id": 295149,
"author": "Terje Mikal",
"author_id": 37570,
"author_profile": "https://Stackoverflow.com/users/37570",
"pm_score": 5,
"selected": false,
"text": "void myfunc() __attribute__ ((deprecated));\n"
},
{
"answer_id": 295229,
"author": "Michael Platings",
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8524/"
] |
295,123 | <p>I need to write a temporary Web-based graphical front-end for a custom server system. In this case performance and scalability aren't issues, since at most 10 people may check the system simultaneously. Also it should be PHP or Python (server) & JavaScript (client) (can't use Flex or Silverlight for very specifi... | [
{
"answer_id": 41054529,
"author": "AxleWack",
"author_id": 2298585,
"author_profile": "https://Stackoverflow.com/users/2298585",
"pm_score": 0,
"selected": false,
"text": "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, in... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
295,128 | <p>I have an app which consists of several different assemblies, one of which holds the various interfaces which the classes obey, and by which the classes communicate across assembly boundaries. There are several classes firing events, and several which are interested in these events. </p>
<p>My question is as follow... | [
{
"answer_id": 295145,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "public event FooHandler Foo\n{\n add\n {\n c.Foo += value;\n }\n remove\n {\n c.Foo -= value... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6091/"
] |
295,135 | <p>I have a string that I want to use as a filename, so I want to remove all characters that wouldn't be allowed in filenames, using Python.</p>
<p>I'd rather be strict than otherwise, so let's say I want to retain only letters, digits, and a small set of other characters like <code>"_-.() "</code>. What's the most el... | [
{
"answer_id": 295146,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 7,
"selected": false,
"text": ">>> import string\n>>> valid_chars = \"-_.() %s%s\" % (string.ascii_letters, string.digits)\n>>> valid_chars\n'-_.()... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37134/"
] |
295,141 | <p>I have a List of custom object, which consist of a custom list.</p>
<pre><code>class person{
string name;
int age;
List<friend> allMyFriends;
}
class friend{
string name;
string address;
}
</code></pre>
<p>I'trying to bind a list of these objects to a GridView and the Grid should create for each fri... | [
{
"answer_id": 2059565,
"author": "Chris Porter",
"author_id": 13495,
"author_profile": "https://Stackoverflow.com/users/13495",
"pm_score": 3,
"selected": true,
"text": "public partial class _Default : System.Web.UI.Page\n{\n protected void Page_Load(object sender, EventArgs e)\n ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36475/"
] |
295,161 | <p>If you try to launch a .NET 3.5 application on a Windows computer which does not have this version of the .NET framework installed, you get a <code>FileNotFoundException</code> for some system assemblies (for example System.Core 3.5.0.0).</p>
<p>Is it possible to catch this exception and tell the user to upgrade th... | [
{
"answer_id": 295168,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "System.Core.dll"
},
{
"answer_id": 295173,
"author": "David Wengier",
"author_id": 489,
"author_prof... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11963/"
] |
295,163 | <p>I have a program that is running a basic RMISecurityManager in all its threads. But I would like to do more control to several threads and set another SecurityManager specially for these threads.</p>
<p>How can I do that ? ...if this is possible !?</p>
<p>thank you by advance.</p>
<p>Edit : I have found my soluti... | [
{
"answer_id": 295396,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 3,
"selected": true,
"text": "java.security.AccessController.getContext doPrivileged ThreadGroup Subject AccessControlContext"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/295163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26465/"
] |
295,165 | <p>I have some special cells in my Excel workbooks which are managed by my Excel Add-in. I want to prevent users from changing content of those cells, but I also want to know, what value users wanted to enter to those cells. On the SheetChange event I can check what users entered to my special cells, but how do I deter... | [
{
"answer_id": 295212,
"author": "Mike Woodhouse",
"author_id": 1060,
"author_profile": "https://Stackoverflow.com/users/1060",
"pm_score": 3,
"selected": true,
"text": "Option Explicit\n\n' We are monitoring cell B2...\n\nPrivate initialB2Value As Variant ' holds the value for reinstat... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37266/"
] |
295,169 | <p>A program written in Visual C/C++ 2005/2008 might not compile with another compiler such as GNU C/C++ or vice-versa. For example when trying to reuse code, which uses windows.h, written for a particular compiler with another, what are the differences to be aware of?</p>
<p>Is there any information about how to prod... | [
{
"answer_id": 296552,
"author": "Max Lybbert",
"author_id": 10593,
"author_profile": "https://Stackoverflow.com/users/10593",
"pm_score": 1,
"selected": false,
"text": "typename template template typename"
},
{
"answer_id": 298041,
"author": "MattyT",
"author_id": 7405,
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25093/"
] |
295,182 | <p>I have a producer-consumer pattern working for one product. What is the best implementation when the producer produce many products? For example a DataBaseEvent, GuiEvent and ControlEvent that the consumer shall consume. The code below shows the pattern for one product (a DataBaseEvent). Should each event type be en... | [
{
"answer_id": 295189,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "while(true) {\n T item;\n lock(lockObj) {\n if(queue.Count == 0) { // empty\n Monitor.Wait(lo... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36922/"
] |
295,195 | <p>The problem is simple:</p>
<p>Using bash, I want to add a directory to my PYTHONPATH for ease of script execution. Unfortunately, the directory I want to use has a : in it. So I try each of the following</p>
<pre><code>export PYTHONPATH=${PYTHONPATH}:/home/shane/mywebsite.com:3344/
export PYTHONPATH=${PYTHONPATH}:... | [
{
"answer_id": 295226,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 2,
"selected": false,
"text": "export PYTHONPATH=${PYTHONPATH}:\"/home/shane/mywebsite.com\\:3344/\"\n $ echo \"foo:\" \nfoo:\n$ echo \\:foo\n:foo\n... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10264/"
] |
295,200 | <p><em>Short:</em> how does modelbinding pass objects from view to controller?</p>
<p><em>Long:</em><br>
First, based on the parameters given by the user through a search form, some objects are retrieved from the database.
These objects are given meta data that are visible(but not defining) to the customer (e.g: namin... | [
{
"answer_id": 295489,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "<%= Html.ActionLink( ViewData[\"CustomObject1\",\n \"Select\",\n new { TempDataK... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
295,224 | <p>I just want to clarify one thing. This is not a question on which one is better, that part I leave to someone else to discuss. I don't care about it.
I've been asked this question on my job interview and I thought it might be useful to learn a bit more.</p>
<p>These are the ones I could come up with:</p>
<ul>
<li>... | [
{
"answer_id": 295241,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 3,
"selected": false,
"text": "Foo<T> Foo<Object>"
},
{
"answer_id": 295248,
"author": "Jon Skeet",
"author_id": 22656,
"author_p... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2921654/"
] |
295,234 | <p>I'm currently maintaining some flex code and noticed very many functions which are declared like:</p>
<pre><code>private function exampleFunc():void {
....
}
</code></pre>
<p>These functions are in the <em>global scope</em>, and aren't part of any specific class, so it's a bit unclear to me what effect declari... | [
{
"answer_id": 295573,
"author": "mmattax",
"author_id": 1638,
"author_profile": "https://Stackoverflow.com/users/1638",
"pm_score": 3,
"selected": true,
"text": "\n<!-- FooBox.mxml -->\n<mx:Box xmlns:mx=\"http://www.macromedia.com/2003/mxml\">\n <mx:Script><![CDATA[\n private ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14302/"
] |
295,235 | <p>Recently I was trying to make a calendar application that will display the current year-month-date to the user. The problem is, if the user is gonna keep my application running even for the next day, how do I get notified ?? How shall I change the date displayed ? I don't wanna poll the current date to update it. Is... | [
{
"answer_id": 4097497,
"author": "Case",
"author_id": 497238,
"author_profile": "https://Stackoverflow.com/users/497238",
"pm_score": 3,
"selected": false,
"text": "public void Main()\n{\n\n var T = new System.Timers.Timer();\n\n T.Elapsed += CallBackFunction;\n\n var D = (Date... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295235",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
295,251 | <p>I have tried, 'PreviousPage', 'PreviousPage.IsCrossPagePostBack' 'Page.previousPage', page.title</p>
<p>It causes the client to stop rendering the page after this line.</p>
<p>simple example</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
response.write("I can see this");
string test = Previ... | [
{
"answer_id": 295253,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "MessageBox"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/295251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
295,257 | <p>How can I search for specific value in the registry keys?</p>
<p>For example I want to search for XXX in </p>
<pre><code>HKEY_CLASSES_ROOT\Installer\Products
</code></pre>
<p>any code sample in C# will be appreciated,</p>
<p>thanks</p>
| [
{
"answer_id": 295265,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 4,
"selected": false,
"text": "tlbimp \"C:\\Program Files\\Log Parser 2.2\\LogParser.dll\"\n/out:Interop.MSUtil.dll\n using System;\nusing System.Runtime... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
295,266 | <p>I'm trying to wrap my head around how to search for something that appears in the middle of a word / expression - something like searching for "LIKE %book% " - but in SQL Server (2005) full text catalog.</p>
<p>How can I do that? It almost appears as if both <code>CONTAINS</code> and <code>FREETEXT</code> really do... | [
{
"answer_id": 295289,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 4,
"selected": false,
"text": "CONTAINS(*, '\"book*\"')\n"
},
{
"answer_id": 295297,
"author": "Tomalak",
"author_id": 18771,
"au... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
295,279 | <p>I'm talking about this:</p>
<p>If we have the letter 'A' which is 77 in decimal and 4D in Hex.
I am looking for the fastest way to get D.</p>
<p>I thought about two ways:</p>
<p>Given x is a byte.</p>
<ol>
<li><p><code>x << 4; x >> 4</code></p></li>
<li><p><code>x %= 16</code></p></li>
</ol>
<p>Any ... | [
{
"answer_id": 295286,
"author": "arul",
"author_id": 15409,
"author_profile": "https://Stackoverflow.com/users/15409",
"pm_score": 2,
"selected": false,
"text": "x = (x & 0x0F);\n"
},
{
"answer_id": 295288,
"author": "Terje Mikal",
"author_id": 37570,
"author_profile... | 2008/11/17 | [
"https://Stackoverflow.com/questions/295279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.