qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
281,380 | <p>I am trying to format a date with: </p>
<pre><code><fmt:formatDate value="${newsletter.createdOn}" pattern="MM/dd/yyyy"/>
</code></pre>
<p>newsletter is an object with a <code>createdOn</code> property which is <code>java.util.Date</code>.</p>
<p>When I invoke the previous sentence I get: </p>
<p>According... | [
{
"answer_id": 281422,
"author": "lucas",
"author_id": 31172,
"author_profile": "https://Stackoverflow.com/users/31172",
"pm_score": 5,
"selected": false,
"text": "<%@ taglib prefix=\"fmt\" uri=\"http://java.sun.com/jsp/jstl/fmt\" %>\n"
},
{
"answer_id": 281425,
"author": "to... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
281,383 | <p>As the title suggests, I am having trouble maintaining my code on postback. I have a bunch of jQuery code in the Head section and this works fine until a postback occurs after which it ceases to function! </p>
<p>How can I fix this? Does the head not get read on postback, and is there a way in which I can force thi... | [
{
"answer_id": 281463,
"author": "Kon",
"author_id": 22303,
"author_profile": "https://Stackoverflow.com/users/22303",
"pm_score": 1,
"selected": false,
"text": "alert('test');"
},
{
"answer_id": 1462930,
"author": "Russ Cam",
"author_id": 1831,
"author_profile": "htt... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35454/"
] |
281,398 | <p>I have an existing web app that allows users to "rate" items based on their difficulty. (0 through 15). Currently, I'm simply taking the average of each user's opinion and presenting the average straight from MySQL. However, it's becoming clear to me (and my users) that weighting the numbers would be more appropr... | [
{
"answer_id": 281499,
"author": "Dave DuPlantis",
"author_id": 8174,
"author_profile": "https://Stackoverflow.com/users/8174",
"pm_score": 0,
"selected": false,
"text": "select sum(response*ct*ct)/sum(ct*ct) from\n( select response, count(response) as ct from your_table group by respons... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24708/"
] |
281,418 | <p>I am using the standard .Net 2.0 DataGridView with sort mode of automatic on the column. It is very very slow (which should probably be another question on how to speed it up) but I can't seem to find an event or combination of events that will maintain a WaitCursor while this sort operation is being performed.</p>... | [
{
"answer_id": 67243965,
"author": "DerpyNerd",
"author_id": 1536027,
"author_profile": "https://Stackoverflow.com/users/1536027",
"pm_score": 0,
"selected": false,
"text": "CellMouseDown CellMouseClick Sorted SortStart DataTable foreach (DataGridViewColumn column in dgvUsers.Columns)\n{... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36614/"
] |
281,436 | <p>I have a SSRS 2005 report that has a number of images in it. The way that I have the images included is I have an image object with the URL set in the value property. The actual images are hosted by an IIS virtual directory on the same server. I'm doing it this way because I need to dynamically change the image ... | [
{
"answer_id": 12333827,
"author": "Syed",
"author_id": 696799,
"author_profile": "https://Stackoverflow.com/users/696799",
"pm_score": 0,
"selected": false,
"text": "< location path=\"Images\" >\n < system.web >\n < authorization >\n < allow users=\"*\" / >\n < /aut... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16980/"
] |
281,440 | <pre>
create table person
(
name varchar(15),
attr1 varchar(15),
attr2 varchar(1),
attr3 char(1),
attr4 int
)
</pre>
<p>How I can use basic ORM in Perl by taking a simple table like the one above and mapping it to Perl objects? Next I'd like to perform basic operations like select results using so... | [
{
"answer_id": 665195,
"author": "singingfish",
"author_id": 36499,
"author_profile": "https://Stackoverflow.com/users/36499",
"pm_score": 0,
"selected": false,
"text": "#!/usr/bin/perl\nuse warnings;\nuse strict;\nuse DBIx::Class::Schema::Loader qw/ make_schema_at /;\n\nmake_schema_at(\... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
281,443 | <p>The following source code alerts the following results:</p>
<p><strong>Internet Explorer 7</strong>: 29<br>
<strong>Firefox 3.0.3</strong>: 37 (correct)<br>
<strong>Safari 3.0.4 (523.12.9)</strong>: 38<br>
<strong>Google Chrome 0.3.154.9</strong>: 38 </p>
<p>Please ignore the following facts: </p>
<ul>
<li>Webk... | [
{
"answer_id": 281592,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 0,
"selected": false,
"text": "<table>\n <thead>\n </thead>\n <tbody>\n </tbody>\n <tfoot>\n </tfoot>\n</table>\n"
},
{
"answer_id": 289083... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16711/"
] |
281,456 | <p>I need to convert several Java classes to C#, but I have faced few problems.</p>
<p>In Java I have following class hierarchy:</p>
<pre><code>public abstract class AbstractObject {
public String getId() {
return id;
}
}
public class ConcreteObject extends AbstractObject {
public void setId(Str... | [
{
"answer_id": 281469,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 2,
"selected": false,
"text": "get set NotImplementedException"
},
{
"answer_id": 281505,
"author": "Ant",
"author_id": 11529,
"a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22062/"
] |
281,468 | <p>I want ajax application to process a simple form with textinput and submit button only , and without validation , i want to add this with a php script .
I ask this because i don't know how to program with ajax or javascript .</p>
| [
{
"answer_id": 281691,
"author": "Pat",
"author_id": 238,
"author_profile": "https://Stackoverflow.com/users/238",
"pm_score": 0,
"selected": false,
"text": "$(document).ready(function () {\n $('form').ajaxSubmit('#result');\n});\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22634/"
] |
281,488 | <p>I have a circular, statically allocated buffer in C, which I'm using as a queue for a <strike>depth</strike> breadth first search. I'd like have the top N elements in the queue sorted. It would be easy to just use a regular qsort() - except it's a circular buffer, and the top N elements might wrap around. I could, o... | [
{
"answer_id": 281737,
"author": "Brian Ensink",
"author_id": 1254,
"author_profile": "https://Stackoverflow.com/users/1254",
"pm_score": 2,
"selected": false,
"text": "qsort"
},
{
"answer_id": 281748,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"au... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27610/"
] |
281,490 | <p>I currently have Apache HTTP Server, but I'm guessing I'll need Tomcat (and then have to configure it in a way that makes it not open to the public), a Java JDK (which I already have, but should probably update), and an IDE (I have Eclipse). But what else should I have or know before starting?</p>
| [
{
"answer_id": 281494,
"author": "Bogdan",
"author_id": 24022,
"author_profile": "https://Stackoverflow.com/users/24022",
"pm_score": 0,
"selected": false,
"text": "mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp\n"
}... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
281,500 | <p>I'm trying to connect to an MDF. I've even gone to the lengths of re-installing sql server express entirely (it is now the only flavor of SQL installed on my box, where previously I had 05 dev and express). I've verified that the paths are all correct, and thus far my google-fu hasn't helped.</p>
<p>The Full exce... | [
{
"answer_id": 281626,
"author": "Joel Martinez",
"author_id": 5416,
"author_profile": "https://Stackoverflow.com/users/5416",
"pm_score": 7,
"selected": true,
"text": "AttachDbFilename=|DataDirectory|CustomerDb.mdf; c:\\Users\\<user name>\\AppData\\Local\\Microsoft\\Microsoft SQL Server... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5416/"
] |
281,503 | <p>I am having trouble creating a mapping when the List type is an interface. It looks like I need to create an abstract class and use the discriminator column is this the case? I would rather not have to as the abstract class will just contain an abstract method and I would rather just keep the interface.</p>
<p>I ha... | [
{
"answer_id": 281900,
"author": "Andrea Francia",
"author_id": 36131,
"author_profile": "https://Stackoverflow.com/users/36131",
"pm_score": 1,
"selected": false,
"text": "// not an entity\npublic interface Account {\n public void doStuff();\n}\n\n@Entity\npublic abstract class BaseA... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3050/"
] |
281,507 | <p>Can a Silverlight 2 enabled web page be managed from an Apache server? (I'm not actually interested in doing this but trying to understand Silverlight 2 a bit more.)</p>
<p>Assuming that I have IIS6 and Server 2003 what are the .NET version requirements to host a web site with Silverlight 2? Are .NET 3.0 and 3.5 re... | [
{
"answer_id": 281519,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 0,
"selected": false,
"text": "* Windows\n o Operating System: Windows Vista; Windows XP Service Pack 2\n o Intel® Pentium® III 450MHz or faste... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
281,512 | <p>I am having issues converting a png to tiff. The conversion goes fine, but the image is huge. I think the issue is that I am not doing the compression correctly? Anyone have any suggestions??</p>
<p>Here is the code sample</p>
<pre><code>public static void test() throws IOException {
// String fileName = "... | [
{
"answer_id": 281612,
"author": "Lou Franco",
"author_id": 3937,
"author_profile": "https://Stackoverflow.com/users/3937",
"pm_score": 2,
"selected": false,
"text": "tiffWriteParam.setTilingMode(ImageWriteParam.MODE_EXPLICIT);\ntiffWriteParam.setTiling(imageWidth, imageHeight, 0, 0);\n"... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36641/"
] |
281,515 | <p>I would like to customize the background (and maybe the border too) of all of the UITableViewCells within my UITableView. So far I have not been able to customize this stuff, so I have a bunch of white background cells which is the default.</p>
<p>Is there a way to do this with the iPhone SDK?</p>
| [
{
"answer_id": 290228,
"author": "Vladimir Grigorov",
"author_id": 22764,
"author_profile": "https://Stackoverflow.com/users/22764",
"pm_score": 6,
"selected": false,
"text": "UIView *backgroundView = [ [ [ UIView alloc ] initWithFrame:CGRectZero ] autorelease ];\nbackgroundView.backgrou... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281515",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35478/"
] |
281,527 | <p>Like any other hard disk, virtual hard discs (*.vhd) will suffer from fragmentation. </p>
<p>So to keep good performance i guess i have to defrag first the virtual hard disc from within the virtual machine and also the (physical) hard disc the .vhd is stored on.</p>
<p>First, are these assumption correct?
And seco... | [
{
"answer_id": 282466,
"author": "John Baughman",
"author_id": 26923,
"author_profile": "https://Stackoverflow.com/users/26923",
"pm_score": 3,
"selected": false,
"text": "jkDefrag -q -a2\njkDefrag -q -a6 C:\\PathToVirtualDisks\\VDiskToDefrag.vhd\njkDefrag -q -a3 -e C:\\PathToVirtualDisk... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4531/"
] |
281,531 | <p>Most of my PHP apps have an ob_start at the beginning, runs through all the code, and then outputs the content, sometimes with some modifications, after everything is done.</p>
<pre><code>ob_start()
//Business Logic, etc
header->output();
echo apply_post_filter(ob_get_clean());
footer->output();
</code></pre>... | [
{
"answer_id": 283413,
"author": "J.D. Fitz.Gerald",
"author_id": 11542,
"author_profile": "https://Stackoverflow.com/users/11542",
"pm_score": 1,
"selected": false,
"text": "ini_set('memory_limit','64M');\n"
},
{
"answer_id": 15505603,
"author": "Haravikk",
"author_id": ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281531",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6681/"
] |
281,534 | <p>Grasping at straws here... I work with a VB6 desktop system using several 2003-style Access databases (.MDB). Recently, I changed the first function from VB6 to VB.NET, still using an Access database. This is more than a conversion, but a rewrite with additional functionality. It is still fairly simple functional... | [
{
"answer_id": 281773,
"author": "bruceatk",
"author_id": 791,
"author_profile": "https://Stackoverflow.com/users/791",
"pm_score": 3,
"selected": true,
"text": "\n@echo off\nSystemInfo >c:\\systeminfo.log\ntasklist /v >>c:\\systeminfo.log\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12897/"
] |
281,538 | <p>Are there major advantages to <a href="https://web.archive.org/web/20090207080811/http://www.innodb.com:80/hot-backup/features/" rel="nofollow noreferrer">InnoDB hot backup</a> vs ZRM <a href="https://www.zmanda.com/zrm-enterprise/" rel="nofollow noreferrer">snapshots</a> in terms of disruption to the running site, ... | [
{
"answer_id": 281773,
"author": "bruceatk",
"author_id": 791,
"author_profile": "https://Stackoverflow.com/users/791",
"pm_score": 3,
"selected": true,
"text": "\n@echo off\nSystemInfo >c:\\systeminfo.log\ntasklist /v >>c:\\systeminfo.log\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/556/"
] |
281,563 | <p>I'm currently using AntLR to parse some files with a proprietary language.
I have a need of highlighting sections of it on an editor (think of highlighting a method in a Java class, for instance).</p>
<p>Does anyone has a hint on how to get them?
Say I have this code:</p>
<pre><code>function test(param1, param2) {... | [
{
"answer_id": 905885,
"author": "fglez",
"author_id": 33622,
"author_profile": "https://Stackoverflow.com/users/33622",
"pm_score": 2,
"selected": true,
"text": "func: FUNCTION ID '(' ID (',' ID)* ')' {\n System.out.println(\"Position = \" + $FUNCTION.pos);\n}\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7277/"
] |
281,579 | <p>I'm trying to do Ruby password input with the <a href="http://highline.rubyforge.org/" rel="noreferrer">Highline gem</a> and since I have the user input the password twice, I'd like to eliminate the duplication on the blocks I'm passing in. For example, a simple version of what I'm doing right now is:</p>
<pre><cod... | [
{
"answer_id": 281620,
"author": "Lucas Oman",
"author_id": 6726,
"author_profile": "https://Stackoverflow.com/users/6726",
"pm_score": -1,
"selected": false,
"text": "def foo(prompt)\n prompt.echo = false\nend\nnew_pass = ask(\"Enter your new password: \") { |prompt| foo(prompt) }\nver... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/422/"
] |
281,584 | <p>Using an ORM approach in applications can often lead to the scenario where you have a collection of objects you've retrieved and would like to display them in a tabular view using a DataGridView.</p>
<p>In my (limited) experience, binding collections of objects using a custom BindingList to a DataGridView results i... | [
{
"answer_id": 281620,
"author": "Lucas Oman",
"author_id": 6726,
"author_profile": "https://Stackoverflow.com/users/6726",
"pm_score": -1,
"selected": false,
"text": "def foo(prompt)\n prompt.echo = false\nend\nnew_pass = ask(\"Enter your new password: \") { |prompt| foo(prompt) }\nver... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3406/"
] |
281,586 | <p>I want to make custom control which has couple of <code><input type='checkbox' /></code> controls which I render in Render method.
Is it possible to retain ViewState (e.g. checked or not) on these Controls? </p>
<p>There is a way of doing this by using ASP.NET server CheckBox control,
adding them in OnLoad e... | [
{
"answer_id": 281617,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 1,
"selected": false,
"text": "bool checked = (bool)(ViewState[\"ThisControlCheckState\"] ?? false);\nif (checked) {\n write(\"<input ... >\");\n}\n... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36648/"
] |
281,606 | <p>Why does UDP have a length field in the header and TCP does not?</p>
<p>I am guessing that the length of the segment in TCP is inferred from the IP header but one should be able to do the same for a UDP datagram</p>
| [
{
"answer_id": 281630,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 1,
"selected": false,
"text": " +--------+--------+--------+--------+\n | Source Address |\n +--------+--------+--... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
281,618 | <p>I need my database to be secure in case of the hard drive being stolen.</p>
<p>I have not seen many databases (even mainstream ones) claiming to support encryption. </p>
<ul>
<li>Do you guys know of any databases that support encryption?</li>
<li>If I'm using a database that doesn't support encryption, is it a ba... | [
{
"answer_id": 41123787,
"author": "userAndroid",
"author_id": 2427218,
"author_profile": "https://Stackoverflow.com/users/2427218",
"pm_score": 0,
"selected": false,
"text": "SQLiteDatabase.loadLibs(context);\nSQLiteOpenHelper.getWritableDatabase(“yourSecretKey”):\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
281,627 | <p>I have a flex client that makes service calls to a tomcat server running BlazeDS. I would like to gracefully handle server session timeouts in this environment.</p>
<p>I do have security constraints on the service, so the client authenticates against a remote object by initializing a ChannelSet based on the destin... | [
{
"answer_id": 6540057,
"author": "RJ Owen",
"author_id": 210603,
"author_profile": "https://Stackoverflow.com/users/210603",
"pm_score": 1,
"selected": false,
"text": "if(faultEvent.fault.faultCode == \"Client.Error.RequestTimeout\"){\n trace(\"TIMEOUT ERROR\");\n}\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2885/"
] |
281,640 | <p>How do I get a human-readable file size in bytes abbreviation using .NET?</p>
<p><strong>Example</strong>:
Take input 7,326,629 and display 6.98 MB</p>
| [
{
"answer_id": 281665,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 4,
"selected": false,
"text": "int size = new FileInfo( filePath ).Length / 1024;\nstring humanKBSize = string.Format( \"{0} KB\", size );\nstring humanMBSi... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
281,652 | <p>Is there a tsql command on sqlserver 2008 which can be run in order to enable Database Diagramming instead of this dialog appearing:</p>
<p>This database does not have one or more of the support objects required to use database diagramming. Do you wish to create them? </p>
| [
{
"answer_id": 36057298,
"author": "HarrySolsem",
"author_id": 261271,
"author_profile": "https://Stackoverflow.com/users/261271",
"pm_score": 1,
"selected": false,
"text": "IF OBJECT_ID(N'dbo.sp_upgraddiagrams') IS NULL and IS_MEMBER('db_owner') = 1\nBEGIN\n EXEC sp_executesql N'\n ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28717/"
] |
281,664 | <p>Imagine the following scenario - we have Page1 which contains controls Control A and Control B.</p>
<p>Say Control A has a button, and on the click of this button we want Control B to react.
But we want to do this in an abstract fashion, i.e. we can't have Control B knowing anything about Control A, and vice versa.... | [
{
"answer_id": 281728,
"author": "user7375",
"author_id": 7375,
"author_profile": "https://Stackoverflow.com/users/7375",
"pm_score": 1,
"selected": false,
"text": "public interface IHandle<T> where T:IMessage\n{\n void Process(T message)\n}\n"
},
{
"answer_id": 281729,
"... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7140/"
] |
281,682 | <p>I am trying to set the innerxml of a xmldoc but get the exception: Reference to undeclared entity</p>
<pre><code>XmlDocument xmldoc = new XmlDocument();
string text = "Hello, I am text &alpha; &nbsp; &ndash; &mdash;"
xmldoc.InnerXml = "<p>" + text + "</p>";
</code></pre>
<p>This throws ... | [
{
"answer_id": 281686,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 3,
"selected": false,
"text": " Α\n"
},
{
"answer_id": 281739,
"author": "Fernando Miguélez",
"author_id": 34880,
"author_profile... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6201/"
] |
281,694 | <p>I want to set up an ASP.NET custom control such that it has a custom name, specifically, with a hyphen within it, so it might look like this in markup:</p>
<pre><code><rp:do-something runat="server" id="doSomething1" /></code></pre>
<p>I don't mind if this syntax requires setting up a tag mapping in web.conf... | [
{
"answer_id": 281686,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 3,
"selected": false,
"text": " Α\n"
},
{
"answer_id": 281739,
"author": "Fernando Miguélez",
"author_id": 34880,
"author_profile... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34224/"
] |
281,697 | <p>I used code like this to find the remote user name:</p>
<pre><code>banner_label.Text = "Welcome, <B>" + User.Identity.Name + "</B>!"
</code></pre>
<p>I'd also like to find the remote host name.
My production environment will be a corporate intranet with active directory.</p>
| [
{
"answer_id": 281732,
"author": "John Boker",
"author_id": 2847,
"author_profile": "https://Stackoverflow.com/users/2847",
"pm_score": 0,
"selected": false,
"text": "Request.UserHostName\n"
},
{
"answer_id": 281742,
"author": "hugoware",
"author_id": 17091,
"author_p... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
281,698 | <p>I just don't get it. Tried on VC++ 2008 and G++ 4.3.2</p>
<pre><code>#include <map>
class A : public std::multimap<int, bool>
{
public:
size_type erase(int k, bool v)
{
return erase(k); // <- this fails; had to change to __super::erase(k)
}
};
int main()
{
A a;
a.erase(... | [
{
"answer_id": 281707,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 6,
"selected": true,
"text": "erase(int, bool) erase(0)"
},
{
"answer_id": 281738,
"author": "jalf",
"author_id": 33213,
"author_pro... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21704/"
] |
281,706 | <p>I'm having an issue dragging a file from Windows Explorer on to a Windows Forms application. </p>
<p>It works fine when I drag text, but for some reason it is not recognizing the file. Here is my test code:</p>
<pre><code>namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
pub... | [
{
"answer_id": 281770,
"author": "arul",
"author_id": 15409,
"author_profile": "https://Stackoverflow.com/users/15409",
"pm_score": 0,
"selected": false,
"text": "string formats = string.Join( \"\\n\", e.Data.GetFormats(false) );\nMessageBox.Show( formats );\n"
},
{
"answer_id": ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
281,714 | <p>Do you have any ideas how to call DoEvents from a C# DLL</p>
| [
{
"answer_id": 281730,
"author": "configurator",
"author_id": 9536,
"author_profile": "https://Stackoverflow.com/users/9536",
"pm_score": 2,
"selected": false,
"text": "System.Windows.Forms.Application.DoEvents()"
},
{
"answer_id": 283208,
"author": "Marc Gravell",
"autho... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28207/"
] |
281,719 | <p>I am quantitatively studying various metrics associated with automated tests. Chrome seems to have a reasonable set, so I wanted to add it to my data set. I downloaded the Chrome source code and tried to build it with VisualStudio but got several hundred errors--types not defined, identifiers not defined, etc. Has a... | [
{
"answer_id": 281736,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 3,
"selected": true,
"text": "3>Error in tempfile() using /tmp/dftables-XXXXXXXX.in: Parent directory (/tmp/) is not writable\n3> at /cygdrive/c/b/slave/WE... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13842/"
] |
281,724 | <p>From my experiments, it does not appear to do so. If this is indeed true, what is the best method for removing line breaks? I'm currently experimenting with the parameters that TRIM accepts of the character to remove, starting with trimming <code>\n</code> and <code>\r</code>.</p>
| [
{
"answer_id": 281740,
"author": "LeppyR64",
"author_id": 16592,
"author_profile": "https://Stackoverflow.com/users/16592",
"pm_score": 2,
"selected": false,
"text": "select trim(both '\\n' from FIELDNAME) from TABLE;\n"
},
{
"answer_id": 281778,
"author": "Peter Crabtree",
... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
281,725 | <p>I want to make this specialized w/o changing main. Is it possible to specialize something based on its base class? I hope so.</p>
<p>-edit-</p>
<p>I'll have several classes that inherit from SomeTag. I don't want to write the same specialization for each of them.</p>
<pre><code>class SomeTag {};
class InheritSome... | [
{
"answer_id": 281795,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "MyClass InheritSomeTag main // Base class\ntemplate <typename TSpec = void>\nclass SomeTag { };\n\n// Type tag, NOT p... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
281,743 | <p>I have a client which is shipping via UPS, and therefore cannot deliver to Post Office boxes. I would like to be able to validate customer address fields in order to prevent them from entering addresses which include a PO box. It would be best if this were implemented as a regex so that I could use a client-side reg... | [
{
"answer_id": 281753,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 3,
"selected": true,
"text": "\"^P\\.?\\s?O\\.?\\sB[Oo][Xx].\"\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13583/"
] |
281,744 | <p>Can someone explain how exactly prepared connection pooling using dbcp can be used? (with some example code if possible). I've figured out how to turn it on - passing a KeyedObjectPoolFactory to the PoolableConnectionFactory.
But how should the specific prepared statements be defined after that?
Right now I'm only ... | [
{
"answer_id": 282135,
"author": "Georgy Bolyuba",
"author_id": 4052,
"author_profile": "https://Stackoverflow.com/users/4052",
"pm_score": 4,
"selected": true,
"text": "* public PreparedStatement prepareStatement(String sql)\n* public PreparedStatement prepareStatement(String sql, int r... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12649/"
] |
281,758 | <p>I'm working on a Spring MVC project, and I have unit tests for all of the various components in the source tree.</p>
<p>For example, if I have a controller <code>HomeController</code>, which needs to have a <code>LoginService</code> injected into it, then in my unit test <code>HomeControllerTest</code> I simply ins... | [
{
"answer_id": 281841,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 6,
"selected": true,
"text": "test Test TestCase AbstractIntegrationTestCase Spring WebApplicationContext test IntTest IntegrationTest test test test"
... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4249/"
] |
281,787 | <p>What's the best way to output the public contents of an object to a human-readable file? I'm looking for a way to do this that would not require me to know of all the members of the class, but rather use the compiler to tell me what members exist, and what their names are. There have to be macros or something like t... | [
{
"answer_id": 281832,
"author": "ReaperUnreal",
"author_id": 4218,
"author_profile": "https://Stackoverflow.com/users/4218",
"pm_score": 0,
"selected": false,
"text": "char *buffer = new char[sizeof(Container)];\nmemcpy(buffer, containerInstance, sizeof(Container));\n printOn(ostream &)... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22724/"
] |
281,791 | <p>I want to set the background of an <code>NSBox</code> to be a gradient. In Interface Builder it is possible to set the background color of an <code>NSBox</code> to <code>selectedMenuColor</code> which is a gradient. </p>
<p><code>NSBox</code> only has a <code>setFillColor</code> method so how is Interface Builder f... | [
{
"answer_id": 281984,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 0,
"selected": false,
"text": "colorWithPatternImage:"
},
{
"answer_id": 284076,
"author": "Dave Dribin",
"author_id": 26825,
"aut... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
281,811 | <p>How do I test if two dates are within a certain tolerance in NUnit?</p>
| [
{
"answer_id": 281853,
"author": "Rob Prouse",
"author_id": 30827,
"author_profile": "https://Stackoverflow.com/users/30827",
"pm_score": 1,
"selected": false,
"text": "long ticks = mydate.Ticks;\nlong tolerance = 1000;\nAssert.That( ticks, Is.LessThan( ticks + tolerance ) & Is.GreaterTh... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/549/"
] |
281,818 | <p>I'm currently working on some logging code that supposed to - among other things - print information about the calling function. This should be relatively easy, standard C++ has a <code>type_info</code> class. This contains the name of the typeid'd class/function/etc. but it's mangled. It's not very useful. I.e. <co... | [
{
"answer_id": 281860,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https://Stackoverflow.com/users/28258",
"pm_score": 1,
"selected": false,
"text": "__cxa_demangle cxxabi.h"
},
{
"answer_id": 281876,
"author": "KeithB",
"author_id": 2298,
"author_profi... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9232/"
] |
281,831 | <p>I am porting an MFC application to .NET WinForms. In the MFC application, you can right click on a menu or on a context menu item and we show another context menu with diagnostic and configuration items. I am trying to port this functionality to .NET, but I am having trouble.</p>
<p>I have been able to capture the ... | [
{
"answer_id": 281883,
"author": "Jason Diller",
"author_id": 2187,
"author_profile": "https://Stackoverflow.com/users/2187",
"pm_score": 2,
"selected": false,
"text": "[DllImport(\"user32.dll\")]\nstatic extern bool TrackPopupMenuEx(IntPtr hmenu, uint fuFlags, int x, int y,\nIntPtr hwnd... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30827/"
] |
281,837 | <p>I would like to parse HTML document and replace action attribute of all the forms and add some hidden fields with XSL. Can someone show some examples of XSL that can do this?</p>
| [
{
"answer_id": 281848,
"author": "andy.gurin",
"author_id": 22388,
"author_profile": "https://Stackoverflow.com/users/22388",
"pm_score": 0,
"selected": false,
"text": "XSLT XML HTML"
},
{
"answer_id": 281932,
"author": "Fernando Miguélez",
"author_id": 34880,
"author... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
281,843 | <p>I realize you can't get the target entity in the Attribute itself, but what about in an associated Permission object when using a CodeAccessSecurityAttribute? The Permission object gets called at runtime so it seems there should be a way but I'm at a loss.</p>
<pre><code>public sealed class MySecurityAttribute : C... | [
{
"answer_id": 343463,
"author": "Miral",
"author_id": 43534,
"author_profile": "https://Stackoverflow.com/users/43534",
"pm_score": 0,
"selected": false,
"text": "this"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36668/"
] |
281,855 | <p>For what I can read, it is used to dispatch a new thread in a swing app to perform some "background" work, but what's the benefit from using this rather than a "normal" thread?</p>
<p>Is not the same using a new Thread and when it finish invoke some GUI method using SwingUtilities.invokeLater?... </p>
<p>What am I... | [
{
"answer_id": 281871,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": false,
"text": "update(int status)"
},
{
"answer_id": 283223,
"author": "Daniel Hiller",
"author_id": 16193... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20654/"
] |
281,864 | <p>I have a function that checks if a cookie (by name) exists or not:</p>
<pre><code>Private Function cookieExists(ByVal cName As String) As Boolean
For Each c As HttpCookie In Response.Cookies
If c.Name = cName Then Return True
Next
Return False
End Function
</code></pre>
<p>I have a class that h... | [
{
"answer_id": 281872,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 5,
"selected": true,
"text": "HttpContext.Current.Response\nHttpContext.Current.Request\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25515/"
] |
281,866 | <p>Often you need to show a list of database items and certain aggregate numbers about each item. For instance, when you type the title text on Stack Overflow, the Related Questions list appears. The list shows the titles of related entries and the single aggregated number of quantity of responses for each title.</p>
... | [
{
"answer_id": 281894,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 4,
"selected": true,
"text": "SUM() COUNT() SELECT c.catname, COUNT(m.catid) AS item_count,\n SUM(i.ownerid = @ownerid) AS owner_item_count\nFROM ca... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/356/"
] |
281,881 | <p>I am trying to keep track of something and using the SessionID as they key to that object</p>
<p>However the SessionID every 2-3 reqiests changes shouldn't it remain the same?</p>
<pre><code>HttpContext.Session.SessionID
</code></pre>
<p>Is the code I am using.</p>
| [
{
"answer_id": 458694,
"author": "robnardo",
"author_id": 56774,
"author_profile": "https://Stackoverflow.com/users/56774",
"pm_score": 3,
"selected": false,
"text": "Session[\"myVar\"] = \"1234\";\n <%= this.Session.SessionID %>\n"
},
{
"answer_id": 5835631,
"author": "javi... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22093/"
] |
281,884 | <p>Can someone suggest a small webserver implementation that will illustrate the concepts of what a webserver does? It should be in a language that is easily read, and understood, and should implement security and cgi, maybe javascript? </p>
| [
{
"answer_id": 10630612,
"author": "mikera",
"author_id": 214010,
"author_profile": "https://Stackoverflow.com/users/214010",
"pm_score": 0,
"selected": false,
"text": "(ns my-app\n (:use noir.core)\n (:require [noir.server :as server]))\n\n(defpage \"/welcome\" []\n \"Welcome to No... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23599/"
] |
281,888 | <p>In Python, how do I jump to a file in the Windows Explorer? I found a solution for jumping to folders:</p>
<pre><code>import subprocess
subprocess.Popen('explorer "C:\path\of\folder"')
</code></pre>
<p>but I have no solution for files.</p>
| [
{
"answer_id": 281911,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://Stackoverflow.com/users/1199",
"pm_score": 8,
"selected": true,
"text": "import subprocess\nsubprocess.Popen(r'explorer /select,\"C:\\path\\of\\folder\\file\"')\n"
},
{
"answer_id": 272... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25705/"
] |
281,890 | <p>There are Hibernate tools for mapping files to ddl generation; ddl to mapping files and so on, but I can't find any command line tools for simple DDL generation from JPA annotated classes.</p>
<p>Does anyone know an easy way to do this? (Not using Ant or Maven workarounds)</p>
| [
{
"answer_id": 497798,
"author": "Kariem",
"author_id": 12039,
"author_profile": "https://Stackoverflow.com/users/12039",
"pm_score": 3,
"selected": false,
"text": "<target name=\"schemaexport\" description=\"Export schema to DDL file\"\n depends=\"compile-jpa\"> <!-- compile model cl... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/450527/"
] |
281,891 | <p>I'm using ASP.NET Membership and noticed there isn't a method in the <a href="http://msdn.microsoft.com/en-us/library/system.web.security.roles_members.aspx" rel="nofollow noreferrer">Roles class</a> to <em>modify</em> a role (its name for instance), only to create and delete them.</p>
<p>Is it possible or it's not... | [
{
"answer_id": 281935,
"author": "CheGueVerra",
"author_id": 17787,
"author_profile": "https://Stackoverflow.com/users/17787",
"pm_score": 5,
"selected": true,
"text": "public void RenameRoleAndUsers(string OldRoleName, string NewRoleName)\n{\n string[] users = Roles.GetUsersInRole(Ol... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1782/"
] |
281,909 | <p>let's say I have a excel spread sheet like below:</p>
<pre>
col1 col2
------------
dog1 dog
dog2 dog
dog3 dog
dog4 dog
cat1 cat
cat2 cat
cat3 cat
</pre>
<p>I want to return a range of cells (dog1,dog2,dog3,dog4) or (cat1,cat2,cat3) based on either "dog" or "cat"</p>
<p>I know I can do a loop to ch... | [
{
"answer_id": 282141,
"author": "Mike Woodhouse",
"author_id": 1060,
"author_profile": "https://Stackoverflow.com/users/1060",
"pm_score": 0,
"selected": false,
"text": "=CHAR(RANDBETWEEN(65,90))\n =TRANSPOSE(UniqueChars(A1:A1000000))\n Option Explicit\n\nPublic Function UniqueChars(rng... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36674/"
] |
281,912 | <p>I need a distinct sound to play when a error occurs. The error is the result of a problem with one of perhaps two hundred barcodes that are being inputted in rapid fire. The event queue seems to handle keyboard input (which the barcode scanner emulates) first, and playing of my sound second. So if the barcodes ar... | [
{
"answer_id": 281915,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 1,
"selected": false,
"text": "keyup"
},
{
"answer_id": 281947,
"author": "Kon",
"author_id": 22303,
"author_profile": "https://Stackov... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13930/"
] |
281,913 | <p>I need to execute a SQL Server system stored procedure, programmatically, and since it executes in the current schema, I need to change it on the fly.</p>
<p>Like this</p>
<p>Statement st = connection.createStatement();
st.execute("EXEC SP_ADDUSER ' ', ' '");</p>
<p>But SP_ADDUSER only executes on the current sch... | [
{
"answer_id": 282065,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 0,
"selected": false,
"text": "EXEC <DatabaseName>..sp_adduser master USE master\nEXEC sp_addlogin 'test1'\nEXEC SandBox..sp_adduser 'test1'\n using Sy... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
281,922 | <p>I'm building a program that has a class used locally, but I want the same class to be used the same way over the network. This means I need to be able to make synchronous calls to any of its public methods. The class reads and writes files, so I think XML-RPC is too much overhead. I created a basic rpc client/server... | [
{
"answer_id": 281991,
"author": "eswald",
"author_id": 21229,
"author_profile": "https://Stackoverflow.com/users/21229",
"pm_score": 2,
"selected": false,
"text": "import socket\ns = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\ns.connect((self.host, self.port))\ns.send(output)\nda... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35247/"
] |
281,928 | <p>I often find myself writing simple for loops to perform an operation to many files, for example:</p>
<pre><code>for i in `find . | grep ".xml$"`; do bzip2 $i; done
</code></pre>
<p>It seems a bit depressing that on my 4-core machine only one core is getting used.. is there an easy way I can add parallelism to my s... | [
{
"answer_id": 281952,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "https://Stackoverflow.com/users/8435",
"pm_score": 1,
"selected": false,
"text": "for i in `find . | grep \".xml$\"`; do bzip2 $i&; done\n"
},
{
"answer_id": 281967,
"author": "Peter Crabtree... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27074/"
] |
281,933 | <p>Given a word, I've to replace some specific alphabets with some specific letters such as 1 for a, 5 for b etc. I'm using regex for this. I understand that StringBuilder is the best way to deal with this problem as I'm doing a lot of string manipulations. Here is what I'm doing:</p>
<pre><code>String word = "foobooa... | [
{
"answer_id": 281956,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 0,
"selected": false,
"text": "Matcher.replaceAll() String"
},
{
"answer_id": 281958,
"author": "Konrad Rudolph",
"author_id": 1968,
"a... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33203/"
] |
281,945 | <p>Does anyone know of a way to store values as NVARCHAR in a manually created query in ColdFusion using the querynew() function? I have multiple parts of a largish program relying on using a query as an input point to construct an excel worksheet (using Ben's POI) so it's somewhat important I can continue to use it a... | [
{
"answer_id": 282260,
"author": "Adam Tuttle",
"author_id": 751,
"author_profile": "https://Stackoverflow.com/users/751",
"pm_score": 1,
"selected": false,
"text": "<cfset x = QueryNew(\"foobar\")/>\n<cfset queryAddRow(x) />\n<cfset querySetCell(x, \"foobar\", chr(163)) />\n<cfdump var=... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16631/"
] |
281,951 | <p>We're using the following command line from within a Windows Service developed with C# .Net Framework 1.1:</p>
<pre><code>net use z: \\myComputer\c$
</code></pre>
<p>The service is running under a domain account that is a local administrator on "myComputer". After debugging the code we can see that it does not ret... | [
{
"answer_id": 281959,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 0,
"selected": false,
"text": "net use /?"
},
{
"answer_id": 11656869,
"author": "Gary",
"author_id": 393004,
"author_profile": "... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
281,960 | <p>I would like the value of the input text box to be highlighted when it gains focus, either by clicking it or tabbing to it.</p>
<pre><code><html>
<body>
<script>
function focusTest(el)
{
el.select();
}
</script>
<input type="text" value="one" OnFocus="focusTest(this); return false;" ... | [
{
"answer_id": 282015,
"author": "Pat",
"author_id": 238,
"author_profile": "https://Stackoverflow.com/users/238",
"pm_score": 4,
"selected": true,
"text": "function focusTest(el)\n{\n setTimeout (function () {el.select();} , 50 );\n}\n onMouseUp=\"return false;\"\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/281960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2749/"
] |
281,979 | <p>Do you generate your data dictionary? If so, how?</p>
<p>I use extended procedures in SQL Server 2005 to hold onto table and field information. I have some queries that create a dictionary out of them, but it's ... meh. Do you have a particular query or tool you use? Do you generate it off of your database diagram... | [
{
"answer_id": 282085,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 1,
"selected": false,
"text": "INFORMATION_SCHEMA INFORMATION_SCHEMA.ROUTINES"
},
{
"answer_id": 283813,
"author": "Philippe Grondier",
... | 2008/11/11 | [
"https://Stackoverflow.com/questions/281979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11947/"
] |
282,002 | <p>In developing search for a site I am building, I decided to go the cheap and quick way and use Microsoft Sql Server's Full Text Search engine instead of something more robust like Lucene.Net.</p>
<p>One of the features I would like to have, though, is google-esque relevant document snippets. I quickly found determi... | [
{
"answer_id": 284083,
"author": "CleverPatrick",
"author_id": 22399,
"author_profile": "https://Stackoverflow.com/users/22399",
"pm_score": 1,
"selected": false,
"text": "private static string FindRelevantSnippets(string infoText, string[] searchTerms)\n {\n List<int> termLoca... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22399/"
] |
282,007 | <p>I want to programmatically disable the notification I get when I connect to a wireless network. I know there is a way to disable ALL notifications (see <a href="http://www.howtogeek.com/howto/windows/disable-notification-balloons-in-xp/" rel="nofollow noreferrer">here</a>) but is there a way to only disable the one ... | [
{
"answer_id": 10386235,
"author": "Arasch",
"author_id": 1366133,
"author_profile": "https://Stackoverflow.com/users/1366133",
"pm_score": 0,
"selected": false,
"text": "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\nNew \\ DWORD\nEnableBalloonTips\... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
282,014 | <p>I have an object that starts a thread, opens a file, and waits for input from other classes. As it receives input, it writes it to disk. Basically, it's a thread safe data logging class...</p>
<p>Here's the weird part. When I open a form in the designer (Visual Studio 2008) that uses the object the file ... | [
{
"answer_id": 282031,
"author": "Tigraine",
"author_id": 21699,
"author_profile": "https://Stackoverflow.com/users/21699",
"pm_score": 0,
"selected": false,
"text": "Form_Load"
},
{
"answer_id": 282277,
"author": "Community",
"author_id": -1,
"author_profile": "https... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36693/"
] |
282,016 | <p>I need to make a piece of C# code interact through COM with all kinds of implementations.</p>
<p>To make it easeier for users of that integration, I included the interacted interfaces in IDL (as part of a relevant existing DLL, but without coclass or implementation), then got that into my C# code by running Tlbimp ... | [
{
"answer_id": 282325,
"author": "Juan Zamudio",
"author_id": 15058,
"author_profile": "https://Stackoverflow.com/users/15058",
"pm_score": 0,
"selected": false,
"text": "[InterfaceType(ComInterfaceType.InterfaceIsDual)]\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/282016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36694/"
] |
282,018 | <p>I'm doing some maintenance on a private svn server. Authentication is handled through Apache basic HTTP+mod_authz_svn. I need to have it so every user has read/write access, except for a single read-only user. The read-only user still needs to be authenticated, though. I setup my authz config file like this:</p>
<p... | [
{
"answer_id": 282052,
"author": "Martin v. Löwis",
"author_id": 33006,
"author_profile": "https://Stackoverflow.com/users/33006",
"pm_score": 3,
"selected": false,
"text": "[groups]\nall-but-ro = harry, sally, ...\n\n[/]\n@all-but-ro = rw\nread-only = r\n [/]\nread-only = r\n* = rw\n"
... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36683/"
] |
282,019 | <p>I would like to declare a record in Delphi that contains the same layout as it has in C.</p>
<p>For those interested : This record is part of a union in the Windows OS's LDT_ENTRY record. (I need to use this record in Delphi because I'm working on an Xbox emulator in Delphi - see project Dxbx on sourceforge).</p>
... | [
{
"answer_id": 282275,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 3,
"selected": false,
"text": "type\n TBits = record\n private\n FBaseMid : Byte;\n FTypeDplPres : Byte;\n FLimitHiSysEa: Byte;\n ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12170/"
] |
282,024 | <p>So I'm generating a random number using Rnd and Randomize to set a seed that looks like this:</p>
<pre><code>Randomize lSeed
Response.Write Rnd
</code></pre>
<p>I'm noticing that it's returning the same result for two values in a row for lSeed (e.g. 123, 124) but then on say 125 it will return a new value but 126 ... | [
{
"answer_id": 282033,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 0,
"selected": false,
"text": "' For ASP, you can create a function like:\nPublic Function RandRange(ByVal low As Integer, ByVal high As Integer) As ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12261/"
] |
282,035 | <p>How does one lock the focus of a .net application to a specific control? For example, if I have a form with 5 text boxes, and I want them filled out in a specific order, how can I stop someone who is in box 1 from tabbing/clicking to box 2, or hitting OK or Cancel or anything else? Is there an easy way, or do I ha... | [
{
"answer_id": 282060,
"author": "Serhat Ozgel",
"author_id": 31505,
"author_profile": "https://Stackoverflow.com/users/31505",
"pm_score": 2,
"selected": false,
"text": "private void textBox1_Leave(object sender, EventArgs e)\n{\n if string.isNullOrEmpty(textBox1.Text)\n {\n ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
282,061 | <p>I have a bit of a problem. I wrote an API a long time ago for our production system, and it used Apache XML Beans. The schema was homogeneous (ie no imports, everything was from within the same schema), and everything worked just fine, even if the code for API handling was incredibly verbose. I've since written a... | [
{
"answer_id": 282060,
"author": "Serhat Ozgel",
"author_id": 31505,
"author_profile": "https://Stackoverflow.com/users/31505",
"pm_score": 2,
"selected": false,
"text": "private void textBox1_Leave(object sender, EventArgs e)\n{\n if string.isNullOrEmpty(textBox1.Text)\n {\n ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32232/"
] |
282,062 | <p>I have a class like this:</p>
<pre><code>public class Stretcher : Panel {
public static readonly DependencyProperty StretchAmountProp = DependencyProperty.RegisterAttached("StretchAmount", typeof(double), typeof(Stretcher), null);
public static void SetStretchAmount(DependencyObject obj, double amount)
... | [
{
"answer_id": 282410,
"author": "Bryant",
"author_id": 10893,
"author_profile": "https://Stackoverflow.com/users/10893",
"pm_score": 3,
"selected": true,
"text": "public class Stretch\n{\n public double StretchAmount { get; set; }\n}\n public static readonly DependencyProperty Stretc... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6803/"
] |
282,084 | <p>Help!</p>
<p>I have a PHP (PHP 5.2.5) script on HOST1 trying to connect to an MySql database HOST2. Both hosts are in Shared Host environments controlled through CPanel.</p>
<p>HOST2 is set to allow remote database connections from HOST1.</p>
<p>The PHP connect I'm using is:-
$h2 = IPADDRESS;
$dbu = DBUSE... | [
{
"answer_id": 282136,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": false,
"text": "mysql_connect() new mysqli()"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/282084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27200/"
] |
282,091 | <p>I am instantiating a local COM server using CoCreateInstance. Sometimes the application providing the server takes a long time to start. When this happens, Windows pops a dialog box like this:</p>
<p><strong>Server Busy</strong></p>
<p>The action cannot be completed because the other program is busy. Choose 'Swi... | [
{
"answer_id": 282309,
"author": "Sunlight",
"author_id": 33650,
"author_profile": "https://Stackoverflow.com/users/33650",
"pm_score": 2,
"selected": false,
"text": "IMessageFilter CoRegisterMessageFilter"
},
{
"answer_id": 282442,
"author": "John Dibling",
"author_id": ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36699/"
] |
282,093 | <p>I want my php script to create an output file in a folder based on the date. The way I'm doing this is that its supposed to get the foldername/filename from a text file outputted by another program which I am unable to edit.</p>
<p>So the file its grabbing the data from looks like this:</p>
<pre><code>data/newfol... | [
{
"answer_id": 282137,
"author": "okoman",
"author_id": 35903,
"author_profile": "https://Stackoverflow.com/users/35903",
"pm_score": 2,
"selected": false,
"text": "$directories = explode( '/', $path );\n $file = array_pop( $directories );\n$base = '/my/base/dir';\n\nforeach( $directorie... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
282,099 | <p>What's the Hi/Lo algorithm?</p>
<p>I've found this in the <a href="http://en.wikipedia.org/wiki/NHibernate" rel="noreferrer">NHibernate</a> documentation (it's one method to generate unique keys, section 5.1.4.2), but I haven't found a good explanation of how it works.</p>
<p>I know that Nhibernate handles it, and... | [
{
"answer_id": 18440926,
"author": "Thomas W",
"author_id": 768795,
"author_profile": "https://Stackoverflow.com/users/768795",
"pm_score": 5,
"selected": false,
"text": "create table KEY_ALLOC (\n SEQ varchar(32) not null,\n NEXT bigint not null,\n primary key (SEQ)\n);\n selec... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36703/"
] |
282,105 | <p>I've used a Continuous Integration server in the past with great success, and hadn't had the need to ever perform a code freeze on the source control system. </p>
<p>However, lately it seems that everywhere I look, most shops are using the concept of code freezes when preparing for a release, or even a new test ver... | [
{
"answer_id": 282121,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 2,
"selected": false,
"text": "Development\n ||\n \\/\n QAT \n ||\n \\/\n UAT => Freeze until deploy date => Deploy => Merge and repeat\n ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5619/"
] |
282,118 | <p>Is it possible to create a toggle button in C# WinForms? I know that you can use a CheckBox control and set it's Appearance property to "Button", but it doesn't look right. I want it to appear sunken, not flat, when pressed. Any thoughts?</p>
| [
{
"answer_id": 3776945,
"author": "Simon Sabin",
"author_id": 281338,
"author_profile": "https://Stackoverflow.com/users/281338",
"pm_score": 7,
"selected": false,
"text": "CheckBox Button CheckBox checkBox = new System.Windows.Forms.CheckBox(); \ncheckBox.Appearance = System.Windows.For... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/343/"
] |
282,127 | <p>I've got three (relevant) models, specified like this:</p>
<pre><code>class User < ActiveRecord::Base
has_many :posts
has_many :comments
has_many :comments_received, :through => :posts, :source => :comments
end
class Post < ActiveRecord::Base
belongs_to :user
has_many :comments
end
class Com... | [
{
"answer_id": 282443,
"author": "Cameron Price",
"author_id": 35526,
"author_profile": "https://Stackoverflow.com/users/35526",
"pm_score": 0,
"selected": false,
"text": "map.resources :users do |user|\n user.resources :awards\n user.resources :contest_entries do |contest_entry|\n ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
282,129 | <p>I know about using a -vsdoc.js file for <a href="http://en.wikipedia.org/wiki/IntelliSense" rel="nofollow noreferrer">IntelliSense</a>, and the one for jQuery is easy to find. What other JavaScript, Ajax, and DHTML libraries have them and where can I find those files? Also, is there a document which outlines the sp... | [
{
"answer_id": 311874,
"author": "Adam",
"author_id": 1341,
"author_profile": "https://Stackoverflow.com/users/1341",
"pm_score": 5,
"selected": true,
"text": "<summary locid=\"descriptionID\">Description</summary>\n <param name=\"parameterName\"\n mayBeNull=\"true|false\" optional=\"... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22777/"
] |
282,132 | <p>I'm probably going to be using Tomcat and the Apache Axis webapp plugin, but I'm curious as to any other potential lightweight solutions.</p>
<p>The main goal of this is to connect to MySQL database for doing some demos.</p>
<p>Thanks,
Todd</p>
| [
{
"answer_id": 285897,
"author": "dshaw",
"author_id": 32595,
"author_profile": "https://Stackoverflow.com/users/32595",
"pm_score": 2,
"selected": false,
"text": "mvn jetty:run\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/282132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8531/"
] |
282,139 | <p>I'm creating a batch file to make multiple directories from a list in a text file
however after the directory is listed sometimes a filename is as well. Is there an easy way to have it ignore all data after the last \ on a line?</p>
| [
{
"answer_id": 285897,
"author": "dshaw",
"author_id": 32595,
"author_profile": "https://Stackoverflow.com/users/32595",
"pm_score": 2,
"selected": false,
"text": "mvn jetty:run\n"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/282139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
282,146 | <p>I have been given the task of modifying a VB6 project. Nothing incredibly serious, adding a couple forms and fixing a few bugs for the most part. The project uses SQL Server (if that is of any relevance).</p>
<p>My background in programming has been VB/C# .NET, PHP, C++ and mostly MySQL although I have used SQL Ser... | [
{
"answer_id": 282205,
"author": "ConcernedOfTunbridgeWells",
"author_id": 15401,
"author_profile": "https://Stackoverflow.com/users/15401",
"pm_score": 4,
"selected": false,
"text": "On Error Resume Next"
},
{
"answer_id": 282250,
"author": "Svante Svenson",
"author_id":... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1444511/"
] |
282,150 | <p>I've read everywhere about how great they are, but for some reason I can't seem to figure out how exactly I'm supposed to test something. Could someone perhaps post a piece of example code and how they would test it? If it's not too much trouble :)</p>
| [
{
"answer_id": 282709,
"author": "Till",
"author_id": 2859,
"author_profile": "https://Stackoverflow.com/users/2859",
"pm_score": 5,
"selected": false,
"text": "<?php\nfunction foo($bar)\n{\n return $bar;\n}\n?>\n --TEST--\nfoo() function - A basic test to see if it works. :)\n--FILE--\... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36712/"
] |
282,157 | <p>Assuming one has an abstract base class <code>foo</code> with <code>__get()</code> defined, and a child class <code>bar</code> which inherits from <code>foo</code> with a private variable <code>$var</code>, will the parent <code>__get()</code> be called when trying to access the private <code>$var</code> from outsid... | [
{
"answer_id": 282167,
"author": "Electronic Zebra",
"author_id": 1742702,
"author_profile": "https://Stackoverflow.com/users/1742702",
"pm_score": 4,
"selected": true,
"text": "<?php\n abstract class foo\n {\n public function __get($var)\n {\n echo \"Paren... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1742702/"
] |
282,161 | <p>I just found out that by converting PNG32 to PNG8 via Photoshop will fix the PNG transparency bug in IE<=6. </p>
<p>So I had this thought that instead of serving PNG32 to all browser, why not serve PNG8 if the client is using IE<=6. </p>
<p>I'm not really an expert when it comes to htaccess/httpd directives ... | [
{
"answer_id": 282174,
"author": "okoman",
"author_id": 35903,
"author_profile": "https://Stackoverflow.com/users/35903",
"pm_score": 0,
"selected": false,
"text": "RewriteEngine on\nRewriteRule ^/(.*)\\.png$ /$18.png [L,QSA]\n"
},
{
"answer_id": 282219,
"author": "cjm",
... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20300/"
] |
282,171 | <p>How do I write the CC logo in HTML, is there something like <code>&copy;</code> (which gives ©)?</p>
<p>(CC stands for Creative Commons).</p>
| [
{
"answer_id": 282413,
"author": "Alastair",
"author_id": 31038,
"author_profile": "https://Stackoverflow.com/users/31038",
"pm_score": 1,
"selected": false,
"text": "&#nnnn; &#xhhhh;"
},
{
"answer_id": 5215916,
"author": "Ori",
"author_id": 582542,
"author_profile": ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34109/"
] |
282,176 | <p>Imagine I have a process that starts several child processes. The parent needs to know when a child exits.</p>
<p>I can use <code>waitpid</code>, but then if/when the parent needs to exit I have no way of telling the thread that is blocked in <code>waitpid</code> to exit gracefully and join it. It's nice to have th... | [
{
"answer_id": 290025,
"author": "geocar",
"author_id": 37507,
"author_profile": "https://Stackoverflow.com/users/37507",
"pm_score": 5,
"selected": false,
"text": "alarm() wait() select() int selfpipe[2];\nvoid selfpipe_sigh(int n)\n{\n int save_errno = errno;\n (void)write(selfpi... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5963/"
] |
282,178 | <p>So I have a User model that :has_many other models like Documents, Videos, Posts and the like. My question arises when I execute a "do" block from the User model like so:</p>
<pre><code>has_many :posts do
def recent
find(:all, :order => 'created_at desc', :limit => 12)
end
end
</code></pre>
<... | [
{
"answer_id": 283020,
"author": "Cameron Booth",
"author_id": 14873,
"author_profile": "https://Stackoverflow.com/users/14873",
"pm_score": -1,
"selected": false,
"text": "has_many :posts, :dependent => :destroy do\n def recent\n find(:all, :order => 'created_at desc', :limit =>... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36715/"
] |
282,184 | <p>Javascript usage has gotten remarkably more sophisticated and powerful in the past five years. One aspect of this sort of functional programming I struggle with, esp with Javascript’s peculiarities, is how to make clear either through comments or code just what is happening. Often this sort of code takes a while to ... | [
{
"answer_id": 282216,
"author": "Jason Bunting",
"author_id": 1790,
"author_profile": "https://Stackoverflow.com/users/1790",
"pm_score": 2,
"selected": false,
"text": "// comments are not included *on purpose* for illustrating \n// my point about the need for language knowledge\nfuncti... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4440/"
] |
282,191 | <p>in my flex application, I created a Tilelist. In this Tilelist, I am using an ItemRenderer to create a box consisting of an image and an VSlider in each tile. </p>
<p>The tile need to be dragable when you click on the image, but not dragable when you slide the slider. How can I achieve this ? I have been scratching... | [
{
"answer_id": 284779,
"author": "Blizter",
"author_id": 387920,
"author_profile": "https://Stackoverflow.com/users/387920",
"pm_score": 1,
"selected": false,
"text": " public var overImage:Boolean = false;\n\n public function checkAllow(evt:DragEvent):void {\n\n ... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/387920/"
] |
282,192 | <p>I'm trying to auto-generate a plain text email with a trademark symbol in it. I've tried everything I can think of but it's still not going through.</p>
<pre><code><cfmail from="#x#" to="#y#" subject="test" charset="UTF-8">
™
&trade;
#Chr(153)#
</cfmail>
</code></pre>
| [
{
"answer_id": 282381,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 4,
"selected": true,
"text": "Chr(153) Chr() Chr(8482)"
}
] | 2008/11/11 | [
"https://Stackoverflow.com/questions/282192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8724/"
] |
282,194 | <p>I am trying to find out how much memory my application is consuming from within the program itself. The memory usage I am looking for is the number reported in the "Mem Usage" column on the Processes tab of Windows Task Manager.</p>
| [
{
"answer_id": 282220,
"author": "Charlie",
"author_id": 18529,
"author_profile": "https://Stackoverflow.com/users/18529",
"pm_score": 7,
"selected": true,
"text": "GetCurrentProcess() WorkingSetSize PROCESS_MEMORY_COUNTERS"
},
{
"answer_id": 8500024,
"author": "Ronin",
"... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3114/"
] |
282,198 | <p>I want to select a bunch of <code>span</code>s in a <code>div</code> whose CSS contains a particular background color. How do I achieve this?</p>
| [
{
"answer_id": 282208,
"author": "okoman",
"author_id": 35903,
"author_profile": "https://Stackoverflow.com/users/35903",
"pm_score": -1,
"selected": false,
"text": "#id_of_the_div span[background-color=rgb(255,255,255)]\n"
},
{
"answer_id": 282595,
"author": "Owen",
"aut... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
282,222 | <p>I just want ask the steps when trying to create a simple SQL select statement in UNIX inside/within IF..THEN..FI statement.</p>
<p>I know how to use the 'select' and 'if..then' statements in SQL*Plus, but I'm having a difficulties having a UNIX script to point to variables: If 'ABC' to 'Select...'</p>
<h2>Example:... | [
{
"answer_id": 282253,
"author": "ConcernedOfTunbridgeWells",
"author_id": 15401,
"author_profile": "https://Stackoverflow.com/users/15401",
"pm_score": 2,
"selected": false,
"text": "if [ $? -eq ABC ]; then\nSQLPLUS /S USER/PASS@Instance <<EOF\nSET echo off;\nSET pagesize 0;\nSET headin... | 2008/11/11 | [
"https://Stackoverflow.com/questions/282222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.