qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
289,434 | <p>I'm making a Java application with an application-logic-thread and a database-access-thread.
Both of them persist for the entire lifetime of the application and both need to be running at the same time (one talks to the server, one talks to the user; when the app is fully started, I need <em>both</em> of them to wor... | [
{
"answer_id": 289448,
"author": "Klathzazt",
"author_id": 35223,
"author_profile": "https://Stackoverflow.com/users/35223",
"pm_score": 2,
"selected": false,
"text": "Thread-A Locks lock-a\nRun thread-B\nThread-B waits for lock-a\nThread-A unlocks lock-a (causing Thread-B to continue)\n... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19746/"
] |
289,438 | <p>My company is currently migrating some of their really old db's to sql server 2005. Some legacy apps have problems connecting to the new server. The connection string works in Asp.NET 2.0, probably because it assumes tcp:1433 automatically.</p>
<p>I have to construct the connection string like this in ASP.NET 1.1 f... | [
{
"answer_id": 289576,
"author": "Soraz",
"author_id": 24610,
"author_profile": "https://Stackoverflow.com/users/24610",
"pm_score": 1,
"selected": false,
"text": " local address <stuff> PID\n 0.0.0.0:1433 <some number>\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/289438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13466/"
] |
289,440 | <p>I have a quite big XML output from an application. I need to process it with my program and then feed it back to the original program. There are pieces in this XML which needs to be filled out our replaced. The interesting part looks like this:</p>
<pre><code><sys:customtag sys:sid="1" sys:type="Processtart" /&g... | [
{
"answer_id": 289451,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 7,
"selected": true,
"text": "RegexOptions.Singleline RegexOptions.Multiline"
},
{
"answer_id": 289454,
"author": "Marc Gravell",
"author_id":... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/968/"
] |
289,441 | <p>Is it possible to set some image as title of Navigation bar?</p>
<p>I think NYTimes application used a Navigation bar and title is look like image file (the reason why it's seems <code>UINavigationBar</code> is because they use right button to search).</p>
| [
{
"answer_id": 289446,
"author": "Kendall Helmstetter Gelner",
"author_id": 6330,
"author_profile": "https://Stackoverflow.com/users/6330",
"pm_score": 8,
"selected": true,
"text": "UIImageView UINavigationItem.titleView self.navigationItem.titleView = myImageView;\n"
},
{
"answe... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/451867/"
] |
289,443 | <p>We have a custom project management tool built in ASP,net 3.5 and we use VisualSVN for our version management. However, we are looking a way to report the version changes through the project management tool by integrating VisualSVN with our project management tool, i.e. pretty much similar to what Trac [python base... | [
{
"answer_id": 827418,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 0,
"selected": false,
"text": "$url = `svnlook log -r $ARGV[1] $ARGV[0]`;\n\n# check the string contains the matching regexp, \n# quit if it doesn't so ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,452 | <p>Try as I might, I'm unable to resolve an address to IP. The code snippet is shown below. I keep getting the No such host is known exception, even though I could access google with my browser (The DNS server is almost certainly working). I'm however behind company's firewall.</p>
<pre><code>try
{
foreach (IPAddre... | [
{
"answer_id": 289556,
"author": "Luk",
"author_id": 5789,
"author_profile": "https://Stackoverflow.com/users/5789",
"pm_score": 2,
"selected": false,
"text": " protected void SetupProxy(string proxyUrl, string proxyLogin, string proxyPassword, string[] proxyBypass)\n {\n We... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,468 | <p>I am working on an algorithm that will try to pick out, given an HTML file, what it thinks is the parent element that most likely contains the majority of the page's content text.
For example, it would pick the div "content" in the following HTML:</p>
<pre><code><html>
<body>
<div id="header... | [
{
"answer_id": 290157,
"author": "Borgar",
"author_id": 27388,
"author_profile": "https://Stackoverflow.com/users/27388",
"pm_score": 3,
"selected": false,
"text": "// get array of all elements (body is used as parent here but you could use whatever)\nvar elms = document.body.getElements... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32140/"
] |
289,472 | <p>I just uploaded my first ASP.NET (as part of my learning of vb.net) and got into awful mess with the connection pooling (funny things happen when there are more than 1 user of your web site) all sorted now by better use of the try catch statements (well the idea was to learn) BUT I was wondering if this is the best ... | [
{
"answer_id": 290157,
"author": "Borgar",
"author_id": 27388,
"author_profile": "https://Stackoverflow.com/users/27388",
"pm_score": 3,
"selected": false,
"text": "// get array of all elements (body is used as parent here but you could use whatever)\nvar elms = document.body.getElements... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32336/"
] |
289,475 | <p>I mean what the most efficient way to get information about the quantity of your page's items and make sql query with LIMIT that you need. or I should get all items and then crop array with php functions?</p>
<p>now I do 2 queries: first to count all items and second to get items that I need with LIMIT. </p>
<p... | [
{
"answer_id": 289497,
"author": "Josh Smeaton",
"author_id": 10583,
"author_profile": "https://Stackoverflow.com/users/10583",
"pm_score": 2,
"selected": true,
"text": "select count(*) as counted, name, address\nfrom contact\n SELECT SQL_CALC_FOUND_ROWS, name, address\nfrom contact\n"
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37590/"
] |
289,483 | <p>I have two machines setup to run Visual Studio 2008 (SP1) & NET Framework 3.5 (SP1). If I create a .tt file in a console appliaction on machine #1 it automatically creates the sub .cs file for me, however if I do the exact same on machine #2 then no sub .cs file is created.</p>
<p>I have tried toggling the "Sho... | [
{
"answer_id": 289497,
"author": "Josh Smeaton",
"author_id": 10583,
"author_profile": "https://Stackoverflow.com/users/10583",
"pm_score": 2,
"selected": true,
"text": "select count(*) as counted, name, address\nfrom contact\n SELECT SQL_CALC_FOUND_ROWS, name, address\nfrom contact\n"
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25319/"
] |
289,498 | <p>How do I run a batch file each time windows boots up also I need to run it in the back ground(without that command window getting displayed)? I use Windows Xp.
My actuall requirement is I want to start the Tracd server using the command line commands whenever Windows boots up.</p>
| [
{
"answer_id": 289500,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 6,
"selected": true,
"text": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run registry key\nHKEY_CURRENT_USER\\Software\\Microsoft\\Wind... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13440/"
] |
289,512 | <p>I can't figure out how to define the default constructor (when it exists overloads) for a type in StructureMap (version 2.5) by code.</p>
<p>I want to get an instance of a service and the container has to inject a Linq2Sql data context instance into it.</p>
<p>I wrote this in my 'bootstrapper' method :</p>
<pre><... | [
{
"answer_id": 298392,
"author": "PeterFromCologne",
"author_id": 36546,
"author_profile": "https://Stackoverflow.com/users/36546",
"pm_score": 6,
"selected": true,
"text": "ForRequestedType<MyDataContext>().TheDefault.\nIs.ConstructedBy(() => new MyDataContext());\n"
},
{
"answe... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37592/"
] |
289,513 | <p>I need a javascript regex pattern to match a person's height to check if the input is valid. Here are some sample input:</p>
<p>5' 9"</p>
<p>6'</p>
<p>5'8"</p>
<p>Any ideas?</p>
| [
{
"answer_id": 289516,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 1,
"selected": false,
"text": "\\d'(?:\\s*\\d+'')?\n \\b\\d'(?:\\s*\\d+'')?\\b\n"
},
{
"answer_id": 289538,
"author": "Andrew Hedges",
"author... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,518 | <p>How do I make icons for my exe file when compiling my Python program?</p>
| [
{
"answer_id": 289544,
"author": "UnkwnTech",
"author_id": 115,
"author_profile": "https://Stackoverflow.com/users/115",
"pm_score": 2,
"selected": false,
"text": "'name':APP_NAME,\n'version':'1.0',\n'description':'',\n'author':'',\n'author_email':'',\n'url':'',\n\n'py2exe.target':'',\n'... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,523 | <p>I want to use Oracle exception to handle errors that might happen in the code below. If a user provides the book ID and/or employee ID that doesn't exist in the database, NO_DATA_FOUND exception will be raised. Thus, how can I know which statement raises this exception.</p>
<pre><code>CREATE OR REPLACE PROCEDURE T... | [
{
"answer_id": 289530,
"author": "Ali Ersöz",
"author_id": 4215,
"author_profile": "https://Stackoverflow.com/users/4215",
"pm_score": 2,
"selected": true,
"text": "CREATE OR REPLACE PROCEDURE TEST_EXCEPTION ( book_id_in IN book.book_id%TYPE, emp_id_in IN emp.emp_id%TYPE ) IS\n\nv_book_d... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289523",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1602746/"
] |
289,527 | <p>I have checked in a huge Eclipse project from my desktop computer to the SVN server. I did it using the command line. However, by mistake I committed all the compiled classes also in the server.</p>
<p>For every plug-in, there is a directory /bin/ that contains the compiled classes.</p>
<p>Is there a way to quic... | [
{
"answer_id": 289531,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "'svn rm --keep-local'"
},
{
"answer_id": 289539,
"author": "Jason Coco",
"author_id": 34218,
"author_profile... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2309/"
] |
289,529 | <p>I am new to decoding techniques and have just learnt about base64, sha-1, md5 and a few others yesterday. </p>
<p>I have been trying to figure out what "orkut" worms actually contain. </p>
<p>I was attacked by many orkut spammers and hackers in the past few days, and there is a similarity in the URLs that they sen... | [
{
"answer_id": 294110,
"author": "geocar",
"author_id": 37507,
"author_profile": "https://Stackoverflow.com/users/37507",
"pm_score": 2,
"selected": false,
"text": "JSHDF[\"Page.signature.raw\"]"
},
{
"answer_id": 1035429,
"author": "maxwellb",
"author_id": 118098,
"a... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37600/"
] |
289,537 | <p>Does anyone know a simple algorithm to check if a Sudoku-Configuration is valid? The simplest algorithm I came up with is (for a board of size n) in Pseudocode</p>
<pre><code>for each row
for each number k in 1..n
if k is not in the row (using another for-loop)
return not-a-solution
..do the same for e... | [
{
"answer_id": 289666,
"author": "Ralph M. Rickenbach",
"author_id": 4549416,
"author_profile": "https://Stackoverflow.com/users/4549416",
"pm_score": 1,
"selected": false,
"text": "when the sum of each row/column/box equals n*(n+1)/2\nand the product equals n!\nwith n = number of rows o... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18670/"
] |
289,559 | <p>The C++ standard dictates that member variables inside a single access section must be layed out in memory in the same order they were declared in. At the same time, compilers are free to choose the mutual ordering of the access sections themselves. This freedom makes it impossible in theory to link binaries creat... | [
{
"answer_id": 289671,
"author": "Sunlight",
"author_id": 33650,
"author_profile": "https://Stackoverflow.com/users/33650",
"pm_score": 4,
"selected": true,
"text": "operator new delete class struct [u]int[8|16|32|64]_t"
},
{
"answer_id": 289679,
"author": "Ricardo Amores",
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37602/"
] |
289,568 | <p>The C++ standard imposes an ordering on class member variables in memory. It says that the addresses of member variables have to increase in the order of declaration, but only inside one access section. Very specifically, this does not seem to prevent compilers from laying out access sections in an interleaved way... | [
{
"answer_id": 290159,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": false,
"text": "Implementation alignment require-\nments might cause two adjacent members not to be allocated immediately a... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37602/"
] |
289,572 | <p>Is there a USB HID pen driver in Windows Vista?
If so, what are the requirements for USB descriptors, in order to make Windows Vista recognize the pen and load the pen driver?</p>
<p>What I'm searching for is the pen equivalent to the HID mouse driver, HID keyboard driver and mass storage driver. The mentioned exa... | [
{
"answer_id": 290159,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": false,
"text": "Implementation alignment require-\nments might cause two adjacent members not to be allocated immediately a... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,578 | <p>Recently when I looked into iPhone memory management, I tried to compare the convenience method and init method on the same object. For example, I have UIImageView where it displays a downloaded NSData:</p>
<p>Convenience method:</p>
<pre><code>imageView.image = [UIImage imageWithData:[downloads dataAtIndex:0]];
<... | [
{
"answer_id": 290816,
"author": "wisequark",
"author_id": 33159,
"author_profile": "https://Stackoverflow.com/users/33159",
"pm_score": 2,
"selected": false,
"text": "NSAutoreleasePool"
},
{
"answer_id": 860623,
"author": "Heat Miser",
"author_id": 3484,
"author_prof... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30883/"
] |
289,586 | <p>How can I check which version of Apache is installed on a Debian machine? </p>
<p>Is there a command for doing this?</p>
| [
{
"answer_id": 289589,
"author": "Todd Gamblin",
"author_id": 9122,
"author_profile": "https://Stackoverflow.com/users/9122",
"pm_score": 9,
"selected": false,
"text": "$ apachectl -V\nServer version: Apache/2.2.9 (Unix)\nServer built: Sep 18 2008 21:54:05\nServer's Module Magic Number... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37603/"
] |
289,601 | <p><strong>Sorry answer found while typing</strong> </p>
<p>I am trying to connect to an external webservice that requires username/password authentication through a proxy. I am using Visual Studio Express 2008 to generate a service reference</p>
<ul>
<li>I have connected to the same
webservice using a web referen... | [
{
"answer_id": 289607,
"author": "KeesDijk",
"author_id": 6434,
"author_profile": "https://Stackoverflow.com/users/6434",
"pm_score": 3,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<customBinding>\n <binding name=\"AreaWebServiceSoap12\" closeTimeou... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6434/"
] |
289,622 | <p>Now that I've finnaly moved to doing some development/support work for Windows 2008 I find myself annoyed by the lack of one feature I just can't enable: the desktop shortcut to "My Computer" I've grown used to. I know how to enable this on XP and 2003, but I just can't find the setting on 2008.</p>
<p>How can a u... | [
{
"answer_id": 4173037,
"author": "IsiaNT",
"author_id": 506773,
"author_profile": "https://Stackoverflow.com/users/506773",
"pm_score": 3,
"selected": false,
"text": ".reg Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17007/"
] |
289,626 | <p>As being quite a newbie in linux, I have the follwing question.
I have list of files (this time resulting from svn status) and i want to create a script to loop them all and replace tabs with 4 spaces.</p>
<p>So I want from </p>
<pre><code>....
D HTML/templates/t_bla.tpl
M HTML/templates/t_list_markt.tpl... | [
{
"answer_id": 289640,
"author": "Dan Fego",
"author_id": 34426,
"author_profile": "https://Stackoverflow.com/users/34426",
"pm_score": 2,
"selected": false,
"text": "for i in files\ndo\n sed -i 's/\\t/ /' \"$i\"\ndone\n"
},
{
"answer_id": 289643,
"author": "Adam Byrtek... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30759/"
] |
289,628 | <p>HI,</p>
<p>I have 3 tables: <strong>Clips</strong>, <strong>Books</strong> and relationships between <strong>ClipBook</strong></p>
<p><strong>Problem is:</strong>
i need get <strong>book</strong> that has <strong>bookID=4</strong> with some clips i mean many-to-many</p>
<p>in simple text sql it will be something ... | [
{
"answer_id": 289640,
"author": "Dan Fego",
"author_id": 34426,
"author_profile": "https://Stackoverflow.com/users/34426",
"pm_score": 2,
"selected": false,
"text": "for i in files\ndo\n sed -i 's/\\t/ /' \"$i\"\ndone\n"
},
{
"answer_id": 289643,
"author": "Adam Byrtek... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2246271/"
] |
289,649 | <p>I'm trying to reorder/group a set of results using SQL. I have a few fields (which for the example have been renamed to something a bit less specific), and each logical group of records has a field which remains constant - the address field. There are also fields which are present for each address, these are the sam... | [
{
"answer_id": 289658,
"author": "Chad",
"author_id": 37309,
"author_profile": "https://Stackoverflow.com/users/37309",
"pm_score": 0,
"selected": false,
"text": "SELECT Address,Name FROM Table GROUP BY Name\n"
},
{
"answer_id": 289660,
"author": "Jonathan",
"author_id": ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30512/"
] |
289,665 | <p>I'm an avid vim user and have started to write some SQL code recently. I like to write my SQL statements in CAPS and sometimes forget to switch <kbd>CapsLock</kbd> 'off' and I then quickly wreak havoc on my code before I realise what's happening.</p>
<p>I have so far not found any way to tell whether the <kbd>CapsL... | [
{
"answer_id": 289948,
"author": "rampion",
"author_id": 9859,
"author_profile": "https://Stackoverflow.com/users/9859",
"pm_score": 3,
"selected": true,
"text": " \" let the case be toggled in normal mode\n map <expr> <F3> ToggleInsertCase()\n \" let the case be toggled in inse... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34772/"
] |
289,668 | <p>I don't know what commands to enter into the setup.py file when compiling a python program to use my icons. Can anyone help me?
Thanks in advance.</p>
| [
{
"answer_id": 289784,
"author": "Kirill Titov",
"author_id": 25705,
"author_profile": "https://Stackoverflow.com/users/25705",
"pm_score": 3,
"selected": false,
"text": "from distutils.core import setup\nimport py2exe\nsetup(\n windows=[{\"script\": 'app.py', \"icon_resources\": ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,672 | <p>Delphi object inspector doesn't show TFrame descendants's additional properties by design.
People tend to suggest using a known trick which is commonly used for showing TForm descendant's properties on the Object inspector. The trick is: registering custom module for TForm descendants to Delphi IDE via design time p... | [
{
"answer_id": 289934,
"author": "Ondrej Kelle",
"author_id": 11480,
"author_profile": "https://Stackoverflow.com/users/11480",
"pm_score": 2,
"selected": false,
"text": "unit FrameTestReg;\n\ninterface\n\nprocedure Register;\n\nimplementation\n\nuses\n Windows, DesignIntf,\n FrameTest... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37601/"
] |
289,680 | <p>How do I get the difference in days between 2 dates in SQLite? I have already tried something like this:</p>
<pre><code>SELECT Date('now') - DateCreated FROM Payment
</code></pre>
<p>It returns 0 every time.</p>
| [
{
"answer_id": 289686,
"author": "Fred",
"author_id": 33630,
"author_profile": "https://Stackoverflow.com/users/33630",
"pm_score": 8,
"selected": true,
"text": " SELECT julianday('now') - julianday(DateCreated) FROM Payment;\n"
},
{
"answer_id": 295665,
"author": "converter4... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,681 | <p>I'm trying to use the < C-a> (<kbd>CTRL</kbd>+<kbd>A</kbd>) shorcut under vim to increment a variable under the cursor. This works fine under vim running on Linux. However when I try to do this in gvim under windows it "selects all" (i.e. highlights or visually selects all text in the current window). How can I c... | [
{
"answer_id": 289691,
"author": "Michael Madsen",
"author_id": 27528,
"author_profile": "https://Stackoverflow.com/users/27528",
"pm_score": 2,
"selected": false,
"text": "*c_CTRL-A*\nCTRL-A All names that match the pattern in front of the cursor are\n inserted.\n"
}... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34772/"
] |
289,688 | <p>I have hit a classic problem of needing to do a string replace on a text field in an sql 2000 database. This could either be an update over a whole column or a single field I'm not fussy.</p>
<p>I have found a few examples of how to use updatetext to achieve it but they tend to be in stored procedures, does anyone ... | [
{
"answer_id": 289803,
"author": "kristof",
"author_id": 3241,
"author_profile": "https://Stackoverflow.com/users/3241",
"pm_score": 3,
"selected": true,
"text": "create function dbo.textReplace(\n@inText as text)\nreturns text\nas \nbegin\n return 'a' -- just dummy code\nend\n The te... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
289,702 | <p>I am writing unit tests for a class, which has a static final variable.
However, since the state of the static final var is modified in each test, I need some way to reinitialize it.</p>
<p>
How would this be possible? Would i need to use some sort of a custom classloader? </p>
<p>
The variable is initialized as -... | [
{
"answer_id": 289707,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 2,
"selected": false,
"text": "perTest"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/289702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14316/"
] |
289,712 | <p>As a long time Pascal and Delphi developer, I always line up my begin and ends thus :</p>
<pre><code>begin
if x = y then
begin
...
...
end
else
for i := 0 to 20 do
begin
...
...
end;
end;
</code></pre>
<p>What drives me nuts is code formatted thus :</p>
<pre><code>begin
... | [
{
"answer_id": 289732,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": "IF x = y THEN\n ....\nEND;\n if x = y then begin\n ....\nend;\n"
},
{
"answer_id": 289826,
"author": "g... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22712/"
] |
289,715 | <p>I am looking for the highest key value (a defined by the comparison operator) of a std::map.</p>
<p>Is this guaranteed to be </p>
<pre><code>map.rbegin()->first
</code></pre>
<p>? </p>
<p>(I am a bit shaky on reverse iterators, and how much freedom there is in the implementation of std::map) </p>
<p>If not, ... | [
{
"answer_id": 289834,
"author": "CB Bailey",
"author_id": 19563,
"author_profile": "https://Stackoverflow.com/users/19563",
"pm_score": 5,
"selected": false,
"text": "map.rbegin() != map.rend()"
},
{
"answer_id": 40734035,
"author": "birubisht",
"author_id": 1613219,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31317/"
] |
289,727 | <p>Since MySQL doesn't seem to have any 'boolean' data type, which data type do you 'abuse' for storing true/false information in MySQL?</p>
<p>Especially in the context of writing and reading from/to a PHP script.</p>
<p>Over time I have used and seen several approaches:</p>
<ul>
<li>tinyint, varchar fields contain... | [
{
"answer_id": 289759,
"author": "markus",
"author_id": 11995,
"author_profile": "https://Stackoverflow.com/users/11995",
"pm_score": 11,
"selected": true,
"text": "BIT BOOL BOOLEAN"
},
{
"answer_id": 289767,
"author": "Philip Morton",
"author_id": 21709,
"author_prof... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,729 | <p>I'm just starting to try out phpunit on some existing code. The naming convention we use is that the MyClass class should be in MyClass.class.php. PHPUnit seems to require that the file should be called MyClass.php. </p>
<p>Is there any way around this?</p>
<p>I noticed it while trying to generate a skeleton test ... | [
{
"answer_id": 289758,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 4,
"selected": true,
"text": "phpunit --skeleton-test MyClass MyClass.class.php\n Usage: phpunit [switches] UnitTest [UnitTest.php]\n phpu... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11542/"
] |
289,731 | <p>During navigation of the <code>java.lang.reflect.Method</code> class I came across the method <code>isBridge</code>. Its Javadoc says that it returns true only if the Java spec declares the method as true.</p>
<p>Please help me understand what this is used for! Can a custom class declare its method as a bridge if r... | [
{
"answer_id": 289745,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 6,
"selected": true,
"text": "class C<T> { abstract T id(T x); }\nclass D extends C<String> { String id(String x) { return x; } }\n C c = new D();\nc.id(new O... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11614/"
] |
289,733 | <p>I have a logical error. I provided the following as input:</p>
<ul>
<li>the salary is 30000</li>
<li>the child n° is 9</li>
</ul>
<p>So the the net salary will be:</p>
<ul>
<li><p>the family bonus + salary - tax</p>
<pre><code> (750) + (30000) - (3000)
</code></pre></li>
<li><p>but my program count them as... | [
{
"answer_id": 289755,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "public double getTax()\n{\n if (Salary < 10000)\n tax = 0;\n if (Salary <= 10000 && Salary >= 20000)\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,735 | <pre><code>import sys
words = {
1 : 'one',
2 : 'two',
3 : 'three',
4 : 'four',
5 : 'five',
6 : 'six',
7 : 'seven',
8 : 'eight',
9 : 'nine',
10 : 'ten',
11 : 'eleven',
12 : 'twelve',
13 : 'thirteen',
14 : 'fourteen',
15 : 'fifteen',
16 : 'sixteen',
17 ... | [
{
"answer_id": 289766,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 3,
"selected": true,
"text": "range(0,len(),3) def segment( n ):\n segList= []\n while len(n) > 3:\n segList.insert( 0, n[-3:] )\n n= n[:-... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11110/"
] |
289,743 | <p>Our coding standards ask that we minimise the use of C# var (suggests limiting it's use to being in conjunction with Linq). However there are times when using generics where it's reasonably convenient e.g.</p>
<pre><code>Dictionary<DateTime, Dictionary<string, float>> allValues = ...
// ...
foreach (var... | [
{
"answer_id": 289781,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "pair var i = 0"
},
{
"answer_id": 289816,
"author": "Marc Gravell",
"author_id": 23354,
"author_pr... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5764/"
] |
289,751 | <p>During development I have to "clear cache" in Firefox all the time in order to make it use the latest version of JavaScript files.</p>
<p>Is there some kind of setting (about:config) to turn off caching completely for JavaScript files? Or, if not, for all files?</p>
| [
{
"answer_id": 289771,
"author": "tst",
"author_id": 36232,
"author_profile": "https://Stackoverflow.com/users/36232",
"pm_score": 9,
"selected": true,
"text": "browser.cache.disk.enable = false\nbrowser.cache.memory.enable = false\n browser.cache.offline.enable = false\n"
},
{
"... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14955/"
] |
289,756 | <p>how do i make an autocomplete textbox in asp?
but i need to get the autocomplete data by querying the database.
I dont really know how to explain this, sory if theres not enough detail.
i cant use ajax, because i think i will have compability issues with my old app.
so im thinking of doing this using java script. ... | [
{
"answer_id": 289805,
"author": "Phil Jenkins",
"author_id": 35496,
"author_profile": "https://Stackoverflow.com/users/35496",
"pm_score": 2,
"selected": false,
"text": "ServiceMethod EnablePageMethods true <asp:ScriptManager>"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/289756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23491/"
] |
289,760 | <p>I need to automatically copy files from a linux machine to a windows one every day. </p>
<p>I'm looking for something simple and secure like scp, rsync, sftp. Unfortunately, I'm at a loss of how to set this up on the Windows machine.</p>
<p>Does anyone know how to do this?</p>
| [
{
"answer_id": 290470,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "man smbclient -c man expect mkdir /mnt/sharename smbclient -L WINDOWSHOSTNAME //WINDOWSHOSTNAME/sharename /mnt/sharename cifs... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,770 | <p>In the past I've always gone and called my namespace for a particular project the same as the project (and principle class) e.g.:</p>
<pre><code>namespace KeepAlive
{
public partial class KeepAlive : ServiceBase
{...
</code></pre>
<p>Then from other projects whenever i've called that class its always been:... | [
{
"answer_id": 289827,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 4,
"selected": true,
"text": " CompanyName.ProductName\n CompanyName.ProductName.Data\n CompanyName.ProductName.Web\n CompanyName.ProductName.Web.Sh... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/445/"
] |
289,773 | <p>I use the app.config file to store some values (path to a mapping database, data connection selections). These settings differ on the user machines and I would like the installer to set them right. Is there an installer that can work with .NET config files during setup and allow me to create some dialogs that would ... | [
{
"answer_id": 290374,
"author": "CheGueVerra",
"author_id": 17787,
"author_profile": "https://Stackoverflow.com/users/17787",
"pm_score": 7,
"selected": true,
"text": "<Component Id=\"ChangeConfig\" Guid=\"[YOUR_GUID_HERE]\">\n <File Id=\"App.config\" Name=\"MyApplication.exe.config\"... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289773",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4694/"
] |
289,779 | <p>I am working on a project where I need to create a boundary around a group of rectangles.</p>
<p>Let's use this picture as an example of what I want to accomplish.</p>
<p>EDIT: Couldn't get the image tag to work properly, so here is the full link:
<a href="http://www.flickr.com/photos/21093416@N04/3029621742/" rel... | [
{
"answer_id": 289829,
"author": "Nailer",
"author_id": 37346,
"author_profile": "https://Stackoverflow.com/users/37346",
"pm_score": 0,
"selected": false,
"text": " LinkRectsConnectedTo(Rectangle rectangle,Edge startEdge) // Edge can be West,North,East,South \n for each edge in recta... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37346/"
] |
289,792 | <p>What is the best way to convert an Int value to the corresponding Char in Utf16, given that the Int is in the range of valid values?</p>
| [
{
"answer_id": 289814,
"author": "Corey Trager",
"author_id": 9328,
"author_profile": "https://Stackoverflow.com/users/9328",
"pm_score": 6,
"selected": false,
"text": "int i = 65;\nchar c = Convert.ToChar(i);\n"
},
{
"answer_id": 289815,
"author": "gimel",
"author_id": 6... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2892/"
] |
289,794 | <p>I have an arraylist that contains items called Room. Each Room has a roomtype such as kitchen, reception etc.
I want to check the arraylist to see if any rooms of that type exist before adding it to the list.
Can anyone recommend a neat way of doing this without the need for multiple foreach loops?</p>
<p>(.NET 2.0... | [
{
"answer_id": 289810,
"author": "Bluenuance",
"author_id": 33111,
"author_profile": "https://Stackoverflow.com/users/33111",
"pm_score": 1,
"selected": false,
"text": "if (!rooms.Any (r => r.RoomType == typeToFind /*kitchen, ...*/))\n //add it or whatever\n"
},
{
"answer_id": 2... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35441/"
] |
289,800 | <p>I have installed m2eclipse plugin from <a href="http://web.archive.org/web/20150524020820/http://m2eclipse.codehaus.org/" rel="nofollow noreferrer">http://m2eclipse.codehaus.org/</a>. Now I want to use that as a standalone build tool but I am unable to find the installation directory. Can anyone help me in this?</p>... | [
{
"answer_id": 289986,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 3,
"selected": false,
"text": "C:\\Documents and Settings\\user\\.m2"
},
{
"answer_id": 39479104,
"author": "Deepak Kumar Verma",
"author_i... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37626/"
] |
289,801 | <p>I'm searching for a way of developing a MethodInterceptor which prints the caller class.</p>
<p>Is there any way of getting the caller object into the method interceptor?</p>
| [
{
"answer_id": 876341,
"author": "bwobbones",
"author_id": 213719,
"author_profile": "https://Stackoverflow.com/users/213719",
"pm_score": 3,
"selected": true,
"text": "\nThrowable t = new Throwable();\nStackTraceElement[] elements = t.getStackTrace();\n\nString calleeMethod = elements[0... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2937/"
] |
289,804 | <p>I've written a program that counts lines, words, and characters in a text: it does this with threads. It works great sometimes, but not so great other times. What ends up happening is the variables pointing to the number of words and characters counted sometimes come up short and sometimes don't.</p>
<p>It seems to... | [
{
"answer_id": 289851,
"author": "WMR",
"author_id": 2844,
"author_profile": "https://Stackoverflow.com/users/2844",
"pm_score": 2,
"selected": false,
"text": "chars words this this AtomicInteger chars = new AtomicInteger();\n...\nnew Thread(new Runnable() {public void run() { chars.addA... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
289,809 | <p>how come this work </p>
<pre><code>public IQueryable<Category> getCategories(int postId)
{
subnusMVCRepository<Categories> categories = new subnusMVCRepository<Categories>();
subnusMVCRepository<Post_Category_Map> postCategoryMap = new subnusMVCRepository<Post_Category_Map... | [
{
"answer_id": 289844,
"author": "Alexandre Brisebois",
"author_id": 18619,
"author_profile": "https://Stackoverflow.com/users/18619",
"pm_score": 0,
"selected": false,
"text": "subnusMVCRepository<Categories> categories = new subnusMVCRepository<Categories>();\nsubnusMVCRepository<Post_... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31296/"
] |
289,812 | <p>What is the best approach to play a sequence of flv video files in Flash (with actionscript)? My goal is to have the transitions occur as smoothly as possible.</p>
<p>Currently i'm using the netStream class and capturing the onStatus events to play the next video when the current video has reached it's end duration... | [
{
"answer_id": 289844,
"author": "Alexandre Brisebois",
"author_id": 18619,
"author_profile": "https://Stackoverflow.com/users/18619",
"pm_score": 0,
"selected": false,
"text": "subnusMVCRepository<Categories> categories = new subnusMVCRepository<Categories>();\nsubnusMVCRepository<Post_... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289812",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37630/"
] |
289,825 | <p>Why EAccessViolation is raised when executing the code below? </p>
<pre><code>uses
Generics.Collections;
...
var
list: TList<TNotifyEvent>;
...
begin
list := TList<TNotifyEvent>.Create();
try
list.Add(myNotifyEvent);
list.Remove(myNotifyEvent); // EAccessViolation at address...
... | [
{
"answer_id": 289870,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "uses \n Generics.Collections;\n\nprocedure TForm1.Button1Click(Sender: TObject);\nvar\n list: TList<TNotifyEvent>;\nbegin\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,831 | <p>During our build process we run <code>aspnet_compiler.exe</code> against our websites to make sure that all the late-bound stuff in ASP.NET/MVC actually builds (I know nothing about ASP.NET but am assured this is necessary to prevent finding the failures at runtime).</p>
<p>Our sites are fairly large in size, with ... | [
{
"answer_id": 14349879,
"author": "JerKimball",
"author_id": 48692,
"author_profile": "https://Stackoverflow.com/users/48692",
"pm_score": 3,
"selected": false,
"text": "aspnet_compiler aspnet_compiler.exe"
},
{
"answer_id": 50762404,
"author": "Alex from Jitbit",
"autho... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13552/"
] |
289,841 | <p>In OOP languages like C# or VB.NET, if I make the properties or methods in a super class <code>protected</code> I can't access them in my Form - they can only be accessed in my class that inherits from that super class.</p>
<p>To access those properties or methods I need to make them <code>public</code>, which defe... | [
{
"answer_id": 289891,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 2,
"selected": true,
"text": "private"
},
{
"answer_id": 10301924,
"author": "supercat",
"author_id": 363751,
"author_profile": "https... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,843 | <p>Can anyone give me details of </p>
<blockquote>
<p>runtime error 3734</p>
</blockquote>
<p>in Access vba.</p>
<p>For reference i am getting it from a code in the following thread</p>
<p><a href="https://stackoverflow.com/questions/233026/how-to-run-a-loop-of-queries-in-access">How to run a loop of queries in a... | [
{
"answer_id": 294363,
"author": "David-W-Fenton",
"author_id": 9787,
"author_profile": "https://Stackoverflow.com/users/9787",
"pm_score": 1,
"selected": false,
"text": " Dim db As DAO.Database\n Dim qdf As DAO.QueryDef\n\n Set db = CurrentDB()\n\n For Each qdf in db.QueryDef\n [... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31132/"
] |
289,845 | <p>Why must <code>Type.Equals(t1, t2)</code> be used to determine equivalent types, and not the equality operator (e.g. for VB.NET, <code>t1 = t2</code>)? </p>
<p>It seems inconsistent with other parts of the .NET API.</p>
<p>Example in VB.NET:</p>
<p><code>If GetType(String) = GetType(String) Then
Debug.Print(... | [
{
"answer_id": 289880,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "is IsInstanceOf Typeof a Is Boolean\n\na.GetType().IsAssignableFrom( b.GetType() )\n"
},
{
"answer_id": 290977,... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,850 | <p>There is a space of x*y for text to go on $im (GD Image Resource) how can I choose a font size (or write text such that) it does not overflow over that area?</p>
| [
{
"answer_id": 289880,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "is IsInstanceOf Typeof a Is Boolean\n\na.GetType().IsAssignableFrom( b.GetType() )\n"
},
{
"answer_id": 290977,... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21559/"
] |
289,865 | <p>I have a web page that uses a frameset.</p>
<p>Due to scripting and object dependencies, I need to load the frames in a specific order.</p>
<p>I have used this example as a template:
<a href="http://javascript.internet.com/navigation/frames-load-order.html" rel="nofollow noreferrer">The JavaScript Source: Navigati... | [
{
"answer_id": 291419,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 0,
"selected": false,
"text": "<html>\n<head>\n<script>\nfunction makeFrame(frameName) {\n var newFrame = document.createElement('f... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,875 | <p>The assembly it's trying to find isn't the root assembly - it's a referenced one, but it's in the same folder, and Directory.GetCurrentDirectory() is the folder with all of the files in.</p>
<p>I'm stuck - any suggestions?</p>
| [
{
"answer_id": 289877,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 3,
"selected": true,
"text": "AppDomain AppDomain AppDomain.AssemblyResolve"
},
{
"answer_id": 290175,
"author": "Chris Marisic",
"au... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26874/"
] |
289,900 | <p>I am working on turbo C on windows where char takes one byte.Now my problem is with the below union.</p>
<pre><code>union a
{
unsigned char c:2;
}b;
void main()
{
printf("%d",sizeof(b)); \\or even sizeof(union a)
}
</code></pre>
<p><p>This program is printing output as 2 where as union should be taking only 1 by... | [
{
"answer_id": 289925,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 1,
"selected": false,
"text": "The operand of the unary & operator shall be either a function\ndesignator or an lvalue that designates an ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31116/"
] |
289,909 | <p>I can't find a pre-built set of MSVC++ libs for Boost 1.37.0, only the source. I don't understand how their weird build system works... are there any places I can find a download of a visual studio project or something?</p>
| [
{
"answer_id": 289983,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 2,
"selected": false,
"text": "bjam --help bjam --prefix=C:\\boost --build-dir=C:\\build --build-type=complete install\n"
},
{
"answer_id": 28999... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13220/"
] |
289,914 | <p>I know what I'm looking for is probably a security hole, but since I managed to do it in Oracle and SQL Server, I'll give it a shot:</p>
<p>I'm looking for a way to execute a shell command from a SQL script on MySQL. It is possible to create and use a new stored procedure if necessary.</p>
<p>Notice: I'm not looki... | [
{
"answer_id": 300845,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 2,
"selected": true,
"text": "START TRANSACTION;\nCALL MyProcedure();\nROLLBACK;\n MyProcedure"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/289914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9941/"
] |
289,916 | <p>I always hear that using "lastInsertId" (or mysql_insert_id() if you're not using PDO) is evil. In case of triggers it obviously is, because it could return something that's totally not the last ID that your INSERT created.</p>
<pre><code>$DB->exec("INSERT INTO example (column1) VALUES ('test')");
// Usually ret... | [
{
"answer_id": 289928,
"author": "Peter Howe",
"author_id": 24106,
"author_profile": "https://Stackoverflow.com/users/24106",
"pm_score": 0,
"selected": false,
"text": "INSERT INTO example (column1) VALUES ('test');\nSELECT id FROM example WHERE column1 = 'test';\n"
},
{
"answer_... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/999/"
] |
289,936 | <p>How to get the number of years between two <code>java.util.Date</code>?</p>
<p><strong>Note:</strong> using only <code>java.util.Date</code></p>
| [
{
"answer_id": 289947,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 3,
"selected": false,
"text": "long msDiff = date1.getTime() - date2.getTime();\nint yearDiff = (int)(msDiff / 1000 / 60 / 60 / 24 / 365.25);\n"
},
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
289,951 | <p>Can I use Xpath node set function position() in Delphi's function selectNodes() to select only a certain number of element from a node list? If I do like this: </p>
<pre><code>selectNodes('Item[1]')
</code></pre>
<p>its all fine and I get the element with index 1, but when I try </p>
<pre><code>selectNodes('Item... | [
{
"answer_id": 289968,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 0,
"selected": false,
"text": "selectNodes('Item[position()<10]')\n"
},
{
"answer_id": 290029,
"author": "Oliver Giesen",
"author_id... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26207/"
] |
289,965 | <p>I would like to create a simple program (in Java) which edits text files - particularly one which performs inserting arbitrary pieces of text at random positions in a text file. This feature is part of a larger program I am currently writing.</p>
<p>Reading the description about java.util.RandomAccessFile, it appea... | [
{
"answer_id": 6235119,
"author": "S.Yavari",
"author_id": 526196,
"author_profile": "https://Stackoverflow.com/users/526196",
"pm_score": 2,
"selected": false,
"text": "BufferedReader reader = null;\nBufferedWriter writer = null;\nArrayList list = new ArrayList();\n\ntry {\n reader =... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37651/"
] |
289,972 | <p>Is it possible to use e.g. SQLite with PowerBuilder? I need an embedded open source database (no additional costs). </p>
| [
{
"answer_id": 854940,
"author": "Dan Cooperstock",
"author_id": 105734,
"author_profile": "https://Stackoverflow.com/users/105734",
"pm_score": 1,
"selected": false,
"text": "[Firebird]\nPBSyntax='Firebird_SYNTAX'\nPBNoCatalog='YES'\n\n[Firebird_SYNTAX]\nCreateTable='CREATE TABLE &Table... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4235/"
] |
289,978 | <p>I've got mssql 2005 running on my personal computer with a database I'd like to run some python scripts on. I'm looking for a way to do some really simple access on the data. I'd like to run some select statements, process the data and maybe have python save a text file with the results.</p>
<p>Unfortunately, even ... | [
{
"answer_id": 291473,
"author": "ConcernedOfTunbridgeWells",
"author_id": 15401,
"author_profile": "https://Stackoverflow.com/users/15401",
"pm_score": 4,
"selected": false,
"text": "import odbc\n\nCONNECTION_STRING=\"\"\"\nDriver={SQL Native Client};\nServer=[Insert Server Name Here];\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25680/"
] |
289,979 | <p>I want to automate tests on my web application, and it uses postgresql. Does anyone know how define a restore point on a postgresql database and restore to an earlier state?
I heard something about point in time recovery, but i dont if this is what i need.</p>
<p>Thanks in advance</p>
| [
{
"answer_id": 291473,
"author": "ConcernedOfTunbridgeWells",
"author_id": 15401,
"author_profile": "https://Stackoverflow.com/users/15401",
"pm_score": 4,
"selected": false,
"text": "import odbc\n\nCONNECTION_STRING=\"\"\"\nDriver={SQL Native Client};\nServer=[Insert Server Name Here];\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37650/"
] |
289,980 | <p>Given the following class: </p>
<pre><code>class TestClass {
public void SetValue(int value) { Value = value; }
public int Value { get; set; }
}
</code></pre>
<p>I can do </p>
<pre><code>TestClass tc = new TestClass();
Action<int> setAction = tc.SetValue;
setAction.Invoke(12);
</code></pre>
<p>which is... | [
{
"answer_id": 289985,
"author": "Kieron",
"author_id": 5791,
"author_profile": "https://Stackoverflow.com/users/5791",
"pm_score": 2,
"selected": false,
"text": "var propertyInfo = typeof (TestClass).GetProperty (\"Value\");\n\nvar setMethod = property.GetSetMethod (); // This will retu... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/143/"
] |
289,997 | <p>What does "Overloaded"/"Overload" mean in regards to programming?</p>
| [
{
"answer_id": 290003,
"author": "Filip Frącz",
"author_id": 21704,
"author_profile": "https://Stackoverflow.com/users/21704",
"pm_score": 6,
"selected": true,
"text": "void doSomething();\nint doSomething(string x);\nint doSomething(int a, int b, int c);\n"
},
{
"answer_id": 290... | 2008/11/14 | [
"https://Stackoverflow.com/questions/289997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21559/"
] |
290,007 | <p>Imagine you had a group of product categories organized in a nice tree hierarchy and you wanted to provide hackable urls to browse these. You could do something like this</p>
<pre><code>/catalog/categorya/categoryb/categoryc
</code></pre>
<p>You could then quite easily figure out which category you should list the... | [
{
"answer_id": 311192,
"author": "Chris Lloyd",
"author_id": 42413,
"author_profile": "https://Stackoverflow.com/users/42413",
"pm_score": 3,
"selected": false,
"text": "/catalog/games/consoles/playstation/adventure/oblivion\n adventure /catalog/games/consoles/playstation/oblivion\n /cat... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25319/"
] |
290,011 | <p>I distribute my application using a VS2008 install package, which normally works great. When I create new versions of the app, I go in and increment the <code>Version</code> property on the install package and verify the <code>RemovePreviousVersions</code> property is set to True.</p>
<p>This works just fine most ... | [
{
"answer_id": 2294911,
"author": "Jinal Desai - LIVE",
"author_id": 276758,
"author_profile": "https://Stackoverflow.com/users/276758",
"pm_score": 2,
"selected": false,
"text": " a. Install orca into your computer.\n b. Open orca\n c. Drag and drop your msi into orca UI\n d. Into left ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35229/"
] |
290,018 | <p>I have a Repeater control on ASPX-page defined like this:</p>
<pre><code><asp:Repeater ID="answerVariantRepeater" runat="server"
onitemdatabound="answerVariantRepeater_ItemDataBound">
<ItemTemplate>
<asp:RadioButton ID="answerVariantRadioButton" runat="server"
GroupName="a... | [
{
"answer_id": 290295,
"author": "Kevin Gorski",
"author_id": 35806,
"author_profile": "https://Stackoverflow.com/users/35806",
"pm_score": 2,
"selected": false,
"text": "RadioButton checked = \n (from item in answerVariantRepeater.Items\n let radioButton = (RadioButton)item.FindCo... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
290,034 | <p>I've got a bunch of legacy code that I need to write unit tests for. It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests.</p>
<p>My first instinct is to remove all these stdafx.h files which, for the... | [
{
"answer_id": 35518943,
"author": "riderBill",
"author_id": 4079867,
"author_profile": "https://Stackoverflow.com/users/4079867",
"pm_score": 0,
"selected": false,
"text": "#include <bigHeader1.h>\n#include ...\n #include \"pch1.h\"\n #include \"pch1.h\"\n[code]\n #include <bigHeader2.h... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4086/"
] |
290,035 | <p>Does anyone know in .Net 2.0 - .Net 3.5 how to load a jpeg into a System.Windows.Forms.WebControl as a byte-array and with the right mimetypes set so it will show?</p>
<p>Something like:<br></p>
<pre><code>webBrowser1.DocumentStream = new MemoryStream(File.ReadAllBytes("mypic.jpg"));
webBrowser1.DocumentType = "ap... | [
{
"answer_id": 291839,
"author": "hangy",
"author_id": 11963,
"author_profile": "https://Stackoverflow.com/users/11963",
"pm_score": 0,
"selected": false,
"text": "WebBrowser Image someImage = Image.FromFile(\"mypic.jpg\");\n\n// Firstly, get the image as a base64 encoded string\nImageCo... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37643/"
] |
290,037 | <p>Is there anything we can do either in code (ASP/JavaScript) or in Excel so that the comma separated values end up in separate columns in Excel?</p>
| [
{
"answer_id": 893506,
"author": "ceetheman",
"author_id": 16154,
"author_profile": "https://Stackoverflow.com/users/16154",
"pm_score": 0,
"selected": false,
"text": "private void ExportToXLSFromDataTable(DataTable dtExport, string filename)\n{\n StringBuilder dataToExport = new Stri... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,038 | <p>In C++, is the return type considered part of the function signature? and no overloading is allowed with just return type modified.</p>
| [
{
"answer_id": 290048,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 8,
"selected": true,
"text": "1.3.10 14.5.5.1 1.3.10 void f();\nint (*pf)() = &f; // different types!\n int f();\ndouble f(); // invalid\n... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
290,043 | <p>I’m trying to make the routing module works with default action or controller, but it doesn’t. I always face with 404 page not found. Did I forget to do something? I really like routing in ASP.NET MVC feature, but I’m not sure I could do the same in MR. I’m using IIS7 with the build from castle trunk for .NET 3.5.</... | [
{
"answer_id": 294672,
"author": "Vorleak Chy",
"author_id": 35719,
"author_profile": "https://Stackoverflow.com/users/35719",
"pm_score": 0,
"selected": false,
"text": "<system.web>\n<httpHandlers>\n <add verb=\"*\" path=\"*.rail\" type=\"Castle.MonoRail.Framework.MonoRailHttpHandlerFa... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35719/"
] |
290,055 | <p>I have an have an ASP.Net page which contains a button. This Page contains a ServerSide Paypal button.</p>
<p>When pushed my server does various clever things on the back end and then rewrites the response as a form and some javascript which posts this form to paypal..</p>
<p>This all works great.</p>
<p>However,... | [
{
"answer_id": 290107,
"author": "Patrick McElhaney",
"author_id": 437,
"author_profile": "https://Stackoverflow.com/users/437",
"pm_score": 2,
"selected": false,
"text": "window.history.back()"
},
{
"answer_id": 290114,
"author": "Eugene Yokota",
"author_id": 3827,
"... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
290,061 | <p>I just came over this syntax in some of the questions in this forum, but Google and any other searchengine tends to block out anything but letters and number in the search so it is impossible to search out "=>".</p>
<p>So can anyone tell me what it is and how it is used? </p>
| [
{
"answer_id": 290063,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 8,
"selected": true,
"text": "Func<Person, string> nameProjection = p => p.Name;\n Func<Person, string> nameProjection = delegate (Person p) { return p... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37643/"
] |
290,087 | <p>I'm trying to build a method that will receive a Linq table, and should return a List<> of values that will be a DropDownList Datasource.</p>
<p>This is what I've got till now:</p>
<pre><code>public static List<Structs.NameValuePair> GenDropDownItens<T>(string ValueField , string TextField ) where T... | [
{
"answer_id": 290152,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 1,
"selected": false,
"text": "var dropDownValues = dataContext.SomeTable.ToDictionary(\n s => s.Name,\n s => s.Value\n);\n\nforeach(var item in dro... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32415/"
] |
290,090 | <p>I'm a bit new to jQuery and hope somebody can help me out.</p>
<p>I'm trying to change an element (li) to another element (div) after the (li) has been dropped.</p>
<p>Sample code:</p>
<pre><code>$("#inputEl>li").draggable({
revert: true,
opacity: 0.4,
helper: "clone"
});
$("#dropEl")
.droppa... | [
{
"answer_id": 290555,
"author": "Ben Koehler",
"author_id": 11996,
"author_profile": "https://Stackoverflow.com/users/11996",
"pm_score": 2,
"selected": false,
"text": "drop: function(ev,ui) {\n $(this).append(\"<div>Some content</div>\");\n}\n drop: function(ev, ui) {\n $(ui... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37667/"
] |
290,099 | <p>My organization is using CppUnit and I am trying to run the same test using different parameters. Running a loop inside the test is not a good option as any failure will abort the test. I have looked at <code>TestDecorator</code> and <code>TestCaller</code> but neither seems to really fit. Code samples would be help... | [
{
"answer_id": 290289,
"author": "Rômulo Ceccon",
"author_id": 23193,
"author_profile": "https://Stackoverflow.com/users/23193",
"pm_score": 0,
"selected": false,
"text": "class MyTestCase\n\n # this is your fixture\n def check_special_condition(param)\n some\n complex\n tests... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22080/"
] |
290,112 | <p>I have a Panel and I am adding controls inside this panel. But there is a specific control that I would like to float. How would I go about doing that?</p>
<p>pnlOverheadDetails is the panel name</p>
<pre><code>pnlOverheadDetails.Controls.Add(lnkCalcOverhead);
</code></pre>
<p>The control named lnkCalcOverhead i... | [
{
"answer_id": 290131,
"author": "Jeromy Irvine",
"author_id": 8223,
"author_profile": "https://Stackoverflow.com/users/8223",
"pm_score": 6,
"selected": true,
"text": "Controls.Add lnkCalcOverhead.CssClass = \"MyClass\";\n lnkCalcOverhead.Style.Add(\"float\", \"left\");\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/290112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4144/"
] |
290,116 | <p>I'm trying to create number of Evenement instances and set the date for them:</p>
<pre><code> for (int i=2004; i<2009; i++){
evenementen.add(new Evenement("Rock Werchter", "Rock", "Werchter", 200000,
(Date)formatter.parse(i+"/07/03")));
</code></pre>
<p>But I can't seem t... | [
{
"answer_id": 290143,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 2,
"selected": false,
"text": "for (int i=2004; i<2009; i++) {\n Calendar cal = Calendar.getInstance();\n cal.clear();\n // Calendar.JULY may ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
290,121 | <p>My website has been giving me intermittent errors when trying to perform <em>any</em> Ajax activities. The message I get is</p>
<pre><code>Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by... | [
{
"answer_id": 2231865,
"author": "brunosp86",
"author_id": 100431,
"author_profile": "https://Stackoverflow.com/users/100431",
"pm_score": 1,
"selected": false,
"text": "Content-Type: Custom HTTP Headers HTTP Headers IIS Content-Type IIS ISO-8859-1"
},
{
"answer_id": 2884114,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2995/"
] |
290,128 | <p>We've all read the benchmarks and know the facts - event-based asynchronous network servers are faster than their threaded counterparts. Think lighttpd or Zeus vs. Apache or IIS. Why is that?</p>
| [
{
"answer_id": 11267570,
"author": "Left For Archive",
"author_id": 195298,
"author_profile": "https://Stackoverflow.com/users/195298",
"pm_score": 2,
"selected": false,
"text": "We examine the claimed strengths of events over threads and show that the\nweaknesses of threads are artifact... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21712/"
] |
290,133 | <p>Our website uses Perl to provide a simple mechanism for our HR people to post vacancies to our website. It was developed by a third party, but they have been long since kicked into touch, and sadly we do not have any Perl skills in-house. This is what happens when Marketing people circumvent their in-house IT team!<... | [
{
"answer_id": 290145,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 2,
"selected": false,
"text": "my @results = ();\nwhile (my $ref = $sth->fetchrow_hashref()) {\n push @results, $ref;\n}\n\nif ($#results == 0) {\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6898/"
] |
290,187 | <p>I have a script that takes a command and executes it on a remote host. It works fine, for example:</p>
<pre><code>$ rexec "ant build_all"
</code></pre>
<p>will execute the "ant build_all" command on the remote system (passing it through SSH, etc).</p>
<p>Because I'm lazy, I want to set up an alias for this comma... | [
{
"answer_id": 290203,
"author": "J.D. Fitz.Gerald",
"author_id": 11542,
"author_profile": "https://Stackoverflow.com/users/11542",
"pm_score": 0,
"selected": false,
"text": "function rant { rexec \"ant $1\"; }\n"
},
{
"answer_id": 290204,
"author": "Ken Gentle",
"author_... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16226/"
] |
290,189 | <p>What are the things to consider when choosing between ByRef and ByVal.</p>
<p>I understand the difference between the two but I don't fully understand if ByRef saves resources or if we even need to worry about that in the .Net environment.</p>
<p>How do you decide between the two if the functionality doesn't matte... | [
{
"answer_id": 290267,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 4,
"selected": false,
"text": " myVar = new object();\n"
},
{
"answer_id": 32906004,
"author": "Ashwith Ullal",
"author_id": 153... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6161/"
] |
290,213 | <p>When I serialize;</p>
<pre><code>public class SpeedDial
{
public string Value { get; set; }
public string TextTR { get; set; }
public string TextEN { get; set; }
public string IconId { get; set; }
}
</code></pre>
<p>It results:</p>
<pre><code><SpeedDial>
<Value>110</Value>
... | [
{
"answer_id": 290333,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": "[XmlIgnore] IXmlSerializable XmlSerializer [Serializable]\npublic class SpeedDial\n{\n static void Main()\n {\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35012/"
] |
290,214 | <p>Is it possible to retrieve variable set in <code>onreadystatechange</code> function from outside the function?
<bR>--edit--<BR>
Regarding execution of functions:<BR>
If its possible i would like to execute ajaxFunction() with one click<BR>
and then popup() with next click, or
somehow wait for ajax function to end... | [
{
"answer_id": 290217,
"author": "Phil Jenkins",
"author_id": 35496,
"author_profile": "https://Stackoverflow.com/users/35496",
"pm_score": 0,
"selected": false,
"text": "MyVariable var MyVariable; \nfunction ajaxFunction(){\n //creating AJAX \n ...\n // Create a function th... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27186/"
] |
290,215 | <p>What is the difference between HTML <code><input type='button' /></code> and <code><input type='submit' /></code>?</p>
| [
{
"answer_id": 290221,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 9,
"selected": true,
"text": "<input type=\"button\" /> <input type=\"submit\">"
},
{
"answer_id": 42872644,
"author": "Eugen Mihailescu",
"a... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2472/"
] |
290,226 | <p>I have a query that works on Postgresql 7.4 but not on Postgresql 8.3 with same database.</p>
<p>Query:</p>
<pre><code>SELECT * FROM login_session WHERE (now()-modified) > timeout;
</code></pre>
<p>Gets the following error:</p>
<pre><code>ERROR: operator does not exist: interval > integer
LINE 1: ...ELECT... | [
{
"answer_id": 290419,
"author": "Milen A. Radev",
"author_id": 15785,
"author_profile": "https://Stackoverflow.com/users/15785",
"pm_score": 4,
"selected": false,
"text": "SELECT\n *\nFROM\n login_session\nWHERE\n (CURRENT_TIMESTAMP - modified) > (timeout * '1 sec'::interval);\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/290226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24595/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.