qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
177,558
<p>Something like this is on my mind: I put one or a few strings in, and the algorithm shows me a matching regex.</p> <p>Is there an "<em>easy</em>" way to do this, or does something like this already exist?</p> <p><strong><em>Edit 1</em></strong>: Yes, I'm trying to find a way to generate regex. </p> <p><strong><em...
[ { "answer_id": 177592, "author": "David Webb", "author_id": 3171, "author_profile": "https://Stackoverflow.com/users/3171", "pm_score": 2, "selected": false, "text": "regexp-opt (regexp-opt (list \"my\" \"list\" \"of\" \"some\" \"strings\" \"to\" \"search\"))\n \"list\\\\|my\\\\|of\\\\|s...
2008/10/07
[ "https://Stackoverflow.com/questions/177558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25730/" ]
177,559
<p>This is something that's been bothering me a while and there just has to be a solution to this. Every time I call ShellExecute to open an external file (be it a document, executable or a URL) this causes a very long lockup in my program before ShellExecute spawns the new process and returns. Does anyone know how to ...
[ { "answer_id": 177571, "author": "1800 INFORMATION", "author_id": 3146, "author_profile": "https://Stackoverflow.com/users/3146", "pm_score": 3, "selected": false, "text": "CreateProcess" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/177559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25731/" ]
177,569
<p>I have Eclipse 3.3.2 with PDT doing PHP development. All projects that I create, even SVN projects have code completion. Now I just opened another SVN project and it has no code completion or PHP templates (CTRL-space does nothing in that project). However, I can open the other projects and code completion all work ...
[ { "answer_id": 177601, "author": "Guido", "author_id": 12388, "author_profile": "https://Stackoverflow.com/users/12388", "pm_score": 6, "selected": true, "text": " <natures>\n <nature>org.eclipse.php.core.PHPNature</nature>\n </natures>\n" }, { "answer_id": 178097, "author":...
2008/10/07
[ "https://Stackoverflow.com/questions/177569", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4639/" ]
177,606
<p>I am running windows XP with ruby 1.8.6 patchlevel 111. I am using HTTP to connect to a remote server and it has been running fine. All of a sudden it started to through the exception listed below (I did not change any code since the last time I ran it successfully). Does anybody know what is going on?</p> <pre> ...
[ { "answer_id": 5054097, "author": "Brian Armstrong", "author_id": 76486, "author_profile": "https://Stackoverflow.com/users/76486", "pm_score": 0, "selected": false, "text": "rescue Timeout::Error => e" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/177606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5004/" ]
177,611
<p>I am creating an Eclipse RCP application.</p> <p>I am following Joel's advice in the following article "Daily Builds are your friend":</p> <p><a href="http://www.joelonsoftware.com/articles/fog0000000023.html" rel="nofollow noreferrer">http://www.joelonsoftware.com/articles/fog0000000023.html</a></p> <p>So, I've ...
[ { "answer_id": 178237, "author": "Tom", "author_id": 20979, "author_profile": "https://Stackoverflow.com/users/20979", "pm_score": 4, "selected": true, "text": "#include \"settings.txt\"\n #define myver=xxx.xxx\n#define tags\n <exec dir=\".\" executable=\"cmd\" os=\"Windows NT\">\n <arg...
2008/10/07
[ "https://Stackoverflow.com/questions/177611", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2309/" ]
177,613
<p>My <code>Account</code> model has the following two associations:</p> <pre><code>has_many :expenses, :order =&gt; 'expenses.dated_on DESC', :dependent =&gt; :destroy has_many :recent_expenses, :class_name =&gt; 'Expense', :conditions =&gt; "expenses.dated_on &lt;= '#{D...
[ { "answer_id": 177794, "author": "Andrew", "author_id": 17408, "author_profile": "https://Stackoverflow.com/users/17408", "pm_score": 4, "selected": true, "text": "named_scope :recent, lambda { {:conditions => [\"expenses.dated_on <= ?\", Date.today], :order => 'dated_on DESC', :limit =>...
2008/10/07
[ "https://Stackoverflow.com/questions/177613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1174/" ]
177,638
<p>I had a little discussion with a friend about the usage of collections in return/input values of a method. He told me that we have to use - the most derived type for return values. - the least derived type for input parameters.</p> <p>So, it means that, for example, a method has to get a ReadOnlyCollection as param...
[ { "answer_id": 177647, "author": "Joe", "author_id": 13087, "author_profile": "https://Stackoverflow.com/users/13087", "pm_score": 4, "selected": true, "text": "public void ProcessCustomers(IEnumerable<Customer> customers)\n{\n ... implementation ...\n}\n private IEnumerable<Customer> ...
2008/10/07
[ "https://Stackoverflow.com/questions/177638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12703/" ]
177,673
<p>I have a strongly-typed MVC View Control which is responsible for the UI where users can create and edit Client items. I'd like them to be able to define the <code>ClientId</code> on creation, but not edit, and this to be reflected in the UI.</p> <p>To this end, I have the following line:</p> <pre><code>&lt;%= Ht...
[ { "answer_id": 178024, "author": "Panos", "author_id": 8049, "author_profile": "https://Stackoverflow.com/users/8049", "pm_score": 6, "selected": true, "text": "readonly <%= Html.TextBox(\"Client.ClientId\", ViewData.Model.ClientId, \n ViewData.Model.ClientId != null && ViewData.Model.C...
2008/10/07
[ "https://Stackoverflow.com/questions/177673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/192/" ]
177,677
<p>I am trying to uncompress some data created in VB6 using the zlib API.</p> <p>I have read this is possible with the qUncompress function: <a href="http://doc.trolltech.com/4.4/qbytearray.html#qUncompress" rel="nofollow noreferrer">http://doc.trolltech.com/4.4/qbytearray.html#qUncompress</a></p> <p>I have read the ...
[ { "answer_id": 177793, "author": "Mike G.", "author_id": 18901, "author_profile": "https://Stackoverflow.com/users/18901", "pm_score": 3, "selected": true, "text": "qArr(1) = int(Size/(256*256*256))\nqArr(2) = 255 And int(Size/256*256)\nqArr(3) = 255 And int(Size/256)\nqArr(4) = 255 And ...
2008/10/07
[ "https://Stackoverflow.com/questions/177677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24459/" ]
177,717
<p>Please share you experiences regarding how you localized your WPF applications to support multiple languages and any resources that helped you in it?</p> <p>Thanks for your feedbacks.</p>
[ { "answer_id": 640277, "author": "Robert Macnee", "author_id": 19273, "author_profile": "https://Stackoverflow.com/users/19273", "pm_score": 2, "selected": false, "text": "ResourceDictionary <Button Content=\"{StaticResource Strings.FooDialog.BarButtonText}\"/>\n ResourceDictionary <sys:...
2008/10/07
[ "https://Stackoverflow.com/questions/177717", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
177,719
<p>I'm trying to get a case-insensitive search with two strings in JavaScript working.</p> <p>Normally it would be like this:</p> <pre><code>var string="Stackoverflow is the BEST"; var result= string.search(/best/i); alert(result); </code></pre> <p>The <code>/i</code> flag would be for case-insensitive.</p> <p>But ...
[ { "answer_id": 177724, "author": "Dan", "author_id": 17121, "author_profile": "https://Stackoverflow.com/users/17121", "pm_score": 10, "selected": true, "text": ".match .search .match var string = \"Stackoverflow is the BEST\";\nvar result = string.match(/best/i);\n// result == 'BEST';\n...
2008/10/07
[ "https://Stackoverflow.com/questions/177719", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25741/" ]
177,722
<p>Perl has several built-in functions for accessing /etc/passwd on Unix systems (and elsewhere when supported) for user and group information. For instance,</p> <pre><code>my $name = getpwuid($uid); </code></pre> <p>will return the user name given the user ID, or undef if there is no such user.</p> <p>If a Perl scr...
[ { "answer_id": 177865, "author": "David Webb", "author_id": 3171, "author_profile": "https://Stackoverflow.com/users/3171", "pm_score": 3, "selected": false, "text": "Win32::NetAdmin UserGetAttributes GroupIsMember" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/177722", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
177,723
<p>I'm currently working on a project that depends on me providing a path to a file (eg. <code>C:\Path.pth</code>). Now, I had everything working yesterday by calling my <code>std::string</code> with:</p> <pre><code>std::string path(`"C:\\Path.pth`"); </code></pre> <p>But now it doesn't work. It throws a <code>bad_al...
[ { "answer_id": 177731, "author": "user22044", "author_id": 22044, "author_profile": "https://Stackoverflow.com/users/22044", "pm_score": 0, "selected": false, "text": "std::string path(\"c:\\\\path.pth\");\n std::string path(\"c:/path.pth\");\n" }, { "answer_id": 178180, "aut...
2008/10/07
[ "https://Stackoverflow.com/questions/177723", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25745/" ]
177,725
<p>I got a simple page with a HtmlInputHidden field. I use a javascript to update that value and when posting back the page i want to read the value of that HtmlInputHidden field.</p> <p>The Value property of that HtmlInputHidden field is on postback the default value (the value it had when the page got created, not t...
[ { "answer_id": 178095, "author": "Robert Paulson", "author_id": 14033, "author_profile": "https://Stackoverflow.com/users/14033", "pm_score": 1, "selected": false, "text": "<asp:HiddenField id=\"myHiddenField\" runat=\"server\" />\n string value = myHiddenField.Value; // retrieve the val...
2008/10/07
[ "https://Stackoverflow.com/questions/177725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11619/" ]
177,727
<p>When I add &amp;nbsp; or &amp;eacute; to a text value of a listitem, it display the code of the HTML entity instead of the result (a space or é).</p> <p>I can add "physical" non-breaking spaces or special chars, but I would like to avoid that if possible. Sometimes the data stored in database is encoded, and I don'...
[ { "answer_id": 177741, "author": "Mark Cidade", "author_id": 1659, "author_profile": "https://Stackoverflow.com/users/1659", "pm_score": 1, "selected": false, "text": "<optgroup> <select>\n <optgroup label=\"Parent 1\">\n <option>Child 1.1</option>\n <option>Child 1.2</o...
2008/10/07
[ "https://Stackoverflow.com/questions/177727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6776/" ]
177,747
<p>We have a "master database structure", and need a routine to keep the database structure on client sites up-to-date.</p> <p>A number of suggestions have been given <a href="https://stackoverflow.com/questions/115389/update-sql-sever-database-schema-with-software-update" title="here">to a related question</a>, but I...
[ { "answer_id": 177741, "author": "Mark Cidade", "author_id": 1659, "author_profile": "https://Stackoverflow.com/users/1659", "pm_score": 1, "selected": false, "text": "<optgroup> <select>\n <optgroup label=\"Parent 1\">\n <option>Child 1.1</option>\n <option>Child 1.2</o...
2008/10/07
[ "https://Stackoverflow.com/questions/177747", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18651/" ]
177,750
<p>I am trying to get some XML data with LINQ, but running into a problem.</p> <p>I am using a schema, which is set in the attribute xmlns ...</p> <pre><code>&lt;CarsForSale xmlns="http://schemas.sharplogic.net/CarSales.xsd"&gt; &lt;CarForSale&gt; </code></pre> <p>There are many CarForSale elements.</p> <p>When t...
[ { "answer_id": 177754, "author": "Mark Cidade", "author_id": 1659, "author_profile": "https://Stackoverflow.com/users/1659", "pm_score": 4, "selected": true, "text": "var ns = \"http://schemas.sharplogic.net/CarSales.xsd\";\nvar cars2 = from d in doc.Descendants(ns + \"CarForSale\") ...
2008/10/07
[ "https://Stackoverflow.com/questions/177750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6125/" ]
177,752
<p>I'm migrating a TSQL stored procedure to PL/SQL and have encountered a problem - the lack of a CONTINUE keyword in Oracle 10g.</p> <p>I've read that Oracle 11g has this as a new feature, but upgrading is not an option unfortunately.</p> <p>Is there any alternative to CONTINUE in 10g? I don't believe it's practical...
[ { "answer_id": 177785, "author": "jop", "author_id": 11830, "author_profile": "https://Stackoverflow.com/users/11830", "pm_score": 7, "selected": true, "text": "DECLARE\n done BOOLEAN;\nBEGIN\n FOR i IN 1..50 LOOP\n IF done THEN\n GOTO end_loop;\n END IF;\n <<end...
2008/10/07
[ "https://Stackoverflow.com/questions/177752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5827/" ]
177,762
<p>Trying to perform a single boolean NOT operation, it appears that under MS SQL Server 2005, the following block does not work</p> <pre><code>DECLARE @MyBoolean bit; SET @MyBoolean = 0; SET @MyBoolean = NOT @MyBoolean; SELECT @MyBoolean; </code></pre> <p>Instead, I am getting more successful with</p> <pre><code>DE...
[ { "answer_id": 177770, "author": "Galwegian", "author_id": 3201, "author_profile": "https://Stackoverflow.com/users/3201", "pm_score": 5, "selected": false, "text": "DECLARE @MyBoolean bit;\nSET @MyBoolean = 0;\nSET @MyBoolean = @MyBoolean ^ 1; \nSELECT @MyBoolean;\n" }, { "answe...
2008/10/07
[ "https://Stackoverflow.com/questions/177762", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18858/" ]
177,778
<p>I am trying to set the background color for a double spin box, and I am not sure what function I should use.</p> <p>I saw some function called <code>SetBackgroundRole</code> which accepts a <code>Qt::ColorRole</code>, but I am not sure how to use this one as well.</p> <p>Kindly let me know, what's the simple way t...
[ { "answer_id": 177802, "author": "fhe", "author_id": 4445, "author_profile": "https://Stackoverflow.com/users/4445", "pm_score": 0, "selected": false, "text": "QPalette pal = widget.palette();\npal.setColor(QPalette::Window, Qt::blue);\nwidget.setPalette(pal);\n" }, { "answer_id"...
2008/10/07
[ "https://Stackoverflow.com/questions/177778", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11212/" ]
177,814
<p>During an ASP.NET page load I'm opening and closing multiple System.Data.SqlClient.SqlConnections inside multiple controls contained in the page. I thought it would be a good idea instead to create a "pool" of connections and when opening a connection check to see if the connection string matches that of an open con...
[ { "answer_id": 177825, "author": "JacquesB", "author_id": 7488, "author_profile": "https://Stackoverflow.com/users/7488", "pm_score": 0, "selected": false, "text": "Open() Close()" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/177814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2179408/" ]
177,815
<p>I am changing a GET to a POST. Currently I have .jsp?id=a,b,c,d. When changing this to a post I am still sitting the id parameter a,b,c,d . This is not working for me. Can I submit a comma separated list to a post parameter?</p>
[ { "answer_id": 177822, "author": "Fionn", "author_id": 21566, "author_profile": "https://Stackoverflow.com/users/21566", "pm_score": 4, "selected": false, "text": "string[] values = Request.Form.GetValues(\"param\");\n" }, { "answer_id": 177853, "author": "Olvagor", "auth...
2008/10/07
[ "https://Stackoverflow.com/questions/177815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
177,835
<p>One of our unit tests is to populate properties within our business objects with random data.</p> <p>These properties are of different intrinsic types and therefore we would like to use the power of generics to return data of the type you pass in. Something along the lines of:</p> <pre><code>public static T GetDat...
[ { "answer_id": 177847, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 4, "selected": false, "text": "public static T GetData<T>()\n{\n object factory;\n if (!factories.TryGet(typeof(T), out factory))\n {\n ...
2008/10/07
[ "https://Stackoverflow.com/questions/177835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17540/" ]
177,856
<p>I would like to be able to trap <kbd>Ctrl</kbd>+<kbd>C</kbd> in a C# console application so that I can carry out some cleanups before exiting. What is the best way of doing this?</p>
[ { "answer_id": 929717, "author": "Jonas", "author_id": 16047, "author_profile": "https://Stackoverflow.com/users/16047", "pm_score": 8, "selected": false, "text": "public static void Main(string[] args)\n{\n Console.CancelKeyPress += delegate {\n // call methods to clean up\n ...
2008/10/07
[ "https://Stackoverflow.com/questions/177856", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5932/" ]
177,863
<p>I am using the next class (simplified for the sake of understandability) to download images in a struts web application. It is working fine in every browser but firefox, which cuts names containing spaces. That it is to say: <strong>file with spaces.pdf</strong> gets downloaded in firefox as: <strong>file</strong> ...
[ { "answer_id": 177880, "author": "Stephen Denne", "author_id": 11721, "author_profile": "https://Stackoverflow.com/users/11721", "pm_score": 6, "selected": true, "text": "response.setHeader(\"Content-Disposition\",\"attachment; filename=\\\"\" + filename + \"\\\"\");\n" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/177863", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2138/" ]
177,867
<p>I need to copy data values from one element to another, but jQuery's clone() method doesn't clone the data. And I can't iterate over the data either:</p> <pre><code>element.data().each </code></pre> <p>because <code>data()</code> is a function and not a jQuery object. It seems I have to keep a separate list of att...
[ { "answer_id": 7805272, "author": "simon", "author_id": 76777, "author_profile": "https://Stackoverflow.com/users/76777", "pm_score": 1, "selected": false, "text": "\nfunction getOriginalElementData(domElementJQueryObject){\n var originalElementData = new Array();\n $.each(domEleme...
2008/10/07
[ "https://Stackoverflow.com/questions/177867", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1896/" ]
177,883
<p>is it possible to include a servlet in a jsp page? if so how?</p>
[ { "answer_id": 7805272, "author": "simon", "author_id": 76777, "author_profile": "https://Stackoverflow.com/users/76777", "pm_score": 1, "selected": false, "text": "\nfunction getOriginalElementData(domElementJQueryObject){\n var originalElementData = new Array();\n $.each(domEleme...
2008/10/07
[ "https://Stackoverflow.com/questions/177883", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24481/" ]
177,885
<p>I'm looking for a way to obtain offsets of data members of a C++ class which is of non-POD nature.</p> <p>Here's why: </p> <p>I'd like to store data in <a href="http://www.hdfgroup.org/HDF5/whatishdf5.html" rel="noreferrer">HDF5</a> format, which seems most suited for my kind of material (numerical simulation outp...
[ { "answer_id": 177887, "author": "Greg Hewgill", "author_id": 893, "author_profile": "https://Stackoverflow.com/users/893", "pm_score": 2, "selected": false, "text": "private derived_non_pod base_pod base_pod derived_non_pod" }, { "answer_id": 1234781, "author": "Richard Cord...
2008/10/07
[ "https://Stackoverflow.com/questions/177885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25756/" ]
177,910
<p>I've produced a python egg using setuptools and would like to access it's metadata at runtime. I currently got working this:</p> <pre><code>import pkg_resources dist = pkg_resources.get_distribution("my_project") print(dist.version) </code></pre> <p>but this would probably work incorrectly if I had multiple versio...
[ { "answer_id": 177939, "author": "Adam Bellaire", "author_id": 21632, "author_profile": "https://Stackoverflow.com/users/21632", "pm_score": 3, "selected": true, "text": "my_project" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/177910", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5821/" ]
177,911
<p>I've got a WPF browser-like application with a few pages. When I switch between pages, I'd like to set the keyboard focus.</p> <p>When a page is loaded the first time, this works by calling <code>Control.Focus()</code> in the constructor.</p> <p>But when I switch between pages this does not work anymore - the focu...
[ { "answer_id": 221884, "author": "Sam", "author_id": 7021, "author_profile": "https://Stackoverflow.com/users/7021", "pm_score": 1, "selected": true, "text": "myControl.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, \n(System.Threading.SendOrPostCallback)d...
2008/10/07
[ "https://Stackoverflow.com/questions/177911", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7021/" ]
177,927
<p>In JPA the Entities are nice annotated Plain Old Java Objects. But I have not found a good way to interact with them and the database.</p> <p>In my current app, my basic design is always to have a sequence based id as primary key so I usually have to look up entities by other properties than PK.</p> <p>And for eac...
[ { "answer_id": 178744, "author": "cletus", "author_id": 18393, "author_profile": "https://Stackoverflow.com/users/18393", "pm_score": 2, "selected": false, "text": "@SuppressWarnings(\"unchecked\")\npublic List<MyEnt> getAllMyEntsFromProp(final String someProp) {\n return entityManager....
2008/10/07
[ "https://Stackoverflow.com/questions/177927", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8805/" ]
177,945
<p>I would like to create XML Schema for this chunk of xml, I would like to restrict the values of "name" attribute, so that in output document on and only one instance of day is allowed for each week day:</p> <pre><code>&lt;a&gt; &lt;day name="monday" /&gt; &lt;day name="tuesday" /&gt; &lt;day name="wednesday" ...
[ { "answer_id": 177954, "author": "Micah", "author_id": 17744, "author_profile": "https://Stackoverflow.com/users/17744", "pm_score": 0, "selected": false, "text": "<xs:schema attributeFormDefault=\"unqualified\" elementFormDefault=\"qualified\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema...
2008/10/07
[ "https://Stackoverflow.com/questions/177945", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10560/" ]
177,956
<p>What is the best way to convert an int or null to boolean value in an SQL query, such that:</p> <ul> <li>Any non-null value is <strong>TRUE</strong> in the results</li> <li>Any null value is <strong>FALSE</strong> in the results</li> </ul>
[ { "answer_id": 177967, "author": "Torbjörn Gyllebring", "author_id": 21182, "author_profile": "https://Stackoverflow.com/users/21182", "pm_score": 2, "selected": false, "text": "isnull(column - column + 1, 0) != 0\n" }, { "answer_id": 177978, "author": "mattlant", "author...
2008/10/07
[ "https://Stackoverflow.com/questions/177956", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15985/" ]
177,964
<p>I have an application database and an aspnetdb database (generated from the ASP.Net 2.0 framework). I have restored both database from production onto my development environment but I am unable to log on with any of the users credentials that work on production.</p> <p>So my question is is there anything that ties ...
[ { "answer_id": 178132, "author": "test", "author_id": 21004, "author_profile": "https://Stackoverflow.com/users/21004", "pm_score": 0, "selected": false, "text": " <add assembly=\"System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A\"/>\n </a...
2008/10/07
[ "https://Stackoverflow.com/questions/177964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21004/" ]
177,965
<p>I've got some code that uses the Component Categories manager to load all of the classes that implement a particular category.</p> <p>Is there an easy way to get a description, path and version information from the loaded DLL or EXE?</p>
[ { "answer_id": 180047, "author": "Tim Farley", "author_id": 4425, "author_profile": "https://Stackoverflow.com/users/4425", "pm_score": 2, "selected": true, "text": "HKEY_CLASSES_ROOT\\CLSID\\{xxxxxxxxx-yyyyy-zzzz-aaaa-bbbbbbbbbbbbbb REG_SZ REG_SZ" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/177965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8446/" ]
177,970
<p>I need a select from table which does not have column that tells when row was inserted, only <code>timestamp</code> column (values like: 0x0000000000530278). Some data was imported to the table yesterday and now I need to find out what exactly was imported :(</p> <p>Is there a way to do it using only <code>timestam...
[ { "answer_id": 178122, "author": "kristof", "author_id": 3241, "author_profile": "https://Stackoverflow.com/users/3241", "pm_score": 2, "selected": false, "text": "0x00000000000007D1\n0x00000000000007D2\n0x00000000000007D3\n0x00000000000007D4\n0x00000000000007D5\n" }, { "answer_i...
2008/10/07
[ "https://Stackoverflow.com/questions/177970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23436/" ]
177,974
<p>How can I test sending email from my application without flooding my inbox? </p> <p>Is there a way to tell IIS/ASP.NET how to deliver email to a local folder for inspection?</p>
[ { "answer_id": 178072, "author": "GEOCHET", "author_id": 5640, "author_profile": "https://Stackoverflow.com/users/5640", "pm_score": 6, "selected": true, "text": " <configuration> \n <system.net> \n <mailSettings> \n <smtp deliveryMethod=\"SpecifiedPickupDirect...
2008/10/07
[ "https://Stackoverflow.com/questions/177974", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10676/" ]
178,016
<p>I'm trying to select a specific HTML element in a document, for firefox i just use:</p> <pre><code>xpathobj = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null); </code></pre> <p>which works fine. However when I try the IE equivilent:</p> <pre><code>xmlDoc=new Activ...
[ { "answer_id": 181704, "author": "Tim C", "author_id": 7585, "author_profile": "https://Stackoverflow.com/users/7585", "pm_score": 0, "selected": false, "text": "xmlDoc.load(document); \n xmlDoc.loadXML(document.body.outerHTML)\n" }, { "answer_id": 182471, "author": "user1119...
2008/10/07
[ "https://Stackoverflow.com/questions/178016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11198/" ]
178,026
<p>We noticed that lots of bugs in our software developed in C# (or Java) cause a NullReferenceException.</p> <p>Is there a reason why "null" has even been included in the language?</p> <p>After all, if there were no "null", I would have no bug, right?</p> <p>In other words, what feature in the language couldn't wor...
[ { "answer_id": 178090, "author": "Julien Hoarau", "author_id": 12248, "author_profile": "https://Stackoverflow.com/users/12248", "pm_score": 8, "selected": true, "text": "static string AcceptNotNullObject(object! s)\n{\n return s.ToString();\n}\n" }, { "answer_id": 178092, ...
2008/10/07
[ "https://Stackoverflow.com/questions/178026", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25781/" ]
178,068
<p>When stepping a program in Delphi 7, the CPU window sometimes pops up and then steps through that instructions. I find this an annoyance as I wish to only step Pascal Code. </p> <p>Does anyone know how to disable this CPU pop-up? </p> <p><strong><em>I would not be sorry if this window never ever shows.</em></stron...
[ { "answer_id": 271483, "author": "Lars Truijens", "author_id": 1242, "author_profile": "https://Stackoverflow.com/users/1242", "pm_score": 4, "selected": true, "text": "Run -> Run to Next Source Line" }, { "answer_id": 2114093, "author": "Seth", "author_id": 141203, "...
2008/10/07
[ "https://Stackoverflow.com/questions/178068", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3535708/" ]
178,070
<p>We're working on a rich client (written in Flex) that is connected to a Java backend, using both RMI and JMS. I was thinking about implementing the client in a DDD fashion so that it has Repositories for the CRUD operations on the domain objects.</p> <p>The problem is however that all backend communication happens ...
[ { "answer_id": 221946, "author": "Richard Szalay", "author_id": 3603, "author_profile": "https://Stackoverflow.com/users/3603", "pm_score": 2, "selected": false, "text": "public class CompleteAsyncToken : AsyncToken\n{\n public function CompleteAsyncToken(data : Object)\n {\n ...
2008/10/07
[ "https://Stackoverflow.com/questions/178070", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17255/" ]
178,114
<p>Is there any easier solution in porting a windows manual-reset event to pthread, than a pthread conditional-variable + pthread mutex + a flag if event is set or unset?</p>
[ { "answer_id": 178962, "author": "ephemient", "author_id": 20713, "author_profile": "https://Stackoverflow.com/users/20713", "pm_score": 4, "selected": false, "text": "pthread_cond__* pthread_cond_wait #include <pthread.h>\n#include <stdbool.h>\n\nstruct mrevent {\n pthread_mutex_t mu...
2008/10/07
[ "https://Stackoverflow.com/questions/178114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
178,128
<p>Let's say I have to implement a piece of T-SQL code that must return a table as result. I can implement a table-valued function or else a stored procedure that returns a set of rows. What should I use?</p> <p>In short, what I want to know is: </p> <p><strong>Which are the main differences between functions and sto...
[ { "answer_id": 178150, "author": "Ilya Kochetov", "author_id": 15329, "author_profile": "https://Stackoverflow.com/users/15329", "pm_score": 3, "selected": false, "text": "SELECT function_name(field1) FROM table\n" }, { "answer_id": 228148, "author": "6eorge Jetson", "aut...
2008/10/07
[ "https://Stackoverflow.com/questions/178128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1679/" ]
178,135
<p>I have a UserControl (Composite control) that can be shown as the following pseudo XAML code:</p> <pre><code>&lt;UserControl&gt; &lt;DockPanel&gt; &lt;TextBox /&gt; &lt;Button /&gt; &lt;/DockPanel&gt; &lt;/UserControl&gt; </code></pre> <p>I use this custom control in a bunch of places and style some of...
[ { "answer_id": 178427, "author": "Kent Boogaart", "author_id": 5380, "author_profile": "https://Stackoverflow.com/users/5380", "pm_score": 3, "selected": false, "text": "<UserControl x:Name=\"_root\" ...>\n ...\n <Button Background=\"{Binding ButtonBackground, ElementName=_root}\"/...
2008/10/07
[ "https://Stackoverflow.com/questions/178135", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39/" ]
178,138
<p>I fear this is probably a bit of a dummy question, but it has me pretty stumped.</p> <p>I'm looking for the simplest way possible to pass a method of an object into a procedure, so that the procedure can call the object's method (e.g. after a timeout, or maybe in a different thread). So basically I want to:</p> <...
[ { "answer_id": 178174, "author": "Roman Ganz", "author_id": 17981, "author_profile": "https://Stackoverflow.com/users/17981", "pm_score": 5, "selected": true, "text": "procedure TCallbackObject.SetupCallback;\nbegin\n CallbackTheCallback(CallbackMethodImpl);\nend;\n" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/178138", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11961/" ]
178,144
<p>Originally I thought to ask if there would be an easy way to provide an automatically managed last update field with MS Access.</p> <p>After some googling I found following approach:</p> <pre><code>Private Sub Form_Dirty(Cancel As Integer) Me.Last_Update = Date() End Sub </code></pre> <p>Which seems to do th...
[ { "answer_id": 178170, "author": "tom.dietrich", "author_id": 15769, "author_profile": "https://Stackoverflow.com/users/15769", "pm_score": 2, "selected": false, "text": "CREATE TRIGGER [Table_stampUpdates] ON [dbo].[Table]\n FOR Update \nAS \nBEGIN \nUPDATE Table\nSET \nmodified_by = ri...
2008/10/07
[ "https://Stackoverflow.com/questions/178144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28482/" ]
178,147
<p>I have an application in C# (2.0 running on XP embedded) that is communicating with a 'watchdog' that is implemented as a Windows Service. When the device boots, this service typically takes some time to start. I'd like to check, from my code, if the service is running. How can I accomplish this?</p>
[ { "answer_id": 178162, "author": "Carl", "author_id": 951280, "author_profile": "https://Stackoverflow.com/users/951280", "pm_score": 10, "selected": true, "text": "System.ServiceProcess using System.ServiceProcess;\n\nServiceController sc = new ServiceController(SERVICENAME);\n\nswitch ...
2008/10/07
[ "https://Stackoverflow.com/questions/178147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6399/" ]
178,173
<p>I'd like to calculate the age of the messages in an Exchange mailbox to make sure they sit there for at least a minute before our program (C++, MAPI) processes them. This way the <a href="http://www.cloudmark.com/server/" rel="nofollow noreferrer">spam filter we use</a> should have enough time to do its job.</p> <p...
[ { "answer_id": 178201, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 0, "selected": false, "text": "PR_MESSAGE_DELIVERY_TIME PR_MESSAGE_DELIVERY_TIME" }, { "answer_id": 181012, "author": "Henk", "author_id"...
2008/10/07
[ "https://Stackoverflow.com/questions/178173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4097/" ]
178,187
<p>I am designing a class for log entries of my mail server. I have parsed the log entries and created the class hierarchy. Now I need to save the in memory representation to the disk. I need to save it to multiple destinations like mysql and disk files. I am at a loss to find out the proper way to design the persisten...
[ { "answer_id": 178504, "author": "Jon Wood", "author_id": 25258, "author_profile": "https://Stackoverflow.com/users/25258", "pm_score": 3, "selected": true, "text": "class Object\n cattr_accessor :store\n\n def save\n @@store.save(self)\n end\nend\n\nclass MySQLObjectStore\n def i...
2008/10/07
[ "https://Stackoverflow.com/questions/178187", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25453/" ]
178,188
<p>So, bitfields. Specifically, large bitfields. I understand how to manipulate individual values in a bitfield, but how would I go about doing this on a large set, such as say:</p> <pre><code>uint[] bitfield = new uint[4] { 0x0080000, 0x00FA3020, 0x00C8000, 0x0FF00D0 }; </code></pre> <p>The specific problem I'm havi...
[ { "answer_id": 178623, "author": "Christoffer Lette", "author_id": 11808, "author_profile": "https://Stackoverflow.com/users/11808", "pm_score": 0, "selected": false, "text": "public static class BitArrayExtensions\n{\n public static void DownShift(this BitArray bitArray, int places)\...
2008/10/07
[ "https://Stackoverflow.com/questions/178188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15537/" ]
178,199
<p>In PHP I can name my array indices so that I may have something like:</p> <pre><code>$shows = Array(0 =&gt; Array('id' =&gt; 1, 'name' =&gt; 'Sesame Street'), 1 =&gt; Array('id' =&gt; 2, 'name' =&gt; 'Dora The Explorer')); </code></pre> <p>Is this possible in Python?</p>
[ { "answer_id": 178211, "author": "Lou Franco", "author_id": 3937, "author_profile": "https://Stackoverflow.com/users/3937", "pm_score": 3, "selected": false, "text": "a = {\"id\": 1, \"name\":\"Sesame Street\"}\n" }, { "answer_id": 178213, "author": "Michael Twomey", "aut...
2008/10/07
[ "https://Stackoverflow.com/questions/178199", "https://Stackoverflow.com", "https://Stackoverflow.com/users/115/" ]
178,200
<p>I have the following JSP code, that protects my web page and displays it only to know IP's</p> <pre><code>String ip_h = request.getRemoteAddr(); String host_h = request.getRemoteHost(); String iplist[] = new String[1]; iplist[0] = "127.0.0.1"; iplist[1] = "10.217.106.248"; int count = iplist.length; bo...
[ { "answer_id": 178293, "author": "Bruno De Fraine", "author_id": 6918, "author_profile": "https://Stackoverflow.com/users/6918", "pm_score": 0, "selected": false, "text": "Subnet" }, { "answer_id": 178339, "author": "Lazarin", "author_id": 24124, "author_profile": "ht...
2008/10/07
[ "https://Stackoverflow.com/questions/178200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
178,210
<p>We are building a multi-tenant website in ASP.NET, and we must let each customer configure their own security model. They must be able to define their own roles, and put users in those roles. What is the best way to do this?</p> <p>There are tons of simple examples of page_load events that have code like:</p> <p...
[ { "answer_id": 178238, "author": "ullmark", "author_id": 23044, "author_profile": "https://Stackoverflow.com/users/23044", "pm_score": 0, "selected": false, "text": "foreach(var group in ThisPageConfiguration.AcceptedRoleNames)\nif (user.IsInRole(group))\n...\n" }, { "answer_id":...
2008/10/07
[ "https://Stackoverflow.com/questions/178210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/681/" ]
178,215
<p>We are using log4j behind a selfmade wrapper. We plan to use much more features of it now. </p> <p>Should we update to logback ?</p> <p>(I mean the framework not a facade like SLF4J)</p>
[ { "answer_id": 22115384, "author": "Christian", "author_id": 690771, "author_profile": "https://Stackoverflow.com/users/690771", "pm_score": 6, "selected": false, "text": "logger.debug(\"Temperature set to {}. Old temperature was {}.\", t, oldT);" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/178215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
178,216
<p>In Informix, how can I cast a <code>char(8)</code> type into a <code>money</code> type, so that I can compare it to another <code>money</code> type?</p> <p>Using "<code>tblAid.amt::money as aid_amt</code>" did not work. Using "<code>(tblAid.amt * 1) AS aid_amt</code>" did not work.</p>
[ { "answer_id": 185890, "author": "SKapsal", "author_id": 24721, "author_profile": "https://Stackoverflow.com/users/24721", "pm_score": 4, "selected": true, "text": "select (disb_amt::NUMERIC) disb_amt from tmp_kygrants;\n" }, { "answer_id": 188635, "author": "Jonathan Leffler...
2008/10/07
[ "https://Stackoverflow.com/questions/178216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13832/" ]
178,233
<p>Does anyone know how to use the credential cache or network credential to get the user's personal info from the Active Directory using C# or VB? I need to get personal info such as name, telephone ID and so on.</p>
[ { "answer_id": 217013, "author": "benPearce", "author_id": 4490, "author_profile": "https://Stackoverflow.com/users/4490", "pm_score": 1, "selected": false, "text": "DirectorySearcher ds = new DirectorySearcher(\"LDAP://DC=test,dc=com\");\nds.Filter = String.Format(\"&(samaccountname={0}...
2008/10/07
[ "https://Stackoverflow.com/questions/178233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23491/" ]
178,247
<p>I have minified my javascript and my css.</p> <p>Now, Which is better?</p> <pre><code>&lt;script type="text/javascript"&gt; &lt;? $r = file_get_contents('min.js'); if($r) echo $r; ?&gt; &lt;/script&gt; </code></pre> <p>OR</p> <pre><code>&lt;script type="text/javascript" src="min.js"&gt;&lt;/script&gt; </code...
[ { "answer_id": 178269, "author": "Jonny Buchanan", "author_id": 6760, "author_profile": "https://Stackoverflow.com/users/6760", "pm_score": 6, "selected": true, "text": "<script type=\"text/javascript\" src=\"min.js\"></script>\n src <script type=\"text/javascript\" src=\"min.js?version=...
2008/10/07
[ "https://Stackoverflow.com/questions/178247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/144/" ]
178,255
<p>I'm talking about c# <del>3.5</del> 3.0. I know how to do it when cache or ServiceProvider can have only one instance for the whole application. In this case ServiceProvider can look like this</p> <pre><code>public static class Service&lt;T&gt; { public static T Value {get; set;} } </code></pre> <p>and can be ...
[ { "answer_id": 186847, "author": "James Hart", "author_id": 5755, "author_profile": "https://Stackoverflow.com/users/5755", "pm_score": 1, "selected": false, "text": " public class TypeDictionary \n { \n private class InnerTypeDictionary<T>\n {\n static Weak...
2008/10/07
[ "https://Stackoverflow.com/questions/178255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22569/" ]
178,257
<p>Huge files take forever to load and work with in vim, due to syntax-highlighting.</p> <p>I'm looking for a way to limit size of highlighted files, such that files larger than (say) 10MB will be colorless.</p>
[ { "answer_id": 559052, "author": "Paul Oyster", "author_id": 38193, "author_profile": "https://Stackoverflow.com/users/38193", "pm_score": 6, "selected": true, "text": "autocmd BufWinEnter * if line2byte(line(\"$\") + 1) > 1000000 | syntax clear | endif\n" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/178257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6984/" ]
178,263
<p>I am testing a web app that writes cookies to subdomain.thisdomain.com and several subfolders within that. I'm looking for JavaScript that I can put into a bookmarklet that will delete all cookies under that subdomain, regardless of the folder in which they exist.</p> <p>Any ideas?</p>
[ { "answer_id": 179535, "author": "Robert J. Walker", "author_id": 4287, "author_profile": "https://Stackoverflow.com/users/4287", "pm_score": 6, "selected": true, "text": "javascript:new function(){var c=document.cookie.split(\";\");for(var i=0;i<c.length;i++){var e=c[i].indexOf(\"=\");v...
2008/10/07
[ "https://Stackoverflow.com/questions/178263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/335036/" ]
178,265
<p>Today at work we came across the following code (some of you might recognize it):</p> <pre><code>#define GET_VAL( val, type ) \ { \ ASSERT( ( pIP + sizeof(type) ) &lt;= pMethodEnd ); \ val = ( *((type *&amp;)(pIP))++ ); \ } <...
[ { "answer_id": 178308, "author": "Simon", "author_id": 24039, "author_profile": "https://Stackoverflow.com/users/24039", "pm_score": 2, "selected": false, "text": "ihi = y[0]>y[1] ? (inhi=1,0) : (inhi=0,1);\n" }, { "answer_id": 178361, "author": "Ma99uS", "author_id": 203...
2008/10/07
[ "https://Stackoverflow.com/questions/178265", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11361/" ]
178,320
<p>When you're passing variables through your site using GET requests, do you validate (regular expressions, filters, etc.) them before you use them?</p> <p>Say you have the URL <a href="http://www.example.com/i=45&amp;p=custform" rel="nofollow noreferrer">http://www.example.com/i=45&amp;p=custform</a>. You know that ...
[ { "answer_id": 178371, "author": "Treb", "author_id": 22114, "author_profile": "https://Stackoverflow.com/users/22114", "pm_score": 0, "selected": false, "text": "IsInt(i), IsString(p)" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/178320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1444511/" ]
178,325
<p>How do I toggle the visibility of an element using <code>.hide()</code>, <code>.show()</code>, or <code>.toggle()</code>?</p> <p>How do I test if an element is <code>visible</code> or <code>hidden</code>?</p>
[ { "answer_id": 178344, "author": "Mote", "author_id": 24789, "author_profile": "https://Stackoverflow.com/users/24789", "pm_score": 10, "selected": false, "text": "if ( $(element).css('display') == 'none' || $(element).css(\"visibility\") == \"hidden\"){\n // 'element' is hidden\n}\n ...
2008/10/07
[ "https://Stackoverflow.com/questions/178325", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21709/" ]
178,326
<p>I have an MFC app which I have been working on for a few weeks now, I want to manually set the dimensions of the main frame when it is loaded, can someone give me a hand with this, specifically where to put the code as well?</p> <p>Thanks!</p>
[ { "answer_id": 178349, "author": "IanW", "author_id": 3875, "author_profile": "https://Stackoverflow.com/users/3875", "pm_score": 2, "selected": false, "text": "CRect rect;\nSystemParametersInfo(SPI_GETWORKAREA,0,&rect,0);\nscreen_x_size=rect.Width(); \nscreen_y_size=rect.Height();\n ::...
2008/10/07
[ "https://Stackoverflow.com/questions/178326", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18664/" ]
178,328
<p>In PHP, function parameters can be passed by reference by prepending an ampersand to the parameter in the function declaration, like so:</p> <pre><code>function foo(&amp;$bar) { // ... } </code></pre> <p>Now, I am aware that this is <i>not</i> designed to improve performance, but to allow functions to change v...
[ { "answer_id": 3845530, "author": "ikary", "author_id": 464550, "author_profile": "https://Stackoverflow.com/users/464550", "pm_score": 7, "selected": false, "text": "pass by value: 0.12065005 seconds\npass by reference: 1.52171397 seconds\n pass by value: 1.52223396 seconds\n...
2008/10/07
[ "https://Stackoverflow.com/questions/178328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2077/" ]
178,333
<p>Since multiple inheritance is bad (it makes the source more complicated) C# does not provide such a pattern directly. But sometimes it would be helpful to have this ability.</p> <p>For instance I'm able to implement the missing multiple inheritance pattern using interfaces and three classes like that:</p> <pre><code...
[ { "answer_id": 178368, "author": "Chris Wenham", "author_id": 5548, "author_profile": "https://Stackoverflow.com/users/5548", "pm_score": 8, "selected": false, "text": "ISteerable SteeringWheel IBrakable BrakePedal public interface ISteerable { SteeringWheel wheel { get; set; } }\n\npubl...
2008/10/07
[ "https://Stackoverflow.com/questions/178333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25782/" ]
178,396
<p>OK, another road bump in my current project.</p> <p>I have never had form elements in <strong>both</strong> my master and content pages, I tend to have all the forms in the content where relevant.</p> <p>In the current project however, we have a page where they want both. <strong>A login form at the top right, and...
[ { "answer_id": 178525, "author": "John Rudy", "author_id": 14048, "author_profile": "https://Stackoverflow.com/users/14048", "pm_score": 2, "selected": false, "text": "asp:ContentPlaceHolder asp:Content asp:Content Page.Master" }, { "answer_id": 240608, "author": "Rob Cooper"...
2008/10/07
[ "https://Stackoverflow.com/questions/178396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/832/" ]
178,398
<p>Generally, MVC frameeworks have a structure that looks something like:</p> <pre><code>/models /views /controllers /utils </code></pre> <p>However, in a web application suite, I've decided that clumping all models, views, and controllers together probably wouldn't be the best for clarity, unless I treated the syste...
[ { "answer_id": 178436, "author": "Szymon Rozga", "author_id": 7583, "author_profile": "https://Stackoverflow.com/users/7583", "pm_score": 3, "selected": false, "text": "/app1\n /models\n /views\n /controllers\n /utils\n/app2\n /models\n /views\n /controllers\n /utils\n/co...
2008/10/07
[ "https://Stackoverflow.com/questions/178398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/572/" ]
178,401
<p>Can MySql 5.0 views use tables that are located on another server? What is the syntax for creating such a view?</p>
[ { "answer_id": 178438, "author": "Noah Goodrich", "author_id": 20178, "author_profile": "https://Stackoverflow.com/users/20178", "pm_score": 0, "selected": false, "text": "USE localhost.myDB;\n\nSELECT * FROM host2.db.tableName; \n" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/178401", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17583/" ]
178,407
<p>Say I have the following:</p> <pre><code>&lt;ul&gt; &lt;li&gt;First item&lt;/li&gt; &lt;li&gt;Second item&lt;/li&gt; &lt;li&gt;Third item&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>How would I select all the child elements after the first one using jQuery? So I can achieve something like:</p> <pre><code>&lt;ul&g...
[ { "answer_id": 178422, "author": "Jonny Buchanan", "author_id": 6760, "author_profile": "https://Stackoverflow.com/users/6760", "pm_score": 4, "selected": false, "text": "$(\"li\").slice(1).addClass(\"something\");\n" }, { "answer_id": 178425, "author": "twernt", "author_...
2008/10/07
[ "https://Stackoverflow.com/questions/178407", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5802/" ]
178,434
<p>Objective-C has no namespaces; it's much like C, everything is within one global namespace. Common practice is to prefix classes with initials, e.g. if you are working at IBM, you could prefix them with &quot;IBM&quot;; if you work for Microsoft, you could use &quot;MS&quot;; and so on. Sometimes the initials refer ...
[ { "answer_id": 180674, "author": "Barry Wark", "author_id": 2140, "author_profile": "https://Stackoverflow.com/users/2140", "pm_score": 7, "selected": false, "text": "@compatibility_alias @compatibility_alias @interface COM_WHATEVER_ClassName : NSObject\n@end\n\n@compatibility_alias Clas...
2008/10/07
[ "https://Stackoverflow.com/questions/178434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15809/" ]
178,456
<p>Is it better to do this:</p> <pre><code>try { ... } catch (Exception ex) { ... throw; } </code></pre> <p>Or this:</p> <pre><code>try { ... } catch (Exception ex) { ... throw ex; } </code></pre> <p>Do they do the same thing? Is one better than the other?</p>
[ { "answer_id": 178464, "author": "Torbjörn Gyllebring", "author_id": 21182, "author_profile": "https://Stackoverflow.com/users/21182", "pm_score": 11, "selected": true, "text": "throw;\n throw ex throw ex try\n{\n methodInfo.Invoke(...);\n}\ncatch (System.Reflection.TargetInvocationEx...
2008/10/07
[ "https://Stackoverflow.com/questions/178456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13913/" ]
178,458
<p>I am in a project where we are starting refactoring some massive code base. One problem that immediately sprang up is that each file imports a lot of other files. How do I in an elegant way mock this in my unit test without having to alter the actual code so I can start to write unit-tests?</p> <p>As an example: Th...
[ { "answer_id": 178582, "author": "S.Lott", "author_id": 10661, "author_profile": "https://Stackoverflow.com/users/10661", "pm_score": 1, "selected": false, "text": "PYTHONPATH PYTHONPATH @set Part1=c:\\blah\\blah\\blah\n@set Part2=c:\\some\\other\\path\n@set that=g:\\shared\\stuff\nset P...
2008/10/07
[ "https://Stackoverflow.com/questions/178458", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12126/" ]
178,462
<p>I'm trying to setup an Apache/PHP/Postgresql server locally on my machine. I'm using Windows vista business 32bit. I tried to install everything manually (one thing at a time, apache, postgresql and php (all the latest stable releases)) and after I get everything up and running.</p> <p>Whenever I try to run a scrip...
[ { "answer_id": 178487, "author": "Greg", "author_id": 24181, "author_profile": "https://Stackoverflow.com/users/24181", "pm_score": 3, "selected": true, "text": "LoadModule php5_module \"c:/php/php5apache2_2.dll\"\nAddType application/x-httpd-php .php\nPHPIniDir \"c:/php\"\n C:\\Program ...
2008/10/07
[ "https://Stackoverflow.com/questions/178462", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24098/" ]
178,473
<p>I have three TextBox controls on the page</p> <pre><code>&lt;asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" OnTextChanged="TextBox_TextChanged" TabIndex="1"&gt; &lt;asp:TextBox ID="TextBox2" runat="server" AutoPostBack="True" OnTextChanged="TextBox_TextChanged" TabIndex="2"&gt; &lt;asp...
[ { "answer_id": 178507, "author": "Paul Nearney", "author_id": 24071, "author_profile": "https://Stackoverflow.com/users/24071", "pm_score": 1, "selected": false, "text": "var nextcontrols = from WebControl control in \n Changed_control.Parent.Controls.OfType<TextBox...
2008/10/07
[ "https://Stackoverflow.com/questions/178473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11256/" ]
178,479
<p>What are the best workarounds for using a SQL <code>IN</code> clause with instances of <code>java.sql.PreparedStatement</code>, which is not supported for multiple values due to SQL injection attack security issues: One <code>?</code> placeholder represents one value, rather than a list of values.</p> <p>Consider t...
[ { "answer_id": 178517, "author": "Adam Bellaire", "author_id": 21632, "author_profile": "https://Stackoverflow.com/users/21632", "pm_score": 2, "selected": false, "text": "PreparedStatement ? OR ?" }, { "answer_id": 178635, "author": "stjohnroe", "author_id": 2985, "a...
2008/10/07
[ "https://Stackoverflow.com/questions/178479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15816/" ]
178,482
<p>For a school project, I need to create a way to create personnalized queries based on end-user choices.<br /> Since the user can choose basically any fields from any combination of tables, I need to find a way to map the tables in order to make a join and not have extraneous data (This may lead to incoherent report...
[ { "answer_id": 178517, "author": "Adam Bellaire", "author_id": 21632, "author_profile": "https://Stackoverflow.com/users/21632", "pm_score": 2, "selected": false, "text": "PreparedStatement ? OR ?" }, { "answer_id": 178635, "author": "stjohnroe", "author_id": 2985, "a...
2008/10/07
[ "https://Stackoverflow.com/questions/178482", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25818/" ]
178,516
<p>Answers to a recent post (Any chances to imitate times() Ruby method in C#?) use the <b>=></b> operator in the usage examples. What does this operator do? I can't locate it in my C# book, and it is hard to search for symbols like this online. (I couldn't find it.)</p>
[ { "answer_id": 178529, "author": "Mark Ingram", "author_id": 986, "author_profile": "https://Stackoverflow.com/users/986", "pm_score": 1, "selected": false, "text": "MyControl.OnMouseDown += (sender, e) =>\n{\n // Do something in the mouse down event\n};\n" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/178516", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19274/" ]
178,519
<p>I'm just starting with CodeIgniter, and I am not sure where things such as css, js, and images should go. Outside the whole system folder seems ok, but that means everything is seperate. Inside means the filepaths are longer, and I'm worried that it might mess things up. What's the best practice on this issue?</p>
[ { "answer_id": 178534, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 5, "selected": true, "text": "/system\n/css\n/js\n/img\n site_url(url) site_url('css/file.css')" }, { "answer_id": 180835, "author": "Click Onlin...
2008/10/07
[ "https://Stackoverflow.com/questions/178519", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16511/" ]
178,524
<p>I recently read this Phil Haack post (<a href="http://haacked.com/archive/2007/06/13/the-most-useful-.net-utility-classes-developers-tend-to-reinvent.aspx" rel="nofollow noreferrer">The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse</a>) from last year, and thought I'd see if anyone h...
[ { "answer_id": 178544, "author": "RB.", "author_id": 15393, "author_profile": "https://Stackoverflow.com/users/15393", "pm_score": 5, "selected": false, "text": "return \"£\" & iSomeValue\n return String.Format (\"{0:c}\", iSomeValue)\n" }, { "answer_id": 178552, "author": "J...
2008/10/07
[ "https://Stackoverflow.com/questions/178524", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6624/" ]
178,530
<p>In our web-app we use PHP5.2.6 + PDO to connect to a SQL Server 2005 database and store Russian texts.</p> <p>Database collation is <code>Cyrillic_General_CI_AS</code>, table collation is <code>Cyrillic_General_CI_AS</code>, column type is <code>NVARCHAR(MAX)</code>.</p> <p>We tried connecting to a database using ...
[ { "answer_id": 197395, "author": "Greg", "author_id": 24181, "author_profile": "https://Stackoverflow.com/users/24181", "pm_score": 3, "selected": true, "text": "SET NAMES \"charset\" Cyrillic_General_CI_AS" }, { "answer_id": 2344628, "author": "Liam Morland", "author_id"...
2008/10/07
[ "https://Stackoverflow.com/questions/178530", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6647/" ]
178,532
<p>I have a rather large and complex set of programs to port from VC8 to VC9. One of the modules has a number of layered typedefs, which cause the compiler to generate a C4503 warning (decorated name truncated). The generated LIB file will not properly link to other modules in the project. VC8 had no trouble with this,...
[ { "answer_id": 218959, "author": "Howard Lee Harkness", "author_id": 25823, "author_profile": "https://Stackoverflow.com/users/25823", "pm_score": 2, "selected": false, "text": "enum Type{\n TYPE_COUNT,\n TYPE_VALUE\n };\n\n struct Containers \n {\n MyVector<Container*, Critical...
2008/10/07
[ "https://Stackoverflow.com/questions/178532", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25823/" ]
178,539
<p>How can I round a decimal number (floating point) to the nearest integer? </p> <p>e.g.</p> <pre><code>1.2 = 1 1.7 = 2 </code></pre>
[ { "answer_id": 178550, "author": "EvdB", "author_id": 5349, "author_profile": "https://Stackoverflow.com/users/5349", "pm_score": 6, "selected": false, "text": "use Math::Round;\nmy $rounded = round( $float );\n my $rounded = sprintf \"%.0f\", $float;\n" }, { "answer_id": 178551,...
2008/10/07
[ "https://Stackoverflow.com/questions/178539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12850/" ]
178,561
<p>I have the following VB.net interface that I need to port to C#. C# does not allow enumerations in interfaces. How can I port this without changing code that uses this interface?</p> <pre><code>Public Interface MyInterface Enum MyEnum Yes = 0 No = 1 Maybe = 2 End Enum ReadOnl...
[ { "answer_id": 178573, "author": "Alexander Kojevnikov", "author_id": 712, "author_profile": "https://Stackoverflow.com/users/712", "pm_score": 4, "selected": false, "text": "public enum MyEnum\n{\n Yes = 0,\n No = 1,\n Maybe = 2\n}\n\npublic interface IMyInterface\n{\n MyEnu...
2008/10/07
[ "https://Stackoverflow.com/questions/178561", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25825/" ]
178,572
<p>A large international company deploys a new web and MOTO (Mail Order and Telephone Order) handling system. Among other things you are tasked to design format for both order and customer identification numbers.</p> <p>What would be the best format in your opinion? Please list any assumptions and considerations.</p> ...
[ { "answer_id": 178706, "author": "Kevin", "author_id": 6386, "author_profile": "https://Stackoverflow.com/users/6386", "pm_score": 3, "selected": false, "text": "ddmmyyyy-####-####\n ####-####-####-####-####\n" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/178572", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22088/" ]
178,578
<p>I'm using Webbrowser control to login to HTTPS site with "untrusted certificate". but I get popup such standart window "Security Alert" about untrusted certificate:</p> <p><img src="https://i.stack.imgur.com/U01dp.jpg" alt="Security Alert window"></p> <p>I have to find this window by title and send it <kbd>Alt</kb...
[ { "answer_id": 178595, "author": "bobwienholt", "author_id": 24257, "author_profile": "https://Stackoverflow.com/users/24257", "pm_score": 3, "selected": true, "text": "public static bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErro...
2008/10/07
[ "https://Stackoverflow.com/questions/178578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25826/" ]
178,580
<p>We are trying to bind a Linux machine (debian 4.0) to W2k3 AD. We have configured kerberos properly so that we can get TGTs. And users authenticate properly. However, PAM seems to be the sticky wicket. For example when we try to SSH to the linux machine as one of the AD users, the authentication succeeds (as per...
[ { "answer_id": 181906, "author": "Pontus", "author_id": 23483, "author_profile": "https://Stackoverflow.com/users/23483", "pm_score": 1, "selected": false, "text": "getent passwd avalidusername\n" }, { "answer_id": 296169, "author": "csexton", "author_id": 19839, "aut...
2008/10/07
[ "https://Stackoverflow.com/questions/178580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
178,600
<p>The project is ASP.NET 2.0, I have never been able to reproduce this myself, but I get emails informing me it happens to clients many times a week, often a few times in a row.</p> <p>Here is the full error:</p> <p>Exception Details: </p> <blockquote> <p>Microsoft.Reporting.WebForms.AspNetSessionExpiredException...
[ { "answer_id": 178812, "author": "Jon Adams", "author_id": 2291, "author_profile": "https://Stackoverflow.com/users/2291", "pm_score": 5, "selected": true, "text": "protected void Application_Error(object sender, EventArgs e)\n{\n Exception exc = Server.GetLastError().GetBaseException...
2008/10/07
[ "https://Stackoverflow.com/questions/178600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21367/" ]
178,601
<pre><code>&lt;div spry:region="ds1" spry:repeatchildren="ds1"&gt; &lt;b spry:if=" '{title}'!='' "&gt; &lt;!-- this is the first if --&gt; &lt;a href="#" spry:if=" '{author}'!='' "&gt;{author} &lt;!-- this is the second if --&gt; &lt;/a&gt; &lt;/b&gt; &lt;/div&gt; </code></pre> <p><br><br> I wo...
[ { "answer_id": 2810735, "author": "porges", "author_id": 10311, "author_profile": "https://Stackoverflow.com/users/10311", "pm_score": 1, "selected": false, "text": "spry:if && <b spry:if=\"'{title}' != '' && '{author}' != ''\">\n<!-- ... -->\n</b>\n" }, { "answer_id": 3352414, ...
2008/10/07
[ "https://Stackoverflow.com/questions/178601", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24439/" ]
178,611
<p>When Instantiating a class, Windsor by default treats all public properties of the class as optional dependencies and tries to satisfy them. In my case, this creates a rather complicated circular dependency which causes my application to hang. </p> <p>How can I explicitly tell Castle Windsor that it should not be...
[ { "answer_id": 182002, "author": "Bittercoder", "author_id": 4843, "author_profile": "https://Stackoverflow.com/users/4843", "pm_score": 4, "selected": false, "text": "kernel.GetHandler(typeof(MyComponent)).ComponentModel.Dependencies.RemoveAll(d => d.DependencyKey == \"PropertyThatShoul...
2008/10/07
[ "https://Stackoverflow.com/questions/178611", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5056/" ]
178,645
<p>There is some magic going on with WCF deserialization. How does it instantiate an instance of the data contract type without calling its constructor?</p> <p>For example, consider this data contract:</p> <pre><code>[DataContract] public sealed class CreateMe { [DataMember] private readonly string _name; [Dat...
[ { "answer_id": 179486, "author": "Jason Jackson", "author_id": 13103, "author_profile": "https://Stackoverflow.com/users/13103", "pm_score": 8, "selected": true, "text": "FormatterServices.GetUninitializedObject() using System;\nusing System.Reflection;\nusing System.Runtime.Serializatio...
2008/10/07
[ "https://Stackoverflow.com/questions/178645", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24874/" ]
178,667
<p>I have the following code:</p> <pre><code>import javax.swing.JEditorPane; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.ScrollPaneConstants; public class ScratchPad { public static void main(String args[]) throws Exception { String html ="&lt;html&gt;"+ "&lt;head&gt;"+...
[ { "answer_id": 1421097, "author": "Horcrux7", "author_id": 12631, "author_profile": "https://Stackoverflow.com/users/12631", "pm_score": 5, "selected": true, "text": "editor.getDocument().putProperty(\"IgnoreCharsetDirective\", Boolean.TRUE);\n" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/178667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6583/" ]
178,669
<p>How can i make my flash applications in a browser in full screen mode? I know that the stage can be put in that mode, but when i run the application in any browser this doesn't work. So, this can be done, but how?</p>
[ { "answer_id": 178709, "author": "John Chuckran", "author_id": 25511, "author_profile": "https://Stackoverflow.com/users/25511", "pm_score": -1, "selected": false, "text": " fscommand( \"fullscreen\" , \"true\" ) \n" }, { "answer_id": 178892, "author": "Raleigh Buckner", ...
2008/10/07
[ "https://Stackoverflow.com/questions/178669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20601/" ]
178,675
<p>Is it possible to split large ASP.NET-pages into pieces? JSP has the <a href="http://java.sun.com/products/jsp/tags/11/syntaxref1112.html" rel="nofollow noreferrer">jsp:include</a> directive. Is there any equivivalent in ASP.NET</p> <p>I'm not interested in reusing the pieces. I just want to organize the HTML/ASP c...
[ { "answer_id": 178779, "author": "liggett78", "author_id": 19762, "author_profile": "https://Stackoverflow.com/users/19762", "pm_score": 3, "selected": true, "text": "<!--#include file=\"inc_footer.aspx\"-->\n" } ]
2008/10/07
[ "https://Stackoverflow.com/questions/178675", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25833/" ]
178,696
<p>I've got the following JavaScript on my web page...</p> <pre><code>64 var description = new Array(); 65 description[0] = "..." 66 description[1] = "..." ... 78 function init() { 79 document.getElementById('somedivid').innerHTML = description[0]; 80 } 81 82 window.onload = init(); </code></p...
[ { "answer_id": 178719, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 1, "selected": false, "text": "<body onload=\"init()\"> window.onload = init(); init() window.onload = init; window.onload" }, { "answer_id": 178...
2008/10/07
[ "https://Stackoverflow.com/questions/178696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/83/" ]
178,700
<p>While simple, interface-driven event notification frameworks in Java have been around since pre-Cambrian times (e.g. java.beans.PropertyChangeSupport), it is becoming increasingly popular for frameworks to use annotation-driven event notification instead. </p> <p>For an example, see <a href="http://www.jboss.org/f...
[ { "answer_id": 179056, "author": "oxbow_lakes", "author_id": 16853, "author_profile": "https://Stackoverflow.com/users/16853", "pm_score": 2, "selected": false, "text": "if (event instanceof NodeCreatedEvent) adapter" }, { "answer_id": 179156, "author": "Scott Stanchfield", ...
2008/10/07
[ "https://Stackoverflow.com/questions/178700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21234/" ]
178,712
<p>I am reading an XML file into a DataSet and need to get the data out of the DataSet. Since it is a user-editable config file the fields may or may not be there. To handle missing fields well I'd like to make sure each column in the DataRow exists and is not DBNull. </p> <p>I already check for DBNull but I don't kno...
[ { "answer_id": 178755, "author": "Phillip Wells", "author_id": 3012, "author_profile": "https://Stackoverflow.com/users/3012", "pm_score": 5, "selected": false, "text": "DataSet.Tables(0).Columns.Contains(name) DataTable" }, { "answer_id": 178766, "author": "John Chuckran", ...
2008/10/07
[ "https://Stackoverflow.com/questions/178712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21186/" ]
178,730
<p>I have to lock user accounts in Active Directory programmatically in C#. </p> <p>Unfortunately it doesn't work via the userAccountControl attribute. Every time I set userAccountControl to 528 (=normal account w/ lockout flag), Active Directory won't accept the value and resets it without further notice to 512 (=nor...
[ { "answer_id": 6389998, "author": "Robert Seitz", "author_id": 803729, "author_profile": "https://Stackoverflow.com/users/803729", "pm_score": 0, "selected": false, "text": "DirectoryEntry de = result.GetDirectoryEntry();\nint val = (int)de.Properties[\"userAccountControl\"].Value;\nde.P...
2008/10/07
[ "https://Stackoverflow.com/questions/178730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/830/" ]
178,738
<p>Is there a way to catch a click on a cell in VBA with Excel? I am not referring to the <code>Worksheet_SelectionChange</code> event, as that will not trigger multiple times if the cell is clicked multiple times. <code>BeforeDoubleClick</code> does not solve my problem either, as I do not want to require the user to ...
[ { "answer_id": 180695, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": false, "text": "Private Sub Worksheet_SelectionChange(ByVal Target As Range)\n 'put your code here to process the selection, then..\n Active...
2008/10/07
[ "https://Stackoverflow.com/questions/178738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12002/" ]
178,740
<p>Trying to use an excpetion class which could provide location reference for XML parsing, found an interesting behavior - compiler could not choose between overload which consumes an interface and one which needs System.Exception when I trying to pass XmlReader as a parameter.</p> <p>Detais are following:</p> <pre>...
[ { "answer_id": 178764, "author": "Grzenio", "author_id": 5363, "author_profile": "https://Stackoverflow.com/users/5363", "pm_score": 2, "selected": true, "text": "//fails\nthrow new FilterXmlParseException(\"<Filter> element expected\", reader);\n" }, { "answer_id": 178798, "...
2008/10/07
[ "https://Stackoverflow.com/questions/178740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21603/" ]