qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
398,871 | <p>Is there a way to do the following using LINQ?</p>
<pre><code>foreach (var c in collection)
{
c.PropertyToSet = value;
}
</code></pre>
<p>To clarify, I want to iterate through each object in a collection and then update a property on each object.</p>
<p>My use case is I have a bunch of comments on a blog post... | [
{
"answer_id": 398894,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 3,
"selected": false,
"text": "collection.Iterate(c => { c.PropertyToSet = value;} );\n"
},
{
"answer_id": 398895,
"author": "Aaron Powell",... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/493/"
] |
398,878 | <p>I see that over on this question <a href="https://stackoverflow.com/questions/312024/linqy-way-to-check-if-any-objects-in-a-collection-have-the-same-property-value">LINQy way to check if any objects in a collection have the same property value</a> there is a request to say how to do something using LINQ to see if a ... | [
{
"answer_id": 399075,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 0,
"selected": false,
"text": "Enumerable"
},
{
"answer_id": 399215,
"author": "ChrisW",
"author_id": 49942,
"author_profile": "... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22777/"
] |
398,882 | <p>I'm building an application in C# that has a static class which initiate a COM class and handles some event handlers of another class that hooks keyboard.
When I call a method of the COM class from a button event handler in my WPF window, the method works without any problems but when I call it in one of the event c... | [
{
"answer_id": 29555418,
"author": "mvermand",
"author_id": 2528609,
"author_profile": "https://Stackoverflow.com/users/2528609",
"pm_score": 1,
"selected": false,
"text": "Thread thread = new Thread(() =>\n{\n ManagementObjectSearcher theSearcher = new ManagementObjectSearcher(\"SELE... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34623/"
] |
398,883 | <p>I have a structure</p>
<pre><code>typedef struct my_s {
int x;
...
} my_T;
my_t * p_my_t;
</code></pre>
<p>I want to set the address of <code>p_my_t</code> to <code>NULL</code> and so far this is how I've tried to do this:</p>
<pre><code>memset (&p_my_t, 0, sizeof(my_t*))
</code></pre>
<p>This doesn'... | [
{
"answer_id": 398897,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 4,
"selected": false,
"text": "memset"
},
{
"answer_id": 398899,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profil... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
398,884 | <p>Does anyone know a situation where a PostgreSQL HASH should be used instead of a B-TREE for it seems to me that these things are a trap. They are take way more time to CREATE or maintain than a B-TREE (at least 10 times more), they also take more space (for one of my table.columns, a B-TREE takes up 240 MB, while a ... | [
{
"answer_id": 398921,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 6,
"selected": true,
"text": "<"
}
] | 2008/12/29 | [
"https://Stackoverflow.com/questions/398884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49985/"
] |
398,886 | <p>I am working with a shared memory application, and to delete the segments I use the following command:</p>
<pre><code> ipcrm -M 0x0000162e (this is the key)
</code></pre>
<p>But I do not know if I'm doing the right things, because when I run <code>ipcs</code> I see the same segment but with the key 0x0000000. So i... | [
{
"answer_id": 398910,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 6,
"selected": true,
"text": "ipcs"
},
{
"answer_id": 398980,
"author": "hhafez",
"author_id": 42303,
"author_profile": "https://St... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39160/"
] |
398,903 | <p>I've seen them used in a lot of the same ways, and I am worried I'm about to go down a path in design that is irreversible if I don't understand this better. Also, I am using .NET.</p>
| [
{
"answer_id": 398916,
"author": "OwenP",
"author_id": 2547,
"author_profile": "https://Stackoverflow.com/users/2547",
"pm_score": 2,
"selected": false,
"text": "Collection<T>"
},
{
"answer_id": 398920,
"author": "tuinstoel",
"author_id": 43901,
"author_profile": "htt... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22777/"
] |
398,906 | <p>I have created an installation package using Wix which installs a Windows service on the user's machine. Currently, the files are being installed to [%ProgramFiles%\APLICATIONNAME].</p>
<p>Is this a future proof way of structuring an installation folder?
Should I be installing to [%ProgramFiles%\APLICATIONNAME\VERS... | [
{
"answer_id": 399141,
"author": "saschabeaumont",
"author_id": 592,
"author_profile": "https://Stackoverflow.com/users/592",
"pm_score": 2,
"selected": false,
"text": "%AppData%\\Manufacturer\\Application\\1.0"
}
] | 2008/12/29 | [
"https://Stackoverflow.com/questions/398906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/169/"
] |
398,945 | <p>I'm looking for an algorithm (or PHP code, I suppose) to end up with the 10 lowest numbers from a group of numbers. I was thinking of making a ten item array, checking to see if the current number is lower than one of the numbers in the array, and if so, finding the highest number in the array and replacing it with ... | [
{
"answer_id": 398964,
"author": "Andrew Coleson",
"author_id": 2072,
"author_profile": "https://Stackoverflow.com/users/2072",
"pm_score": 2,
"selected": false,
"text": "output[0-9] = input[0-9];\nsort(output);\nfor i=10..n-1\n if input[i] < output[9]\n insert(input[i])\n"
},
{
... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5464/"
] |
398,953 | <p><a href="http://java.sun.com/docs/books/effective/" rel="noreferrer">Effective Java (Second Edition)</a>, Item 4, discusses using private constructors to enforce noninstantiability. Here's the code sample from the book:</p>
<pre><code>public final class UtilityClass {
private UtilityClass() {
throw new ... | [
{
"answer_id": 398960,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 6,
"selected": true,
"text": "AssertionError"
},
{
"answer_id": 399074,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29995/"
] |
398,956 | <p>Has anyone created HTML microformats for video and video overlays including:</p>
<ul>
<li>Video File</li>
<li>Links with timecode (start/end) and screen region</li>
</ul>
<p>Thanks,</p>
<p>Michael</p>
| [
{
"answer_id": 398960,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 6,
"selected": true,
"text": "AssertionError"
},
{
"answer_id": 399074,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27306/"
] |
398,966 | <p>I was having a conversation with a co-worker and the subject of null came up. He was telling me that in .NET behind the scenes it is just a really small number. I always thought that the object just didn't have a pointer to any memory on the heap but i wasn't sure either way.</p>
<p>So i'm hoping the community can ... | [
{
"answer_id": 398972,
"author": "Sukasa",
"author_id": 50005,
"author_profile": "https://Stackoverflow.com/users/50005",
"pm_score": 0,
"selected": false,
"text": "Nothing"
},
{
"answer_id": 399041,
"author": "lomaxx",
"author_id": 493,
"author_profile": "https://Sta... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42707/"
] |
398,982 | <p>Which types of classes can use <code>foreach</code> loops?</p>
| [
{
"answer_id": 398986,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 3,
"selected": false,
"text": "foreach"
},
{
"answer_id": 398996,
"author": "Marc Gravell",
"author_id": 23354,
"author_profil... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48616/"
] |
398,992 | <p>So, I'm using jdbc to talk to a MySQL DB. For many a table and for many queries/views, I have created one class which encapsulates one row of the table or the query/table result. Accesses to the DB return one object of such a class (when I know exactly that there's only one matching row) or a Vector of such object... | [
{
"answer_id": 399088,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 0,
"selected": false,
"text": " Employee e = ( Employee ) MagicDataSource.find( \"select * from employee where id = 1 \");\n"
},
{
"answer_id": ... | 2008/12/29 | [
"https://Stackoverflow.com/questions/398992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/235914/"
] |
399,003 | <p>For example:
<code>sizeof(char*)</code> returns 4. As does <code>int*</code>, <code>long long*</code>, everything that I've tried. Are there any exceptions to this?</p>
| [
{
"answer_id": 399030,
"author": "David Thornley",
"author_id": 14148,
"author_profile": "https://Stackoverflow.com/users/14148",
"pm_score": 9,
"selected": true,
"text": "sizeof(char) == 1"
},
{
"answer_id": 399999,
"author": "dmityugov",
"author_id": 3232,
"author_p... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25632/"
] |
399,021 | <p>I recently came upon something called <a href="http://sourceforge.net/projects/rpoku/" rel="nofollow noreferrer">Rpoku</a> which is a spoken computer language. I also found some research called <a href="http://sourceforge.net/projects/voicecode/" rel="nofollow noreferrer">Voice Code</a> which takes a different appro... | [
{
"answer_id": 399047,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 1,
"selected": false,
"text": "List<Employee> ListOfEmployees = new List<Employee>();\n\nforeach (Employee emp in ListOfEmployees) {\nConsole.Writ... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11397/"
] |
399,022 | <p>Why doesn't the following work (Python 2.5.2)?</p>
<pre><code>>>> import datetime
>>> class D(datetime.date):
def __init__(self, year):
datetime.date.__init__(self, year, 1, 1)
>>> D(2008)
Traceback (most recent call last):
File "<stdin>", line 1, in <module... | [
{
"answer_id": 399061,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 0,
"selected": false,
"text": "def first_day_of_the_year(year):\n return datetime.date(year, 1, 1)\n"
},
{
"answer_id": 399418,
"author": "Benj... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1626/"
] |
399,032 | <p>Im writing a program at the moment that interacts with a MySQL database and im having a problem. As you can see I've written a query that will look for products in the products table that corresponds to the barcode that the user has inputted. </p>
<p>If the barcode that is input by the user is found in the products... | [
{
"answer_id": 399056,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 0,
"selected": false,
"text": "row = cursor.fetchone()\nprint row[\"product\"]\ncursor.execute('update stocks set amount = amount + 1 where product = %s', r... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47204/"
] |
399,040 | <p>I'd like to know if there is a way to tell the Enterprise Library Caching objects to flush all configured caches for that process to flush.</p>
<p>Even enumerating through all of the configured caches for that process, and manually flushing each one, is ok, but is there an API method from EntLib.Caching that will g... | [
{
"answer_id": 12106890,
"author": "Jeroen Visscher",
"author_id": 961139,
"author_profile": "https://Stackoverflow.com/users/961139",
"pm_score": 1,
"selected": false,
"text": "CacheManagerSettings conf = (CacheManagerSettings)ConfigurationSourceFactory.Create()\n .GetSection(CacheMa... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/698/"
] |
399,053 | <p>I've read a lot of tutorials and can not really find anything comprehensive on this subject. </p>
<p>I had written the following code to do one function:</p>
<pre><code>#include <fstream>
#include <string>
#include <iostream>
using namespace std;
ifstream ReadFile( ifstream& openInputFile, ... | [
{
"answer_id": 399094,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 0,
"selected": false,
"text": "void openInputFile(ifstream& file)\n{\n file.open(...);\n}\n\nint main()\n{\n ifstream file;\n openInputFile(file);... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40120/"
] |
399,066 | <p>I'm writing an algorithm in PHP to solve a given Sudoku puzzle. I've set up a somewhat object-oriented implementation with two classes: a <code>Square</code> class for each individual tile on the 9x9 board, and a <code>Sudoku</code> class, which has a matrix of <code>Square</code>s to represent the board.</p>
<p>T... | [
{
"answer_id": 399225,
"author": "PEZ",
"author_id": 44639,
"author_profile": "https://Stackoverflow.com/users/44639",
"pm_score": 3,
"selected": true,
"text": "$all_possibilities = \"1234567891234\";\n$unique = array();\nforeach (count_chars($all_possibilities, 1) as $c => $occurrences)... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13604/"
] |
399,067 | <p>Bear with me while I explain my question. Skip down to the bold heading if you already understand extended slice list indexing.</p>
<p>In python, you can index lists using slice notation. Here's an example:</p>
<pre><code>>>> A = list(range(10))
>>> A[0:5]
[0, 1, 2, 3, 4]
</code></pre>
<p>You c... | [
{
"answer_id": 399082,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 0,
"selected": false,
"text": "a[4::-1]\n"
},
{
"answer_id": 399089,
"author": "Abgan",
"author_id": 46308,
"author_profile": ... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44743/"
] |
399,078 | <p>I am tired of always trying to guess, if I should escape special characters like '<code>()[]{}|</code>' etc. when using many implementations of regexps.</p>
<p>It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on.
Is there any rule set which tells when I should, and when I... | [
{
"answer_id": 399175,
"author": "Rob Wells",
"author_id": 2974,
"author_profile": "https://Stackoverflow.com/users/2974",
"pm_score": 2,
"selected": false,
"text": "sed -e 's/foo\\(bar/something_else/'\n"
},
{
"answer_id": 400316,
"author": "Jan Goyvaerts",
"author_id": ... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37511/"
] |
399,101 | <p>Here is some XAML</p>
<pre><code><HierarchicalDataTemplate DataType="{x:Type data:FolderEntity}"
ItemsSource="{Binding Path=FolderEntities,UpdateSourceTrigger=PropertyChanged}">
<Label Content="{Binding FolderName}"/>
</HierarchicalDataTemplate>
<TreeView/>
</code></pre>
<p>data:Folder... | [
{
"answer_id": 399127,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 3,
"selected": true,
"text": "ObservableCollection<T>"
},
{
"answer_id": 399267,
"author": "Dennis",
"author_id": 73025,
"author_pr... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/58961/"
] |
399,114 | <p>C++ offers three floating point types: float, double, and long double. I infrequently use floating-point in my code, but when I do, I'm always caught out by warnings on innocuous lines like</p>
<pre><code>float PiForSquares = 4.0;
</code></pre>
<p>The problem is that the literal 4.0 is a double, not a float - Whic... | [
{
"answer_id": 399120,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 5,
"selected": false,
"text": " float f = 4.0f;\n long double f = 4.0l;\n"
},
{
"answer_id": 399160,
"author": "Charlie Martin",
"author_id... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1737/"
] |
399,129 | <p>I've been trying (and failing) to figure out how to send email via Python.</p>
<p>Trying the example from here:
<a href="http://docs.python.org/library/smtplib.html#smtplib.SMTP" rel="noreferrer">http://docs.python.org/library/smtplib.html#smtplib.SMTP</a></p>
<p>but added the line <code>server = smtplib.SMTP_SSL(... | [
{
"answer_id": 399240,
"author": "Federico A. Ramponi",
"author_id": 18770,
"author_profile": "https://Stackoverflow.com/users/18770",
"pm_score": 5,
"selected": false,
"text": "import smtplib\n\nFROMADDR = \"my.real.address@gmail.com\"\nLOGIN = FROMADDR\nPASSWORD = \"my.real.password... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50019/"
] |
399,135 | <p>When using Visual Studio (though ideally this can apply to the generic case) and double click on a button I've created, the event handler code that is auto generated uses the following signature:</p>
<pre><code>Protected Sub btnSubmitRequest_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnSubmitReque... | [
{
"answer_id": 399145,
"author": "recursive",
"author_id": 44743,
"author_profile": "https://Stackoverflow.com/users/44743",
"pm_score": 4,
"selected": true,
"text": "SubmitNewEmployeeRequest"
}
] | 2008/12/29 | [
"https://Stackoverflow.com/questions/399135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/71/"
] |
399,137 | <p>Here's a PHP example of mine. Can anyone find a shorter/easier way to do this?</p>
<pre><code><? foreach($posts as $post){?>
<div class="<?=($c++%2==1)?‘odd’:NULL?>">
<?=$post?>
</div>
<? }?>
<style>
.odd{background-color:red;}
</style>
</code></p... | [
{
"answer_id": 399156,
"author": "Vilx-",
"author_id": 41360,
"author_profile": "https://Stackoverflow.com/users/41360",
"pm_score": 7,
"selected": true,
"text": "$c = true; // Let's not forget to initialize our variables, shall we?\nforeach($posts as $post)\n echo '<div'.(($c = !$c)?... | 2008/12/29 | [
"https://Stackoverflow.com/questions/399137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46443/"
] |
399,155 | <p>I posted days ago about access control to web service (<a href="https://stackoverflow.com/questions/390853/access-control-to-web-service">Access control to web service</a>). In short, I have an ASP.NET web service deployed on <strong>//service/webservice</strong> and I want my ASP.NET web application (app1) on the <... | [
{
"answer_id": 23294310,
"author": "Hugh Jeffner",
"author_id": 383761,
"author_profile": "https://Stackoverflow.com/users/383761",
"pm_score": 1,
"selected": false,
"text": "403 7 5"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31936/"
] |
399,165 | <p>My marketing department, bless them, has decided to make a sweepstakes where people enter over a webpage. That is great but the information isn't stored to a DB of any sort but is sent to an exchange mail box as an email. Great.</p>
<p>My challenge is to extract the entry (and marketing info) from these emails an... | [
{
"answer_id": 403999,
"author": "Craig",
"author_id": 2894,
"author_profile": "https://Stackoverflow.com/users/2894",
"pm_score": 3,
"selected": false,
"text": "Private Sub btnGo_Click()\n If ComboBox1.SelText <> \"\" Then\n Dim objOutlook As New Outlook.Application\n Dim objName... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2894/"
] |
399,180 | <p>I have an application where users can upload video files of any size, and I'd like to be able to determine the the height/width of a Flash video file (flv or f4v) from a PHP script so that I can size the player appropriately. I'd love a pure PHP solution, but I'd be open to shelling out to a command line tool and p... | [
{
"answer_id": 713517,
"author": "Christoph",
"author_id": 48015,
"author_profile": "https://Stackoverflow.com/users/48015",
"pm_score": 1,
"selected": false,
"text": "function flvdim($name) {\n $file = @fopen($name, 'rb');\n if($file === false)\n return false;\n\n $heade... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38458/"
] |
399,190 | <p>When using ActionLink to render data from database which has HTML tags </p>
<pre><code>(ie <p>)
</code></pre>
<p>incorporated in it, ActionLink escapes the tags. What is the best way to handle this? </p>
| [
{
"answer_id": 713517,
"author": "Christoph",
"author_id": 48015,
"author_profile": "https://Stackoverflow.com/users/48015",
"pm_score": 1,
"selected": false,
"text": "function flvdim($name) {\n $file = @fopen($name, 'rb');\n if($file === false)\n return false;\n\n $heade... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49632/"
] |
399,202 | <p>I thought a great way to test my understanding of generic functions would be to create a function that would spit out a hex representation of a hash using one of the classes that inherits from HashAlgorithm. Since all of the HashAlgorithm classes offer ComputeHash, I thought this would be simple. When I construct su... | [
{
"answer_id": 399217,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 3,
"selected": true,
"text": "new()"
},
{
"answer_id": 399223,
"author": "Andy",
"author_id": 3857,
"author_profile": "https://Stac... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399202",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48700/"
] |
399,204 | <p>Given the following xml fragment:</p>
<pre><code><Problems>
<Problem>
<File>file1</File>
<Description>desc1</Description>
</Problem>
<Problem>
<File>file1</File>
<Description>desc2</Description>
</Problem>
<Pr... | [
{
"answer_id": 399262,
"author": "Richard A",
"author_id": 24355,
"author_profile": "https://Stackoverflow.com/users/24355",
"pm_score": 4,
"selected": true,
"text": "<?xml version=\"1.0\"?>\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n <xsl:ou... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246/"
] |
399,209 | <p>In bash is there a quick way to do tab auto-completion based on the middle of a word. </p>
<p>So for example, if I have these files in a directory: </p>
<pre><code>001_apple.txt 002_pear.txt 003_dog.txt
</code></pre>
<p>I would like to type the sequence: <code>*d<TAB></code> to auto-complete 003_dog.txt. <... | [
{
"answer_id": 399221,
"author": "Ben",
"author_id": 36522,
"author_profile": "https://Stackoverflow.com/users/36522",
"pm_score": 0,
"selected": false,
"text": "`ls *d*`"
},
{
"answer_id": 399275,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17174/"
] |
399,222 | <p>Isn't the use of delegates to help with some asynchronous cases? I tried the following but my UI still hangs. When on earth do you use delegates?</p>
<pre><code> Public Class Form1
Private Delegate Sub testDelegate()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As _
System.EventA... | [
{
"answer_id": 399229,
"author": "Otávio Décio",
"author_id": 48684,
"author_profile": "https://Stackoverflow.com/users/48684",
"pm_score": 2,
"selected": false,
"text": "//Callbacks \n//--------------------------------------------------------------------------------------------------... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23667/"
] |
399,224 | <p>I want to write tests for my app, though each time I look at rspec.info, I really don't see a definite path to take towards "doing things right" and testing first. I watched the peepcode videos on rspec more than once, yet it doesn't take. I want to take more pride in my work, and I think that testing will help. ... | [
{
"answer_id": 399426,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 3,
"selected": false,
"text": "73 tests passed.\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33287/"
] |
399,250 | <p>PHP's parse_url() has a host field, which includes the full host. I'm looking for the most reliable (and least costly) way to only return the domain and TLD.</p>
<p>Given the examples:</p>
<ul>
<li><a href="http://www.google.com/foo" rel="noreferrer">http://www.google.com/foo</a>, parse_url() returns www.google.c... | [
{
"answer_id": 399294,
"author": "Eineki",
"author_id": 29125,
"author_profile": "https://Stackoverflow.com/users/29125",
"pm_score": 0,
"selected": false,
"text": "<?php\n $urlCompoments=parse_url($theUrl);\n $chunk=explode('.',$urlComponents['host']);\n\n $tldIndex = count($ch... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399250",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13203/"
] |
399,252 | <p>For testing purposes I want send mail to my localhost user account rather than my webserver. I am unsure how to do this using mail.app. Any help would be appreciated.</p>
| [
{
"answer_id": 399284,
"author": "codelogic",
"author_id": 43427,
"author_profile": "https://Stackoverflow.com/users/43427",
"pm_score": 4,
"selected": true,
"text": "mail"
},
{
"answer_id": 399325,
"author": "Ronn",
"author_id": 49684,
"author_profile": "https://Stac... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49684/"
] |
399,263 | <p>I'm writing a Firefox extension that needs to know what the username of the currently logged in user is in Windows, Mac, or Linux. So if I'm logged into my machine as "brh", it'll return "brh". Any idea how to do that from extension JavaScript?</p>
| [
{
"answer_id": 399885,
"author": "James Brady",
"author_id": 29903,
"author_profile": "https://Stackoverflow.com/users/29903",
"pm_score": 5,
"selected": true,
"text": "Components.classes[\"@mozilla.org/process/environment;1\"].getService(Components.interfaces.nsIEnvironment).get('USER')... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11284/"
] |
399,270 | <p>If I'm using a <code>Hashtable</code>, I can write code like this:</p>
<pre><code>object item = hashtable[key] ?? default_value;
</code></pre>
<p>That works whether or not <code>key</code> appears in the <code>Hashtable</code>.</p>
<p>I can't do that with a <code>Dictionary<TKey. TValue></code>. If the key... | [
{
"answer_id": 399278,
"author": "Otávio Décio",
"author_id": 48684,
"author_profile": "https://Stackoverflow.com/users/48684",
"pm_score": 1,
"selected": false,
"text": "public TValue get_Item(TKey key)\n{\n int index = this.FindEntry(key);\n if (index >= 0)\n {\n return... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19403/"
] |
399,286 | <p>Can anybody provide some instruction on how to setup a war file to show a favicon.ico in the browser address bar?</p>
| [
{
"answer_id": 399773,
"author": "stian",
"author_id": 17542,
"author_profile": "https://Stackoverflow.com/users/17542",
"pm_score": 6,
"selected": true,
"text": "<link rel=\"icon\" type=\"image/gif\" href=\"/img/image.gif\">\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6218/"
] |
399,291 | <p>Curious as to 99.95% uptime REALLY means; Is it really going to go down 7 minutes a month? Please post your longest/average uptimes on EC2, thanks.</p>
| [
{
"answer_id": 399684,
"author": "kgiannakakis",
"author_id": 24054,
"author_profile": "https://Stackoverflow.com/users/24054",
"pm_score": 5,
"selected": true,
"text": "365 * 0.0005 = 0.1825 days or 4.38 hours\n"
},
{
"answer_id": 460610,
"author": "Community",
"author_i... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1263/"
] |
399,304 | <p>I've got a C++ program that's likely to generate a HUGE amount of data -- billions of binary records of varying sizes, most probably less than 256 bytes but a few stretching to several K. Most of the records will seldom be looked at by the program after they're created, but some will be accessed and modified regular... | [
{
"answer_id": 399328,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 3,
"selected": false,
"text": "stxxl::map<>"
},
{
"answer_id": 2211790,
"author": "Frank",
"author_id": 60628,
"author_profile": "htt... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12193/"
] |
399,311 | <p>I please for your help.</p>
<p>I apologize for my English, it is still learning. I do one application in GUI in Java. I have one problem. </p>
<p>In this application I have an ArrayList that I want to meet with data.</p>
<p>User clicks on the button and data from JTextfield shall be placed in Arraylist. </p>
<p>... | [
{
"answer_id": 399342,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 2,
"selected": false,
"text": " int posl=arlist.size(); \n if(arlist.isEmpty()||posl==1){ \n arlist.add(0,arraytext);\n }\n if(!arlist.is... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,312 | <p>I encountered this term <em>Hindley-Milner</em>, and I'm not sure if grasp what it means.</p>
<p>I've read the following posts:</p>
<ul>
<li>Steve Yegge - <a href="http://steve-yegge.blogspot.com/2008/05/dynamic-languages-strike-back.html" rel="noreferrer">Dynamic Languages Strike Back</a></li>
<li>Steve Yegge - <a ... | [
{
"answer_id": 399392,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 9,
"selected": true,
"text": "a"
},
{
"answer_id": 11322607,
"author": "YSharp",
"author_id": 1409653,
"author_profile": "https... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46090/"
] |
399,314 | <p>My product opens a web browser and points it at an HTML file containing a local Flash application. How do I detect programmatically whether this file loaded successfully and if not what exception was thrown? Is there a way to do this using Javascript?</p>
<p>Checking externally whether the file exists on disk is no... | [
{
"answer_id": 399378,
"author": "Gili",
"author_id": 14731,
"author_profile": "https://Stackoverflow.com/users/14731",
"pm_score": 5,
"selected": true,
"text": "var params:Object = LoaderInfo(this.root.loaderInfo).parameters;\nif (ExternalInterface.available)\n{\n var onLoaded:String... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14731/"
] |
399,332 | <p>I'm doing a bookmarking system and looking for the fastest (easiest) way to retrieve a page's title with PHP. </p>
<p>It would be nice to have something like <code>$title = page_title($url)</code></p>
| [
{
"answer_id": 399341,
"author": "alex",
"author_id": 31671,
"author_profile": "https://Stackoverflow.com/users/31671",
"pm_score": 3,
"selected": false,
"text": "preg_match('/<title>(.*)<\\/title>/iU', $htmlSource, $titleMatches);\n\nprint_r($titleMatches);\n"
},
{
"answer_id": ... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,340 | <p>I always try to do the following:</p>
<pre><code><label><input type="checkbox" /> Some text</label>
</code></pre>
<p>or</p>
<pre><code><label for="idOfField"><input type="checkbox" id="idOfField" /> Some text</label>
</code></pre>
<p>My question is related to the label tag, sp... | [
{
"answer_id": 399351,
"author": "BQ.",
"author_id": 4632,
"author_profile": "https://Stackoverflow.com/users/4632",
"pm_score": 2,
"selected": false,
"text": "<label>"
},
{
"answer_id": 399364,
"author": "Eineki",
"author_id": 29125,
"author_profile": "https://Stacko... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
399,348 | <p>In Joomla:</p>
<pre><code>$mainframe->getCfg('lang');
</code></pre>
<p>will return "english" (i think this is a default value), anyone can tell me where defined it? </p>
<p>Can I change it?</p>
| [
{
"answer_id": 401009,
"author": "jlleblanc",
"author_id": 586,
"author_profile": "https://Stackoverflow.com/users/586",
"pm_score": 0,
"selected": false,
"text": "$lang =& JFactory::getLanguage();\necho $lang->getName();\n"
},
{
"answer_id": 402046,
"author": "Community",
... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,352 | <p>My app will be full screen, but I am having trouble finding the document that explains how to change the status bar properties.</p>
<p>How can I change the status bar properties?</p>
| [
{
"answer_id": 399371,
"author": "dancavallaro",
"author_id": 42891,
"author_profile": "https://Stackoverflow.com/users/42891",
"pm_score": 6,
"selected": true,
"text": "[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]"
},
{
"answer_id": 15175517,
"autho... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399352",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46865/"
] |
399,353 | <p>Say I have a thread that keeps running in the background to figure if a URL is accessible. If the URL is not accessible, the application need to show a modal dialog box. Things cannot go on if the URL is down. If I simply do a MessageBox.show from inside the thread, that message box will not be modal. ShowDialog won... | [
{
"answer_id": 399362,
"author": "Otávio Décio",
"author_id": 48684,
"author_profile": "https://Stackoverflow.com/users/48684",
"pm_score": 2,
"selected": false,
"text": "private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) {\n this.Invoke(new MessageBoxDelegate(S... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,356 | <pre><code>.section .data
astring: .asciz "11010101"
format: .asciz "%d\n"
.section .text
.globl _start
_start:
xorl %ecx, %ecx
movb astring(%ecx,1), %al
movzbl %al, %eax
pushl %eax
pushl $format
call printf
addl $8, %esp
movl $1, %eax
movl $0, %ebx
int $0x80
</code></pre>
<p>Suppose I wanna break the .asciz s... | [
{
"answer_id": 399363,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 3,
"selected": true,
"text": "printf"
},
{
"answer_id": 9782866,
"author": "charlyasap",
"author_id": 1280260,
"author_profile"... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45963/"
] |
399,359 | <p>My issue is that sometimes a piece of JavaScript (often Google Analytics) may take a very long time to load, although it's not important to the HTML be ready to be "traversed and manipulated". If I were to use the following code:</p>
<pre><code>$(document).ready(function () {
$("p").text("The DOM is now loaded ... | [
{
"answer_id": 399432,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": -1,
"selected": false,
"text": "$(document).ready(function()\n{\n setTimeOut(function()\n {\n // Your code comes here\n }, 0); // We don't... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
399,370 | <p>I'm embedding a Flash video into an HTML and would like the user to have to click it to begin playing. According to the <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701" rel="nofollow noreferrer">Adobe <code><object></code> / <code><embed></code> element documentation</a>, ther... | [
{
"answer_id": 401077,
"author": "fenomas",
"author_id": 10651,
"author_profile": "https://Stackoverflow.com/users/10651",
"pm_score": 5,
"selected": true,
"text": "autoplay"
},
{
"answer_id": 2636525,
"author": "Duke",
"author_id": 316384,
"author_profile": "https://... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37522/"
] |
399,396 | <p>I'm writing a rake task that does some DB work outside of Rails/ActiveRecord.</p>
<p>Is there a way to get the DB connection info (host, username, password, DB name) for the current environment as defined in <code>database.yml</code>?</p>
<p>I'd like to get it so I can use it to connect like this...</p>
<pre><cod... | [
{
"answer_id": 399411,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 9,
"selected": true,
"text": "config = Rails.configuration.database_configuration\nhost = config[Rails.env][\"host\"]\ndatabase = config[Rail... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42595/"
] |
399,401 | <p>I have a hibernate mapping as follows:</p>
<p>
</p>
<pre><code><hibernate-mapping>
<class name="kochman.elie.data.types.InvoiceTVO" table="INVOICE">
<id name="id" column="ID">
<generator class="increment"/>
</id>
<property name="date" column=... | [
{
"answer_id": 399420,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 1,
"selected": false,
"text": "<property name=\"adminFee\" column=\"ADMIN_FEE\" type=\"float\"/>\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23249/"
] |
399,406 | <p>Does Microsoft Access have Full Text Search?</p>
<p>I know that MySQL and SQL Server have Full Text Search, but I am not too certain on Access.</p>
<p>If Access doesn't have Full Text, what is the best alternative to achieve the same objective of Full Text Search?</p>
<p>Thanks</p>
| [
{
"answer_id": 27727194,
"author": "AndrewM",
"author_id": 3133514,
"author_profile": "https://Stackoverflow.com/users/3133514",
"pm_score": 2,
"selected": false,
"text": "'This code requires a table called tblWordList with fields called Word (str 255), WordCount (long), FirstCopyID (lon... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50050/"
] |
399,409 | <p>Are there any good language-agnostic distributed make systems for linux that are secure and free?</p>
<p><strong>Background Information:</strong></p>
<p>I run scientific experiments (computer-science ones) that sometimes have large dependency trees, occasionally on the order of thousands or tens of thousands of tr... | [
{
"answer_id": 399461,
"author": "James Cape",
"author_id": 41044,
"author_profile": "https://Stackoverflow.com/users/41044",
"pm_score": 3,
"selected": true,
"text": "make"
},
{
"answer_id": 399502,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "ht... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25050/"
] |
399,447 | <p>I have a site in rails and want to have site-wide settings. One part of my app can notify the admin by SMS if a specific event happens. This is an example of a feature that I want configurable via the site-wide settings.</p>
<p>So I was thinking I should have a Setting model or something. It needs to be a model bec... | [
{
"answer_id": 399650,
"author": "Otto",
"author_id": 9594,
"author_profile": "https://Stackoverflow.com/users/9594",
"pm_score": 1,
"selected": false,
"text": "has_many :contacts"
},
{
"answer_id": 12463209,
"author": "Rich",
"author_id": 8261,
"author_profile": "htt... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9191/"
] |
399,452 | <p>I am using the pimpl idiom and want to reference one of the methods of the forward declared class. Below isn't exactly what I'm doing but uses the same concepts.</p>
<pre><code>template< typename Class, void (Class::*Method)(void) >
struct Call
{
Call( Class* c )
: m_c(c)
{ }
void operator()( v... | [
{
"answer_id": 399515,
"author": "jmucchiello",
"author_id": 44065,
"author_profile": "https://Stackoverflow.com/users/44065",
"pm_score": 0,
"selected": false,
"text": "void do_bar( B* b )\n{\n Call<B,&B::bar> c(b);\n c();\n}\n"
},
{
"answer_id": 399611,
"author": "billy... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28817/"
] |
399,459 | <p>Hi I'm looking for some help in mapping the following tables to a hibernate mapping file:
<a href="http://barry-jones.com/temp/sch2.jpg" rel="nofollow noreferrer">schema image http://barry-jones.com/temp/sch2.jpg</a></p>
<p>I'm trying to fill the localCalandarGroups List with related localCalendarGroups when loadin... | [
{
"answer_id": 399799,
"author": "Darin Dimitrov",
"author_id": 29407,
"author_profile": "https://Stackoverflow.com/users/29407",
"pm_score": 3,
"selected": true,
"text": "<class name=\"UserVO\" table=\"tb_users\">\n <id name=\"id\" column=\"id\">\n <generator class=\"native\" ... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17510/"
] |
399,482 | <p>I want to self-draw the caption bar of my application's window, so I decided to override OnNcPaint() methods. But I don't know how to set a different height of the caption bar. Everytime I use GetSystemMetrics(SM_CYCAPTION), it retruns the same value.</p>
<p>Can anyone tell me how to do it? Thank you!</p>
| [
{
"answer_id": 399679,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 2,
"selected": false,
"text": "wm_NCHitTest"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26404/"
] |
399,486 | <p>When a user clicks on an image on a web page, I'd like to trigger the browser's Save Image dialog and to let the user save the image on their hard drive. Is there a cross-browser way to do this with jQuery/Javascript?</p>
| [
{
"answer_id": 25787294,
"author": "mheg",
"author_id": 3752742,
"author_profile": "https://Stackoverflow.com/users/3752742",
"pm_score": 1,
"selected": false,
"text": "$('.yourImageClass').click(function(){\n $('.hiddenInputClass').trigger('click');\n})\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050/"
] |
399,488 | <p>Below is a macro to save multiple sheets to different csv files BUT it keeps renaming and saving the original workbook, how to stop this.</p>
<pre><code>Private Sub CommandButton1_Click()
Dim WS As Excel.Worksheet
Dim SaveToDirectory As String
Dim CurrentWorkbook As String
Dim CurrentFormat As Long
Dim myName As ... | [
{
"answer_id": 399540,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 2,
"selected": false,
"text": "\nActiveWorkbook.SaveAs Filename:=CurrentWorkbook, FileFormat:=CurrentFormat Application.DisplayAlerts = False\n"
},... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,490 | <p>I have some rails models which don't need any persistence, however I'd like rails to think the model actually has attributes x, y, z so when calling methods like to_json in the controller I get them included for free.</p>
<p>For example,</p>
<pre><code>class ModelWithoutTableColumns << ActiveRecord::Base
de... | [
{
"answer_id": 8042227,
"author": "Adam Tanner",
"author_id": 489215,
"author_profile": "https://Stackoverflow.com/users/489215",
"pm_score": 3,
"selected": true,
"text": "to_json"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46758/"
] |
399,498 | <p>For some reasons, SSIS is not avalialble.</p>
<p>I read about OPENROWSET, but I will have others problem from on the format file and path of file.</p>
<p>How can I do it in a elegant way?</p>
| [
{
"answer_id": 8042227,
"author": "Adam Tanner",
"author_id": 489215,
"author_profile": "https://Stackoverflow.com/users/489215",
"pm_score": 3,
"selected": true,
"text": "to_json"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40214/"
] |
399,527 | <p>With the Cocoa framework how can I parse @"2008-12-29T00:27:42-08:00" into an NSDate object? The standard <code>-dateWithString:</code> doesn't like it.</p>
| [
{
"answer_id": 399896,
"author": "mfazekas",
"author_id": 27048,
"author_profile": "https://Stackoverflow.com/users/27048",
"pm_score": 6,
"selected": true,
"text": " NSDateFormatter* dateFormatter = [[[NSDateFormatter alloc] init] autorelease];\n [dateFormatter setDateFormat:@\"yy... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36170/"
] |
399,530 | <p>I'm new to iPhone development, and multiple views (xib or nib) are really confusing me. This is what i'm trying to achieve...</p>
<ol>
<li>View with Tab Bar (Tab 1, Tab 2, Tab 3)</li>
<li>Tab 2 View (Navigation Controller)
2.1 Selecting Table Row will show a View with cell details
2.2 Add button on the navigation b... | [
{
"answer_id": 399896,
"author": "mfazekas",
"author_id": 27048,
"author_profile": "https://Stackoverflow.com/users/27048",
"pm_score": 6,
"selected": true,
"text": " NSDateFormatter* dateFormatter = [[[NSDateFormatter alloc] init] autorelease];\n [dateFormatter setDateFormat:@\"yy... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49739/"
] |
399,532 | <p>How can I grab something like ^MM (CTRL + M + M) in .NET, using C#?</p>
| [
{
"answer_id": 399573,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 1,
"selected": false,
"text": " private static bool lastKeyWasControlM = false;\n\n protected override bool ProcessCmdKey(ref Message msg, Keys... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50069/"
] |
399,538 | <p>I'm building a C++ application and need to use PDCurses on Windows. I'm compiling with VC++ from MS VS 2005 and I'm getting a link error.</p>
<blockquote>
<pre><code> error LNK2019: unresolved external
symbol __imp__GetKeyState@4 referenced
in function __get_key_count
</code></pre>
</blockquote>
<p>There are 11 ... | [
{
"answer_id": 401899,
"author": "oz10",
"author_id": 14069,
"author_profile": "https://Stackoverflow.com/users/14069",
"pm_score": 0,
"selected": false,
"text": "USER32_LIB"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14069/"
] |
399,546 | <p>What is a synthetic class in Java? Why should it be used? How can I use it?</p>
| [
{
"answer_id": 1260517,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "class MyOuter {\n\n private MyInner inner;\n\n void createInner() {\n // The Compiler has to create a synthetic method\n... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20301/"
] |
399,559 | <p>I can see in the postgresql logs that certain simple queries (no joins and using only match conditions that use indexes) take anywhere from 1 to 3 seconds to execute. I log queries that take longer than a second to execute thus there are similar queries which execute under a second which don't get reported.</p>
<p>... | [
{
"answer_id": 1374459,
"author": "Jeff Davis",
"author_id": 153464,
"author_profile": "https://Stackoverflow.com/users/153464",
"pm_score": 0,
"selected": false,
"text": "(responses.contest_id = 17469) AND (user_id is not null)"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38877/"
] |
399,567 | <p>I seem to have a problem with this SQL query:</p>
<pre><code>SELECT * FROM appts
WHERE timeStart >='$timeStart'
AND timeEnd <='$timeEnd'
AND dayappt='$boatdate'
</code></pre>
<p>The time is formatted as military time. The logistics is that a boat rental can be reserved at 7am til 1pm or 9am til 1pm or 9am... | [
{
"answer_id": 399577,
"author": "Shane Delmore",
"author_id": 50031,
"author_profile": "https://Stackoverflow.com/users/50031",
"pm_score": 4,
"selected": true,
"text": "SELECT * FROM appts \nWHERE timeStart <='$timeEnd' \nAND timeEnd >='$timeStart' \nAND dayappt='$boatdate'\n"
},
{... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47301/"
] |
399,572 | <p>The HtmlObject provides all the necessary functionality to register managed event handlers for script and DOM events, but what if the class you need to listen to doesn't exist as a DOM element, but a scripting variable (referenced via ScriptObject) instead? </p>
| [
{
"answer_id": 399577,
"author": "Shane Delmore",
"author_id": 50031,
"author_profile": "https://Stackoverflow.com/users/50031",
"pm_score": 4,
"selected": true,
"text": "SELECT * FROM appts \nWHERE timeStart <='$timeEnd' \nAND timeEnd >='$timeStart' \nAND dayappt='$boatdate'\n"
},
{... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5988/"
] |
399,582 | <p>I have a Grails application with a JSP page (I'm porting a legacy JSP application). For some reason, the page renders completely blank. Looking at the HTTP headers I see it's 200 with a content length of 0.</p>
<pre><code>HTTP/1.1 200 OK
Content-Language: en-US
Content-Type: text/html; charset=iso-8859-1
Expires: T... | [
{
"answer_id": 399577,
"author": "Shane Delmore",
"author_id": 50031,
"author_profile": "https://Stackoverflow.com/users/50031",
"pm_score": 4,
"selected": true,
"text": "SELECT * FROM appts \nWHERE timeStart <='$timeEnd' \nAND timeEnd >='$timeStart' \nAND dayappt='$boatdate'\n"
},
{... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
399,595 | <p>I may be missing something here because I thought this might be really easy but...</p>
<p>Using Flex, how can you tell when a ComboBox is open? I do find the open and close events that this component dispatches can be flaky so I'm looking for something a little more solid - it's probably staring me in the face.</p... | [
{
"answer_id": 400514,
"author": "Niko Nyman",
"author_id": 36817,
"author_profile": "https://Stackoverflow.com/users/36817",
"pm_score": 3,
"selected": true,
"text": "dropDown"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3435/"
] |
399,606 | <p>I wonder if anyone here has any experience with mercurial running on Ubuntu? I've been playing with it all morning and love everything I've seen so far.</p>
<p>The one problem I though is when I do a merge and conflicts are detected, it doesn't automatically bring the file up in the command line editor to allow me ... | [
{
"answer_id": 399644,
"author": "too much php",
"author_id": 28835,
"author_profile": "https://Stackoverflow.com/users/28835",
"pm_score": 3,
"selected": true,
"text": "[ui]\nmerge = vimdiff\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37196/"
] |
399,616 | <p>For a scripting utility I need to be able to record a series of keyboard and mouse events that occur when an application has focus. The second part is being able to later send those events to the active window.</p>
<p>I do not need to worry about menus or tracking the identifier of which window receives input.</p>
... | [
{
"answer_id": 399640,
"author": "Ben",
"author_id": 36522,
"author_profile": "https://Stackoverflow.com/users/36522",
"pm_score": 3,
"selected": false,
"text": "#include <ApplicationServices/ApplicationServices.h>\n\nint to(int x, int y)\n{\n CGPoint newloc;\n CGEventRef eventRef;... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1043/"
] |
399,618 | <p>I'm working with a couple of AI algorithms at school and I find people use the words Fuzzy Logic to explain any situation that they can solve with a couple of cases. When I go back to the books I just read about how instead of a state going from On to Off it's a diagonal line and something can be in both states but ... | [
{
"answer_id": 399680,
"author": "Alan",
"author_id": 17205,
"author_profile": "https://Stackoverflow.com/users/17205",
"pm_score": 3,
"selected": false,
"text": " (basis clause) For all A, v(A) in {0,1}\n (iterative) For the following connectives,\n v(!A) = 1 - v(A)\n v(A & B) = min... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47846/"
] |
399,633 | <p>.NET has the <a href="http://msdn.microsoft.com/en-us/library/system.uri_members.aspx" rel="nofollow noreferrer">Uri class</a>.</p>
<p>Perl has its <a href="http://search.cpan.org/dist/URI" rel="nofollow noreferrer">URI module</a>.</p>
<p>The major difference is that URI.pm allows you to <strong>retrieve the query... | [
{
"answer_id": 399688,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 2,
"selected": false,
"text": "String querystring;\n...\n// Parse the query string variables into a NameValueCollection.\nNameValueCollection qscoll = HttpUt... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11284/"
] |
399,648 | <p>If I am assigning an event handler at runtime and it is in a spot that can be called multiple times, what is the recommended practice to prevent multiple assignments of the same handler to the same event.</p>
<pre><code>object.Event += MyFunction
</code></pre>
<p>Adding this in a spot that will be called more than... | [
{
"answer_id": 399772,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "private EventHandler foo;\n\npublic event EventHandler Foo\n{\n add\n {\n // First try to remove the handler... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,669 | <p>I'm using Subversion 1.4.6, and I cannot upgrade to version 1.5 right now.</p>
<p>The situation:</p>
<ol>
<li><p>The trunk has a lot of structural changes (i.e. moving files around, mostly).</p></li>
<li><p>I have a branch that was recently merged from the trunk, but before the major changes.</p></li>
</ol>
<p>Wh... | [
{
"answer_id": 399701,
"author": "Stefan",
"author_id": 48003,
"author_profile": "https://Stackoverflow.com/users/48003",
"pm_score": 7,
"selected": true,
"text": "svn merge -rLastRevisionMergedFromTrunkToBranch:HEAD url/of/trunk path/to/branch/wc\n"
},
{
"answer_id": 2170776,
... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11515/"
] |
399,674 | <p>How can I read Authorization header information from a REST based WCF service?</p>
| [
{
"answer_id": 399755,
"author": "Ray Lu",
"author_id": 11413,
"author_profile": "https://Stackoverflow.com/users/11413",
"pm_score": 3,
"selected": false,
"text": "OperationContext.Current.OutgoingMessageProperties\nor\nOperationContext.Current.IncomingMessageProperties\n"
},
{
... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27052/"
] |
399,689 | <p>How can I give the user the ability to change the style of a webpage, of course I have to make several CSS files , but how can I make the code that permits the change upon the user's choice</p>
| [
{
"answer_id": 399764,
"author": "Ali",
"author_id": 49153,
"author_profile": "https://Stackoverflow.com/users/49153",
"pm_score": 0,
"selected": false,
"text": "document.getElementById(\"header\").style.background-color=\"#ABCDEF\";\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49809/"
] |
399,702 | <p>So it looks like Grails' GSP does not have an include tag (correct me if I'm wrong). The closest thing to "include" is to use the <a href="http://docs.codehaus.org/display/GRAILS/Tag+-+render" rel="nofollow noreferrer">render tag</a>. There is also the <a href="http://grails.org/Include+Plugin" rel="nofollow norefer... | [
{
"answer_id": 400837,
"author": "Rob Hruska",
"author_id": 29995,
"author_profile": "https://Stackoverflow.com/users/29995",
"pm_score": 2,
"selected": false,
"text": "grails-app/views/layouts/main.gsp"
},
{
"answer_id": 1022255,
"author": "user126269",
"author_id": 1262... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
399,704 | <p>Can you suggest some of the best XML Parser for C ?</p>
| [
{
"answer_id": 407642,
"author": "bortzmeyer",
"author_id": 15625,
"author_profile": "https://Stackoverflow.com/users/15625",
"pm_score": 6,
"selected": false,
"text": "/* \n A simple test program to parse XML documents with expat\n <http://expat.sourceforge.net/>. It just displays t... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21011/"
] |
399,713 | <p>I have a listbox with the ItemsPanelTemplate set to UniformGrid with rows= 6 and cols= 7.</p>
<p>I want the listbox items to fill their space.</p>
<p>I am using a datatemplete defined in a dictionary.</p>
<p>The outer control of my template is a Border with HorizontalAlignment=Stretch
and VerticalAlignent=Strectc... | [
{
"answer_id": 399762,
"author": "Dennis",
"author_id": 73025,
"author_profile": "https://Stackoverflow.com/users/73025",
"pm_score": 2,
"selected": false,
"text": "ListBoxItems"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40568/"
] |
399,734 | <p>I have a script that calls an application that requires user input, e.g. run app that requires user to type in 'Y' or 'N'.<br>
How can I get the shell script not to ask the user for the input but rather use the value from a predefined variable in the script?</p>
<p>In my case there will be two questions that requir... | [
{
"answer_id": 399736,
"author": "Marc Novakowski",
"author_id": 27020,
"author_profile": "https://Stackoverflow.com/users/27020",
"pm_score": 5,
"selected": true,
"text": "echo \"Y\" | myapp\n"
},
{
"answer_id": 399749,
"author": "jon skulski",
"author_id": 47545,
"a... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,754 | <p>I want to create a table in a Microsoft Office Word file using Java. Can anybody tell me how to do it with an example?</p>
| [
{
"answer_id": 11899716,
"author": "lakshmi",
"author_id": 1589972,
"author_profile": "https://Stackoverflow.com/users/1589972",
"pm_score": 1,
"selected": false,
"text": "WPFDocument document = new XWPFDocument();\nXWPFTable tableTwo = document.createTable();\nXWPFTableRow tableTwoRowOn... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,768 | <p>Is there any way to make Visual Studio show the code of a control / form by default instead of the designer? I tend not to be a fan of the designers as they add bloat.</p>
| [
{
"answer_id": 21339799,
"author": "Aaron Palmer",
"author_id": 24908,
"author_profile": "https://Stackoverflow.com/users/24908",
"pm_score": 3,
"selected": false,
"text": "Tools | Options"
},
{
"answer_id": 21791378,
"author": "gmb",
"author_id": 2418274,
"author_pro... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26566/"
] |
399,791 | <p>I recently installed my video script to a new server but I am seeing that it will start to convert 1 video (via mencoder) then before finishing it, it will try and convery another, and another, so it will be trying to convert 4+ videos at the same time causing the server to shut down. The script developer said:</p>
... | [
{
"answer_id": 399816,
"author": "M.N",
"author_id": 18615,
"author_profile": "https://Stackoverflow.com/users/18615",
"pm_score": 1,
"selected": false,
"text": "Begin\n init sem=MAX;\n\n wait(sem) //sem--, waits if sem=0, till atleast one process comes out of the critical section\... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,792 | <p>It seems that </p>
<pre><code>if (x=y) { .... }
</code></pre>
<p>instead of</p>
<pre><code>if (x==y) { ... }
</code></pre>
<p>is a root of many evils.</p>
<p>Why don't <em>all</em> compilers <em>mark it as error</em> instead of a configurable warning?</p>
<p>I'm interested in finding out cases where the const... | [
{
"answer_id": 399800,
"author": "lImbus",
"author_id": 32490,
"author_profile": "https://Stackoverflow.com/users/32490",
"pm_score": 5,
"selected": false,
"text": "char *pBuffer;\nif (pBuffer = malloc(100))\n{\n // Continue to work here\n}\n"
},
{
"answer_id": 399801,
"au... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18275/"
] |
399,798 | <pre><code> string str1 = "12345ABC...\\...ABC100000";
// Hypothetically huge string of 100000 + Unicode Chars
str1 = str1.Replace("1", string.Empty);
str1 = str1.Replace("22", string.Empty);
str1 = str1.Replace("656", string.Empty);
str1 = str1.Replace("77ABC", string.Empty);
// ... this replace anti-pattern ... | [
{
"answer_id": 399811,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "Regex.Replace"
},
{
"answer_id": 399814,
"author": "Ed S.",
"author_id": 1053,
"author_profile": "htt... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46100/"
] |
399,822 | <p>I am trying to use NVelocity templates in a .Net application: using a template to output results to a file. It all seems to work fine except for the fact that the output is never fully overwritten. If my file is 100 characters long and the template only renders 20 characters, the last 80 characters are never altered... | [
{
"answer_id": 427963,
"author": "Andrew",
"author_id": 5662,
"author_profile": "https://Stackoverflow.com/users/5662",
"pm_score": 2,
"selected": false,
"text": "FileMode.OpenOrCreate"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22360/"
] |
399,826 | <p>I have 3 buttons in a form. One of them is the submit button. How can I make it the default button to be clicked when I press the enter key. Is there a property for this?</p>
| [
{
"answer_id": 399839,
"author": "Biri",
"author_id": 968,
"author_profile": "https://Stackoverflow.com/users/968",
"pm_score": 4,
"selected": true,
"text": "<form runat=\"server\" defaultbutton=\"myButton\">\n...\n</form>\n"
},
{
"answer_id": 399892,
"author": "Kb.",
"au... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688440/"
] |
399,835 | <p>I got a problem when I put 2 instances of FckEditor to a page in dotnetnuke.
sometimes, I got empty text when I call the text property.</p>
<p>Anyone helps?</p>
| [
{
"answer_id": 400797,
"author": "bdukes",
"author_id": 2688,
"author_profile": "https://Stackoverflow.com/users/2688",
"pm_score": 1,
"selected": false,
"text": "Text"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,850 | <p>What compiler warning level do you recommend for different C/C++ compilers?</p>
<p>gcc and g++ will let you get away with a lot on the default level. I find the best warning level for me is '-Wall'. And I always try to remove fix the code for the warnings it generates. (Even the silly ones about using parenthesi... | [
{
"answer_id": 399855,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": false,
"text": "-Wall"
},
{
"answer_id": 399865,
"author": "Paulius",
"author_id": 1353085,
"author_pro... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
399,866 | <p>I'm trying to port an application to Mono, however Mono doesn't support "Application Settings". I don't and won't use Mono Develop, the development is done with Visual Studio.</p>
<p>Is there any quick way to solve this? Or should I implement my own settings replacement class?</p>
<p>If it matters this is a VB.NET... | [
{
"answer_id": 400564,
"author": "dr. evil",
"author_id": 40322,
"author_profile": "https://Stackoverflow.com/users/40322",
"pm_score": 0,
"selected": false,
"text": "Dim Threshold As Integer = My.Settings.Threshold\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/399866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40322/"
] |
399,867 | <p>I'm looking for some input on how to implement custom eventhandling in jquery the best way. I know how to hook up events from the dom elements like 'click' etc, but I'm building a tiny javascript library/plugin to handle some preview functionality.</p>
<p>I've got a script running to update some text in a dom eleme... | [
{
"answer_id": 399877,
"author": "Tuxified",
"author_id": 49792,
"author_profile": "https://Stackoverflow.com/users/49792",
"pm_score": 4,
"selected": false,
"text": " $(\"p\").bind(\"myCustomEvent\", function(e, myName, myValue){\n $(this).text(myName + \", hi there!\");\n $(\... | 2008/12/30 | [
"https://Stackoverflow.com/questions/399867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11619/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.