qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
226,221 | <p>I'd like to do something like this</p>
<blockquote>
<pre><code>raiserror(concat('Error in case @isFishy =', @isFishy, ' @isSmarmy=', @isSmarmy, ' @isTasty = ', @isTasty), 10, 1)
--or
raiserror('Error in case @isFishy =' + @isFishy + ' @isSmarmy=' + @isSmarmy + ' @isTasty = ' + @isTasty, 10, 1)
</code></pre>
</block... | [
{
"answer_id": 226474,
"author": "kristof",
"author_id": 3241,
"author_profile": "https://Stackoverflow.com/users/3241",
"pm_score": 5,
"selected": true,
"text": "raiserror(N'Error in case @isFishy = %d @isSmarmy = %d @isTasty = %d',10,1,@isFishy,@isSmarmy,@isTasty)\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8435/"
] |
226,271 | <p>I know how to find out the current domain name in PHP already, the problem is when I put this code into a file and then include it from another server it shows the domain name of where the file is located. Is there any way for it to find out the domain or the site containing the include() code?</p>
| [
{
"answer_id": 226335,
"author": "J.D. Fitz.Gerald",
"author_id": 11542,
"author_profile": "https://Stackoverflow.com/users/11542",
"pm_score": 1,
"selected": false,
"text": "include 'http://example.com/script.php';\n <? \n//do something\necho '$v = '.$_SERVER['HTTP_HOST'].';'\n?>\n <?\n... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26823/"
] |
226,272 | <p>I have one user who gets an error message when he closes his browser. This only happens when he has visited a page which contains my applet. It seems to have been registered as a bug at Sun but that was many years ago. He is using Java 1.6 and IE7.</p>
<p>Has anyone seen this before and know a solution or work-arou... | [
{
"answer_id": 1458976,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "<SCRIPT language = \"JavaScript\">\n window.onunload = function() { document.body.innerHTML = \"\"; } \n</script>\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11249/"
] |
226,279 | <p>I'm trying to decode a WBXML encoded SyncML message from a Nokia N95.
My first attempt was to use the python pywbxml module which wraps calls to libwbxml. Decoding the message with this gave a lot of <unknown> tags and a big chunk of binary within a <Collection> tag. I tried running the contents of the &... | [
{
"answer_id": 1826223,
"author": "Engrost",
"author_id": 127734,
"author_profile": "https://Stackoverflow.com/users/127734",
"pm_score": 0,
"selected": false,
"text": "params.lang wbxml2xml params.lang = WBXML_LANG_UNKNOWN\n class WBXMLParseError(Exception):\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11542/"
] |
226,280 | <p>In eclipse 3.4 I'm trying to do some performance tests on a large product, one of the included libraries is the vecmath.jar (javax.vecmath package) from the Java3D project. Everything was working fine and then when trying to run it yesterday I get this exception/error not long after starting it up:</p>
<pre><code>... | [
{
"answer_id": 226552,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 0,
"selected": false,
"text": "Window\n -> Preferences\n -> Java\n -> Compiler\n -> Compiler Compliance Level\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25920/"
] |
226,282 | <p>I'm not talking about algorithmic stuff (eg use quicksort instead of bubblesort), and I'm not talking about simple things like loop unrolling.</p>
<p>I'm talking about the <em>hardcore</em> stuff. Like <a href="http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html" rel="noreferrer">Tiny Teensy ELF</a>, <a h... | [
{
"answer_id": 226350,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 2,
"selected": false,
"text": "movsx"
},
{
"answer_id": 226367,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stackov... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18658/"
] |
226,288 | <p>When creating a new build in Team Foundation Server, I get the following error when attempting to run the new build:</p>
<blockquote>
<p>The path
C:\Build\ProductReleases\FullBuildv5.4.2x\Sources
is already mapped to workspace
BuildServer_23.</p>
</blockquote>
<p>I am unable to see a workspace by that name... | [
{
"answer_id": 226304,
"author": "NotMyself",
"author_id": 303,
"author_profile": "https://Stackoverflow.com/users/303",
"pm_score": 8,
"selected": true,
"text": "C:\\YourWorkspaceFolder>tf workspaces /owner:*\n C:\\YourWorkspaceFolder>tf workspace /delete /server:BUILDSERVER WORKSPACENA... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/303/"
] |
226,292 | <p>I could write myself a helper class that does this when given a functor, but I was wondering if there's a better approach, or if there's something already in the standard library (seems like there should be).</p>
<p>Answers I've found on StackOverflow are all for C# which doesn't help me.</p>
<p>Thanks</p>
| [
{
"answer_id": 226326,
"author": "oxbow_lakes",
"author_id": 16853,
"author_profile": "https://Stackoverflow.com/users/16853",
"pm_score": 4,
"selected": true,
"text": "commons-collections"
},
{
"answer_id": 2063544,
"author": "Mario Fusco",
"author_id": 112779,
"auth... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
226,300 | <p>What I want to do is an outer join to a table, where I exclude records from the joined table based on matching a constant, however keep records from the main table. For example:</p>
<pre><code>SELECT a.id, a.other, b.baz
FROM a
LEFT OUTER JOIN b
ON a.id = b.id
AND b.bar = 'foo'
</code></pre>
<p>Expected resul... | [
{
"answer_id": 231338,
"author": "DJ.",
"author_id": 10492,
"author_profile": "https://Stackoverflow.com/users/10492",
"pm_score": 0,
"selected": false,
"text": "SELECT a.id, x.baz\nFROM a\nLEFT OUTER JOIN \n (SELECT id, baz FROM b WHERE bar = 'foo') As x ON a.id = x.id\n"
},
{
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20068/"
] |
226,302 | <p>It seems safe to cast the result of my vector's <code>size()</code> function to an <code>unsigned int</code>. How can I tell for sure, though? My documentation isn't clear about how <code>size_type</code> is defined.</p>
| [
{
"answer_id": 226413,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": -1,
"selected": false,
"text": "BOOST_STATIC_ASSERT() BOOST_STATIC_ASSERT( sizeof( unsigned int) >= sizeof( size_type));\n"
},
{
"answer_id"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11575/"
] |
226,315 | <p>I'm using polar plots (POLAR(THETA,RHO)) in MATLAB.</p>
<p>Is there an easy way to fix the range for the radial axis to say, 1.5?</p>
<p>I'm looking for something analogous to the xlim, ylim commands for cartesian axes. Haven't found anything in the docs yet.</p>
| [
{
"answer_id": 226493,
"author": "Tim Whitcomb",
"author_id": 24895,
"author_profile": "https://Stackoverflow.com/users/24895",
"pm_score": 4,
"selected": true,
"text": "theta = linspace(0,2*pi,100);\nr = sin(2*theta) .* cos(2*theta);\nr_max = 1;\nh_fake = polar(theta,r_max*ones(s... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20688/"
] |
226,354 | <p>I'm trying to drag a <code>CALayer</code> in an iOS app.</p>
<p>As soon as I change its position property it tries to animate to the new position and flickers all over the place:</p>
<pre><code> layer.position = CGPointMake(x, y)
</code></pre>
<p>How can I move <code>CALayers</code> instantly? I can't seem to get... | [
{
"answer_id": 226761,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 8,
"selected": true,
"text": "[CATransaction begin]; \n[CATransaction setValue: (id) kCFBooleanTrue forKey: kCATransactionDisableActions];\nlayer.posi... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30420/"
] |
226,356 | <p>I am having trouble understanding how the System Registry can help me convert a DateTime object into the a corresponding TimeZone. I have an example that I've been trying to reverse engineer but I just can't follow the one critical step in which the UTCtime is offset depending on Daylight Savings Time.</p>
<p>I am... | [
{
"answer_id": 226408,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 2,
"selected": false,
"text": "var tzi = TimeZoneInfo.FindSystemTimeZoneById(\"Pacific Standard Time\");\nvar dto = new DateTimeOffset(2008, 10, 22, 13, 6,... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30408/"
] |
226,365 | <p>I have a UIImagePickerController as one view in a TabBar setup. Is it possible to tell the UIImagePickerController to not show the Cancel button in the top navigation bar when browsing photos libraries?</p>
| [
{
"answer_id": 226408,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 2,
"selected": false,
"text": "var tzi = TimeZoneInfo.FindSystemTimeZoneById(\"Pacific Standard Time\");\nvar dto = new DateTimeOffset(2008, 10, 22, 13, 6,... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29263/"
] |
226,382 | <p>I have SQL query, which is working nice on Oracle and MSSQL. Now I'm trying this on PostgreSQL and it gives a strange exception: <code>org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table "main"</code></p>
<p>Here is the query: </p>
<pre><code>SELECT *
FROM "main" main
INNER JOIN "som... | [
{
"answer_id": 228813,
"author": "m_pGladiator",
"author_id": 446104,
"author_profile": "https://Stackoverflow.com/users/446104",
"pm_score": 2,
"selected": false,
"text": "add_missing_from = on\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/446104/"
] |
226,392 | <p>We have an intranet asp.net web application which uses the OOTB ASP.net membership and role providers. </p>
<p>Now we are planning to expose the application to internet, by moving the web server to the DMZ as represented in the following (crappy) text diagram</p>
<pre>
External Int... | [
{
"answer_id": 227055,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 3,
"selected": true,
"text": "<roleManager enabled=\"true\" defaultProvider=\"RemoteRoleProvider\">\n <providers>\n <add name=\"RemoteRoleProv... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/747/"
] |
226,405 | <p>Anyone know how to get the position of a node using XPath?</p>
<p>Say I have the following xml:</p>
<pre><code><a>
<b>zyx</b>
<b>wvu</b>
<b>tsr</b>
<b>qpo</b>
</a>
</code></pre>
<p>I can use the following xpath query to select the third <... | [
{
"answer_id": 226616,
"author": "Steven Huwig",
"author_id": 28604,
"author_profile": "https://Stackoverflow.com/users/28604",
"pm_score": 3,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6124/"
] |
226,420 | <p>Is there a way in C# or .NET in general to create an attribute on a method which triggers an event when the method is invoked? Ideally, I would be able to run custom actions before and after the invocation of the method.</p>
<p>I mean something like this:</p>
<pre><code>[TriggersMyCustomAction()]
public void DoSom... | [
{
"answer_id": 226472,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 4,
"selected": false,
"text": "//proxy\npublic override void DoSomeStuff()\n{\n if(MethodHasTriggerAttribute)\n Trigger();\n\n _innerC... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8954/"
] |
226,433 | <p>When I first load data into a Silverlight DataGrid control, how can I make the screen look exactly as if the user had just clicked the header of the first column? In other words, the data should be sorted in ascending order according to that column's values, AND the little sort arrow should be displayed in the firs... | [
{
"answer_id": 4427732,
"author": "Valentin",
"author_id": 443379,
"author_profile": "https://Stackoverflow.com/users/443379",
"pm_score": 3,
"selected": false,
"text": "if (pcv.CanSort == true)\n{\n pcv.SortDescriptions.Add(new SortDescription(\"ProductionStatus\", ListSortDirectio... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4540/"
] |
226,436 | <p>I have a custom control that exposes a property. When I set it using a fixed value, everything works correctly. But if I try to set its value using the <%= %> tags, it goes a little whacky:</p>
<pre><code><cc:CustomControl ID="CustomControl" runat="server" Property1='<%= MyProperty %>' />
<%= My... | [
{
"answer_id": 226483,
"author": "Brannon",
"author_id": 5745,
"author_profile": "https://Stackoverflow.com/users/5745",
"pm_score": 3,
"selected": true,
"text": "OnInit MyProperty OnInit <cc:CustomControl ID=\"CustomControl\" runat=\"server\" Property1='<%# MyProperty %>' />\n DataBind(... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
226,442 | <p>I've been reading up on this subject for a while. Suddenly the day has come where this solution is a necessity, not just a dream.</p>
<p>Through my reading, I've seen the popular differences being (file based, memcached, shared memory (mm), sql table, and custom).</p>
<p>The original idea we thought of was using a... | [
{
"answer_id": 226523,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 0,
"selected": false,
"text": "$options = array('memcache' => $memcache);\n $memcache"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226442",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14363/"
] |
226,445 | <p>As every Haxe developer knows, you could use <code>haxe.Timer.delayed()</code> to delay function call for some time. But this function doesn't exist for Neko at all. Is there a way to achieve the same results?</p>
| [
{
"answer_id": 226489,
"author": "vava",
"author_id": 6258,
"author_profile": "https://Stackoverflow.com/users/6258",
"pm_score": 3,
"selected": true,
"text": "function delayed(f, time) {\n neko.vm.Thread.create(function() {\n neko.Sys.sleep(time);\n f();\n });\n}\n"
},... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6258/"
] |
226,455 | <p>Someone at work just asked for the reasoning behind having to wrap a wait inside a synchronized.</p>
<p>Honestly I can't see the reasoning. I understand what the javadocs say--that the thread needs to be the owner of the object's monitor, but why? What problems does it prevent? (And if it's actually necessary, w... | [
{
"answer_id": 226479,
"author": "64BitBob",
"author_id": 16339,
"author_profile": "https://Stackoverflow.com/users/16339",
"pm_score": 4,
"selected": true,
"text": "public void doStuffOnThisObject()\n public void wait()\n"
},
{
"answer_id": 226644,
"author": "Lou Franco",
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12943/"
] |
226,460 | <p>I am trying to write a query for SQL Server 2005 but I can't figure out how to do it. I have a table with the following fields:</p>
<p><strong>MessageID int<br/>
CategoryID int<br/>
Priority tinyint<br/>
MessageText NVARCHAR(MAX)<br/></strong></p>
<p>I need a query that will return * for each row that has the hig... | [
{
"answer_id": 226490,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": 1,
"selected": false,
"text": "SELECT\n M.MessageId,\n M.CategoryId,\n M.Priority,\n M.MessageText\nFROM \n(\n SELECT \n Ca... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14101/"
] |
226,464 | <p>How do you solve the problem with soft hyphens on your web pages? In a text there can be long words which you might want to line break with a hyphen. But you do not want the hyphen to show if the whole word is on the same line.</p>
<p>According to comments on <a href="http://www.thefutureoftheweb.com/blog/breaking-... | [
{
"answer_id": 227284,
"author": "Marco",
"author_id": 30480,
"author_profile": "https://Stackoverflow.com/users/30480",
"pm_score": 8,
"selected": true,
"text": "­ ­"
},
{
"answer_id": 2091298,
"author": "anthonyv",
"author_id": 252895,
"author_profile": "http... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5392/"
] |
226,465 | <p>Here's a silly fun question:</p>
<p>Let's say we have to perform a simple operation where we need half of the value of a variable. There are <em>typically</em> two ways of doing this:</p>
<pre><code>y = x / 2.0;
// or...
y = x * 0.5;
</code></pre>
<p>Assuming we're using the standard operators provided with the l... | [
{
"answer_id": 226502,
"author": "sbeskur",
"author_id": 10446,
"author_profile": "https://Stackoverflow.com/users/10446",
"pm_score": 2,
"selected": false,
"text": " int y = 10;\n y = y >> 1;\n Console.WriteLine(\"value halved: \" + y);\n y = y << 1;\n Console.WriteLine(\... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20494/"
] |
226,473 | <p>I'm betting that someone has already solved this and maybe I'm using the wrong search terms for google to tell me the answer, but here is my situation.</p>
<p>I have a script that I want to run, but I want it to run only when scheduled and only one at a time. (can't run the script simultaneously) </p>
<p>Now the... | [
{
"answer_id": 226661,
"author": "Piskvor left the building",
"author_id": 19746,
"author_profile": "https://Stackoverflow.com/users/19746",
"pm_score": 3,
"selected": true,
"text": "exec_status myhappytable time_started time_finished [create/check pid lock (optional, but see \"A potenti... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30413/"
] |
226,505 | <p>I have the following regex that does a great job matching urls: </p>
<pre><code>((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)`
</code></pre>
<p>However, it does not handle urls without a prefix, ie. <strong>stackoverflow.com</strong> or <strong>www.google.com</stron... | [
{
"answer_id": 226556,
"author": "Douglas Leeder",
"author_id": 3978,
"author_profile": "https://Stackoverflow.com/users/3978",
"pm_score": -1,
"selected": false,
"text": ".*\n"
},
{
"answer_id": 226573,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25515/"
] |
226,510 | <p>Say I have a form like:</p>
<pre><code>class GeneralForm(forms.Form):
field1 = forms.IntegerField(required=False)
field2 = forms. IntegerField(required=False)
</code></pre>
<p>And I want to show it twice on a page within one form tag each time with a different prefix e.g.,:</p>
<pre><code>rest of page ...... | [
{
"answer_id": 226568,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_profile": "https://Stackoverflow.com/users/6760",
"pm_score": 6,
"selected": true,
"text": "def some_view(request):\n if request.method == 'POST':\n form1 = GeneralForm(request.POST, prefix='form1')\n... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13009/"
] |
226,514 | <p>I seem to remember reading that it's possible to declare taglib directives such as:</p>
<pre><code><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
</code></pre>
<p>in web.xml. This eliminates the need to duplicate this directive in every JSP file where the taglib is used. Could someone tell ... | [
{
"answer_id": 228430,
"author": "Athena",
"author_id": 17846,
"author_profile": "https://Stackoverflow.com/users/17846",
"pm_score": 6,
"selected": true,
"text": "taglib taglib taglib <%@ taglib prefix=\"c\" uri=\"http://java.sun.com/jsp/jstl/core\" %>\n <%@ taglib prefix=\"ex\" uri=\"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
226,528 | <p>In Django templates, is there a variable in the context (e.g. <code>{{ BASE\_URL }}</code>, <code>{{ ROOT\_URL }}</code>, or <code>{{ MEDIA\_URL }}</code> that one can use to link to the <code>home</code> url of a project?</p>
<p>I.e. if Django is running in the root of a project, the variable (let's call it R) <co... | [
{
"answer_id": 226536,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 4,
"selected": false,
"text": "<a href=\"/\"> /"
},
{
"answer_id": 226540,
"author": "Jonny Buchanan",
"author_id": 6760,
"author_prof... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19212/"
] |
226,555 | <p>I am trying to make a view slide from top to bottom. This is not a big deal, I used <code>CABasicAnimation</code> for this. The problem is when I want to remove the view. I use this animation.</p>
<pre><code>CABasicAnimation *animation;
animation = [CABasicAnimation animationWithKeyPath:@"position"];
[animation set... | [
{
"answer_id": 226645,
"author": "Rob Drimmie",
"author_id": 24213,
"author_profile": "https://Stackoverflow.com/users/24213",
"pm_score": -1,
"selected": false,
"text": "self.view.hidden = YES;\n [self.view setHidden:YES];\n"
},
{
"answer_id": 226707,
"author": "danimal",
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29642/"
] |
226,562 | <p>I am not very good with Regex but I am learning.</p>
<p>I would like to remove some html tag by the class name. This is what I have so far :</p>
<pre><code><div class="footer".*?>(.*?)</div>
</code></pre>
<p>The first .*? is because it might contain other attribute and the second is it might co... | [
{
"answer_id": 226583,
"author": "Hamish Downer",
"author_id": 3189,
"author_profile": "https://Stackoverflow.com/users/3189",
"pm_score": 0,
"selected": false,
"text": "<div class=\\\"footer\\\".*?>(.*?)<\\/div>\n"
},
{
"answer_id": 226586,
"author": "Nick",
"author_id":... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
226,565 | <p>I've been spoiled by Visual studio 2008 and Eclipse and have to do a little maintainence work on a VB6 app.</p>
<p>Does anyone know of an alternative/ updated IDE for VB6?</p>
<p>A rewrite is not an option I'm just fixing a couple of bugs and it's a big codebase.</p>
| [
{
"answer_id": 232476,
"author": "jussij",
"author_id": 14738,
"author_profile": "https://Stackoverflow.com/users/14738",
"pm_score": 3,
"selected": false,
"text": "set PATH=\"d:\\Program Files\\Microsoft Visual Studio\\VB98\\\";%PATH%\nvb6.exe /out ErrorFile.txt /make MyProject.vbp\n"
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
226,577 | <p>Strange program hang, what does this mean in debug?</p>
<p>After attaching windbg I found the following:</p>
<pre>
(1714.258): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=015b5c74 ebx=178a13e0 ec... | [
{
"answer_id": 226659,
"author": "MSN",
"author_id": 6210,
"author_profile": "https://Stackoverflow.com/users/6210",
"pm_score": 3,
"selected": false,
"text": "0xdddddddd 0xdd"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
226,596 | <p>What's the best way to initialize an array in PowerShell?</p>
<p>For example, the code</p>
<pre><code>$array = @()
for($i=0; $i -lt 5;$i++)
{
$array[$i] = $FALSE
}
</code></pre>
<p>generates the error</p>
<pre><code>Array assignment failed because index '0' was out of range.
At H:\Software\PowerShell\TestArr... | [
{
"answer_id": 226600,
"author": "Eric Ness",
"author_id": 18891,
"author_profile": "https://Stackoverflow.com/users/18891",
"pm_score": 3,
"selected": false,
"text": "$array = new-object object[] 5 \nfor($i=0; $i -lt $array.Length;$i++)\n{\n $array[$i] = $FALSE\n}\n"
},
{
"an... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18891/"
] |
226,599 | <p>So I have xml that looks like this:
</p>
<pre class="lang-html prettyprint-override"><code><todo-list>
<id type="integer">#{id}</id>
<name>#{name}</name>
<description>#{description}</description>
<project-id type="integer">#{project_id}</project-id>
&l... | [
{
"answer_id": 226614,
"author": "Steve Horn",
"author_id": 10589,
"author_profile": "https://Stackoverflow.com/users/10589",
"pm_score": 5,
"selected": false,
"text": "xsd.exe \"%xsdFile%\" /c /out:\"%outDirectory%\" /l:\"%language%\"\n public GeneratedClassFromXSD GetObjectFromXML()\n{... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9401/"
] |
226,618 | <p>How can I transform a time value into YYYY-MM-DD format in Java?</p>
<pre><code>long lastmodified = file.lastModified();
String lasmod = /*TODO: Transform it to this format YYYY-MM-DD*/
</code></pre>
| [
{
"answer_id": 226638,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 6,
"selected": true,
"text": "Date lm = new Date(lastmodified);\nString lasmod = new SimpleDateFormat(\"yyyy-MM-dd\").format(lm);\n"
},
{
"answer_i... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
226,637 | <p>On a page from a website (one of ours) I can enter in the url the following code:</p>
<pre><code>javascript:createNewWindow('Something', 100, 100, 'Text')
</code></pre>
<p>Is there a way someone can exploit this?</p>
<pre><code>function createNewWindow(url, widthIn, heightIn, title)
{
var str... | [
{
"answer_id": 226882,
"author": "Joseph Bui",
"author_id": 3275,
"author_profile": "https://Stackoverflow.com/users/3275",
"pm_score": 1,
"selected": false,
"text": "javascript:createNewWindow('Something', 100, 100, 'Text')\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2357/"
] |
226,655 | <p>Website started life originally under IIS 6 and the site worked great there. Now after relocating to a new server running W2K8S, everything but mail delivery from the website now works great under IIS 7.</p>
<p>Researched briefly on the Web to see if anybody had a good resolution, but no avail... Not even a glimmer... | [
{
"answer_id": 5414585,
"author": "john",
"author_id": 674269,
"author_profile": "https://Stackoverflow.com/users/674269",
"pm_score": 1,
"selected": false,
"text": "SmtpClient client = new SmtpClient(\"smtp.gmail.com\", 587);\nclient.DeliveryMethod = SmtpDeliveryMethod.Network;\nclient.... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30432/"
] |
226,663 | <p>I want to use jQuery to parse RSS feeds. Can this be done with the base jQuery library out of the box or will I need to use a plugin?</p>
| [
{
"answer_id": 226679,
"author": "Nathan Strutz",
"author_id": 5918,
"author_profile": "https://Stackoverflow.com/users/5918",
"pm_score": 8,
"selected": false,
"text": "jQuery.getFeed({\n url: 'rss.xml',\n success: function(feed) {\n alert(feed.title);\n }\n});\n"
},
{
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12442/"
] |
226,664 | <p>I have a web service in C# and would like to have a nested inner class, that abstracts away the session collection, something like this: </p>
<pre>
<code>
public class Service : System.Web.Services.WebService
{
[WebMethod]
public string Foo(string ticket)
{
SessionPool.getSession(ticket);
}
... | [
{
"answer_id": 226670,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 0,
"selected": false,
"text": "System.Web.HttpContext.Current\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
226,683 | <p>I've got a ant <code>build.xml</code> that uses the <code><copy></code> task to copy a variety of xml files. It uses filtering to merge in properties from a <code>build.properties</code> file. Each environment (dev, stage, prod) has a different <code>build.properties</code> that stores configuration for that... | [
{
"answer_id": 226731,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 2,
"selected": false,
"text": "<property file=\"${filter.file}\" prefix=\"filter\"> fail <exec> <exec command=\"grep \\\"@\\\" ${build.dir} | wc -l\" output... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25198/"
] |
226,689 | <p>I'm writing a GreaseMonkey script where I'm iterating through a bunch of elements. For each element, I need a string ID that I can use to reference that element later. The element itself doesn't have an <code>id</code> attribute, and I can't modify the original document to give it one (although I can make DOM change... | [
{
"answer_id": 226715,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 0,
"selected": false,
"text": "if(node.id) {\n node.myId = node.id;\n} else {\n node.myId = createId();\n}\n\n// store myId\n document.getElementById()"
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4287/"
] |
226,691 | <p>I have a requirement to export the results of a SQL query to excel. I am currently exporting it into 2007 format, but everything I have found will only run in a x86 enviroment. The web site where the export is to take place is running on a x64 version of IIS.</p>
<p>Changing IIS to run x86 is not an option. My curr... | [
{
"answer_id": 226802,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 0,
"selected": false,
"text": "<html><body>\n<table>\n<tr><td>First column</td><td>Second column</td></tr>\n<tr><td>Value of first row in first column</td><... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
226,693 | <p>I was running some dynamic programming code (trying to brute-force disprove the Collatz conjecture =P) and I was using a dict to store the lengths of the chains I had already computed. Obviously, it ran out of memory at some point. Is there any easy way to use some variant of a <code>dict</code> which will page part... | [
{
"answer_id": 226803,
"author": "Charles Duffy",
"author_id": 14122,
"author_profile": "https://Stackoverflow.com/users/14122",
"pm_score": 3,
"selected": false,
"text": "__getitem__ __setitem__"
},
{
"answer_id": 228333,
"author": "John Fouhy",
"author_id": 15154,
"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
226,701 | <p>QA tester was reading HTML/JS code to write a functional test of a web form, and saw:</p>
<pre><code>if (form_field == empty)
{
...do stuff for empty field
}
else if (form_field != empty)
{
...do stuff for non-empty field
}
else
{
...do stuff that will never be done
}
</code></pre>
<p>After a couple embarrassing a... | [
{
"answer_id": 226732,
"author": "Orion Adrian",
"author_id": 7756,
"author_profile": "https://Stackoverflow.com/users/7756",
"pm_score": 0,
"selected": false,
"text": "if (a)\n //1\nelse if (!a)\n //2\nelse\n //3\n if (a)\n //1\nelse\n //2\n"
},
{
"answer_id": 226740,
"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2910/"
] |
226,703 | <p>I want to pause input in a shell script, and prompt the user for choices.<br>
The standard <code>Yes</code>, <code>No</code>, or <code>Cancel</code> type question.<br>
How do I accomplish this in a typical bash prompt?</p>
| [
{
"answer_id": 226720,
"author": "Pistos",
"author_id": 28558,
"author_profile": "https://Stackoverflow.com/users/28558",
"pm_score": 8,
"selected": false,
"text": "echo \"Please enter some input: \"\nread input_variable\necho \"You entered: $input_variable\"\n"
},
{
"answer_id":... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9084/"
] |
226,717 | <p>When you are monitoring the TFS build from Visual Studio (2008 or 2005), you can see where it is up to.</p>
<p>The issue is that I have some Post-Build custom steps I would like the developer to be able to see directly throught the UI. Those steps take some times and we can also get a "timing" of the build step.</p... | [
{
"answer_id": 227063,
"author": "Martin Woodward",
"author_id": 6438,
"author_profile": "https://Stackoverflow.com/users/6438",
"pm_score": 4,
"selected": true,
"text": " <Target Name=\"PackageBinaries\">\n\n <!-- create the build step -->\n <BuildStep TeamFoundationServerUrl=\"$... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24975/"
] |
226,721 | <p>I have a struts2 application with a single page that may show one of a number of values stored in a database. The application is for a school with many departments and each department has many programs. The department page is accessed using a url like this</p>
<pre><code>department.action?id=2
</code></pre>
<p>and... | [
{
"answer_id": 226827,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 2,
"selected": true,
"text": "Map getPathInfo() null /departments/"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27439/"
] |
226,743 | <p>I am using the webbrowser control in visual studio. I think it is a wrapper around internet explorer. Anyway all is going well I am using it in edit mode however I can't get he document's keydown event to fire (in order to catch ctrl+v) anyone had similar problems with it?</p>
<p>Anyone have a solution?</p>
| [
{
"answer_id": 226794,
"author": "sbeskur",
"author_id": 10446,
"author_profile": "https://Stackoverflow.com/users/10446",
"pm_score": 3,
"selected": true,
"text": " webBrowser1.PreviewKeyDown += new PreviewKeyDownEventHandler(webBrowser1_PreviewKeyDown); \n\n....\n\n private void ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
226,750 | <p>For example, Convert.ToDouble("0.1234567890123456789") = 0.123456789012346</p>
<p>What is the maximum number of significant figures? Couldn't find it in the docs.</p>
| [
{
"answer_id": 226762,
"author": "Kip",
"author_id": 18511,
"author_profile": "https://Stackoverflow.com/users/18511",
"pm_score": 2,
"selected": false,
"text": "sign * 1.mantissa * 2^(exponent - bias)"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1042/"
] |
226,784 | <p>I have downloaded Privoxy few weeks ago and for the fun I was curious to know how a simple version of it can be done.</p>
<p>I understand that I need to configure the browser (client) to send request to the proxy. The proxy send the request to the web (let say it's a http proxy). The proxy will receive the answer...... | [
{
"answer_id": 226795,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 6,
"selected": true,
"text": "HttpListener HttpWebRequest"
},
{
"answer_id": 806378,
"author": "Vadym Stetsiak",
"author_id": 6952,
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
226,785 | <p>We have a netbeans project that has an xsd that we use to create a wsdl and we use the wsdl to create a webservice. Since we are using types in our xsd jaxb is used and one of our webservice methods looks like this: </p>
<pre><code>public void someMethod( org.netbeans.xml.schema.line.Line x )...
</code></pre>
... | [
{
"answer_id": 226795,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 6,
"selected": true,
"text": "HttpListener HttpWebRequest"
},
{
"answer_id": 806378,
"author": "Vadym Stetsiak",
"author_id": 6952,
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22763/"
] |
226,828 | <p>After discussing with a newly arrived developer in my team, I realized that there are still, in C++, habits of using C constructs because they are supposed to be better (i.e. faster, leaner, prettier, pick your reason).</p>
<p><strong>What are the examples worth sharing, showing a C constructs, compared to the simi... | [
{
"answer_id": 226833,
"author": "paercebal",
"author_id": 14089,
"author_profile": "https://Stackoverflow.com/users/14089",
"pm_score": 3,
"selected": false,
"text": "// C-like code in C++\nstruct CRect\n{\n int x ;\n int y ;\n} ;\n\nvoid doSomething()\n{\n CRect r0 ; ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14089/"
] |
226,831 | <p>I'd like to make anchors to every post in my asp.net forum. Every forum's post is rendered using repeater control. How can I render <code><a name="anchor_name"></a></code> in asp.net?</p>
| [
{
"answer_id": 226838,
"author": "Travis Collins",
"author_id": 30460,
"author_profile": "https://Stackoverflow.com/users/30460",
"pm_score": 4,
"selected": true,
"text": "<a name='<%# Eval(\"PostId\") %>' />\n"
},
{
"answer_id": 226841,
"author": "mspmsp",
"author_id": 2... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3182/"
] |
226,834 | <p>I'm working on a C++ prettyprinter and would like to show the results of the prettyprinter by comparing code before and after running it. Does anyone know where I can find some ugly C++ code to run through the prettypretty? Ideally the code would come from some open source software.</p>
| [
{
"answer_id": 227163,
"author": "fizzer",
"author_id": 18167,
"author_profile": "https://Stackoverflow.com/users/18167",
"pm_score": 4,
"selected": false,
"text": " if (x < foo (y, z))\n haha = bar[4] + 5;\n else\n {\n while (z)\n {\n haha += foo (z, z);\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
226,847 | <p>I want to create a simple bit of JS code that creates an image element in the background and doesn't display anything. The image element will call a tracking URL (such as Omniture) and needs to be simple and robust and work in IE 6 =< only. Here is the code I have:</p>
<pre><code>var oImg = document.createElem... | [
{
"answer_id": 226856,
"author": "swilliams",
"author_id": 736,
"author_profile": "https://Stackoverflow.com/users/736",
"pm_score": 2,
"selected": false,
"text": "var elem = new Element('img', { 'class': 'foo', src: 'pic.jpg', alt: 'alternate text' });\n$(document).insert(elem);\n"
},... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3004/"
] |
226,894 | <p>When you use the PHP <a href="http://us2.php.net/manual/en/function.copy.php" rel="noreferrer">copy</a> function, the operation blindly copies over the destination file, even if it already exists. How do you copy a file safely, only performing the copy if there is no existing file?</p>
| [
{
"answer_id": 226906,
"author": "Douglas Mayle",
"author_id": 8458,
"author_profile": "https://Stackoverflow.com/users/8458",
"pm_score": 4,
"selected": true,
"text": "// The PHP copy function blindly copies over existing files. We don't wish\n// this to happen, so we have to perform t... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8458/"
] |
226,896 | <p>I am currently trying to create an Exception handler built into my windows service that, on an unhandled exception, sends a message to another program. I have built the method and gotten the communication working, but it seems that every time my program throws the error, (I have a raise call in the code to force it... | [
{
"answer_id": 227079,
"author": "gabr",
"author_id": 4997,
"author_profile": "https://Stackoverflow.com/users/4997",
"pm_score": 0,
"selected": false,
"text": "begin\n WriteLn('Starting');\n try\n ExceptProc := @ExceptionHandler;\n Unhandled;\n finally Readln; end;\nend.\n"
}... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16059/"
] |
226,899 | <p>I've got a reasonably simple query (this time) that I need ALL the results back from (I'm storing them in an Excel spreadsheet). The query itself times out the server, so how do I go about running it without that happening?</p>
| [
{
"answer_id": 226957,
"author": "Nick Van Brunt",
"author_id": 30470,
"author_profile": "https://Stackoverflow.com/users/30470",
"pm_score": 1,
"selected": false,
"text": "<cfsetting \nenableCFoutputOnly = \"yes|no\" \nrequestTimeOut = \"value in seconds\"\nshowDebugOutput = \"yes|no\" ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16631/"
] |
226,905 | <p>I cannot get the internet explorer web developer tool bar to work with a pop-up, it won't render at the bottom of the pop-up. Any suggestions? </p>
| [
{
"answer_id": 12267176,
"author": "moloko",
"author_id": 1646700,
"author_profile": "https://Stackoverflow.com/users/1646700",
"pm_score": 3,
"selected": false,
"text": "unpin"
},
{
"answer_id": 22496042,
"author": "Leniel Maccaferri",
"author_id": 114029,
"author_pr... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/700/"
] |
226,910 | <p>I find it curious that the most obvious way to create <code>Date</code> objects in Java has been deprecated and appears to have been "substituted" with a not so obvious to use lenient calendar.</p>
<p>How do you check that a date, given as a combination of day, month, and year, is a valid date?</p>
<p>For instance... | [
{
"answer_id": 226920,
"author": "AdamC",
"author_id": 16476,
"author_profile": "https://Stackoverflow.com/users/16476",
"pm_score": 6,
"selected": true,
"text": "Calendar cal = Calendar.getInstance();\ncal.setLenient(false);\ncal.setTime(yourDate);\ntry {\n cal.getTime();\n}\ncatch (... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26595/"
] |
226,935 | <p>I came across a code snippet like this:</p>
<p><code>Timestamp expiryDate = Timestamp.valueOf(dateStr + " " + "23:59:59.000"); </code></p>
<p>Here dateStr is a string entered by the user in a form, in the format yyyy-mm-dd. Now the behavior of Timestamp.valueOf is such that it converts non-existent dates into appr... | [
{
"answer_id": 69889085,
"author": "Arvind Kumar Avinash",
"author_id": 10819573,
"author_profile": "https://Stackoverflow.com/users/10819573",
"pm_score": 1,
"selected": false,
"text": "java.util SimpleDateFormat java.sql.Timestamp java.util.Date java.time DateTimeFormatter ResolverStyl... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27474/"
] |
226,939 | <p>I've been working with code synthesis xsd to generate an xml tree to ensure constinency of the xml output to the original xsd.</p>
<p>After initial testing, everything looked ok but when I tried entering invalid values (correct type, but outside the defined range), the values were allowed.</p>
<p>Although the xml ... | [
{
"answer_id": 69889085,
"author": "Arvind Kumar Avinash",
"author_id": 10819573,
"author_profile": "https://Stackoverflow.com/users/10819573",
"pm_score": 1,
"selected": false,
"text": "java.util SimpleDateFormat java.sql.Timestamp java.util.Date java.time DateTimeFormatter ResolverStyl... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23553/"
] |
226,953 | <p>If I have hundreds/thousands of client computers WCP'ing to my server, should I respond with a '200 OK' type message stating that I received the data and stored it in the db successfully?</p>
<p>Is this already built-into WCF?</p>
| [
{
"answer_id": 228116,
"author": "David Hall",
"author_id": 2660,
"author_profile": "https://Stackoverflow.com/users/2660",
"pm_score": 4,
"selected": false,
"text": "InstanceContext [ServiceContract]\ninterface IMyServiceContract\n{\n [OperationContract] \n void DoSomeThing(... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
226,970 | <blockquote>
<p>This question has been preserved for historical reasons, but it is not
considered on-topic, so don't use it as an excuse to post something
similar.</p>
<p>More info at <a href="https://stackoverflow.com/faq">https://stackoverflow.com/faq</a>.</p>
</blockquote>
<hr>
<p>For me to read code an... | [
{
"answer_id": 227660,
"author": "Kevin Little",
"author_id": 14028,
"author_profile": "https://Stackoverflow.com/users/14028",
"pm_score": 4,
"selected": false,
"text": ". . . . . . . . . .\n. . . . S . . . . .\n. . * . . . . * . .\n. . . . . . . . . *\n. * . . . * . . . .\n. . . . . . ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28722/"
] |
226,976 | <p>I have a git repository with multiple branches. </p>
<p>How can I know which branches are already merged into the master branch?</p>
| [
{
"answer_id": 226993,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 7,
"selected": false,
"text": "git merge-base git branch -d"
},
{
"answer_id": 227026,
"author": "hectorsq",
"author_id": 14755,
"au... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14755/"
] |
226,977 | <p>I can't seem to grok the concept of "loose coupling." I suppose it doesn't help that the word "loose" usually has a negative connotation, so I always forget that loose coupling is a <em>good</em> thing.</p>
<p>Will somebody please show some "before" and "after" code (or pseudocode) that illustrates this concept?</p... | [
{
"answer_id": 227023,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 5,
"selected": false,
"text": "ArrayList<String> myList = new ArrayList<String>();\n List<String> myList = new ArrayList<String>();\n myList"
},
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30454/"
] |
226,978 | <p>What is the best way to sync up two lists each of which may contain items not in the other? As shown the lists are not sorted - although if necessary sorting them first would not be an issue.</p>
<pre><code>List 1 = a,b,c,e
List 2 = b,e,c,d
</code></pre>
<p>Using the lists above, I'm looking for a solution that w... | [
{
"answer_id": 227292,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 2,
"selected": false,
"text": "Const adVarChar = 200 'the SQL datatype is varchar\n\n'Create arrays fron the lists\nasL1 = Split(\"a,b,c,\", \",\")\nasL... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30473/"
] |
226,980 | <p>I have a Google Map that suddenly stopped working for no apparent reason (I hadn't touched the code for months, but the wrapper code from our CMS may have changed without Corporate telling me).</p>
<p><a href="http://www.democratandchronicle.com/section/builder" rel="nofollow noreferrer">http://www.democratandchron... | [
{
"answer_id": 227397,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 0,
"selected": false,
"text": "GEvent.addListener(marker, 'click', function() {\nmarker.openInfoWindowHtml(html+'', { maxWidth: 500 })... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1902010/"
] |
226,981 | <p>I have an <code>IList<T></code> that I need to sort, and I would rather not copy the list if possible. I've noticed that <code>ArrayList</code> has an <code>Adapter</code> static method that wraps the passed list without copying it, but this takes an <code>IList</code> and I have an <code>IList<T></code... | [
{
"answer_id": 226992,
"author": "Mike C.",
"author_id": 3799,
"author_profile": "https://Stackoverflow.com/users/3799",
"pm_score": 5,
"selected": true,
"text": "public class LanguageDto : IComparable {\n private String name;\n public string Name { get { return name; } set { name = valu... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9323/"
] |
226,986 | <p>I've used several apps now that launch the itunes store directly from the app. I'm even using some on my 2.1 iPod 2G.</p>
<p>I know there's a bug in 2.1 that prevents appstore links from working in safari, but somehow people are launching the appstore directly, not even through safari.</p>
<p>How do you do this? I... | [
{
"answer_id": 227343,
"author": "Marco",
"author_id": 30480,
"author_profile": "https://Stackoverflow.com/users/30480",
"pm_score": 3,
"selected": false,
"text": "UIApplication openURL"
},
{
"answer_id": 1374791,
"author": "epatel",
"author_id": 842,
"author_profile"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8597/"
] |
227,005 | <p>If I have two UIColors, what's the best way to draw an even gradient between them over an arbitrarily-sized area?</p>
<p>I am guessing you would create a UIView subclass and use the CG drawing methods in the drawRect method. I just don't know which ones, or if there are any pitfalls to watch out for, like performan... | [
{
"answer_id": 15302226,
"author": "Anton Chikin",
"author_id": 435680,
"author_profile": "https://Stackoverflow.com/users/435680",
"pm_score": 6,
"selected": false,
"text": "#import <QuartzCore/QuartzCore.h> \n- (void) setGradient {\n CAGradientLayer *gradient = [CAGradientLayer l... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227005",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/544/"
] |
227,007 | <p>In Java, given a timestamp, how to reset the time part alone to 00:00:00 so that the timestamp represents the midnight of that particular day ?</p>
<p>In T-SQL, this query will do to achieve the same, but I don't know how to do this in Java.</p>
<p><code>SELECT CAST( FLOOR( CAST(GETDATE() AS FLOAT ) ) AS DATETIME)... | [
{
"answer_id": 227044,
"author": "thoroughly",
"author_id": 8943,
"author_profile": "https://Stackoverflow.com/users/8943",
"pm_score": 3,
"selected": false,
"text": "public static Date stripTimePortion(Date timestamp) {\n long msInDay = 1000 * 60 * 60 * 24; // Number of milliseconds ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27474/"
] |
227,022 | <p>I would like to check my JavaScript files without going to <a href="http://www.jslint.com/" rel="noreferrer">JSLint</a> web site.<br>
Is there a desktop version of this tool for Windows?</p>
| [
{
"answer_id": 2466261,
"author": "Cheeso",
"author_id": 48082,
"author_profile": "https://Stackoverflow.com/users/48082",
"pm_score": 2,
"selected": false,
"text": " (function(){if(!JSLINT(WScript.StdIn.ReadAll(),.....\n (function(){\n var filename = \"stdin\";\n var content= \"\"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28098/"
] |
227,037 | <p>I have two tables Institutions and Results and I want to see if there are any results for institutions that way I can exclude the ones that don't have results.</p>
<p>Can I get better performance using a JOIN or using EXISTS?</p>
<p>Thank you,<br>
-Nimesh</p>
| [
{
"answer_id": 227067,
"author": "BrynJ",
"author_id": 29538,
"author_profile": "https://Stackoverflow.com/users/29538",
"pm_score": 0,
"selected": false,
"text": "SELECT t1.* FROM table1 t1 LEFT OUTER JOIN table2 t2 ON t1.id = t2.id WHERE t2.id IS NULL\n"
},
{
"answer_id": 22707... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
227,064 | <p>I am wondering what server control people generally use for surrounding and separating blocks of related controls and content in a Web Forms scenario. Often times I need to surround a block of HTML and related Server controls with a 'panel' that I can show or hide based upon some UI logic in the code behind. I am ... | [
{
"answer_id": 227082,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 0,
"selected": false,
"text": "<table>\n <tr>\n ....\n </tr>\n\n <% if( ShowSecretRow ) { %>\n\n <tr>\n <td>shhh!</td>\n </tr>\n\n <% } ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2218/"
] |
227,066 | <p>I typically use extension methods very sparingly. When I do feel compelled to write an extension method, I sometimes want to overload the method. My question is, what are your thoughts on extension methods calling other extension methods? Bad practice? It feels wrong, but I can't really define why.</p>
<p>For examp... | [
{
"answer_id": 227106,
"author": "Marcus Griep",
"author_id": 28645,
"author_profile": "https://Stackoverflow.com/users/28645",
"pm_score": 4,
"selected": true,
"text": "extended.ExtensionMethod(foo);\n StaticType.ExtensionMethod(extended, foo);\n"
},
{
"answer_id": 227107,
"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11574/"
] |
227,078 | <p>I'd love to create a "back" left-arrow-bezel button in a <code>UIToolbar</code>.</p>
<p>As far as I can tell, the only way to get one of these is to leave <code>UINavigationController</code> at default settings and it uses one for the left bar item. But there's no way I can find to create one as a <code>UIBarButton... | [
{
"answer_id": 227135,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 0,
"selected": false,
"text": "[UIImage stretchableImageWithLeftCapWidth:topCapHeight:]"
},
{
"answer_id": 574863,
"author": "PyjamaSam",
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30480/"
] |
227,081 | <p>I have ListView with Grouping Items. Grouping uses custom GroupStyle (Expander). I would like to have check box which will Expand and collapse all groups when. It works fine untill I click manually on the group header and expand or collapse that group. After clicking that particular group stops to respond on che... | [
{
"answer_id": 230107,
"author": "Vlad Bezden",
"author_id": 30038,
"author_profile": "https://Stackoverflow.com/users/30038",
"pm_score": 3,
"selected": true,
"text": "<Window xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'\n xmlns:x='http://schemas.microsoft.co... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30038/"
] |
227,083 | <p>I'm wonder what the best way to convert a byte array (length 4) to an integer is in vb.net? I'm aware of BitConverter, but it seems like quite a waste to do a function call to do something that should be able to be done by copying 4 bytes of memory. Along the same lines, what about converting a single/double from i... | [
{
"answer_id": 227123,
"author": "mdb",
"author_id": 8562,
"author_profile": "https://Stackoverflow.com/users/8562",
"pm_score": 5,
"selected": true,
"text": "myInt = (*pbyte) | (*(pbyte + 1) << 8) | (*(pbyte + 2) << 16) | (*(pbyte + 3) << 24);\n"
},
{
"answer_id": 227166,
"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1862/"
] |
227,101 | <p>I have somewhat of a staging server on the public internet running copies of the production code for a few websites. I'd really not like it if the staging sites get indexed. </p>
<p>Is there a way I can modify my httpd.conf on the staging server to block search engine crawlers? </p>
<p>Changing the robots.txt wo... | [
{
"answer_id": 1278647,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<IfModule mod_rewrite.c>\n RewriteEngine on\n\n # Dissuade web spiders from crawling the staging site\n RewriteCond %{HTTP... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24988/"
] |
227,121 | <p>Is there a way to cast a user control as a specific user control so I have access to it's public properties? Basicly I'm foreaching through a placeholder's controls collection and I'm trying to access the user control's public properties.</p>
<pre><code>foreach(UserControl uc in plhMediaBuys.Controls)
{
uc.Pulb... | [
{
"answer_id": 227127,
"author": "Kon",
"author_id": 22303,
"author_profile": "https://Stackoverflow.com/users/22303",
"pm_score": 3,
"selected": false,
"text": "foreach(UserControl uc in plhMediaBuys.Controls)\n{\n if (uc is MySpecificType)\n {\n return (uc as MySpecificType).Pulbl... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18785/"
] |
227,129 | <p>I am trying to dynamically load the contents of a div tag with a .cfm page that contains a cfchart in png format. When the user clicks on a link, I am using the load function to put the .cfm page into the div.</p>
<pre><code>$("#bank").bind("click", function(){
$("#chartx").load("bank.cfm");
});
</code></pre>
... | [
{
"answer_id": 227178,
"author": "Wyatt",
"author_id": 26626,
"author_profile": "https://Stackoverflow.com/users/26626",
"pm_score": 0,
"selected": false,
"text": "$(\"#bank\").bind(\"click\", function(){\n $.get(\"bank.cfm\", function(data){\n $(\"#chartx\").html(data);\n }... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30485/"
] |
227,132 | <p>Is it possible to use the asp templating engine (With the partial code-behind class, dynamic <% ... %> blocks and such) to generate non HTML? I want to have a clean and maintainable way to generate code dynamically. (Specifically, I want to generate LaTeX code populated with values from a database.) </p>
<p>Curr... | [
{
"answer_id": 227203,
"author": "Maxime Rouiller",
"author_id": 24975,
"author_profile": "https://Stackoverflow.com/users/24975",
"pm_score": 4,
"selected": true,
"text": "public override bool Execute()\n{\n bool success = false;\n\n //read in the template:\n string template = ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26626/"
] |
227,140 | <p>I have need to write an application which uses a speech recognition engine -- either the built in vista one, or a third party one -- that can display a word or phrase, and recognise when the user reads it (or an approximation of it). I also need to be able to switch quickly between languages, without changing the l... | [
{
"answer_id": 227217,
"author": "Ryan Lundy",
"author_id": 5486,
"author_profile": "https://Stackoverflow.com/users/5486",
"pm_score": 6,
"selected": false,
"text": "public partial class Form1 : Form\n{\n SpeechRecognizer rec = new SpeechRecognizer();\n\n public Form1()\n {\n Init... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6389/"
] |
227,143 | <p>What is <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/Component.html#getName%28%29" rel="noreferrer"><code>java.awt.Component.getName()</code></a> used for? It always seems to be <code>null</code> in the applications I build with NetBeans. I'm thinking of storing some help text per component in it -- ... | [
{
"answer_id": 1143865,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "component.getName() component.setName(name) Listener public void someMethodOfsomeListener(SomeEvent e){\n if (e.getComponen... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9648/"
] |
227,148 | <p>I am a support engineer and our company's product allows XSLT transforms to customize outputs.</p>
<p>I made a xsl transform for this purpose. It works well for source files of typical size (several 100k), but occasionally a really huge (10M) source file will come by. In such case, the output is not generated even ... | [
{
"answer_id": 227454,
"author": "trebormf",
"author_id": 30454,
"author_profile": "https://Stackoverflow.com/users/30454",
"pm_score": 2,
"selected": false,
"text": "<xsl:template match=\"foo\">\n <!--OUTPUT-->\n <xsl:apply-templates / >\n <!--OUTPUT-->\n</xsl:template>\n\n <xsl:temp... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24233/"
] |
227,174 | <p>I have been searching high and low for a way to get my silverlight application talking to the COM port on my local computer. Has anybody out there been able to get Silverlight to successfully connect to the COM port of you local computer? If so can you point me to the documentation.</p>
| [
{
"answer_id": 20622198,
"author": "zax",
"author_id": 1742458,
"author_profile": "https://Stackoverflow.com/users/1742458",
"pm_score": 0,
"selected": false,
"text": "If AutomationFactory.IsAvailable Then\n SilPort = AutomationFactory.CreateObject(\"SilverPort.Ports\")\n Dim A... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17/"
] |
227,187 | <p>I have a console application that require to use some code that need administrator level. I have read that I need to add a Manifest file myprogram.exe.manifest that look like that :</p>
<pre><code><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn... | [
{
"answer_id": 259146,
"author": "Judah Gabriel Himango",
"author_id": 536,
"author_profile": "https://Stackoverflow.com/users/536",
"pm_score": 4,
"selected": true,
"text": "mt.exe -manifest \"$(ProjectDir)$(TargetName).exe.manifest\" -updateresource:\"$(TargetDir)$(TargetName).exe;#1\"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13913/"
] |
227,208 | <p>I am working on interactive SVG/AJAX interfaces where elements are created and repositioned on-the-fly by users. I'd like to support the ability for users to export their current view to a PNG image and/or an SVG document. I'd really like the SVG document to be as simple as possible (without a lot of nested transfor... | [
{
"answer_id": 227754,
"author": "savetheclocktower",
"author_id": 25720,
"author_profile": "https://Stackoverflow.com/users/25720",
"pm_score": 4,
"selected": false,
"text": "XMLSerializer var svg = document.getElementById('svg_root'); // or whatever you call it\nvar serializer = new XM... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30238/"
] |
227,210 | <p>I've spent most of the day making what are basically some housekeeping changes to the codebase of one of our projects (replacing all <code>System.out.println()</code> calls with log4j).</p>
<p>I'm kind of curious how many lines of code I've updated with this set of changes.</p>
<p>Is there anyway with <code>cvs di... | [
{
"answer_id": 227296,
"author": "Rob Wells",
"author_id": 2974,
"author_profile": "https://Stackoverflow.com/users/2974",
"pm_score": 0,
"selected": false,
"text": "find . | egrep -v -e '(CVS|<other patterns you don't want>)' | \\\n xargs egrep -e 'System\\.out\\.println[(][)]' | wc ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4249/"
] |
227,215 | <p>What's the best performing way to convert a DataRowCollection instance to a DataRow[]?</p>
| [
{
"answer_id": 227269,
"author": "Jared",
"author_id": 7388,
"author_profile": "https://Stackoverflow.com/users/7388",
"pm_score": 3,
"selected": false,
"text": "DataRowCollection.CopyTo(DataRow[] array, Int32 offset)"
},
{
"answer_id": 227273,
"author": "Ely",
"author_id... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
227,236 | <p>I need to convert a Word document into HTML file(s) in Java. The function will take input an word document and the output will be html file(s) based on the number of pages the word document has i.e. if the word document has 3 pages then there will be 3 html files generated having the required page break.</p>
<p>I s... | [
{
"answer_id": 515548,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "import officetools.OfficeFile; // package available at www.dancrintea.ro/doc-to-pdf/\n...\nFileInputStream fis = new FileInput... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13187/"
] |
227,249 | <p>As a followup to my <a href="https://stackoverflow.com/questions/227143/java-what-is-javaawtcomponentgetname-and-setname-used-for">question about the java.awt.Component.getName() property</a>, I'm wondering if there is a way of squirreling an arbitrary object somewhere in a Component, similar to the <a href="http://... | [
{
"answer_id": 229718,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 2,
"selected": false,
"text": "JComponent putClientProperty getClientProperty"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9648/"
] |
227,279 | <p>I am interested in making a Google Talk client using Python and would like to use the Twisted libraries Words module. I have looked at the examples, but they don't work with the current implementation of Google Talk.</p>
<p>Has anybody had any luck with this? Would you mind documenting a brief tutorial?</p>
<p>A... | [
{
"answer_id": 228959,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 3,
"selected": false,
"text": "xmpppy bot.py"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/227279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12419/"
] |
227,287 | <p>I know how to find a method in java using a fixed string,</p>
<pre><code>someClass.getMethod("foobar", argTypes);
</code></pre>
<p>but is there a way to use a regular expression rather than a fixed string to find a method on a given class? </p>
<p>An example of the usage might be if I wanted to find a method that... | [
{
"answer_id": 227300,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": true,
"text": "try\n{\n final Pattern aMethodNamePattern = Pattern.compile(\"foo[Bb]ar\");\n final List<Method> someMethods = aClass.getDecla... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4599/"
] |
227,288 | <p><a href="http://developer.yahoo.com/yui/compressor/" rel="nofollow noreferrer">YUI Compressor</a> does not accept wildcard parameters, so I cannot run it like this: </p>
<pre><code>C:>java -jar yuicompressor.jar *.js
</code></pre>
<p>But I have over 500 files and would rather not have to create a batch file li... | [
{
"answer_id": 227336,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 5,
"selected": true,
"text": "for %%a in (*.js) do @java -jar yuicompressor.jar \"%%a\" -o \"deploy\\%%a\"\n"
},
{
"answer_id": 227354,
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28098/"
] |
227,303 | <p>How can I find or generate thousands of company names for testing and demo purposes? (Address, phone number, and related information would be nice too.)</p>
<p>I've got a system I'm building which includes business contact information. Pretty common no doubt. </p>
<p>My test/demo database currently has randomly... | [
{
"answer_id": 29707553,
"author": "Scott H",
"author_id": 1789708,
"author_profile": "https://Stackoverflow.com/users/1789708",
"pm_score": 1,
"selected": false,
"text": "In [1]: from pyfaker import Fake\n\nIn [2]: fake = Fake(lang_code='en')\n\nIn [3]: fake.Address.street_address()\nOu... | 2008/10/22 | [
"https://Stackoverflow.com/questions/227303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3489/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.