qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
251,271
<p>Sometimes you need to upgrade the database with many rows that you have in a datatable or you have an array full of data, instead of putting all this data together in a string and then splitting in SQL SERVER, or instead of iterating the datatable in the code row by row and updating database, is there any other way?...
[ { "answer_id": 251285, "author": "John", "author_id": 30006, "author_profile": "https://Stackoverflow.com/users/30006", "pm_score": 3, "selected": true, "text": "SqlBulkCopy copier = new SqlBulkCopy(connectionString, SqlBulkCopyOptions.Default);\ncopier.BatchSize = 500; //# of rows to in...
2008/10/30
[ "https://Stackoverflow.com/questions/251271", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31791/" ]
251,275
<p>I have a User object that has a Country object on it. I map this with a many-to-one tag in the User mapping file:</p> <pre><code>&lt;many-to-one name="Country" column="CountryID" cascade="none"/&gt; </code></pre> <p>How do I update a User's country?</p> <p>At the moment my UI has a dropdown of countries and the I...
[ { "answer_id": 251324, "author": "loraderon", "author_id": 22092, "author_profile": "https://Stackoverflow.com/users/22092", "pm_score": 0, "selected": false, "text": "var user = session.Get<User>(userID);\nuser.Country = session.Get<Country>(Convert.ToInt32(Request.Form[\"Country_ID\"])...
2008/10/30
[ "https://Stackoverflow.com/questions/251275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32855/" ]
251,276
<p>I am writing a searching function, and have thought up of this query using parameters to prevent, or at least limit, SQL injection attacks. However, when I run it through my program it does not return anything:</p> <p><code>SELECT * FROM compliance_corner WHERE (body LIKE '%@query%') OR (title LIKE '%@query%')</co...
[ { "answer_id": 251288, "author": "Andrew Bullock", "author_id": 28543, "author_profile": "https://Stackoverflow.com/users/28543", "pm_score": 5, "selected": false, "text": "LIKE '%' + @param + '%'" }, { "answer_id": 251311, "author": "John", "author_id": 30006, "autho...
2008/10/30
[ "https://Stackoverflow.com/questions/251276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25515/" ]
251,277
<p>Is there a simple way to sort an iterator in PHP (without just pulling it all into an array and sorting that).</p> <p>The specific example I have is a <a href="http://www.php.net/directoryiterator" rel="noreferrer">DirectoryIterator</a> but it would be nice to have a solution general to any iterator.</p> <pre><cod...
[ { "answer_id": 3832409, "author": "bishop", "author_id": 463000, "author_profile": "https://Stackoverflow.com/users/463000", "pm_score": 3, "selected": false, "text": "// get (recursively) files matching a pattern, each file as SplFileInfo object\n$matches = new RegexIterator(\n ...
2008/10/30
[ "https://Stackoverflow.com/questions/251277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24181/" ]
251,278
<p>Added: Working with SQL Server 2000 and 2005, so has to work on both. Also, value_rk is not a number/integer (Error: Operand data type uniqueidentifier is invalid for min operator)</p> <p>Is there a way to do a single column "DISTINCT" match when I don't care about the other columns returned? Example:</p> <pre><c...
[ { "answer_id": 251290, "author": "Chris Cudmore", "author_id": 18907, "author_profile": "https://Stackoverflow.com/users/18907", "pm_score": 1, "selected": false, "text": "SELECT value, attribute_definition_id, value_rk\nFROM attribute_values\nWHERE value, value_rk IN (\n SELECT v...
2008/10/30
[ "https://Stackoverflow.com/questions/251278", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16631/" ]
251,298
<p>I noticed the specificaition for Collections.sort:</p> <pre><code>public static &lt;T&gt; void sort(List&lt;T&gt; list, Comparator&lt;? super T&gt; c) </code></pre> <p>Why is the "<code>? super</code>" necessary here? If <code>ClassB</code> extends <code>ClassA</code>, then wouldn't we have a guarantee that a <co...
[ { "answer_id": 251328, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 4, "selected": true, "text": "extends super ? extends T ? super T" }, { "answer_id": 251342, "author": "DJClayworth", "author_id": 19276, ...
2008/10/30
[ "https://Stackoverflow.com/questions/251298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18511/" ]
251,307
<p>I have a resource handler that is Response.WriteFile(fileName) based on a parameter passed through the querystring. I am handling the mimetype correctly, but the issue is in some browsers, the filename comes up as Res.ashx (The name of the handler) instead of MyPdf.pdf (the file I am outputting). Can someone inform ...
[ { "answer_id": 251364, "author": "John", "author_id": 30006, "author_profile": "https://Stackoverflow.com/users/30006", "pm_score": 3, "selected": true, "text": "context.Response.AddHeader(\"content-disposition\", \"attachment; filename=\" + resource);\n" }, { "answer_id": 251388...
2008/10/30
[ "https://Stackoverflow.com/questions/251307", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22521/" ]
251,313
<p>Suppose you want to make an async request in JavaScript, but you want to pass some state along to the callback method. Is the following an appropriate use of closures in JavaScript?</p> <pre><code>function getSomethingAsync(someState, callback) { var req = abc.createRequestObject(someParams); req.invoke(mak...
[ { "answer_id": 251347, "author": "Javier", "author_id": 11649, "author_profile": "https://Stackoverflow.com/users/11649", "pm_score": 0, "selected": false, "text": "function getSomethingAsync (someState, callback) {\n req.invoke (function (data) {\n var result = processDataUsing...
2008/10/30
[ "https://Stackoverflow.com/questions/251313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5309/" ]
251,317
<p>When I try to use <code>curl</code> or <code>file_get_contents</code> to read something like <a href="http://example.com/python/json/" rel="nofollow noreferrer">http://example.com/python/json/</a> from <a href="http://example.com/" rel="nofollow noreferrer">http://example.com/</a> I should be getting a JSON response...
[ { "answer_id": 251327, "author": "activout.se", "author_id": 20444, "author_profile": "https://Stackoverflow.com/users/20444", "pm_score": 3, "selected": true, "text": "$curl = curl_init();\ncurl_setopt($curl, CURLOPT_URL, 'http://example.com/');\ncurl_setopt($curl, CURLOPT_RETURNTRANSFE...
2008/10/30
[ "https://Stackoverflow.com/questions/251317", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21716/" ]
251,325
<p>So let's say I have two different functions. One is a part of the BST class, one is just a helper function that will call on that Class function. I will list them out here.</p> <pre><code>sieve(BST&lt;T&gt;* t, int n); </code></pre> <p>this function is called like this: sieve(t,n) the object is called BST t; <...
[ { "answer_id": 251335, "author": "C. K. Young", "author_id": 13, "author_profile": "https://Stackoverflow.com/users/13", "pm_score": 3, "selected": true, "text": "sieve(BST<int>& t, int n)\n &" }, { "answer_id": 251350, "author": "Michael Burr", "author_id": 12711, "a...
2008/10/30
[ "https://Stackoverflow.com/questions/251325", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28392/" ]
251,336
<p>How do I discover classes at runtime in the classpath which implements a defined interface?</p> <p>ServiceLoader suits well (I think, I haven't used it), but I need do it in Java 1.5.</p>
[ { "answer_id": 251691, "author": "erickson", "author_id": 3474, "author_profile": "https://Stackoverflow.com/users/3474", "pm_score": 5, "selected": true, "text": "ServiceLoader public <S> Iterable<S> load(Class<S> ifc) throws Exception {\n ClassLoader ldr = Thread.currentThread().getCo...
2008/10/30
[ "https://Stackoverflow.com/questions/251336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/518/" ]
251,338
<p>I want to get the size of a drive (or UNC path pointing to a partition would be nice, but not required), as well as free space for said drive (or UNC path). This doesn't need to work cross platform; only in Windows.</p> <p>I know it's easy to do in Java 6, but that's not an option; I'm stuck with Java 5.</p> <p>I...
[ { "answer_id": 251447, "author": "DMKing", "author_id": 10887, "author_profile": "https://Stackoverflow.com/users/10887", "pm_score": 3, "selected": true, "text": "D:\\>fsutil fsinfo ntfsinfo c:\nNTFS Volume Serial Number : 0xd49cf9cf9cf9ac5c\nVersion : 3.1\...
2008/10/30
[ "https://Stackoverflow.com/questions/251338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14007/" ]
251,343
<p>I am investigating GDI leaks issue in one of our smart-client application. I am looking for a tool (like <strong>tasklist</strong>) to get the GDI objects associated to a process. I can see the GDI objects in taskmanager, But my requirement to capture it periodically somewhere. For example in a text file.</p>
[ { "answer_id": 400630, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": false, "text": "GDI Objects GDI Objects Process Memory Select Columns" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/251343", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31001/" ]
251,345
<p>Really simple question - how do I do a search to find all records where the name starts with a certain string in ActiveRecord. I've seen all sorts of bits all over the internet where verbatim LIKE SQL clauses are used - but from what I've heard that isn't the 'correct' way of doing it.</p> <p>Is there a 'proper' Ra...
[ { "answer_id": 251518, "author": "Gareth", "author_id": 31582, "author_profile": "https://Stackoverflow.com/users/31582", "pm_score": 7, "selected": false, "text": "MyModel.find(:all, :conditions => [\"field LIKE ?\", \"#{prefix}%\"])\n prefix MyModel.where(\"field LIKE :prefix\", prefix...
2008/10/30
[ "https://Stackoverflow.com/questions/251345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1912/" ]
251,346
<p>What would be the best hashing algorithm if we had the following priorities (in that order):</p> <ol> <li>Minimal hash collisions</li> <li>Performance</li> </ol> <p>It doesn't have to be secure. Basically I'm trying to create an index based on a combination of properties of some objects. <strong>All the properties...
[ { "answer_id": 251394, "author": "activout.se", "author_id": 20444, "author_profile": "https://Stackoverflow.com/users/20444", "pm_score": 2, "selected": false, "text": " /**\n * Computes the hashcode for this String. This is done with int arithmetic,\n * where ** represents exponen...
2008/10/30
[ "https://Stackoverflow.com/questions/251346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8911/" ]
251,351
<p>Is there a way of ordering a list of objects by a count of a property which is a collection? </p> <p>For arguments sake let's say I have a question object with a question name property, a property that is a collection of answer objects and another property that is a collection of user objects. The users join the qu...
[ { "answer_id": 251394, "author": "activout.se", "author_id": 20444, "author_profile": "https://Stackoverflow.com/users/20444", "pm_score": 2, "selected": false, "text": " /**\n * Computes the hashcode for this String. This is done with int arithmetic,\n * where ** represents exponen...
2008/10/30
[ "https://Stackoverflow.com/questions/251351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32835/" ]
251,356
<p>I'm new to ASP.NET MVC so this may be a stupid question.</p> <p>I have an account object that has many parameters. I've figured out a strategy to break this down into a "wizard"-like interface that will walk a user through collecting the required fields to create the initial business objects. It will then step thr...
[ { "answer_id": 251916, "author": "Schotime", "author_id": 29376, "author_profile": "https://Stackoverflow.com/users/29376", "pm_score": 0, "selected": false, "text": "Request.Form(\"key\");\n" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/251356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12950/" ]
251,359
<p>Lets say I have an EJB application which defines some entities and relations among them. I figured the DB schema can easily be created from the entities. So now the app works but after a while a need to change some relations, e.g. a one-to-one needs to become a one-to-many, can I upgrade my DB to do so WITHOUT losin...
[ { "answer_id": 251916, "author": "Schotime", "author_id": 29376, "author_profile": "https://Stackoverflow.com/users/29376", "pm_score": 0, "selected": false, "text": "Request.Form(\"key\");\n" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/251359", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
251,379
<p>I've been a C# programmer for about 2 years total, and professionally for a little more than 1. I work at a company as a developer on an application that began before the days of .NET 2. My question is this:</p> <p>What is the benefit to use databinding from sql queries directly to a control over querying and manua...
[ { "answer_id": 251452, "author": "Mitchel Sellers", "author_id": 13279, "author_profile": "https://Stackoverflow.com/users/13279", "pm_score": 4, "selected": true, "text": "control.DataSource = YourSource;\ncontrol.DataBind();\n" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/251379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8945/" ]
251,391
<p>The <a href="https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2012/c5kehkcz(v=vs.110)" rel="noreferrer">MSDN documentation</a> says that</p> <pre><code>public class SomeObject { public void SomeOperation() { lock(this) { //Access instance variables } } } </code><...
[ { "answer_id": 251399, "author": "Orion Edwards", "author_id": 234, "author_profile": "https://Stackoverflow.com/users/234", "pm_score": 6, "selected": false, "text": "this this List<int>" }, { "answer_id": 251412, "author": "Alan", "author_id": 31223, "author_profile...
2008/10/30
[ "https://Stackoverflow.com/questions/251391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/341413/" ]
251,395
<p>Is there a library out there which I can use in my current ASP.NET app, to validate queryStrings?</p> <p>Edit ~ Using Regex to look for patterns, like string, only, numeric only, string with length x,...etc</p> <p>Thanks</p>
[ { "answer_id": 251410, "author": "craigmoliver", "author_id": 12252, "author_profile": "https://Stackoverflow.com/users/12252", "pm_score": 4, "selected": true, "text": "if (!String.IsNullOrEmpty(Request.Querystring[\"foo\"]))\n{\n // check further\n}\nelse\n{\n // not there, do some...
2008/10/30
[ "https://Stackoverflow.com/questions/251395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23667/" ]
251,396
<p>I am currently developing a Java app which handles a SOAP webservice. </p> <p>The problem lies after I parse the WSDL [the <strong>Parser</strong> object from Apache Axis does it for me], and I create the call. </p> <p>When I try to invoke it, I have to pass a Object[] to assign the parameters [taken from the Acti...
[ { "answer_id": 251443, "author": "Chris Marasti-Georg", "author_id": 96, "author_profile": "https://Stackoverflow.com/users/96", "pm_score": 1, "selected": false, "text": "<bean id=\"myService\" class=\"org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean\">\n <property name...
2008/10/30
[ "https://Stackoverflow.com/questions/251396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4749/" ]
251,401
<p>Does anyone know of any DLLs (preferably .net) that encapsulate the lua 5.1 compiler? I'm working on a .net project where part of it needs to compile lua scripts, and i would rather have a DLL that i could send script code to instead of sending the script to a temporary file and running luac.exe.</p> <p>Edit: I'd ...
[ { "answer_id": 251443, "author": "Chris Marasti-Georg", "author_id": 96, "author_profile": "https://Stackoverflow.com/users/96", "pm_score": 1, "selected": false, "text": "<bean id=\"myService\" class=\"org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean\">\n <property name...
2008/10/30
[ "https://Stackoverflow.com/questions/251401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19252/" ]
251,402
<p>There are <strong>two different</strong> ways to create an empty object in JavaScript:</p> <pre><code>var objectA = {} var objectB = new Object() </code></pre> <p>Is there any difference in how the script engine handles them? Is there any reason to use one over the other?</p> <p>Similarly it is also possible to c...
[ { "answer_id": 251440, "author": "Jason Bunting", "author_id": 1790, "author_profile": "https://Stackoverflow.com/users/1790", "pm_score": 4, "selected": false, "text": "new" }, { "answer_id": 251497, "author": "Bobby Jack", "author_id": 5058, "author_profile": "https...
2008/10/30
[ "https://Stackoverflow.com/questions/251402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1918/" ]
251,403
<p>I want to have a map that has a homogeneous key type but heterogeneous data types.</p> <p>I want to be able to do something like (pseudo-code):</p> <pre><code>boost::map&lt;std::string, magic_goes_here&gt; m; m.add&lt;int&gt;("a", 2); m.add&lt;std::string&gt;("b", "black sheep"); int i = m.get&lt;int&gt;("a"); in...
[ { "answer_id": 252106, "author": "Martin York", "author_id": 14065, "author_profile": "https://Stackoverflow.com/users/14065", "pm_score": 6, "selected": true, "text": "#include <map>\n#include <string>\n#include <iostream>\n#include <boost/any.hpp>\n\nint main()\n{\n try\n {\n ...
2008/10/30
[ "https://Stackoverflow.com/questions/251403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32794/" ]
251,409
<p>In MS SQL 2005 or T-SQL, you can do something like:</p> <pre><code>SELECT T.NAME, T.DATE FROM (SELECT * FROM MyTable WHERE ....) AS T </code></pre> <p>I failed to try the similar SQL on Oracle 9i DB. In MS SQL, the nested SQL is treated as a temporary/dynamic view created on fly and destroyed afterward. How can...
[ { "answer_id": 251414, "author": "James Curran", "author_id": 12725, "author_profile": "https://Stackoverflow.com/users/12725", "pm_score": 3, "selected": false, "text": "SELECT T.NAME, T.DATE \n FROM (SELECT * FROM MyTable WHERE ....) T\n" }, { "answer_id": 251843, "author...
2008/10/30
[ "https://Stackoverflow.com/questions/251409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/62776/" ]
251,420
<p>Basically, I have an <code>iframe</code> embedded in a page and the <code>iframe</code> has some <a href="http://en.wikipedia.org/wiki/JavaScript" rel="noreferrer">JavaScript</a> routines I need to invoke from the parent page.</p> <p>Now the opposite is quite simple as you only need to call <code>parent.functionNam...
[ { "answer_id": 251437, "author": "activout.se", "author_id": 20444, "author_profile": "https://Stackoverflow.com/users/20444", "pm_score": 3, "selected": false, "text": "top.frames[1].frames[2] document.getElementById('theiframe')) name id <iframe src=\"iframe_page1.html\"\n id=\"test...
2008/10/30
[ "https://Stackoverflow.com/questions/251420", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8954/" ]
251,432
<p>Is it possible to <code>typedef</code> long types that use templates? For example:</p> <pre><code>template &lt;typename myfloat_t&gt; class LongClassName { // ... }; template &lt;typename myfloat_t&gt; typedef std::vector&lt; boost::shared_ptr&lt; LongClassName&lt;myfloat_t&gt; &gt; &gt; LongCollection; Long...
[ { "answer_id": 251446, "author": "Leon Timmermans", "author_id": 4727, "author_profile": "https://Stackoverflow.com/users/4727", "pm_score": 5, "selected": true, "text": "template<typename T> struct LongCollection {\n typedef std::vector< boost::shared_ptr< LongClassName<T> > > type;\...
2008/10/30
[ "https://Stackoverflow.com/questions/251432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32515/" ]
251,433
<p>Looking up LINQ and Or in google is proving somewhat difficult so here I am.</p> <p>I want to so the following:</p> <pre><code>(from creditCard in AvailableCreditCards where creditCard.BillToName.ToLowerInvariant().Contains(txtFilter.Text.ToLowerInvariant()) **or creditCard.CardNumber.().Contains(txtFilter.Text)*...
[ { "answer_id": 251449, "author": "Jason Jackson", "author_id": 13103, "author_profile": "https://Stackoverflow.com/users/13103", "pm_score": 2, "selected": false, "text": "var cards = AvailableCreditCards.Where(card=> card.CardNumber.Contains(txtFilter.Text) || card.BillToName.ToLowerInv...
2008/10/30
[ "https://Stackoverflow.com/questions/251433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32772/" ]
251,438
<p>I need to store my class A objects in some data structure. In addition, i would like them to be automatically sorted according to a key, which is in my case an embedded object of another class B. </p> <p>Thus I decided to use a STL priority queue.</p> <p>However it is possible that the 2 or more objects B to have ...
[ { "answer_id": 251461, "author": "hazzen", "author_id": 5066, "author_profile": "https://Stackoverflow.com/users/5066", "pm_score": 3, "selected": false, "text": "void push(const value_type& x) Inserts x into the priority_queue.\n Postcondition: size() will ...
2008/10/30
[ "https://Stackoverflow.com/questions/251438", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
251,439
<p>I want to pass an int list (List) as a declarative property to a web user control like this:</p> <pre><code>&lt;UC:MyControl runat="server" ModuleIds="1,2,3" /&gt; </code></pre> <p>I created a TypeConverter to do this:</p> <pre><code>public class IntListConverter : System.ComponentModel.TypeConverter { public...
[ { "answer_id": 251600, "author": "craigmoliver", "author_id": 12252, "author_profile": "https://Stackoverflow.com/users/12252", "pm_score": 0, "selected": false, "text": "<UC:MyControl id=\"uc\" runat=\"server\" />\n List<int> list = new List<int>();\nlist.add(1);\nlist.add(2);\nlist.add...
2008/10/30
[ "https://Stackoverflow.com/questions/251439", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10475/" ]
251,444
<p>I have a command line Ruby app I'm developing and I want to allow a user of it to provide code that will run as a filter on part of the process. Basically, the application does this:</p> <ol> <li>read in some data</li> <li>If a filter is specified, use it to filter data</li> <li>process the data</li> </ol> <p>I w...
[ { "answer_id": 251608, "author": "Orion Edwards", "author_id": 234, "author_profile": "https://Stackoverflow.com/users/234", "pm_score": 3, "selected": true, "text": "ruby dataprocessor.rb custom_filter\n CustomFilter defined? custom_filter.rb do_filter SomeModel require app/models/some_...
2008/10/30
[ "https://Stackoverflow.com/questions/251444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3029/" ]
251,464
<p>How do I get a function's name as a string?</p> <pre><code>def foo(): pass &gt;&gt;&gt; name_of(foo) &quot;foo&quot; </code></pre>
[ { "answer_id": 251469, "author": "Markus Jarderot", "author_id": 22364, "author_profile": "https://Stackoverflow.com/users/22364", "pm_score": 6, "selected": false, "text": "my_function.func_name\n dir(func_name) func_name.func_code.co_code import dis\ndis.dis(my_function)\n" }, { ...
2008/10/30
[ "https://Stackoverflow.com/questions/251464", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11452/" ]
251,466
<p>An easy jQuery question.</p> <p>I have several identical forms ( except their name ) on one page with a few hidden inputs in each. I want to refer to them by using the form name and then the input name. ( the input names are not unique in my page )</p> <p>So for instance: </p> <pre><code>var xAmt = $('#xForm'+nu...
[ { "answer_id": 251520, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 1, "selected": false, "text": "formSerialize() ajaxSubmit()" }, { "answer_id": 251591, "author": "Eli", "author_id": 27580, "author_p...
2008/10/30
[ "https://Stackoverflow.com/questions/251466", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3208/" ]
251,467
<p>I have a directory of bitmaps that are all of the same dimension. I would like to convert these bitmaps into a video file. I don't care if the video file (codec) is wmv or avi. My only requirement is that I specify the frame rate. This does not need to be cross platform, Windows (Vista and XP) only. I have read...
[ { "answer_id": 251853, "author": "crftr", "author_id": 18213, "author_profile": "https://Stackoverflow.com/users/18213", "pm_score": 5, "selected": true, "text": "double framesPerSecond;\nBitmap[] imagesToDisplay; // add the desired bitmaps to this array\nTimer playbackTimer;\n\nint ...
2008/10/30
[ "https://Stackoverflow.com/questions/251467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10333/" ]
251,479
<p>I acquired a database from another developer. He didn't use auto_incrementers on any tables. They all have primary key ID's, but he did all the incrementing manually, in code.</p> <p>Can I turn those into Auto_incrementers now?</p> <hr> <p>Wow, very nice, thanks a ton. It worked without a hitch on one of my tab...
[ { "answer_id": 251576, "author": "Stephen Walcher", "author_id": 25375, "author_profile": "https://Stackoverflow.com/users/25375", "pm_score": 3, "selected": false, "text": "ALTER TABLE `content` CHANGE `id` `id` SMALLINT( 5 ) UNSIGNED NOT NULL AUTO_INCREMENT \n ALTER TABLE `content` aut...
2008/10/30
[ "https://Stackoverflow.com/questions/251479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26121/" ]
251,480
<p>I have several databases for my applications that use SQL Server 2005 mirroring to keep a nice copy of the data somewhere else. Works like a charm, however, the log file just seems to be growing and growing, one is at 15GB for a 3GB database. </p> <p>Normally, I can just shrink it - however an error pops up that...
[ { "answer_id": 11793553, "author": "masoud Cheragee", "author_id": 720242, "author_profile": "https://Stackoverflow.com/users/720242", "pm_score": 1, "selected": false, "text": " use master\n go\n if object_id ('sp_shrink_mirrored_database', 'P') is not null \n drop proc sp_shr...
2008/10/30
[ "https://Stackoverflow.com/questions/251480", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29466/" ]
251,482
<p>I would like to be able to cast a value dynamically where the type is known only at runtime. Something like this:</p> <pre><code>myvalue = CType(value, "String, Integer or Boolean") </code></pre> <p>The string that contains the type value is passed as an argument and is also read from a database, and the value is ...
[ { "answer_id": 251508, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https://Stackoverflow.com/users/3043", "pm_score": 4, "selected": true, "text": "myvalue Object" }, { "answer_id": 251558, "author": "Sam Corder", "author_id": 2351, "author_profil...
2008/10/30
[ "https://Stackoverflow.com/questions/251482", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10968/" ]
251,485
<p>Is there a way to dynamically invoke a method in the same class for PHP? I don't have the syntax right, but I'm looking to do something similar to this:</p> <pre><code>$this-&gt;{$methodName}($arg1, $arg2, $arg3); </code></pre>
[ { "answer_id": 251499, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 4, "selected": false, "text": "$this->$methodName($arg1, $arg2, $arg3);\n" }, { "answer_id": 251512, "author": "andy.gurin", "author...
2008/10/30
[ "https://Stackoverflow.com/questions/251485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13281/" ]
251,532
<p>If I have a URL (eg. <a href="http://www.foo.com/alink.pl?page=2" rel="noreferrer">http://www.foo.com/alink.pl?page=2</a>), I want to determine if I am being redirected to another link. I'd also like to know the final URL (eg. <a href="http://www.foo.com/other_link.pl" rel="noreferrer">http://www.foo.com/other_link...
[ { "answer_id": 251559, "author": "Leon Timmermans", "author_id": 4727, "author_profile": "https://Stackoverflow.com/users/4727", "pm_score": 2, "selected": false, "text": "response_redirect add_handler" }, { "answer_id": 251569, "author": "Federico A. Ramponi", "author_id...
2008/10/30
[ "https://Stackoverflow.com/questions/251532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
251,535
<p>One of our customers wants to be able to enter a date with only 2 digits for the year component. The date will be in the past, so we want it to work for the previous century if the 2 digit year is after the current year, but work for the current century if the 2 digit year is equal to or less than the current year.<...
[ { "answer_id": 251570, "author": "matt b", "author_id": 4249, "author_profile": "https://Stackoverflow.com/users/4249", "pm_score": 3, "selected": false, "text": "public static String anEasierStupidDateWithNoStringParsing(String dateString) {\n DateFormat df = new SimpleDateFormat(\"M...
2008/10/30
[ "https://Stackoverflow.com/questions/251535", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1310/" ]
251,541
<pre><code>public void Getrecords(ref IList iList,T dataItem) { iList = Populate.GetList&lt;dataItem&gt;() // GetListis defined as GetList&lt;T&gt; } </code></pre> <p>dataItem can be my order object or user object which will be decided at run time.The above does not work as it gives me this error The type 'T' must...
[ { "answer_id": 251552, "author": "Ryan Lanciaux", "author_id": 1385358, "author_profile": "https://Stackoverflow.com/users/1385358", "pm_score": -1, "selected": false, "text": "Getrecords<T> ...\n" }, { "answer_id": 251555, "author": "James Curran", "author_id": 12725, ...
2008/10/30
[ "https://Stackoverflow.com/questions/251541", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
251,557
<p>I need to echo a string containing angle brackets (&lt; and >) to a file on a Windows machine. Basically what I want to do is the following:<br> <code>echo some string &lt; with angle &gt; brackets &gt;&gt;myfile.txt</code></p> <p>This doesn't work since the command interpreter gets confused with the angle bracket...
[ { "answer_id": 251573, "author": "Tim Robinson", "author_id": 32133, "author_profile": "https://Stackoverflow.com/users/32133", "pm_score": 9, "selected": true, "text": "echo some string ^< with angle ^> brackets >>myfile.txt\n" }, { "answer_id": 5455611, "author": "aalaap", ...
2008/10/30
[ "https://Stackoverflow.com/questions/251557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26302/" ]
251,560
<p>Our app (already deployed) is using an Access/Jet database. The upcoming version of our software requires some additional columns in one of the tables. I need to first check if these columns exist, and then add them if they don't.</p> <p>Can someone provide a quick code sample, link, or nudge in the right direction...
[ { "answer_id": 251596, "author": "JamesSugrue", "author_id": 1075, "author_profile": "https://Stackoverflow.com/users/1075", "pm_score": 4, "selected": true, "text": "Dim conn as New AdoConnection(someConnStr)\nDim cmd as New AdoCommand\ncmd.Connection = conn\ncmd.CommandText = \"ALTER T...
2008/10/30
[ "https://Stackoverflow.com/questions/251560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27414/" ]
251,592
<p>PHP (among others) will execute the deepest function first, working its way out. For example,</p> <pre><code>$text = strtoupper(str_replace('_', ' ', file_get_contents('file.txt'))); </code></pre> <p>I'm doing something very similar to the above example for a template parser. It looks for the tags</p> <pre><code>...
[ { "answer_id": 251610, "author": "theraccoonbear", "author_id": 7210, "author_profile": "https://Stackoverflow.com/users/7210", "pm_score": 0, "selected": false, "text": "$a = \"b\";\n$b = \"Hello World!\";\n\nprint $$a;\n" }, { "answer_id": 251655, "author": "Tomasz Tybulewi...
2008/10/30
[ "https://Stackoverflow.com/questions/251592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32881/" ]
251,603
<p>Was wondering if it is recomended to pass a database connection object around(to other modules) or let the method (in the other module) take care of setting it up. I am leaning toward letting the method set it up as to not have to check the state of the connection before using it, and just having the caller pass an...
[ { "answer_id": 251614, "author": "craigmoliver", "author_id": 12252, "author_profile": "https://Stackoverflow.com/users/12252", "pm_score": 0, "selected": false, "text": "<configuration>\n <connectionStrings>\n <add name=\"conn1\" providerName=\"System.Data.SqlClient\" connecti...
2008/10/30
[ "https://Stackoverflow.com/questions/251603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11907/" ]
251,622
<p>I'm looking for a tool that can pretty-print (AKA tidy or beautify) source code in as many languages as possible. Those I'm particularly keen on include:</p> <ul> <li>Java </li> <li>JSP </li> <li>HTML </li> <li>JavaScript </li> <li>SQL</li> <li>JSON</li> <li>XML</li> </ul> <p>Ideally, the tool should be able to up...
[ { "answer_id": 251835, "author": "ephemient", "author_id": 20713, "author_profile": "https://Stackoverflow.com/users/20713", "pm_score": 2, "selected": false, "text": "~/bin/pp.hs #!/usr/bin/env runhaskell\nmodule Main (main) where\nimport Language.Haskell.Parser\nimport Language.Haskell...
2008/10/30
[ "https://Stackoverflow.com/questions/251622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2648/" ]
251,636
<p>ExtJS has Ext.each() function, but is there a map() also hidden somewhere?</p> <p>I have tried hard, but haven't found anything that could fill this role. It seems to be something simple and trivial, that a JS library so large as Ext clearly must have.</p> <p>Or when Ext really doesn't include it, what would be th...
[ { "answer_id": 251689, "author": "Jason Bunting", "author_id": 1790, "author_profile": "https://Stackoverflow.com/users/1790", "pm_score": 2, "selected": false, "text": "map if(Ext && typeof(Ext.map) == \"undefined\") { // only if Ext exists & map isn't already defined\n Ext.map = func...
2008/10/30
[ "https://Stackoverflow.com/questions/251636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15982/" ]
251,637
<p>Anyone know where to find a reference that describes how to output color on the Windows CLI interfaces using API and/or stdout?</p>
[ { "answer_id": 251697, "author": "Toon Krijthe", "author_id": 18061, "author_profile": "https://Stackoverflow.com/users/18061", "pm_score": 1, "selected": false, "text": "color bg fg\n 0: Black\n1: Blue\n2: Green\n3: Cyan\n4: Red\n5: Purple\n6: Yellow\n7: Gray\n8: Silver\n9: Light blue\n...
2008/10/30
[ "https://Stackoverflow.com/questions/251637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26227/" ]
251,651
<p>I have a table of about a million rows and I need to update every row in the table with the result of a lengthy calculation (the calculation gets a potentially different result for each row). Because it is time consuming, the DBA must be able to control execution. This particular calculation needs to be run once a y...
[ { "answer_id": 251725, "author": "Justin Cave", "author_id": 10397, "author_profile": "https://Stackoverflow.com/users/10397", "pm_score": 4, "selected": true, "text": "DBMS_ALERT.WAITONE PAUSE_YEAREND_JOB RESUME_YEAREND_JOB PAUSE_YEAREND_JOB" }, { "answer_id": 252696, "autho...
2008/10/30
[ "https://Stackoverflow.com/questions/251651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3275/" ]
251,659
<p>I have created a json object from ruby with cobravsmongoose, however the attributes have the <strong><code>@</code></strong> symbol in front of them. Whenever I try to access them with standard object notation in JavaScript, such as <code>object.object.object.@attribute</code> I get a <em>parse error</em>. Is ther...
[ { "answer_id": 251725, "author": "Justin Cave", "author_id": 10397, "author_profile": "https://Stackoverflow.com/users/10397", "pm_score": 4, "selected": true, "text": "DBMS_ALERT.WAITONE PAUSE_YEAREND_JOB RESUME_YEAREND_JOB PAUSE_YEAREND_JOB" }, { "answer_id": 252696, "autho...
2008/10/30
[ "https://Stackoverflow.com/questions/251659", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3484/" ]
251,675
<p>I have a requirement to produce a Web User Control (in C#) which will exhibit different behaviour when clicked depending on whether the shift (or control) key is pressed at the time. The control itself will contain an ImageButton and/or Hyperlink.</p> <p>Is this possible?</p> <p>Basically, if the logged in user is...
[ { "answer_id": 251681, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 2, "selected": false, "text": "event.ctrlKey event.altKey event.shiftKey event.modifiers" }, { "answer_id": 251687, "author": "matt b", ...
2008/10/30
[ "https://Stackoverflow.com/questions/251675", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31580/" ]
251,688
<p>Does anybody knows how can I get the max and min value of the 2nd and 3rd columns in PHP?</p> <pre><code>$ar = array(array(1, 10, 9.0, 'HELLO'), array(1, 11, 12.9, 'HELLO'), array(3, 12, 10.9, 'HELLO')); </code></pre> <p>Output should be like:</p> <p>max(12.9) min(10)</p>
[ { "answer_id": 251721, "author": "belunch", "author_id": 32867, "author_profile": "https://Stackoverflow.com/users/32867", "pm_score": 2, "selected": true, "text": "<?php\n$ar = array(array(1, 10, 9.0, 'HELLO'),\n array(1, 11, 12.9, 'HELLO'),\n array(3, 12...
2008/10/30
[ "https://Stackoverflow.com/questions/251688", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
251,694
<p>I have Perl code which relies on <code>Term::ReadKey</code> to get the terminal width. My installation is missing this module, so I want to provide a default if the module isn't present rather than throw an exception.</p> <p>How can I conditionally use an optional module, without knowing ahead of time whether it is ...
[ { "answer_id": 251786, "author": "John Siracusa", "author_id": 164, "author_profile": "https://Stackoverflow.com/users/164", "pm_score": 8, "selected": true, "text": "my $rc = eval\n{\n require Term::ReadKey;\n Term::ReadKey->import();\n 1;\n};\n\nif($rc)\n{\n # Term::ReadKey loaded ...
2008/10/30
[ "https://Stackoverflow.com/questions/251694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/459/" ]
251,696
<p>What is the best way to read and/or set Internet Explorer options from a web page in Javascript? I know that these are in registry settings.</p> <p>For example, I'm using the <a href="http://www.lutanho.net/diagram/" rel="nofollow noreferrer">JavaScript Diagram Builder</a> to dynamically generate bar charts within...
[ { "answer_id": 251837, "author": "Lee Kowalkowski", "author_id": 30945, "author_profile": "https://Stackoverflow.com/users/30945", "pm_score": 1, "selected": false, "text": "<style>\n div.bar\n {\n width:1px;\n border-left:10px solid red;\n }\n</style>\n<div class=\"ba...
2008/10/30
[ "https://Stackoverflow.com/questions/251696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26671/" ]
251,705
<p>Here is my situation: I know almost nothing about Perl but it is the only language available on a porting machine. I only have permissions to write in my local work area and not the Perl install location. I need to use the <a href="http://search.cpan.org/dist/Parallel-ForkManager" rel="noreferrer">Parallel::ForkMana...
[ { "answer_id": 251766, "author": "brian d foy", "author_id": 2766176, "author_profile": "https://Stackoverflow.com/users/2766176", "pm_score": 6, "selected": true, "text": "perl Makefile.PL INSTALL_BASE=/mydir/perl\n % cpan\ncpan> o conf makepl_arg INSTALL_BASE=/mydir/perl\ncpan> o conf ...
2008/10/30
[ "https://Stackoverflow.com/questions/251705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7743/" ]
251,711
<p>I have a SQL database (SQL Server 2008) which contains the following design</p> <h2>ITEM</h2> <ul> <li>ID (Int, Identity)</li> <li>Name (NVarChar(50))</li> <li>Description (NVarChar(200))</li> </ul> <h2>META</h2> <ul> <li>ID (Int, Identity)</li> <li>Name (NVarChar(50))</li> </ul> <p>There exists a N-N relations...
[ { "answer_id": 252011, "author": "Andrew Theken", "author_id": 32238, "author_profile": "https://Stackoverflow.com/users/32238", "pm_score": 1, "selected": false, "text": "var db = new YourDataContext();\nvar possibleItems = (from m in db.Metas where <meta criteria> select m.ItemMetas.It...
2008/10/30
[ "https://Stackoverflow.com/questions/251711", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25319/" ]
251,727
<p>I've set hibernate.generate_statistics=true and now need to register the mbeans so I can see the statistics in the jmx console. I can't seem to get anywhere and this doesn't seem like it should be such a difficult problem. Maybe I'm making things overcomplicated, but in any case so far I've tried:</p> <ul> <li>I co...
[ { "answer_id": 251822, "author": "Matt S.", "author_id": 1458, "author_profile": "https://Stackoverflow.com/users/1458", "pm_score": 1, "selected": true, "text": "SessionFactory sf = (new Configuration()).configure().buildSessionFactory();\n EntityManagerFactory emf = Persistence.createE...
2008/10/30
[ "https://Stackoverflow.com/questions/251727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1458/" ]
251,730
<p>We've had an ongoing need here that I can't figure out how to address using the stock Maven 2 tools and documentation.</p> <p>Some of our developers have some very long running JUnit tests (usually stress tests) that under no circumstances should be run as a regular part of the build process / nightly build.</p> <...
[ { "answer_id": 251760, "author": "krosenvold", "author_id": 23691, "author_profile": "https://Stackoverflow.com/users/23691", "pm_score": 5, "selected": true, "text": " <profile>\n <id>integrationtest</id>\n <build>\n <plugins>\n <plugin>\n ...
2008/10/30
[ "https://Stackoverflow.com/questions/251730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32514/" ]
251,746
<p>I want to create a class that takes string array as a constructor argument and has command line option values as members vals. Something like below, but I don't understand how the Bistate works.</p> <pre><code>import scalax.data._ import scalax.io.CommandLineParser class TestCLI(arguments: Array[String]) extends C...
[ { "answer_id": 252007, "author": "Daniel Spiewak", "author_id": 9815, "author_profile": "https://Stackoverflow.com/users/9815", "pm_score": 2, "selected": false, "text": "Bistate Either Bistate Either Option None Either def div(a: Int, b: Int) = if (b != 0) Left(a / b) else Right(\"Divid...
2008/10/30
[ "https://Stackoverflow.com/questions/251746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30958/" ]
251,753
<p>Using VB.net (.net 2.0) I have a string in this format:</p> <pre><code>record1_field1,record1_field2,record2_field3,record2_field1,record2_field2, </code></pre> <p>etc...</p> <p>I wonder what the best (easiest) way is to get this into an xml?</p> <p>I can think of 2 ways:</p> <p>Method 1: - use split to get the...
[ { "answer_id": 251770, "author": "mmattax", "author_id": 1638, "author_profile": "https://Stackoverflow.com/users/1638", "pm_score": 3, "selected": true, "text": "\nXmlDocument doc = new XmlDocuent();\n\nstring[] data = csv.split(',');\n\nXmlNode = doc.CreateElement(\"root\");\nforeach(s...
2008/10/30
[ "https://Stackoverflow.com/questions/251753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32892/" ]
251,759
<p>I'm writing an application that uses renaming rules to rename a list of files based on information given by the user. The files may be inconsistently named to begin with, or the filenames may be consistent. The user selects a list of files, and inputs information about the files (for MP3s, they would be Artist, Ti...
[ { "answer_id": 251897, "author": "Markus Jarderot", "author_id": 22364, "author_profile": "https://Stackoverflow.com/users/22364", "pm_score": 3, "selected": true, "text": "%Label% (?<Label>.*?) %Artist%-%Album%-%Track%-%Title%.mp3\n (?<Artist>.*?)-(?<Album>.*?)-(?<Track>.*?)-(?<Title>.*...
2008/10/30
[ "https://Stackoverflow.com/questions/251759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29249/" ]
251,778
<p>Are there, in the canonical Gang of Four list, any design patterns that you often find misused, misunderstood or overused (other than the highly debated Singleton)? In other words, is there a design pattern you would advise to think twice before using? (And why?)</p>
[ { "answer_id": 251810, "author": "Eoin Campbell", "author_id": 30155, "author_profile": "https://Stackoverflow.com/users/30155", "pm_score": 4, "selected": false, "text": "MyObject MyObjectFactory" }, { "answer_id": 251995, "author": "Bill K", "author_id": 12943, "aut...
2008/10/30
[ "https://Stackoverflow.com/questions/251778", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18770/" ]
251,781
<p>I believe there's a way to find the kth largest element in an unsorted array of length n in O(n). Or perhaps it's "expected" O(n) or something. How can we do this?</p>
[ { "answer_id": 251797, "author": "warren", "author_id": 4418, "author_profile": "https://Stackoverflow.com/users/4418", "pm_score": 4, "selected": false, "text": "\"Make one pass through tracking the three largest values so far.\" \n Build a heap/priority queue. O(n)\nPop top element. ...
2008/10/30
[ "https://Stackoverflow.com/questions/251781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22471/" ]
251,791
<p>I need to use JUnit 4.4 (or newer) in a set of eclipse plugin tests, but I've run into the following problem:</p> <p>Tests are not detected when running with the junit 4.4 or 4.5 bundles from springsource (<a href="http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.org.junit&amp;...
[ { "answer_id": 261242, "author": "Drejc", "author_id": 6482, "author_profile": "https://Stackoverflow.com/users/6482", "pm_score": 0, "selected": false, "text": "import static junit.framework.Assert.*;\n...\n@Test\n public void testDummy() throws Exception\n" }, { "answer_id":...
2008/10/30
[ "https://Stackoverflow.com/questions/251791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3446/" ]
251,806
<p>I have a interface that defines some methods with attributes. These attributes need to be accessed from the calling method, but the method I have does not pull the attributes from the interface. What am I missing?</p> <pre><code>public class SomeClass: ISomeInterface { MyAttribute GetAttribute() { ...
[ { "answer_id": 251827, "author": "Marc Gravell", "author_id": 23354, "author_profile": "https://Stackoverflow.com/users/23354", "pm_score": 4, "selected": true, "text": "using System;\nusing System.ComponentModel;\nusing System.Diagnostics;\nusing System.Reflection;\ninterface IFoo\n{\n ...
2008/10/30
[ "https://Stackoverflow.com/questions/251806", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24500/" ]
251,807
<p>I use eclipse to work on an application which was originally created independently of eclipse. As such, the application's directory structure is decidedly not eclipse-friendly.</p> <p>I want to programmatically generate a project for the application. The <code>.project</code> and <code>.classpath</code> files are...
[ { "answer_id": 252168, "author": "James Van Huis", "author_id": 31828, "author_profile": "https://Stackoverflow.com/users/31828", "pm_score": 5, "selected": true, "text": "IProgressMonitor progressMonitor = new NullProgressMonitor();\nIWorkspaceRoot root = ResourcesPlugin.getWorkspace()....
2008/10/30
[ "https://Stackoverflow.com/questions/251807", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16977/" ]
251,814
<p>I've been struggling lately with understanding the best way to organize jQuery code. I asked another question earlier and I don't think I was specific enough (<a href="https://stackoverflow.com/questions/247209/javascript-how-do-you-organize-this-mess">found in this question here</a>).</p> <p>My problem is that the...
[ { "answer_id": 251854, "author": "Peter Bailey", "author_id": 8815, "author_profile": "https://Stackoverflow.com/users/8815", "pm_score": 3, "selected": false, "text": "var aCustomObject = {\n container: $(\"#inputContainer\"),\n initialize: function()\n {\n for(var i=0; ...
2008/10/30
[ "https://Stackoverflow.com/questions/251814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17091/" ]
251,834
<p>Given a Generic List of objects that contain a member variable that is a string, what is the best way to get the object that contains the string with the longest length?</p> <p>ie. assuming val1 is the string I'm comparing:</p> <pre><code>0 : { val1 = "a" } 1 : { val1 = "aa" } 2 : { val1 = "aba" } 3 : { val1 = ...
[ { "answer_id": 251858, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 3, "selected": true, "text": "Dim result = elements.Aggregate(Function(a, b) If(a.val1.Length > b.val1.Length, a, b))\n" }, { "answer_id": 2...
2008/10/30
[ "https://Stackoverflow.com/questions/251834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2847/" ]
251,842
<p>I'm using Asp.Net 2.0. I have a scenario where i need to check a user input against any of two ranges. For e.g. I need to check a textbox value against ranges 100-200 or 500-600. I know that i can hook up 2 Asp.Net RangeValidators to the TextBox, but that will try to validate the input against both the ranges, an A...
[ { "answer_id": 251873, "author": "cfeduke", "author_id": 5645, "author_profile": "https://Stackoverflow.com/users/5645", "pm_score": 1, "selected": false, "text": "^(1\\d{2}|200|5\\d{2}|600)$\n" }, { "answer_id": 251881, "author": "Ty.", "author_id": 16948, "author_pr...
2008/10/30
[ "https://Stackoverflow.com/questions/251842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28773/" ]
251,850
<p>I'm using symfony and propel, and I'm trying to invoke a specific culture on an object and output some fields of that object to the screen in that specific culture. However, if the object's mapped database record doesn't have those fields in that specific culture, I would like it to default to the base culture (in t...
[ { "answer_id": 8790184, "author": "Bert-Jan de Lange", "author_id": 1138912, "author_profile": "https://Stackoverflow.com/users/1138912", "pm_score": 0, "selected": false, "text": "i18n getTranslation($language) isNew() (true) (false)" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/251850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/53001/" ]
251,851
<p>I have a directory of files that I'd like to append file extension to as long as they don't have an existing, specified extension. So add .txt to all file names that don't end in .xyz. PowerShell seems like a good candidate for this, but I don't know anything about it. How would I go about it?</p>
[ { "answer_id": 251855, "author": "kenny", "author_id": 3225, "author_profile": "https://Stackoverflow.com/users/3225", "pm_score": 2, "selected": false, "text": "C:\\Documents and Settings\\Kenny>help for\nRuns a specified command for each file in a set of files.\n\nFOR %variable IN (set...
2008/10/30
[ "https://Stackoverflow.com/questions/251851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1786/" ]
251,861
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/174796/watermarked-textbox-for-compact-framework">Watermarked Textbox for Compact Framework</a> </p> </blockquote> <p>Using Visual Studio 2008 SP1, the latest Compact framework and Windows Mobile 5.</p> <p>I n...
[ { "answer_id": 251855, "author": "kenny", "author_id": 3225, "author_profile": "https://Stackoverflow.com/users/3225", "pm_score": 2, "selected": false, "text": "C:\\Documents and Settings\\Kenny>help for\nRuns a specified command for each file in a set of files.\n\nFOR %variable IN (set...
2008/10/30
[ "https://Stackoverflow.com/questions/251861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16241/" ]
251,865
<p>For a very simple ajax name lookup, I'm sending an id from the client webpage to the server (Tomcat 5.5, Java 5), looking it up in a database and returning a string, which is assigned to a javascript variable back in the client (and then displayed).</p> <p>The javascript code that receives the value is pretty stand...
[ { "answer_id": 251855, "author": "kenny", "author_id": 3225, "author_profile": "https://Stackoverflow.com/users/3225", "pm_score": 2, "selected": false, "text": "C:\\Documents and Settings\\Kenny>help for\nRuns a specified command for each file in a set of files.\n\nFOR %variable IN (set...
2008/10/30
[ "https://Stackoverflow.com/questions/251865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
251,868
<p>I was watching <a href="http://channel9.msdn.com/pdc2008/TL16/" rel="noreferrer">Anders' talk about C# 4.0 and sneak preview of C# 5.0</a>, and it got me thinking about when optional parameters are available in C# what is going to be the recommended way to declare methods that do not need all parameters specified?</...
[ { "answer_id": 251893, "author": "Mark A. Nicolosi", "author_id": 1103052, "author_profile": "https://Stackoverflow.com/users/1103052", "pm_score": 2, "selected": false, "text": "public Rectangle (Point start = Point.Zero, int width, int height)\n{\n Start = start;\n Width = width;...
2008/10/30
[ "https://Stackoverflow.com/questions/251868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13552/" ]
251,885
<p>Or does it?</p> <p>Should an object-oriented design use a language construct that exposes member data by default, if there is an equally useful construct that properly hides data members?</p> <p>EDIT: One of the responders mentioned that if there's no invariant one can use a struct. That's an interesting observati...
[ { "answer_id": 251906, "author": "cfeduke", "author_id": 5645, "author_profile": "https://Stackoverflow.com/users/5645", "pm_score": 2, "selected": false, "text": "public struct Point\n{\n int X;\n int Y;\n}\n" }, { "answer_id": 251942, "author": "Steve Kuo", "autho...
2008/10/30
[ "https://Stackoverflow.com/questions/251885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19863/" ]
251,888
<p>I am calling <code>SPWeb.GetSiteData(anSpCrossListQuery)</code>.</p> <p>It fails to bring back any results or any errors when I call it with an accidental space at the end of the CAML query <code>&lt;Where&gt;&lt;/Where&gt;</code> clause.</p> <p>Anyone have an idea why?</p>
[ { "answer_id": 251906, "author": "cfeduke", "author_id": 5645, "author_profile": "https://Stackoverflow.com/users/5645", "pm_score": 2, "selected": false, "text": "public struct Point\n{\n int X;\n int Y;\n}\n" }, { "answer_id": 251942, "author": "Steve Kuo", "autho...
2008/10/30
[ "https://Stackoverflow.com/questions/251888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13813/" ]
251,890
<p>I am a rookie was using the Visual Studio 2008 built-in Unit Testing components, what would be the best way to record or display your results in a unit test?</p> <p>I want to test my service method when it returns a System.GUID and an empty System.GUID</p> <pre><code>[TestMethod] public void GetGUID() { MyWcfSe...
[ { "answer_id": 251895, "author": "cfeduke", "author_id": 5645, "author_profile": "https://Stackoverflow.com/users/5645", "pm_score": 0, "selected": false, "text": "Assert Assert.IsTrue(...)" }, { "answer_id": 251991, "author": "Ty.", "author_id": 16948, "author_profil...
2008/10/30
[ "https://Stackoverflow.com/questions/251890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26327/" ]
251,902
<p>I would like to search through all of my procedures packages and functions for a certain phrase.</p> <p>Since it is possible to retrieve the code for compiled procedures using toad I assume that the full text is stored in some data dictionary table. Does anyone know where that would be?</p> <p>Thanks a lot</p>
[ { "answer_id": 251914, "author": "Justin Cave", "author_id": 10397, "author_profile": "https://Stackoverflow.com/users/10397", "pm_score": 8, "selected": true, "text": "SELECT name, line, text\n FROM dba_source\n WHERE upper(text) like upper('%<<your_phrase>>%') escape '\\' \n" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/251902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5056/" ]
251,908
<p>What commands in Emacs can I use to insert into the text buffer of a file the current date and time?</p> <p><em>(For example, the equivalent in Notepad is simply pressing F5 which is about the only useful feature for Notepad!)</em></p>
[ { "answer_id": 251922, "author": "Christian C. Salvadó", "author_id": 5445, "author_profile": "https://Stackoverflow.com/users/5445", "pm_score": 6, "selected": false, "text": ";; ====================\n;; insert date and time\n\n(defvar current-date-time-format \"%a %b %d %H:%M:%S %Z %Y\...
2008/10/30
[ "https://Stackoverflow.com/questions/251908", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4872/" ]
251,909
<p>I'm using <code>Microsoft's DSOFramer</code> control to allow me to embed an Excel file in my dialog so the user can choose his sheet, then select his range of cells; it's used with an import button on my dialog.</p> <p>The problem is that when I call the <code>DSOFramer's OPEN</code> function, if I have Excel open...
[ { "answer_id": 251922, "author": "Christian C. Salvadó", "author_id": 5445, "author_profile": "https://Stackoverflow.com/users/5445", "pm_score": 6, "selected": false, "text": ";; ====================\n;; insert date and time\n\n(defvar current-date-time-format \"%a %b %d %H:%M:%S %Z %Y\...
2008/10/30
[ "https://Stackoverflow.com/questions/251909", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1965047/" ]
251,924
<p>Lists in C# have the <code>.ToArray()</code> method. I want the inverse, where an array is transformed into a list. I know how to create a list and loop through it but I would like a one liner to swap it back.</p> <p>I am using the <code>String.Split</code> method in the .NET 2.0 environment, so LINQ, etc. is not a...
[ { "answer_id": 251928, "author": "Ty.", "author_id": 16948, "author_profile": "https://Stackoverflow.com/users/16948", "pm_score": 3, "selected": false, "text": "return new List<string>(stringArray);\n" }, { "answer_id": 251929, "author": "Ovidiu Pacurar", "author_id": 28...
2008/10/30
[ "https://Stackoverflow.com/questions/251924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4491/" ]
251,937
<p>What do you keep on mind to avoid memory leaks when you write thousands lines of .NET code? I'm a big fan of prevention over inspection , there is a famous example regarding this point which is using a "StringBuilder" to combine strings instead of "String1+String2", so what is else out there from your coding experi...
[ { "answer_id": 251968, "author": "Cameron MacFarland", "author_id": 3820, "author_profile": "https://Stackoverflow.com/users/3820", "pm_score": 1, "selected": false, "text": "something.someEvent += new EventHandler(memoryhog.someMethod);\n[...]\nsomething.someEvent += new EventHandler(me...
2008/10/30
[ "https://Stackoverflow.com/questions/251937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20006/" ]
251,941
<p>I'm in javascript, running this in the console </p> <pre><code>d = new Date(); d.setMonth(1); d.setFullYear(2009); d.setDate(15); d.toString(); </code></pre> <p>outputs this:</p> <pre><code>"Sun Mar 15 2009 18:05:46 GMT-0400 (EDT)" </code></pre> <p>Why would this be...
[ { "answer_id": 251962, "author": "Issac Kelly", "author_id": 144, "author_profile": "https://Stackoverflow.com/users/144", "pm_score": 1, "selected": false, "text": "d = new Date();\nd.setDate(15); \nd.setMonth(1);\nd.setFullYear(2009); ...
2008/10/30
[ "https://Stackoverflow.com/questions/251941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/144/" ]
251,945
<p>I have a site that creates images for some bit of content after the content is created. I'm trying to figure out what to do in between the time the content is created and the image is created. My thought is that I might be able to set a custom image to display on a 404 error on the original image. However, I'm no...
[ { "answer_id": 251977, "author": "Jasper Bekkers", "author_id": 31486, "author_profile": "https://Stackoverflow.com/users/31486", "pm_score": 1, "selected": false, "text": "<object> <P> <!-- First, try the Python applet -->\n<OBJECT title=\"The Earth as seen from space\" ...
2008/10/30
[ "https://Stackoverflow.com/questions/251945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31240/" ]
251,946
<p>I am currently using Subversion as my Source Control system, mainly because I found ANkhSVN to be a quite nicely integrated into Visual Studio.</p> <p>But many people seem to be using Git or Mercurial and others with great success.</p> <p>Now, I am wondering how to use a system like Git without some sort of IDE in...
[ { "answer_id": 251965, "author": "Jasper Bekkers", "author_id": 31486, "author_profile": "https://Stackoverflow.com/users/31486", "pm_score": 1, "selected": false, "text": "svn add <filename> svn commit --message <foo>" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/251946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21699/" ]
251,957
<p>I have a simple table in SQL Server 2005, I wish to convert this to XML (using the "FOR XML" clause). I'm having trouble getting my XML to look like the required output.</p> <p>I've tried looking through various tutorials on the web, but I am struggling. Can someone help?</p> <p>The table I have looks like this</p...
[ { "answer_id": 252021, "author": "Nat", "author_id": 13813, "author_profile": "https://Stackoverflow.com/users/13813", "pm_score": 1, "selected": false, "text": " /*\ncreate table #tablename\n(\n[type] varchar(20),\n[group] varchar(20),\n[value] varchar(20)\n)\n\ninsert into #tablename s...
2008/10/30
[ "https://Stackoverflow.com/questions/251957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15144/" ]
251,960
<p>I have a long running insert transaction that inserts data into several related tables. </p> <p>When this insert is running, I cannot perform a select * from MainTable. The select just spins its wheels until the insert is done. </p> <p>I will be performing several of these inserts at the same/overlapping time. ...
[ { "answer_id": 252005, "author": "Bill Karwin", "author_id": 20860, "author_profile": "https://Stackoverflow.com/users/20860", "pm_score": 0, "selected": false, "text": "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED\n" }, { "answer_id": 252025, "author": "DJ.", "author...
2008/10/30
[ "https://Stackoverflow.com/questions/251960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1048/" ]
251,964
<p>I often accidentally create a branch that contains more code than it needs to. When that happens, I delete the branch files, the branch tag, and then start over. The thing that stinks is having to sync the huge pile of data just so I can delete it.</p> <p>Is there a way to delete server-side?</p>
[ { "answer_id": 252038, "author": "pd.", "author_id": 19066, "author_profile": "https://Stackoverflow.com/users/19066", "pm_score": 4, "selected": false, "text": "//depot/oops/... //your-client/oops/...\n p4 sync -k oops/...\n p4 delete oops/...\np4 submit oops/...\n" }, { "answer...
2008/10/30
[ "https://Stackoverflow.com/questions/251964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11116/" ]
251,985
<p>I am binding the dropdown with db entity. </p> <pre><code>ddlCustomer.DataSource = Customer.GetAll(); ddlCustomer.DataTextField = "CustomerName"; ddlCustomer.DataBind(); </code></pre> <p>I want to add "SELECT" as the first itemlist in dropdown and bind then entity to the dropdown. How can i do this?</p>
[ { "answer_id": 251998, "author": "Aleris", "author_id": 20417, "author_profile": "https://Stackoverflow.com/users/20417", "pm_score": 3, "selected": true, "text": "ddlCustomer.Items.Insert(0, \"SELECT\");\n" }, { "answer_id": 255711, "author": "Stefan", "author_id": 30604...
2008/10/30
[ "https://Stackoverflow.com/questions/251985", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14752/" ]
251,987
<p>Imagine I have a property defined in global.asax. </p> <pre><code>public List&lt;string&gt; Roles { get { ... } set { ... } } </code></pre> <p>I want to use the value in another page. how to I refer to it?</p>
[ { "answer_id": 252013, "author": "Eoin Campbell", "author_id": 30155, "author_profile": "https://Stackoverflow.com/users/30155", "pm_score": 2, "selected": false, "text": "public partial class _Default : System.Web.UI.Page \n{\n}\n public class BasePage : System.Web.UI.Page \n{\n publi...
2008/10/30
[ "https://Stackoverflow.com/questions/251987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4491/" ]
252,014
<p>Sometimes it's difficult to describe some of the things that "us programmers" may think are simple to non-programmers and management types.</p> <p>So...</p> <p>How would you describe the difference between Managed Code (or Java Byte Code) and Unmanaged/Native Code to a Non-Programmer?</p>
[ { "answer_id": 252034, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 2, "selected": false, "text": "malloc free" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/252014", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7831/" ]
252,028
<p>I have a very strange bug cropping up right now in a fairly massive C++ application at work (massive in terms of CPU and RAM usage as well as code length - in excess of 100,000 lines). This is running on a dual-core Sun Solaris 10 machine. The program subscribes to stock price feeds and displays them on "pages" conf...
[ { "answer_id": 252070, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 2, "selected": false, "text": "gdb vector" }, { "answer_id": 254262, "author": "Roddy", "author_id": 1737, "author_profile": "ht...
2008/10/30
[ "https://Stackoverflow.com/questions/252028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
252,035
<p>I am building a relatively simple <a href="http://en.wikipedia.org/wiki/Django_%28web_framework%29" rel="nofollow noreferrer">Django</a> application and apart from the main page where most of the dynamic parts of the application are, there are a few pages that I will need that will not be dynamic at all (<em>About</...
[ { "answer_id": 252057, "author": "Jonny Buchanan", "author_id": 6760, "author_profile": "https://Stackoverflow.com/users/6760", "pm_score": 3, "selected": false, "text": "direct_to_template django.contrib.flatpages" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/252035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/85/" ]
252,050
<p>We are developing a small in-house application that will run on monitor having multi resolutions. Now we want that the application should adjust itself and remain consistent over all monitors.</p> <p>I came from a Java background too where we used different layouts to accomplish the task. I experimented in .NET wit...
[ { "answer_id": 252131, "author": "Eoin Campbell", "author_id": 30155, "author_profile": "https://Stackoverflow.com/users/30155", "pm_score": 2, "selected": false, "text": "Anchor Resize SizeChanged" } ]
2008/10/30
[ "https://Stackoverflow.com/questions/252050", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17519/" ]
252,055
<p>I have a couple of questions about generic wildcards in Java:</p> <ol> <li><p>What is the difference between <code>List&lt;? extends T&gt;</code> and <code>List&lt;? super T&gt;</code>?</p></li> <li><p>What is a bounded wildcard and what is an unbounded wildcard?</p></li> </ol>
[ { "answer_id": 252099, "author": "Bill the Lizard", "author_id": 1288, "author_profile": "https://Stackoverflow.com/users/1288", "pm_score": 8, "selected": true, "text": "<? extends T> <? super T> <?> <? extends Object> <? extends T> <? super T> <? extends T> <? super T>" }, { "a...
2008/10/30
[ "https://Stackoverflow.com/questions/252055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7595/" ]
252,066
<p>Using .Net how do I use the Sort method to sort an Array in reverse i.e. Z to A?</p>
[ { "answer_id": 252075, "author": "Michał Piaskowski", "author_id": 1534, "author_profile": "https://Stackoverflow.com/users/1534", "pm_score": 2, "selected": false, "text": " Array.Sort(array,delegate(string a, string b)\n {\n return b.CompareTo(a);\n });\n" }, { "...
2008/10/30
[ "https://Stackoverflow.com/questions/252066", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
252,082
<p>I have a J2ee application where I basically want two objects, created by two separate servlets to communicate directly and I need these intances to be stable, i.e. to "know" each other during the session.</p> <p>The sequence is roughly: <br></p> <ol> <li>Client sends a request to Servlet #1, which creates object A...
[ { "answer_id": 252987, "author": "jiriki", "author_id": 19907, "author_profile": "https://Stackoverflow.com/users/19907", "pm_score": 0, "selected": false, "text": "public class BusinessServlet {\n\nprotected void doGet(HttpServletRequest req, HttpServletResponse res) {\n HttpSession s...
2008/10/30
[ "https://Stackoverflow.com/questions/252082", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13321/" ]
252,149
<p>The following is code I've used to create a <code>memory mapped file</code>:</p> <pre><code>fid = open(filename, O_CREAT | O_RDWR, 0660); if ( 0 &gt; fid ) { throw error; } /* mapped offset pointer to data file */ offset_table_p = (ubyte_2 *) shmat(fid, 0, SHM_MAP); /* Initialize table */ memset(offset_table...
[ { "answer_id": 252261, "author": "paxdiablo", "author_id": 14860, "author_profile": "https://Stackoverflow.com/users/14860", "pm_score": 0, "selected": false, "text": "char paxbuff[1000]; // at start of function\nsprintf (paxbuff,\"ls -al %s\",filename);\nsyste...
2008/10/30
[ "https://Stackoverflow.com/questions/252149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
252,151
<p>Is there any way to insert a text (string, may or may not have html tags) to a <code>div</code>?</p> <p>It has to be a <code>div</code> and not a <code>textarea</code>.</p> <p>First of all, I need to get the cursor position, then insert the text in that position. It's similar to function <code>insertAdjacentText</co...
[ { "answer_id": 253736, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 4, "selected": false, "text": "document.selection.createRange().pasteHTML(theNewHTML) document.execCommand(\"InsertHTML\", ...)" }, { "answer_id": 19...
2008/10/30
[ "https://Stackoverflow.com/questions/252151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32941/" ]