qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
217,955 | <p>What's the best way (or tool) on the Windows (Vista) command line to get size and modification time for a file on a remote webserver, without downloading it?</p>
| [
{
"answer_id": 217971,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 4,
"selected": false,
"text": "Invoke-WebRequest -Method Head"
},
{
"answer_id": 217972,
"author": "Vinko Vrsalovic",
"author_id": 5190,
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29549/"
] |
217,957 | <p>How do I print debug messages in the Google Chrome JavaScript Console?</p>
<p>Please note that the JavaScript Console is not the same as the JavaScript Debugger; they have different syntaxes AFAIK, so the <strong>print</strong> command in JavaScript Debugger will not work here. In the JavaScript Console, <code>prin... | [
{
"answer_id": 2757552,
"author": "Delan Azabani",
"author_id": 330644,
"author_profile": "https://Stackoverflow.com/users/330644",
"pm_score": 7,
"selected": false,
"text": "if (!window.console) console = {};\nconsole.log = console.log || function(){};\nconsole.warn = console.warn || fu... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8954/"
] |
217,960 | <p>How do I generate friendly URLs within the ASP.NET MVC Framework? For example, we've got a URL that looks like this:</p>
<pre>http://site/catalogue/BrowseByStyleLevel/1</pre>
<p>The 1 is Id of the study level (Higher in this case) to browse, but I'l like to reformat the URL in the same way StackOverflow does it.</p>... | [
{
"answer_id": 217991,
"author": "Moran Helman",
"author_id": 1409636,
"author_profile": "https://Stackoverflow.com/users/1409636",
"pm_score": 1,
"selected": false,
"text": " routes.MapRoute(\n \"Default\", // Route name\n \"{controller}/{action}/{... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5791/"
] |
217,961 | <p>Is there a way to Deserialize Expressions in C#, I would like to store Expressions in a Database and load them at run time.</p>
| [
{
"answer_id": 3682878,
"author": "Jonathan Parker",
"author_id": 4504,
"author_profile": "https://Stackoverflow.com/users/4504",
"pm_score": 2,
"selected": false,
"text": "IQuerayble<T>"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18619/"
] |
217,964 | <p>I need to migrate Access databases to SQL Server 2005. Since this needs to be done from within a setup so that a customers' installation is transparently migrated to SQL Server 2005, I wonder if it is possible to automate the SSMA toolkit from Microsoft.</p>
| [
{
"answer_id": 3682878,
"author": "Jonathan Parker",
"author_id": 4504,
"author_profile": "https://Stackoverflow.com/users/4504",
"pm_score": 2,
"selected": false,
"text": "IQuerayble<T>"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/217964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23369/"
] |
217,968 | <p>I am using a satellite assembly to hold all the localization resources in a C# application.</p>
<p>What I need to do is create a menu in the GUI with all the available languages that exists for the application. Is there any way to get information dynamically?</p>
| [
{
"answer_id": 1083120,
"author": "Shimmy Weitzhandler",
"author_id": 75500,
"author_profile": "https://Stackoverflow.com/users/75500",
"pm_score": 3,
"selected": true,
"text": "public static string[] GetInstalledCultures()\n{\n List<string> cultures = new List<string>();\n foreach... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/66654/"
] |
217,969 | <p>I was trying to test code using com class to display Word files but I cannot seem to get the answer and still searching. I get errors and sometimes, programs do not display anything at all. Please give me some ideas. I'm working with PHP 4.</p>
| [
{
"answer_id": 217981,
"author": "Paul de Vrieze",
"author_id": 4100,
"author_profile": "https://Stackoverflow.com/users/4100",
"pm_score": 0,
"selected": false,
"text": "<object>"
},
{
"answer_id": 56308332,
"author": "user11555821",
"author_id": 11555821,
"author_pr... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
217,977 | <p>I have an XML reader on this XML string:</p>
<pre><code><?xml version="1.0" encoding="UTF-8" ?>
<story id="1224488641nL21535800" date="20 Oct 2008" time="07:44">
<title>PRESS DIGEST - PORTUGAL - Oct 20</title>
<text>
<p> LISBON, Oct 20 (Reuters) - Following are some of the mai... | [
{
"answer_id": 218049,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 1,
"selected": false,
"text": "// ...\n[XmlElement(\"HACK - this should never match anything\")]\npublic string text;\n// ...\n XmlSerializer ser = new Xml... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7028/"
] |
217,980 | <p>In the documentation of hardware that allows us to control it via UDP/IP,
I found the following fragment:</p>
<blockquote>
<p>In this communication protocol, DWORD is a 4 bytes data, WORD is a 2 bytes data,
BYTE is a single byte data. The storage format is little endian, namely 4 bytes (32bits) data is stored a... | [
{
"answer_id": 217987,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": false,
"text": "bool le = BitConverter.IsLittleEndian;\n"
},
{
"answer_id": 218004,
"author": "gbjbaanb",
"author_id"... | 2008/10/20 | [
"https://Stackoverflow.com/questions/217980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28149/"
] |
218,003 | <p>I was wondering if there is a native C++ (or STL/Boost) function which will search a CString for a specified string?</p>
<p>e.g.</p>
<pre><code>CString strIn = "Test number 1";
CString strQuery = "num";
bool fRet = SomeFn(strIn, StrQuery);
if( fRet == true )
{
// Ok strQuery was found in strIn
...
</code></pr... | [
{
"answer_id": 218014,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 5,
"selected": true,
"text": "CString strIn = \"test number 1\";\nint index = strIn.Find(\"num\");\nif (index != -1)\n // ok, found\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18664/"
] |
218,023 | <p>I have committed, and pushed, several patches:
A1-->A2-->A3-->A4 (HEAD)</p>
<p>Everyone's pulled these changesets into their local copy.</p>
<p>Now we want to "roll back" to A2, and continue developing from there - essentially throwing away A3 and A4. What's the best way to do this?</p>
| [
{
"answer_id": 218050,
"author": "freespace",
"author_id": 8297,
"author_profile": "https://Stackoverflow.com/users/8297",
"pm_score": 3,
"selected": false,
"text": "git-revert git-reset git-reset --hard git-revert git-checkout git-revert"
},
{
"answer_id": 221137,
"author": ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18666/"
] |
218,024 | <p>I have a question with fluent interfaces.</p>
<p>We have some objects that are used as parameter objects for a SQL interface, here's an example:</p>
<pre><code>using (DatabaseCommand cmd = conn.CreateCommand(
"SELECT A, B, C FROM tablename WHERE ID = :ID",
SqlParameter.Int32(":ID", 1234)))
{
...
}
</co... | [
{
"answer_id": 218036,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 4,
"selected": true,
"text": "SqlParameterOption's class SqlParameterOption\n {\n public SqlParameterOption Precision(int p) {/* ... */; return this... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/267/"
] |
218,025 | <p>I quite often see on the Internet various complaints that other peoples examples of currying are not currying, but are actually just partial application.</p>
<p>I've not found a decent explanation of what partial application is, or how it differs from currying. There seems to be a general confusion, with equivalent... | [
{
"answer_id": 218055,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 9,
"selected": true,
"text": "function f(x,y,z) { z(x(y));}\n function f(x) { lambda(y) { lambda(z) { z(x(y)); } } }\n f(x)(y)(z);\n f x y z f x y lamb... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1577190/"
] |
218,027 | <p>When debugging, a trick I do whenever I want to exit the current method without running of its any statements, I move the current execution pointer to the end of the method, then click F10/11.</p>
<p>Is there a keyboard shortcut (or can I program one) to accomplish this?</p>
<p>(I don't mean shift-F11 (step out) -... | [
{
"answer_id": 220528,
"author": "Bradley Grainger",
"author_id": 23633,
"author_profile": "https://Stackoverflow.com/users/23633",
"pm_score": 3,
"selected": true,
"text": "Ctrl+M, Ctrl+M Right arrow Ctrl+] Ctrl+] Ctrl+Shift+F10 F10"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11236/"
] |
218,035 | <p>Guys, can someone give me a brief run through of how to change the background colour of a CEdit control at runtime? I want to be able to change the background to red if the field is zero length and the normal white otherwise.</p>
| [
{
"answer_id": 218052,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 4,
"selected": true,
"text": "class CColorEdit : public CEdit\n{\n ....\n CBrush m_brBkgnd;\n afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor)\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18664/"
] |
218,042 | <p>I want to show the publish date in the About dialog.</p>
| [
{
"answer_id": 218114,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 2,
"selected": false,
"text": "FileInfo oMyFile = new\n FileInfo(Assembly.GetExecutingAssembly().Location);\n\nDateTime oBuildDate = oMyFile.LastWriteTi... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11538/"
] |
218,043 | <p>I'm trying to get the start element and the end element of a selection and the offset of the selection in each, i do this in firefox as follows:</p>
<pre><code>var delselection = window.getSelection();
var startOffset = delselection.anchorOffset;
var endOffset = delselection.focusOffset;
var startNode = delselec... | [
{
"answer_id": 1945890,
"author": "Roy Leban",
"author_id": 189641,
"author_profile": "https://Stackoverflow.com/users/189641",
"pm_score": 1,
"selected": false,
"text": "var selObj = null;\nvar selSave = null;\nvar selSaveEnd = null;\n\nfunction SaveSelection(obj) {\n if (obj.selecti... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11198/"
] |
218,057 | <p>Without routing, <code>HttpContext.Current.Session</code> is there so I know that the <code>StateServer</code> is working. When I route my requests, <code>HttpContext.Current.Session</code> is <code>null</code> in the routed page. I am using .NET 3.5 sp1 on IIS 7.0, without the MVC previews. It appears that <code>Ac... | [
{
"answer_id": 218068,
"author": "Bogdan Maxim",
"author_id": 23795,
"author_profile": "https://Stackoverflow.com/users/23795",
"pm_score": 0,
"selected": false,
"text": " <sessionstate mode=\"StateServer\" timeout=\"20\" server=\"127.0.0.1\" port=\"42424\" />\n"
},
{
"answer_id"... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/57936/"
] |
218,060 | <p>Is there a class in the standard library of .NET that gives me the functionality to create random variables that follow Gaussian distribution? </p>
| [
{
"answer_id": 218600,
"author": "yoyoyoyosef",
"author_id": 25571,
"author_profile": "https://Stackoverflow.com/users/25571",
"pm_score": 9,
"selected": true,
"text": "Random rand = new Random(); //reuse this if you are generating many\ndouble u1 = 1.0-rand.NextDouble(); //uniform(0,1] ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23681/"
] |
218,061 | <p>I've recently searched how I could get the application's directory in Java. I've finally found the answer but I've needed surprisingly long because searching for such a generic term isn't easy. I think it would be a good idea to compile a list of how to achieve this in multiple languages.</p>
<p>Feel free to up/dow... | [
{
"answer_id": 218062,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "System.getProperty System.getProperty(\"user.dir\");\n java.io.File new java.io.File(\"\").getAbsolutePath();\n getCl... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1968/"
] |
218,065 | <p>I have a div with <code>overflow:hidden</code>, inside which I show a phone number as the user types it. The text inside the div is aligned to right and incoming characters are added to right as the text grows to left.</p>
<p>But once the text is big enough not to fit in the div, last characters of the number is au... | [
{
"answer_id": 218071,
"author": "Rob Bell",
"author_id": 2179408,
"author_profile": "https://Stackoverflow.com/users/2179408",
"pm_score": 8,
"selected": true,
"text": "direction: rtl;\n"
},
{
"answer_id": 678539,
"author": "Community",
"author_id": -1,
"author_profi... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31505/"
] |
218,096 | <p>We are monitoring the progress of a customized app (whose source is not under our control) which writes to a XML Manifest. At times , the application is stuck due to unable to write into the Manifest file. Although we are covering our traces by explicitly closing the file handle using File.Close and also creating th... | [
{
"answer_id": 218253,
"author": "Zebra North",
"author_id": 17440,
"author_profile": "https://Stackoverflow.com/users/17440",
"pm_score": 3,
"selected": true,
"text": "FILE_SHARE_READ | FILE_SHARE_WRITE CreateFile()"
},
{
"answer_id": 218315,
"author": "Omer van Kloeten",
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17519/"
] |
218,113 | <p>One thing that always been a pain is to log SQL (JDBC) errors when you have a PreparedStatement instead of the query itself.</p>
<p>You always end up with messages like:</p>
<pre><code>2008-10-20 09:19:48,114 ERROR LoggingQueueConsumer-52 [Logger.error:168] Error
executing SQL: [INSERT INTO private_rooms_bans (ro... | [
{
"answer_id": 3468960,
"author": "user418544",
"author_id": 418544,
"author_profile": "https://Stackoverflow.com/users/418544",
"pm_score": 4,
"selected": true,
"text": "jdbc.url=jdbc:log4jdbc:hsqldb:mem:sample\n jdbc.url=jdbc:log4jdbc:oracle:thin:@mybdd:1521:smt\njdbc.driverClass=net.s... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14540/"
] |
218,117 | <p>Today when I was in computer organization class, teacher talked about something interesting to me. When it comes to talk about Why cache memory works, he said that:</p>
<pre><code>for (i=0; i<M; i++)
for(j=0; j<N; j++)
X[i][j] = X[i][j] + K; //X is double(8 bytes)
</code></pre>
<p>it is not good to ... | [
{
"answer_id": 218152,
"author": "Scottie T",
"author_id": 6688,
"author_profile": "https://Stackoverflow.com/users/6688",
"pm_score": 2,
"selected": false,
"text": "do jj = 1,N\n do ii = 1,M\n x(ii,jj) = x(ii,jj) + K;\n enddo\nenddo\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26379/"
] |
218,120 | <p>I am interested in using Xaml with expression blend for creating user interfaces in an application. However, because of the limitations of the target architecture, I cannot use WPF or C#.</p>
<p>So, what I am interested in is in any examples / existing projects or advice from anyone who has experiance of this techn... | [
{
"answer_id": 1030188,
"author": "Andy Dent",
"author_id": 53870,
"author_profile": "https://Stackoverflow.com/users/53870",
"pm_score": 1,
"selected": false,
"text": "windows = []\nREXML::XPath.each(doc, \"//Window\") do |xml|\n windows << Window.new(xml)\nend\n\n#... invoking ...\n\n... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15667/"
] |
218,122 | <p>When using webforms the appropriate place to assign master pages to a page dynamically seems to be the pages PreInit event: </p>
<pre><code>this.Master.MasterPageFile = "~/leaf.Master"
</code></pre>
<p>If nessasary, master pages in a hierarchy of nested master pages may be set here too:</p>
<pre><code>this.Master... | [
{
"answer_id": 218351,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 2,
"selected": false,
"text": " ControllerBuilder.Current.SetControllerFactory(new MyControllerFactory());\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29547/"
] |
218,123 | <p>When I asked <a href="https://stackoverflow.com/questions/167575/should-a-project-manager-enforce-coding-standards">this question</a> I got almost always a definite yes you should have coding standards. </p>
<p>What was the strangest coding standard rule that you were ever forced to follow?</p>
<p>And by strangest... | [
{
"answer_id": 218135,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 8,
"selected": false,
"text": "int appCount = 0; // Number of apples.\nint pearCount = 0; // Number of pears.\n int iAppleCount = 0; // Number of ap... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
218,133 | <p>I want to deserialize an object but don't know the class up front. So, consider the following code...</p>
<pre><code>IFormatter formatter = new BinaryFormatter();
Stream stream = new FileStream("MyFile.bin", FileMode.Open, FileAccess.Read, FileShare.Read);
MyObject obj = (MyObject)formatter.Deserialize(stream);
</... | [
{
"answer_id": 218141,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 4,
"selected": true,
"text": "object result = formatter.Deserialize(stream); \nType t = result.GetType();\n"
},
{
"answer_id": 218154,
"author... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3893/"
] |
218,144 | <p>I'm wrapping up a <code>Javascript</code> widget in a <code>Wicket</code> component. I want to let the JS side talk to the component. What I've got so far:</p>
<p>Component in question goes like</p>
<pre><code>talker = new GridAjaxBehavior();
this.add(talker);
</code></pre>
<p>in constructor</p>
<p>and the... | [
{
"answer_id": 713544,
"author": "Eric Ryan Harrison",
"author_id": 79033,
"author_profile": "https://Stackoverflow.com/users/79033",
"pm_score": 0,
"selected": false,
"text": "\"var MyGridTalker = new talker(\" + this.talker.getCallbackUrl(); \"var MyGridTalker = new talker(\" + this.ta... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29574/"
] |
218,150 | <p>If I need to throw an exception from within my application which of the built-in .NET exception classes can I use? Are they all fair game? When should I derive my own?</p>
| [
{
"answer_id": 218170,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 3,
"selected": false,
"text": "ArgumentException NotSupportedException NotImplementedException"
},
{
"answer_id": 218214,
"author": "Konrad Ru... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1127460/"
] |
218,155 | <p>To put it simple, there's a simple java swing app that consists of JFrame with some components in it. One of the components is a JPanel that is meant to be replaced by another JPanel on user action.</p>
<p>So, what's the correct way of doing such a thing? I've tried</p>
<pre><code>panel = new CustomJPanelWithCompo... | [
{
"answer_id": 218259,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 5,
"selected": false,
"text": "frame.setContentPane(newContents());\nframe.revalidate(); // frame.pack() if you want to resize.\n JFrame"
}... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15187/"
] |
218,156 | <p>The following code</p>
<pre><code>number=1
if [[ $number =~ [0-9] ]]
then
echo matched
fi
</code></pre>
<p>works. If I try to use quotes in the regex, however, it stops:</p>
<pre><code>number=1
if [[ $number =~ "[0-9]" ]]
then
echo matched
fi
</code></pre>
<p>I tried <code>"\[0-9\]"</code>, too. What am I mi... | [
{
"answer_id": 218217,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 8,
"selected": true,
"text": "$ bash --version\nGNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)\nCopyright (C) 2007 Free Software Foundatio... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8437/"
] |
218,158 | <p>Is there a nicer way of styling a <code><hr /></code> tag using CSS, that is cross-browser consistent and doesn't involve wrapping a <code>div</code> around it? I'm struggling to find one.</p>
<p>The best way I have found, is as follows:</p>
<p><strong>CSS</strong></p>
<pre><code>.hr {
height:20px;
... | [
{
"answer_id": 218165,
"author": "vfilby",
"author_id": 24279,
"author_profile": "https://Stackoverflow.com/users/24279",
"pm_score": 1,
"selected": false,
"text": "block <div> div"
},
{
"answer_id": 218221,
"author": "Borgar",
"author_id": 27388,
"author_profile": "h... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
218,162 | <p>I have an XHTML strict page that has an invisible div that is controlled by Javascript. The div is set to transparent and visible by the script and a mouseover event to make the div opaque on hover.</p>
<p>When someone using a browser (or firefox with noscript) without javascript the div simply remains invisible. T... | [
{
"answer_id": 218176,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 0,
"selected": false,
"text": "<noscript> <p> <span>"
},
{
"answer_id": 218917,
"author": "Bobby Jack",
"author_id": 5058,
"author_profi... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11753/"
] |
218,174 | <p>I have the following arrays in PHP (okay they are a bit bigger but the idea is what counts).</p>
<pre><code>$array1 = array(1 => 'a', 2 => 'b');
$array2 = array(3 => 'c', 4 => 'd');
</code></pre>
<p>Essentially I want to combine the two arrays as if it were something like this</p>
<pre><code>$array3 =... | [
{
"answer_id": 218198,
"author": "Stefan Gehrig",
"author_id": 11354,
"author_profile": "https://Stackoverflow.com/users/11354",
"pm_score": 6,
"selected": true,
"text": "$array3 = $array1 + $array2;\n $a1=array(1 => 'a', 2 => 'b');\n$a2=array(3 => 'c', 4 => 'd');\nprint_r($a1+$a2);\nArr... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
218,181 | <p>Is there a built-in way to URL encode a string in Excel VBA or do I need to hand roll this functionality? </p>
| [
{
"answer_id": 218199,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 8,
"selected": true,
"text": "URLEncode() ADODB.Stream Public Function URLEncode( _\n ByVal StringVal As String, _\n Optional SpaceAsPlus As Boolean ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4023/"
] |
218,190 | <p>Object-relational mapping has been well discussed, including on here. I have experience with a few approaches and the pitfalls and compromises. True resolution seems like it requires changes to the OO or relational models themselves.</p>
<p>If using a functional language, does the same problem present itself? It... | [
{
"answer_id": 219446,
"author": "Jonathan Tran",
"author_id": 12887,
"author_profile": "https://Stackoverflow.com/users/12887",
"pm_score": 2,
"selected": false,
"text": "create table temp_foo_1 as select ...;\ncreate table temp_foo_2 as select ...;\n...\ncreate table foo_results as\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14663/"
] |
218,208 | <p>I have a Makefile building many C files with long long command lines and we've cleaned up the output by having rules such as:</p>
<pre><code>.c${MT}.doj:
@echo "Compiling $<";\
$(COMPILER) $(COPTS) -c -o $@ $<
</code></pre>
<p>Now this is great as the @ suppresses the compilation line being... | [
{
"answer_id": 218295,
"author": "Rajish",
"author_id": 29576,
"author_profile": "https://Stackoverflow.com/users/29576",
"pm_score": 4,
"selected": true,
"text": ".c${MT}.doj:\n @echo \"Compiling $<\";\\\n $(COMPILER) $(COPTS) -c -o $@ $< \\\n || echo \"Error in c... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
218,219 | <p>I need to change in a text input the character '.' to ',' while typing.
In IE I change the keyCode event property in the keypress event, like this</p>
<pre><code>document.getElementById('mytext').onkeypress =
function (evt) {
var e = evt || window.event;
if (e.keyCode && e.keyCode==46)
e.keyCode = ... | [
{
"answer_id": 218225,
"author": "Ates Goral",
"author_id": 23501,
"author_profile": "https://Stackoverflow.com/users/23501",
"pm_score": 3,
"selected": false,
"text": "window.onload = function () {\n var input = document.getElementById(\"mytext\");\n\n input.onkeypress = function ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27789/"
] |
218,245 | <p>Is there support in Ruby for (for lack of a better word) non-escaped (verbatim) strings?</p>
<p>Like in C#:</p>
<pre><code>@"c:\Program Files\"
</code></pre>
<p>...or in Tcl:</p>
<pre><code>{c:\Program Files\}
</code></pre>
| [
{
"answer_id": 218257,
"author": "DevelopingChris",
"author_id": 1220,
"author_profile": "https://Stackoverflow.com/users/1220",
"pm_score": 4,
"selected": true,
"text": "% %q{c:\\program files\\}"
},
{
"answer_id": 218271,
"author": "Antonio Cangiano",
"author_id": 6551,... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11545/"
] |
218,255 | <p>I'm a pretty active command line user and I have shell accounts all over the place. MacBooks, Linux desktop machines, Linux servers, Cygwin on XP, you name it.</p>
<p>How can I keep my shell configuration (<code>.bashrc</code>, <code>.vimrc</code> etc.) in sync across all these machines using the limited tools avai... | [
{
"answer_id": 6876048,
"author": "mustpax",
"author_id": 20476,
"author_profile": "https://Stackoverflow.com/users/20476",
"pm_score": 5,
"selected": true,
"text": "$ ls ~/Dropbox/shell/bash\nbashbootstrap bashrc\nbashrc-Darwin bashrc-Darwin-laptopname bashrc-Darwin-mininame\nbashrc-... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20476/"
] |
218,256 | <p>I used to be able to do the following in Preview 3</p>
<pre><code><%=Html.BuildUrlFromExpression<AController>(c => c.AnAction(par1, par2)%>
</code></pre>
<p>How am I supposed to create urls in a strongly typed way with the MVC Beta?
The only thing so far I have found is </p>
<pre><code><%= Html.... | [
{
"answer_id": 218280,
"author": "hangy",
"author_id": 11963,
"author_profile": "https://Stackoverflow.com/users/11963",
"pm_score": 2,
"selected": false,
"text": "Microsoft.Web.Mvc HtmlHelper <%= Html.ActionLink<SomeController>(c => c.Index()) %>\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
218,264 | <p>What's a good way to survive abnormally high traffic spikes?</p>
<p>My thought is that at some trigger, my website should temporarily switch into a "low bandwidth" mode: switch to basic HTML pages, minimal graphics, disable widgets that might put unnecessary load on the database, and so-on.</p>
<p>My thoughts are:... | [
{
"answer_id": 77012,
"author": "Wedge",
"author_id": 332,
"author_profile": "https://Stackoverflow.com/users/332",
"pm_score": 0,
"selected": false,
"text": "RewriteEngine on\nRewriteCond %{HTTP_REFERER} slashdot\\.org [NC]\nRewriteRule .* - [F]\n"
},
{
"answer_id": 83056,
"... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17440/"
] |
218,284 | <p>I'd like to be able to read the mac address from the first active network adapter using VB.net or C# (using .NET 3.5 SP1) for a winform application</p>
| [
{
"answer_id": 218314,
"author": "Ilya Kochetov",
"author_id": 15329,
"author_profile": "https://Stackoverflow.com/users/15329",
"pm_score": 2,
"selected": false,
"text": " Dim mc As System.Management.ManagementClass\n Dim mo As ManagementObject\n mc = New ManagementClass(\"Win32_Netw... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
218,322 | <p>If I have a property:</p>
<pre><code>public list<String> names { get; set; }
</code></pre>
<p>How can I generate and handle a custom Event for arguments sake called 'onNamesChanged' whenever a name gets added to the list?</p>
| [
{
"answer_id": 218347,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "class Foo {}\nclass FooCollection : Collection<Foo>\n{\n protected override void InsertItem(int index, Foo item)\n... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816/"
] |
218,335 | <p>Is is possible to write MS SQL Server add-in? I'm thinking of some application integrated with database server available form SQL Server Enterprise Manager.</p>
| [
{
"answer_id": 218445,
"author": "Martin Brown",
"author_id": 20553,
"author_profile": "https://Stackoverflow.com/users/20553",
"pm_score": 0,
"selected": false,
"text": "C:\\WINDOWS\\system32\\mmc.exe /32 \"C:\\WINDOWS\\system32\\SQLServerManager.msc\"\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15640/"
] |
218,337 | <p>i'm fairly new to NHibernate and although I'm finding tons of infos on NHibernate mapping on the web, I am too silly to find this piece of information.</p>
<p>So the problem is, i've got the following Model:</p>
<p><img src="https://i.stack.imgur.com/DihaU.jpg" alt="Datamodel"></p>
<p>this is how I'd like it to l... | [
{
"answer_id": 218360,
"author": "Joachim Kerschbaumer",
"author_id": 20227,
"author_profile": "https://Stackoverflow.com/users/20227",
"pm_score": 0,
"selected": false,
"text": "<many-to-one name=\"ShippingAddress\" class=\"Yournamespace.Address\"/>\n<many-to-one name=\"Address\" class=... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21699/"
] |
218,350 | <p>Does Java Connection.close rollback into a finally block?.</p>
<p>I know .Net SqlConnection.close does it.</p>
<p>With this I could make try/finally blocks without catch...</p>
<p>Example:</p>
<pre><code>try {
conn.setAutoCommit(false);
ResultSet rs = executeQuery(conn, ...);
....
executeNonQuery... | [
{
"answer_id": 223138,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 4,
"selected": false,
"text": "try {\n conn.setAutoCommit(false);\n ResultSet rs = executeQuery(conn, ...);\n ....\n executeNonQuery(conn,... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29600/"
] |
218,359 | <p>I have a custom class that implements that IComparable. This class is stored in a Generic List. I now need to compare to lists to see which objects are in list A but not in list B. </p>
<p>I thought the most simple way of doing this would be to iterate through list B and do A.contains().</p>
<p>I do not know ho... | [
{
"answer_id": 218367,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": true,
"text": "Equals CompareTo(other) == 0 Contains CompareTo Equals Contains IEqualityComparer"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6486/"
] |
218,384 | <p>What are Null Pointer Exceptions (<code>java.lang.NullPointerException</code>) and what causes them?</p>
<p>What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?</p>
| [
{
"answer_id": 218390,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 10,
"selected": false,
"text": "NullPointerException NullPointerException NullPointerException NullPointerException public class Example {\n\n p... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
218,388 | <p>I want to stitch 2 pieces of png side by side. In Cocoa, I would use [NSImage initWithSize], and then just drawInRect. </p>
<p>But UIImage don't have initWithSize class, how would I do this now?</p>
| [
{
"answer_id": 218454,
"author": "millenomi",
"author_id": 6061,
"author_profile": "https://Stackoverflow.com/users/6061",
"pm_score": 4,
"selected": true,
"text": "UIGraphicsBeginImageContext() UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() drawInRect:"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9774/"
] |
218,399 | <p>What's the advantage of passing data as parameters vs part of the URL in an Ajax GET request?</p>
<p>Using parameters:</p>
<pre><code>var ajax = new Ajax.Request('server.php',{
parameters: 'store=11200&product=Meat',
onSuccess: function(myData){whatever}
});
</code></pre>
<p>Using URL:</p>
<pre><code... | [
{
"answer_id": 218417,
"author": "Evan DiBiase",
"author_id": 2399475,
"author_profile": "https://Stackoverflow.com/users/2399475",
"pm_score": 5,
"selected": true,
"text": "parameters Hash method \"GET\" Hash"
},
{
"answer_id": 218437,
"author": "nickf",
"author_id": 902... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12579/"
] |
218,405 | <p>I've been testing an application using my machine as a server, and everything's going fine with it, but when I try to set it up to run on the test server, I get this error:</p>
<blockquote>
<p>Retrieving the COM class factory for
component with CLSID {XXXX} failed due
to the following error: 80040154.</p>
</b... | [
{
"answer_id": 218423,
"author": "ChaosSpeeder",
"author_id": 205962,
"author_profile": "https://Stackoverflow.com/users/205962",
"pm_score": 3,
"selected": true,
"text": "HKEY_CLASSES_ROOT\\CLSID\\{xxxx}\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13244/"
] |
218,439 | <p>Suppose we have the following code:</p>
<pre><code>ExpressionHelper.GetRouteValuesFromExpression<AccountController>(ax => ax.MyAction("a", "b"));
</code></pre>
<p>(from ASP.NET MVC Futures assembly). Method is reasonably fast - it executes 10k iterations in 150ms.</p>
<p>Now, we change code to this:</p>
... | [
{
"answer_id": 218456,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 1,
"selected": false,
"text": "Dictionary<Expression<Action<T>>, Action<T>> m_Cache =\n new Dictionary<Expression<Action<T>>, Action<T>>();\n\npu... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28912/"
] |
218,451 | <p>Part of my latest webapp needs to write to file a fair amount as part of its logging. One problem I've noticed is that if there are a few concurrent users, the writes <em>can</em> overwrite each other (instead of appending to file). I assume this is because of the destination file can be open in a number of places a... | [
{
"answer_id": 218460,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 3,
"selected": true,
"text": "flock() flock()"
},
{
"answer_id": 218539,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "http... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12870/"
] |
218,461 | <p>I would like to know what is the difference between initializing a static member inline as in:</p>
<pre><code>class Foo
{
private static Bar bar_ = new Bar();
}
</code></pre>
<p>or initializing it inside the static constructor as in:</p>
<pre><code>class Foo
{
static Foo()
{
bar_ = new Bar();
... | [
{
"answer_id": 218477,
"author": "Torbjørn",
"author_id": 22621,
"author_profile": "https://Stackoverflow.com/users/22621",
"pm_score": 2,
"selected": false,
"text": "class Foo\n{\n private static IBar _bar;\n\n static Foo()\n {\n if(something)\n {\n _ba... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10688/"
] |
218,462 | <p>Specifically, I want to copy a link (with text and location) and then to be able to paste it, e.g., into Word as a link.</p>
| [
{
"answer_id": 219223,
"author": "Lev",
"author_id": 7224,
"author_profile": "https://Stackoverflow.com/users/7224",
"pm_score": 3,
"selected": false,
"text": "var richText = \"<a href=\\\"\" + gContextMenu.linkURL + \"\\\">\" + gContextMenu.linkText() + \"</a>\";\nvar xfer = Components.... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218462",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7224/"
] |
218,466 | <p>I'm having a hard time coding understanding the format of the specifier and string functions.</p>
<p>My aim is to use <code>%[]</code> to readin all characters and spaces and then use the strcpy function followed by the strcat function.</p>
<p>So far i've managed to enter individual characters and print them out, ... | [
{
"answer_id": 218517,
"author": "Peter Olsson",
"author_id": 2703,
"author_profile": "https://Stackoverflow.com/users/2703",
"pm_score": 0,
"selected": false,
"text": "scanf(\"%c\", &words[i]);\n words[loops]='\\0';\n printf(\"%s\",words);\n"
},
{
"answer_id": 218607,
"autho... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
218,472 | <p>At a new job I started, we have both a Java application that handles most of the heavy lifting in the core business logic, and we also have a Rails application that of course handles the web interface to this server. Both of these access the same database.</p>
<p>Up until now, most of the focus has been on the Jav... | [
{
"answer_id": 222753,
"author": "rwc9u",
"author_id": 7778,
"author_profile": "https://Stackoverflow.com/users/7778",
"pm_score": 1,
"selected": false,
"text": " # Use SQL instead of Active Record's schema dumper when creating the test database.\n # This is necessary if your schema ca... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29104/"
] |
218,488 | <h2>Problem</h2>
<p>I have timestamped data, which I need to search based on the timestamp in order to get the one existing timestamp which matches my input timestamp the closest.<br>
Preferably this should be solved with the STL. boost::* or stl::tr1::* (from VS9 with Featurepack) are also possible.<br>
Example of ti... | [
{
"answer_id": 218720,
"author": "Mark Ransom",
"author_id": 5987,
"author_profile": "https://Stackoverflow.com/users/5987",
"pm_score": 4,
"selected": true,
"text": "struct TimestampCompare\n{\n bool operator()(const STimestampedData & left, const STimestampedData & right) const\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27596/"
] |
218,491 | <p>Is it possible to configure Windows Servers that reside on the same domain such that when a web service call is made from a web app using an IP address, the request does not go via a proxy server?</p>
<p>The web service is running on one of the servers on the domain. </p>
<p>I want to configure IP based security o... | [
{
"answer_id": 287023,
"author": "Reiwoldt",
"author_id": 29588,
"author_profile": "https://Stackoverflow.com/users/29588",
"pm_score": 1,
"selected": true,
"text": "Set xmlhttp = Server.CreateObject(\"Msxml2.ServerXMLHTTP.4.0\") \n\nxmlhttp.SetProxy 2,\"proxyname:port\", \"addresses tha... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29588/"
] |
218,507 | <p>I have a home project that really needs to be in Source Control. I tried installing Subversion, which I have some experience with, but couldn't get it working. I don't particularly want to use SourceSafe. I'm a bit nervous about Git/Mercury as being somewhat cryptic, although this is only based on opinion rather ... | [
{
"answer_id": 237818,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 2,
"selected": false,
"text": "git mkdir myrepo git init .git/ vim myfile.txt git add myfile.txt svn add git commit git add git add myfile.txt"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25462/"
] |
218,512 | <p>I would like to use the ispell-buffer command in Emacs. It uses the English language by default. Is there an easy way to switch to another dictionary (for example, another language)?</p>
| [
{
"answer_id": 218576,
"author": "Pierre",
"author_id": 24449,
"author_profile": "https://Stackoverflow.com/users/24449",
"pm_score": 5,
"selected": false,
"text": "ispell ;; Local Variables:\n;; ispell-check-comments: exclusive\n;; ispell-local-dictionary: \"american\"\n;; End:\n //"
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4900/"
] |
218,522 | <p>I have a Java servlet which generates xml, translates it with an xslt stylesheet, and then displays the resulting HTML. This is the first time I've worked with xslt. What's a good way to debug xslt? I have (or can get) some sample XML files to apply the transform too. But I'm not really even sure of the syntax so so... | [
{
"answer_id": 2319729,
"author": "chiborg",
"author_id": 130121,
"author_profile": "https://Stackoverflow.com/users/130121",
"pm_score": 4,
"selected": false,
"text": "<xsl:message> terminate=\"yes\""
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8092/"
] |
218,531 | <p>I have a situation where I want to create a signature of a data structure:</p>
<pre><code>my $signature = ds_to_sig(
{ foo => 'bar',
baz => 'bundy',
boing => undef,
number => 1_234_567,
}
);
</code></pre>
<p>The aim should be that if the data structure changes then so should the sig... | [
{
"answer_id": 218558,
"author": "Leon Timmermans",
"author_id": 4727,
"author_profile": "https://Stackoverflow.com/users/4727",
"pm_score": 4,
"selected": false,
"text": "use Storable;\n$Storable::canonical = 1;\nsub ds_to_sig {\n my $structure = shift;\n return hash(freeze $struc... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5349/"
] |
218,535 | <p>I have a database full of small HTML documents and I need to programmatically insert several into, say, a PDF document with <em>iText</em> or a Word document with <em>Aspose.Words</em>. I need to preserve any formatting within the HTML documents (within reason, honouring <b> tags is a must, CSS like <span s... | [
{
"answer_id": 219780,
"author": "Craig Angus",
"author_id": 15352,
"author_profile": "https://Stackoverflow.com/users/15352",
"pm_score": 3,
"selected": true,
"text": "<br>"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29620/"
] |
218,556 | <p>I've been given a requirement for an internal web application to send documents to a printer transparently. The idea would be that the user can select their nearest printer, and the web application would send their print jobs to the printer they selected.</p>
<p>The first printer we have to roll out against are Ca... | [
{
"answer_id": 218677,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 4,
"selected": true,
"text": "System.Drawing.Printing"
},
{
"answer_id": 221818,
"author": "Douglas Anderson",
"author_id": 5678,
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5802/"
] |
218,563 | <p>How can I implement the "tap and hold" behavior in an MFC CListCtrl?</p>
<p>I have an MFC CListCtrl in a CDialog and I need to add to the CListCtrl the "tap and hold" behavior.</p>
<p>That is what I mean for "tap and hold":</p>
<p>If the user clicks (a "standard" click with the left button of the mouse) on a CLis... | [
{
"answer_id": 222166,
"author": "SmacL",
"author_id": 22564,
"author_profile": "https://Stackoverflow.com/users/22564",
"pm_score": 1,
"selected": false,
"text": "BOOL CMyDialog::OnInitDialog() \n{\n MyListboxCtrl.SubclassDlgItem(ID_MYLISTBOX,this);\n CDialog::OnInitDialog();\n}\n"
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15485/"
] |
218,573 | <p>I've seen some developers put instance variable declarations at the end of classes though I mostly see them placed at the top. The only reasons I can think of for doing this are stylistic preference or maybe it somehow makes them easier to work with in an IDE. Is there a more legitimate reason for choosing this st... | [
{
"answer_id": 1411795,
"author": "finnw",
"author_id": 12048,
"author_profile": "https://Stackoverflow.com/users/12048",
"pm_score": 1,
"selected": false,
"text": "private"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218573",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1294/"
] |
218,604 | <p>For example, if I have a network spec like 172.20.10.0/24, "24" is the bitcount. What's the best way to convert that to a netmask like 0xffffff00 ?</p>
| [
{
"answer_id": 218620,
"author": "Eric Hogue",
"author_id": 4137,
"author_profile": "https://Stackoverflow.com/users/4137",
"pm_score": 2,
"selected": false,
"text": "whatmask 72.20.10.0/24\n IP Entered = ..................: 72.20.10.0\nCIDR = ........................: /24\nNetmask = ...... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19655/"
] |
218,613 | <p>I hope there's a SharePoint expert here on SO who can help with this.</p>
<p>Here's the problem. My SharePoint logs contain this line, several times:</p>
<p><code>An SPRequest object was not disposed before the end of this thread. To avoid wasting system resources, dispose of this object or its parent (such as an... | [
{
"answer_id": 219179,
"author": "Jason Z",
"author_id": 2470,
"author_profile": "https://Stackoverflow.com/users/2470",
"pm_score": 1,
"selected": false,
"text": "try \n{\n //instantiate the SPSite and SPWeb with elevated privileges: \n SPSecurity.RunWithElevatedPrivileges(dele... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218613",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7565/"
] |
218,616 | <p>Given the Python function:</p>
<pre><code>def a_method(arg1, arg2):
pass
</code></pre>
<p>How can I extract the number and names of the arguments. I.e., given that I have a reference to <code>func</code>, I want the <code>func.[something]</code> to return <code>("arg1", "arg2")</code>.</p>
<p>The usage scenar... | [
{
"answer_id": 218625,
"author": "Jouni K. Seppänen",
"author_id": 26575,
"author_profile": "https://Stackoverflow.com/users/26575",
"pm_score": 7,
"selected": false,
"text": "a_method.func_code.co_argcount\n a_method.func_code.co_varnames\n func(*args, **kwargs)"
},
{
"answer_id... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3355/"
] |
218,623 | <p>I've seen a couple of font topics on SO and it seems a majority of people use monospace fonts for programming tasks. I have been using Verdana for programming for a couple of years and I really like the enhanced readability, without missing anything monospace related.</p>
<p>Why do you use a monospace font?</p>
| [
{
"answer_id": 218639,
"author": "Ryan",
"author_id": 17917,
"author_profile": "https://Stackoverflow.com/users/17917",
"pm_score": 7,
"selected": false,
"text": "Il 0O"
},
{
"answer_id": 218646,
"author": "DGentry",
"author_id": 4761,
"author_profile": "https://Stack... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5409/"
] |
218,638 | <p>Using the ClearCase find command, how do I find all files in a directory that do not have the name pom.xml? </p>
<p>I'd like to pass other selection options to the ClearCase find command so I'd prefer not to execute another command.</p>
<p>I am using a RedHat linux version of ClearCase. I have tried "cleartool f... | [
{
"answer_id": 218976,
"author": "Dmitry Khalatov",
"author_id": 18174,
"author_profile": "https://Stackoverflow.com/users/18174",
"pm_score": 2,
"selected": false,
"text": "cleartool ls -short -nxname | grep -v pom.xml\n"
},
{
"answer_id": 224759,
"author": "VonC",
"auth... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4476/"
] |
218,663 | <p>I work for a custom cabinetry manufacturer and we write our own pricing program for our product. I have a form that has a pop-up box so the user can select which side the hinge will be on for ambiguous doors on that cabinet. I've got that to work so far, but when they copy an item and paste it at the bottom I don'... | [
{
"answer_id": 218783,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 2,
"selected": false,
"text": "Option Compare Database\nPublic gvarPasted As Boolean\n\nPrivate Sub txtText_AfterUpdate()\nIf Not gvarPasted Then\n 'O... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4549/"
] |
218,680 | <p>I allow users to enter a regular expression to match IP addresses, for doing an IP filtration in a related system. I would like to validate if the entered regular expressions are valid as a lot of userse will mess op, with good intentions though.</p>
<p>I can of course do a Regex.IsMatch() inside a try/catch and se... | [
{
"answer_id": 218716,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https://Stackoverflow.com/users/2199",
"pm_score": 3,
"selected": false,
"text": "System.Text.RegularExpressions.RegexNode.ScanRegex()"
},
{
"answer_id": 1775017,
"author": "Jeff Atwood",
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12469/"
] |
218,681 | <p>The following code snippet illustrates a memory leak when opening XPS files. If you run it and watch the task manager, it will grow and not release memory until the app exits.</p>
<p>'****** Console application BEGINS.</p>
<pre><code>Module Main
Const DefaultTestFilePath As String = "D:\Test.xps"
Const De... | [
{
"answer_id": 219165,
"author": "Ryan O'Neill",
"author_id": 26221,
"author_profile": "https://Stackoverflow.com/users/26221",
"pm_score": 4,
"selected": true,
"text": " Using XPSItem As New Windows.Xps.Packaging.XpsDocument(PathToTestXps, System.IO.FileAccess.Read)\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26221/"
] |
218,691 | <p>Is there a way to temporary swap Flex's main application to another then switch back.
Scenario : Main app started, display login box - then go on with main app. Login box is an application as well. </p>
<p>Application.application is a read only property, that attempt failed.</p>
| [
{
"answer_id": 220714,
"author": "Mitch Haile",
"author_id": 28807,
"author_profile": "https://Stackoverflow.com/users/28807",
"pm_score": 0,
"selected": false,
"text": "<mx:Application>\n <mx:ViewStack>\n <mx:Box> <!-- or whatever for login-->\n </mx:Box>\n <mx:Box> <!-- appli... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
218,696 | <p>Is there a generic way to clone objects in VBA? So that i could copy x to y instead of copying just the pointer?</p>
<pre><code> Dim x As New Class1
Dim y As Class1
x.Color = 1
x.Height = 1
Set y = x
y.Color = 2
Debug.Print "x.Color=" & x.Color & ", x.Height=" & x.Height
</code></pre>
<... | [
{
"answer_id": 220060,
"author": "Mike Woodhouse",
"author_id": 1060,
"author_profile": "https://Stackoverflow.com/users/1060",
"pm_score": 4,
"selected": true,
"text": "Option Explicit\n\nPublic prop1 As Long\nPrivate DontCloneThis As Variant\n\nPublic Property Get PrivateThing()\n P... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4134/"
] |
218,732 | <p>In .NET, Windows Forms have an event that fires before the Form is loaded (Form.Load), but there is no corresponding event that is fired AFTER the form has loaded. I would like to execute some logic after the form has loaded.</p>
<p>Can anyone advise on a solution?</p>
| [
{
"answer_id": 218740,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 6,
"selected": false,
"text": "this.BeginInvoke((MethodInvoker) delegate {\n // some code\n});\n this.BeginInvoke((MethodInvoker) this.SomeMethod);... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/324/"
] |
218,733 | <p>I have a <code>GridView</code> control in an Asp.net application, that has a <code><asp:buttonField></code> of <code>type="image"</code> and <code>CommandName="Delete"</code>.</p>
<p>Is there any way to execute a piece of javascript before reaching the <code>OnRowDelete</code> event?</p>
<p>I want just a sim... | [
{
"answer_id": 218785,
"author": "steve_c",
"author_id": 769,
"author_profile": "https://Stackoverflow.com/users/769",
"pm_score": 6,
"selected": true,
"text": "<script type=\"text/javascript\">\n function confirmDelete()\n {\n return confirm(\"Are you sure you want to delete t... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7595/"
] |
218,744 | <p>What are good reasons to prohibit inheritance in Java, for example by using final classes or classes using a single, private parameterless constructor? What are good reasons of making a method final?</p>
| [
{
"answer_id": 218774,
"author": "Mecki",
"author_id": 15809,
"author_profile": "https://Stackoverflow.com/users/15809",
"pm_score": 3,
"selected": false,
"text": " String blah = someOtherString;\n"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18722/"
] |
218,747 | <p>I have a problem with Visual C++ 2008. I have installed opencv and I've created a new program and I build it with no errors. However, it complains about not finding MSVCR90D.dll when debugging. In release mode there is no problem at all. </p>
<p>I do have MSVCR90D.dll in one of Winsxs folders. Does anyone know a ge... | [
{
"answer_id": 221238,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 2,
"selected": false,
"text": "/pb your.debug.exe"
},
{
"answer_id": 693992,
"author": "x_x",
"author_id": 84155,
"author_profile": ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
218,760 | <p>Although elements like <code><div></code>s normally grow to fit their contents, using the <code>float</code> property can cause a startling problem for CSS newbies: <strong>If floated elements have non-floated parent elements, the parent will collapse.</strong></p>
<p>For example:</p>
<p><div class="snippet" d... | [
{
"answer_id": 218799,
"author": "Bobby Jack",
"author_id": 5058,
"author_profile": "https://Stackoverflow.com/users/5058",
"pm_score": 6,
"selected": false,
"text": "overflow: auto float: left"
},
{
"answer_id": 218809,
"author": "Konrad Rudolph",
"author_id": 1968,
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4376/"
] |
218,777 | <p>Is it right to use a private constant in the following situation:</p>
<p>Say I have a game with a lives variable and a startingLives variable. At the start of the game I set the lives variable to equal the startingLives variable. This is how I would normally do it:</p>
<pre><code>private var lives:int = 0;
private... | [
{
"answer_id": 218782,
"author": "ine",
"author_id": 4965,
"author_profile": "https://Stackoverflow.com/users/4965",
"pm_score": 3,
"selected": true,
"text": "DEFAULT_STARTING_LIVES DEFAULT_STARTING_LIVES"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11911/"
] |
218,786 | <p>I keep on hearing about concurrent programing every where.
Can you guys throw some light on what it's and how c++ new standards facilitate doing the same?</p>
| [
{
"answer_id": 218817,
"author": "Anthony Williams",
"author_id": 5597,
"author_profile": "https://Stackoverflow.com/users/5597",
"pm_score": 7,
"selected": true,
"text": "std::thread void my_function()\n{\n // do stuff\n}\nstd::thread my_thread(my_function); // run my_function in its... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
218,794 | <p>I have a form that uses jQuery to submit an ajax post and it serializes the form that is sent up. The code looks like this:</p>
<pre><code>var form = $("form");
var action = form.attr("action");
var serializedForm = form.serialize();
$.post(action, serializedForm, function(data)
{
...
});
</code></pre>
<p>The pr... | [
{
"answer_id": 219013,
"author": "micahwittman",
"author_id": 11181,
"author_profile": "https://Stackoverflow.com/users/11181",
"pm_score": 3,
"selected": false,
"text": "$('input, textarea').each(function(){\n $(this).val(jQuery.trim($(this).val()));\n});\n"
},
{
"answer_id":... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24841/"
] |
218,798 | <p>The output of my JSON call can either be an Array or a Hash. How do I distinguish between these two?</p>
| [
{
"answer_id": 218833,
"author": "Borgar",
"author_id": 27388,
"author_profile": "https://Stackoverflow.com/users/27388",
"pm_score": 5,
"selected": false,
"text": "function isObject ( obj ) {\n return obj && (typeof obj === \"object\");\n}\n function isArray ( obj ) { \n return isOb... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29653/"
] |
218,806 | <p>I am wondering how the JBoss ExceptionSorter classes are able to check for database errors.</p>
<p>The application (the EJB or persistence framework) is holding the reference to the database Connection, so SQLExceptions are caught by the application. How is JBoss able to see the contents of the exception?</p>
<p>D... | [
{
"answer_id": 360041,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<property name=\"exceptionSorterClassName\"><value>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</value></prope... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25688/"
] |
218,808 | <p>I've got a <code>DateTime?</code> that I'm trying to insert into a field using a <code>DbParameter</code>. I'm creating the parameter like so:</p>
<pre><code>DbParameter datePrm = updateStmt.CreateParameter();
datePrm.ParameterName = "@change_date";
</code></pre>
<p>And then I want to put the value of the <code>Da... | [
{
"answer_id": 218843,
"author": "dnolan",
"author_id": 29086,
"author_profile": "https://Stackoverflow.com/users/29086",
"pm_score": 3,
"selected": false,
"text": "datePrm.Value = nullableDate.HasValue ? (object)nullableDate.Value : DBNull.Value;\n"
},
{
"answer_id": 218844,
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6408/"
] |
218,813 | <p>I have a static method in my code that I would like somehow to mock.</p>
<p>I am using jmock.</p>
<p>One way I suppose I could do this is to have "wrapper class" around the static method and
mock this but I was hoping for a better solution.</p>
<p>I am going about this the wrong way?</p>
<p>FEEDBACK:</p>
<p>I w... | [
{
"answer_id": 1053272,
"author": "Rogério",
"author_id": 2326914,
"author_profile": "https://Stackoverflow.com/users/2326914",
"pm_score": 3,
"selected": false,
"text": "\n List<Person> peopleAboveAge = \n find(\"select p from Person p where p.age >= ?\", age);\n find Persiste... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3050/"
] |
218,825 | <p>I have three Java <code>JCheckboxes</code> in a column, arranged by setting the layout of the container <code>JPanel</code> to <code>GridLayout(3, 1, 1, 1)</code>. When I run the program, there is too much vertical space between the JCheckBoxes; it looks like more than 1 pixel. Since I've already set the vertical ... | [
{
"answer_id": 219198,
"author": "Alex B",
"author_id": 6180,
"author_profile": "https://Stackoverflow.com/users/6180",
"pm_score": 2,
"selected": false,
"text": "GridLayout BorderLayout GridBagLayout //Changing to 3,1,1,0 makes slightly smaller (1 pixel) gap vertically \nGridLayout layo... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
218,845 | <p>I have a news site with articles tagged in categories.</p>
<p>My Controller is called "Category" and this URL:</p>
<blockquote>
<p><code>http://mysite.com/Category/Sport</code></p>
</blockquote>
<p>passes <code>Sport</code> to action <code>Index</code> in controller <code>Category</code>.</p>
<p>I want to allo... | [
{
"answer_id": 37267580,
"author": "jgauffin",
"author_id": 70386,
"author_profile": "https://Stackoverflow.com/users/70386",
"pm_score": 0,
"selected": false,
"text": "routes.MapRoute(\"Default\", \"{category}/{subcategory}\",\n new { controller = \"CategoryController\", action = \"D... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29181/"
] |
218,848 | <p>I need to give users the ability to optionally add metadata to documents. Another way to state this is the fact that users need to add at least 5 categories to a document.</p>
<p>Basically what I want to do is dynamically add metadata (or categories) to a document on an ad hoc basis. Here are the options that I hav... | [
{
"answer_id": 218993,
"author": "Richard T",
"author_id": 26976,
"author_profile": "https://Stackoverflow.com/users/26976",
"pm_score": 1,
"selected": false,
"text": "create table DocMetaData\n(\n DocumentHandle varchar NOT NULL,\n MetaDataName varchar NOT NULL,\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29441/"
] |
218,857 | <p>I have a class that contains a bunch of properties. It is a mistake by a programmer if they call ToString() on an object of that type. Take this example code:</p>
<pre><code>using System;
public class Foo
{
public int ID = 123;
public string Name = "SomeName";
private string ToString() { return null; ... | [
{
"answer_id": 218868,
"author": "Sander",
"author_id": 2928,
"author_profile": "https://Stackoverflow.com/users/2928",
"pm_score": 4,
"selected": false,
"text": "[Obsolete(\"Use the XYZ properties instead of .ToString() on Foobar\", true)]\n"
},
{
"answer_id": 218885,
"autho... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
218,866 | <p>I have data from MySQL showing all organisations a customer got, with all details of employess in each organisation. I want to list each organisation name only once i.e. in a single cell ( row span) and all employees in that organisation against this name like:</p>
<pre><code>Org1 Emp1 Name, Emp1 Phone, Emp1 Ad... | [
{
"answer_id": 218900,
"author": "Veynom",
"author_id": 11670,
"author_profile": "https://Stackoverflow.com/users/11670",
"pm_score": 3,
"selected": true,
"text": "$currentOrg = '';\nwhile ($row = mysql_fetch_object($query)) {\n if ($row->org != $currentOrg) {\n echo \"$row->org\"... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29656/"
] |
218,888 | <p>I have 3 classes that are essentially the same but don't implement an interface because they all come from different web services. </p>
<p>e.g.</p>
<ul>
<li>Service1.Object1</li>
<li>Service2.Object1</li>
<li>Service3.Object1</li>
</ul>
<p>They all have the same properties and I am writing some code to map them t... | [
{
"answer_id": 218930,
"author": "Scott Dorman",
"author_id": 1559,
"author_profile": "https://Stackoverflow.com/users/1559",
"pm_score": 1,
"selected": false,
"text": "namespace TestServices\n{\n internal partial class Service1SoapClient : System.ServiceModel.ClientBase<T>, K\n {\n ... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4950/"
] |
218,904 | <p>I am using TortoiseSVN for my Subversion repository held on a USB drive. When I move from one PC to another, is there a way to automatically identify that files are out of date (without using the Check for Modifications menu). It would be nice just to be able to see that the folder on my hard drive did not match tha... | [
{
"answer_id": 219033,
"author": "onnodb",
"author_id": 1037,
"author_profile": "https://Stackoverflow.com/users/1037",
"pm_score": 3,
"selected": true,
"text": "[autorun]\nopen=CheckForMods.bat\n CheckForMods.bat svn status -u"
}
] | 2008/10/20 | [
"https://Stackoverflow.com/questions/218904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21862/"
] |
218,908 | <p>Is there a best way to turn an integer into its month name in .net?</p>
<p>Obviously I can spin up a datetime to string it and parse the month name out of there. That just seems like a gigantic waste of time.</p>
| [
{
"answer_id": 218927,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 4,
"selected": false,
"text": "somedatetime.ToString(\"MMMM\")"
},
{
"answer_id": 218947,
"author": "Tokabi",
"author_id": 315,
"autho... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1220/"
] |
218,909 | <p><strong>EDIT:</strong> See <a href="https://stackoverflow.com/questions/218909/returning-a-pdf-file-from-a-java-bean-to-a-jsp#221252">my working code</a> in the answers below.</p>
<hr>
<p><strong>In brief:</strong> I have a JSP file which calls a method in a Java Bean. This method creates a PDF file and in theory,... | [
{
"answer_id": 219102,
"author": "Leonel Martins",
"author_id": 26673,
"author_profile": "https://Stackoverflow.com/users/26673",
"pm_score": 0,
"selected": false,
"text": "<%@ page trimDirectiveWhitespaces=\"true\" %>\n"
},
{
"answer_id": 221252,
"author": "Philip Morton",
... | 2008/10/20 | [
"https://Stackoverflow.com/questions/218909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21709/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.